drm/amdkfd: make CRAT table missing message informational only
Subsystems (3)
Alex Deucher
maintainerPATCH 1/1 drm/amdkfd: make CRAT table missing message informational only
The driver has a fallback, to make the message informational rather than a warning.
--- 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
@@ -1569,7 +1569,7 @@ int kfd_create_crat_image_acpi(void **crat_image, size_t *size)/* Fetch the CRAT table from ACPI */ status =acpi_get_table (CRAT_SIGNATURE ,0 , &crat_table);if (status ==AE_NOT_FOUND ) { -pr_warn ("CRAT table not found\n" ); +pr_info ("CRAT table not found\n" );return -ENODATA ; }else if (ACPI_FAILURE (status)) {const char *err =acpi_format_exception (status);
Signature · 1 line
2.35.1
Am 2022-02-18 um 15:42 schrieb Alex Deucher:
Quoted 5 lines
The driver has a fallback, to make the message informational rather than a warning.
Thanks!
Quoted 17 lines
--- 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@@ -1569,7 +1569,7 @@ int kfd_create_crat_image_acpi(void **crat_image, size_t *size)/* Fetch the CRAT table from ACPI */ status =acpi_get_table (CRAT_SIGNATURE ,0 , &crat_table);if (status ==AE_NOT_FOUND ) { -pr_warn ("CRAT table not found\n" ); +pr_info ("CRAT table not found\n" );return -ENODATA ; }else if (ACPI_FAILURE (status)) {const char *err =acpi_format_exception (status);
Dear Alex,
Thank you for the patch.
Am 18.02.22 um 21:42 schrieb Alex Deucher:
Quoted 1 line
The driver has a fallback, to make the message informational
s/to/so/?
Quoted 1 line
rather than a warning.
Maybe extend it a little?
Component Resource Association Table (CRAT) are only applicable on some AMD APUs. The message is perfectly expected. Even on AMD APUs we can now fall back to treating it like a dGPU when the CRAT table is missing.
Quoted 11 lines
Signed-off-by Alex Deucher <[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 +0
-0
drivers/gpu/drm/amd/amdkfd/kfd_crat.c int kfd_create_crat_image_acpi(void **crat_image, size_t *size) · line 1572
Quoted 5 lines
drivers/gpu/drm/amd/amdkfd/kfd_crat.c +1
-1@@ -1569,7 +1569,7 @@ int kfd_create_crat_image_acpi(void **crat_image, size_t *size)/* Fetch the CRAT table from ACPI */ status =acpi_get_table (CRAT_SIGNATURE ,0 , &crat_table);if (status ==AE_NOT_FOUND ) { -pr_warn ("CRAT table not found\n" ); +pr_info ("CRAT table not found\n" );
Maybe make it even a debug message, or only print it, when a corresponding AMD APU is found like in kfd_is_acpi_crat_invalid()? Especially since Linux logs
amdgpu: Virtual CRAT table created for CPU
later on.
drivers/gpu/drm/amd/amdkfd/kfd_crat.c int kfd_create_crat_image_acpi(void **crat_image, size_t *size) · line 1575
Quoted 3 lines
drivers/gpu/drm/amd/amdkfd/kfd_crat.c +0
-0return -ENODATA ; }else if (ACPI_FAILURE (status)) {const char *err =acpi_format_exception (status);
Kind regards,
Paul
Quoted 10 lines · Paul Menzel
Dear Alex,
Thank you for the patch.
Am 18.02.22 um 21:42 schrieb Alex Deucher:
Quoted 1 line
The driver has a fallback, to make the message informational
s/to/so/?
fixed up locally.
Quoted 4 lines
Quoted 2 lines
rather than a warning.
Maybe extend it a little?
Done.
Quoted 26 lines
Component Resource Association Table (CRAT) are only applicable on some AMD APUs. The message is perfectly expected. Even on AMD APUs we can now fall back to treating it like a dGPU when the CRAT table is missing.
Quoted 11 lines
Signed-off-by Alex Deucher <[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 +0
-0drivers/gpu/drm/amd/amdkfd/kfd_crat.c int kfd_create_crat_image_acpi(void **crat_image, size_t *size) · line 1572
Quoted 5 lines
drivers/gpu/drm/amd/amdkfd/kfd_crat.c +1
-1@@ -1569,7 +1569,7 @@ int kfd_create_crat_image_acpi(void **crat_image, size_t *size)/* Fetch the CRAT table from ACPI */ status =acpi_get_table (CRAT_SIGNATURE ,0 , &crat_table);if (status ==AE_NOT_FOUND ) { -pr_warn ("CRAT table not found\n" ); +pr_info ("CRAT table not found\n" );Maybe make it even a debug message, or only print it, when a corresponding AMD APU is found like in
kfd_is_acpi_crat_invalid()? Especially since Linux logs
Quoted 4 lines
amdgpu: Virtual CRAT table created for CPU
later on.
I think it's still valid so you know that no CRAT table was found on the platform. @Kuehling, Felix any opinion?
Alex
Quoted 8 lines
drivers/gpu/drm/amd/amdkfd/kfd_crat.c int kfd_create_crat_image_acpi(void **crat_image, size_t *size) · line 1575
Quoted 3 lines
drivers/gpu/drm/amd/amdkfd/kfd_crat.c +0
-0return -ENODATA ; }else if (ACPI_FAILURE (status)) {const char *err =acpi_format_exception (status);Kind regards,
Paul
Felix Kuehling
maintainerAm 2022-02-21 um 17:45 schrieb Alex Deucher:
Quoted 39 lines · Paul Menzel
Quoted 8 lines
Dear Alex,
Thank you for the patch.
Am 18.02.22 um 21:42 schrieb Alex Deucher:
Quoted 1 line
The driver has a fallback, to make the message informational
s/to/so/?
fixed up locally.
Quoted 2 lines
Quoted 1 line
rather than a warning.
Maybe extend it a little?
Done.
Quoted 24 lines
Component Resource Association Table (CRAT) are only applicable on some AMD APUs. The message is perfectly expected. Even on AMD APUs we can now fall back to treating it like a dGPU when the CRAT table is missing.
Quoted 11 lines
Signed-off-by Alex Deucher <[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 +0
-0drivers/gpu/drm/amd/amdkfd/kfd_crat.c int kfd_create_crat_image_acpi(void **crat_image, size_t *size) · line 1572
Quoted 5 lines
drivers/gpu/drm/amd/amdkfd/kfd_crat.c +1
-1@@ -1569,7 +1569,7 @@ int kfd_create_crat_image_acpi(void **crat_image, size_t *size)/* Fetch the CRAT table from ACPI */ status =acpi_get_table (CRAT_SIGNATURE ,0 , &crat_table);if (status ==AE_NOT_FOUND ) { -pr_warn ("CRAT table not found\n" ); +pr_info ("CRAT table not found\n" );Maybe make it even a debug message, or only print it, when a corresponding AMD APU is found like in
kfd_is_acpi_crat_invalid()? Especially since Linux logs
Quoted 6 lines
Quoted 4 lines
amdgpu: Virtual CRAT table created for CPU
later on.
I think it's still valid so you know that no CRAT table was found on the platform. @Kuehling, Felix any opinion?
CRAT tables are only relevant on some generations of AMD APUs. Later developments of the ACPI standards have basically made it obsolete. Most systems today and in the future don't have a CRAT table. So I'm OK with not mentioning it when it's missing.
Regards,
Felix
Quoted 9 lines
Alex
Quoted 6 lines
drivers/gpu/drm/amd/amdkfd/kfd_crat.c int kfd_create_crat_image_acpi(void **crat_image, size_t *size) · line 1575
Quoted 3 lines
drivers/gpu/drm/amd/amdkfd/kfd_crat.c +0
-0return -ENODATA ; }else if (ACPI_FAILURE (status)) {const char *err =acpi_format_exception (status);Kind regards,
Paul