Patch "drm/amd/display: explicitly disable psr_feature_enable appropriately" has been added to the 5.15-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    drm/amd/display: explicitly disable psr_feature_enable appropriately

to the 5.15-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     drm-amd-display-explicitly-disable-psr_feature_enabl.patch
and it can be found in the queue-5.15 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit c05a282e8fd0cf9ee7f350e8f6c6debb1ee45160
Author: Shirish S <shirish.s@xxxxxxx>
Date:   Fri Oct 7 20:31:49 2022 +0530

    drm/amd/display: explicitly disable psr_feature_enable appropriately
    
    [ Upstream commit 6094b9136ca9038b61e9c4b5d25cd5512ce50b34 ]
    
    [Why]
    If psr_feature_enable is set to true by default, it continues to be enabled
    for non capable links.
    
    [How]
    explicitly disable the feature on links that are not capable of the same.
    
    Fixes: 8c322309e48e9 ("drm/amd/display: Enable PSR")
    Signed-off-by: Shirish S <shirish.s@xxxxxxx>
    Reviewed-by: Leo Li <sunpeng.li@xxxxxxx>
    Reviewed-by: Mario Limonciello <mario.limonciello@xxxxxxx>
    Signed-off-by: Alex Deucher <alexander.deucher@xxxxxxx>
    Cc: stable@xxxxxxxxxxxxxxx # 5.15+
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c
index 39eb6452b986..393369aa3d03 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c
@@ -101,11 +101,15 @@ static bool link_supports_psrsu(struct dc_link *link)
  */
 void amdgpu_dm_set_psr_caps(struct dc_link *link)
 {
-	if (!(link->connector_signal & SIGNAL_TYPE_EDP))
+	if (!(link->connector_signal & SIGNAL_TYPE_EDP)) {
+		link->psr_settings.psr_feature_enabled = false;
 		return;
+	}
 
-	if (link->type == dc_connection_none)
+	if (link->type == dc_connection_none) {
+		link->psr_settings.psr_feature_enabled = false;
 		return;
+	}
 
 	if (!link_get_psr_caps(link)) {
 		DRM_ERROR("amdgpu: Failed to read PSR Caps!\n");



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux