]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
drm/i915/display: Add definition for wcl as subplatform
authorDnyaneshwar Bhadane <dnyaneshwar.bhadane@intel.com>
Mon, 22 Sep 2025 15:03:16 +0000 (20:33 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 1 Dec 2025 10:45:56 +0000 (11:45 +0100)
[ Upstream commit 913253ed47b9925454cbb17faa3e350015b3d67a ]

We will need to differentiate between WCL and PTL in
intel_encoder_is_c10phy(). Since WCL and PTL use the same display
architecture, let's define WCL as a subplatform of PTL to allow the
differentiation.

v2: Update commit message and reorder wcl define (Gustavo)

Fixes: 3c0f211bc8fc ("drm/xe: Add Wildcat Lake device IDs to PTL list")
Signed-off-by: Dnyaneshwar Bhadane <dnyaneshwar.bhadane@intel.com>
Reviewed-by: Gustavo Sousa <gustavo.sousa@intel.com>
Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Link: https://lore.kernel.org/r/20250922150317.2334680-3-dnyaneshwar.bhadane@intel.com
(cherry picked from commit 4dfaae643e59cf3ab71b88689dce1b874f036f00)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
[Rodrigo added Fixes tag when porting it to fixes]
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/i915/display/intel_display_device.c
drivers/gpu/drm/i915/display/intel_display_device.h

index 9023c15f3645d40fe73b99df7199471dda24a5fc..f7ea4ed2b176b51f9fb336df6f1deb6db3220bf7 100644 (file)
@@ -1391,8 +1391,20 @@ static const struct platform_desc bmg_desc = {
        PLATFORM_GROUP(dgfx),
 };
 
+static const u16 wcl_ids[] = {
+       INTEL_WCL_IDS(ID),
+       0
+};
+
 static const struct platform_desc ptl_desc = {
        PLATFORM(pantherlake),
+       .subplatforms = (const struct subplatform_desc[]) {
+               {
+                       SUBPLATFORM(pantherlake, wildcatlake),
+                       .pciidlist = wcl_ids,
+               },
+               {},
+       }
 };
 
 __diag_pop();
index 4308822f0415db14f8819533f66fd008cce46231..dddafb54188a6d33ec1fd33855267d1cd69044d0 100644 (file)
@@ -102,7 +102,9 @@ struct pci_dev;
        /* Display ver 14.1 (based on GMD ID) */ \
        func(battlemage) \
        /* Display ver 30 (based on GMD ID) */ \
-       func(pantherlake)
+       func(pantherlake) \
+       func(pantherlake_wildcatlake)
+
 
 #define __MEMBER(name) unsigned long name:1;
 #define __COUNT(x) 1 +