On Sun, 17 Aug 2008 14:56:14 +0200 Ingo Molnar <mingo@elte.hu> wrote:The above commit log of Prarit's patch is completely wrong (so I wrote this patch). To avoid misunderstanding, can you apply this patch with a proper description like this: = This patch changes GART IOMMU to return a size aligned address wrt dma_alloc_coherent, as DMA-mapping.txt defines: The cpu return address and the DMA bus master address are both guaranteed to be aligned to the smallest PAGE_SIZE order which is greater than or equal to the requested size. This invariant exists (for example) to guarantee that if you allocate a chunk which is smaller than or equal to 64 kilobytes, the extent of the buffer you receive will not cross a 64K boundary. But it is very unlikely that this matters. As DMA-mapping.txt explains, This invariant is to avoid the boundary problem (such as 64K). Now the majority of IOMMUs including GART (except for Intel IOMMU) don't allocate a buffer that crosses a 64K boundary wrt all the DMA mapping interfaces (dma_alloc_coherent, dma_map_sg, and dma_map_single) because of segment_boundary_mask in struct device_dma_parameters. --
| Linus Torvalds | Linux 2.6.21-rc4 |
| Greg Kroah-Hartman | [PATCH 008/196] Chinese: add translation of volatile-considered-harmful.txt |
| Andrew Morton | -mm merge plans for 2.6.23 |
| Stephane Eranian | Re: [PATCH] fix up perfmon to build on -mm |
git: | |
| David Miller | [GIT]: Networking |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Natalie Protasevich | [BUG] New Kernel Bugs |
| Linus Torvalds | Re: silent semantic changes with reiser4 |
| jim owens | Re: ext4 - getting at birth time (file create time) and getting/setting nanosecond... |
| Alan Cox | Re: impact of 4k sector size on the IO & FS stack |
| Peter Zijlstra | Re: + mm-balance_dirty_pages-reduce-calls-to-global_page_state-to-reduce-c ache-re... |
