aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
diff options
context:
space:
mode:
authorPaul Cercueil <[email protected]>2021-05-23 17:04:14 +0000
committerPaul Cercueil <[email protected]>2021-05-25 10:42:09 +0000
commitb09069046d6b7df1deea02cc14dc893e5e96630a (patch)
treeb18c2c66c36334625fb6c5c6ebda6450a5b92f11 /drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
parentdrm: Add support for GEM buffers backed by non-coherent memory (diff)
downloadkernel-b09069046d6b7df1deea02cc14dc893e5e96630a.tar.gz
kernel-b09069046d6b7df1deea02cc14dc893e5e96630a.zip
drm: Add and export function drm_fb_cma_sync_non_coherent
This function can be used by drivers that use damage clips and have CMA GEM objects backed by non-coherent memory. Calling this function in a plane's .atomic_update ensures that all the data in the backing memory have been written to RAM. v3: - Only sync data if using GEM objects backed by non-coherent memory. - Use a drm_device pointer instead of device pointer in prototype v5: - Rename to drm_fb_cma_sync_non_coherent - Invert loops for better cache locality - Only sync BOs that have the non-coherent flag - Move to drm_fb_cma_helper.c to avoid circular dependency Signed-off-by: Paul Cercueil <[email protected]> Acked-by: Thomas Zimmermann <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c')
0 files changed, 0 insertions, 0 deletions