Skip to content

Commit dc84a21

Browse files
Tom Chungalexdeucher
authored andcommitted
drm/amd/display: Revert "Disable PSR-SU on some OLED panel"
This reverts commit c31b41f. 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>
1 parent abefe9f commit dc84a21

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -30,23 +30,6 @@
3030
#include "amdgpu_dm.h"
3131
#include "modules/power/power_helpers.h"
3232

33-
static bool is_specific_oled_panel(struct dc_link *link)
34-
{
35-
if (!link->dpcd_sink_ext_caps.bits.oled)
36-
return false;
37-
38-
/* Disable PSR-SU for some OLED panels to avoid glitches */
39-
if (link->dpcd_caps.sink_dev_id == 0xBA4159) {
40-
uint8_t sink_dev_id_str1[] = {'4', '0', 'C', 'U', '1'};
41-
42-
if (!memcmp(link->dpcd_caps.sink_dev_id_str, sink_dev_id_str1,
43-
sizeof(sink_dev_id_str1)))
44-
return true;
45-
}
46-
47-
return false;
48-
}
49-
5033
static bool link_supports_psrsu(struct dc_link *link)
5134
{
5235
struct dc *dc = link->ctx->dc;
@@ -57,9 +40,6 @@ static bool link_supports_psrsu(struct dc_link *link)
5740
if (dc->ctx->dce_version < DCN_VERSION_3_1)
5841
return false;
5942

60-
if (is_specific_oled_panel(link))
61-
return false;
62-
6343
if (!is_psr_su_specific_panel(link))
6444
return false;
6545

0 commit comments

Comments
 (0)