]> www.infradead.org Git - users/hch/configfs.git/commitdiff
drm/i915/pciids: don't include WHL/CML PCI IDs in CFL
authorJani Nikula <jani.nikula@intel.com>
Fri, 10 May 2024 11:22:18 +0000 (14:22 +0300)
committerJani Nikula <jani.nikula@intel.com>
Wed, 15 May 2024 16:04:07 +0000 (19:04 +0300)
It's confusing for INTEL_CFL_IDS() to include all WHL and CML PCI
IDs. Even if we treat them the same in a lot of places, CML is a
platform of its own, and the lists of PCI IDs should not conflate them.

Largely go by the idea that if a platform has a name, group its PCI IDs
together.

That said, AML is special, having both KBL and CFL variants. Leave that
alone.

v2: Also split out WHL not just CML (Rodrigo)

Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: linux-pci@vger.kernel.org
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://patchwork.freedesktop.org/patch/msgid/7cca91dc78ed2b5982f14e400f03a1704645e475.1715340032.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
arch/x86/kernel/early-quirks.c
drivers/gpu/drm/i915/display/intel_display_device.c
include/drm/i915_pciids.h

index 6549507003ecfa34114f0d7faba5fe1f9873589b..2b698a3f56ef5374b5cf02b61b5dfed25f4c0548 100644 (file)
@@ -543,6 +543,8 @@ static const struct pci_device_id intel_early_ids[] __initconst = {
        INTEL_BXT_IDS(&gen9_early_ops),
        INTEL_KBL_IDS(&gen9_early_ops),
        INTEL_CFL_IDS(&gen9_early_ops),
+       INTEL_WHL_IDS(&gen9_early_ops),
+       INTEL_CML_IDS(&gen9_early_ops),
        INTEL_GLK_IDS(&gen9_early_ops),
        INTEL_CNL_IDS(&gen9_early_ops),
        INTEL_ICL_11_IDS(&gen11_early_ops),
index bb681c8ed8a073de94d9eafd57bd867947a46c32..23909a8e2dc8e7a56fc49c977add0ed74f81359f 100644 (file)
@@ -829,6 +829,8 @@ static const struct {
        INTEL_GLK_IDS(&glk_display),
        INTEL_KBL_IDS(&skl_display),
        INTEL_CFL_IDS(&skl_display),
+       INTEL_WHL_IDS(&skl_display),
+       INTEL_CML_IDS(&skl_display),
        INTEL_ICL_11_IDS(&icl_display),
        INTEL_EHL_IDS(&jsl_ehl_display),
        INTEL_JSL_IDS(&jsl_ehl_display),
index 16778d92346ba37d3f13ff83cc1df16ee73ae07a..0c5a20d598017c8ef56347e10e60d49558a95834 100644 (file)
        INTEL_VGA_DEVICE(0x9BCA, info), \
        INTEL_VGA_DEVICE(0x9BCC, info)
 
+#define INTEL_CML_IDS(info) \
+       INTEL_CML_GT1_IDS(info), \
+       INTEL_CML_GT2_IDS(info), \
+       INTEL_CML_U_GT1_IDS(info), \
+       INTEL_CML_U_GT2_IDS(info)
+
 #define INTEL_KBL_IDS(info) \
        INTEL_KBL_GT1_IDS(info), \
        INTEL_KBL_GT2_IDS(info), \
        INTEL_VGA_DEVICE(0x3EA7, info), /* ULT GT3 */ \
        INTEL_VGA_DEVICE(0x3EA8, info)  /* ULT GT3 */
 
+#define INTEL_CFL_IDS(info)       \
+       INTEL_CFL_S_GT1_IDS(info), \
+       INTEL_CFL_S_GT2_IDS(info), \
+       INTEL_CFL_H_GT1_IDS(info), \
+       INTEL_CFL_H_GT2_IDS(info), \
+       INTEL_CFL_U_GT2_IDS(info), \
+       INTEL_CFL_U_GT3_IDS(info), \
+       INTEL_AML_CFL_GT2_IDS(info)
+
 /* WHL/CFL U GT1 */
 #define INTEL_WHL_U_GT1_IDS(info) \
        INTEL_VGA_DEVICE(0x3EA1, info), \
 #define INTEL_WHL_U_GT3_IDS(info) \
        INTEL_VGA_DEVICE(0x3EA2, info)
 
-#define INTEL_CFL_IDS(info)       \
-       INTEL_CFL_S_GT1_IDS(info), \
-       INTEL_CFL_S_GT2_IDS(info), \
-       INTEL_CFL_H_GT1_IDS(info), \
-       INTEL_CFL_H_GT2_IDS(info), \
-       INTEL_CFL_U_GT2_IDS(info), \
-       INTEL_CFL_U_GT3_IDS(info), \
+#define INTEL_WHL_IDS(info) \
        INTEL_WHL_U_GT1_IDS(info), \
        INTEL_WHL_U_GT2_IDS(info), \
-       INTEL_WHL_U_GT3_IDS(info), \
-       INTEL_AML_CFL_GT2_IDS(info), \
-       INTEL_CML_GT1_IDS(info), \
-       INTEL_CML_GT2_IDS(info), \
-       INTEL_CML_U_GT1_IDS(info), \
-       INTEL_CML_U_GT2_IDS(info)
+       INTEL_WHL_U_GT3_IDS(info)
 
 /* CNL */
 #define INTEL_CNL_PORT_F_IDS(info) \