aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorThomas Zimmermann <[email protected]>2019-10-24 08:14:03 +0000
committerThomas Zimmermann <[email protected]>2019-10-24 14:12:36 +0000
commitecad80f0865d69c8de37c7415dbf66ba372f2ca1 (patch)
treed0740c34701ee2861c286eaaed035a19e91142be /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentdrm/bochs: Replace prepare_fb()/cleanup_fb() with GEM VRAM helpers (diff)
downloadkernel-ecad80f0865d69c8de37c7415dbf66ba372f2ca1.tar.gz
kernel-ecad80f0865d69c8de37c7415dbf66ba372f2ca1.zip
drm/hisilicon/hibmc: Use GEM VRAM's prepare_fb() and cleanup_fb() helpers
This patch implements prepare_fb() and cleanup_fb() in hibmc with the GEM VRAM helpers. In the current code, pinning the BO is performed by hibmc_plane_atomic_update(), where the operation does not belong. This patch also fixes a bug where the pinned BO was never unpinned. Pinning multiple BOs would have exhaused the available VRAM and further pin operations would have failed, leaving the display in a corrupt state. Signed-off-by: Thomas Zimmermann <[email protected]> Reviewed-by: Daniel Vetter <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions