diff options
author | Emily Deng <Emily.Deng@amd.com> | 2018-12-26 05:08:54 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-01-14 15:04:23 -0500 |
commit | 91334223b217c43f5366ae585c31f4b6bf4a83de (patch) | |
tree | 04824ae7592839c99c7991d5e672ed2aa8b53239 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
parent | 094e640dcfab39fd795b6cd90fa3cafae4cf2db7 (diff) |
drm/amdgpu/virtual_dce: No need to pin the cursor bo
For virtual display feature, no need to pin cursor bo.
Signed-off-by: Emily Deng <Emily.Deng@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 8a078f4ae73d..98df8e4704eb 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |||
@@ -2798,7 +2798,7 @@ int amdgpu_device_suspend(struct drm_device *dev, bool suspend, bool fbcon) | |||
2798 | struct drm_framebuffer *fb = crtc->primary->fb; | 2798 | struct drm_framebuffer *fb = crtc->primary->fb; |
2799 | struct amdgpu_bo *robj; | 2799 | struct amdgpu_bo *robj; |
2800 | 2800 | ||
2801 | if (amdgpu_crtc->cursor_bo) { | 2801 | if (amdgpu_crtc->cursor_bo && !adev->enable_virtual_display) { |
2802 | struct amdgpu_bo *aobj = gem_to_amdgpu_bo(amdgpu_crtc->cursor_bo); | 2802 | struct amdgpu_bo *aobj = gem_to_amdgpu_bo(amdgpu_crtc->cursor_bo); |
2803 | r = amdgpu_bo_reserve(aobj, true); | 2803 | r = amdgpu_bo_reserve(aobj, true); |
2804 | if (r == 0) { | 2804 | if (r == 0) { |
@@ -2906,7 +2906,7 @@ int amdgpu_device_resume(struct drm_device *dev, bool resume, bool fbcon) | |||
2906 | list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) { | 2906 | list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) { |
2907 | struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); | 2907 | struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); |
2908 | 2908 | ||
2909 | if (amdgpu_crtc->cursor_bo) { | 2909 | if (amdgpu_crtc->cursor_bo && !adev->enable_virtual_display) { |
2910 | struct amdgpu_bo *aobj = gem_to_amdgpu_bo(amdgpu_crtc->cursor_bo); | 2910 | struct amdgpu_bo *aobj = gem_to_amdgpu_bo(amdgpu_crtc->cursor_bo); |
2911 | r = amdgpu_bo_reserve(aobj, true); | 2911 | r = amdgpu_bo_reserve(aobj, true); |
2912 | if (r == 0) { | 2912 | if (r == 0) { |