]> git.baikalelectronics.ru Git - kernel.git/commit
net: axienet: Allow DMA to beyond 4GB
authorAndre Przywara <andre.przywara@arm.com>
Tue, 24 Mar 2020 13:23:47 +0000 (13:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Mar 2020 23:33:05 +0000 (16:33 -0700)
commitac8333d74566154daaca6774a9d3898ea2294105
treec3001db78200601e31a121455f9df8326f777d83
parentd75c3557c289e5dc8604d996fa8791aa8987a829
net: axienet: Allow DMA to beyond 4GB

With all DMA address accesses wrapped, we can actually support 64-bit
DMA if this option was chosen at IP integration time.
If the IP has been configured for an address width greater than 32 bits,
we assume the full 64 bit DMA width is working. In practise this will be
limited by the actual system address bus width, which will ideally be the
same as the DMA IP address width.
If this is not the case, the actual width can still be configured using a
dma-ranges property in the parent of the MAC node.

This increases the DMA mask on those systems to let the kernel choose
buffers from memory at higher addresses.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/xilinx/xilinx_axienet_main.c