diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2628-drm-amd-display-check-if-modeset-is-required-before-.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2628-drm-amd-display-check-if-modeset-is-required-before-.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2628-drm-amd-display-check-if-modeset-is-required-before-.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2628-drm-amd-display-check-if-modeset-is-required-before-.patch new file mode 100644 index 00000000..77fde1f1 --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2628-drm-amd-display-check-if-modeset-is-required-before-.patch @@ -0,0 +1,38 @@ +From 4d86e5effb8623372ab091d27d036ba310f392db Mon Sep 17 00:00:00 2001 +From: Shirish S <shirish.s@amd.com> +Date: Fri, 27 Oct 2017 03:25:55 +0000 +Subject: [PATCH 2628/4131] drm/amd/display: check if modeset is required + before adding plane + +Adding affected planes without checking if modeset is requested from the user space causes performance regression in video p/b scenarios when full screen p/b is not composited. + +Hence add a check before adding a plane as affected. + +bug: https://bugs.freedesktop.org/show_bug.cgi?id=103408 + +Change-Id: Id51be32d8dffdb2627576addf6c5c3145201ce54 +Acked-by: Alex Deucher <alexander.deucher@amd.com> +Reviewed-by: Harry Wentland <harry.wentland@amd.com> +Signed-off-by: Shirish S <shirish.s@amd.com> +Signed-off-by: Alex Deucher <alexander.deucher@amd.com> +--- + drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +index b5af98d..0abcb16 100644 +--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c ++++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +@@ -4896,6 +4896,9 @@ static int amdgpu_dm_atomic_check(struct drm_device *dev, + #else + for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { + #endif ++ if (!drm_atomic_crtc_needs_modeset(new_crtc_state)) ++ continue; ++ + if (!new_crtc_state->enable) + continue; + +-- +2.7.4 + |