diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/4844-drm-amd-display-Notify-powerplay-the-display-control.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.14.71/4844-drm-amd-display-Notify-powerplay-the-display-control.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/4844-drm-amd-display-Notify-powerplay-the-display-control.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/4844-drm-amd-display-Notify-powerplay-the-display-control.patch new file mode 100644 index 00000000..5911ae91 --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/4844-drm-amd-display-Notify-powerplay-the-display-control.patch @@ -0,0 +1,43 @@ +From 578a424a263911f422a4b089dfc61e1f9681f40f Mon Sep 17 00:00:00 2001 +From: rex zhu <rex.zhu@amd.com> +Date: Mon, 2 Jul 2018 16:20:56 +0800 +Subject: [PATCH 4844/5725] drm/amd/display: Notify powerplay the display + controller id + +powerplay can recalculate the number of active display + +Acked-by: Alex Deucher <alexander.deucher@amd.com> +Signed-off-by: Rex Zhu <Rex.Zhu@amd.com> +Signed-off-by: Alex Deucher <alexander.deucher@amd.com> +--- + drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c +index 2e801ba..8184511 100644 +--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c ++++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c +@@ -41,6 +41,7 @@ bool dm_pp_apply_display_requirements( + const struct dm_pp_display_configuration *pp_display_cfg) + { + struct amdgpu_device *adev = ctx->driver_context; ++ int i; + + if (adev->pm.dpm_enabled) { + +@@ -95,6 +96,12 @@ bool dm_pp_apply_display_requirements( + adev->pm.pm_display_cfg.crossfire_display_index = -1; + adev->pm.pm_display_cfg.min_bus_bandwidth = 0; + ++ for (i = 0; i < pp_display_cfg->display_count; i++) { ++ const struct dm_pp_single_disp_config *dc_cfg = ++ &pp_display_cfg->disp_configs[i]; ++ adev->pm.pm_display_cfg.displays[i].controller_id = dc_cfg->pipe_idx + 1; ++ } ++ + /* TODO: complete implementation of + * pp_display_configuration_change(). + * Follow example of: +-- +2.7.4 + |