]> git.baikalelectronics.ru Git - kernel.git/commit
x86/swiotlb: Enable swiotlb for > 4GiG RAM on 32-bit kernels
authorChristoph Hellwig <hch@lst.de>
Sun, 14 Oct 2018 07:52:08 +0000 (09:52 +0200)
committerIngo Molnar <mingo@kernel.org>
Fri, 19 Oct 2018 05:49:32 +0000 (07:49 +0200)
commitdb2f8f41bcb36a2057e47ff61b6f550564855f91
tree504317805872a16d0f6d406eb0869b8717150e99
parent7d80dac7045651f64fa94e5ddae0ee452c46230a
x86/swiotlb: Enable swiotlb for > 4GiG RAM on 32-bit kernels

We already build the swiotlb code for 32-bit kernels with PAE support,
but the code to actually use swiotlb has only been enabled for 64-bit
kernels for an unknown reason.

Before Linux v4.18 we paper over this fact because the networking code,
the SCSI layer and some random block drivers implemented their own
bounce buffering scheme.

[ mingo: Changelog fixes. ]

Fixes: c31eadb457af ("scsi: reduce use of block bounce buffers")
Fixes: 167559bda58e ("net: remove the PCI_DMA_BUS_IS_PHYS check in illegal_highdma")
Reported-by: Matthew Whitehead <tedheadster@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Matthew Whitehead <tedheadster@gmail.com>
Cc: konrad.wilk@oracle.com
Cc: iommu@lists.linux-foundation.org
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/20181014075208.2715-1-hch@lst.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/pci-swiotlb.c