Skip to content

Commit bf58395

Browse files
aristeushiloong
authored andcommitted
EDAC: skx_common: downgrade message importance on missing PCI device
cherry-pick form linux-next commit 854bb48. Both skx_edac and i10nm_edac drivers are loaded based on the matching CPU being available which leads the module to be automatically loaded in virtual machines as well. That will fail due the missing PCI devices. In both drivers the first function to make use of the PCI devices is skx_get_hi_lo() will simply print EDAC skx: Can't get tolm/tohm for each CPU core, which is noisy. This patch makes it a debug message. Signed-off-by: Aristeu Rozanski <aris@redhat.com> Signed-off-by: Tony Luck <tony.luck@intel.com> Link: https://lore.kernel.org/r/20191204212325.c4k47p5hrnn3vpb5@redhat.com Signed-off-by: Shile Zhang <shile.zhang@linux.alibaba.com> Acked-by: Joseph Qi <joseph.qi@linux.alibaba.com>
1 parent 9b44ae6 commit bf58395

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/edac/skx_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ int skx_get_hi_lo(unsigned int did, int off[], u64 *tolm, u64 *tohm)
235235

236236
pdev = pci_get_device(PCI_VENDOR_ID_INTEL, did, NULL);
237237
if (!pdev) {
238-
skx_printk(KERN_ERR, "Can't get tolm/tohm\n");
238+
edac_dbg(2, "Can't get tolm/tohm\n");
239239
return -ENODEV;
240240
}
241241

0 commit comments

Comments
 (0)