diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2025-02-12 18:43:21 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-02-27 04:30:21 -0800 |
commit | 4ad9fe1b0cbb108cf6aa4f16b7ee94aaca2878b9 (patch) | |
tree | d699aa85a124c1b1ac42b2cdd38fe74046c9c262 /drivers/gpu/drm/lima/lima_devfreq.c | |
parent | 040f8f99ad4fb54812c248a702f80aedf55c63e2 (diff) | |
download | linux-4ad9fe1b0cbb108cf6aa4f16b7ee94aaca2878b9.tar.gz linux-4ad9fe1b0cbb108cf6aa4f16b7ee94aaca2878b9.tar.bz2 linux-4ad9fe1b0cbb108cf6aa4f16b7ee94aaca2878b9.zip |
drm/i915: Make sure all planes in use by the joiner have their crtc included
commit 07fb70d82e0df085980246bf17bc12537588795f upstream.
Any active plane needs to have its crtc included in the atomic
state. For planes enabled via uapi that is all handler in the core.
But when we use a plane for joiner the uapi code things the plane
is disabled and therefore doesn't have a crtc. So we need to pull
those in by hand. We do it first thing in
intel_joiner_add_affected_crtcs() so that any newly added crtc will
subsequently pull in all of its joined crtcs as well.
The symptoms from failing to do this are:
- duct tape in the form of commit 1d5b09f8daf8 ("drm/i915: Fix NULL
ptr deref by checking new_crtc_state")
- the plane's hw state will get overwritten by the disabled
uapi state if it can't find the uapi counterpart plane in
the atomic state from where it should copy the correct state
Cc: stable@vger.kernel.org
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250212164330.16891-2-ville.syrjala@linux.intel.com
(cherry picked from commit 91077d1deb5374eb8be00fb391710f00e751dc4b)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/gpu/drm/lima/lima_devfreq.c')
0 files changed, 0 insertions, 0 deletions