From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f169.google.com (mail-qk1-f169.google.com [209.85.222.169]) (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 1B93A472520 for ; Tue, 18 Aug 2026 13:07:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787058449; cv=none; b=nc0mFTAOt2mHobB+PzZpKOXWq9UXuPQlDdNtu++ch3qacjjn70lPr+yvLaiNWQAig3TyXiMC8cbKj9Pi4sAovHnHftce50t0j04vuGI5ZJVHxSMqJqcaLjEtQEBUDw2UlDe+6my3iLl47CBIa5x1bQJqjRgN3kbp/WmuHOstJrY= 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=IMXjsW3Q; arc=none smtp.client-ip=209.85.222.169 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="IMXjsW3Q" Received: by mail-qk1-f169.google.com with SMTP id af79cd13be357-92e54f8c051so227911785a.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=vger.kernel.org; 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=IMXjsW3QZBuzmHSSfwoteRgKE8pXOM/DA7B4luXxKrXXjnwiHBFndm3cY42TgMqRxx KujU0k5lFeIIFd9c+/JD7t0bJXZYVitv18HnmwTsFK5KtA+1DJdVUFXoejfBlgkVbJ9c cKhCSEYO6LZ2VixXf8mJCoFhmTsWTXERJcu1rGWAckAGl9Te3+auHs1mfP6etHb2+GrL HJOaknnaFfoP0InWsK5H299Ndev3wwK0gAOnaCMtuaBp5RIBpro8il3J1Kejnwjl6gTm UjSiGZbRyzCNiVP+j9V4xfxCZ6EnW2BVERyKQh8dxAtSS5SlgttqlBfgfKsfdqNTB92y XsvQ== 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=gtVRvLyvhg5m3SzBxzHNDoO526wMjoFm1SEvuMbQgLOhLwDx2qxPL1VI+CBt6vu1ya BhwC+WsVJyaAicQ/P9kKMmejuijZyH9X+0LzAmw9kxL/heA1zmwSzQkYQvXRe1GuS7JA HBMo03EcdjlqQwrBIGc50vnh03rrM1ExsWrEvliKYGgPyWtQcF/dW+AlednmreaAvpMq b7sgyNdC+LE7n3FXhnTee4z5gu4PkFxaKVTFoOxilAktvRXfA6YL7y9EdgabOSH2sg7v FbulgIL/P72CFoFyIbm0tqTOCnXJBvJPX2jo0w8339LTkc9qApOwDtYa059hw8oGip3B 1ikw== X-Forwarded-Encrypted: i=1; AHgh+RoXVLmxWYToHOMdG1liGxGV3Qc3llSYJgx3QBueygSOxVcXhUoVRwrPPCxfPJXYaSsZdjMV1AMZXO6Rpt0=@vger.kernel.org X-Gm-Message-State: AOJu0YzXTn/91SNx5ZSCzsBQdmSpD+1XdeyeFkO3Xqc4oDcAmJVYnV/M S5Z9NfJA+2OU+WXLnkuESi/87IMcJztpz553Cph7mgSKbBeqYL9+gpUABrKHs5Hgew0= X-Gm-Gg: AR+sD12RlA3nI9bKytW6CopW1JrcDTc7OIn85d3e5sFV5fR2W54Okk1RwwaEQVEKJ9N TehifRNajTg7+YWxCmGyvWee5TcHYcT7nPr5qYutQXKMcN/0cF3L78yWfDljoN+B2YJYxuXEHlP 8uFiXS10l5IDYYXAJFFy1ZoYHEBIg2D64593C4sKCYLn9pfx4o4HVjLn1inqbGH1qViOPXXKln7 LYwulxp16ot/Ix8bGQef6LrojAjRj+MFFrs1UMLjP9tQMXA2u40IrKQCfXcYeXNT8h/cOJD2OuY puYnRCTLKUrYcmxWhJdvJlM+PAfyvAgWfJfMJHDJzE0TXk7JrpLXqNNOaV0ZdpTCgC17Pm+2EMD 8j/wbdqJuzLK9QXR6K/Ehcr8EhlCnI7J3xz1l84qf3R8mePqrFvTKSW7Tl2zuwkr5vbAmrSvGRf buZafJCTkligbMzOdBGaSbBY6oXxEQcH3Vm6k33n7M3XDjAEDkfde9IxeyJCGOEq8PFRyQMqPQA k/WS3WqEqAncp8wyCKoBd1wL0AJwZ5kKyY+NKCAtJUEgA== 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: linux-kernel@vger.kernel.org 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