Re: [LIP] pci_alloc_consistent usage in x86-64 kernel
Arun Sharma <[email protected]>
| Newsgroups | gmane.user-groups.linux.india.programmers |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Jun 10, 2004 at 04:07:16AM +0000, Sathya Prakash V wrote:
> Note: in x86-64, If there is no_iommu space to allocate mapping then
> pci_single just returns the iommu bus base
>
> iommu_page = alloc_iommu(npages);
> if (iommu_page == -1) {
> iommu_full(dev, addr, size, dir);
> return iommu_bus_base;
> }
>
> So I feel there is no point we will be getting error in mapping? is my
> conclusion right?
iommu_full() is for debugging purposes only. Read the comment there. If
you get into iommu_full(), you have a problem. That shouldn't happen in
your driver.
-Arun
-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the
one installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504