diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2008-01-08 00:34:22 +0100 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-01-15 05:39:59 +0100 |
commit | d262c32a4bcc3e5fda0325a64e53c25fe1e999d7 (patch) | |
tree | aa09101b13dac2bca27c5bab878c72c9c9015505 /kernel/spinlock.c | |
parent | Merge branch 'i2c-for-linus' of git://jdelvare.pck.nerim.net/jdelvare-2.6 (diff) | |
download | linux-d262c32a4bcc3e5fda0325a64e53c25fe1e999d7.tar.xz linux-d262c32a4bcc3e5fda0325a64e53c25fe1e999d7.zip |
[POWERPC] Workaround for iommu page alignment
Commit 5d2efba64b231a1733c4048d1708d77e07f26426 changed our iommu code
so that it always uses an iommu page size of 4kB. That means with our
current code, drivers may do a dma_map_sg() of a 64kB page and obtain
a dma_addr_t that is only 4k aligned.
This works fine in most cases except for some infiniband HW it seems,
where they tell the HW about the page size and it ignores the low bits
of the DMA address.
This works around it by making our IOMMU code enforce a PAGE_SIZE alignment
for mappings of objects that are page aligned in the first place and whose
size is larger or equal to a page.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'kernel/spinlock.c')
0 files changed, 0 insertions, 0 deletions