Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

platform/x86/amd/hsmp: Replace dev_err() with dev_info() for non-fatal errors

Failure in metric table initialization and hwmon registration are
non-fatal errors. Hence replace them with dev_info().

Signed-off-by: Suma Hegde <suma.hegde@amd.com>
Link: https://lore.kernel.org/r/20250807114203.982860-1-suma.hegde@amd.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>

authored by

Suma Hegde and committed by
Ilpo Järvinen
ee1cb9b0 ba9eddc4

+4 -4
+2 -2
drivers/platform/x86/amd/hsmp/acpi.c
··· 495 495 if (hsmp_pdev->proto_ver == HSMP_PROTO_VER6) { 496 496 ret = hsmp_get_tbl_dram_base(sock_ind); 497 497 if (ret) 498 - dev_err(dev, "Failed to init metric table\n"); 498 + dev_info(dev, "Failed to init metric table\n"); 499 499 } 500 500 501 501 ret = hsmp_create_sensor(dev, sock_ind); 502 502 if (ret) 503 - dev_err(dev, "Failed to register HSMP sensors with hwmon\n"); 503 + dev_info(dev, "Failed to register HSMP sensors with hwmon\n"); 504 504 505 505 dev_set_drvdata(dev, &hsmp_pdev->sock[sock_ind]); 506 506
+2 -2
drivers/platform/x86/amd/hsmp/plat.c
··· 189 189 if (hsmp_pdev->proto_ver == HSMP_PROTO_VER6) { 190 190 ret = hsmp_get_tbl_dram_base(i); 191 191 if (ret) 192 - dev_err(dev, "Failed to init metric table\n"); 192 + dev_info(dev, "Failed to init metric table\n"); 193 193 } 194 194 195 195 /* Register with hwmon interface for reporting power */ 196 196 ret = hsmp_create_sensor(dev, i); 197 197 if (ret) 198 - dev_err(dev, "Failed to register HSMP sensors with hwmon\n"); 198 + dev_info(dev, "Failed to register HSMP sensors with hwmon\n"); 199 199 } 200 200 201 201 return 0;