Skip to content

Commit

Permalink
EDAC: skx_common: downgrade message importance on missing PCI device
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Tony Luck <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Shile Zhang <[email protected]>
Acked-by: Joseph Qi <[email protected]>
  • Loading branch information
aristeu authored and shiloong committed Jan 6, 2020
1 parent 9b44ae6 commit bf58395
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/edac/skx_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ int skx_get_hi_lo(unsigned int did, int off[], u64 *tolm, u64 *tohm)

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

Expand Down

0 comments on commit bf58395

Please sign in to comment.