Skip to contentSkip to conversation

Revert "drm/amd/display: Program OTG vtotal min/max selectors unconditionally for DCN1+"

PATCH In review Guilherme G. Piccoli 4 participants 10 messages Jul 2, 2023 – Jul 12, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Revert "drm/amd/display: Program OTG vtotal min/max selectors unconditionally for DCN1+"

This reverts commit 06c3a652a787efc960af7c8816036d25c4227c6c.

After this commit, the Steam Deck cannot boot with graphics anymore; the following message is observed on dmesg:

"[drm] ERROR [CRTC:67:crtc-0] flip_done timed out"

No other error is observed, it just stays like that. After bisecting amd-staging-drm-next, we narrowed it down to this commit. Seems it makes sense to revert it to have the tree bootable until a proper solution is worked.

Cc Aurabindo Pillai <[email protected]>
Cc André Almeida <[email protected]>
Cc Melissa Wen <[email protected]>
Cc Rodrigo Siqueira <[email protected]>

---

Hi Alex / Aurabindo, we couldn't boot the Deck with in HEAD (amd-staging-drm-next), git bisect led to this commit. Since its description already mentions a potential proper solution, related to the DMCUB (and some complex state tracking), I thought it was more effective to revert it to allow booting the tree in Deck (and maybe other HW - I just tested the Deck BTW).
Lemme know your thoughts.

Special thanks to André and Melissa for helping the debug / bisect! We're open to test alternative patches, feel free to ping. Cheers,

Guilherme

 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.c | 15 ++++++++++++---
 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.c | 10 ----------
 2 files changed, 12 insertions(+), 13 deletions(-)
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.c +12 -3
index 0e8f4f36c87c..27419cd98264 100644
@@ -945,10 +945,19 @@ void optc1_set_drr(
 				OTG_FORCE_LOCK_ON_EVENT, 0,
 				OTG_SET_V_TOTAL_MIN_MASK_EN, 0,
 				OTG_SET_V_TOTAL_MIN_MASK, 0);
-	}
 
-	// Setup manual flow control for EOF via TRIG_A
-	optc->funcs->setup_manual_trigger(optc);
+		// Setup manual flow control for EOF via TRIG_A
+		optc->funcs->setup_manual_trigger(optc);
+
+	} else {
+		REG_UPDATE_4(OTG_V_TOTAL_CONTROL,
+				OTG_SET_V_TOTAL_MIN_MASK, 0,
+				OTG_V_TOTAL_MIN_SEL, 0,
+				OTG_V_TOTAL_MAX_SEL, 0,
+				OTG_FORCE_LOCK_ON_EVENT, 0);
+
+		optc->funcs->set_vtotal_min_max(optc, 0, 0);
+	}
 }
 
 void optc1_set_vtotal_min_max(struct timing_generator *optc, int vtotal_min, int vtotal_max)
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.c +0 -10
index 58bdbd859bf9..d6f095b4555d 100644
@@ -462,16 +462,6 @@ void optc2_setup_manual_trigger(struct timing_generator *optc)
 {
 	struct optc *optc1 = DCN10TG_FROM_TG(optc);
 
-	/* Set the min/max selectors unconditionally so that
-	 * DMCUB fw may change OTG timings when necessary
-	 * TODO: Remove the w/a after fixing the issue in DMCUB firmware
-	 */
-	REG_UPDATE_4(OTG_V_TOTAL_CONTROL,
-				 OTG_V_TOTAL_MIN_SEL, 1,
-				 OTG_V_TOTAL_MAX_SEL, 1,
-				 OTG_FORCE_LOCK_ON_EVENT, 0,
-				 OTG_SET_V_TOTAL_MIN_MASK, (1 << 1)); /* TRIGA */
-
 	REG_SET_8(OTG_TRIGA_CNTL, 0,
 			OTG_TRIGA_SOURCE_SELECT, 21,
 			OTG_TRIGA_SOURCE_PIPE_SELECT, optc->inst,
Signature · 1 line
2.40.1
Reviewed-by on v1 1/1
#1 lore raw

Hi Guilherme,

Em 02/07/2023 13:44, Guilherme G. Piccoli escreveu:

Quoted 11 lines

This reverts commit 06c3a652a787efc960af7c8816036d25c4227c6c.

After this commit, the Steam Deck cannot boot with graphics anymore; the following message is observed on dmesg:

"[drm] ERROR [CRTC:67:crtc-0] flip_done timed out"

No other error is observed, it just stays like that. After bisecting amd-staging-drm-next, we narrowed it down to this commit. Seems it makes sense to revert it to have the tree bootable until a proper solution is worked.

Thank you for your patch, I confirm the exactly same behavior on my Steam Deck.

Quoted 3 lines
#2 lore raw
In reply to Guilherme G. Piccoli
Quoted 77 lines · Guilherme G. Piccoli

This reverts commit 06c3a652a787efc960af7c8816036d25c4227c6c.

After this commit, the Steam Deck cannot boot with graphics anymore; the following message is observed on dmesg:

"[drm] ERROR [CRTC:67:crtc-0] flip_done timed out"

No other error is observed, it just stays like that. After bisecting amd-staging-drm-next, we narrowed it down to this commit. Seems it makes sense to revert it to have the tree bootable until a proper solution is worked.

Cc Aurabindo Pillai <[email protected]>
Cc André Almeida <[email protected]>
Cc Melissa Wen <[email protected]>
Cc Rodrigo Siqueira <[email protected]>

---

Hi Alex / Aurabindo, we couldn't boot the Deck with in HEAD (amd-staging-drm-next), git bisect led to this commit. Since its description already mentions a potential proper solution, related to the DMCUB (and some complex state tracking), I thought it was more effective to revert it to allow booting the tree in Deck (and maybe other HW - I just tested the Deck BTW).
Lemme know your thoughts.

Special thanks to André and Melissa for helping the debug / bisect! We're open to test alternative patches, feel free to ping. Cheers,

Guilherme

 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.c | 15 ++++++++++++---
 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.c | 10 ----------
 2 files changed, 12 insertions(+), 13 deletions(-)
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.c +12 -3
index 0e8f4f36c87c..27419cd98264 100644
@@ -945,10 +945,19 @@ void optc1_set_drr(
 				OTG_FORCE_LOCK_ON_EVENT, 0,
 				OTG_SET_V_TOTAL_MIN_MASK_EN, 0,
 				OTG_SET_V_TOTAL_MIN_MASK, 0);
-	}
 
-	// Setup manual flow control for EOF via TRIG_A
-	optc->funcs->setup_manual_trigger(optc);
+		// Setup manual flow control for EOF via TRIG_A
+		optc->funcs->setup_manual_trigger(optc);
+
+	} else {
+		REG_UPDATE_4(OTG_V_TOTAL_CONTROL,
+				OTG_SET_V_TOTAL_MIN_MASK, 0,
+				OTG_V_TOTAL_MIN_SEL, 0,
+				OTG_V_TOTAL_MAX_SEL, 0,
+				OTG_FORCE_LOCK_ON_EVENT, 0);
+
+		optc->funcs->set_vtotal_min_max(optc, 0, 0);
+	}
 }
 
 void optc1_set_vtotal_min_max(struct timing_generator *optc, int vtotal_min, int vtotal_max)
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.c +0 -3
index 58bdbd859bf9..d6f095b4555d 100644
@@ -462,16 +462,6 @@ void optc2_setup_manual_trigger(struct timing_generator *optc)
 {
 	struct optc *optc1 = DCN10TG_FROM_TG(optc);
 
-	/* Set the min/max selectors unconditionally so that
-	 * DMCUB fw may change OTG timings when necessary
-	 * TODO: Remove the w/a after fixing the issue in DMCUB firmware

drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.c void optc2_setup_manual_trigger(struct timing_generator *optc) · line 467

Quoted 10 lines
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.c +0 -7
-	 */
-	REG_UPDATE_4(OTG_V_TOTAL_CONTROL,
-				 OTG_V_TOTAL_MIN_SEL, 1,
-				 OTG_V_TOTAL_MAX_SEL, 1,
-				 OTG_FORCE_LOCK_ON_EVENT, 0,
-				 OTG_SET_V_TOTAL_MIN_MASK, (1 << 1)); /* TRIGA */
-
 	REG_SET_8(OTG_TRIGA_CNTL, 0,
 			OTG_TRIGA_SOURCE_SELECT, 21,
 			OTG_TRIGA_SOURCE_PIPE_SELECT, optc->inst,

Hi,

Sorry for the delayed response, this patch went unnoticed. This revert would break asics. Could you try the attached patch without reverting this one ?

From 9ac8b837900ac242fcc9e948c8de7aca51a5be7e Mon Sep 17 00:00:00 2001
From: Aurabindo Pillai <[email protected]>
Date: Tue, 11 Jul 2023 14:16:27 -0400
Subject: [PATCH 2/2] drm/amd/display: add DCN301 specific logic for OTG
programming

[Why&How]
DCN301 does not have FAMS hence the workaround needed on other DCN3x variants related to OTG min/max selector programming is not applicable for it. Hence isolate it and have it use the old sequence without workaround.

---
 .../gpu/drm/amd/display/dc/dcn301/Makefile    |   3 +-
 .../drm/amd/display/dc/dcn301/dcn301_optc.c   | 185 ++++++++++++++++++
 .../drm/amd/display/dc/dcn301/dcn301_optc.h   |  36 ++++
 3 files changed, 223 insertions(+), 1 deletion(-)
 create mode 100644 drivers/gpu/drm/amd/display/dc/dcn301/dcn301_optc.c
 create mode 100644 drivers/gpu/drm/amd/display/dc/dcn301/dcn301_optc.h
drivers/gpu/drm/amd/display/dc/dcn301/Makefile +2 -1
index 7aa628c21973..9002cb10a6ae 100644
@@ -11,7 +11,8 @@
 # Makefile for dcn30.
 
 DCN301 = dcn301_init.o dcn301_resource.o dcn301_dccg.o \
-		dcn301_dio_link_encoder.o dcn301_hwseq.o dcn301_panel_cntl.o dcn301_hubbub.o
+		dcn301_dio_link_encoder.o dcn301_hwseq.o dcn301_panel_cntl.o dcn301_hubbub.o \
+		dcn301_optc.o
 
 AMD_DAL_DCN301 = $(addprefix $(AMDDALPATH)/dc/dcn301/,$(DCN301))
 
drivers/gpu/drm/amd/display/dc/dcn301/dcn301_optc.c new file +185 -0

185 lines not on this page · raw message

drivers/gpu/drm/amd/display/dc/dcn301/dcn301_optc.h new file +36 -0
new file mode 100644
index 000000000000..b49585682a15
@@ -0,0 +1,36 @@
+/*
+ * Copyright 2020 Advanced Micro Devices, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+ * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
+ * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ * OTHER DEALINGS IN THE SOFTWARE.
+ *
+ * Authors: AMD
+ *
+ */
+
+#ifndef __DC_OPTC_DCN301_H__
+#define __DC_OPTC_DCN301_H__
+
+#include "dcn20/dcn20_optc.h"
+#include "dcn30/dcn30_optc.h"
+
+void dcn301_timing_generator_init(struct optc *optc1);
+void optc301_setup_manual_trigger(struct timing_generator *optc);
+void optc301_set_drr(struct timing_generator *optc, const struct drr_params *params);
+
+#endif /* __DC_OPTC_DCN301_H__ */
Signature · 1 line
2.41.0

From ffd30f5fda1fc61b98b7e416d8c74daf59e0eb62 Mon Sep 17 00:00:00 2001
From: Aurabindo Pillai <[email protected]>
Date: Tue, 11 Jul 2023 14:14:43 -0400
Subject: [PATCH 1/2] drm/amd/display: export some optc function for reuse

[Why&How]
Make a few functions non static so that they can be reused for other asic. This is in preparation for separating out OTG programming sequence for DCN301

---
 drivers/gpu/drm/amd/display/dc/dcn30/dcn30_optc.c | 4 ++--
 drivers/gpu/drm/amd/display/dc/dcn30/dcn30_optc.h | 3 +++
 2 files changed, 5 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_optc.c +2 -2
index dfb8f62765f2..5bf4d0aa6230 100644
@@ -215,7 +215,7 @@ void optc3_set_odm_bypass(struct timing_generator *optc,
 	optc1->opp_count = 1;
 }
 
-static void optc3_set_odm_combine(struct timing_generator *optc, int *opp_id, int opp_cnt,
+void optc3_set_odm_combine(struct timing_generator *optc, int *opp_id, int opp_cnt,
 		struct dc_crtc_timing *timing)
 {
 	struct optc *optc1 = DCN10TG_FROM_TG(optc);
@@ -293,7 +293,7 @@ static void optc3_set_timing_double_buffer(struct timing_generator *optc, bool e
 		   OTG_DRR_TIMING_DBUF_UPDATE_MODE, mode);
 }
 
-static void optc3_wait_drr_doublebuffer_pending_clear(struct timing_generator *optc)
+void optc3_wait_drr_doublebuffer_pending_clear(struct timing_generator *optc)
 {
 	struct optc *optc1 = DCN10TG_FROM_TG(optc);
 
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_optc.h +3 -0
index fb06dc9a4893..d3a056c12b0d 100644
@@ -351,6 +351,9 @@ void optc3_set_timing_db_mode(struct timing_generator *optc, bool enable);
 
 void optc3_set_odm_bypass(struct timing_generator *optc,
 		const struct dc_crtc_timing *dc_crtc_timing);
+void optc3_set_odm_combine(struct timing_generator *optc, int *opp_id, int opp_cnt,
+		struct dc_crtc_timing *timing);
+void optc3_wait_drr_doublebuffer_pending_clear(struct timing_generator *optc);
 void optc3_tg_init(struct timing_generator *optc);
 void optc3_set_vtotal_min_max(struct timing_generator *optc, int vtotal_min, int vtotal_max);
 #endif /* __DC_OPTC_DCN30_H__ */
Signature · 1 line
2.41.0
#3 lore raw
Quoted 4 lines · Aurabindo Pillai

[...]
Hi,

Sorry for the delayed response, this patch went unnoticed. This revert would break asics. Could you try the attached patch without reverting this one ?

Hi Aurabindo, thanks for your response!

I've tried kernel 6.5-rc1, and it seems the issue is present, due to the patch being merged on Linus tree [as 1598fc576420 ("drm/amd/display:
Program OTG vtotal min/max selectors unconditionally for DCN1+")].

Then, I tried both your attached patches on top of that, and unfortunately, the behavior is the same: Steam Deck doesn't boot with graphics, and we can see the single error "amdgpu 0000:04:00.0: [drm] *ERROR* [CRTC:67:crtc-0] flip_done timed out" on dmesg.

Do you / Alex think we could get this revert for 6.5-rc2, so at least we could boot mainline there while the issue is handled? It would be an intermediate fix. You mentioned it breaks some asics, but did they work until now, without your patch?

Thanks,

Guilherme

#4 lore raw

[Public]

Hi Guilherme,

Sorry there was one more patch which I missed to attach. Please add this 3rd patch and retry.

Reverting that patch would cause high power consumption on Navi2x GPU also cause hangs on certain multi monitor configurations. With these 3 patches, you're getting the same effect as reverting the aforementioned patches, but it makes the reverted sequence available only for Steam deck hardware.

--

Regards,
Jay
________________________________
From: Guilherme G. Piccoli <[email protected]>
Sent: Tuesday, July 11, 2023 7:15 PM
To: Pillai, Aurabindo <[email protected]>; Deucher, Alexander <[email protected]>
Cc: [email protected] <[email protected]>; Koenig, Christian <[email protected]>; Pan, Xinhui <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>; André Almeida <[email protected]>; Melissa Wen <[email protected]>; Siqueira, Rodrigo <[email protected]>
Subject: Re: [PATCH] Revert "drm/amd/display: Program OTG vtotal min/max selectors unconditionally for DCN1+"

Quoted 4 lines · Aurabindo Pillai

[...]
Hi,

Sorry for the delayed response, this patch went unnoticed. This revert would break asics. Could you try the attached patch without reverting this one ?

Hi Aurabindo, thanks for your response!

I've tried kernel 6.5-rc1, and it seems the issue is present, due to the patch being merged on Linus tree [as 1598fc576420 ("drm/amd/display:
Program OTG vtotal min/max selectors unconditionally for DCN1+")].

Then, I tried both your attached patches on top of that, and unfortunately, the behavior is the same: Steam Deck doesn't boot with graphics, and we can see the single error "amdgpu 0000:04:00.0: [drm] *ERROR* [CRTC:67:crtc-0] flip_done timed out" on dmesg.

Do you / Alex think we could get this revert for 6.5-rc2, so at least we could boot mainline there while the issue is handled? It would be an intermediate fix. You mentioned it breaks some asics, but did they work until now, without your patch?

Thanks,

Guilherme

From e99069f1b3dc949b5381182fc8b4e0edb551adcb Mon Sep 17 00:00:00 2001
From: Aurabindo Pillai <[email protected]>
Date: Wed, 12 Jul 2023 10:43:11 -0400
Subject: [PATCH] drm/amd/display: switch to DCN301 specific TG init

---
 drivers/gpu/drm/amd/display/dc/dcn301/dcn301_resource.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/display/dc/dcn301/dcn301_resource.c +2 -2
index 3485fbb1093e..1bee9a4636e6 100644
@@ -42,7 +42,7 @@
 #include "dcn30/dcn30_hubp.h"
 #include "irq/dcn30/irq_service_dcn30.h"
 #include "dcn30/dcn30_dpp.h"
-#include "dcn30/dcn30_optc.h"
+#include "dcn301/dcn301_optc.h"
 #include "dcn20/dcn20_hwseq.h"
 #include "dcn30/dcn30_hwseq.h"
 #include "dce110/dce110_hw_sequencer.h"
@@ -855,7 +855,7 @@ static struct timing_generator *dcn301_timing_generator_create(
 	tgn10->tg_shift = &optc_shift;
 	tgn10->tg_mask = &optc_mask;
 
-	dcn30_timing_generator_init(tgn10);
+	dcn301_timing_generator_init(tgn10);
 
 	return &tgn10->base;
 }
Signature · 1 line
2.41.0
author Tested-by
#5 lore raw
Quoted 11 lines · Aurabindo

Hi Guilherme,

Sorry there was one more patch which I missed to attach. Please add this 3^rd  patch and retry.

Reverting that patch would cause high power consumption on Navi2x GPU also cause hangs on certain multi monitor configurations. With these 3 patches, you're getting the same effect as reverting the aforementioned patches, but it makes the reverted sequence available only for Steam deck hardware.

Thanks a lot for your detailed explanation, and the 3rd patch! Indeed, amdgpu works fine on Deck with that - great =)

Feel free to add my:

Oh, a fixes tag would also makes sense, I guess.
BTW, if possible to submit the 3 patches in a proper series to get it merged on 6.5-rc cycle (the sooner the better), I'd really appreciate!

Cheers,

Guilherme

#6 lore raw
Quoted 16 lines · Guilherme G. Piccoli
Quoted 11 lines · Aurabindo

Hi Guilherme,

Sorry there was one more patch which I missed to attach. Please add this 3^rd  patch and retry.

Reverting that patch would cause high power consumption on Navi2x GPU also cause hangs on certain multi monitor configurations. With these 3 patches, you're getting the same effect as reverting the aforementioned patches, but it makes the reverted sequence available only for Steam deck hardware.

Thanks a lot for your detailed explanation, and the 3rd patch! Indeed, amdgpu works fine on Deck with that - great =)

Quoted 7 lines

Feel free to add my:

Oh, a fixes tag would also makes sense, I guess.
BTW, if possible to submit the 3 patches in a proper series to get it merged on 6.5-rc cycle (the sooner the better), I'd really appreciate!

Thanks for confirmation! I'll add the fixes tag so that it gets picked up.

#7 lore raw
In reply to Pillai, Aurabindo
Quoted 8 lines · Aurabindo

[Public]

Hi Guilherme,

Sorry there was one more patch which I missed to attach. Please add this 3rd patch and retry.

Reverting that patch would cause high power consumption on Navi2x GPU also cause hangs on certain multi monitor configurations. With these 3 patches, you're getting the same effect as reverting the aforementioned patches, but it makes the reverted sequence available only for Steam deck hardware.

Hi Jay,

Thanks for looking at this issue.

You mention power consumption and multi-monitor configuration issues that can affect a driver if we revert this OTG change, and both sounds quite relevant to me. Can they not affect DCN301 too? Is there something that needs further work so the DCN301 can benefit from this improvement as well?

Also, let us know if we can contribute in any way.

Best Regards,

Melissa

Quoted 37 lines

--

Regards,
Jay
________________________________
From: Guilherme G. Piccoli <[email protected]>
Sent: Tuesday, July 11, 2023 7:15 PM
To: Pillai, Aurabindo <[email protected]>; Deucher, Alexander <[email protected]>
Cc: [email protected] <[email protected]>; Koenig, Christian <[email protected]>; Pan, Xinhui <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>; André Almeida <[email protected]>; Melissa Wen <[email protected]>; Siqueira, Rodrigo <[email protected]>
Subject: Re: [PATCH] Revert "drm/amd/display: Program OTG vtotal min/max selectors unconditionally for DCN1+"

Quoted 4 lines · Aurabindo Pillai

[...]
Hi,

Sorry for the delayed response, this patch went unnoticed. This revert would break asics. Could you try the attached patch without reverting this one ?

Hi Aurabindo, thanks for your response!

I've tried kernel 6.5-rc1, and it seems the issue is present, due to the patch being merged on Linus tree [as 1598fc576420 ("drm/amd/display:
Program OTG vtotal min/max selectors unconditionally for DCN1+")].

Then, I tried both your attached patches on top of that, and unfortunately, the behavior is the same: Steam Deck doesn't boot with graphics, and we can see the single error "amdgpu 0000:04:00.0: [drm] *ERROR* [CRTC:67:crtc-0] flip_done timed out" on dmesg.

Do you / Alex think we could get this revert for 6.5-rc2, so at least we could boot mainline there while the issue is handled? It would be an intermediate fix. You mentioned it breaks some asics, but did they work until now, without your patch?

Thanks,

Guilherme

#8 lore raw
Quoted 14 lines · Melissa Wen
Quoted 8 lines · Aurabindo

[Public]

Hi Guilherme,

Sorry there was one more patch which I missed to attach. Please add this 3rd patch and retry.

Reverting that patch would cause high power consumption on Navi2x GPU also cause hangs on certain multi monitor configurations. With these 3 patches, you're getting the same effect as reverting the aforementioned patches, but it makes the reverted sequence available only for Steam deck hardware.

Hi Jay,

Thanks for looking at this issue.

Quoted 8 lines

You mention power consumption and multi-monitor configuration issues that can affect a driver if we revert this OTG change, and both sounds quite relevant to me. Can they not affect DCN301 too? Is there something that needs further work so the DCN301 can benefit from this improvement as well?

Also, let us know if we can contribute in any way.

Hi Melissa,

Unfortunately, DCN301 does not support Firmware Assisted Memory Clock Switching, which is the feature that gets blocked on Navi2x if we revert the patch in question. This is the feature that enables lower power consumption on some multi monitor configurations and high refresh rate single monitor configurations.

Navi2x is configured to use FAMS in the driver, but without this change, firmware wont be able to actually enable the feature in DMCUB, which puts the driver in a unexpected state. On DCN301, this unexpected state will not occur, because there is no FAMS support in driver nor firmware.

--
Jay

#9 lore raw
Quoted 34 lines · Aurabindo Pillai
Quoted 14 lines · Melissa Wen
Quoted 8 lines · Aurabindo

[Public]

Hi Guilherme,

Sorry there was one more patch which I missed to attach. Please add this 3rd patch and retry.

Reverting that patch would cause high power consumption on Navi2x GPU also cause hangs on certain multi monitor configurations. With these 3 patches, you're getting the same effect as reverting the aforementioned patches, but it makes the reverted sequence available only for Steam deck hardware.

Hi Jay,

Thanks for looking at this issue.

Quoted 8 lines

You mention power consumption and multi-monitor configuration issues that can affect a driver if we revert this OTG change, and both sounds quite relevant to me. Can they not affect DCN301 too? Is there something that needs further work so the DCN301 can benefit from this improvement as well?

Also, let us know if we can contribute in any way.

Hi Melissa,

Unfortunately, DCN301 does not support Firmware Assisted Memory Clock Switching, which is the feature that gets blocked on Navi2x if we revert the patch in question. This is the feature that enables lower power consumption on some multi monitor configurations and high refresh rate single monitor configurations.

Quoted 4 lines

Navi2x is configured to use FAMS in the driver, but without this change, firmware wont be able to actually enable the feature in DMCUB, which puts the driver in a unexpected state. On DCN301, this unexpected state will not occur, because there is no FAMS support in driver nor firmware.

Oh, got it. Sounds fine.
Many thanks for explaning the context of this change.

Best Regards,

Melissa

Quoted 6 lines

--
Jay