From: Christoph Hellwig <hch-jcswGhMUV9g@public.gmane.org>
To: Joerg Roedel <joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.org>
Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org
Subject: amd_iommu fallback question
Date: Thu, 5 Apr 2018 21:36:12 +0200 [thread overview]
Message-ID: <20180405193612.GA12474@lst.de> (raw)
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?
next reply other threads:[~2018-04-05 19:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-05 19:36 Christoph Hellwig [this message]
[not found] ` <20180405193612.GA12474-jcswGhMUV9g@public.gmane.org>
2018-04-06 18:23 ` amd_iommu fallback question Joerg Roedel
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=20180405193612.GA12474@lst.de \
--to=hch-jcswghmuv9g@public.gmane.org \
--cc=iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
--cc=joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.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;
as well as URLs for NNTP newsgroup(s).