* amd_iommu fallback question
@ 2018-04-05 19:36 Christoph Hellwig
[not found] ` <20180405193612.GA12474-jcswGhMUV9g@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Christoph Hellwig @ 2018-04-05 19:36 UTC (permalink / raw)
To: Joerg Roedel; +Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA
Hi Joerg,
I've got a little question on the amd_iommu code, hope you (or someone
else on the list) can answer it. Most of the dma_map_ops methods have
a fallback for the case when get_domain() return -EINVAL, which basically
duplicates the normal no-iommu implementation, with the map_sg method
being and exception that always returns and error (return value of 0
is an error for its calling convention). Is that an oversight? If yes
so I wonder why it hasn't been caught yet. Or is the whole fallback
code dead and can be removed?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: amd_iommu fallback question
[not found] ` <20180405193612.GA12474-jcswGhMUV9g@public.gmane.org>
@ 2018-04-06 18:23 ` Joerg Roedel
0 siblings, 0 replies; 2+ messages in thread
From: Joerg Roedel @ 2018-04-06 18:23 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA
Hi Christoph,
On Thu, Apr 05, 2018 at 09:36:12PM +0200, Christoph Hellwig wrote:
> I've got a little question on the amd_iommu code, hope you (or someone
> else on the list) can answer it. Most of the dma_map_ops methods have
> a fallback for the case when get_domain() return -EINVAL, which basically
> duplicates the normal no-iommu implementation, with the map_sg method
> being and exception that always returns and error (return value of 0
> is an error for its calling convention). Is that an oversight? If yes
> so I wonder why it hasn't been caught yet. Or is the whole fallback
> code dead and can be removed?
Yeah, the fall-back code is basically dead since the amd driver uses
per-device dma_ops. It was just an oversight that it is not removed yet.
Joerg
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-04-06 18:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-05 19:36 amd_iommu fallback question Christoph Hellwig
[not found] ` <20180405193612.GA12474-jcswGhMUV9g@public.gmane.org>
2018-04-06 18:23 ` Joerg Roedel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).