[PATCH] amdgpu: fix edp brightness control on some HP laptops

poscat poscat0x04 at outlook.com
Sat Feb 1 16:36:34 UTC 2025


This is a workaround to this issue:
https://gitlab.freedesktop.org/drm/amd/-/issues/3701

Signed-off-by: poscat <poscat0x04 at outlook.com>
---
 drivers/gpu/drm/amd/display/dc/dcn31/dcn31_panel_cntl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/display/dc/dcn31/dcn31_panel_cntl.c b/drivers/gpu/drm/amd/display/dc/dcn31/dcn31_panel_cntl.c
index f9961a6446f3..a82fe9f8193f 100644
--- a/drivers/gpu/drm/amd/display/dc/dcn31/dcn31_panel_cntl.c
+++ b/drivers/gpu/drm/amd/display/dc/dcn31/dcn31_panel_cntl.c
@@ -173,7 +173,7 @@ void dcn31_panel_cntl_construct(
 	dcn31_panel_cntl->base.ctx = init_data->ctx;
 	dcn31_panel_cntl->base.inst = init_data->inst;
 
-	if (dcn31_panel_cntl->base.ctx->dc->config.support_edp0_on_dp1) {
+	if (true) {
 		//If supported, power sequencer mapping shall follow the DIG instance
 		uint8_t pwrseq_inst = 0xF;
 
-- 
2.48.1



More information about the amd-gfx mailing list