From: Lizhi Hou <lizhi.hou@amd.com>
To: Christoph Hellwig <hch@lst.de>, Vinod Koul <vkoul@kernel.org>,
"Nishad Saraf" <nishads@amd.com>
Cc: <dmaengine@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: Re: Please revert the addition of the AMD QDMA driver
Date: Mon, 16 Sep 2024 16:48:59 -0700 [thread overview]
Message-ID: <4fe5374e-8eb2-9ff6-e2ea-e55342c59de6@amd.com> (raw)
In-Reply-To: <20240916074051.GA18902@lst.de>
Hi Christoph and Vinod,
Sorry, I did not know the limitation of get/set_dma_ops.
Instead of reverting the entire driver, is it ok to put a fix on top to
address this issue?
Thanks,
Lizhi
On 9/16/24 00:40, Christoph Hellwig wrote:
> Hi Vinod,
>
> I just noticed you added the AMD QDMA driver for this merge window,
> which is completely broken in terms of DMA API usage by using the
> private get/set_dma_ops APIs. These were never for driver use (
> and I've been working for years to fix the few abusers), but with the
> DMA changes in 6.12 it actually can't work at all, as the dma-iommu
> driver now also sets NULL DMA ops in addition to dma-direct.
>
> As a reminder drivers must never try to inherit dma settings from
> one device or another, instead pass the actual DMA device to whatever
> layer does the DMA mapping. Without that you break all kinds of
> thing.
>
>
next prev parent reply other threads:[~2024-09-16 23:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-16 7:40 Please revert the addition of the AMD QDMA driver Christoph Hellwig
2024-09-16 23:48 ` Lizhi Hou [this message]
2024-09-17 4:39 ` Christoph Hellwig
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=4fe5374e-8eb2-9ff6-e2ea-e55342c59de6@amd.com \
--to=lizhi.hou@amd.com \
--cc=dmaengine@vger.kernel.org \
--cc=hch@lst.de \
--cc=linux-kernel@vger.kernel.org \
--cc=nishads@amd.com \
--cc=vkoul@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