All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/amdkfd: make CRAT table missing message informational only
@ 2022-02-18 20:42 Alex Deucher
  2022-02-18 21:53 ` Felix Kuehling
  2022-02-19  4:16 ` Paul Menzel
  0 siblings, 2 replies; 5+ messages in thread
From: Alex Deucher @ 2022-02-18 20:42 UTC (permalink / raw)
  To: amd-gfx; +Cc: Alex Deucher

The driver has a fallback, to make the message informational
rather than a warning.

Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1906
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
 drivers/gpu/drm/amd/amdkfd/kfd_crat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_crat.c b/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
index 24898238b024..1eaabd2cb41b 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
@@ -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);
-- 
2.35.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] drm/amdkfd: make CRAT table missing message informational only
  2022-02-18 20:42 [PATCH] drm/amdkfd: make CRAT table missing message informational only Alex Deucher
@ 2022-02-18 21:53 ` Felix Kuehling
  2022-02-19  4:16 ` Paul Menzel
  1 sibling, 0 replies; 5+ messages in thread
From: Felix Kuehling @ 2022-02-18 21:53 UTC (permalink / raw)
  To: amd-gfx, Alex Deucher


Am 2022-02-18 um 15:42 schrieb Alex Deucher:
> The driver has a fallback, to make the message informational
> rather than a warning.
>
> Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1906
> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>

Thanks!


> ---
>   drivers/gpu/drm/amd/amdkfd/kfd_crat.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_crat.c b/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
> index 24898238b024..1eaabd2cb41b 100644
> --- a/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
> +++ b/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
> @@ -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);

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] drm/amdkfd: make CRAT table missing message informational only
  2022-02-18 20:42 [PATCH] drm/amdkfd: make CRAT table missing message informational only Alex Deucher
  2022-02-18 21:53 ` Felix Kuehling
@ 2022-02-19  4:16 ` Paul Menzel
  2022-02-21 22:45   ` Alex Deucher
  1 sibling, 1 reply; 5+ messages in thread
From: Paul Menzel @ 2022-02-19  4:16 UTC (permalink / raw)
  To: Alex Deucher; +Cc: amd-gfx

Dear Alex,


Thank you for the patch.

Am 18.02.22 um 21:42 schrieb Alex Deucher:
> The driver has a fallback, to make the message informational

s/to/so/?

> 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.

> Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1906
> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
> ---
>   drivers/gpu/drm/amd/amdkfd/kfd_crat.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_crat.c b/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
> index 24898238b024..1eaabd2cb41b 100644
> --- a/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
> +++ b/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
> @@ -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.

>   		return -ENODATA;
>   	} else if (ACPI_FAILURE(status)) {
>   		const char *err = acpi_format_exception(status);


Kind regards,

Paul

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] drm/amdkfd: make CRAT table missing message informational only
  2022-02-19  4:16 ` Paul Menzel
@ 2022-02-21 22:45   ` Alex Deucher
  2022-02-22 16:04     ` Felix Kuehling
  0 siblings, 1 reply; 5+ messages in thread
From: Alex Deucher @ 2022-02-21 22:45 UTC (permalink / raw)
  To: Paul Menzel, Kuehling, Felix; +Cc: Alex Deucher, amd-gfx list

On Fri, Feb 18, 2022 at 11:25 PM Paul Menzel <pmenzel@molgen.mpg.de> wrote:
>
> Dear Alex,
>
>
> Thank you for the patch.
>
> Am 18.02.22 um 21:42 schrieb Alex Deucher:
> > The driver has a fallback, to make the message informational
>
> s/to/so/?

fixed up locally.

>
> > rather than a warning.
>
> Maybe extend it a little?

Done.

>
> 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.
>
> > Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1906
> > Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
> > ---
> >   drivers/gpu/drm/amd/amdkfd/kfd_crat.c | 2 +-
> >   1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_crat.c b/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
> > index 24898238b024..1eaabd2cb41b 100644
> > --- a/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
> > +++ b/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
> > @@ -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.
>

I think it's still valid so you know that no CRAT table was found on
the platform.  @Kuehling, Felix any opinion?

Alex

> >               return -ENODATA;
> >       } else if (ACPI_FAILURE(status)) {
> >               const char *err = acpi_format_exception(status);
>
>
> Kind regards,
>
> Paul

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] drm/amdkfd: make CRAT table missing message informational only
  2022-02-21 22:45   ` Alex Deucher
@ 2022-02-22 16:04     ` Felix Kuehling
  0 siblings, 0 replies; 5+ messages in thread
From: Felix Kuehling @ 2022-02-22 16:04 UTC (permalink / raw)
  To: Alex Deucher, Paul Menzel; +Cc: Alex Deucher, amd-gfx list

Am 2022-02-21 um 17:45 schrieb Alex Deucher:
> On Fri, Feb 18, 2022 at 11:25 PM Paul Menzel <pmenzel@molgen.mpg.de> wrote:
>> Dear Alex,
>>
>>
>> Thank you for the patch.
>>
>> Am 18.02.22 um 21:42 schrieb Alex Deucher:
>>> The driver has a fallback, to make the message informational
>> s/to/so/?
> fixed up locally.
>
>>> rather than a warning.
>> Maybe extend it a little?
> Done.
>
>> 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.
>>
>>> Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1906
>>> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
>>> ---
>>>    drivers/gpu/drm/amd/amdkfd/kfd_crat.c | 2 +-
>>>    1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_crat.c b/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
>>> index 24898238b024..1eaabd2cb41b 100644
>>> --- a/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
>>> +++ b/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
>>> @@ -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.
>>
> 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


>
> Alex
>
>>>                return -ENODATA;
>>>        } else if (ACPI_FAILURE(status)) {
>>>                const char *err = acpi_format_exception(status);
>> Kind regards,
>>
>> Paul

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-02-22 16:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-18 20:42 [PATCH] drm/amdkfd: make CRAT table missing message informational only Alex Deucher
2022-02-18 21:53 ` Felix Kuehling
2022-02-19  4:16 ` Paul Menzel
2022-02-21 22:45   ` Alex Deucher
2022-02-22 16:04     ` Felix Kuehling

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.