Patch "drm/xe/display: Fix ADL-N detection" has been added to the 6.8-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    drm/xe/display: Fix ADL-N detection

to the 6.8-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     drm-xe-display-fix-adl-n-detection.patch
and it can be found in the queue-6.8 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 89b02d05e2dd92125687859f2e09931e73549ea9
Author: Lucas De Marchi <lucas.demarchi@xxxxxxxxx>
Date:   Thu Apr 25 11:16:09 2024 -0700

    drm/xe/display: Fix ADL-N detection
    
    [ Upstream commit df04b152fca2d46e75fbb74ed79299bc420bc9e6 ]
    
    Contrary to i915, in xe ADL-N is kept as a different platform, not a
    subplatform of ADL-P. Since the display side doesn't need to
    differentiate between P and N, i.e. IS_ALDERLAKE_P_N() is never called,
    just fixup the compat header to check for both P and N.
    
    Moving ADL-N to be a subplatform would be more complex as the firmware
    loading in xe only handles platforms, not subplatforms, as going forward
    the direction is to check on IP version rather than
    platforms/subplatforms.
    
    Fix warning when initializing display:
    
            xe 0000:00:02.0: [drm:intel_pch_type [xe]] Found Alder Lake PCH
            ------------[ cut here ]------------
            xe 0000:00:02.0: drm_WARN_ON(!((dev_priv)->info.platform == XE_ALDERLAKE_S) && !((dev_priv)->info.platform == XE_ALDERLAKE_P))
    
    And wrong paths being taken on the display side.
    
    Reviewed-by: Matt Roper <matthew.d.roper@xxxxxxxxx>
    Acked-by: Jani Nikula <jani.nikula@xxxxxxxxx>
    Link: https://patchwork.freedesktop.org/patch/msgid/20240425181610.2704633-1-lucas.demarchi@xxxxxxxxx
    Signed-off-by: Lucas De Marchi <lucas.demarchi@xxxxxxxxx>
    (cherry picked from commit 6a2a90cba12b42eb96c2af3426b77ceb4be31df2)
    Fixes: 44e694958b95 ("drm/xe/display: Implement display support")
    Signed-off-by: Lucas De Marchi <lucas.demarchi@xxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h b/drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h
index 5d2a77b52db41..d9a81e6a4b85a 100644
--- a/drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h
+++ b/drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h
@@ -84,7 +84,8 @@ static inline struct drm_i915_private *kdev_to_i915(struct device *kdev)
 #define IS_ROCKETLAKE(dev_priv)	IS_PLATFORM(dev_priv, XE_ROCKETLAKE)
 #define IS_DG1(dev_priv)        IS_PLATFORM(dev_priv, XE_DG1)
 #define IS_ALDERLAKE_S(dev_priv) IS_PLATFORM(dev_priv, XE_ALDERLAKE_S)
-#define IS_ALDERLAKE_P(dev_priv) IS_PLATFORM(dev_priv, XE_ALDERLAKE_P)
+#define IS_ALDERLAKE_P(dev_priv) (IS_PLATFORM(dev_priv, XE_ALDERLAKE_P) || \
+				  IS_PLATFORM(dev_priv, XE_ALDERLAKE_N))
 #define IS_XEHPSDV(dev_priv) (dev_priv && 0)
 #define IS_DG2(dev_priv)	IS_PLATFORM(dev_priv, XE_DG2)
 #define IS_PONTEVECCHIO(dev_priv) IS_PLATFORM(dev_priv, XE_PVC)




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux