linux_dsm_epyc7002/drivers/net/ethernet/amd/xgbe
Lendacky, Thomas cfbfd86bfd amd-xgbe: Fix DMA API debug warning
When running a kernel configured with CONFIG_DMA_API_DEBUG=y a warning
is issued:
  DMA-API: device driver tries to sync DMA memory it has not allocated

This warning is the result of mapping the full range of the Rx buffer
pages allocated and then performing a dma_sync_single_for_cpu against
a calculated DMA address. The proper thing to do is to use the
dma_sync_single_range_for_cpu with a base DMA address and an offset.

Reported-by: Kim Phillips <kim.phillips@arm.com>
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Tested-by: Kim Phillips <kim.phillips@arm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-07-08 15:57:14 -07:00
..
Makefile amd-xgbe: Add traffic class support 2014-07-30 18:46:53 -07:00
xgbe-common.h amd-xgbe: Move the PHY support into amd-xgbe 2015-05-15 15:21:43 -04:00
xgbe-dcb.c amd-xgbe: Add netif_* message support to the driver 2015-05-15 15:21:43 -04:00
xgbe-debugfs.c amd-xgbe: Checkpatch fixes 2015-01-16 22:24:19 -05:00
xgbe-desc.c amd-xgbe: Fix DMA API debug warning 2015-07-08 15:57:14 -07:00
xgbe-dev.c amd-xgbe: Fix DMA API debug warning 2015-07-08 15:57:14 -07:00
xgbe-drv.c amd-xgbe: Fix DMA API debug warning 2015-07-08 15:57:14 -07:00
xgbe-ethtool.c amd-xgbe: Fix flow control setting logic 2015-05-15 15:21:43 -04:00
xgbe-main.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2015-06-24 16:49:49 -07:00
xgbe-mdio.c amd-xgbe: Add more netif_dbg output to the driver 2015-05-25 00:13:58 -04:00
xgbe-ptp.c ptp: xgbe: convert to the 64 bit get/set time methods. 2015-03-31 12:01:16 -04:00
xgbe.h amd-xgbe: Fix DMA API debug warning 2015-07-08 15:57:14 -07:00