Re: How to replace bus_to_virt()?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 1 May 2006, Stefan Richter wrote:

> 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

I would be, obviously, interested to hear any results with that one.

Thanks
Guennadi
---
Guennadi Liakhovetski
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux