platform/x86: intel_ips: Switch to new Intel CPU model defines
authorTony Luck <tony.luck@intel.com>
Fri, 31 May 2024 20:37:02 +0000 (13:37 -0700)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 3 Jun 2024 06:49:07 +0000 (09:49 +0300)
New CPU #defines encode vendor and family as well as model.

Signed-off-by: Tony Luck <tony.luck@intel.com>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20240531203706.233365-7-tony.luck@intel.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/intel_ips.c

index 73ec4460a151fadbc65d521929f9d08e33590903..c62c3c4ec20a29feed70bc303ca6d624734e0010 100644 (file)
@@ -62,6 +62,7 @@
 #include <drm/i915_drm.h>
 #include <asm/msr.h>
 #include <asm/processor.h>
+#include <asm/cpu_device_id.h>
 #include "intel_ips.h"
 
 #include <linux/io-64-nonatomic-lo-hi.h>
@@ -1284,7 +1285,7 @@ static struct ips_mcp_limits *ips_detect_cpu(struct ips_driver *ips)
        struct ips_mcp_limits *limits = NULL;
        u16 tdp;
 
-       if (!(boot_cpu_data.x86 == 6 && boot_cpu_data.x86_model == 37)) {
+       if (!(boot_cpu_data.x86_vfm == INTEL_WESTMERE)) {
                dev_info(ips->dev, "Non-IPS CPU detected.\n");
                return NULL;
        }