All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Liu, Zhan" <Zhan.Liu@amd.com>
To: "amd-gfx@lists.freedesktop.org" <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: change FIFO reset condition to embedded display only
Date: Wed, 19 Jan 2022 22:21:36 +0000	[thread overview]
Message-ID: <DM4PR12MB5214E88D148D9643F8CE62199E599@DM4PR12MB5214.namprd12.prod.outlook.com> (raw)

[Public]

[Why]
FIFO reset is only necessary for fast boot sequence, where otg is disabled
and dig fe is enabled when changing dispclk. Fast boot is only enabled
on embedded displays.

[How]
Change FIFO reset condition to "embedded display only".

Signed-off-by: Zhan Liu <zhan.liu@amd.com>
---
 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c
index f1593186e964..f3ff141b706a 100644
--- a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c
+++ b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c
@@ -1608,7 +1608,7 @@ static enum dc_status apply_single_controller_ctx_to_hw(
                        pipe_ctx->stream_res.stream_enc,
                        pipe_ctx->stream_res.tg->inst);

-       if (dc_is_dp_signal(pipe_ctx->stream->signal) &&
+       if (dc_is_embedded_signal(pipe_ctx->stream->signal) &&
                pipe_ctx->stream_res.stream_enc->funcs->reset_fifo)
                pipe_ctx->stream_res.stream_enc->funcs->reset_fifo(
                        pipe_ctx->stream_res.stream_enc);
--
2.25.1

             reply	other threads:[~2022-01-19 22:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-19 22:21 Liu, Zhan [this message]
2022-01-19 22:45 ` [PATCH] drm/amd/display: change FIFO reset condition to embedded display only Liu, Charlene

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DM4PR12MB5214E88D148D9643F8CE62199E599@DM4PR12MB5214.namprd12.prod.outlook.com \
    --to=zhan.liu@amd.com \
    --cc=Agustin.Gutierrez@amd.com \
    --cc=Charlene.Liu@amd.com \
    --cc=Nikola.Cornij@amd.com \
    --cc=Pavle.Kotarac@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=pgriffais@valvesoftware.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.