]> git.baikalelectronics.ru Git - kernel.git/commit
tile PCI RC: add dma_get_required_mask()
authorChris Metcalf <cmetcalf@tilera.com>
Mon, 5 Aug 2013 17:40:47 +0000 (13:40 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Tue, 6 Aug 2013 16:56:00 +0000 (12:56 -0400)
commit4672742110066a831019d02985ef29ca1757574c
tree1260be5d29786ad3ac5e515d2033095721a31c9b
parent5a9afe0d7e3f6e6d5cc0ca6e1a8ee7223216328a
tile PCI RC: add dma_get_required_mask()

The standard kernel function dma_get_required_mask() uses the
highest DRAM address to determine if 32-bit or 64-bit DMA addressing
is needed.  This only works on architectures that have direct mapping
between the PA and the PCI address space, i.e. those that don't have
I/O TLBs or have I/O TLB but choose to use direct mapping.  Neither
of these are true for tilegx.  Whether to use 64-bit DMA should depend
on the PCI device's capability only, not on the amount of DRAM
installeds, so we now advertise a 64-bit DMA mask unconditionally.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
arch/tile/include/asm/dma-mapping.h
arch/tile/kernel/pci-dma.c