From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f171.google.com (mail-qk1-f171.google.com [209.85.222.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1D77147254C for ; Tue, 18 Aug 2026 13:07:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787058449; cv=none; b=S0TUnNFSUmzqmo9QeBBX5PgjUI4F2uvryUu7irVTwt3Ky5fcuj+fT+d1f3MPwpYYSlVKbrYMsPVJa9z16abvsyhJodVEfbF2s7j6YTdqC/0jzBdzP0QTlC2uIjJczN+qxXnb5CcMOGvZKQHm9joffekQ+cE8JfKWrSu4Hn9awJ0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787058449; c=relaxed/simple; bh=aU2VtRXj8vmLbAKszI/rzjIGfSjXrWM/1EcRNLc+2zY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ldiITj/utclcTDl1RgTghGnR52X/YWNnwLY/z3gfuc6bT2wjXBUOh/zTADqIGhyw+Bq4RBguiQ7uxaqxdfQjZKh4KV8mXEqg4NgUpAbmw3zTQHkmzlzNuFr0tiZqCk7Drk4UpsfG3w2XdVGw9iE8u+WK7gzrNXnDk2jKlgRUBf0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca; spf=pass smtp.mailfrom=ziepe.ca; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b=US+l9vk3; arc=none smtp.client-ip=209.85.222.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="US+l9vk3" Received: by mail-qk1-f171.google.com with SMTP id af79cd13be357-92e54f8c051so227911985a.3 for ; Tue, 18 Aug 2026 06:07:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1787058446; x=1787663246; darn=lists.linux.dev; h=in-reply-to:content-transfer-encoding:content-disposition :content-type:mime-version:references:message-id:subject:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to:content-type; bh=k6wSKG5ykq4Q6C1KtG/SKHUImq95NPkNyQJpM3ppYMA=; b=US+l9vk3HFTzG/7QOn8gBkUGmXS4OC1SiMpxA7FsOFKttoZIxwIeQafx4QROIJYvB9 Eiqhp8ukczm9tQIhnICLehoeTfTdFfOPzLoF1+MQ1Go0NAqcCY4OZwMpUyIKuYrAEget /tWMm/Ved1S2+XntulFcMTArODnJaMQgDGjj+JzuRejFLIumKfuMRVr0LvNurMh61uA7 MNCqfxv/M5ZBkx55CuCZpPm0UHAIA532Wlx6z0+g0aooX4Au0hJrBDr4ONZDrUXcy4m2 7aV2EXmr7tWlcXboJIBs+5fSc/IwMPU2yaYtvu9qoHM+clzrqv4P44qc3M2v71YKNmbR qrGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787058446; x=1787663246; h=in-reply-to:content-transfer-encoding:content-disposition :content-type:mime-version:references:message-id:subject:cc:to:from :date:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=k6wSKG5ykq4Q6C1KtG/SKHUImq95NPkNyQJpM3ppYMA=; b=SxpTlMSdZw3zQBNprIQ2MEr9eoHI1LLVtW7bx2xFNa0G2eTWFWdV2KyysqA3U6hFy8 GqFEmsZfpXxMoi1Chmb7SIV7em5BhHGkLiJiUOh665WGZYNDf9IfAE1vyjvlrHyFRKAQ fMTs9bqecwndSw676Af20RbNTf9tJiImlFZ5gokeYAD7rFrlt9gHliQMUCdhobOX17SK PsIY1ZmA7wtIvnIqtm0zb/7xeAKlj2oX/3os6GXhg94fMHk+fQ6sUL9/MiqM/DckzgfO WtEzT2KVHJmZEcKUSdoVPGali0yFI16+eQbVUScnX4RPO16XB3z0z98F4BhLlAWkVtR2 mhkw== X-Forwarded-Encrypted: i=1; AHgh+RoE2VJ4AIutHeWMKjOT0csX8xDUuhGUlxAnHZtgKuiPKfVvX8WzbcRts1RdmVGPUimobxh1rw==@lists.linux.dev X-Gm-Message-State: AOJu0YzsuXTZl0QnKRsY3JxPBft5ONZ+xkf3knqrSO44Y7Qqr+knpCA0 4NslQAod/8cSNu8EnpJQm4BImvixEsiEKHopePb6nGIWQ3SveNV/97eAUAJw5YXogEU= X-Gm-Gg: AR+sD11sbltdOiVggE2JMEGQ53iOgO+bwzbMTA4c942Isl1/jQvJ1uwsPZniUGOAM8E U6m6ZGyVP+g5kZobjSa9FeFsF1fCUL7l+WMD9yrDdLSv3UFMTNl+CZnzz12ceSzHbTkKvDFn43B 87kYqedzL/CrfcBks6mmrMPl+FHgHcYJGBnkUPd1o0WmAIGDHTh5ye+RSRGqka93UggT2/l9fyu WvwOMIlc9YvIZCsUCa0Y6fOA803+21Bv61ZGUVUI4BmxbJygsHZ2AetnnDW7igK4k1Vah9zKjDn 4xfhjOOubuCRXDsFYGhzM4ralrHlQsYCcj8JM5zzStEi8CEgNaJ8w8OjA5mcxfsUAygbtMLrg/j k19xFt6bE3k6hqjEcngAW3ntNPxhNHFQJ/0KsitJzVlLAlYVL6cR760o2rb0HZGh8k4YWlDmXxq godKKKVq9FZP1dlrYo5W44zsc2kcBVT3KgkVBj6zVagRcHBKfcoCGQbmHdrGOG3USKxGZrXfarI fbJC3epmUlZGNI+lnQN0wewCApJ2EmxBeXwdAqiUkISHA== X-Received: by 2002:a05:620a:4624:b0:934:aa56:45df with SMTP id af79cd13be357-93704af041cmr767327285a.11.1787058445831; Tue, 18 Aug 2026 06:07:25 -0700 (PDT) Received: from ziepe.ca (hlfxns010zw-159-2-239-150.pppoe-dynamic.high-speed.ns.bellaliant.net. [159.2.239.150]) by smtp.gmail.com with ESMTPSA id af79cd13be357-9370342b3b4sm281378685a.44.2026.08.18.06.07.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Aug 2026 06:07:25 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.97) (envelope-from ) id 1wwJXI-000000001zD-16ZT; Tue, 18 Aug 2026 10:07:24 -0300 Date: Tue, 18 Aug 2026 10:07:24 -0300 From: Jason Gunthorpe To: Ekansh Gupta , 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 , Christian =?utf-8?B?S8O2bmln?= , 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 Subject: Re: [PATCH v2 05/15] iommu: Add QDA compute context bank bus to iommu_buses Message-ID: <20260818130724.GA5482@ziepe.ca> 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> Precedence: bulk X-Mailing-List: iommu@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <89ec74da-15ed-4278-b651-5c753fa4f146@oss.qualcomm.com> 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