Quiet down some warnings on laptops
Subsystems (4)
cover Quiet down some warnings on laptops
Looking at Cezanne laptops from a few manufacturers I've noticed a few harmless warnings are emitted to the logs. I looked through them and think they can all be decreased to debug.
Mario Limonciello (3):
drm/amd/display: Decrease messaging about DP alt mode state to debug drm/amd: Decrease warning about missing SRAT table to debug drm/amd: decrease message about missing PSP runtime database to debug
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 2 +- drivers/gpu/drm/amd/amdkfd/kfd_crat.c | 2 +- drivers/gpu/drm/amd/display/dc/core/dc_link.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
Signature · 1 line
2.34.1
PATCH 1/3 drm/amd/display: Decrease messaging about DP alt mode state to debug
Currently plugging in a USB-C device that issues an HPD will emit a warning level message DP Alt mode state on HPD: %d.
This is needlessly noisy for most people, decrease it to debug so that it can be turned on by dynamic debug as needed.
--- drivers/gpu/drm/amd/display/dc/core/dc_link.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/core/dc_link.c +1 -1
@@ -837,7 +837,7 @@ static bool wait_for_entering_dp_alt_mode(struct dc_link *link)return true; is_in_alt_mode = link->link_enc->funcs->is_in_alt_mode (link->link_enc); -DC_LOG_WARNING ("DP Alt mode state on HPD: %d\n" , is_in_alt_mode); +DC_LOG_DC ("DP Alt mode state on HPD: %d\n" , is_in_alt_mode);if (is_in_alt_mode)return true;
Signature · 1 line
2.34.1
PATCH 2/3 drm/amd: Decrease warning about missing SRAT table to debug
In reply to Mario LimoncielloAs OEMs will control what ACPI tables are on their systems, SRAT might not be present. To avoid making an assumption that it is there but still be useful for debugging a missing table decrease warning about missing table to debug.
--- drivers/gpu/drm/amd/amdkfd/kfd_crat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdkfd/kfd_crat.c +1 -1
@@ -1904,7 +1904,7 @@ static void kfd_find_numa_node_in_srat(struct kfd_dev *kdev)/* Fetch the SRAT table from ACPI */ status =acpi_get_table (ACPI_SIG_SRAT ,0 , &table_header);if (status ==AE_NOT_FOUND ) { -pr_warn ("SRAT table not found\n" ); +pr_debug ("SRAT table not found\n" );return ; }else if (ACPI_FAILURE (status)) {const char *err =acpi_format_exception (status);
Signature · 1 line
2.34.1
Felix Kuehling
maintainerRe: [PATCH 2/3] drm/amd: Decrease warning about missing SRAT table to debug
Am 2023-01-18 um 17:47 schrieb Mario Limonciello:
Quoted 4 lines
As OEMs will control what ACPI tables are on their systems, SRAT might not be present. To avoid making an assumption that it is there but still be useful for debugging a missing table decrease warning about missing table to debug.
Finding out the NUMA node for a device only makes sense on NUMA systems. I suspect a Cezanne laptop is not NUMA. So maybe we should update the condition that leads to calling kfd_find_numa_node_in_srat:
#ifdef CONFIG_ACPI_NUMA
if (kdev->adev->pdev->dev.numa_node == NUMA_NO_NODE)
kfd_find_numa_node_in_srat(kdev);#endif
To something like this:
#ifdef CONFIG_ACPI_NUMA
if (kdev->adev->pdev->dev.numa_node == NUMA_NO_NODE &&
num_possible_nodes() > 1)
kfd_find_numa_node_in_srat(kdev);#endif
That way we'd still see a warning if we can't find out the NUMA node of a GPU on a NUMA system, but you won't see a warning on non-NUMA systems.
Regards,
Felix
Quoted 19 lines
Signed-off-by Mario Limonciello <[email protected]>--- drivers/gpu/drm/amd/amdkfd/kfd_crat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdkfd/kfd_crat.c +1
-1@@ -1904,7 +1904,7 @@ static void kfd_find_numa_node_in_srat(struct kfd_dev *kdev)/* Fetch the SRAT table from ACPI */ status =acpi_get_table (ACPI_SIG_SRAT ,0 , &table_header);if (status ==AE_NOT_FOUND ) { -pr_warn ("SRAT table not found\n" ); +pr_debug ("SRAT table not found\n" );return ; }else if (ACPI_FAILURE (status)) {const char *err =acpi_format_exception (status);
PATCH 3/3 drm/amd: decrease message about missing PSP runtime database to debug
In reply to Mario LimoncielloLaptops with APUs from a variety of manufacturers and generations show a warning about a missing PSP runtime database.
As it's not required for PSP to dump this database into framebuffer, decrease messages about it missing to debug.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +1 -1
@@ -336,7 +336,7 @@ static bool psp_get_runtime_db_entry(struct amdgpu_device *adev,if (db_header.cookie !=PSP_RUNTIME_DB_COOKIE_ID ) {/* runtime db doesn't exist, exit */ -dev_warn (adev->dev,"PSP runtime database doesn't exist\n" ); +dev_dbg (adev->dev,"PSP runtime database doesn't exist\n" );return false; }
Signature · 1 line
2.34.1
[AMD Official Use Only - General]
Series is:
________________________________
From: amd-gfx <[email protected]> on behalf of Mario Limonciello <[email protected]>
Sent: Wednesday, January 18, 2023 5:47 PM
To: [email protected] <[email protected]>
Cc: Limonciello, Mario <[email protected]>
Subject: [PATCH 0/3] Quiet down some warnings on laptops
Looking at Cezanne laptops from a few manufacturers I've noticed a few harmless warnings are emitted to the logs. I looked through them and think they can all be decreased to debug.
Mario Limonciello (3):
drm/amd/display: Decrease messaging about DP alt mode state to debug drm/amd: Decrease warning about missing SRAT table to debug drm/amd: decrease message about missing PSP runtime database to debug
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 2 +- drivers/gpu/drm/amd/amdkfd/kfd_crat.c | 2 +- drivers/gpu/drm/amd/display/dc/core/dc_link.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
--
2.34.1