Re: [PATCH 0/3] fix GART to respect device's dma_mask about virtual mappings

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: FUJITA Tomonori
Date: Thursday, September 18, 2008 - 3:15 pm

On Thu, 18 Sep 2008 20:20:29 +0200
Andi Kleen <andi@firstfloor.org> wrote:


Yeah, so the falling back mechanism was moved to pci-nommu's
alloc_coherent.



Do you mean if GART's alloc_coherent can't find a virtual address that
a device can access to, it should try GFP_DMA allocations as fallback?

GART could but why GART should do? If full IOMMUs' alloc_coherent
can't find a virtual address that a device can access to, it's
failure. No fallback is for them. Why can't GART use the same logic?
Yeah, GART is not a full IOMMU, so it can have a fallback for this
case. But why can't GART work in the same way other IOMMUs?



What does '32bit x86 doesn't handle' mean? pci-nommu's alloc_coherent
can handle < 32bit bit mask in the fallback path.

Or you are talking about '_map_sg/_map_single'? If so, as we
discussed, < 32bit bit mask can be handled in else where. The patch
just tries to return an address that such tricks are not necessary
with.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/3] add iommu_device_max_index IOMMU helper function, FUJITA Tomonori, (Fri Sep 12, 3:42 am)
[PATCH 2/3] add dma_get_mask helper function, FUJITA Tomonori, (Fri Sep 12, 3:42 am)
Re: [PATCH 0/3] fix GART to respect device's dma_mask abou ..., FUJITA Tomonori, (Thu Sep 18, 3:15 pm)