From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0A456449985 for ; Thu, 20 Aug 2026 13:17:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787231841; cv=none; b=Cbirov4x/O8oBRyydI3FGklX06bxJ6cORDe56ETgMWsq8B01SvSPTPIzRQEm+XIl2K53wsBZkIdXxW0qniefALfxMycFXtBWaRNuz9EBNiILmSix7mVEgUZ75RXuvFtgc17qDHiBT2P0t3c/XUYIGa4vwWyp4LoFhS3geSp6SgI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787231841; c=relaxed/simple; bh=1CnNo5c3+W4kz6Kt7wqmydjbAinEf2KlvzTzD+ptxmQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=jtMpnADTln5/DDEzUiehMjjZpQwKNz4G8Vjs6bTgrKTTtCabYKV0NzOvrl3jugWOf3I2zeg1p5xPtP9fT2YAH+0RthLGxDvYdPYlDf0TIwLPzt/NODT+EBNPjhDmdd6c5z+5vx8NhoHEavNBxDDdskfyGpNMjivAWdtfUalEdeI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=gmoEhjUd; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=dvyUrF+q; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="gmoEhjUd"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="dvyUrF+q" Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 67K7LCZm2753039 for ; Thu, 20 Aug 2026 13:17:18 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= FRn7XK+ROzWG2rvgcKJwV7AzQsMgAI1TASr45vyqJ98=; b=gmoEhjUdDJpy3Un7 /05JKM/eYIVdcr6EnZripaPAzrd+h18Y3/X4BYTI1o9xfVe3V9Tl9rUy2CfpyEVZ yrTcp/V7k5Oy31pSO4x8XRACgLa7ATmqePbt+0E12TuFjTX+1JyH/nXayvJfsYYN CEdwN4sv13gS3VDObVLzPhxRCSeyzH8FvRDuOD1Oc3/R5czay27AoE/19XJY+xz/ CVLEl/bbEVrodJd/I7qw87+Ut4tMpKsAMHeMdp7WD4TqUHgocIMV6yWiRsW/2/Gx s0yBt/SS1Gg8oli0M66XIDC/mVKLNPqUeZPEDvIUd1gR64Elbgf0U9J6io6uPf4z Xmpdog== Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4g5w499aj9-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 20 Aug 2026 13:17:18 +0000 (GMT) Received: by mail-pj1-f69.google.com with SMTP id 98e67ed59e1d1-38f57e31b6eso2176642a91.1 for ; Thu, 20 Aug 2026 06:17:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1787231838; x=1787836638; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=FRn7XK+ROzWG2rvgcKJwV7AzQsMgAI1TASr45vyqJ98=; b=dvyUrF+q1pk4WKMhrCV9k3xjbE3iLrWg0vupzgDJA+zQu1rsZo5FuHkqVp859MdueL sT6LtrtzBvbTLC9xSVORPQp8rc6L7Rm1Zqg0Af/v9H9BFPQ1g88/lHUfJeILnXHQWl9h J9l9BKQjMHZp1Jd9HaopEwmTE42FI5INA81t1zp40UGCEEeD/xp5HK+ca5ZIzT5Qe8FE 2dJf8jpN+0U+uwQFsUwRhz09lRSZ3LEintgmprZLHB12zQelpGDqYg0Y3HZuf8eAx9O3 SEAwF+0IRrNgaH247dJMkNqSqVUvrgkGXPtJcBbX80UWh/frfad4DLCyLIsYqBsYedPh eeTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787231838; x=1787836638; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=FRn7XK+ROzWG2rvgcKJwV7AzQsMgAI1TASr45vyqJ98=; b=s7rPCrS+RJG0kiDRx6rI68o9sADdzlGZNUmBrBHvkLl7iLY7J9Zyk1bGDPSxgNC8ad 82cD45IXbWqLcdN5lig+CSCl/OvmDTb2Id1QVnr8ZM9jl8j4cVEIfTiy9vDbo9/wcJOF lamxXQ9Oegr3ZDZXaPJnUqXFeKqONV8w7Pfq1JrOKDEYntDqxkS+gp1JYHRUl5I0NvoW mp9lQKj7c+kJC9SFVnsrOz11aap+DU+NH3tFTZD7OtzDrZ5/Gdka09ZcbcrjWirp/sV6 b8y1cNvHg8sTYU5Av7rV8RZDYRRKtWYKENy2mEwgsV5kgtG1cdd5NwwrHxKTWnfCx2zv /EXg== X-Forwarded-Encrypted: i=1; AHgh+RrdM0neTqhO3Tb+BWLgu6wGwNbOWhY8k2Qx/lJACH8xcvyDucZx3rHmp3J2bs77zIKTS/ULGE16ssUbBPM=@vger.kernel.org X-Gm-Message-State: AFuF++luoslEiHqHGgOEeXgLBIGiq4PC2WU7k6vMnE47SoTCtF6xv1gE zco6lrfpberSAUesOWLjaaN3SV+GXWsoTBEWTfAfRmAsVIqnKFGQY4TUhtR3KqoeFixMnhb4Jxw s7Er80KrTf+geANmX1LLJh1kmcrPj9M77ct7A63u1weWaGaIxVii/1gN4k/E/SDrxO6A= X-Gm-Gg: AR+sD10H0YpiXxrBggXUS/2ndJJ7DLcyaWitGLuF2gYH47fnIzVjRwDxY+EU+sTrB9I 0HvY76caSesyVVyBqZfMnOBK5tSnE4fnlrwIH6zIXhQTKicuL5dutKJR6Vp5Yupn8VV/CxLVncY CprpaOE8JRkBULykKIZKdndxWyv6QkeBYgl0ssamVZ0DgUDJdgyYREU5IdkAE34XizWmhtDx1Fj i9Dc5Ws/yaZj6IbmjqQUPYuYxpwTpGWG6P3taiA7Rz6qkbPOocVd3HLHsrRdxutrGxHynrBo4DH 0ixzMYDY0zn02Fn3CP5/DJgMZpQ1I9plUgpaHPtro+q9gwjGx3olxnBaIZEX9MSIufFCR/9CaOe mq9dfUhNZznqC3HzxhWWiJs24oCbhzQ== X-Received: by 2002:a17:90b:5484:b0:37d:f983:7b5 with SMTP id 98e67ed59e1d1-3958110cfc4mr24511166a91.9.1787231837591; Thu, 20 Aug 2026 06:17:17 -0700 (PDT) X-Received: by 2002:a17:90b:5484:b0:37d:f983:7b5 with SMTP id 98e67ed59e1d1-3958110cfc4mr24511026a91.9.1787231837065; Thu, 20 Aug 2026 06:17:17 -0700 (PDT) Received: from [10.219.56.166] ([202.46.23.19]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-1416ae143edsm32627819c88.10.2026.08.20.06.17.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 20 Aug 2026 06:17:16 -0700 (PDT) Message-ID: Date: Thu, 20 Aug 2026 18:47:05 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 05/15] iommu: Add QDA compute context bank bus to iommu_buses To: Jason Gunthorpe , Krzysztof Kozlowski Cc: Oded Gabbay , Jonathan Corbet , Shuah Khan , Randy Dunlap , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , "Joerg Roedel (AMD)" , Will Deacon , Robin Murphy , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Sumit Semwal , =?UTF-8?Q?Christian_K=C3=B6nig?= , Bharath Kumar , Chenna Kesava Raju , srinivas.kandagatla@oss.qualcomm.com, dmitry.baryshkov@oss.qualcomm.com, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-doc@vger.kernel.org, linux-arm-msm@vger.kernel.org, llvm@lists.linux.dev, iommu@lists.linux.dev, linux-media@vger.kernel.org, linaro-mm-sig@lists.linaro.org References: <20260817-qda-v2-v2-0-69a02e9090d4@oss.qualcomm.com> <20260817-qda-v2-v2-5-69a02e9090d4@oss.qualcomm.com> <20260817134416.GA1415075@ziepe.ca> <89ec74da-15ed-4278-b651-5c753fa4f146@oss.qualcomm.com> <20260818130724.GA5482@ziepe.ca> Content-Language: en-US From: Ekansh Gupta In-Reply-To: <20260818130724.GA5482@ziepe.ca> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Proofpoint-Spam-Info: AW1haW4tMjYwODIwMDA5OSBTYWx0ZWRfX2fyPM2dD1BfX 36U0mT0jGtyeci3/jX4hiflMI9p/SRe8MdFPIkA+EqjFKxD388Egj3kmZUKQMbFAmkE6zXiMTr8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Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-08-19_06,2026-08-19_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 bulkscore=0 adultscore=0 impostorscore=0 lowpriorityscore=0 priorityscore=1501 phishscore=0 clxscore=1015 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2608200099 On 18-08-2026 18:37, Jason Gunthorpe wrote: > On Tue, Aug 18, 2026 at 10:40:25AM +0530, Ekansh Gupta wrote: > >> The CB child nodes are not separate addressable hardware — they are SMMU >> stream-ID assignments described as sub-resources of the parent DSP >> interface. > > So this is exactly the same thing. > > Read my remarks here: > https://lore.kernel.org/linux-iommu/20260618151745.GD231643@ziepe.ca/ > > The DT modeling for devices that have multiple stream-IDs is to list > them all in iommus list. > > If you don't like that DT modeling then you need to start out by > explaining why not very clearly. > > There is undeniably a Linux gap where it forces all streams in the > iommus property to share a translation. This is a *linux* problem in > the iommu subsystem and DMA API. In an ideal world it should not be > fixed by hacking up new busses or mangling the DT. > > But of the easy options I think hacking in new busses is the worst > option and has already been basically NAK'd for the hamoa project so > please don't use it here for a diferent qualcomm IP. > > Given several qualcomm chips now have this same issue I strongly > suggest qualcomm consider trying to fix the root cause and provide > some way for a Linux driver to progmatically "unbundle" the multiple > streams. > > It would be much easier if the HW properly supported actual sub > streams as we do already have a programming model for PASID. Maybe > some kind of driver thing to reconstruct the iommus so that each entry > is exposed as a PASID in the API instead of an alias or something like > that would be an easy direction. > > Jason Hi Jason, Thank you for the detailed analysis and the pointers to the VPU discussion. I understand your concern about proliferating custom buses for this class of problem. I'm exploring an alternative approach that avoids the custom bus entirely and will try to address this in the next revision. //Ekansh