* [PATCH] drm/amd/display: Shorten delay time to 1us while resetting FIFO
@ 2022-01-19 22:18 Liu, Zhan
2022-01-19 22:20 ` Alex Deucher
2022-01-19 22:23 ` Liu, Zhan
0 siblings, 2 replies; 4+ messages in thread
From: Liu, Zhan @ 2022-01-19 22:18 UTC (permalink / raw)
To: amd-gfx
Cc: Liu, Charlene, Kotarac, Pavle, Pierre-Loup Griffais, Gutierrez,
Agustin, Cornij, Nikola
[AMD Official Use Only]
[Why]
Current FIFO reset delay for dcn10 is 100us, which is too long
and will fail atomic flip. As a result, there will be no display
on boot.
[How]
Shorten delay time to 1us. This also aligns with FIFO reset delay
on other ASICs.
Signed-off-by: Zhan Liu <zhan.liu@amd.com>
---
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_stream_encoder.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_stream_encoder.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_stream_encoder.c
index bf4436d7aaab..2077c22befa5 100644
--- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_stream_encoder.c
+++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_stream_encoder.c
@@ -909,7 +909,7 @@ void enc1_stream_encoder_reset_fifo(
/* set DIG_START to 0x1 to reset FIFO */
REG_UPDATE(DIG_FE_CNTL, DIG_START, 1);
- udelay(100);
+ udelay(1);
/* write 0 to take the FIFO out of reset */
REG_UPDATE(DIG_FE_CNTL, DIG_START, 0);
--
2.25.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] drm/amd/display: Shorten delay time to 1us while resetting FIFO
2022-01-19 22:18 [PATCH] drm/amd/display: Shorten delay time to 1us while resetting FIFO Liu, Zhan
@ 2022-01-19 22:20 ` Alex Deucher
2022-01-19 22:23 ` Liu, Zhan
1 sibling, 0 replies; 4+ messages in thread
From: Alex Deucher @ 2022-01-19 22:20 UTC (permalink / raw)
To: Liu, Zhan
Cc: Liu, Charlene, amd-gfx, Cornij, Nikola, Pierre-Loup Griffais,
Gutierrez, Agustin, Kotarac, Pavle
Acked-by: Alex Deucher <alexander.deucher@amd.com>
On Wed, Jan 19, 2022 at 5:19 PM Liu, Zhan <Zhan.Liu@amd.com> wrote:
>
> [AMD Official Use Only]
>
> [Why]
> Current FIFO reset delay for dcn10 is 100us, which is too long
> and will fail atomic flip. As a result, there will be no display
> on boot.
>
> [How]
> Shorten delay time to 1us. This also aligns with FIFO reset delay
> on other ASICs.
>
> Signed-off-by: Zhan Liu <zhan.liu@amd.com>
> ---
> drivers/gpu/drm/amd/display/dc/dcn10/dcn10_stream_encoder.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_stream_encoder.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_stream_encoder.c
> index bf4436d7aaab..2077c22befa5 100644
> --- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_stream_encoder.c
> +++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_stream_encoder.c
> @@ -909,7 +909,7 @@ void enc1_stream_encoder_reset_fifo(
>
> /* set DIG_START to 0x1 to reset FIFO */
> REG_UPDATE(DIG_FE_CNTL, DIG_START, 1);
> - udelay(100);
> + udelay(1);
>
> /* write 0 to take the FIFO out of reset */
> REG_UPDATE(DIG_FE_CNTL, DIG_START, 0);
> --
> 2.25.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [PATCH] drm/amd/display: Shorten delay time to 1us while resetting FIFO
2022-01-19 22:18 [PATCH] drm/amd/display: Shorten delay time to 1us while resetting FIFO Liu, Zhan
2022-01-19 22:20 ` Alex Deucher
@ 2022-01-19 22:23 ` Liu, Zhan
2022-01-20 2:37 ` Liu, Zhan
1 sibling, 1 reply; 4+ messages in thread
From: Liu, Zhan @ 2022-01-19 22:23 UTC (permalink / raw)
To: Liu, Zhan, amd-gfx
Cc: Liu, Charlene, Cornij, Nikola, Gutierrez, Agustin,
Pierre-Loup Griffais, Kotarac, Pavle
[Public]
Apologize for sending out the patch with the wrong sensitivity a few seconds ago. I've updated sensitivity policy to "Public" here.
Thanks,
Zhan
> -----Original Message-----
> From: amd-gfx <amd-gfx-bounces@lists.freedesktop.org> On Behalf Of Liu, Zhan
> Sent: 2022/January/19, Wednesday 5:19 PM
> To: amd-gfx@lists.freedesktop.org
> Cc: Liu, Charlene <Charlene.Liu@amd.com>; Kotarac, Pavle
> <Pavle.Kotarac@amd.com>; Pierre-Loup Griffais <pgriffais@valvesoftware.com>;
> Gutierrez, Agustin <Agustin.Gutierrez@amd.com>; Cornij, Nikola
> <Nikola.Cornij@amd.com>
> Subject: [PATCH] drm/amd/display: Shorten delay time to 1us while resetting FIFO
>
> [Why]
> Current FIFO reset delay for dcn10 is 100us, which is too long and will fail atomic
> flip. As a result, there will be no display on boot.
>
> [How]
> Shorten delay time to 1us. This also aligns with FIFO reset delay on other ASICs.
>
> Signed-off-by: Zhan Liu <zhan.liu@amd.com>
> ---
> drivers/gpu/drm/amd/display/dc/dcn10/dcn10_stream_encoder.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_stream_encoder.c
> b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_stream_encoder.c
> index bf4436d7aaab..2077c22befa5 100644
> --- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_stream_encoder.c
> +++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_stream_encoder.c
> @@ -909,7 +909,7 @@ void enc1_stream_encoder_reset_fifo(
>
> /* set DIG_START to 0x1 to reset FIFO */
> REG_UPDATE(DIG_FE_CNTL, DIG_START, 1);
> - udelay(100);
> + udelay(1);
>
> /* write 0 to take the FIFO out of reset */
> REG_UPDATE(DIG_FE_CNTL, DIG_START, 0);
> --
> 2.25.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [PATCH] drm/amd/display: Shorten delay time to 1us while resetting FIFO
2022-01-19 22:23 ` Liu, Zhan
@ 2022-01-20 2:37 ` Liu, Zhan
0 siblings, 0 replies; 4+ messages in thread
From: Liu, Zhan @ 2022-01-20 2:37 UTC (permalink / raw)
To: amd-gfx
Cc: Liu, Charlene, Cornij, Nikola, Gutierrez, Agustin,
Pierre-Loup Griffais, Kotarac, Pavle
[Public]
Thank you all for the review. I've found a better solution here, so I will retire this patch, and re-submit a different one.
Thanks,
Zhan
> -----Original Message-----
> From: Liu, Zhan <Zhan.Liu@amd.com>
> Sent: 2022/January/19, Wednesday 5:24 PM
> To: Liu, Zhan <Zhan.Liu@amd.com>; amd-gfx@lists.freedesktop.org
> Cc: Liu, Charlene <Charlene.Liu@amd.com>; Kotarac, Pavle
> <Pavle.Kotarac@amd.com>; Pierre-Loup Griffais <pgriffais@valvesoftware.com>;
> Gutierrez, Agustin <Agustin.Gutierrez@amd.com>; Cornij, Nikola
> <Nikola.Cornij@amd.com>
> Subject: RE: [PATCH] drm/amd/display: Shorten delay time to 1us while resetting
> FIFO
>
> [Public]
>
> Apologize for sending out the patch with the wrong sensitivity a few seconds ago.
> I've updated sensitivity policy to "Public" here.
>
> Thanks,
> Zhan
>
> > -----Original Message-----
> > From: amd-gfx <amd-gfx-bounces@lists.freedesktop.org> On Behalf Of
> > Liu, Zhan
> > Sent: 2022/January/19, Wednesday 5:19 PM
> > To: amd-gfx@lists.freedesktop.org
> > Cc: Liu, Charlene <Charlene.Liu@amd.com>; Kotarac, Pavle
> > <Pavle.Kotarac@amd.com>; Pierre-Loup Griffais
> > <pgriffais@valvesoftware.com>; Gutierrez, Agustin
> > <Agustin.Gutierrez@amd.com>; Cornij, Nikola <Nikola.Cornij@amd.com>
> > Subject: [PATCH] drm/amd/display: Shorten delay time to 1us while
> > resetting FIFO
> >
> > [Why]
> > Current FIFO reset delay for dcn10 is 100us, which is too long and
> > will fail atomic flip. As a result, there will be no display on boot.
> >
> > [How]
> > Shorten delay time to 1us. This also aligns with FIFO reset delay on other ASICs.
> >
> > Signed-off-by: Zhan Liu <zhan.liu@amd.com>
> > ---
> > drivers/gpu/drm/amd/display/dc/dcn10/dcn10_stream_encoder.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git
> > a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_stream_encoder.c
> > b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_stream_encoder.c
> > index bf4436d7aaab..2077c22befa5 100644
> > --- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_stream_encoder.c
> > +++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_stream_encoder.c
> > @@ -909,7 +909,7 @@ void enc1_stream_encoder_reset_fifo(
> >
> > /* set DIG_START to 0x1 to reset FIFO */
> > REG_UPDATE(DIG_FE_CNTL, DIG_START, 1);
> > - udelay(100);
> > + udelay(1);
> >
> > /* write 0 to take the FIFO out of reset */
> > REG_UPDATE(DIG_FE_CNTL, DIG_START, 0);
> > --
> > 2.25.1
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-01-20 2:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-19 22:18 [PATCH] drm/amd/display: Shorten delay time to 1us while resetting FIFO Liu, Zhan
2022-01-19 22:20 ` Alex Deucher
2022-01-19 22:23 ` Liu, Zhan
2022-01-20 2:37 ` Liu, Zhan
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.