From: Ekansh Gupta <ekansh.gupta@oss.qualcomm.com>
To: Krzysztof Kozlowski <krzk@kernel.org>,
Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Cc: "Oded Gabbay" <ogabbay@kernel.org>,
"Jonathan Corbet" <corbet@lwn.net>,
"Shuah Khan" <skhan@linuxfoundation.org>,
"Randy Dunlap" <rdunlap@infradead.org>,
"Nathan Chancellor" <nathan@kernel.org>,
"Nick Desaulniers" <ndesaulniers@google.com>,
"Bill Wendling" <morbo@google.com>,
"Justin Stitt" <justinstitt@google.com>,
"Joerg Roedel (AMD)" <joro@8bytes.org>,
"Will Deacon" <will@kernel.org>,
"Robin Murphy" <robin.murphy@arm.com>,
"Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>,
"Maxime Ripard" <mripard@kernel.org>,
"Thomas Zimmermann" <tzimmermann@suse.de>,
"David Airlie" <airlied@gmail.com>,
"Simona Vetter" <simona@ffwll.ch>,
"Sumit Semwal" <sumit.semwal@linaro.org>,
"Christian König" <christian.koenig@amd.com>,
"Bharath Kumar" <quic_bkumar@quicinc.com>,
"Chenna Kesava Raju" <quic_chennak@quicinc.com>,
srinivas.kandagatla@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 03/15] accel/qda: Add initial QDA DRM accelerator driver
Date: Tue, 8 Sep 2026 13:15:32 +0530 [thread overview]
Message-ID: <a3b73723-9522-40da-806a-643093b1b227@oss.qualcomm.com> (raw)
In-Reply-To: <c806d7c5-98f8-4b0b-9d00-969e1917a8e4@oss.qualcomm.com>
On 31-08-2026 20:28, Ekansh Gupta wrote:
> On 20-08-2026 19:01, Krzysztof Kozlowski wrote:
>> On 20/08/2026 12:07, Dmitry Baryshkov wrote:
>>> On Thu, Aug 20, 2026 at 11:07:45AM +0200, Krzysztof Kozlowski wrote:
>>>>>>>>
>>>>>>>> Device node with this compatible is already populated, so this looks
>>>>>>>> simply wrong or you are adding a duplicated driver.
>>>>>>>>
>>>>>>>> That's a no-go, you are supposed to work with existing drivers and grow
>>>>>>>> them.
>>>>>>> I'll bring the discussion again here, there was a discussion to move the
>>>>>>> driver to accel subsystem if we want to support new features/uAPI
>>>>>>> changes. Please read [1],[2] threads. The intention is to replace
>>>>>>> fastrpc driver with QDA eventually.
>>>>>>
>>>>>> None of them address the problem. You want to grow fastrpc into user of
>>>>>> dmabuf? So you move it from misc to here.
>>>>>
>>>>> It's not as easy and nice, so I think in this case it's better to repeat
>>>>
>>>> I disagree. The existing fastrpc driver is not that complicated. It's
>>>> actually moderate amount of code, much less than Venus was (~7 times less).
>>>>
>>>> It easily can grow to support two interfaces and the only difficulty is
>>>> how to manage these two interfaces simultaneously or exclusively, e.g.
>>>> opening first one disables the second.
>>>
>>> I see the point here.
>>>
>>> Would it be acceptable if we add QDA support only on the new platforms
>>> (e.g. via the SoC-specific compat), provide QDA for those platforms,
>>> and, once it reaches complete API and feature parity, we remove the old
>>> fastrpc driver, migrati old platforms.
>>
>> The problem with this approach is that we have no guarantees that it
>> will reach feature parity in respect of old interface, thus old driver
>> might stay forever. If we agree for duplicated driver, contributors have
>> no incentives to support old approach.
> That's a fair concern. Let me lay out the sequence we have in mind and
> then the concrete reasons parity is not optional for us.
>
> The plan is staged. QDA is enabled first on new platforms, where there
> is no existing userspace to migrate and the new UAPI can be exercised
> properly. In parallel we close the remaining feature gaps against
> fastrpc. Once parity is reached we migrate the older platforms onto QDA
> and remove drivers/misc/fastrpc.c. The end state is one driver, not two.
>
> On why parity will actually happen: the DSP firmware is not changing.
> Both drivers implement the same base protocol against the same firmware
> image, so the feature set is defined by that firmware interface, not by
> what we feel like implementing. For QDA to support a feature at all it
> has to implement the same protocol operations fastrpc already does.
> Parity is a property of the interface rather than of contributor enthusiasm.
>
> Other than the base protocol, there are some features(daemons,
> capability, session sharing) that exist in fastrpc for performance etc.
> but are not yet part of QDA. We want to implement them properly rather
> than port them across as they stand.
>
> The remaining question is how fastrpc can actually be removed once
> parity exists, without breaking existing userspace. That needs a
> compatibility path, and it is a deliverable we are committed to rather
> than an afterthought. For that, we need to settle is whether that path
> is a userspace shim in the library, an in-kernel translation layer
> exposing the legacy device nodes, or a hybrid. We evaluated an in-kernel
> shim during v1 and hit constraints around constructing per-client
> drm_file contexts from outside the DRM core, so the approach is still
> open. I'll come back with a concrete proposal, and it will land before
> fastrpc is removed rather than after.
>
>>
>> Much better is to refine the old driver, gradually adding new features
>> while maintaining old stuff. This is the only way we can force
>> contributors to actively work on minimizing duplicate parts.
>>
> I believe you are suggesting we bring the new features we are developing
> with DRM core utilities into the fastrpc driver. I don't think the two
> interfaces can share one driver, though, and it isn't a question of code
> size.
>
> fastrpc is a miscdevice: it accepts raw DMA-BUF fds as arguments and
> tracks buffers in its own per-file lists, with the fd itself being the
> buffer identity visible to the DSP. QDA is a drm_driver whose buffers
> are GEM objects in a per-drm_file handle namespace, with PRIME used for
> import and the GEM handle being the identity. These are two different
> buffer ownership models, and neither can be expressed on the other's
> file type.
>
> Supporting both from one driver therefore means carrying both models
> simultaneously: two IOCTL surfaces, two buffer lifetimes, two teardown
> paths, and a memory manager that has to serve both. That is two drivers
> sharing a directory rather than one driver with two interfaces, and I
> think it would be harder to review, and harder to eventually untangle,
> than a separate driver with a stated removal plan.
>
> There is also a positive reason for being in the accel subsystem rather
> than misc. We can build on existing DRM infrastructure instead of
> reimplementing it: GEM for buffer management, the device and file
> lifecycle, and the debug infrastructure. It also positions us for work
> we have planned around scheduling, drm_gpuvm, etc. Over time this should
> mean less driver-specific code, not more.
>
> I'll restructure the cover letter so the staged rollout, the
> compatibility path and the eventual removal of drivers/misc/fastrpc.c
> are stated properly.
>
> If after this you still want to add or change anything, please let me know.
>
> Thanks,
> Ekansh> Best regards,
Gentle ping on this thread. Wanted to check if there's any update on the
compatible string and coexistence question above, since it's currently
blocking respin.
Thanks,
Ekansh
>> Krzysztof
>
next prev parent reply other threads:[~2026-09-08 7:45 UTC|newest]
Thread overview: 84+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-17 4:47 [PATCH v2 00/15] accel/qda: Qualcomm DSP Accelerator driver Ekansh Gupta
2026-08-17 4:47 ` [PATCH v2 01/15] MAINTAINERS: Add entry for Qualcomm DSP Accelerator (QDA) driver Ekansh Gupta
2026-08-18 19:22 ` Krzysztof Kozlowski
2026-08-19 13:05 ` Ekansh Gupta
2026-08-19 14:16 ` Krzysztof Kozlowski
2026-08-20 4:12 ` Ekansh Gupta
2026-08-17 4:47 ` [PATCH v2 02/15] accel/qda: Add QDA driver documentation Ekansh Gupta
2026-08-17 4:47 ` [PATCH v2 03/15] accel/qda: Add initial QDA DRM accelerator driver Ekansh Gupta
2026-08-18 19:10 ` Krzysztof Kozlowski
2026-08-19 13:17 ` Ekansh Gupta
2026-08-19 14:18 ` Krzysztof Kozlowski
2026-08-20 8:52 ` Dmitry Baryshkov
2026-08-20 9:07 ` Krzysztof Kozlowski
2026-08-20 10:07 ` Dmitry Baryshkov
2026-08-20 13:31 ` Krzysztof Kozlowski
2026-08-31 14:58 ` Ekansh Gupta
2026-09-08 7:45 ` Ekansh Gupta [this message]
2026-08-17 4:47 ` [PATCH v2 04/15] accel/qda: Add compute bus for QDA context banks Ekansh Gupta
2026-08-17 4:47 ` [PATCH v2 05/15] iommu: Add QDA compute context bank bus to iommu_buses Ekansh Gupta
2026-08-17 7:01 ` Joerg Roedel (AMD)
2026-08-17 13:44 ` Jason Gunthorpe
2026-08-18 5:10 ` Ekansh Gupta
2026-08-18 13:07 ` Jason Gunthorpe
2026-08-20 13:17 ` Ekansh Gupta
2026-08-17 4:47 ` [PATCH v2 06/15] accel/qda: Create compute context bank devices on QDA compute bus Ekansh Gupta
2026-08-17 4:47 ` [PATCH v2 07/15] accel/qda: Add memory manager for CB devices Ekansh Gupta
2026-08-17 6:52 ` Dmitry Baryshkov
2026-08-18 4:33 ` Ekansh Gupta
2026-08-18 4:44 ` Dmitry Baryshkov
2026-08-17 4:47 ` [PATCH v2 08/15] accel/qda: Add QUERY IOCTL and QDA UAPI header Ekansh Gupta
2026-08-17 6:58 ` Dmitry Baryshkov
2026-08-18 4:40 ` Ekansh Gupta
2026-08-18 4:45 ` Dmitry Baryshkov
2026-08-17 4:47 ` [PATCH v2 09/15] accel/qda: Add DMA-backed GEM objects and memory manager integration Ekansh Gupta
2026-08-18 3:42 ` Dmitry Baryshkov
2026-08-18 5:51 ` Ekansh Gupta
2026-08-18 3:48 ` Dmitry Baryshkov
2026-08-18 5:52 ` Ekansh Gupta
2026-08-24 14:30 ` Christian König
2026-08-24 15:07 ` Rob Clark
2026-08-25 13:59 ` Christian König
2026-08-26 13:45 ` Ekansh Gupta
2026-09-08 23:00 ` Dmitry Baryshkov
2026-08-26 17:00 ` Markus Elfring
2026-08-17 4:47 ` [PATCH v2 10/15] accel/qda: Add GEM_CREATE and GEM_MMAP_OFFSET IOCTLs Ekansh Gupta
2026-08-18 3:49 ` Dmitry Baryshkov
2026-08-18 5:54 ` Ekansh Gupta
2026-08-17 4:47 ` [PATCH v2 11/15] accel/qda: Add PRIME DMA-BUF import support Ekansh Gupta
2026-08-18 3:55 ` Dmitry Baryshkov
2026-08-18 6:25 ` Ekansh Gupta
2026-09-08 23:05 ` Dmitry Baryshkov
2026-08-17 4:47 ` [PATCH v2 12/15] accel/qda: Add FastRPC invocation support Ekansh Gupta
2026-08-18 4:19 ` Dmitry Baryshkov
2026-08-20 8:35 ` Ekansh Gupta
2026-09-08 23:16 ` Dmitry Baryshkov
2026-08-17 4:47 ` [PATCH v2 13/15] accel/qda: Add DSP process creation and release Ekansh Gupta
2026-08-17 4:47 ` [PATCH v2 14/15] accel/qda: Add remote memory mapping to DSP address space Ekansh Gupta
2026-08-18 19:13 ` [PATCH v2 00/15] accel/qda: Qualcomm DSP Accelerator driver Krzysztof Kozlowski
2026-08-18 19:21 ` Krzysztof Kozlowski
2026-08-19 13:32 ` Ekansh Gupta
2026-08-19 14:19 ` Krzysztof Kozlowski
2026-08-19 13:26 ` Ekansh Gupta
2026-08-19 14:21 ` Krzysztof Kozlowski
2026-08-19 14:38 ` Rob Clark
2026-08-19 14:40 ` Konrad Dybcio
2026-08-19 14:43 ` Krzysztof Kozlowski
2026-08-19 14:49 ` Rob Clark
2026-08-19 14:53 ` Krzysztof Kozlowski
2026-08-19 15:23 ` Rob Clark
2026-08-19 15:27 ` Krzysztof Kozlowski
2026-08-19 15:48 ` Rob Clark
2026-08-20 6:15 ` Krzysztof Kozlowski
2026-08-20 14:47 ` Rob Clark
2026-08-26 13:07 ` Ekansh Gupta
2026-09-08 22:44 ` Bjorn Andersson
2026-09-09 7:53 ` Ekansh Gupta
2026-09-09 8:02 ` Srinivas Kandagatla
2026-09-09 9:33 ` Ekansh Gupta
2026-09-09 11:48 ` Dmitry Baryshkov
2026-09-10 14:25 ` Bjorn Andersson
2026-09-10 14:35 ` Rob Clark
2026-09-11 10:32 ` Ekansh Gupta
2026-08-18 19:18 ` Krzysztof Kozlowski
2026-08-19 13:23 ` Ekansh Gupta
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=a3b73723-9522-40da-806a-643093b1b227@oss.qualcomm.com \
--to=ekansh.gupta@oss.qualcomm.com \
--cc=airlied@gmail.com \
--cc=christian.koenig@amd.com \
--cc=corbet@lwn.net \
--cc=dmitry.baryshkov@oss.qualcomm.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=iommu@lists.linux.dev \
--cc=joro@8bytes.org \
--cc=justinstitt@google.com \
--cc=krzk@kernel.org \
--cc=linaro-mm-sig@lists.linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=maarten.lankhorst@linux.intel.com \
--cc=morbo@google.com \
--cc=mripard@kernel.org \
--cc=nathan@kernel.org \
--cc=ndesaulniers@google.com \
--cc=ogabbay@kernel.org \
--cc=quic_bkumar@quicinc.com \
--cc=quic_chennak@quicinc.com \
--cc=rdunlap@infradead.org \
--cc=robin.murphy@arm.com \
--cc=simona@ffwll.ch \
--cc=skhan@linuxfoundation.org \
--cc=srinivas.kandagatla@oss.qualcomm.com \
--cc=sumit.semwal@linaro.org \
--cc=tzimmermann@suse.de \
--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