linux-edac.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] EDAC/mce_amd: Decode Cache Level "L0" Error Code
@ 2023-04-10 20:33 Yazen Ghannam
  2023-04-10 20:47 ` Borislav Petkov
  0 siblings, 1 reply; 3+ messages in thread
From: Yazen Ghannam @ 2023-04-10 20:33 UTC (permalink / raw)
  To: bp, linux-edac; +Cc: linux-kernel, avadhut.naik, Yazen Ghannam

The "L0" cache level is listed as "reserved" in legacy documentation.
This has now been defined as "Core" in current documentation for
Zen-based systems.

Update the cache level strings to include this new definition.

Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com>
---
 drivers/edac/mce_amd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/edac/mce_amd.c b/drivers/edac/mce_amd.c
index cc5c63feb26a..1d1b9da3b9bd 100644
--- a/drivers/edac/mce_amd.c
+++ b/drivers/edac/mce_amd.c
@@ -37,7 +37,7 @@ EXPORT_SYMBOL_GPL(amd_unregister_ecc_decoder);
 static const char * const tt_msgs[] = { "INSN", "DATA", "GEN", "RESV" };
 
 /* cache level */
-static const char * const ll_msgs[] = { "RESV", "L1", "L2", "L3/GEN" };
+static const char * const ll_msgs[] = { "CORE", "L1", "L2", "L3/GEN" };
 
 /* memory transaction type */
 static const char * const rrrr_msgs[] = {
-- 
2.34.1


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

* Re: [PATCH] EDAC/mce_amd: Decode Cache Level "L0" Error Code
  2023-04-10 20:33 [PATCH] EDAC/mce_amd: Decode Cache Level "L0" Error Code Yazen Ghannam
@ 2023-04-10 20:47 ` Borislav Petkov
  2023-04-10 20:53   ` Yazen Ghannam
  0 siblings, 1 reply; 3+ messages in thread
From: Borislav Petkov @ 2023-04-10 20:47 UTC (permalink / raw)
  To: Yazen Ghannam; +Cc: linux-edac, linux-kernel, avadhut.naik

On Mon, Apr 10, 2023 at 03:33:57PM -0500, Yazen Ghannam wrote:
> The "L0" cache level is listed as "reserved" in legacy documentation.
> This has now been defined as "Core" in current documentation for
> Zen-based systems.
> 
> Update the cache level strings to include this new definition.
> 
> Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com>
> ---
>  drivers/edac/mce_amd.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/edac/mce_amd.c b/drivers/edac/mce_amd.c
> index cc5c63feb26a..1d1b9da3b9bd 100644
> --- a/drivers/edac/mce_amd.c
> +++ b/drivers/edac/mce_amd.c
> @@ -37,7 +37,7 @@ EXPORT_SYMBOL_GPL(amd_unregister_ecc_decoder);
>  static const char * const tt_msgs[] = { "INSN", "DATA", "GEN", "RESV" };
>  
>  /* cache level */
> -static const char * const ll_msgs[] = { "RESV", "L1", "L2", "L3/GEN" };
> +static const char * const ll_msgs[] = { "CORE", "L1", "L2", "L3/GEN" };

Still used on legacy machines. I thought we agreed we'll move all the
decoding to luserspace, for newer Zens...

-- 
Regards/Gruss,
    Boris.

https://people.kernel.org/tglx/notes-about-netiquette

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

* Re: [PATCH] EDAC/mce_amd: Decode Cache Level "L0" Error Code
  2023-04-10 20:47 ` Borislav Petkov
@ 2023-04-10 20:53   ` Yazen Ghannam
  0 siblings, 0 replies; 3+ messages in thread
From: Yazen Ghannam @ 2023-04-10 20:53 UTC (permalink / raw)
  To: Borislav Petkov; +Cc: yazen.ghannam, linux-edac, linux-kernel, avadhut.naik

On 4/10/23 16:47, Borislav Petkov wrote:
> On Mon, Apr 10, 2023 at 03:33:57PM -0500, Yazen Ghannam wrote:
>> The "L0" cache level is listed as "reserved" in legacy documentation.
>> This has now been defined as "Core" in current documentation for
>> Zen-based systems.
>>
>> Update the cache level strings to include this new definition.
>>
>> Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com>
>> ---
>>  drivers/edac/mce_amd.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/edac/mce_amd.c b/drivers/edac/mce_amd.c
>> index cc5c63feb26a..1d1b9da3b9bd 100644
>> --- a/drivers/edac/mce_amd.c
>> +++ b/drivers/edac/mce_amd.c
>> @@ -37,7 +37,7 @@ EXPORT_SYMBOL_GPL(amd_unregister_ecc_decoder);
>>  static const char * const tt_msgs[] = { "INSN", "DATA", "GEN", "RESV" };
>>  
>>  /* cache level */
>> -static const char * const ll_msgs[] = { "RESV", "L1", "L2", "L3/GEN" };
>> +static const char * const ll_msgs[] = { "CORE", "L1", "L2", "L3/GEN" };
> 
> Still used on legacy machines. I thought we agreed we'll move all the
> decoding to luserspace, for newer Zens...
> 

I was thinking about that for the Extended Error Code descriptions. But good
point, please disregard this patch.

Thanks,
Yazen



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

end of thread, other threads:[~2023-04-10 20:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-10 20:33 [PATCH] EDAC/mce_amd: Decode Cache Level "L0" Error Code Yazen Ghannam
2023-04-10 20:47 ` Borislav Petkov
2023-04-10 20:53   ` Yazen Ghannam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).