public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
* FAILED: patch "[PATCH] drm/amd/display: should support dmub hw lock on Replay" failed to apply to 6.1-stable tree
@ 2025-03-24 16:20 gregkh
  2025-03-24 16:49 ` [PATCH 6.1.y] drm/amd/display: should support dmub hw lock on Replay Aurabindo Pillai
  0 siblings, 1 reply; 5+ messages in thread
From: gregkh @ 2025-03-24 16:20 UTC (permalink / raw)
  To: martin.tsai, alexander.deucher, aurabindo.pillai, daniel.wheeler,
	robin.chen
  Cc: stable


The patch below does not apply to the 6.1-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.1.y
git checkout FETCH_HEAD
git cherry-pick -x bfeefe6ea5f18cabb8fda55364079573804623f9
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<stable@vger.kernel.org>' --in-reply-to '2025032457-occultist-maximum-38b6@gregkh' --subject-prefix 'PATCH 6.1.y' HEAD^..

Possible dependencies:



thanks,

greg k-h

------------------ original commit in Linus's tree ------------------

From bfeefe6ea5f18cabb8fda55364079573804623f9 Mon Sep 17 00:00:00 2001
From: Martin Tsai <martin.tsai@amd.com>
Date: Fri, 2 Feb 2024 14:39:29 +0800
Subject: [PATCH] drm/amd/display: should support dmub hw lock on Replay

[Why]
Without acquiring DMCUB hw lock, a race condition is caused with
Panel Replay feature, which will trigger a hang. Indicate that a
lock is necessary to prevent this when replay feature is enabled.

[How]
To allow dmub hw lock on Replay.

Reviewed-by: Robin Chen <robin.chen@amd.com>
Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Martin Tsai <martin.tsai@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

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 ba1fec3016d5..bf636b28e3e1 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
@@ -65,5 +65,9 @@ bool should_use_dmub_lock(struct dc_link *link)
 {
 	if (link->psr_settings.psr_version == DC_PSR_VERSION_SU_1)
 		return true;
+
+	if (link->replay_settings.replay_feature_enabled)
+		return true;
+
 	return false;
 }


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 6.1.y] drm/amd/display: should support dmub hw lock on Replay
  2025-03-24 16:20 FAILED: patch "[PATCH] drm/amd/display: should support dmub hw lock on Replay" failed to apply to 6.1-stable tree gregkh
@ 2025-03-24 16:49 ` Aurabindo Pillai
  2025-03-24 18:34   ` Greg KH
  2025-03-25 11:33   ` Sasha Levin
  0 siblings, 2 replies; 5+ messages in thread
From: Aurabindo Pillai @ 2025-03-24 16:49 UTC (permalink / raw)
  To: stable; +Cc: Martin Tsai, Robin Chen, Daniel Wheeler, Alex Deucher

From: Martin Tsai <martin.tsai@amd.com>

[Why]
Without acquiring DMCUB hw lock, a race condition is caused with
Panel Replay feature, which will trigger a hang. Indicate that a
lock is necessary to prevent this when replay feature is enabled.

[How]
To allow dmub hw lock on Replay.

Reviewed-by: Robin Chen <robin.chen@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Martin Tsai <martin.tsai@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit bfeefe6ea5f18cabb8fda55364079573804623f9)
---
 drivers/gpu/drm/amd/display/dc/dce/dmub_hw_lock_mgr.c | 3 +++
 1 file changed, 3 insertions(+)

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 6e2fce329d73..7407891286cd 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,6 +69,9 @@ bool should_use_dmub_lock(struct dc_link *link)
 	if (link->replay_settings.replay_feature_enabled)
 		return true;
 
+	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];
-- 
2.49.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 6.1.y] drm/amd/display: should support dmub hw lock on Replay
  2025-03-24 16:49 ` [PATCH 6.1.y] drm/amd/display: should support dmub hw lock on Replay Aurabindo Pillai
@ 2025-03-24 18:34   ` Greg KH
  2025-03-24 19:06     ` Pillai, Aurabindo
  2025-03-25 11:33   ` Sasha Levin
  1 sibling, 1 reply; 5+ messages in thread
From: Greg KH @ 2025-03-24 18:34 UTC (permalink / raw)
  To: Aurabindo Pillai
  Cc: stable, Martin Tsai, Robin Chen, Daniel Wheeler, Alex Deucher

On Mon, Mar 24, 2025 at 12:49:29PM -0400, Aurabindo Pillai wrote:
> From: Martin Tsai <martin.tsai@amd.com>
> 
> [Why]
> Without acquiring DMCUB hw lock, a race condition is caused with
> Panel Replay feature, which will trigger a hang. Indicate that a
> lock is necessary to prevent this when replay feature is enabled.
> 
> [How]
> To allow dmub hw lock on Replay.
> 
> Reviewed-by: Robin Chen <robin.chen@amd.com>
> Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
> Signed-off-by: Martin Tsai <martin.tsai@amd.com>
> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
> (cherry picked from commit bfeefe6ea5f18cabb8fda55364079573804623f9)
> ---
>  drivers/gpu/drm/amd/display/dc/dce/dmub_hw_lock_mgr.c | 3 +++
>  1 file changed, 3 insertions(+)

Does not apply to the tree at all :(

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 6.1.y] drm/amd/display: should support dmub hw lock on Replay
  2025-03-24 18:34   ` Greg KH
@ 2025-03-24 19:06     ` Pillai, Aurabindo
  0 siblings, 0 replies; 5+ messages in thread
From: Pillai, Aurabindo @ 2025-03-24 19:06 UTC (permalink / raw)
  To: Greg KH
  Cc: stable@vger.kernel.org, Tsai, Martin, Chen, Robin,
	Wheeler, Daniel, Deucher, Alexander

[AMD Official Use Only - AMD Internal Distribution Only]

> Does not apply to the tree at all :(

Hi Greg,

Sorry about the error - I was on the wrong stable branch.

But please drop this patch for 6.1 stable, since this tree does not have replay support, so this bug fix isn't valid.

--
Regards,
Jay

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 6.1.y] drm/amd/display: should support dmub hw lock on Replay
  2025-03-24 16:49 ` [PATCH 6.1.y] drm/amd/display: should support dmub hw lock on Replay Aurabindo Pillai
  2025-03-24 18:34   ` Greg KH
@ 2025-03-25 11:33   ` Sasha Levin
  1 sibling, 0 replies; 5+ messages in thread
From: Sasha Levin @ 2025-03-25 11:33 UTC (permalink / raw)
  To: stable, aurabindo.pillai; +Cc: Sasha Levin

[ Sasha's backport helper bot ]

Hi,

Summary of potential issues:
⚠️ Found matching upstream commit but patch is missing proper reference to it

Found matching upstream commit: bfeefe6ea5f18cabb8fda55364079573804623f9

WARNING: Author mismatch between patch and found commit:
Backport author: Aurabindo Pillai<aurabindo.pillai@amd.com>
Commit author: Martin Tsai<martin.tsai@amd.com>

Status in newer kernel trees:
6.13.y | Present (exact SHA1)
6.12.y | Present (exact SHA1)
6.6.y | Not found

Note: The patch differs from the upstream commit:
---
1:  bfeefe6ea5f18 < -:  ------------- drm/amd/display: should support dmub hw lock on Replay
-:  ------------- > 1:  344a09659766c Linux 6.1.131
---

Results of testing on various branches:

| Branch                    | Patch Apply | Build Test |
|---------------------------|-------------|------------|
| stable/linux-6.1.y        |  Success    |  Success   |

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-03-25 11:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-24 16:20 FAILED: patch "[PATCH] drm/amd/display: should support dmub hw lock on Replay" failed to apply to 6.1-stable tree gregkh
2025-03-24 16:49 ` [PATCH 6.1.y] drm/amd/display: should support dmub hw lock on Replay Aurabindo Pillai
2025-03-24 18:34   ` Greg KH
2025-03-24 19:06     ` Pillai, Aurabindo
2025-03-25 11:33   ` Sasha Levin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox