aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/0984-drm-amdgpu-virtual_dce-No-need-to-pin-the-cursor-bo.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/0984-drm-amdgpu-virtual_dce-No-need-to-pin-the-cursor-bo.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/0984-drm-amdgpu-virtual_dce-No-need-to-pin-the-cursor-bo.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/0984-drm-amdgpu-virtual_dce-No-need-to-pin-the-cursor-bo.patch b/meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/0984-drm-amdgpu-virtual_dce-No-need-to-pin-the-cursor-bo.patch
new file mode 100644
index 00000000..16f86ced
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/0984-drm-amdgpu-virtual_dce-No-need-to-pin-the-cursor-bo.patch
@@ -0,0 +1,40 @@
+From a8e743d3fa6842310e5524e0f6fe5e73b80df0c8 Mon Sep 17 00:00:00 2001
+From: Emily Deng <Emily.Deng@amd.com>
+Date: Wed, 26 Dec 2018 18:08:54 +0800
+Subject: [PATCH 0984/2940] 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>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 ++--
+ 1 file 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 0ba2c5747a8c..2e720c181815 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+@@ -2847,7 +2847,7 @@ int amdgpu_device_suspend(struct drm_device *dev, bool suspend, bool fbcon)
+ struct drm_framebuffer *fb = crtc->primary->fb;
+ struct amdgpu_bo *robj;
+
+- if (amdgpu_crtc->cursor_bo) {
++ if (amdgpu_crtc->cursor_bo && !adev->enable_virtual_display) {
+ struct amdgpu_bo *aobj = gem_to_amdgpu_bo(amdgpu_crtc->cursor_bo);
+ r = amdgpu_bo_reserve(aobj, true);
+ if (r == 0) {
+@@ -2955,7 +2955,7 @@ int amdgpu_device_resume(struct drm_device *dev, bool resume, bool fbcon)
+ list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) {
+ struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc);
+
+- if (amdgpu_crtc->cursor_bo) {
++ if (amdgpu_crtc->cursor_bo && !adev->enable_virtual_display) {
+ struct amdgpu_bo *aobj = gem_to_amdgpu_bo(amdgpu_crtc->cursor_bo);
+ r = amdgpu_bo_reserve(aobj, true);
+ if (r == 0) {
+--
+2.17.1
+