linux/drivers/net
Marc St-Amand b6787e284d net: macb: Align the dma and coherent dma masks
[ Upstream commit 37f7860602 ]

Single page and coherent memory blocks can use different DMA masks
when the macb accesses physical memory directly. The kernel is clever
enough to allocate pages that fit into the requested address width.

When using the ARM SMMU, the DMA mask must be the same for single
pages and big coherent memory blocks. Otherwise the translation
tables turn into one big mess.

  [   74.959909] macb ff0e0000.ethernet eth0: DMA bus error: HRESP not OK
  [   74.959989] arm-smmu fd800000.smmu: Unhandled context fault: fsr=0x402, iova=0x3165687460, fsynr=0x20001, cbfrsynra=0x877, cb=1
  [   75.173939] macb ff0e0000.ethernet eth0: DMA bus error: HRESP not OK
  [   75.173955] arm-smmu fd800000.smmu: Unhandled context fault: fsr=0x402, iova=0x3165687460, fsynr=0x20001, cbfrsynra=0x877, cb=1

Since using the same DMA mask does not hurt direct 1:1 physical
memory mappings, this commit always aligns DMA and coherent masks.

Signed-off-by: Marc St-Amand <mstamand@ciena.com>
Signed-off-by: Harini Katakam <harini.katakam@xilinx.com>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Tested-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-02-23 12:01:07 +01:00
..
appletalk
arcnet
bonding bonding: fix data-races around agg_select_timer 2022-02-23 12:01:02 +01:00
caif
can can: mcp251xfd: mcp251xfd_tef_obj_read(): fix typo in error message 2022-01-27 10:54:28 +01:00
dsa net: dsa: lantiq_gswip: fix use after free in gswip_remove() 2022-02-23 12:01:02 +01:00
ethernet net: macb: Align the dma and coherent dma masks 2022-02-23 12:01:07 +01:00
fddi
fjes fjes: Check for error irq 2021-12-29 12:25:57 +01:00
hamradio yam: fix a memory leak in yam_siocdevprivate() 2022-02-01 17:25:47 +01:00
hippi
hyperv
ieee802154 net: ieee802154: ca8210: Fix lifs/sifs periods 2022-02-23 12:01:02 +01:00
ipa net: ipa: prevent concurrent replenish 2022-02-05 12:37:55 +01:00
ipvlan
mdio net: mdio: aspeed: Add missing MODULE_DEVICE_TABLE 2022-02-16 12:54:26 +01:00
netdevsim
pcs
phy net: phy: marvell: Fix MDI-x polarity setting in 88e1118-compatible PHYs 2022-02-16 12:54:17 +01:00
plip
ppp ppp: ensure minimum packet size in ppp_write() 2022-01-27 10:54:01 +01:00
slip
team
usb net: usb: qmi_wwan: Add support for Dell DW5829e 2022-02-23 12:01:06 +01:00
vmxnet3
wan
wimax
wireguard
wireless iwlwifi: pcie: gen2: fix locking when "HW not ready" 2022-02-23 12:01:01 +01:00
xen-netback
bareudp.c
dummy.c
eql.c
geneve.c
gtp.c
ifb.c
Kconfig
LICENSE.SRC
loopback.c
macsec.c net: macsec: Verify that send_sci is on when setting Tx sci explicitly 2022-02-08 18:30:38 +01:00
macvlan.c
macvtap.c
Makefile
mdio.c
mii.c
net_failover.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c
thunderbolt.c
tun.c
veth.c veth: fix races around rq->rx_notify_masked 2022-02-16 12:54:26 +01:00
virtio_net.c
vrf.c
vsockmon.c
vxlan.c
xen-netfront.c