* 6.10/bisected/regression - commits bc87d666c05 and 6d4279cb99ac cause appearing green flashing bar on top of screen on Radeon 6900XT and 120Hz
@ 2024-05-26 14:06 Mikhail Gavrilov
2024-06-05 12:04 ` Mikhail Gavrilov
2024-06-07 13:39 ` Alex Deucher
0 siblings, 2 replies; 19+ messages in thread
From: Mikhail Gavrilov @ 2024-05-26 14:06 UTC (permalink / raw)
To: Hamza Mahfooz, Rodrigo.Siqueira, Deucher, Alexander, amd-gfx list,
dri-devel, Linux List Kernel Mailing,
Linux regressions mailing list
[-- Attachment #1: Type: text/plain, Size: 2645 bytes --]
Hi,
Day before yesterday I replaced 7900XTX to 6900XT for got clear in
which kernel first time appeared warning message "DMA-API: amdgpu
0000:0f:00.0: cacheline tracking EEXIST, overlapping mappings aren't
supported".
The kernel 6.3 and older won't boot on a computer with Radeon 7900XTX.
When I booted the system with 6900XT I saw a green flashing bar on top
of the screen when I typed commands in the gnome terminal which was
maximized on full screen.
Demonstration: https://youtu.be/tTvwQ_5pRkk
For reproduction you need Radeon 6900XT GPU connected to 120Hz OLED TV by HDMI.
I bisected the issue and the first commit which I found was 6d4279cb99ac.
commit 6d4279cb99ac4f51d10409501d29969f687ac8dc (HEAD)
Author: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Date: Tue Mar 26 10:42:05 2024 -0600
drm/amd/display: Drop legacy code
This commit removes code that are not used by display anymore.
Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/inc/hw/stream_encoder.h | 4 ----
drivers/gpu/drm/amd/display/dc/inc/resource.h | 7 -------
drivers/gpu/drm/amd/display/dc/optc/dcn20/dcn20_optc.c | 10 ----------
drivers/gpu/drm/amd/display/dc/resource/dcn21/dcn21_resource.c | 33
+--------------------------------
4 files changed, 1 insertion(+), 53 deletions(-)
Every time after bisecting I usually make sure that I found the right
commit and build the kernel with revert of the bad commit.
But this time I again observed an issue after running a kernel builded
without commit 6d4279cb99ac.
And I decided to find a second bad commit.
The second bad commit has been bc87d666c05.
commit bc87d666c05a13e6d4ae1ddce41fc43d2567b9a2 (HEAD)
Author: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Date: Tue Mar 26 11:55:19 2024 -0600
drm/amd/display: Add fallback configuration for set DRR in DCN10
Set OTG/OPTC parameters to 0 if something goes wrong on DCN10.
Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/optc/dcn10/dcn10_optc.c | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
After reverting both these commits on top of 54f71b0369c9 the issue is gone.
I also attach the build config.
My hardware specs: https://linux-hardware.org/?probe=f25a873c5e
Rodrigo or anyone else from the AMD team can you look please.
--
Best Regards,
Mike Gavrilov.
[-- Attachment #2: .config.zip --]
[-- Type: application/zip, Size: 66526 bytes --]
^ permalink raw reply [flat|nested] 19+ messages in thread* Re: 6.10/bisected/regression - commits bc87d666c05 and 6d4279cb99ac cause appearing green flashing bar on top of screen on Radeon 6900XT and 120Hz 2024-05-26 14:06 6.10/bisected/regression - commits bc87d666c05 and 6d4279cb99ac cause appearing green flashing bar on top of screen on Radeon 6900XT and 120Hz Mikhail Gavrilov @ 2024-06-05 12:04 ` Mikhail Gavrilov 2024-06-07 12:29 ` Linux regression tracking (Thorsten Leemhuis) 2024-06-07 13:39 ` Alex Deucher 1 sibling, 1 reply; 19+ messages in thread From: Mikhail Gavrilov @ 2024-06-05 12:04 UTC (permalink / raw) To: Hamza Mahfooz, Rodrigo.Siqueira, Deucher, Alexander, amd-gfx list, dri-devel, Linux List Kernel Mailing, Linux regressions mailing list On Sun, May 26, 2024 at 7:06 PM Mikhail Gavrilov <mikhail.v.gavrilov@gmail.com> wrote: > > Hi, > Day before yesterday I replaced 7900XTX to 6900XT for got clear in > which kernel first time appeared warning message "DMA-API: amdgpu > 0000:0f:00.0: cacheline tracking EEXIST, overlapping mappings aren't > supported". > The kernel 6.3 and older won't boot on a computer with Radeon 7900XTX. > When I booted the system with 6900XT I saw a green flashing bar on top > of the screen when I typed commands in the gnome terminal which was > maximized on full screen. > Demonstration: https://youtu.be/tTvwQ_5pRkk > For reproduction you need Radeon 6900XT GPU connected to 120Hz OLED TV by HDMI. > > I bisected the issue and the first commit which I found was 6d4279cb99ac. > commit 6d4279cb99ac4f51d10409501d29969f687ac8dc (HEAD) > Author: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com> > Date: Tue Mar 26 10:42:05 2024 -0600 > > drm/amd/display: Drop legacy code > > This commit removes code that are not used by display anymore. > > Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com> > Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com> > Signed-off-by: Alex Deucher <alexander.deucher@amd.com> > > drivers/gpu/drm/amd/display/dc/inc/hw/stream_encoder.h | 4 ---- > drivers/gpu/drm/amd/display/dc/inc/resource.h | 7 ------- > drivers/gpu/drm/amd/display/dc/optc/dcn20/dcn20_optc.c | 10 ---------- > drivers/gpu/drm/amd/display/dc/resource/dcn21/dcn21_resource.c | 33 > +-------------------------------- > 4 files changed, 1 insertion(+), 53 deletions(-) > > Every time after bisecting I usually make sure that I found the right > commit and build the kernel with revert of the bad commit. > But this time I again observed an issue after running a kernel builded > without commit 6d4279cb99ac. > And I decided to find a second bad commit. > The second bad commit has been bc87d666c05. > commit bc87d666c05a13e6d4ae1ddce41fc43d2567b9a2 (HEAD) > Author: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com> > Date: Tue Mar 26 11:55:19 2024 -0600 > > drm/amd/display: Add fallback configuration for set DRR in DCN10 > > Set OTG/OPTC parameters to 0 if something goes wrong on DCN10. > > Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com> > Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com> > Signed-off-by: Alex Deucher <alexander.deucher@amd.com> > > drivers/gpu/drm/amd/display/dc/optc/dcn10/dcn10_optc.c | 15 ++++++++++++--- > 1 file changed, 12 insertions(+), 3 deletions(-) > > After reverting both these commits on top of 54f71b0369c9 the issue is gone. > > I also attach the build config. > > My hardware specs: https://linux-hardware.org/?probe=f25a873c5e > > Rodrigo or anyone else from the AMD team can you look please. > Did anyone watch? -- Best Regards, Mike Gavrilov. ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: 6.10/bisected/regression - commits bc87d666c05 and 6d4279cb99ac cause appearing green flashing bar on top of screen on Radeon 6900XT and 120Hz 2024-06-05 12:04 ` Mikhail Gavrilov @ 2024-06-07 12:29 ` Linux regression tracking (Thorsten Leemhuis) 2024-06-10 22:05 ` Mikhail Gavrilov 0 siblings, 1 reply; 19+ messages in thread From: Linux regression tracking (Thorsten Leemhuis) @ 2024-06-07 12:29 UTC (permalink / raw) To: Deucher, Alexander, Christian König, Pan, Xinhui Cc: Mikhail Gavrilov, Hamza Mahfooz, Rodrigo.Siqueira, amd-gfx list, dri-devel, Linux regressions mailing list, Linux List Kernel Mailing [CCing the other amd drm maintainers] On 05.06.24 14:04, Mikhail Gavrilov wrote: > On Sun, May 26, 2024 at 7:06 PM Mikhail Gavrilov > <mikhail.v.gavrilov@gmail.com> wrote: >> >> Day before yesterday I replaced 7900XTX to 6900XT for got clear in >> which kernel first time appeared warning message "DMA-API: amdgpu >> 0000:0f:00.0: cacheline tracking EEXIST, overlapping mappings aren't >> supported". >> The kernel 6.3 and older won't boot on a computer with Radeon 7900XTX. Mikhail: are those details in any way relevant? Then in the future best leave them out (or make things easier to follow), they make the bug report confusing and sounds like this is just a bug, when it fact from your bisection is sounds like this is a regression. Anyway, @amd maintainers: is there a reason why this report did not get at least a single reply? Or was there some progress somewhere and I just missed it? Or would it be better if Mikhail would report this to https://gitlab.freedesktop.org/drm/amd/-/issues/ ? Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) -- Everything you wanna know about Linux kernel regression tracking: https://linux-regtracking.leemhuis.info/about/#tldr If I did something stupid, please tell me, as explained on that page. #regzbot poke >> When I booted the system with 6900XT I saw a green flashing bar on top >> of the screen when I typed commands in the gnome terminal which was >> maximized on full screen. >> >> Demonstration: https://youtu.be/tTvwQ_5pRkk >> For reproduction you need Radeon 6900XT GPU connected to 120Hz OLED TV by HDMI. >> >> I bisected the issue and the first commit which I found was 6d4279cb99ac. >> commit 6d4279cb99ac4f51d10409501d29969f687ac8dc (HEAD) >> Author: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com> >> Date: Tue Mar 26 10:42:05 2024 -0600 >> >> drm/amd/display: Drop legacy code >> >> This commit removes code that are not used by display anymore. >> >> Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com> >> Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com> >> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> >> >> drivers/gpu/drm/amd/display/dc/inc/hw/stream_encoder.h | 4 ---- >> drivers/gpu/drm/amd/display/dc/inc/resource.h | 7 ------- >> drivers/gpu/drm/amd/display/dc/optc/dcn20/dcn20_optc.c | 10 ---------- >> drivers/gpu/drm/amd/display/dc/resource/dcn21/dcn21_resource.c | 33 >> +-------------------------------- >> 4 files changed, 1 insertion(+), 53 deletions(-) >> >> Every time after bisecting I usually make sure that I found the right >> commit and build the kernel with revert of the bad commit. >> But this time I again observed an issue after running a kernel builded >> without commit 6d4279cb99ac. >> And I decided to find a second bad commit. >> The second bad commit has been bc87d666c05. >> commit bc87d666c05a13e6d4ae1ddce41fc43d2567b9a2 (HEAD) >> Author: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com> >> Date: Tue Mar 26 11:55:19 2024 -0600 >> >> drm/amd/display: Add fallback configuration for set DRR in DCN10 >> >> Set OTG/OPTC parameters to 0 if something goes wrong on DCN10. >> >> Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com> >> Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com> >> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> >> >> drivers/gpu/drm/amd/display/dc/optc/dcn10/dcn10_optc.c | 15 ++++++++++++--- >> 1 file changed, 12 insertions(+), 3 deletions(-) >> >> After reverting both these commits on top of 54f71b0369c9 the issue is gone. >> >> I also attach the build config. >> >> My hardware specs: https://linux-hardware.org/?probe=f25a873c5e >> >> Rodrigo or anyone else from the AMD team can you look please. >> > > Did anyone watch? > ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: 6.10/bisected/regression - commits bc87d666c05 and 6d4279cb99ac cause appearing green flashing bar on top of screen on Radeon 6900XT and 120Hz 2024-06-07 12:29 ` Linux regression tracking (Thorsten Leemhuis) @ 2024-06-10 22:05 ` Mikhail Gavrilov 0 siblings, 0 replies; 19+ messages in thread From: Mikhail Gavrilov @ 2024-06-10 22:05 UTC (permalink / raw) To: Linux regressions mailing list Cc: Deucher, Alexander, Christian König, Pan, Xinhui, Hamza Mahfooz, Rodrigo.Siqueira, amd-gfx list, dri-devel, Linux List Kernel Mailing On Fri, Jun 7, 2024 at 5:29 PM Linux regression tracking (Thorsten Leemhuis) <regressions@leemhuis.info> wrote: > > [CCing the other amd drm maintainers] > > Mikhail: are those details in any way relevant? Then in the future best > leave them out (or make things easier to follow), they make the bug > report confusing and sounds like this is just a bug, when it fact from > your bisection is sounds like this is a regression. Apologies if my pre-story is confused. I just wanna say I completely moved to the 7900XTX more than a year ago and I was surprised to see this regression on the old 6900XT. An accident helped me find this issue because I didn't plan to use old hardware. -- Best Regards, Mike Gavrilov. ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: 6.10/bisected/regression - commits bc87d666c05 and 6d4279cb99ac cause appearing green flashing bar on top of screen on Radeon 6900XT and 120Hz 2024-05-26 14:06 6.10/bisected/regression - commits bc87d666c05 and 6d4279cb99ac cause appearing green flashing bar on top of screen on Radeon 6900XT and 120Hz Mikhail Gavrilov 2024-06-05 12:04 ` Mikhail Gavrilov @ 2024-06-07 13:39 ` Alex Deucher 2024-06-09 21:19 ` Mikhail Gavrilov 1 sibling, 1 reply; 19+ messages in thread From: Alex Deucher @ 2024-06-07 13:39 UTC (permalink / raw) To: Mikhail Gavrilov Cc: Hamza Mahfooz, Rodrigo.Siqueira, Deucher, Alexander, amd-gfx list, dri-devel, Linux List Kernel Mailing, Linux regressions mailing list On Sun, May 26, 2024 at 10:12 AM Mikhail Gavrilov <mikhail.v.gavrilov@gmail.com> wrote: > > Hi, > Day before yesterday I replaced 7900XTX to 6900XT for got clear in > which kernel first time appeared warning message "DMA-API: amdgpu > 0000:0f:00.0: cacheline tracking EEXIST, overlapping mappings aren't > supported". > The kernel 6.3 and older won't boot on a computer with Radeon 7900XTX. > When I booted the system with 6900XT I saw a green flashing bar on top > of the screen when I typed commands in the gnome terminal which was > maximized on full screen. > Demonstration: https://youtu.be/tTvwQ_5pRkk > For reproduction you need Radeon 6900XT GPU connected to 120Hz OLED TV by HDMI. > > I bisected the issue and the first commit which I found was 6d4279cb99ac. > commit 6d4279cb99ac4f51d10409501d29969f687ac8dc (HEAD) > Author: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com> > Date: Tue Mar 26 10:42:05 2024 -0600 > > drm/amd/display: Drop legacy code > > This commit removes code that are not used by display anymore. > > Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com> > Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com> > Signed-off-by: Alex Deucher <alexander.deucher@amd.com> > > drivers/gpu/drm/amd/display/dc/inc/hw/stream_encoder.h | 4 ---- > drivers/gpu/drm/amd/display/dc/inc/resource.h | 7 ------- > drivers/gpu/drm/amd/display/dc/optc/dcn20/dcn20_optc.c | 10 ---------- > drivers/gpu/drm/amd/display/dc/resource/dcn21/dcn21_resource.c | 33 > +-------------------------------- > 4 files changed, 1 insertion(+), 53 deletions(-) > > Every time after bisecting I usually make sure that I found the right > commit and build the kernel with revert of the bad commit. > But this time I again observed an issue after running a kernel builded > without commit 6d4279cb99ac. > And I decided to find a second bad commit. > The second bad commit has been bc87d666c05. > commit bc87d666c05a13e6d4ae1ddce41fc43d2567b9a2 (HEAD) > Author: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com> > Date: Tue Mar 26 11:55:19 2024 -0600 > > drm/amd/display: Add fallback configuration for set DRR in DCN10 > > Set OTG/OPTC parameters to 0 if something goes wrong on DCN10. > > Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com> > Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com> > Signed-off-by: Alex Deucher <alexander.deucher@amd.com> > > drivers/gpu/drm/amd/display/dc/optc/dcn10/dcn10_optc.c | 15 ++++++++++++--- > 1 file changed, 12 insertions(+), 3 deletions(-) > > After reverting both these commits on top of 54f71b0369c9 the issue is gone. > > I also attach the build config. > > My hardware specs: https://linux-hardware.org/?probe=f25a873c5e > > Rodrigo or anyone else from the AMD team can you look please. @Siqueira, Rodrigo can you take a look? The two patches change the programming of OTG_V_TOTAL_CONTROL. The first patch removes this code: diff --git a/drivers/gpu/drm/amd/display/dc/optc/dcn20/dcn20_optc.c b/drivers/gpu/drm/amd/display/dc/optc/dcn20/dcn20_optc.c index 58bdbd859bf9..d6f095b4555d 100644 --- a/drivers/gpu/drm/amd/display/dc/optc/dcn20/dcn20_optc.c +++ b/drivers/gpu/drm/amd/display/dc/optc/dcn20/dcn20_optc.c @@ -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, and the second patch adds this hunk: diff --git a/drivers/gpu/drm/amd/display/dc/optc/dcn10/dcn10_optc.c b/drivers/gpu/drm/amd/display/dc/optc/dcn10/dcn10_optc.c index f109a101d84f..5574bc628053 100644 --- a/drivers/gpu/drm/amd/display/dc/optc/dcn10/dcn10_optc.c +++ b/drivers/gpu/drm/amd/display/dc/optc/dcn10/dcn10_optc.c @@ -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); + } } Looks like both the if and the else side paths end up programming OTG_V_TOTAL_CONTROL differently after the change. Perhaps OTG_SET_V_TOTAL_MIN_MASK needs to be set differently depending on the DMCUB firmware version? @Mikhail Gavrilov does this patch fix it? diff --git a/drivers/gpu/drm/amd/display/dc/optc/dcn10/dcn10_optc.c b/drivers/gpu/drm/amd/display/dc/optc/dcn10/dcn10_optc.c index 336488c0574e..933c7a342936 100644 --- a/drivers/gpu/drm/amd/display/dc/optc/dcn10/dcn10_optc.c +++ b/drivers/gpu/drm/amd/display/dc/optc/dcn10/dcn10_optc.c @@ -944,7 +944,7 @@ void optc1_set_drr( OTG_V_TOTAL_MAX_SEL, 1, OTG_FORCE_LOCK_ON_EVENT, 0, OTG_SET_V_TOTAL_MIN_MASK_EN, 0, - OTG_SET_V_TOTAL_MIN_MASK, 0); + OTG_SET_V_TOTAL_MIN_MASK, (1 << 1)); /* TRIGA */ // Setup manual flow control for EOF via TRIG_A optc->funcs->setup_manual_trigger(optc); Thanks, Alex > > -- > Best Regards, > Mike Gavrilov. ^ permalink raw reply related [flat|nested] 19+ messages in thread
* Re: 6.10/bisected/regression - commits bc87d666c05 and 6d4279cb99ac cause appearing green flashing bar on top of screen on Radeon 6900XT and 120Hz 2024-06-07 13:39 ` Alex Deucher @ 2024-06-09 21:19 ` Mikhail Gavrilov 2024-06-21 7:56 ` Linux regression tracking (Thorsten Leemhuis) 0 siblings, 1 reply; 19+ messages in thread From: Mikhail Gavrilov @ 2024-06-09 21:19 UTC (permalink / raw) To: Alex Deucher Cc: Hamza Mahfooz, Rodrigo.Siqueira, Deucher, Alexander, amd-gfx list, dri-devel, Linux List Kernel Mailing, Linux regressions mailing list On Fri, Jun 7, 2024 at 6:39 PM Alex Deucher <alexdeucher@gmail.com> wrote: > > --- a/drivers/gpu/drm/amd/display/dc/optc/dcn10/dcn10_optc.c > +++ b/drivers/gpu/drm/amd/display/dc/optc/dcn10/dcn10_optc.c > @@ -944,7 +944,7 @@ void optc1_set_drr( > OTG_V_TOTAL_MAX_SEL, 1, > OTG_FORCE_LOCK_ON_EVENT, 0, > OTG_SET_V_TOTAL_MIN_MASK_EN, 0, > - OTG_SET_V_TOTAL_MIN_MASK, 0); > + OTG_SET_V_TOTAL_MIN_MASK, (1 << 1)); /* TRIGA */ > > // Setup manual flow control for EOF via TRIG_A > optc->funcs->setup_manual_trigger(optc); Thanks, Alex. I applied this patch on top of 771ed66105de and unfortunately the issue is not fixed. I saw a green flashing bar on top of the screen again. -- Best Regards, Mike Gavrilov. ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: 6.10/bisected/regression - commits bc87d666c05 and 6d4279cb99ac cause appearing green flashing bar on top of screen on Radeon 6900XT and 120Hz 2024-06-09 21:19 ` Mikhail Gavrilov @ 2024-06-21 7:56 ` Linux regression tracking (Thorsten Leemhuis) 2024-06-21 10:44 ` Mikhail Gavrilov 0 siblings, 1 reply; 19+ messages in thread From: Linux regression tracking (Thorsten Leemhuis) @ 2024-06-21 7:56 UTC (permalink / raw) To: Mikhail Gavrilov, Alex Deucher Cc: Hamza Mahfooz, Rodrigo.Siqueira, Deucher, Alexander, amd-gfx list, dri-devel, Linux List Kernel Mailing, Linux regressions mailing list On 09.06.24 23:19, Mikhail Gavrilov wrote: > On Fri, Jun 7, 2024 at 6:39 PM Alex Deucher <alexdeucher@gmail.com> wrote: >> >> --- a/drivers/gpu/drm/amd/display/dc/optc/dcn10/dcn10_optc.c >> +++ b/drivers/gpu/drm/amd/display/dc/optc/dcn10/dcn10_optc.c >> @@ -944,7 +944,7 @@ void optc1_set_drr( >> OTG_V_TOTAL_MAX_SEL, 1, >> OTG_FORCE_LOCK_ON_EVENT, 0, >> OTG_SET_V_TOTAL_MIN_MASK_EN, 0, >> - OTG_SET_V_TOTAL_MIN_MASK, 0); >> + OTG_SET_V_TOTAL_MIN_MASK, (1 << 1)); /* TRIGA */ >> >> // Setup manual flow control for EOF via TRIG_A >> optc->funcs->setup_manual_trigger(optc); > > Thanks, Alex. > I applied this patch on top of 771ed66105de and unfortunately the > issue is not fixed. > I saw a green flashing bar on top of the screen again. Hmmm, I might have missed something, but it looks like nothing happened here since then. What's the status? Is the issue still happening? Any solution in sight? Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) -- Everything you wanna know about Linux kernel regression tracking: https://linux-regtracking.leemhuis.info/about/#tldr If I did something stupid, please tell me, as explained on that page. #regzbot poke ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: 6.10/bisected/regression - commits bc87d666c05 and 6d4279cb99ac cause appearing green flashing bar on top of screen on Radeon 6900XT and 120Hz 2024-06-21 7:56 ` Linux regression tracking (Thorsten Leemhuis) @ 2024-06-21 10:44 ` Mikhail Gavrilov 2024-06-28 15:19 ` Alex Deucher 0 siblings, 1 reply; 19+ messages in thread From: Mikhail Gavrilov @ 2024-06-21 10:44 UTC (permalink / raw) To: Linux regressions mailing list Cc: Alex Deucher, Hamza Mahfooz, Rodrigo.Siqueira, Deucher, Alexander, amd-gfx list, dri-devel, Linux List Kernel Mailing On Fri, Jun 21, 2024 at 12:56 PM Linux regression tracking (Thorsten Leemhuis) <regressions@leemhuis.info> wrote: > Hmmm, I might have missed something, but it looks like nothing happened > here since then. What's the status? Is the issue still happening? Yes. Tested on e5b3efbe1ab1. I spotted that the problem disappears after forcing the TV to sleep (activate screensaver <Super> + <L>) and then wake it up by pressing any button and entering a password. Hope this information can't help figure out how to fix it. -- Best Regards, Mike Gavrilov. ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: 6.10/bisected/regression - commits bc87d666c05 and 6d4279cb99ac cause appearing green flashing bar on top of screen on Radeon 6900XT and 120Hz 2024-06-21 10:44 ` Mikhail Gavrilov @ 2024-06-28 15:19 ` Alex Deucher 2024-06-29 16:46 ` Rodrigo Siqueira Jordao 0 siblings, 1 reply; 19+ messages in thread From: Alex Deucher @ 2024-06-28 15:19 UTC (permalink / raw) To: Mikhail Gavrilov, Mahfooz, Hamza Cc: Linux regressions mailing list, Rodrigo.Siqueira, Deucher, Alexander, amd-gfx list, dri-devel, Linux List Kernel Mailing On Fri, Jun 21, 2024 at 6:45 AM Mikhail Gavrilov <mikhail.v.gavrilov@gmail.com> wrote: > > On Fri, Jun 21, 2024 at 12:56 PM Linux regression tracking (Thorsten > Leemhuis) <regressions@leemhuis.info> wrote: > > Hmmm, I might have missed something, but it looks like nothing happened > > here since then. What's the status? Is the issue still happening? > > Yes. Tested on e5b3efbe1ab1. > > I spotted that the problem disappears after forcing the TV to sleep > (activate screensaver <Super> + <L>) and then wake it up by pressing > any button and entering a password. > Hope this information can't help figure out how to fix it. @Siqueira, Rodrigo @Mahfooz, Hamza any ideas? Alex ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: 6.10/bisected/regression - commits bc87d666c05 and 6d4279cb99ac cause appearing green flashing bar on top of screen on Radeon 6900XT and 120Hz 2024-06-28 15:19 ` Alex Deucher @ 2024-06-29 16:46 ` Rodrigo Siqueira Jordao 2024-06-29 23:18 ` Mikhail Gavrilov 0 siblings, 1 reply; 19+ messages in thread From: Rodrigo Siqueira Jordao @ 2024-06-29 16:46 UTC (permalink / raw) To: Alex Deucher, Mikhail Gavrilov, Mahfooz, Hamza Cc: Linux regressions mailing list, Deucher, Alexander, amd-gfx list, dri-devel, Linux List Kernel Mailing On 6/28/24 9:19 AM, Alex Deucher wrote: > On Fri, Jun 21, 2024 at 6:45 AM Mikhail Gavrilov > <mikhail.v.gavrilov@gmail.com> wrote: >> >> On Fri, Jun 21, 2024 at 12:56 PM Linux regression tracking (Thorsten >> Leemhuis) <regressions@leemhuis.info> wrote: >>> Hmmm, I might have missed something, but it looks like nothing happened >>> here since then. What's the status? Is the issue still happening? >> >> Yes. Tested on e5b3efbe1ab1. >> >> I spotted that the problem disappears after forcing the TV to sleep >> (activate screensaver <Super> + <L>) and then wake it up by pressing >> any button and entering a password. >> Hope this information can't help figure out how to fix it. > > @Siqueira, Rodrigo @Mahfooz, Hamza any ideas? > > Alex Hi Mikhail, I'm trying to reproduce this issue, but until now, I've been unable to reproduce it. I tried some different scenarios with the following components: 1. Displays: I tried with one and two displays - 4k@120 - DP && 4k@60 - HDMI - 4k@244 Oled - DP 2. GPU: 7900XTX 3. OSes: - ArchLinux kernel 6.9.6, Gnome (no changes) - Ubuntu 22 + latest amd-staging-drm-next + latest firmware, Gnome Anyway, I could not reproduce the issue with the below components. I may be missing something that will trigger this bug; in this sense, could you describe the following: - The display resolution and refresh rate. - Are you able to reproduce this issue with DP and HDMI? - Could you provide the firmware information: sudo cat /sys/kernel/debug/dri/0/amdgpu_firmware_info Also, could you conduct the below tests and report the results: - Test 1: Just revert the fallback patch (drm/amd/display: Add fallback configuration for set DRR in DCN10) and see if it solves the issue. - Test 2: Try the latest amd-staging-drm-next (https://gitlab.freedesktop.org/agd5f/linux) and see if the issue is gone. - Test 3: In the kernel that you see the issue, could you install the latest firmware and see if it fix the issue? Check: https://gitlab.freedesktop.org/drm/firmware P.S.: Don't forget to update the initramfs or something similar in your system. Thanks Siqueira ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: 6.10/bisected/regression - commits bc87d666c05 and 6d4279cb99ac cause appearing green flashing bar on top of screen on Radeon 6900XT and 120Hz 2024-06-29 16:46 ` Rodrigo Siqueira Jordao @ 2024-06-29 23:18 ` Mikhail Gavrilov 2024-07-09 12:41 ` Linux regression tracking (Thorsten Leemhuis) 2024-07-09 14:48 ` Rodrigo Siqueira Jordao 0 siblings, 2 replies; 19+ messages in thread From: Mikhail Gavrilov @ 2024-06-29 23:18 UTC (permalink / raw) To: Rodrigo Siqueira Jordao Cc: Alex Deucher, Mahfooz, Hamza, Linux regressions mailing list, Deucher, Alexander, amd-gfx list, dri-devel, Linux List Kernel Mailing On Sat, Jun 29, 2024 at 9:46 PM Rodrigo Siqueira Jordao <Rodrigo.Siqueira@amd.com> wrote: > Hi Mikhail, > > I'm trying to reproduce this issue, but until now, I've been unable to > reproduce it. I tried some different scenarios with the following > components: > > 1. Displays: I tried with one and two displays > - 4k@120 - DP && 4k@60 - HDMI > - 4k@244 Oled - DP > 2. GPU: 7900XTX The issue only reproduced with RDNA2 (6900XT) RDNA3 (7900XTX) is not affected. -- Best Regards, Mike Gavrilov. ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: 6.10/bisected/regression - commits bc87d666c05 and 6d4279cb99ac cause appearing green flashing bar on top of screen on Radeon 6900XT and 120Hz 2024-06-29 23:18 ` Mikhail Gavrilov @ 2024-07-09 12:41 ` Linux regression tracking (Thorsten Leemhuis) 2024-07-09 14:57 ` Rodrigo Siqueira Jordao 2024-07-09 14:48 ` Rodrigo Siqueira Jordao 1 sibling, 1 reply; 19+ messages in thread From: Linux regression tracking (Thorsten Leemhuis) @ 2024-07-09 12:41 UTC (permalink / raw) To: Mikhail Gavrilov, Rodrigo Siqueira Jordao, Alex Deucher Cc: Mahfooz, Hamza, Linux regressions mailing list, Deucher, Alexander, amd-gfx list, dri-devel, Linux List Kernel Mailing On 30.06.24 01:18, Mikhail Gavrilov wrote: > On Sat, Jun 29, 2024 at 9:46 PM Rodrigo Siqueira Jordao > <Rodrigo.Siqueira@amd.com> wrote: >> >> I'm trying to reproduce this issue, but until now, I've been unable to >> reproduce it. I tried some different scenarios with the following >> components: >> >> 1. Displays: I tried with one and two displays >> - 4k@120 - DP && 4k@60 - HDMI >> - 4k@244 Oled - DP >> 2. GPU: 7900XTX > > The issue only reproduced with RDNA2 (6900XT) > RDNA3 (7900XTX) is not affected. Hmmm, again this looks stalled -- and the regression report is 6 weeks old by now. :-/ Or was a solution found in between? So I assume no solution will be ready in time for the 6.10 final? I also assume a "simple" temporary revert is not a option or bears big risks? Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) -- Everything you wanna know about Linux kernel regression tracking: https://linux-regtracking.leemhuis.info/about/#tldr If I did something stupid, please tell me, as explained on that page. #regzbot poke ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: 6.10/bisected/regression - commits bc87d666c05 and 6d4279cb99ac cause appearing green flashing bar on top of screen on Radeon 6900XT and 120Hz 2024-07-09 12:41 ` Linux regression tracking (Thorsten Leemhuis) @ 2024-07-09 14:57 ` Rodrigo Siqueira Jordao 0 siblings, 0 replies; 19+ messages in thread From: Rodrigo Siqueira Jordao @ 2024-07-09 14:57 UTC (permalink / raw) To: Linux regressions mailing list, Mikhail Gavrilov, Alex Deucher Cc: Mahfooz, Hamza, Deucher, Alexander, amd-gfx list, dri-devel, Linux List Kernel Mailing On 7/9/24 6:41 AM, Linux regression tracking (Thorsten Leemhuis) wrote: > On 30.06.24 01:18, Mikhail Gavrilov wrote: >> On Sat, Jun 29, 2024 at 9:46 PM Rodrigo Siqueira Jordao >> <Rodrigo.Siqueira@amd.com> wrote: >>> >>> I'm trying to reproduce this issue, but until now, I've been unable to >>> reproduce it. I tried some different scenarios with the following >>> components: >>> >>> 1. Displays: I tried with one and two displays >>> - 4k@120 - DP && 4k@60 - HDMI >>> - 4k@244 Oled - DP >>> 2. GPU: 7900XTX >> >> The issue only reproduced with RDNA2 (6900XT) >> RDNA3 (7900XTX) is not affected. > > Hmmm, again this looks stalled -- and the regression report is 6 weeks > old by now. :-/ Or was a solution found in between? I'm okay with reverting the patch, but I want to see the requested data and tests first. I could not reproduce this issue on my side, and others did not see it either. I suspect this is something related to firmware or it is a display-specific issue, that's why the data/test that I requested would be useful. Thanks Siqueira > > So I assume no solution will be ready in time for the 6.10 final? I also > assume a "simple" temporary revert is not a option or bears big risks? > > Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) > -- > Everything you wanna know about Linux kernel regression tracking: > https://linux-regtracking.leemhuis.info/about/#tldr > If I did something stupid, please tell me, as explained on that page. > > #regzbot poke ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: 6.10/bisected/regression - commits bc87d666c05 and 6d4279cb99ac cause appearing green flashing bar on top of screen on Radeon 6900XT and 120Hz 2024-06-29 23:18 ` Mikhail Gavrilov 2024-07-09 12:41 ` Linux regression tracking (Thorsten Leemhuis) @ 2024-07-09 14:48 ` Rodrigo Siqueira Jordao 2024-07-10 7:01 ` Mikhail Gavrilov 1 sibling, 1 reply; 19+ messages in thread From: Rodrigo Siqueira Jordao @ 2024-07-09 14:48 UTC (permalink / raw) To: Mikhail Gavrilov Cc: Alex Deucher, Mahfooz, Hamza, Linux regressions mailing list, Deucher, Alexander, amd-gfx list, dri-devel, Linux List Kernel Mailing On 6/29/24 5:18 PM, Mikhail Gavrilov wrote: > On Sat, Jun 29, 2024 at 9:46 PM Rodrigo Siqueira Jordao > <Rodrigo.Siqueira@amd.com> wrote: >> Hi Mikhail, >> >> I'm trying to reproduce this issue, but until now, I've been unable to >> reproduce it. I tried some different scenarios with the following >> components: >> >> 1. Displays: I tried with one and two displays >> - 4k@120 - DP && 4k@60 - HDMI >> - 4k@244 Oled - DP >> 2. GPU: 7900XTX > > The issue only reproduced with RDNA2 (6900XT) > RDNA3 (7900XTX) is not affected. > Hi, I also tried it with 6900XT. I got the same results on my side. Could you try my suggestions from the previous email and report the result? Also, I recommend to open an issue at: https://gitlab.freedesktop.org/drm/amd and add all the tests results in the issue description. Thanks Siqueira ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: 6.10/bisected/regression - commits bc87d666c05 and 6d4279cb99ac cause appearing green flashing bar on top of screen on Radeon 6900XT and 120Hz 2024-07-09 14:48 ` Rodrigo Siqueira Jordao @ 2024-07-10 7:01 ` Mikhail Gavrilov 2024-07-10 7:03 ` Mikhail Gavrilov 0 siblings, 1 reply; 19+ messages in thread From: Mikhail Gavrilov @ 2024-07-10 7:01 UTC (permalink / raw) To: Rodrigo Siqueira Jordao Cc: Alex Deucher, Mahfooz, Hamza, Linux regressions mailing list, Deucher, Alexander, amd-gfx list, dri-devel, Linux List Kernel Mailing On Tue, Jul 9, 2024 at 7:48 PM Rodrigo Siqueira Jordao <Rodrigo.Siqueira@amd.com> wrote: > Hi, > > I also tried it with 6900XT. I got the same results on my side. This is weird. > Anyway, I could not reproduce the issue with the below components. I may > be missing something that will trigger this bug; in this sense, could > you describe the following: > - The display resolution and refresh rate. 3840x2160 and 120Hz At 60Hz issue not reproduced. > - Are you able to reproduce this issue with DP and HDMI? My TV, an OLED LG C3, has only an HDMI 2.1 port. > - Could you provide the firmware information: sudo cat > /sys/kernel/debug/dri/0/amdgpu_firmware_info > sudo cat /sys/kernel/debug/dri/0/amdgpu_firmware_info [sudo] password for mikhail: VCE feature version: 0, firmware version: 0x00000000 UVD feature version: 0, firmware version: 0x00000000 MC feature version: 0, firmware version: 0x00000000 ME feature version: 38, firmware version: 0x0000000e PFP feature version: 38, firmware version: 0x0000000e CE feature version: 38, firmware version: 0x00000003 RLC feature version: 1, firmware version: 0x0000001f RLC SRLC feature version: 1, firmware version: 0x00000001 RLC SRLG feature version: 1, firmware version: 0x00000001 RLC SRLS feature version: 1, firmware version: 0x00000001 RLCP feature version: 0, firmware version: 0x00000000 RLCV feature version: 0, firmware version: 0x00000000 MEC feature version: 38, firmware version: 0x00000015 MEC2 feature version: 38, firmware version: 0x00000015 IMU feature version: 0, firmware version: 0x00000000 SOS feature version: 0, firmware version: 0x00000000 ASD feature version: 553648344, firmware version: 0x210000d8 TA XGMI feature version: 0x00000000, firmware version: 0x00000000 TA RAS feature version: 0x00000000, firmware version: 0x00000000 TA HDCP feature version: 0x00000000, firmware version: 0x1700003f TA DTM feature version: 0x00000000, firmware version: 0x12000016 TA RAP feature version: 0x00000000, firmware version: 0x00000000 TA SECUREDISPLAY feature version: 0x00000000, firmware version: 0x00000000 SMC feature version: 0, program: 0, firmware version: 0x00544fdf (84.79.223) SDMA0 feature version: 52, firmware version: 0x00000009 VCN feature version: 0, firmware version: 0x0311f002 DMCU feature version: 0, firmware version: 0x00000000 DMCUB feature version: 0, firmware version: 0x05000f00 TOC feature version: 0, firmware version: 0x00000007 MES_KIQ feature version: 0, firmware version: 0x00000000 MES feature version: 0, firmware version: 0x00000000 VPE feature version: 0, firmware version: 0x00000000 VBIOS version: 102-RAPHAEL-008 > Also, could you conduct the below tests and report the results: > > - Test 1: Just revert the fallback patch (drm/amd/display: Add fallback > configuration for set DRR in DCN10) and see if it solves the issue. It's not enough. I checked revert commit bc87d666c05 on top of 34afb82a3c67. > - Test 2: Try the latest amd-staging-drm-next > (https://gitlab.freedesktop.org/agd5f/linux) and see if the issue is gone. I checked commit 7cef45b1347a in the amd-staging-drm-next branch. Same here. > - Test 3: In the kernel that you see the issue, could you install the > latest firmware and see if it fix the issue? Check: > https://gitlab.freedesktop.org/drm/firmware P.S.: Don't forget to update > the initramfs or something similar in your system. Is this any sense? Fedora Rawhide always ships with the latest kernel and firmware. -- Best Regards, Mike Gavrilov. ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: 6.10/bisected/regression - commits bc87d666c05 and 6d4279cb99ac cause appearing green flashing bar on top of screen on Radeon 6900XT and 120Hz 2024-07-10 7:01 ` Mikhail Gavrilov @ 2024-07-10 7:03 ` Mikhail Gavrilov 2024-07-16 17:10 ` Alex Deucher 0 siblings, 1 reply; 19+ messages in thread From: Mikhail Gavrilov @ 2024-07-10 7:03 UTC (permalink / raw) To: Rodrigo Siqueira Jordao Cc: Alex Deucher, Mahfooz, Hamza, Linux regressions mailing list, Deucher, Alexander, amd-gfx list, dri-devel, Linux List Kernel Mailing On Wed, Jul 10, 2024 at 12:01 PM Mikhail Gavrilov <mikhail.v.gavrilov@gmail.com> wrote: > > On Tue, Jul 9, 2024 at 7:48 PM Rodrigo Siqueira Jordao > <Rodrigo.Siqueira@amd.com> wrote: > > Hi, > > > > I also tried it with 6900XT. I got the same results on my side. > > This is weird. > > > Anyway, I could not reproduce the issue with the below components. I may > > be missing something that will trigger this bug; in this sense, could > > you describe the following: > > - The display resolution and refresh rate. > > 3840x2160 and 120Hz > At 60Hz issue not reproduced. > > > - Are you able to reproduce this issue with DP and HDMI? > > My TV, an OLED LG C3, has only an HDMI 2.1 port. > > > - Could you provide the firmware information: sudo cat > > /sys/kernel/debug/dri/0/amdgpu_firmware_info > > > sudo cat /sys/kernel/debug/dri/0/amdgpu_firmware_info > [sudo] password for mikhail: > VCE feature version: 0, firmware version: 0x00000000 > UVD feature version: 0, firmware version: 0x00000000 > MC feature version: 0, firmware version: 0x00000000 > ME feature version: 38, firmware version: 0x0000000e > PFP feature version: 38, firmware version: 0x0000000e > CE feature version: 38, firmware version: 0x00000003 > RLC feature version: 1, firmware version: 0x0000001f > RLC SRLC feature version: 1, firmware version: 0x00000001 > RLC SRLG feature version: 1, firmware version: 0x00000001 > RLC SRLS feature version: 1, firmware version: 0x00000001 > RLCP feature version: 0, firmware version: 0x00000000 > RLCV feature version: 0, firmware version: 0x00000000 > MEC feature version: 38, firmware version: 0x00000015 > MEC2 feature version: 38, firmware version: 0x00000015 > IMU feature version: 0, firmware version: 0x00000000 > SOS feature version: 0, firmware version: 0x00000000 > ASD feature version: 553648344, firmware version: 0x210000d8 > TA XGMI feature version: 0x00000000, firmware version: 0x00000000 > TA RAS feature version: 0x00000000, firmware version: 0x00000000 > TA HDCP feature version: 0x00000000, firmware version: 0x1700003f > TA DTM feature version: 0x00000000, firmware version: 0x12000016 > TA RAP feature version: 0x00000000, firmware version: 0x00000000 > TA SECUREDISPLAY feature version: 0x00000000, firmware version: 0x00000000 > SMC feature version: 0, program: 0, firmware version: 0x00544fdf (84.79.223) > SDMA0 feature version: 52, firmware version: 0x00000009 > VCN feature version: 0, firmware version: 0x0311f002 > DMCU feature version: 0, firmware version: 0x00000000 > DMCUB feature version: 0, firmware version: 0x05000f00 > TOC feature version: 0, firmware version: 0x00000007 > MES_KIQ feature version: 0, firmware version: 0x00000000 > MES feature version: 0, firmware version: 0x00000000 > VPE feature version: 0, firmware version: 0x00000000 > VBIOS version: 102-RAPHAEL-008 > I forgot to add output for discrete GPU: > sudo cat /sys/kernel/debug/dri/1/amdgpu_firmware_info [sudo] password for mikhail: VCE feature version: 0, firmware version: 0x00000000 UVD feature version: 0, firmware version: 0x00000000 MC feature version: 0, firmware version: 0x00000000 ME feature version: 44, firmware version: 0x00000040 PFP feature version: 44, firmware version: 0x00000062 CE feature version: 44, firmware version: 0x00000025 RLC feature version: 1, firmware version: 0x00000060 RLC SRLC feature version: 0, firmware version: 0x00000000 RLC SRLG feature version: 0, firmware version: 0x00000000 RLC SRLS feature version: 0, firmware version: 0x00000000 RLCP feature version: 0, firmware version: 0x00000000 RLCV feature version: 0, firmware version: 0x00000000 MEC feature version: 44, firmware version: 0x00000076 MEC2 feature version: 44, firmware version: 0x00000076 IMU feature version: 0, firmware version: 0x00000000 SOS feature version: 0, firmware version: 0x00210e64 ASD feature version: 553648345, firmware version: 0x210000d9 TA XGMI feature version: 0x00000000, firmware version: 0x2000000f TA RAS feature version: 0x00000000, firmware version: 0x1b00013e TA HDCP feature version: 0x00000000, firmware version: 0x1700003f TA DTM feature version: 0x00000000, firmware version: 0x12000016 TA RAP feature version: 0x00000000, firmware version: 0x07000016 TA SECUREDISPLAY feature version: 0x00000000, firmware version: 0x00000000 SMC feature version: 0, program: 0, firmware version: 0x003a5a00 (58.90.0) SDMA0 feature version: 52, firmware version: 0x00000053 SDMA1 feature version: 52, firmware version: 0x00000053 SDMA2 feature version: 52, firmware version: 0x00000053 SDMA3 feature version: 52, firmware version: 0x00000053 VCN feature version: 0, firmware version: 0x0311f002 DMCU feature version: 0, firmware version: 0x00000000 DMCUB feature version: 0, firmware version: 0x02020020 TOC feature version: 0, firmware version: 0x00000000 MES_KIQ feature version: 0, firmware version: 0x00000000 MES feature version: 0, firmware version: 0x00000000 VPE feature version: 0, firmware version: 0x00000000 VBIOS version: 113-D4120100-100 -- Best Regards, Mike Gavrilov. ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: 6.10/bisected/regression - commits bc87d666c05 and 6d4279cb99ac cause appearing green flashing bar on top of screen on Radeon 6900XT and 120Hz 2024-07-10 7:03 ` Mikhail Gavrilov @ 2024-07-16 17:10 ` Alex Deucher 2024-07-17 6:28 ` Mikhail Gavrilov 2024-07-23 4:24 ` Eric Biggers 0 siblings, 2 replies; 19+ messages in thread From: Alex Deucher @ 2024-07-16 17:10 UTC (permalink / raw) To: Mikhail Gavrilov Cc: Rodrigo Siqueira Jordao, Mahfooz, Hamza, Linux regressions mailing list, Deucher, Alexander, amd-gfx list, dri-devel, Linux List Kernel Mailing [-- Attachment #1: Type: text/plain, Size: 5500 bytes --] Does the attached partial revert fix it? Alex On Wed, Jul 10, 2024 at 3:03 AM Mikhail Gavrilov <mikhail.v.gavrilov@gmail.com> wrote: > > On Wed, Jul 10, 2024 at 12:01 PM Mikhail Gavrilov > <mikhail.v.gavrilov@gmail.com> wrote: > > > > On Tue, Jul 9, 2024 at 7:48 PM Rodrigo Siqueira Jordao > > <Rodrigo.Siqueira@amd.com> wrote: > > > Hi, > > > > > > I also tried it with 6900XT. I got the same results on my side. > > > > This is weird. > > > > > Anyway, I could not reproduce the issue with the below components. I may > > > be missing something that will trigger this bug; in this sense, could > > > you describe the following: > > > - The display resolution and refresh rate. > > > > 3840x2160 and 120Hz > > At 60Hz issue not reproduced. > > > > > - Are you able to reproduce this issue with DP and HDMI? > > > > My TV, an OLED LG C3, has only an HDMI 2.1 port. > > > > > - Could you provide the firmware information: sudo cat > > > /sys/kernel/debug/dri/0/amdgpu_firmware_info > > > > > sudo cat /sys/kernel/debug/dri/0/amdgpu_firmware_info > > [sudo] password for mikhail: > > VCE feature version: 0, firmware version: 0x00000000 > > UVD feature version: 0, firmware version: 0x00000000 > > MC feature version: 0, firmware version: 0x00000000 > > ME feature version: 38, firmware version: 0x0000000e > > PFP feature version: 38, firmware version: 0x0000000e > > CE feature version: 38, firmware version: 0x00000003 > > RLC feature version: 1, firmware version: 0x0000001f > > RLC SRLC feature version: 1, firmware version: 0x00000001 > > RLC SRLG feature version: 1, firmware version: 0x00000001 > > RLC SRLS feature version: 1, firmware version: 0x00000001 > > RLCP feature version: 0, firmware version: 0x00000000 > > RLCV feature version: 0, firmware version: 0x00000000 > > MEC feature version: 38, firmware version: 0x00000015 > > MEC2 feature version: 38, firmware version: 0x00000015 > > IMU feature version: 0, firmware version: 0x00000000 > > SOS feature version: 0, firmware version: 0x00000000 > > ASD feature version: 553648344, firmware version: 0x210000d8 > > TA XGMI feature version: 0x00000000, firmware version: 0x00000000 > > TA RAS feature version: 0x00000000, firmware version: 0x00000000 > > TA HDCP feature version: 0x00000000, firmware version: 0x1700003f > > TA DTM feature version: 0x00000000, firmware version: 0x12000016 > > TA RAP feature version: 0x00000000, firmware version: 0x00000000 > > TA SECUREDISPLAY feature version: 0x00000000, firmware version: 0x00000000 > > SMC feature version: 0, program: 0, firmware version: 0x00544fdf (84.79.223) > > SDMA0 feature version: 52, firmware version: 0x00000009 > > VCN feature version: 0, firmware version: 0x0311f002 > > DMCU feature version: 0, firmware version: 0x00000000 > > DMCUB feature version: 0, firmware version: 0x05000f00 > > TOC feature version: 0, firmware version: 0x00000007 > > MES_KIQ feature version: 0, firmware version: 0x00000000 > > MES feature version: 0, firmware version: 0x00000000 > > VPE feature version: 0, firmware version: 0x00000000 > > VBIOS version: 102-RAPHAEL-008 > > > > I forgot to add output for discrete GPU: > > > sudo cat /sys/kernel/debug/dri/1/amdgpu_firmware_info > [sudo] password for mikhail: > VCE feature version: 0, firmware version: 0x00000000 > UVD feature version: 0, firmware version: 0x00000000 > MC feature version: 0, firmware version: 0x00000000 > ME feature version: 44, firmware version: 0x00000040 > PFP feature version: 44, firmware version: 0x00000062 > CE feature version: 44, firmware version: 0x00000025 > RLC feature version: 1, firmware version: 0x00000060 > RLC SRLC feature version: 0, firmware version: 0x00000000 > RLC SRLG feature version: 0, firmware version: 0x00000000 > RLC SRLS feature version: 0, firmware version: 0x00000000 > RLCP feature version: 0, firmware version: 0x00000000 > RLCV feature version: 0, firmware version: 0x00000000 > MEC feature version: 44, firmware version: 0x00000076 > MEC2 feature version: 44, firmware version: 0x00000076 > IMU feature version: 0, firmware version: 0x00000000 > SOS feature version: 0, firmware version: 0x00210e64 > ASD feature version: 553648345, firmware version: 0x210000d9 > TA XGMI feature version: 0x00000000, firmware version: 0x2000000f > TA RAS feature version: 0x00000000, firmware version: 0x1b00013e > TA HDCP feature version: 0x00000000, firmware version: 0x1700003f > TA DTM feature version: 0x00000000, firmware version: 0x12000016 > TA RAP feature version: 0x00000000, firmware version: 0x07000016 > TA SECUREDISPLAY feature version: 0x00000000, firmware version: 0x00000000 > SMC feature version: 0, program: 0, firmware version: 0x003a5a00 (58.90.0) > SDMA0 feature version: 52, firmware version: 0x00000053 > SDMA1 feature version: 52, firmware version: 0x00000053 > SDMA2 feature version: 52, firmware version: 0x00000053 > SDMA3 feature version: 52, firmware version: 0x00000053 > VCN feature version: 0, firmware version: 0x0311f002 > DMCU feature version: 0, firmware version: 0x00000000 > DMCUB feature version: 0, firmware version: 0x02020020 > TOC feature version: 0, firmware version: 0x00000000 > MES_KIQ feature version: 0, firmware version: 0x00000000 > MES feature version: 0, firmware version: 0x00000000 > VPE feature version: 0, firmware version: 0x00000000 > VBIOS version: 113-D4120100-100 > > > -- > Best Regards, > Mike Gavrilov. [-- Attachment #2: 0001-drm-amd-display-fix-corruption-with-high-refresh-rat.patch --] [-- Type: text/x-patch, Size: 2643 bytes --] From 8aaf8da07a8b542c0a0f4da2601da07beddfdeb0 Mon Sep 17 00:00:00 2001 From: Alex Deucher <alexander.deucher@amd.com> Date: Tue, 16 Jul 2024 12:49:25 -0400 Subject: [PATCH] drm/amd/display: fix corruption with high refresh rates on DCN 3.0 This reverts commit bc87d666c05a13e6d4ae1ddce41fc43d2567b9a2 and the register changes from commit 6d4279cb99ac4f51d10409501d29969f687ac8dc. Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3478 Cc: mikhail.v.gavrilov@gmail.com Cc: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> --- .../drm/amd/display/dc/optc/dcn10/dcn10_optc.c | 15 +++------------ .../drm/amd/display/dc/optc/dcn20/dcn20_optc.c | 10 ++++++++++ 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/optc/dcn10/dcn10_optc.c b/drivers/gpu/drm/amd/display/dc/optc/dcn10/dcn10_optc.c index 4f82146d94b1..f00d27b7c6fe 100644 --- a/drivers/gpu/drm/amd/display/dc/optc/dcn10/dcn10_optc.c +++ b/drivers/gpu/drm/amd/display/dc/optc/dcn10/dcn10_optc.c @@ -950,19 +950,10 @@ 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); - - } 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); } + + // Setup manual flow control for EOF via TRIG_A + optc->funcs->setup_manual_trigger(optc); } void optc1_set_vtotal_min_max(struct timing_generator *optc, int vtotal_min, int vtotal_max) diff --git a/drivers/gpu/drm/amd/display/dc/optc/dcn20/dcn20_optc.c b/drivers/gpu/drm/amd/display/dc/optc/dcn20/dcn20_optc.c index 43417cff2c9b..b4694985a40a 100644 --- a/drivers/gpu/drm/amd/display/dc/optc/dcn20/dcn20_optc.c +++ b/drivers/gpu/drm/amd/display/dc/optc/dcn20/dcn20_optc.c @@ -453,6 +453,16 @@ 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, -- 2.45.2 ^ permalink raw reply related [flat|nested] 19+ messages in thread
* Re: 6.10/bisected/regression - commits bc87d666c05 and 6d4279cb99ac cause appearing green flashing bar on top of screen on Radeon 6900XT and 120Hz 2024-07-16 17:10 ` Alex Deucher @ 2024-07-17 6:28 ` Mikhail Gavrilov 2024-07-23 4:24 ` Eric Biggers 1 sibling, 0 replies; 19+ messages in thread From: Mikhail Gavrilov @ 2024-07-17 6:28 UTC (permalink / raw) To: Alex Deucher Cc: Rodrigo Siqueira Jordao, Mahfooz, Hamza, Linux regressions mailing list, Deucher, Alexander, amd-gfx list, dri-devel, Linux List Kernel Mailing On Tue, Jul 16, 2024 at 10:10 PM Alex Deucher <alexdeucher@gmail.com> wrote: > > Does the attached partial revert fix it? > > Alex > Yes, thanks. Tested-by: Mikhail Gavrilov <mikhail.v.gavrilov@gmail.com> -- Best Regards, Mike Gavrilov. ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: 6.10/bisected/regression - commits bc87d666c05 and 6d4279cb99ac cause appearing green flashing bar on top of screen on Radeon 6900XT and 120Hz 2024-07-16 17:10 ` Alex Deucher 2024-07-17 6:28 ` Mikhail Gavrilov @ 2024-07-23 4:24 ` Eric Biggers 1 sibling, 0 replies; 19+ messages in thread From: Eric Biggers @ 2024-07-23 4:24 UTC (permalink / raw) To: Alex Deucher Cc: Mikhail Gavrilov, Rodrigo Siqueira Jordao, Mahfooz, Hamza, Linux regressions mailing list, Deucher, Alexander, amd-gfx list, dri-devel, Linux List Kernel Mailing On Tue, Jul 16, 2024 at 01:10:37PM -0400, Alex Deucher wrote: > From 8aaf8da07a8b542c0a0f4da2601da07beddfdeb0 Mon Sep 17 00:00:00 2001 > From: Alex Deucher <alexander.deucher@amd.com> > Date: Tue, 16 Jul 2024 12:49:25 -0400 > Subject: [PATCH] drm/amd/display: fix corruption with high refresh rates on > DCN 3.0 > > This reverts commit bc87d666c05a13e6d4ae1ddce41fc43d2567b9a2 and the > register changes from commit 6d4279cb99ac4f51d10409501d29969f687ac8dc. > > Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3478 > Cc: mikhail.v.gavrilov@gmail.com > Cc: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com> > Signed-off-by: Alex Deucher <alexander.deucher@amd.com> > --- > .../drm/amd/display/dc/optc/dcn10/dcn10_optc.c | 15 +++------------ > .../drm/amd/display/dc/optc/dcn20/dcn20_optc.c | 10 ++++++++++ > 2 files changed, 13 insertions(+), 12 deletions(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/optc/dcn10/dcn10_optc.c b/drivers/gpu/drm/amd/display/dc/optc/dcn10/dcn10_optc.c > index 4f82146d94b1..f00d27b7c6fe 100644 > --- a/drivers/gpu/drm/amd/display/dc/optc/dcn10/dcn10_optc.c > +++ b/drivers/gpu/drm/amd/display/dc/optc/dcn10/dcn10_optc.c > @@ -950,19 +950,10 @@ 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); > - > - } 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); > } > + > + // Setup manual flow control for EOF via TRIG_A > + optc->funcs->setup_manual_trigger(optc); > } > > void optc1_set_vtotal_min_max(struct timing_generator *optc, int vtotal_min, int vtotal_max) > diff --git a/drivers/gpu/drm/amd/display/dc/optc/dcn20/dcn20_optc.c b/drivers/gpu/drm/amd/display/dc/optc/dcn20/dcn20_optc.c > index 43417cff2c9b..b4694985a40a 100644 > --- a/drivers/gpu/drm/amd/display/dc/optc/dcn20/dcn20_optc.c > +++ b/drivers/gpu/drm/amd/display/dc/optc/dcn20/dcn20_optc.c > @@ -453,6 +453,16 @@ 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, > -- > 2.45.2 This patch fixes the bug for me too. I am using a Radeon RX 6400, and I've been encountering the bug when using 1920x1080 resolution on a monitor whose native resolution is 2560x1440. Feel free to add: Tested-by: Eric Biggers <ebiggers@kernel.org> Thanks, - Eric ^ permalink raw reply [flat|nested] 19+ messages in thread
end of thread, other threads:[~2024-07-23 4:24 UTC | newest] Thread overview: 19+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2024-05-26 14:06 6.10/bisected/regression - commits bc87d666c05 and 6d4279cb99ac cause appearing green flashing bar on top of screen on Radeon 6900XT and 120Hz Mikhail Gavrilov 2024-06-05 12:04 ` Mikhail Gavrilov 2024-06-07 12:29 ` Linux regression tracking (Thorsten Leemhuis) 2024-06-10 22:05 ` Mikhail Gavrilov 2024-06-07 13:39 ` Alex Deucher 2024-06-09 21:19 ` Mikhail Gavrilov 2024-06-21 7:56 ` Linux regression tracking (Thorsten Leemhuis) 2024-06-21 10:44 ` Mikhail Gavrilov 2024-06-28 15:19 ` Alex Deucher 2024-06-29 16:46 ` Rodrigo Siqueira Jordao 2024-06-29 23:18 ` Mikhail Gavrilov 2024-07-09 12:41 ` Linux regression tracking (Thorsten Leemhuis) 2024-07-09 14:57 ` Rodrigo Siqueira Jordao 2024-07-09 14:48 ` Rodrigo Siqueira Jordao 2024-07-10 7:01 ` Mikhail Gavrilov 2024-07-10 7:03 ` Mikhail Gavrilov 2024-07-16 17:10 ` Alex Deucher 2024-07-17 6:28 ` Mikhail Gavrilov 2024-07-23 4:24 ` Eric Biggers
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox