From: Stefan Richter <stefanr@s5r6.in-berlin.de>
To: Arjan van de Ven <arjan@infradead.org>
Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org
Subject: Re: How to replace bus_to_virt()?
Date: Mon, 01 May 2006 01:40:46 +0200 [thread overview]
Message-ID: <44554AFE.30804@s5r6.in-berlin.de> (raw)
In-Reply-To: <1146412215.20760.10.camel@laptopd505.fenrus.org>
Arjan van de Ven wrote:
> On Sun, 2006-04-30 at 16:52 +0200, Stefan Richter wrote:
>>is there a *direct* future-proof replacement for bus_to_virt()?
>>
>>It appears there are already architectures which do not define a
>>bus_to_virt() funtion or macro. If there isn't a direct replacement, is
>>there at least a way to detect at compile time whether bus_to_virt() exists?
>
>
> I'd go one step further: given a world with iommu's, and multiple pci
> domains etc, how can you know there even IS such a translation possible
> (without first having set it up from the other direction)?
Well, we actually do set it up from the other direction. But in a way
that does not work with IOMMUs...
AFAIU, the patch "dc395x: dynamically map scatter-gather for PIO" [1] by
Guennadi Liakhovetski is dealing with the same issue. I am not yet clear
whether I could adopt this method for sbp2.
[1] http://marc.theaimsgroup.com/?l=linux-scsi&t=114400790300004
--
Stefan Richter
-=====-=-==- -=-= ----=
http://arcgraph.de/sr/
next prev parent reply other threads:[~2006-04-30 23:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-30 14:52 How to replace bus_to_virt()? Stefan Richter
2006-04-30 15:50 ` Arjan van de Ven
2006-04-30 23:40 ` Stefan Richter [this message]
2006-05-03 19:11 ` Guennadi Liakhovetski
2006-05-03 20:35 ` linux-os (Dick Johnson)
2006-05-03 21:01 ` Arjan van de Ven
2006-05-01 12:30 ` Segher Boessenkool
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=44554AFE.30804@s5r6.in-berlin.de \
--to=stefanr@s5r6.in-berlin.de \
--cc=arjan@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.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