Devicetree
 help / color / mirror / Atom feed
From: Jason Gunthorpe <jgg@ziepe.ca>
To: Konrad Dybcio <konradybcio@gmail.com>
Cc: Krzysztof Kozlowski <krzk@kernel.org>,
	Vishnu Reddy <busanna.reddy@oss.qualcomm.com>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	devicetree@vger.kernel.org,
	Vikash Garodia <vikash.garodia@oss.qualcomm.com>,
	Robin Murphy <robin.murphy@arm.com>,
	joro@8bytes.org, will@kernel.org, m.szyprowski@samsung.com,
	iommu@lists.linux.dev, linux-kernel@vger.kernel.org,
	dikshita.agarwal@oss.qualcomm.com,
	Bjorn Andersson <bjorn.andersson@oss.qualcomm.com>,
	Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>,
	Robin Clark <robclark@qti.qualcomm.com>,
	Akhil P Oommen <akhilpo@oss.qualcomm.com>,
	Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>,
	Ekansh Gupta <ekansh.gupta@oss.qualcomm.com>,
	Loic Poulain <loic.poulain@oss.qualcomm.com>
Subject: Re: [PATCH] dma-iommu: Introduce API to reserve IOVA regions for dynamically created devices
Date: Fri, 17 Jul 2026 13:07:16 -0300	[thread overview]
Message-ID: <20260717160716.GA701389@ziepe.ca> (raw)
In-Reply-To: <dba037fa-0f21-4a50-8727-076a3b177c47@gmail.com>

On Fri, Jul 17, 2026 at 12:44:54PM +0200, Konrad Dybcio wrote:

> I was kinda hoping there would be more buy-in to follow what PCIe
> does, but to my understanding you're opposed to it because "vpu_bus"
> is not dynamically discoverable.

PCIe allows describing devices in DT. What this weird vpu_bus thing
seems to be about is to actively avoid describing the devices in DT
while simultaenously treating them like devices. I think it makes no
sense..

IMHO the approach inverts the thing, you start the main driver then
use vpu_bus to dynamically create a bunch of struct device DMA handles
for the main driver to use.

I think it is much better if you start the main driver, use the new
component stuff:

https://docs.kernel.org/driver-api/component.html

To aggregate a driver from the struct device DMA handles that DT will
create automatically. ie the reversed flow, the struct devices
pre-exist created by DT instead of being created by code in your
driver.

Jason

      parent reply	other threads:[~2026-07-17 16:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20260119054936.3350128-1-busanna.reddy@oss.qualcomm.com>
     [not found] ` <cfd23f75-8952-4463-abd5-815b995031b0@arm.com>
     [not found]   ` <bb59f07e-ca7e-f012-6a4b-0a148350b69c@oss.qualcomm.com>
     [not found]     ` <20260612172649.GM1066031@ziepe.ca>
     [not found]       ` <da77c21d-25b3-46c3-a48f-71f0549e9f5f@oss.qualcomm.com>
     [not found]         ` <20260615125257.GS1066031@ziepe.ca>
     [not found]           ` <dcc0d02e-91fb-ddbe-399a-0191bab94c4f@oss.qualcomm.com>
2026-06-17 19:40             ` [PATCH] dma-iommu: Introduce API to reserve IOVA regions for dynamically created devices Jason Gunthorpe
2026-06-18 11:57               ` Krzysztof Kozlowski
2026-06-18 15:17                 ` Jason Gunthorpe
2026-06-24 10:16                   ` Krzysztof Kozlowski
2026-07-17 10:44                   ` Konrad Dybcio
2026-07-17 12:21                     ` Robin Murphy
2026-07-17 16:07                     ` Jason Gunthorpe [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260717160716.GA701389@ziepe.ca \
    --to=jgg@ziepe.ca \
    --cc=akhilpo@oss.qualcomm.com \
    --cc=bjorn.andersson@oss.qualcomm.com \
    --cc=busanna.reddy@oss.qualcomm.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dikshita.agarwal@oss.qualcomm.com \
    --cc=dmitry.baryshkov@oss.qualcomm.com \
    --cc=ekansh.gupta@oss.qualcomm.com \
    --cc=iommu@lists.linux.dev \
    --cc=joro@8bytes.org \
    --cc=konradybcio@gmail.com \
    --cc=krzk+dt@kernel.org \
    --cc=krzk@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=loic.poulain@oss.qualcomm.com \
    --cc=m.szyprowski@samsung.com \
    --cc=robclark@qti.qualcomm.com \
    --cc=robh@kernel.org \
    --cc=robin.murphy@arm.com \
    --cc=srinivas.kandagatla@oss.qualcomm.com \
    --cc=vikash.garodia@oss.qualcomm.com \
    --cc=will@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox