Skip to content

Commit 854bb48

Browse files
aristeuaegl
authored andcommitted
EDAC: skx_common: downgrade message importance on missing PCI device
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 <[email protected]> Signed-off-by: Tony Luck <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent a483e22 commit 854bb48

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
@@ -256,7 +256,7 @@ int skx_get_hi_lo(unsigned int did, int off[], u64 *tolm, u64 *tohm)
256256

257257
pdev = pci_get_device(PCI_VENDOR_ID_INTEL, did, NULL);
258258
if (!pdev) {
259-
skx_printk(KERN_ERR, "Can't get tolm/tohm\n");
259+
edac_dbg(2, "Can't get tolm/tohm\n");
260260
return -ENODEV;
261261
}
262262

0 commit comments

Comments
 (0)