From: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
To: Aurabindo Pillai <aurabindo.pillai@amd.com>,
amd-gfx@lists.freedesktop.org
Cc: alexdeucher@gmail.com, Harry.Wentland@amd.com,
Samson Tam <Samson.Tam@amd.com>
Subject: Re: [PATCH] drm/amd/display: fix unnecessary pipe split playing NV12 1080p MPO video
Date: Mon, 11 Jul 2022 13:54:12 -0400 [thread overview]
Message-ID: <19959e9e-7362-dc74-a83e-db71522ef407@amd.com> (raw)
In-Reply-To: <20220708185605.1993083-1-aurabindo.pillai@amd.com>
On 7/8/22 14:56, Aurabindo Pillai wrote:
> From: Samson Tam <Samson.Tam@amd.com>
>
> [Why]
> When playing NV12 1080p MPO video, it is pipe splitting so
> we see two pipes in fullscreen and four pipes in windowed
> mode. Pipe split is happening because we are setting
> MaximumMPCCombine = 1
>
> [How]
> Algorithm for MaximumMPCCombine has extra conditions we do
> not need. Use DCN31 algorithm instead
>
> Signed-off-by: Samson Tam <Samson.Tam@amd.com>
> ---
> .../dc/dml/dcn32/display_mode_vba_32.c | 31 ++-----------------
> 1 file changed, 3 insertions(+), 28 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_32.c b/drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_32.c
> index 04b13e765a52..c6c3a9e6731a 100644
> --- a/drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_32.c
> +++ b/drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_32.c
> @@ -3733,35 +3733,10 @@ void dml32_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_l
> mode_lib->vba.ModeIsSupported = mode_lib->vba.ModeSupport[i][0] == true
> || mode_lib->vba.ModeSupport[i][1] == true;
>
> - if ((mode_lib->vba.ModeSupport[i][0] == false && mode_lib->vba.ModeSupport[i][1] == true)
> - || MPCCombineMethodAsPossible
> - || (MPCCombineMethodAsNeededForPStateChangeAndVoltage
> - && mode_lib->vba.DRAMClockChangeRequirementFinal
> - && (((mode_lib->vba.DRAMClockChangeSupport[i][1] == dm_dram_clock_change_vactive
> - || mode_lib->vba.DRAMClockChangeSupport[i][1] ==
> - dm_dram_clock_change_vactive_w_mall_full_frame
> - || mode_lib->vba.DRAMClockChangeSupport[i][1] ==
> - dm_dram_clock_change_vactive_w_mall_sub_vp)
> - && !(mode_lib->vba.DRAMClockChangeSupport[i][0] == dm_dram_clock_change_vactive
> - || mode_lib->vba.DRAMClockChangeSupport[i][0] ==
> - dm_dram_clock_change_vactive_w_mall_full_frame
> - || mode_lib->vba.DRAMClockChangeSupport[i][0] ==
> - dm_dram_clock_change_vactive_w_mall_sub_vp))
> - || ((mode_lib->vba.DRAMClockChangeSupport[i][1] == dm_dram_clock_change_vblank
> - || mode_lib->vba.DRAMClockChangeSupport[i][1] ==
> - dm_dram_clock_change_vblank_w_mall_full_frame
> - || mode_lib->vba.DRAMClockChangeSupport[i][1] ==
> - dm_dram_clock_change_vblank_w_mall_sub_vp)
> - && mode_lib->vba.DRAMClockChangeSupport[i][0] == dm_dram_clock_change_unsupported)))
> - || (MPCCombineMethodAsNeededForPStateChangeAndVoltage &&
> - mode_lib->vba.FCLKChangeRequirementFinal
> - && ((mode_lib->vba.FCLKChangeSupport[i][1] == dm_fclock_change_vactive
> - && mode_lib->vba.FCLKChangeSupport[i][0] != dm_fclock_change_vactive)
> - || (mode_lib->vba.FCLKChangeSupport[i][1] == dm_fclock_change_vblank
> - && mode_lib->vba.FCLKChangeSupport[i][0] == dm_fclock_change_unsupported)))) {
> - MaximumMPCCombine = 1;
> - } else {
> + if (mode_lib->vba.ModeSupport[i][0] == true) {
> MaximumMPCCombine = 0;
> + } else {
> + MaximumMPCCombine = 1;
> }
> }
> }
LGTM,
Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
prev parent reply other threads:[~2022-07-11 17:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-08 18:56 [PATCH] drm/amd/display: fix unnecessary pipe split playing NV12 1080p MPO video Aurabindo Pillai
2022-07-11 17:54 ` Rodrigo Siqueira [this message]
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=19959e9e-7362-dc74-a83e-db71522ef407@amd.com \
--to=rodrigo.siqueira@amd.com \
--cc=Harry.Wentland@amd.com \
--cc=Samson.Tam@amd.com \
--cc=alexdeucher@gmail.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=aurabindo.pillai@amd.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox