* [PATCH v6.1] drm/amd/display: Check dce_hwseq before dereferencing it
@ 2026-01-15 4:19 Rahul Sharma
2026-01-15 11:44 ` Greg KH
0 siblings, 1 reply; 3+ messages in thread
From: Rahul Sharma @ 2026-01-15 4:19 UTC (permalink / raw)
To: gregkh, stable
Cc: linux-kernel, Alex Hung, Mario Limonciello, Alex Deucher,
Aurabindo Pillai, Rahul Sharma
From: Alex Hung <alex.hung@amd.com>
[ Upstream b669507b637eb6b1aaecf347f193efccc65d756e commit ]
[WHAT]
hws was checked for null earlier in dce110_blank_stream, indicating hws
can be null, and should be checked whenever it is used.
Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 79db43611ff61280b6de58ce1305e0b2ecf675ad)
Cc: stable@vger.kernel.org
[ The context change is due to the commit 8e7b3f5435b3
("drm/amd/display: Add control flag to dc_stream_state to skip eDP BL off/link off")
and the commit a8728dbb4ba2 ("drm/amd/display: Refactor edp power
control") and the proper adoption is done. ]
Signed-off-by: Rahul Sharma <black.hawk@163.com>
---
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c | 3 ++-
1 file changed, 2 insertions(+), 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 508f5fe26848..c542d2ab9160 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
@@ -1233,7 +1233,8 @@ void dce110_blank_stream(struct pipe_ctx *pipe_ctx)
struct dce_hwseq *hws = link->dc->hwseq;
if (link->local_sink && link->local_sink->sink_signal == SIGNAL_TYPE_EDP) {
- hws->funcs.edp_backlight_control(link, false);
+ if (hws)
+ hws->funcs.edp_backlight_control(link, false);
link->dc->hwss.set_abm_immediate_disable(pipe_ctx);
}
--
2.34.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v6.1] drm/amd/display: Check dce_hwseq before dereferencing it
2026-01-15 4:19 [PATCH v6.1] drm/amd/display: Check dce_hwseq before dereferencing it Rahul Sharma
@ 2026-01-15 11:44 ` Greg KH
[not found] ` <52c400f8.2ab6.19bc4bce26e.Coremail.black.hawk@163.com>
0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2026-01-15 11:44 UTC (permalink / raw)
To: Rahul Sharma
Cc: stable, linux-kernel, Alex Hung, Mario Limonciello, Alex Deucher,
Aurabindo Pillai
On Thu, Jan 15, 2026 at 12:19:19PM +0800, Rahul Sharma wrote:
> From: Alex Hung <alex.hung@amd.com>
>
> [ Upstream b669507b637eb6b1aaecf347f193efccc65d756e commit ]
>
> [WHAT]
>
> hws was checked for null earlier in dce110_blank_stream, indicating hws
> can be null, and should be checked whenever it is used.
>
> Cc: Mario Limonciello <mario.limonciello@amd.com>
> Cc: Alex Deucher <alexander.deucher@amd.com>
> Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
> Signed-off-by: Alex Hung <alex.hung@amd.com>
> Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
> (cherry picked from commit 79db43611ff61280b6de58ce1305e0b2ecf675ad)
> Cc: stable@vger.kernel.org
> [ The context change is due to the commit 8e7b3f5435b3
> ("drm/amd/display: Add control flag to dc_stream_state to skip eDP BL off/link off")
> and the commit a8728dbb4ba2 ("drm/amd/display: Refactor edp power
> control") and the proper adoption is done. ]
> Signed-off-by: Rahul Sharma <black.hawk@163.com>
> ---
> drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
We need 6.6.y backport first, before we can take this one, for obvious
reasons (i.e. you do not want to have a regression). Can you submit
that one first and then this again?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Re: [PATCH v6.1] drm/amd/display: Check dce_hwseq before dereferencing it
[not found] ` <52c400f8.2ab6.19bc4bce26e.Coremail.black.hawk@163.com>
@ 2026-01-20 11:06 ` Greg KH
0 siblings, 0 replies; 3+ messages in thread
From: Greg KH @ 2026-01-20 11:06 UTC (permalink / raw)
To: Rahul Sharma
Cc: stable, linux-kernel, Alex Hung, Mario Limonciello, Alex Deucher,
Aurabindo Pillai
On Fri, Jan 16, 2026 at 10:57:51AM +0800, Rahul Sharma wrote:
>
>
>
>
>
>
>
>
>
>
>
>
>
> At 2026-01-15 19:44:04, "Greg KH" <gregkh@linuxfoundation.org> wrote:
> >On Thu, Jan 15, 2026 at 12:19:19PM +0800, Rahul Sharma wrote:
> >> From: Alex Hung <alex.hung@amd.com>
> >>
> >> [ Upstream b669507b637eb6b1aaecf347f193efccc65d756e commit ]
> >>
> >> [WHAT]
> >>
> >> hws was checked for null earlier in dce110_blank_stream, indicating hws
> >> can be null, and should be checked whenever it is used.
> >>
> >> Cc: Mario Limonciello <mario.limonciello@amd.com>
> >> Cc: Alex Deucher <alexander.deucher@amd.com>
> >> Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
> >> Signed-off-by: Alex Hung <alex.hung@amd.com>
> >> Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
> >> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
> >> (cherry picked from commit 79db43611ff61280b6de58ce1305e0b2ecf675ad)
> >> Cc: stable@vger.kernel.org
> >> [ The context change is due to the commit 8e7b3f5435b3
> >> ("drm/amd/display: Add control flag to dc_stream_state to skip eDP BL off/link off")
> >> and the commit a8728dbb4ba2 ("drm/amd/display: Refactor edp power
> >> control") and the proper adoption is done. ]
> >> Signed-off-by: Rahul Sharma <black.hawk@163.com>
> >> ---
> >> drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c | 3 ++-
> >> 1 file changed, 2 insertions(+), 1 deletion(-)
> >
> >We need 6.6.y backport first, before we can take this one, for obvious
> >reasons (i.e. you do not want to have a regression). Can you submit
> >that one first and then this again?
>
> >
> Thanks Greg, I have sent out the backported patch for 6.6.y.
Great, can you resend this one as well? It's long-gone from my mail
system.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-01-20 11:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-01-15 4:19 [PATCH v6.1] drm/amd/display: Check dce_hwseq before dereferencing it Rahul Sharma
2026-01-15 11:44 ` Greg KH
[not found] ` <52c400f8.2ab6.19bc4bce26e.Coremail.black.hawk@163.com>
2026-01-20 11:06 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®