Thread (19 messages) 19 messages, 3 authors, 2018-04-24

[PATCH 11/12] swiotlb: move the SWIOTLB config symbol to lib/Kconfig

From: linux@armlinux.org.uk (Russell King - ARM Linux)
Date: 2018-04-23 23:52:27
Also in: linux-block, linux-iommu, linux-mips, linux-mm, linux-pci, sparclinux

On Mon, Apr 23, 2018 at 07:04:18PM +0200, Christoph Hellwig wrote:
This way we have one central definition of it, and user can select it as
needed.  Note that we also add a second ARCH_HAS_SWIOTLB symbol to
indicate the architecture supports swiotlb at all, so that we can still
make the usage optional for a few architectures that want this feature
to be user selectable.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Hmm, this looks like we end up with NEED_SG_DMA_LENGTH=y on ARM by
default, which probably isn't a good idea - ARM pre-dates the dma_length
parameter in scatterlists, and I don't think all code is guaranteed to
do the right thing if this is enabled.

For example, arch/arm/mach-rpc/dma.c doesn't use the dma_length
member of struct scatterlist.

-- 
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line in suburbia: sync at 8.8Mbps down 630kbps up
According to speedtest.net: 8.21Mbps down 510kbps up
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help