Re: [PATCH 2.5.5] Conversion of hp100 to new PCI interface

Jeff Garzik (jgarzik@mandrakesoft.com)
Tue, 26 Feb 2002 21:11:15 -0500


>
> + /* Conversion to new PCI API :
> + * The memory block we use, lp->page_vaddr, was DMA allocated via
> + * pci_alloc_consistent(), so we just need to "retreive" the
> + * original mapping to bus/phys address - Jean II */
> ringptr->pdl = pdlptr + 1;
> - ringptr->pdl_paddr = virt_to_bus(pdlptr + 1);
> + ringptr->pdl_paddr = virt_to_phys(pdlptr + 1);

Nope.. You need to use the mapping value obtained from
pci_alloc_consistent...

Note for ISA (and EISA and VLB) devices, you also call
pci_alloc_consistent. You pass NULL for the pci device.

Jeff

-- 
Jeff Garzik      | "UNIX enhancements aren't."
Building 1024    |           -- says /usr/games/fortune
MandrakeSoft     |
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/