aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2023-11-22 17:15:03 +0000
committerGreg Kroah-Hartman <[email protected]>2023-11-23 20:22:46 +0000
commit58ac1b3799799069d53f5bf95c093f2fe8dd3cc5 (patch)
treef7eded9a2a9e8f6e6a31264461fee75832cfed56 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
parentserial: sc16is7xx: address RX timeout interrupt errata (diff)
downloadkernel-58ac1b3799799069d53f5bf95c093f2fe8dd3cc5.tar.gz
kernel-58ac1b3799799069d53f5bf95c093f2fe8dd3cc5.zip
ARM: PL011: Fix DMA support
Since there is no guarantee that the memory returned by dma_alloc_coherent() is associated with a 'struct page', using the architecture specific phys_to_page() is wrong, but using virt_to_page() would be as well. Stop using sg lists altogether and just use the *_single() functions instead. This also simplifies the code a bit since the scatterlists in this driver always have only one entry anyway. https://lore.kernel.org/lkml/[email protected]/ Use consistent names for dma buffers gc: Add a commit log from the initial thread: https://lore.kernel.org/lkml/[email protected]/ Use consistent names for dma buffers Fixes: cb06ff102e2d7 ("ARM: PL011: Add support for Rx DMA buffer polling.") Signed-off-by: Arnd Bergmann <[email protected]> Tested-by: Gregory CLEMENT <[email protected]> Signed-off-by: Gregory CLEMENT <[email protected]> Cc: stable <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions