* [PATCH] ie31200_edac: add Intel Kaby Lake CPU support
@ 2017-05-26 18:34 Jason Baron
2017-05-28 17:30 ` Borislav Petkov
0 siblings, 1 reply; 2+ messages in thread
From: Jason Baron @ 2017-05-26 18:34 UTC (permalink / raw)
To: bp; +Cc: linux-edac, linux-kernel, bc.tdw, Mauro Carvalho Chehab, Tony Luck
Kaby Lake seems to work just like Skylake.
Signed-off-by: Jason Baron <jbaron@akamai.com>
Reported-and-tested-by: Doug Thompson <bc.tdw@recursor.net>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: Tony Luck <tony.luck@intel.com>
---
drivers/edac/ie31200_edac.c | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/drivers/edac/ie31200_edac.c b/drivers/edac/ie31200_edac.c
index 2733fb5..596be0a 100644
--- a/drivers/edac/ie31200_edac.c
+++ b/drivers/edac/ie31200_edac.c
@@ -18,10 +18,12 @@
* 0c04: Xeon E3-1200 v3/4th Gen Core Processor DRAM Controller
* 0c08: Xeon E3-1200 v3 Processor DRAM Controller
* 1918: Xeon E3-1200 v5 Skylake Host Bridge/DRAM Registers
+ * 5918: Xeon E3-1200 Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers
*
* Based on Intel specification:
* http://www.intel.com/content/dam/www/public/us/en/documents/datasheets/xeon-e3-1200v3-vol-2-datasheet.pdf
* http://www.intel.com/content/www/us/en/processors/xeon/xeon-e3-1200-family-vol-2-datasheet.html
+ * http://www.intel.com/content/www/us/en/processors/core/7th-gen-core-family-mobile-h-processor-lines-datasheet-vol-2.html
*
* According to the above datasheet (p.16):
* "
@@ -57,6 +59,7 @@
#define PCI_DEVICE_ID_INTEL_IE31200_HB_6 0x0c04
#define PCI_DEVICE_ID_INTEL_IE31200_HB_7 0x0c08
#define PCI_DEVICE_ID_INTEL_IE31200_HB_8 0x1918
+#define PCI_DEVICE_ID_INTEL_IE31200_HB_9 0x5918
#define IE31200_DIMMS 4
#define IE31200_RANKS 8
@@ -376,7 +379,11 @@ static int ie31200_probe1(struct pci_dev *pdev, int dev_idx)
void __iomem *window;
struct ie31200_priv *priv;
u32 addr_decode, mad_offset;
- bool skl = (pdev->device == PCI_DEVICE_ID_INTEL_IE31200_HB_8);
+ /*
+ * Kaby Lake seems to work like Skylake. Please re-visit this logic
+ * when adding new cpu support.
+ */
+ bool skl = (pdev->device >= PCI_DEVICE_ID_INTEL_IE31200_HB_8);
edac_dbg(0, "MC:\n");
@@ -560,6 +567,9 @@ static const struct pci_device_id ie31200_pci_tbl[] = {
PCI_VEND_DEV(INTEL, IE31200_HB_8), PCI_ANY_ID, PCI_ANY_ID, 0, 0,
IE31200},
{
+ PCI_VEND_DEV(INTEL, IE31200_HB_9), PCI_ANY_ID, PCI_ANY_ID, 0, 0,
+ IE31200},
+ {
0,
} /* 0 terminated list. */
};
--
2.6.1
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] ie31200_edac: add Intel Kaby Lake CPU support
2017-05-26 18:34 [PATCH] ie31200_edac: add Intel Kaby Lake CPU support Jason Baron
@ 2017-05-28 17:30 ` Borislav Petkov
0 siblings, 0 replies; 2+ messages in thread
From: Borislav Petkov @ 2017-05-28 17:30 UTC (permalink / raw)
To: Jason Baron
Cc: linux-edac, linux-kernel, bc.tdw, Mauro Carvalho Chehab, Tony Luck
On Fri, May 26, 2017 at 02:34:43PM -0400, Jason Baron wrote:
> Kaby Lake seems to work just like Skylake.
>
> Signed-off-by: Jason Baron <jbaron@akamai.com>
> Reported-and-tested-by: Doug Thompson <bc.tdw@recursor.net>
> Cc: Borislav Petkov <bp@alien8.de>
> Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
> Cc: Tony Luck <tony.luck@intel.com>
> ---
> drivers/edac/ie31200_edac.c | 12 +++++++++++-
> 1 file changed, 11 insertions(+), 1 deletion(-)
Applied, thanks.
--
Regards/Gruss,
Boris.
Good mailing practices for 400: avoid top-posting and trim the reply.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-05-28 17:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-26 18:34 [PATCH] ie31200_edac: add Intel Kaby Lake CPU support Jason Baron
2017-05-28 17:30 ` Borislav Petkov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®