Revert "drm/amd/display: limit clear_update_flags to dcn32 and above"
Subsystems (3)
PATCH 1/1 Revert "drm/amd/display: limit clear_update_flags to dcn32 and above"
This reverts commit e1bd5e0bb4ca0d633ad698abd3658f8265009b81.
The commit causes a regression in Steam Deck (DCN 3.01), reintroducing a functional issue reported in [1] that was fixed by calling the clear_update_flags() from commit 7671f62c10f2a.
On Steam Deck, we use multiple hw plane color caps and up to two overlay planes with dynamic pipe split policy. I.e. with 1 primary + 1 overlay, the driver split planes into two (with 4 pipes), but with 1 primary + 2 overlays, we don't have enough pipe for splitting. Glitches appear in this pipe-split transition of 1-2 overlay planes, if the driver doesn't clear update flags.
Besides that, the issue the commit e1bd5e0bb4ca tries to address [2] isn't functional.
--- drivers/gpu/drm/amd/display/dc/core/dc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/display/dc/core/dc.c +3 -2
@@ -5443,7 +5443,8 @@ bool dc_update_planes_and_stream(struct dc *dc,else ret =update_planes_and_stream_v2 (dc, srf_updates, surface_count, stream, stream_update); -if (ret && dc->ctx->dce_version >=DCN_VERSION_3_2 ) + +if (ret)clear_update_flags (srf_updates, surface_count, stream);return ret;
@@ -5474,7 +5475,7 @@ void dc_commit_updates_for_stream(struct dc *dc, ret =update_planes_and_stream_v1 (dc, srf_updates, surface_count, stream, stream_update, state); -if (ret && dc->ctx->dce_version >=DCN_VERSION_3_2 ) +if (ret)clear_update_flags (srf_updates, surface_count, stream); }
Signature · 1 line
2.47.2
Quoted 13 lines · Melissa Wen
This reverts commit
e1bd5e0bb4ca0d633ad698abd3658f8265009b81.The commit causes a regression in Steam Deck (DCN 3.01), reintroducing a functional issue reported in [1] that was fixed by calling the
clear_update_flags()from commit7671f62c10f2a.On Steam Deck, we use multiple hw plane color caps and up to two overlay planes with dynamic pipe split policy. I.e. with 1 primary + 1 overlay, the driver split planes into two (with 4 pipes), but with 1 primary + 2 overlays, we don't have enough pipe for splitting. Glitches appear in this pipe-split transition of 1-2 overlay planes, if the driver doesn't clear update flags.
Quoted 6 lines
Besides that, the issue the commit
e1bd5e0bb4catries to address [2] isn't functional.
Can you please double check the use case that prompted e1bd5e0bb4ca0d633ad698abd3658f8265009b81 in the first place? IE With this revert you proposed do you see a traceback on unplug of external display?
Quoted 27 lines
--- drivers/gpu/drm/amd/display/dc/core/dc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/display/dc/core/dc.c +3
-2@@ -5443,7 +5443,8 @@ bool dc_update_planes_and_stream(struct dc *dc,else ret =update_planes_and_stream_v2 (dc, srf_updates, surface_count, stream, stream_update); -if (ret && dc->ctx->dce_version >=DCN_VERSION_3_2 ) + +if (ret)clear_update_flags (srf_updates, surface_count, stream);return ret;@@ -5474,7 +5475,7 @@ void dc_commit_updates_for_stream(struct dc *dc, ret =update_planes_and_stream_v1 (dc, srf_updates, surface_count, stream, stream_update, state); -if (ret && dc->ctx->dce_version >=DCN_VERSION_3_2 ) +if (ret)clear_update_flags (srf_updates, surface_count, stream); }
Quoted 17 lines · Mario
Quoted 16 lines · Melissa Wen
This reverts commit
e1bd5e0bb4ca0d633ad698abd3658f8265009b81.The commit causes a regression in Steam Deck (DCN 3.01), reintroducing a functional issue reported in [1] that was fixed by calling the
clear_update_flags()from commit7671f62c10f2a.On Steam Deck, we use multiple hw plane color caps and up to two overlay planes with dynamic pipe split policy. I.e. with 1 primary + 1 overlay, the driver split planes into two (with 4 pipes), but with 1 primary + 2 overlays, we don't have enough pipe for splitting. Glitches appear in this pipe-split transition of 1-2 overlay planes, if the driver doesn't clear update flags.
Besides that, the issue the commit
e1bd5e0bb4catries to address [2] isn't functional.
Quoted 8 lines
Quoted 3 lines
Can you please double check the use case that prompted
e1bd5e0bb4ca0d633ad698abd3658f8265009b81in the first place? IE With this revert you proposed do you see a traceback on unplug of external display?
Hi Mario,
I don't see either traceback or REG_WAIT timeout when unplugging an external HDMI-connected display.
I tried with the Deck Dock and USB-C to HDMI adapter. Not sure if there is a very specific scenario that triggers this that I didn't cover.
The only message on dmesg from this action is:
amdgpu 0000:04:00.0: amdgpu: pp_od_clk_voltage is not accessible if power_dpm_force_performance_level is not in manual mode!
Moreover, if I move to the Desktop mode (KDE), there is no message.
Melissa
Quoted 28 lines
Quoted 28 lines
--- drivers/gpu/drm/amd/display/dc/core/dc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/display/dc/core/dc.c +3
-2@@ -5443,7 +5443,8 @@ bool dc_update_planes_and_stream(struct dc *dc,else ret =update_planes_and_stream_v2 (dc, srf_updates, surface_count, stream, stream_update); -if (ret && dc->ctx->dce_version >=DCN_VERSION_3_2 ) + +if (ret)clear_update_flags (srf_updates, surface_count, stream);return ret;@@ -5474,7 +5475,7 @@ void dc_commit_updates_for_stream(struct dc *dc, ret =update_planes_and_stream_v1 (dc, srf_updates, surface_count, stream, stream_update, state); -if (ret && dc->ctx->dce_version >=DCN_VERSION_3_2 ) +if (ret)clear_update_flags (srf_updates, surface_count, stream); }
Quoted 27 lines · Melissa Wen
Quoted 17 lines · Mario
Quoted 16 lines · Melissa Wen
This reverts commit
e1bd5e0bb4ca0d633ad698abd3658f8265009b81.The commit causes a regression in Steam Deck (DCN 3.01), reintroducing a functional issue reported in [1] that was fixed by calling the
clear_update_flags()from commit7671f62c10f2a.On Steam Deck, we use multiple hw plane color caps and up to two overlay planes with dynamic pipe split policy. I.e. with 1 primary + 1 overlay, the driver split planes into two (with 4 pipes), but with 1 primary + 2 overlays, we don't have enough pipe for splitting. Glitches appear in this pipe-split transition of 1-2 overlay planes, if the driver doesn't clear update flags.
Besides that, the issue the commit
e1bd5e0bb4catries to address [2] isn't functional.Quoted 8 lines
Quoted 3 lines
Can you please double check the use case that prompted
e1bd5e0bb4ca0d633ad698abd3658f8265009b81in the first place? IE With this revert you proposed do you see a traceback on unplug of external display?
Quoted 6 lines
Hi Mario,
I don't see either traceback or
REG_WAITtimeout when unplugging an external HDMI-connected display.
I tried with the Deck Dock and USB-C to HDMI adapter. Not sure if there is a very specific scenario that triggers this that I didn't cover.
No; it's quite a general problem and easy to reproduce. This makes me wonder if there should be an exception carved out for Steam Deck instead.
Quoted 37 lines
The only message on dmesg from this action is:
amdgpu 0000:04:00.0: amdgpu:pp_od_clk_voltageis not accessible ifpower_dpm_force_performance_levelis not in manual mode!Moreover, if I move to the Desktop mode (KDE), there is no message.
Melissa
Quoted 28 lines
Quoted 28 lines
--- drivers/gpu/drm/amd/display/dc/core/dc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/display/dc/core/dc.c +3
-2@@ -5443,7 +5443,8 @@ bool dc_update_planes_and_stream(struct dc *dc,else ret =update_planes_and_stream_v2 (dc, srf_updates, surface_count, stream, stream_update); -if (ret && dc->ctx->dce_version >=DCN_VERSION_3_2 ) + +if (ret)clear_update_flags (srf_updates, surface_count, stream);return ret;@@ -5474,7 +5475,7 @@ void dc_commit_updates_for_stream(struct dc *dc, ret =update_planes_and_stream_v1 (dc, srf_updates, surface_count, stream, stream_update, state); -if (ret && dc->ctx->dce_version >=DCN_VERSION_3_2 ) +if (ret)clear_update_flags (srf_updates, surface_count, stream); }
Quoted 34 lines · Mario
Quoted 29 lines · Melissa Wen
Quoted 17 lines · Mario
Quoted 16 lines · Melissa Wen
This reverts commit
e1bd5e0bb4ca0d633ad698abd3658f8265009b81.The commit causes a regression in Steam Deck (DCN 3.01), reintroducing a functional issue reported in [1] that was fixed by calling the
clear_update_flags()from commit7671f62c10f2a.On Steam Deck, we use multiple hw plane color caps and up to two overlay planes with dynamic pipe split policy. I.e. with 1 primary + 1 overlay, the driver split planes into two (with 4 pipes), but with 1 primary + 2 overlays, we don't have enough pipe for splitting. Glitches appear in this pipe-split transition of 1-2 overlay planes, if the driver doesn't clear update flags.
Besides that, the issue the commit
e1bd5e0bb4catries to address [2] isn't functional.Quoted 8 lines
Quoted 3 lines
Can you please double check the use case that prompted
e1bd5e0bb4ca0d633ad698abd3658f8265009b81in the first place? IE With this revert you proposed do you see a traceback on unplug of external display?Hi Mario,
Quoted 7 lines
Quoted 4 lines
I don't see either traceback or
REG_WAITtimeout when unplugging an external HDMI-connected display.
I tried with the Deck Dock and USB-C to HDMI adapter. Not sure if there is a very specific scenario that triggers this that I didn't cover.No; it's quite a general problem and easy to reproduce. This makes me wonder if there should be an exception carved out for Steam Deck instead.
I just tested DCN 3.1.2 (Z2 Go) and DCN 3.1.4 (Legion Go/ROG Ally) and I was not able to reproduce the issue so a Steam Deck carveout might make sense here.
Matt
Quoted 37 lines
Quoted 37 lines
The only message on dmesg from this action is:
amdgpu 0000:04:00.0: amdgpu:pp_od_clk_voltageis not accessible ifpower_dpm_force_performance_levelis not in manual mode!Moreover, if I move to the Desktop mode (KDE), there is no message.
Melissa
Quoted 27 lines
Quoted 27 lines
--- drivers/gpu/drm/amd/display/dc/core/dc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/display/dc/core/dc.c +3
-2@@ -5443,7 +5443,8 @@ bool dc_update_planes_and_stream(struct dc *dc,else ret =update_planes_and_stream_v2 (dc, srf_updates, surface_count, stream, stream_update); -if (ret && dc->ctx->dce_version >=DCN_VERSION_3_2 ) + +if (ret)clear_update_flags (srf_updates, surface_count, stream);return ret;@@ -5474,7 +5475,7 @@ void dc_commit_updates_for_stream(struct dc *dc, ret =update_planes_and_stream_v1 (dc, srf_updates, surface_count, stream, stream_update, state); -if (ret && dc->ctx->dce_version >=DCN_VERSION_3_2 ) +if (ret)clear_update_flags (srf_updates, surface_count, stream); }
Quoted 39 lines · Matthew Schwartz
Quoted 39 lines · Mario
Quoted 33 lines · Melissa Wen
Quoted 17 lines · Mario
Quoted 16 lines · Melissa Wen
This reverts commit
e1bd5e0bb4ca0d633ad698abd3658f8265009b81.The commit causes a regression in Steam Deck (DCN 3.01), reintroducing a functional issue reported in [1] that was fixed by calling the
clear_update_flags()from commit7671f62c10f2a.On Steam Deck, we use multiple hw plane color caps and up to two overlay planes with dynamic pipe split policy. I.e. with 1 primary + 1 overlay, the driver split planes into two (with 4 pipes), but with 1 primary + 2 overlays, we don't have enough pipe for splitting. Glitches appear in this pipe-split transition of 1-2 overlay planes, if the driver doesn't clear update flags.
Besides that, the issue the commit
e1bd5e0bb4catries to address [2] isn't functional.Quoted 8 lines
Quoted 3 lines
Can you please double check the use case that prompted
e1bd5e0bb4ca0d633ad698abd3658f8265009b81in the first place? IE With this revert you proposed do you see a traceback on unplug of external display?Hi Mario,
I don't see either traceback or
REG_WAITtimeout when unplugging an external HDMI-connected display.
I tried with the Deck Dock and USB-C to HDMI adapter. Not sure if there is a very specific scenario that triggers this that I didn't cover.
Quoted 6 lines
Quoted 2 lines
No; it's quite a general problem and easy to reproduce. This makes me wonder if there should be an exception carved out for Steam Deck instead.
I just tested DCN 3.1.2 (Z2 Go) and DCN 3.1.4 (Legion Go/ROG Ally) and I was not able to reproduce the issue so a Steam Deck carveout might make sense here.
Thanks a lot Matt!
Unless Charlene disagrees, I *think* for now a carveout with a comment explaining why is the way to go.
Quoted 42 lines
Matt
Quoted 37 lines
Quoted 37 lines
The only message on dmesg from this action is:
amdgpu 0000:04:00.0: amdgpu:pp_od_clk_voltageis not accessible ifpower_dpm_force_performance_levelis not in manual mode!Moreover, if I move to the Desktop mode (KDE), there is no message.
Melissa
Quoted 27 lines
Quoted 27 lines
--- drivers/gpu/drm/amd/display/dc/core/dc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/display/dc/core/dc.c +3
-2@@ -5443,7 +5443,8 @@ bool dc_update_planes_and_stream(struct dc *dc,else ret =update_planes_and_stream_v2 (dc, srf_updates, surface_count, stream, stream_update); -if (ret && dc->ctx->dce_version >=DCN_VERSION_3_2 ) + +if (ret)clear_update_flags (srf_updates, surface_count, stream);return ret;@@ -5474,7 +5475,7 @@ void dc_commit_updates_for_stream(struct dc *dc, ret =update_planes_and_stream_v1 (dc, srf_updates, surface_count, stream, stream_update, state); -if (ret && dc->ctx->dce_version >=DCN_VERSION_3_2 ) +if (ret)clear_update_flags (srf_updates, surface_count, stream); }
Quoted 37 lines · Matthew Schwartz
Quoted 37 lines · Mario
Quoted 33 lines · Melissa Wen
Quoted 17 lines · Mario
Quoted 16 lines · Melissa Wen
This reverts commit
e1bd5e0bb4ca0d633ad698abd3658f8265009b81.The commit causes a regression in Steam Deck (DCN 3.01), reintroducing a functional issue reported in [1] that was fixed by calling the
clear_update_flags()from commit7671f62c10f2a.On Steam Deck, we use multiple hw plane color caps and up to two overlay planes with dynamic pipe split policy. I.e. with 1 primary + 1 overlay, the driver split planes into two (with 4 pipes), but with 1 primary + 2 overlays, we don't have enough pipe for splitting. Glitches appear in this pipe-split transition of 1-2 overlay planes, if the driver doesn't clear update flags.
Besides that, the issue the commit
e1bd5e0bb4catries to address [2] isn't functional.Quoted 8 lines
Quoted 3 lines
Can you please double check the use case that prompted
e1bd5e0bb4ca0d633ad698abd3658f8265009b81in the first place? IE With this revert you proposed do you see a traceback on unplug of external display?Hi Mario,
I don't see either traceback or
REG_WAITtimeout when unplugging an external HDMI-connected display.
I tried with the Deck Dock and USB-C to HDMI adapter. Not sure if there is a very specific scenario that triggers this that I didn't cover.
Quoted 6 lines
Quoted 2 lines
No; it's quite a general problem and easy to reproduce. This makes me wonder if there should be an exception carved out for Steam Deck instead.
I just tested DCN 3.1.2 (Z2 Go) and DCN 3.1.4 (Legion Go/ROG Ally) and I was not able to reproduce the issue so a Steam Deck carveout might make sense here.
What issue are you trying to reproduce?
Glitches on Hades II + MangoHud, or traceback/REG_WAIT timeout?
And with what kernel version?
Melissa
Quoted 40 lines
Matt
Quoted 37 lines
Quoted 37 lines
The only message on dmesg from this action is:
amdgpu 0000:04:00.0: amdgpu:pp_od_clk_voltageis not accessible ifpower_dpm_force_performance_levelis not in manual mode!Moreover, if I move to the Desktop mode (KDE), there is no message.
Melissa
Quoted 27 lines
Quoted 27 lines
--- drivers/gpu/drm/amd/display/dc/core/dc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/display/dc/core/dc.c +3
-2@@ -5443,7 +5443,8 @@ bool dc_update_planes_and_stream(struct dc *dc,else ret =update_planes_and_stream_v2 (dc, srf_updates, surface_count, stream, stream_update); -if (ret && dc->ctx->dce_version >=DCN_VERSION_3_2 ) + +if (ret)clear_update_flags (srf_updates, surface_count, stream);return ret;@@ -5474,7 +5475,7 @@ void dc_commit_updates_for_stream(struct dc *dc, ret =update_planes_and_stream_v1 (dc, srf_updates, surface_count, stream, stream_update, state); -if (ret && dc->ctx->dce_version >=DCN_VERSION_3_2 ) +if (ret)clear_update_flags (srf_updates, surface_count, stream); }
Quoted 42 lines · Melissa Wen
Quoted 40 lines · Matthew Schwartz
Quoted 39 lines · Mario
Quoted 27 lines · Melissa Wen
Quoted 17 lines · Mario
Quoted 16 lines · Melissa Wen
This reverts commit
e1bd5e0bb4ca0d633ad698abd3658f8265009b81.The commit causes a regression in Steam Deck (DCN 3.01), reintroducing a functional issue reported in [1] that was fixed by calling the
clear_update_flags()from commit7671f62c10f2a.On Steam Deck, we use multiple hw plane color caps and up to two overlay planes with dynamic pipe split policy. I.e. with 1 primary + 1 overlay, the driver split planes into two (with 4 pipes), but with 1 primary + 2 overlays, we don't have enough pipe for splitting. Glitches appear in this pipe-split transition of 1-2 overlay planes, if the driver doesn't clear update flags.
Besides that, the issue the commit
e1bd5e0bb4catries to address [2] isn't functional.Quoted 8 lines
Quoted 3 lines
Can you please double check the use case that prompted
e1bd5e0bb4ca0d633ad698abd3658f8265009b81in the first place? IE With this revert you proposed do you see a traceback on unplug of external display?Quoted 6 lines
Hi Mario,
I don't see either traceback or
REG_WAITtimeout when unplugging an external HDMI-connected display.
I tried with the Deck Dock and USB-C to HDMI adapter. Not sure if there is a very specific scenario that triggers this that I didn't cover.No; it's quite a general problem and easy to reproduce. This makes me wonder if there should be an exception carved out for Steam Deck instead.
Quoted 6 lines
Quoted 3 lines
I just tested DCN 3.1.2 (Z2 Go) and DCN 3.1.4 (Legion Go/ROG Ally) and I was not able to reproduce the issue so a Steam Deck carveout might make sense here.
What issue are you trying to reproduce?
Glitches on Hades II + MangoHud, or traceback/REG_WAIT timeout?
Sorry, should've specified! I was testing for glitches with Hades II + MangoHud.
Quoted 2 lines
And with what kernel version?
amd-staging-drm-next built from b78bd800, tested on top of SteamOS Main
Quoted 43 lines
Melissa
Quoted 40 lines
Matt
Quoted 37 lines
Quoted 37 lines
The only message on dmesg from this action is:
amdgpu 0000:04:00.0: amdgpu:pp_od_clk_voltageis not accessible ifpower_dpm_force_performance_levelis not in manual mode!Moreover, if I move to the Desktop mode (KDE), there is no message.
Melissa
Quoted 27 lines
Quoted 27 lines
--- drivers/gpu/drm/amd/display/dc/core/dc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/display/dc/core/dc.c +3
-2@@ -5443,7 +5443,8 @@ bool dc_update_planes_and_stream(struct dc *dc,else ret =update_planes_and_stream_v2 (dc, srf_updates, surface_count, stream, stream_update); -if (ret && dc->ctx->dce_version >=DCN_VERSION_3_2 ) + +if (ret)clear_update_flags (srf_updates, surface_count, stream);return ret;@@ -5474,7 +5475,7 @@ void dc_commit_updates_for_stream(struct dc *dc, ret =update_planes_and_stream_v1 (dc, srf_updates, surface_count, stream, stream_update, state); -if (ret && dc->ctx->dce_version >=DCN_VERSION_3_2 ) +if (ret)clear_update_flags (srf_updates, surface_count, stream); }
Quoted 41 lines · Matthew Schwartz
Quoted 40 lines · Melissa Wen
Quoted 39 lines · Matthew Schwartz
Quoted 28 lines · Mario
Quoted 25 lines · Melissa Wen
Quoted 24 lines · Mario
Quoted 13 lines · Melissa Wen
This reverts commit
e1bd5e0bb4ca0d633ad698abd3658f8265009b81.The commit causes a regression in Steam Deck (DCN 3.01), reintroducing a functional issue reported in [1] that was fixed by calling the
clear_update_flags()from commit7671f62c10f2a.On Steam Deck, we use multiple hw plane color caps and up to two overlay planes with dynamic pipe split policy. I.e. with 1 primary + 1 overlay, the driver split planes into two (with 4 pipes), but with 1 primary + 2 overlays, we don't have enough pipe for splitting. Glitches appear in this pipe-split transition of 1-2 overlay planes, if the driver doesn't clear update flags.
Quoted 6 lines
Besides that, the issue the commit
e1bd5e0bb4catries to address [2] isn't functional.Can you please double check the use case that prompted
e1bd5e0bb4ca0d633ad698abd3658f8265009b81in the first place? IE With this revert you proposed do you see a traceback on unplug of external display?Quoted 8 lines
Quoted 6 lines
Hi Mario,
I don't see either traceback or
REG_WAITtimeout when unplugging an external HDMI-connected display.
I tried with the Deck Dock and USB-C to HDMI adapter. Not sure if there is a very specific scenario that triggers this that I didn't cover.No; it's quite a general problem and easy to reproduce. This makes me wonder if there should be an exception carved out for Steam Deck instead.
I just tested DCN 3.1.2 (Z2 Go) and DCN 3.1.4 (Legion Go/ROG Ally) and I was not able to reproduce the issue so a Steam Deck carveout might make sense here.
Quoted 6 lines
Quoted 2 lines
What issue are you trying to reproduce?
Glitches on Hades II + MangoHud, or traceback/REG_WAIT timeout?Sorry, should've specified! I was testing for glitches with Hades II + MangoHud.
Quoted 1 line
And with what kernel version?
amd-staging-drm-next built from
b78bd800, tested on top of SteamOS Main
I suspect you don't see the issue because your kernel doesn't expose AMD driver-specific color properties (?) For this, you should compile the kernel with KCFLAGS="-DAMD_PRIVATE_COLOR"
If no plane color props, you are also not seeing three planes on AMD DTN log and then no transitions in the pipe split.
My main concern is that we will just hide the problem with an exception, but it can come back to bite us when the KMS plane color API is merged and gamescope updated to it.
Melissa
Quoted 39 lines
Quoted 39 lines
Melissa
Quoted 36 lines
Matt
Quoted 34 lines
Quoted 34 lines
The only message on dmesg from this action is:
amdgpu 0000:04:00.0: amdgpu:pp_od_clk_voltageis not accessible ifpower_dpm_force_performance_levelis not in manual mode!Moreover, if I move to the Desktop mode (KDE), there is no message.
Melissa
Quoted 26 lines
Quoted 26 lines
--- drivers/gpu/drm/amd/display/dc/core/dc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/display/dc/core/dc.c +3
-2@@ -5443,7 +5443,8 @@ bool dc_update_planes_and_stream(struct dc *dc,else ret =update_planes_and_stream_v2 (dc, srf_updates, surface_count, stream, stream_update); -if (ret && dc->ctx->dce_version >=DCN_VERSION_3_2 ) + +if (ret)clear_update_flags (srf_updates, surface_count, stream);return ret;@@ -5474,7 +5475,7 @@ void dc_commit_updates_for_stream(struct dc *dc, ret =update_planes_and_stream_v1 (dc, srf_updates, surface_count, stream, stream_update, state); -if (ret && dc->ctx->dce_version >=DCN_VERSION_3_2 ) +if (ret)clear_update_flags (srf_updates, surface_count, stream); }
Quoted 47 lines · Melissa Wen
Quoted 43 lines · Matthew Schwartz
Quoted 42 lines · Melissa Wen
Quoted 34 lines · Matthew Schwartz
Quoted 34 lines · Mario
Quoted 31 lines · Melissa Wen
Quoted 17 lines · Mario
Quoted 16 lines · Melissa Wen
This reverts commit
e1bd5e0bb4ca0d633ad698abd3658f8265009b81.The commit causes a regression in Steam Deck (DCN 3.01), reintroducing a functional issue reported in [1] that was fixed by calling the
clear_update_flags()from commit7671f62c10f2a.On Steam Deck, we use multiple hw plane color caps and up to two overlay planes with dynamic pipe split policy. I.e. with 1 primary + 1 overlay, the driver split planes into two (with 4 pipes), but with 1 primary + 2 overlays, we don't have enough pipe for splitting. Glitches appear in this pipe-split transition of 1-2 overlay planes, if the driver doesn't clear update flags.
Besides that, the issue the commit
e1bd5e0bb4catries to address [2] isn't functional.Quoted 7 lines
Quoted 3 lines
Can you please double check the use case that prompted
e1bd5e0bb4ca0d633ad698abd3658f8265009b81in the first place? IE With this revert you proposed do you see a traceback on unplug of external display?Hi Mario,
I don't see either traceback or
REG_WAITtimeout when unplugging an external HDMI-connected display.
I tried with the Deck Dock and USB-C to HDMI adapter. Not sure if there is a very specific scenario that triggers this that I didn't cover.Quoted 5 lines
Quoted 2 lines
No; it's quite a general problem and easy to reproduce. This makes me wonder if there should be an exception carved out for Steam Deck instead.
I just tested DCN 3.1.2 (Z2 Go) and DCN 3.1.4 (Legion Go/ROG Ally) and I was not able to reproduce the issue so a Steam Deck carveout might make sense here.
What issue are you trying to reproduce?
Glitches on Hades II + MangoHud, or traceback/REG_WAIT timeout?
Quoted 7 lines
Quoted 4 lines
Sorry, should've specified! I was testing for glitches with Hades II + MangoHud.
Quoted 1 line
And with what kernel version?
amd-staging-drm-next built from
b78bd800, tested on top of SteamOS MainI suspect you don't see the issue because your kernel doesn't expose AMD driver-specific color properties (?)
For this, you should compile the kernel with KCFLAGS="-DAMD_PRIVATE_COLOR"
[missed reply-all, resending this]
Ah right, thanks for pointing this out. I've gone back and recompiled the kernel withAMD_PRIVATE_COLOR enabled. However, I'm still unable to reproduce the issue on those other platforms. I can see the number of overlay planes change in my dtn log,
as well as the pipeline changes with amdgpu_dm_visual_confirm.
In the original issue, I was unable to reproduce the Hades II and MangoHud glitches
on my Z1E device at the time so this lack of reproduction on DCN 3.1.2 and DCN 3.1.4
might be expected.
Quoted 7 lines
If no plane color props, you are also not seeing three planes on AMD DTN log and then no transitions in the pipe split.
My main concern is that we will just hide the problem with an exception, but it can come back to bite us when the KMS plane color API is merged and gamescope updated to it.
That makes sense. I've been meaning to circle back to the gamescope implementation of that now that Simon is unable to continue since it would be good to get some testing started there.
Matt
Quoted 43 lines
Melissa
Quoted 39 lines
Quoted 39 lines
Melissa
Quoted 36 lines
Matt
Quoted 34 lines
Quoted 34 lines
The only message on dmesg from this action is:
amdgpu 0000:04:00.0: amdgpu:pp_od_clk_voltageis not accessible ifpower_dpm_force_performance_levelis not in manual mode!Moreover, if I move to the Desktop mode (KDE), there is no message.
Melissa
Quoted 26 lines
Quoted 26 lines
--- drivers/gpu/drm/amd/display/dc/core/dc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/display/dc/core/dc.c +3
-2@@ -5443,7 +5443,8 @@ bool dc_update_planes_and_stream(struct dc *dc,else ret =update_planes_and_stream_v2 (dc, srf_updates, surface_count, stream, stream_update); -if (ret && dc->ctx->dce_version >=DCN_VERSION_3_2 ) + +if (ret)clear_update_flags (srf_updates, surface_count, stream);return ret;@@ -5474,7 +5475,7 @@ void dc_commit_updates_for_stream(struct dc *dc, ret =update_planes_and_stream_v1 (dc, srf_updates, surface_count, stream, stream_update, state); -if (ret && dc->ctx->dce_version >=DCN_VERSION_3_2 ) +if (ret)clear_update_flags (srf_updates, surface_count, stream); }
Quoted 65 lines · Matthew Schwartz
Quoted 47 lines · Melissa Wen
Quoted 43 lines · Matthew Schwartz
Quoted 42 lines · Melissa Wen
Quoted 34 lines · Matthew Schwartz
Quoted 34 lines · Mario
Quoted 31 lines · Melissa Wen
Quoted 17 lines · Mario
Quoted 16 lines · Melissa Wen
This reverts commit
e1bd5e0bb4ca0d633ad698abd3658f8265009b81.The commit causes a regression in Steam Deck (DCN 3.01), reintroducing a functional issue reported in [1] that was fixed by calling the
clear_update_flags()from commit7671f62c10f2a.On Steam Deck, we use multiple hw plane color caps and up to two overlay planes with dynamic pipe split policy. I.e. with 1 primary + 1 overlay, the driver split planes into two (with 4 pipes), but with 1 primary + 2 overlays, we don't have enough pipe for splitting. Glitches appear in this pipe-split transition of 1-2 overlay planes, if the driver doesn't clear update flags.
Besides that, the issue the commit
e1bd5e0bb4catries to address [2] isn't functional.Quoted 7 lines
Quoted 3 lines
Can you please double check the use case that prompted
e1bd5e0bb4ca0d633ad698abd3658f8265009b81in the first place? IE With this revert you proposed do you see a traceback on unplug of external display?Hi Mario,
I don't see either traceback or
REG_WAITtimeout when unplugging an external HDMI-connected display.
I tried with the Deck Dock and USB-C to HDMI adapter. Not sure if there is a very specific scenario that triggers this that I didn't cover.Quoted 5 lines
Quoted 2 lines
No; it's quite a general problem and easy to reproduce. This makes me wonder if there should be an exception carved out for Steam Deck instead.
I just tested DCN 3.1.2 (Z2 Go) and DCN 3.1.4 (Legion Go/ROG Ally) and I was not able to reproduce the issue so a Steam Deck carveout might make sense here.
What issue are you trying to reproduce?
Glitches on Hades II + MangoHud, or traceback/REG_WAIT timeout?Quoted 7 lines
Quoted 4 lines
Sorry, should've specified! I was testing for glitches with Hades II + MangoHud.
Quoted 1 line
And with what kernel version?
amd-staging-drm-next built from
b78bd800, tested on top of SteamOS MainI suspect you don't see the issue because your kernel doesn't expose AMD driver-specific color properties (?)
For this, you should compile the kernel with KCFLAGS="-DAMD_PRIVATE_COLOR"[missed reply-all, resending this]
Ah right, thanks for pointing this out. I've gone back and recompiled the kernel with
AMD_PRIVATE_COLORenabled. However, I'm still unable to reproduce the issue on those other platforms. I can see the number of overlay planes change in my dtn log,
as well as the pipeline changes withamdgpu_dm_visual_confirm.
Quoted 5 lines
In the original issue, I was unable to reproduce the Hades II and MangoHud glitches
on my Z1E device at the time so this lack of reproduction on DCN 3.1.2 and DCN 3.1.4
might be expected.
[Oh, I realized I only sent my reply to you. Sending the same msg to everyone now]
Sounds good.
Do you mind to share your DTN log with and without MangoHud enabled and the drm_info output with MangoHud?
I want to compare those logs with Steam Deck.
Quoted 5 lines
Quoted 5 lines
If no plane color props, you are also not seeing three planes on AMD DTN log and then no transitions in the pipe split.
Quoted 7 lines
Quoted 3 lines
My main concern is that we will just hide the problem with an exception, but it can come back to bite us when the KMS plane color API is merged and gamescope updated to it.
That makes sense. I've been meaning to circle back to the gamescope implementation of that now that Simon is unable to continue since it would be good to get some testing started there.
I started working on it here:
https://github.com/melissawen/gamescope/tree/kms_color
But not my area of expertise, so it will be slow and needs some work on libliftoff.
Let me know if you want to contribute anyway, maybe you can go faster than me.
Melissa
Quoted 46 lines
Matt
Quoted 43 lines
Melissa
Quoted 39 lines
Quoted 39 lines
Melissa
Quoted 36 lines
Matt
Quoted 34 lines
Quoted 34 lines
The only message on dmesg from this action is:
amdgpu 0000:04:00.0: amdgpu:pp_od_clk_voltageis not accessible ifpower_dpm_force_performance_levelis not in manual mode!Moreover, if I move to the Desktop mode (KDE), there is no message.
Melissa
Quoted 26 lines
Quoted 26 lines
--- drivers/gpu/drm/amd/display/dc/core/dc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/display/dc/core/dc.c +3
-2@@ -5443,7 +5443,8 @@ bool dc_update_planes_and_stream(struct dc *dc,else ret =update_planes_and_stream_v2 (dc, srf_updates, surface_count, stream, stream_update); -if (ret && dc->ctx->dce_version >=DCN_VERSION_3_2 ) + +if (ret)clear_update_flags (srf_updates, surface_count, stream);return ret;@@ -5474,7 +5475,7 @@ void dc_commit_updates_for_stream(struct dc *dc, ret =update_planes_and_stream_v1 (dc, srf_updates, surface_count, stream, stream_update, state); -if (ret && dc->ctx->dce_version >=DCN_VERSION_3_2 ) +if (ret)clear_update_flags (srf_updates, surface_count, stream); }
Quoted 72 lines · Melissa Wen
Quoted 65 lines · Matthew Schwartz
Quoted 47 lines · Melissa Wen
Quoted 43 lines · Matthew Schwartz
Quoted 42 lines · Melissa Wen
Quoted 34 lines · Matthew Schwartz
Quoted 34 lines · Mario
Quoted 31 lines · Melissa Wen
Quoted 17 lines · Mario
Quoted 16 lines · Melissa Wen
This reverts commit
e1bd5e0bb4ca0d633ad698abd3658f8265009b81.The commit causes a regression in Steam Deck (DCN 3.01), reintroducing a functional issue reported in [1] that was fixed by calling the
clear_update_flags()from commit7671f62c10f2a.On Steam Deck, we use multiple hw plane color caps and up to two overlay planes with dynamic pipe split policy. I.e. with 1 primary + 1 overlay, the driver split planes into two (with 4 pipes), but with 1 primary + 2 overlays, we don't have enough pipe for splitting. Glitches appear in this pipe-split transition of 1-2 overlay planes, if the driver doesn't clear update flags.
Besides that, the issue the commit
e1bd5e0bb4catries to address [2] isn't functional.Quoted 7 lines
Quoted 3 lines
Can you please double check the use case that prompted
e1bd5e0bb4ca0d633ad698abd3658f8265009b81in the first place? IE With this revert you proposed do you see a traceback on unplug of external display?Hi Mario,
I don't see either traceback or
REG_WAITtimeout when unplugging an external HDMI-connected display.
I tried with the Deck Dock and USB-C to HDMI adapter. Not sure if there is a very specific scenario that triggers this that I didn't cover.Quoted 5 lines
Quoted 2 lines
No; it's quite a general problem and easy to reproduce. This makes me wonder if there should be an exception carved out for Steam Deck instead.
I just tested DCN 3.1.2 (Z2 Go) and DCN 3.1.4 (Legion Go/ROG Ally) and I was not able to reproduce the issue so a Steam Deck carveout might make sense here.
What issue are you trying to reproduce?
Glitches on Hades II + MangoHud, or traceback/REG_WAIT timeout?Quoted 7 lines
Quoted 4 lines
Sorry, should've specified! I was testing for glitches with Hades II + MangoHud.
Quoted 1 line
And with what kernel version?
amd-staging-drm-next built from
b78bd800, tested on top of SteamOS MainI suspect you don't see the issue because your kernel doesn't expose AMD driver-specific color properties (?)
For this, you should compile the kernel with KCFLAGS="-DAMD_PRIVATE_COLOR"[missed reply-all, resending this]
Ah right, thanks for pointing this out. I've gone back and recompiled the kernel with
AMD_PRIVATE_COLORenabled. However, I'm still unable to reproduce the issue on those other platforms. I can see the number of overlay planes change in my dtn log,
as well as the pipeline changes withamdgpu_dm_visual_confirm.Quoted 5 lines
In the original issue, I was unable to reproduce the Hades II and MangoHud glitches
on my Z1E device at the time so this lack of reproduction on DCN 3.1.2 and DCN 3.1.4
might be expected.
Quoted 8 lines
[Oh, I realized I only sent my reply to you. Sending the same msg to everyone now]
Sounds good.
Do you mind to share your DTN log with and without MangoHud enabled and the
drm_infooutput with MangoHud?
I want to compare those logs with Steam Deck.
Sure, going to use my Legion Go S w/ Z2 Go for this (DCN 3.1.2). All of these are from amd-staging-drm-next with AMD_PRIVATE_COLOR=y.
DTN log from Hades II with MangoHud enabled:
https://gist.github.com/matte-schwartz/0c290ffe99bdb4f0d7369ee8817d1145
DTN log from Hades II with MangoHud disabled:
https://gist.github.com/matte-schwartz/3e2867e192ec9742ec545d2c5dd3096a
drm_info from Hades II with MangoHud enabled:
https://gist.github.com/matte-schwartz/456684fc60f7e84173ee2f42de4b774b
drm_info from Hades II with MangoHud disabled:
https://gist.github.com/matte-schwartz/6b635fa584d033234b435667f5d2c153
Quoted 14 lines
Quoted 6 lines
Quoted 6 lines
If no plane color props, you are also not seeing three planes on AMD DTN log and then no transitions in the pipe split.
Quoted 7 lines
Quoted 3 lines
My main concern is that we will just hide the problem with an exception, but it can come back to bite us when the KMS plane color API is merged and gamescope updated to it.
That makes sense. I've been meaning to circle back to the gamescope implementation of that now that Simon is unable to continue since it would be good to get some testing started there.
Quoted 6 lines
I started working on it here:
https://github.com/melissawen/gamescope/tree/kms_color
But not my area of expertise, so it will be slow and needs some work on libliftoff.
Let me know if you want to contribute anyway, maybe you can go faster than me.
It's uncharted territory for but I do enjoy tinkering, I will take a look at your branch and see if I can start poking at the missing pieces.
Matt
Quoted 49 lines
Melissa
Quoted 46 lines
Matt
Quoted 43 lines
Melissa
Quoted 39 lines
Quoted 39 lines
Melissa
Quoted 36 lines
Matt
Quoted 34 lines
Quoted 34 lines
The only message on dmesg from this action is:
amdgpu 0000:04:00.0: amdgpu:pp_od_clk_voltageis not accessible ifpower_dpm_force_performance_levelis not in manual mode!Moreover, if I move to the Desktop mode (KDE), there is no message.
Melissa
Quoted 26 lines
Quoted 26 lines
--- drivers/gpu/drm/amd/display/dc/core/dc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/display/dc/core/dc.c +3
-2@@ -5443,7 +5443,8 @@ bool dc_update_planes_and_stream(struct dc *dc,else ret =update_planes_and_stream_v2 (dc, srf_updates, surface_count, stream, stream_update); -if (ret && dc->ctx->dce_version >=DCN_VERSION_3_2 ) + +if (ret)clear_update_flags (srf_updates, surface_count, stream);return ret;@@ -5474,7 +5475,7 @@ void dc_commit_updates_for_stream(struct dc *dc, ret =update_planes_and_stream_v1 (dc, srf_updates, surface_count, stream, stream_update, state); -if (ret && dc->ctx->dce_version >=DCN_VERSION_3_2 ) +if (ret)clear_update_flags (srf_updates, surface_count, stream); }
On 18-07-2025 00:51, Matthew Schwartz wrote:
[...]
Quoted 7 lines
Sure, going to use my Legion Go S w/ Z2 Go for this (DCN 3.1.2). All of these are from amd-staging-drm-next with AMD_PRIVATE_COLOR=y.
DTN log from Hades II with MangoHud enabled:
https://gist.github.com/matte-schwartz/0c290ffe99bdb4f0d7369ee8817d1145
Quoted 9 lines
DTN log from Hades II with MangoHud disabled:
https://gist.github.com/matte-schwartz/3e2867e192ec9742ec545d2c5dd3096a
drm_infofrom Hades II with MangoHud enabled:
https://gist.github.com/matte-schwartz/456684fc60f7e84173ee2f42de4b774b
drm_infofrom Hades II with MangoHud disabled:
https://gist.github.com/matte-schwartz/6b635fa584d033234b435667f5d2c153
Hey Matthew,
Thanks for the logs.
There is actually a difference between your hw and Steam Deck in terms of pipe split.
With your hw, there is no pipe split in both scenarios. However, on Steam Deck with MangoHud disabled, we can see the split (2 planes):
HUBP: format addr_hi width height rot mir sw_mode dcc_enblank_en clock_en ttu_dis underflow min_ttu_vblank qos_low_wm
qos_high_wm
[ 0]: 8h f4h 1280 400 3h 0h 1bh 1
0 1 0 0h 36.562 0.000
33.854
[ 1]: 8h f4h 1280 400 3h 0h 1bh 1
0 1 0 0h 36.562 0.000
33.854
[ 2]: 8h f4h 1280 400 3h 0h 1bh 1
0 1 0 0h 36.562 0.000
33.854
[ 3]: 8h f4h 1280 400 3h 0h 1bh 1
0 1 0 0h 36.562 0.000
33.854
For completion, this is the DTN log of Steam Deck with MangoHud enabled (3 planes, no pipe split):
HUBP: format addr_hi width height rot mir sw_mode dcc_enblank_en clock_en ttu_dis underflow min_ttu_vblank qos_low_wm
qos_high_wm
[ 0]: 8h f4h 1280 800 3h 0h 1bh 1
0 1 0 0h 44.708 0.000
33.854
[ 1]: 0h 0h 0 0 0h 0h 0h 0
0 0 0 0h 0.000 0.000
0.000
[ 2]: 8h f4h 1280 800 3h 0h 1bh 1
0 1 0 0h 44.708 0.000
33.854
[ 3]: 8h f4h 1280 800 3h 0h 1bh 1
0 1 0 0h 44.708 0.000
33.854
I couldn't find a pipe-split policy specific for 3.1.2, but I guess it follows the 3.1 Dynamic policy, that is the same of the Steam Deck:
drivers/gpu/drm/amd/display/dc/resource/dcn31/dcn31_resource.c:863:
.pipe_split_policy = MPC_SPLIT_DYNAMIC, drivers/gpu/drm/amd/display/dc/resource/dcn314/dcn314_resource.c:883:
.pipe_split_policy = MPC_SPLIT_DYNAMIC, drivers/gpu/drm/amd/display/dc/resource/dcn315/dcn315_resource.c:863:
.pipe_split_policy = MPC_SPLIT_DYNAMIC, drivers/gpu/drm/amd/display/dc/resource/dcn316/dcn316_resource.c:858:
.pipe_split_policy = MPC_SPLIT_DYNAMIC,
I remember that we have discussed about the possibility of workaround those glitches by avoiding pipe split (and then we would avoid the "split" transition), right?
In short, there is a chance that you are not seeing those glitches because there are no changes in the pipe split when transitioning between 1-2 overlay planes in your hw, but the split happens on steam deck for some reasons. I don't know how the driver decides whether or not to split pipes.
That said, if AMD prefers to go with an exception for steam deck, better if this situation is documented.
Steam Deck still needs the clear_update_flags() because it uses plane color caps and therefore sets multiple update flags, and some glitches appear when transitioning from 2 planes (with pipe split) to 3 planes (no pipe split). It might be related to minimal transition machinery.
Thank you for all inputs.
Melissa
Quoted 11 lines · Melissa Wen
On 18-07-2025 00:51, Matthew Schwartz wrote:
[...]In short, there is a chance that you are not seeing those glitches because there are no changes in the pipe split when transitioning between 1-2 overlay planes in your hw, but the split happens on steam deck for some reasons. I don't know how the driver decides whether or not to split pipes.
That said, if AMD prefers to go with an exception for steam deck, better if this situation is documented.
Resuming this discussion as we shared many findings here...
Looks like not only Steam Deck in DCN3+ family is affected by those glitches on overlay planes, DCN3.02 seems to have similar issue, as just reported by:
https://gitlab.freedesktop.org/drm/amd/-/issues/4559
So I think we must rethink the steam-deck-expection approach proposed by:
https://gitlab.freedesktop.org/agd5f/linux/-/commit/11262624508d14583ebc7744145a38da67dab192
Melissa
Quoted 9 lines
Steam Deck still needs the
clear_update_flags()because it uses plane color caps and therefore sets multiple update flags, and some glitches appear when transitioning from 2 planes (with pipe split) to 3 planes (no pipe split). It might be related to minimal transition machinery.Thank you for all inputs.
Melissa
Quoted 30 lines · Mario
Quoted 29 lines · Melissa Wen
Quoted 17 lines · Mario
Quoted 16 lines · Melissa Wen
This reverts commit
e1bd5e0bb4ca0d633ad698abd3658f8265009b81.The commit causes a regression in Steam Deck (DCN 3.01), reintroducing a functional issue reported in [1] that was fixed by calling the
clear_update_flags()from commit7671f62c10f2a.On Steam Deck, we use multiple hw plane color caps and up to two overlay planes with dynamic pipe split policy. I.e. with 1 primary + 1 overlay, the driver split planes into two (with 4 pipes), but with 1 primary + 2 overlays, we don't have enough pipe for splitting. Glitches appear in this pipe-split transition of 1-2 overlay planes, if the driver doesn't clear update flags.
Besides that, the issue the commit
e1bd5e0bb4catries to address [2] isn't functional.Quoted 8 lines
Quoted 3 lines
Can you please double check the use case that prompted
e1bd5e0bb4ca0d633ad698abd3658f8265009b81in the first place? IE With this revert you proposed do you see a traceback on unplug of external display?Hi Mario,
Quoted 7 lines
Quoted 4 lines
I don't see either traceback or
REG_WAITtimeout when unplugging an external HDMI-connected display.
I tried with the Deck Dock and USB-C to HDMI adapter. Not sure if there is a very specific scenario that triggers this that I didn't cover.No; it's quite a general problem and easy to reproduce. This makes me wonder if there should be an exception carved out for Steam Deck instead.
No idea...
I'm using amd-staging-drm-next branch with the AMD driver-specific color properties enabled.
But those color properties are not used on desktop mode, for example.
Quoted 38 lines
Quoted 38 lines
The only message on dmesg from this action is:
amdgpu 0000:04:00.0: amdgpu:pp_od_clk_voltageis not accessible ifpower_dpm_force_performance_levelis not in manual mode!Moreover, if I move to the Desktop mode (KDE), there is no message.
Melissa
Quoted 28 lines
Quoted 28 lines
--- drivers/gpu/drm/amd/display/dc/core/dc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/display/dc/core/dc.c +3
-2@@ -5443,7 +5443,8 @@ bool dc_update_planes_and_stream(struct dc *dc,else ret =update_planes_and_stream_v2 (dc, srf_updates, surface_count, stream, stream_update); -if (ret && dc->ctx->dce_version >=DCN_VERSION_3_2 ) + +if (ret)clear_update_flags (srf_updates, surface_count, stream);return ret;@@ -5474,7 +5475,7 @@ void dc_commit_updates_for_stream(struct dc *dc, ret =update_planes_and_stream_v1 (dc, srf_updates, surface_count, stream, stream_update, state); -if (ret && dc->ctx->dce_version >=DCN_VERSION_3_2 ) +if (ret)clear_update_flags (srf_updates, surface_count, stream); }
Quoted 34 lines · Melissa Wen
Quoted 17 lines · Mario
Quoted 16 lines · Melissa Wen
This reverts commit
e1bd5e0bb4ca0d633ad698abd3658f8265009b81.The commit causes a regression in Steam Deck (DCN 3.01), reintroducing a functional issue reported in [1] that was fixed by calling the
clear_update_flags()from commit7671f62c10f2a.On Steam Deck, we use multiple hw plane color caps and up to two overlay planes with dynamic pipe split policy. I.e. with 1 primary + 1 overlay, the driver split planes into two (with 4 pipes), but with 1 primary + 2 overlays, we don't have enough pipe for splitting. Glitches appear in this pipe-split transition of 1-2 overlay planes, if the driver doesn't clear update flags.
Besides that, the issue the commit
e1bd5e0bb4catries to address [2] isn't functional.Quoted 8 lines
Quoted 3 lines
Can you please double check the use case that prompted
e1bd5e0bb4ca0d633ad698abd3658f8265009b81in the first place? IE With this revert you proposed do you see a traceback on unplug of external display?Hi Mario,
I don't see either traceback or
REG_WAITtimeout when unplugging an external HDMI-connected display.
I tried with the Deck Dock and USB-C to HDMI adapter. Not sure if there is a very specific scenario that triggers this that I didn't cover.
Quoted 5 lines
The only message on dmesg from this action is:
amdgpu 0000:04:00.0: amdgpu:pp_od_clk_voltageis not accessible ifpower_dpm_force_performance_levelis not in manual mode!Moreover, if I move to the Desktop mode (KDE), there is no message.
^ there is no single message on Desktop mode on unplug of external display.
Quoted 31 lines
Melissa
Quoted 28 lines
Quoted 28 lines
--- drivers/gpu/drm/amd/display/dc/core/dc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/display/dc/core/dc.c +3
-2@@ -5443,7 +5443,8 @@ bool dc_update_planes_and_stream(struct dc *dc,else ret =update_planes_and_stream_v2 (dc, srf_updates, surface_count, stream, stream_update); -if (ret && dc->ctx->dce_version >=DCN_VERSION_3_2 ) + +if (ret)clear_update_flags (srf_updates, surface_count, stream);return ret;@@ -5474,7 +5475,7 @@ void dc_commit_updates_for_stream(struct dc *dc, ret =update_planes_and_stream_v1 (dc, srf_updates, surface_count, stream, stream_update, state); -if (ret && dc->ctx->dce_version >=DCN_VERSION_3_2 ) +if (ret)clear_update_flags (srf_updates, surface_count, stream); }