From: Alan Cox <alan@linux.intel.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Alessandro Rubini <ru@gnudd.com>,
fujita.tomonori@lab.ntt.co.jp, tglx@linutronix.de,
mingo@redhat.com, hpa@zytor.com, x86@kernel.org,
linux-kernel@vger.kernel.org, giancarlo.asnaghi@st.com,
maddalena.brattoli@st.com
Subject: Re: a question on DMA and remapping
Date: Tue, 22 Nov 2011 23:00:19 +0000 [thread overview]
Message-ID: <20111122230019.3304ecdf@bob.linux.org.uk> (raw)
In-Reply-To: <20111117154729.afa24f07.akpm@linux-foundation.org>
> Generalising the existing code to cover more cases isn't a bad thing
> to do. Others might be able to use it, and they surely won't be able
> to use any cloned-and-owned swiotlb.c.
If you look on the kernel list there has also been some discussion and
work recently towards removing a lot of the duplication between the
iommu devices.
I think really you need to be an actual iommu instance because in
reality you are. Trying to fudge it any other way breaks the moment
someone tries to do a device to device DMA transfer because your
bus/phys mapping seen from your device and the bus/phys mapping seen
from another device into your device do not match as I understand it.
Alan
prev parent reply other threads:[~2011-11-22 22:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-17 23:30 a question on DMA and remapping Alessandro Rubini
2011-11-17 23:47 ` Andrew Morton
2011-11-22 23:00 ` Alan Cox [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=20111122230019.3304ecdf@bob.linux.org.uk \
--to=alan@linux.intel.com \
--cc=akpm@linux-foundation.org \
--cc=fujita.tomonori@lab.ntt.co.jp \
--cc=giancarlo.asnaghi@st.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=maddalena.brattoli@st.com \
--cc=mingo@redhat.com \
--cc=ru@gnudd.com \
--cc=tglx@linutronix.de \
--cc=x86@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;
as well as URLs for NNTP newsgroup(s).