aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
diff options
context:
space:
mode:
authorXuan Zhuo <[email protected]>2023-09-27 05:52:46 +0000
committerLinus Torvalds <[email protected]>2023-10-15 18:49:57 +0000
commit5720c43d5216b5dbd9ab25595f7c61e55d36d4fc (patch)
tree1a29a9fd69ded0883431ba38d619ffeb960c5b6e /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
parentMerge tag 'usb-6.6-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/greg... (diff)
downloadkernel-5720c43d5216b5dbd9ab25595f7c61e55d36d4fc.tar.gz
kernel-5720c43d5216b5dbd9ab25595f7c61e55d36d4fc.zip
virtio_net: fix the missing of the dma cpu sync
Commit 295525e29a5b ("virtio_net: merge dma operations when filling mergeable buffers") unmaps the buffer with DMA_ATTR_SKIP_CPU_SYNC when the dma->ref is zero. We do that with DMA_ATTR_SKIP_CPU_SYNC, because we do not want to do the sync for the entire page_frag. But that misses the sync for the current area. This patch does cpu sync regardless of whether the ref is zero or not. Fixes: 295525e29a5b ("virtio_net: merge dma operations when filling mergeable buffers") Reported-by: Michael Roth <[email protected]> Closes: http://lore.kernel.org/all/[email protected] Signed-off-by: Xuan Zhuo <[email protected]> Acked-by: Jason Wang <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
0 files changed, 0 insertions, 0 deletions