drm/amd/display: Revert "Disable PSR-SU on some OLED panel"
authorTom Chung <chiahsuan.chung@amd.com>
Thu, 6 Feb 2025 03:30:17 +0000 (11:30 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Feb 2025 16:44:01 +0000 (11:44 -0500)
This reverts commit c31b41f1cb32450d8ac176eef9bda979760040e7.

We planning to disable the PSR-SU and fallback to PSR1 for
all eDP panels not only for specific eDP panel temporarily.

Reviewed-by: Sun peng Li <sunpeng.li@amd.com>
Signed-off-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Roman Li <roman.li@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c

index 104f0386826647e8d71bb1d49f5a32da4d25ef58..45858bf1523d8f6e8922aa087d98e310e02cd129 100644 (file)
 #include "amdgpu_dm.h"
 #include "modules/power/power_helpers.h"
 
-static bool is_specific_oled_panel(struct dc_link *link)
-{
-       if (!link->dpcd_sink_ext_caps.bits.oled)
-               return false;
-
-       /* Disable PSR-SU for some OLED panels to avoid glitches */
-       if (link->dpcd_caps.sink_dev_id == 0xBA4159) {
-               uint8_t sink_dev_id_str1[] = {'4', '0', 'C', 'U', '1'};
-
-               if (!memcmp(link->dpcd_caps.sink_dev_id_str, sink_dev_id_str1,
-                   sizeof(sink_dev_id_str1)))
-                       return true;
-       }
-
-       return false;
-}
-
 static bool link_supports_psrsu(struct dc_link *link)
 {
        struct dc *dc = link->ctx->dc;
@@ -57,9 +40,6 @@ static bool link_supports_psrsu(struct dc_link *link)
        if (dc->ctx->dce_version < DCN_VERSION_3_1)
                return false;
 
-       if (is_specific_oled_panel(link))
-               return false;
-
        if (!is_psr_su_specific_panel(link))
                return false;