diff options
author | Thomas Zimmermann <tzimmermann@suse.de> | 2019-10-24 10:14:03 +0200 |
---|---|---|
committer | Thomas Zimmermann <tzimmermann@suse.de> | 2019-10-24 16:12:36 +0200 |
commit | ecad80f0865d69c8de37c7415dbf66ba372f2ca1 (patch) | |
tree | d0740c34701ee2861c286eaaed035a19e91142be /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
parent | eddc0acfed094293a0ee5130cc8cd2b97be8ee84 (diff) |
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 <tzimmermann@suse.de>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20191024081404.6978-4-tzimmermann@suse.de
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions