public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Piotr Luc <piotr.luc@intel.com>
To: Mauro Carvalho Chehab <mchehab@kernel.org>,
	Thomas Gleixner <tglx@linutronix.de>,
	Ingo Molnar <mingo@redhat.com>, "H. Peter Anvin" <hpa@zytor.com>,
	x86@kernel.org, "Rafael J. Wysocki" <rjw@rjwysocki.net>,
	Viresh Kumar <viresh.kumar@linaro.org>
Cc: Doug Thompson <dougthompson@xmission.com>,
	Borislav Petkov <bp@alien8.de>,
	linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org,
	Len Brown <lenb@kernel.org>,
	linux-pm@vger.kernel.org,
	Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>,
	"Luck, Tony" <tony.luck@intel.com>,
	"Shevchenko, Andriy" <andriy.shevchenko@intel.com>
Subject: [RESEND PATCH 01/11] EDAC, sb_edac: Use Intel family processor macros
Date: Thu, 13 Oct 2016 17:30:55 +0200	[thread overview]
Message-ID: <20161013153105.2517-2-piotr.luc@intel.com> (raw)
In-Reply-To: <20161013153105.2517-1-piotr.luc@intel.com>

Use macros of Intel processor families instead of raw numbers.

Signed-off-by: Piotr Luc <piotr.luc@intel.com>
Reviewed-by: Dave Hansen <dave.hansen@intel.com>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: Doug Thompson <dougthompson@xmission.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: linux-edac@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: "Luck, Tony" <tony.luck@intel.com>
Cc: "Shevchenko, Andriy" <andriy.shevchenko@intel.com>
---
 drivers/edac/sb_edac.c | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/drivers/edac/sb_edac.c b/drivers/edac/sb_edac.c
index ce0067b..90564bc 100644
--- a/drivers/edac/sb_edac.c
+++ b/drivers/edac/sb_edac.c
@@ -23,6 +23,7 @@
 #include <linux/math64.h>
 #include <linux/mod_devicetable.h>
 #include <asm/cpu_device_id.h>
+#include <asm/intel-family.h>
 #include <asm/processor.h>
 #include <asm/mce.h>
 
@@ -3366,12 +3367,12 @@ fail0:
 	{ X86_VENDOR_INTEL, 6, model, 0, (unsigned long)&table }
 
 static const struct x86_cpu_id sbridge_cpuids[] = {
-	ICPU(0x2d, pci_dev_descr_sbridge_table),	/* SANDY_BRIDGE */
-	ICPU(0x3e, pci_dev_descr_ibridge_table),	/* IVY_BRIDGE */
-	ICPU(0x3f, pci_dev_descr_haswell_table),	/* HASWELL */
-	ICPU(0x4f, pci_dev_descr_broadwell_table),	/* BROADWELL */
-	ICPU(0x56, pci_dev_descr_broadwell_table),	/* BROADWELL-DE */
-	ICPU(0x57, pci_dev_descr_knl_table),		/* KNIGHTS_LANDING */
+	ICPU(INTEL_FAM6_SANDYBRIDGE_X, pci_dev_descr_sbridge_table),
+	ICPU(INTEL_FAM6_IVYBRIDGE_X, pci_dev_descr_ibridge_table),
+	ICPU(INTEL_FAM6_HASWELL_X, pci_dev_descr_haswell_table),
+	ICPU(INTEL_FAM6_BROADWELL_X, pci_dev_descr_broadwell_table),
+	ICPU(INTEL_FAM6_BROADWELL_XEON_D, pci_dev_descr_broadwell_table),
+	ICPU(INTEL_FAM6_XEON_PHI_KNL, pci_dev_descr_knl_table),
 	{ }
 };
 MODULE_DEVICE_TABLE(x86cpu, sbridge_cpuids);
-- 
2.10.1

  reply	other threads:[~2016-10-13 15:31 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-13 15:30 [RESEND PATCH 00/11] Add Knights Mill CPU ID Piotr Luc
2016-10-13 15:30 ` Piotr Luc [this message]
2016-10-13 22:01   ` [RESEND PATCH 01/11] EDAC, sb_edac: Use Intel family processor macros Borislav Petkov
2016-10-13 15:30 ` [PATCH v2 02/11] tools/power turbostat: " Piotr Luc
2016-10-14 11:56   ` Thomas Gleixner
2016-10-24 13:15     ` Luc, Piotr
2016-10-13 15:30 ` [RESEND PATCH 03/11] x86/cpu/intel: Add Knights Mill to Intel family Piotr Luc
2016-10-13 15:30 ` [RESEND PATCH 04/11] x86/intel_idle: Add Knights Mill CPUID Piotr Luc
2016-10-25 10:36   ` [RESEND,04/11] " Luc, Piotr
2016-12-01  5:29   ` [RESEND PATCH 04/11] " Len Brown
2016-10-13 15:30 ` [RESEND PATCH 05/11] EDAC, sb_edac: " Piotr Luc
2016-10-13 22:04   ` Borislav Petkov
2016-10-19 10:38     ` Borislav Petkov
2016-10-13 15:31 ` [RESEND PATCH 06/11] cpufreq: intel_pstate: " Piotr Luc
2016-10-13 17:51   ` Srinivas Pandruvada
2016-10-25 10:48     ` Luc, Piotr
2016-10-25 11:16       ` Rafael J. Wysocki
2016-10-25 11:44         ` Luc, Piotr
2016-11-30 16:19           ` Luc, Piotr
2016-11-30 22:01             ` Rafael J. Wysocki
2016-11-30 22:16               ` Luc, Piotr
2016-10-13 15:31 ` [RESEND PATCH 07/11] perf/x86/intel: " Piotr Luc
2016-10-13 15:31 ` [RESEND PATCH 08/11] perf/x86/intel/rapl: " Piotr Luc
2016-10-13 15:31 ` [RESEND PATCH 09/11] perf/x86/intel/uncore: " Piotr Luc
2016-10-13 15:31 ` [RESEND PATCH 10/11] powercap / RAPL: " Piotr Luc
2016-10-25 10:41   ` [RESEND,10/11] " Luc, Piotr
2016-11-30 22:33     ` Luc, Piotr
2016-11-30 22:42       ` Rafael J. Wysocki
2016-10-13 15:31 ` [RESEND PATCH 11/11] tools/power turbostat: enable turbostat to support Knights Mill (KNM) Piotr Luc
2016-12-01  6:47   ` Len Brown
2016-12-01 11:17     ` Luc, Piotr
2016-10-13 21:56 ` [RESEND PATCH 00/11] Add Knights Mill CPU ID Rafael J. Wysocki
2016-10-24 16:13   ` Luc, Piotr

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161013153105.2517-2-piotr.luc@intel.com \
    --to=piotr.luc@intel.com \
    --cc=andriy.shevchenko@intel.com \
    --cc=bp@alien8.de \
    --cc=dougthompson@xmission.com \
    --cc=hpa@zytor.com \
    --cc=lenb@kernel.org \
    --cc=linux-edac@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=mingo@redhat.com \
    --cc=rjw@rjwysocki.net \
    --cc=srinivas.pandruvada@linux.intel.com \
    --cc=tglx@linutronix.de \
    --cc=tony.luck@intel.com \
    --cc=viresh.kumar@linaro.org \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox