diff options
author | Lendacky, Thomas <Thomas.Lendacky@amd.com> | 2015-07-06 11:57:37 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-07-08 15:57:14 -0700 |
commit | cfbfd86bfde15020bccde377e11586ee5c8b701d (patch) | |
tree | 6b129aeb7b38ea566f1548463ec32a7a9550dcf5 /drivers/net/xen-netback | |
parent | 95ec655bc465ccb2a3329d4aff9a45e3c8188db5 (diff) |
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>
Diffstat (limited to 'drivers/net/xen-netback')
0 files changed, 0 insertions, 0 deletions