* FAILED: patch "[PATCH] drm/amd/display: Use HW lock mgr for PSR1 when only one eDP" failed to apply to 6.6-stable tree
@ 2025-03-24 15:37 gregkh
2025-03-24 15:52 ` Mario Limonciello
0 siblings, 1 reply; 5+ messages in thread
From: gregkh @ 2025-03-24 15:37 UTC (permalink / raw)
To: mario.limonciello, alex.hung, alexander.deucher, chiahsuan.chung,
daniel.wheeler
Cc: stable
The patch below does not apply to the 6.6-stable tree.
If someone wants it applied there, or to any other stable or longterm
tree, then please email the backport, including the original git commit
id to <stable@vger.kernel.org>.
To reproduce the conflict and resubmit, you may use the following commands:
git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.6.y
git checkout FETCH_HEAD
git cherry-pick -x acbf16a6ae775b4db86f537448cc466288aa307e
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<stable@vger.kernel.org>' --in-reply-to '2025032441-constrain-eastbound-09d8@gregkh' --subject-prefix 'PATCH 6.6.y' HEAD^..
Possible dependencies:
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From acbf16a6ae775b4db86f537448cc466288aa307e Mon Sep 17 00:00:00 2001
From: Mario Limonciello <mario.limonciello@amd.com>
Date: Fri, 7 Mar 2025 15:55:20 -0600
Subject: [PATCH] drm/amd/display: Use HW lock mgr for PSR1 when only one eDP
[WHY]
DMUB locking is important to make sure that registers aren't accessed
while in PSR. Previously it was enabled but caused a deadlock in
situations with multiple eDP panels.
[HOW]
Detect if multiple eDP panels are in use to decide whether to use
lock. Refactor the function so that the first check is for PSR-SU
and then replay is in use to prevent having to look up number
of eDP panels for those configurations.
Fixes: f245b400a223 ("Revert "drm/amd/display: Use HW lock mgr for PSR1"")
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3965
Reviewed-by: ChiaHsuan Chung <chiahsuan.chung@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit ed569e1279a3045d6b974226c814e071fa0193a6)
Cc: stable@vger.kernel.org
diff --git a/drivers/gpu/drm/amd/display/dc/dce/dmub_hw_lock_mgr.c b/drivers/gpu/drm/amd/display/dc/dce/dmub_hw_lock_mgr.c
index bf636b28e3e1..6e2fce329d73 100644
--- a/drivers/gpu/drm/amd/display/dc/dce/dmub_hw_lock_mgr.c
+++ b/drivers/gpu/drm/amd/display/dc/dce/dmub_hw_lock_mgr.c
@@ -69,5 +69,16 @@ bool should_use_dmub_lock(struct dc_link *link)
if (link->replay_settings.replay_feature_enabled)
return true;
+ /* only use HW lock for PSR1 on single eDP */
+ if (link->psr_settings.psr_version == DC_PSR_VERSION_1) {
+ struct dc_link *edp_links[MAX_NUM_EDP];
+ int edp_num;
+
+ dc_get_edp_links(link->dc, edp_links, &edp_num);
+
+ if (edp_num == 1)
+ return true;
+ }
+
return false;
}
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: FAILED: patch "[PATCH] drm/amd/display: Use HW lock mgr for PSR1 when only one eDP" failed to apply to 6.6-stable tree
2025-03-24 15:37 FAILED: patch "[PATCH] drm/amd/display: Use HW lock mgr for PSR1 when only one eDP" failed to apply to 6.6-stable tree gregkh
@ 2025-03-24 15:52 ` Mario Limonciello
2025-03-24 15:59 ` Greg KH
0 siblings, 1 reply; 5+ messages in thread
From: Mario Limonciello @ 2025-03-24 15:52 UTC (permalink / raw)
To: gregkh, alex.hung, alexander.deucher, chiahsuan.chung,
daniel.wheeler
Cc: stable
On 3/24/2025 10:37, gregkh@linuxfoundation.org wrote:
>
> The patch below does not apply to the 6.6-stable tree.
> If someone wants it applied there, or to any other stable or longterm
> tree, then please email the backport, including the original git commit
> id to <stable@vger.kernel.org>.
>
> To reproduce the conflict and resubmit, you may use the following commands:
>
> git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.6.y
> git checkout FETCH_HEAD
> git cherry-pick -x acbf16a6ae775b4db86f537448cc466288aa307e
> # <resolve conflicts, build, test, etc.>
> git commit -s
> git send-email --to '<stable@vger.kernel.org>' --in-reply-to '2025032441-constrain-eastbound-09d8@gregkh' --subject-prefix 'PATCH 6.6.y' HEAD^..
>
> Possible dependencies:
>
>
>
> thanks,
>
> greg k-h
>
Hi,
Here is them missing dependency commit. Cherry-picking this first will
let the fix apply cleanly on 6.6.y:
commit bfeefe6ea5f1 ("drm/amd/display: should support dmub hw lock on
Replay")
Thanks,
> ------------------ original commit in Linus's tree ------------------
>
> From acbf16a6ae775b4db86f537448cc466288aa307e Mon Sep 17 00:00:00 2001
> From: Mario Limonciello <mario.limonciello@amd.com>
> Date: Fri, 7 Mar 2025 15:55:20 -0600
> Subject: [PATCH] drm/amd/display: Use HW lock mgr for PSR1 when only one eDP
>
> [WHY]
> DMUB locking is important to make sure that registers aren't accessed
> while in PSR. Previously it was enabled but caused a deadlock in
> situations with multiple eDP panels.
>
> [HOW]
> Detect if multiple eDP panels are in use to decide whether to use
> lock. Refactor the function so that the first check is for PSR-SU
> and then replay is in use to prevent having to look up number
> of eDP panels for those configurations.
>
> Fixes: f245b400a223 ("Revert "drm/amd/display: Use HW lock mgr for PSR1"")
> Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3965
> Reviewed-by: ChiaHsuan Chung <chiahsuan.chung@amd.com>
> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
> Signed-off-by: Alex Hung <alex.hung@amd.com>
> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
> (cherry picked from commit ed569e1279a3045d6b974226c814e071fa0193a6)
> Cc: stable@vger.kernel.org
>
> diff --git a/drivers/gpu/drm/amd/display/dc/dce/dmub_hw_lock_mgr.c b/drivers/gpu/drm/amd/display/dc/dce/dmub_hw_lock_mgr.c
> index bf636b28e3e1..6e2fce329d73 100644
> --- a/drivers/gpu/drm/amd/display/dc/dce/dmub_hw_lock_mgr.c
> +++ b/drivers/gpu/drm/amd/display/dc/dce/dmub_hw_lock_mgr.c
> @@ -69,5 +69,16 @@ bool should_use_dmub_lock(struct dc_link *link)
> if (link->replay_settings.replay_feature_enabled)
> return true;
>
> + /* only use HW lock for PSR1 on single eDP */
> + if (link->psr_settings.psr_version == DC_PSR_VERSION_1) {
> + struct dc_link *edp_links[MAX_NUM_EDP];
> + int edp_num;
> +
> + dc_get_edp_links(link->dc, edp_links, &edp_num);
> +
> + if (edp_num == 1)
> + return true;
> + }
> +
> return false;
> }
>
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: FAILED: patch "[PATCH] drm/amd/display: Use HW lock mgr for PSR1 when only one eDP" failed to apply to 6.6-stable tree
2025-03-24 15:52 ` Mario Limonciello
@ 2025-03-24 15:59 ` Greg KH
2025-03-24 16:21 ` Greg KH
0 siblings, 1 reply; 5+ messages in thread
From: Greg KH @ 2025-03-24 15:59 UTC (permalink / raw)
To: Mario Limonciello
Cc: alex.hung, alexander.deucher, chiahsuan.chung, daniel.wheeler,
stable
On Mon, Mar 24, 2025 at 10:52:49AM -0500, Mario Limonciello wrote:
> On 3/24/2025 10:37, gregkh@linuxfoundation.org wrote:
> >
> > The patch below does not apply to the 6.6-stable tree.
> > If someone wants it applied there, or to any other stable or longterm
> > tree, then please email the backport, including the original git commit
> > id to <stable@vger.kernel.org>.
> >
> > To reproduce the conflict and resubmit, you may use the following commands:
> >
> > git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.6.y
> > git checkout FETCH_HEAD
> > git cherry-pick -x acbf16a6ae775b4db86f537448cc466288aa307e
> > # <resolve conflicts, build, test, etc.>
> > git commit -s
> > git send-email --to '<stable@vger.kernel.org>' --in-reply-to '2025032441-constrain-eastbound-09d8@gregkh' --subject-prefix 'PATCH 6.6.y' HEAD^..
> >
> > Possible dependencies:
> >
> >
> >
> > thanks,
> >
> > greg k-h
> >
>
> Hi,
>
> Here is them missing dependency commit. Cherry-picking this first will let
> the fix apply cleanly on 6.6.y:
>
> commit bfeefe6ea5f1 ("drm/amd/display: should support dmub hw lock on
> Replay")
That worked, thanks!
greg k-h
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: FAILED: patch "[PATCH] drm/amd/display: Use HW lock mgr for PSR1 when only one eDP" failed to apply to 6.6-stable tree
2025-03-24 15:59 ` Greg KH
@ 2025-03-24 16:21 ` Greg KH
2025-03-24 16:23 ` Mario Limonciello
0 siblings, 1 reply; 5+ messages in thread
From: Greg KH @ 2025-03-24 16:21 UTC (permalink / raw)
To: Mario Limonciello
Cc: alex.hung, alexander.deucher, chiahsuan.chung, daniel.wheeler,
stable
On Mon, Mar 24, 2025 at 08:59:49AM -0700, Greg KH wrote:
> On Mon, Mar 24, 2025 at 10:52:49AM -0500, Mario Limonciello wrote:
> > On 3/24/2025 10:37, gregkh@linuxfoundation.org wrote:
> > >
> > > The patch below does not apply to the 6.6-stable tree.
> > > If someone wants it applied there, or to any other stable or longterm
> > > tree, then please email the backport, including the original git commit
> > > id to <stable@vger.kernel.org>.
> > >
> > > To reproduce the conflict and resubmit, you may use the following commands:
> > >
> > > git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.6.y
> > > git checkout FETCH_HEAD
> > > git cherry-pick -x acbf16a6ae775b4db86f537448cc466288aa307e
> > > # <resolve conflicts, build, test, etc.>
> > > git commit -s
> > > git send-email --to '<stable@vger.kernel.org>' --in-reply-to '2025032441-constrain-eastbound-09d8@gregkh' --subject-prefix 'PATCH 6.6.y' HEAD^..
> > >
> > > Possible dependencies:
> > >
> > >
> > >
> > > thanks,
> > >
> > > greg k-h
> > >
> >
> > Hi,
> >
> > Here is them missing dependency commit. Cherry-picking this first will let
> > the fix apply cleanly on 6.6.y:
> >
> > commit bfeefe6ea5f1 ("drm/amd/display: should support dmub hw lock on
> > Replay")
>
> That worked, thanks!
Nope, did not work for 6.1.y, that failed there :(
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: FAILED: patch "[PATCH] drm/amd/display: Use HW lock mgr for PSR1 when only one eDP" failed to apply to 6.6-stable tree
2025-03-24 16:21 ` Greg KH
@ 2025-03-24 16:23 ` Mario Limonciello
0 siblings, 0 replies; 5+ messages in thread
From: Mario Limonciello @ 2025-03-24 16:23 UTC (permalink / raw)
To: Greg KH
Cc: alex.hung, alexander.deucher, chiahsuan.chung, daniel.wheeler,
stable
On 3/24/2025 11:21, Greg KH wrote:
> On Mon, Mar 24, 2025 at 08:59:49AM -0700, Greg KH wrote:
>> On Mon, Mar 24, 2025 at 10:52:49AM -0500, Mario Limonciello wrote:
>>> On 3/24/2025 10:37, gregkh@linuxfoundation.org wrote:
>>>>
>>>> The patch below does not apply to the 6.6-stable tree.
>>>> If someone wants it applied there, or to any other stable or longterm
>>>> tree, then please email the backport, including the original git commit
>>>> id to <stable@vger.kernel.org>.
>>>>
>>>> To reproduce the conflict and resubmit, you may use the following commands:
>>>>
>>>> git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.6.y
>>>> git checkout FETCH_HEAD
>>>> git cherry-pick -x acbf16a6ae775b4db86f537448cc466288aa307e
>>>> # <resolve conflicts, build, test, etc.>
>>>> git commit -s
>>>> git send-email --to '<stable@vger.kernel.org>' --in-reply-to '2025032441-constrain-eastbound-09d8@gregkh' --subject-prefix 'PATCH 6.6.y' HEAD^..
>>>>
>>>> Possible dependencies:
>>>>
>>>>
>>>>
>>>> thanks,
>>>>
>>>> greg k-h
>>>>
>>>
>>> Hi,
>>>
>>> Here is them missing dependency commit. Cherry-picking this first will let
>>> the fix apply cleanly on 6.6.y:
>>>
>>> commit bfeefe6ea5f1 ("drm/amd/display: should support dmub hw lock on
>>> Replay")
>>
>> That worked, thanks!
>
> Nope, did not work for 6.1.y, that failed there :(
>
Yeah I saw both failure emails. This was only for 6.6.y that it works.
For 6.1.y here is a backport.
https://lore.kernel.org/stable/20250324155629.2588451-1-superm1@kernel.org/T/#u
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-03-24 16:23 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-24 15:37 FAILED: patch "[PATCH] drm/amd/display: Use HW lock mgr for PSR1 when only one eDP" failed to apply to 6.6-stable tree gregkh
2025-03-24 15:52 ` Mario Limonciello
2025-03-24 15:59 ` Greg KH
2025-03-24 16:21 ` Greg KH
2025-03-24 16:23 ` Mario Limonciello
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox