File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -645,12 +645,19 @@ static void quirk_intel_brickland_xeon_ras_cap(struct pci_dev *pdev)
645
645
/* Skylake */
646
646
static void quirk_intel_purley_xeon_ras_cap (struct pci_dev * pdev )
647
647
{
648
- u32 capid0 ;
648
+ u32 capid0 , capid5 ;
649
649
650
650
pci_read_config_dword (pdev , 0x84 , & capid0 );
651
+ pci_read_config_dword (pdev , 0x98 , & capid5 );
651
652
652
- if ((capid0 & 0xc0 ) == 0xc0 )
653
+ /*
654
+ * CAPID0{7:6} indicate whether this is an advanced RAS SKU
655
+ * CAPID5{8:5} indicate that various NVDIMM usage modes are
656
+ * enabled, so memory machine check recovery is also enabled.
657
+ */
658
+ if ((capid0 & 0xc0 ) == 0xc0 || (capid5 & 0x1e0 ))
653
659
static_branch_inc (& mcsafe_key );
660
+
654
661
}
655
662
DECLARE_PCI_FIXUP_EARLY (PCI_VENDOR_ID_INTEL , 0x0ec3 , quirk_intel_brickland_xeon_ras_cap );
656
663
DECLARE_PCI_FIXUP_EARLY (PCI_VENDOR_ID_INTEL , 0x2fc0 , quirk_intel_brickland_xeon_ras_cap );
You can’t perform that action at this time.
0 commit comments