From: Rodrigo Siqueira Jordao <Rodrigo.Siqueira@amd.com>
To: Melissa Wen <mwen@igalia.com>,
Tom Chung <chiahsuan.chung@amd.com>,
amd-gfx@lists.freedesktop.org
Cc: Harry.Wentland@amd.com, Sunpeng.Li@amd.com,
Aurabindo.Pillai@amd.com, roman.li@amd.com, wayne.lin@amd.com,
agustin.gutierrez@amd.com, jerry.zuo@amd.com,
zaeem.mohamed@amd.com,
Mario Limonciello <mario.limonciello@amd.com>,
Alex Deucher <alexander.deucher@amd.com>,
stable@vger.kernel.org
Subject: Re: [PATCH 22/24] drm/amd/display: Adjust cursor position
Date: Fri, 9 Aug 2024 13:06:41 -0600 [thread overview]
Message-ID: <6149f47b-3b30-4a1c-bcbe-e94b598bad6a@amd.com> (raw)
In-Reply-To: <24bdf1f8-4661-46d1-9f5b-3cf835e39c22@igalia.com>
On 8/8/24 4:06 PM, Melissa Wen wrote:
>
>
> On 07/08/2024 04:55, Tom Chung wrote:
>> From: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
>>
>> [why & how]
>> When the commit 9d84c7ef8a87 ("drm/amd/display: Correct cursor position
>> on horizontal mirror") was introduced, it used the wrong calculation for
>> the position copy for X. This commit uses the correct calculation for
>> that
>> based on the original patch.
>>
>> Fixes: 9d84c7ef8a87 ("drm/amd/display: Correct cursor position on
>> horizontal mirror")
>> Cc: Mario Limonciello <mario.limonciello@amd.com>
>> Cc: Alex Deucher <alexander.deucher@amd.com>
>> Cc: stable@vger.kernel.org
>> Acked-by: Wayne Lin <wayne.lin@amd.com>
>> Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
>> Signed-off-by: Tom Chung <chiahsuan.chung@amd.com>
>> ---
>> drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
>> b/drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
>> index 802902f54d09..01dffed4d30b 100644
>> --- a/drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
>> +++ b/drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
>> @@ -3687,7 +3687,7 @@ void dcn10_set_cursor_position(struct pipe_ctx
>> *pipe_ctx)
>> (int)hubp->curs_attr.width || pos_cpy.x
>> <= (int)hubp->curs_attr.width +
>> pipe_ctx->plane_state->src_rect.x) {
>> - pos_cpy.x = 2 * viewport_width - temp_x;
>> + pos_cpy.x = temp_x + viewport_width;
> Hey,
>
> AFAIU, this patch reverts the change in the previous patch.
> Or this should be discarded, or both.
Hi Melissa,
This is a different part of the same function; the above change happens
toward the end of dcn10_set_cursor_position, and your change occurs in
the middle of the function. I think your change can probably be applied
in this second part, but I prefer to do it in a different patch since
this other change requires validation.
Thanks
Siqueira
>
> Melissa
>> }
>> }
>> } else {
>
next prev parent reply other threads:[~2024-08-09 19:06 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-07 7:55 [PATCH 00/24] DC Patches Aug 12 2024 Tom Chung
2024-08-07 7:55 ` [PATCH 01/24] drm/amd/display: fix minor coding errors where dml21 phase 5 uses wrong variables Tom Chung
2024-08-07 7:55 ` [PATCH 02/24] drm/amd/display: apply vmin optimization even if it doesn't reach vmin level Tom Chung
2024-08-07 7:55 ` [PATCH 03/24] drm/amd/display: 3DLUT non-DMA refactor Tom Chung
2024-08-07 7:55 ` [PATCH 04/24] drm/amd/display: Check null pointers before using dc->clk_mgr Tom Chung
2024-08-07 7:55 ` [PATCH 05/24] drm/amd/display: Unlock Pipes Based On DET Allocation Tom Chung
2024-08-07 7:55 ` [PATCH 06/24] drm/amd/display: Update to using new dccg callbacks Tom Chung
2024-08-07 7:55 ` [PATCH 07/24] drm/amd/display: Add more logging for MALL static screen Tom Chung
2024-08-07 7:55 ` [PATCH 08/24] drm/amd/display: guard otg disable w/a for test Tom Chung
2024-08-07 7:55 ` [PATCH 09/24] drm/amd/display: Check null pointer before try to access it Tom Chung
2024-08-07 7:55 ` [PATCH 10/24] " Tom Chung
2024-08-07 7:55 ` [PATCH 11/24] drm/amd/display: Fix print format specifiers in DC_LOG_IPS Tom Chung
2024-08-07 7:55 ` [PATCH 12/24] drm/amd/display: Optimize vstartup position for AS-SDP Tom Chung
2024-08-07 7:55 ` [PATCH 13/24] drm/amd/display: Reduce redundant minimal transitions due to SubVP Tom Chung
2024-08-07 7:55 ` [PATCH 14/24] drm/amd/display: Disable DCN401 UCLK P-State support on full updates Tom Chung
2024-08-07 7:55 ` [PATCH 15/24] drm/amd/display: Perform outstanding programming " Tom Chung
2024-08-07 7:55 ` [PATCH 16/24] drm/amd/display: Set max VTotal cap for dcn401 Tom Chung
2024-08-07 7:55 ` [PATCH 17/24] drm/amd/display: remove redundant msg to pmfw at boot/resume Tom Chung
2024-08-07 7:55 ` [PATCH 18/24] drm/amd/display: Enable otg synchronization logic for DCN321 Tom Chung
2024-08-07 7:55 ` [PATCH 19/24] drm/amd/display: Remove unused field Tom Chung
2024-08-07 7:55 ` [PATCH 20/24] drm/amd/display: Improve FAM control for DCN401 Tom Chung
2024-08-07 7:55 ` [PATCH 21/24] drm/amd/display: fix cursor offset on rotation 180 Tom Chung
2024-08-07 7:55 ` [PATCH 22/24] drm/amd/display: Adjust cursor position Tom Chung
2024-08-08 22:06 ` Melissa Wen
2024-08-09 19:06 ` Rodrigo Siqueira Jordao [this message]
2024-08-07 7:55 ` [PATCH 23/24] drm/amd/display: Remove unnecessary call to REG_SEQ_SUBMIT|WAIT_DONE Tom Chung
2024-08-07 7:55 ` [PATCH 24/24] drm/amd/display: Promote DAL to 3.2.296 Tom Chung
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=6149f47b-3b30-4a1c-bcbe-e94b598bad6a@amd.com \
--to=rodrigo.siqueira@amd.com \
--cc=Aurabindo.Pillai@amd.com \
--cc=Harry.Wentland@amd.com \
--cc=Sunpeng.Li@amd.com \
--cc=agustin.gutierrez@amd.com \
--cc=alexander.deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=chiahsuan.chung@amd.com \
--cc=jerry.zuo@amd.com \
--cc=mario.limonciello@amd.com \
--cc=mwen@igalia.com \
--cc=roman.li@amd.com \
--cc=stable@vger.kernel.org \
--cc=wayne.lin@amd.com \
--cc=zaeem.mohamed@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