virt_to_bus for ppc64
Benjamin Herrenschmidt
benh at kernel.crashing.org
Wed Jan 28 08:50:34 EST 2004
On Wed, 2004-01-28 at 07:36, Julie DeWandel wrote:
> Hi,
>
> I'm playing around with 2.6 code and one of the modules I am building is
> looking for a virt_to_bus function. I was wondering if the following
> patch would be appropriate to use:
virt_to_bus is depcreated, but you probably know that :) The problem
is that on ppc64, you _MUST_ go through the PCI DMA API, because this
is the only way you'll have the iommu setup properly for your device
to be able to access main memory. virt_to_bus() cannot work.
Time for fixing this module...
Ben.
** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/
More information about the Linuxppc64-dev
mailing list