[PATCH 4/4] EDAC/mce_amd: Add support for FRU Text in MCA

2024-05-30 Thread Avadhut Naik
s/warnings are ignored to maintain coding style. [Yazen: Add Avadhut as co-developer for wrapper changes. ] Co-developed-by: Avadhut Naik Signed-off-by: Avadhut Naik Signed-off-by: Yazen Ghannam --- arch/x86/include/asm/mce.h | 2 ++ arch/x86/kernel/cpu/mce/apei.c | 2 ++ arch/x86/kern

[PATCH 3/4] x86/mce/apei: Handle variable register array size

2024-05-30 Thread Avadhut Naik
Naik Signed-off-by: Avadhut Naik Signed-off-by: Yazen Ghannam --- arch/x86/kernel/cpu/mce/apei.c | 73 +++--- 1 file changed, 59 insertions(+), 14 deletions(-) diff --git a/arch/x86/kernel/cpu/mce/apei.c b/arch/x86/kernel/cpu/mce/apei.c index 4cd6312423c6..8fd4c42ddc06

[PATCH 2/4] x86/mce, EDAC/mce_amd: Add support for new MCA_SYND{1,2} registers

2024-05-30 Thread Avadhut Naik
From: Avadhut Naik AMD's Scalable MCA systems viz. Genoa will include two new registers: MCA_SYND1 and MCA_SYND2. These registers will include supplemental error information in addition to the existing MCA_SYND register. The data within the registers is considered valid if MCA_STATUS[SyndV

[PATCH 1/4] x86/mce: Add wrapper for struct mce to export vendor specific info

2024-05-30 Thread Avadhut Naik
From: Avadhut Naik Currently, exporting new additional machine check error information involves adding new fields for the same at the end of the struct mce. This additional information can then be consumed through mcelog or tracepoint. However, as new MSRs are being added (and will be added

[PATCH 0/4] MCE wrapper and support for new SMCA syndrome MSRs

2024-05-30 Thread Avadhut Naik
..@amd.com/ 2: https://lore.kernel.org/linux-edac/20240523155641.2805411-1-yazen.ghan...@amd.com/ Avadhut Naik (2): x86/mce: Add wrapper for struct mce to export vendor specific info x86/mce, EDAC/mce_amd: Add support for new MCA_SYND{1,2} registers Yazen Ghannam (2): x86/mce/apei: Handle variab

[PATCH v6 2/2] tracing: Include Microcode Revision in mce_record tracepoint

2024-04-01 Thread Avadhut Naik
the version might result in discrepancies since it can be changed at runtime. Export microcode version through the tracepoint to prevent ambiguity over the active version on the system when the MCE was received. Signed-off-by: Avadhut Naik Reviewed-by: Sohil Mehta Reviewed-by: Steven Rostedt (Google

[PATCH v6 1/2] tracing: Include PPIN in mce_record tracepoint

2024-04-01 Thread Avadhut Naik
identifier for the system (or socket in case of multi-socket systems) on which the MCE has been received. Also, add a comment explaining the kind of information that can be and should be added to the tracepoint. Signed-off-by: Avadhut Naik Reviewed-by: Sohil Mehta Reviewed-by: Steven Rostedt

[PATCH v6 0/2] Update mce_record tracepoint

2024-04-01 Thread Avadhut Naik
50fc3faddab931707f0f [NOTE: - Since changes in this version are very minor, have retained the below tags received for previous versions: Reviewed-by: Sohil Mehta Reviewed-by: Steven Rostedt (Google) Reviewed-by: Tony Luck ] Avadhut Naik (2): tracing: Include PPIN in mce_record

[RESEND v5 2/2] tracing: Include Microcode Revision in mce_record tracepoint

2024-03-28 Thread Avadhut Naik
the version might result in discrepancies since it can be changed at runtime. Export microcode version through the tracepoint to prevent ambiguity over the active version on the system when the MCE was received. Signed-off-by: Avadhut Naik Reviewed-by: Sohil Mehta Reviewed-by: Steven Rostedt (Google

[RESEND v5 1/2] tracing: Include PPIN in mce_record tracepoint

2024-03-28 Thread Avadhut Naik
identifier for the system (or socket in case of multi-socket systems) on which the MCE has been received. Additionally, also change words which are not acronyms from uppercase (ALL CAPS) to lowercase in tracepoint's output. Signed-off-by: Avadhut Naik Reviewed-by: Sohil Mehta Reviewed-by: Steven

[RESEND v5 0/2] Update mce_record tracepoint

2024-03-28 Thread Avadhut Naik
ed the the below tags received for previous versions: Reviewed-by: Sohil Mehta Reviewed-by: Steven Rostedt (Google) Reviewed-by: Tony Luck - Missed adding linux-kernel@vger.kernel.org with v5. Hence, resending.] Avadhut Naik (2): tracing: Include PPIN in mce_record tracepoin

[PATCH v5 1/2] tracing: Include PPIN in mce_record tracepoint

2024-03-28 Thread Avadhut Naik
identifier for the system (or socket in case of multi-socket systems) on which the MCE has been received. Additionally, also change words which are not acronyms from uppercase (ALL CAPS) to lowercase in tracepoint's output. Signed-off-by: Avadhut Naik Reviewed-by: Sohil Mehta Reviewed-by: Steven

[PATCH v5 2/2] tracing: Include Microcode Revision in mce_record tracepoint

2024-03-28 Thread Avadhut Naik
the version might result in discrepancies since it can be changed at runtime. Export microcode version through the tracepoint to prevent ambiguity over the active version on the system when the MCE was received. Signed-off-by: Avadhut Naik Reviewed-by: Sohil Mehta Reviewed-by: Steven Rostedt (Google

[PATCH v5 0/2] Update mce_record tracepoint

2024-03-28 Thread Avadhut Naik
ed the the below tags received for previous versions: Reviewed-by: Sohil Mehta Reviewed-by: Steven Rostedt (Google) Reviewed-by: Tony Luck ] Avadhut Naik (2): tracing: Include PPIN in mce_record tracepoint tracing: Include Microcode Revision in mce_record tracepoint i

[PATCH v4 2/2] tracing: Include Microcode Revision in mce_record tracepoint

2024-03-27 Thread Avadhut Naik
the version might result in discrepancies since it can be changed at runtime. Export microcode version through the tracepoint to prevent ambiguity over the active version on the system when the MCE was received. Signed-off-by: Avadhut Naik Reviewed-by: Sohil Mehta Reviewed-by: Steven Rostedt (Google

[PATCH v4 1/2] tracing: Include PPIN in mce_record tracepoint

2024-03-27 Thread Avadhut Naik
identifier for the system (or socket in case of multi-socket systems) on which the MCE has been received. Signed-off-by: Avadhut Naik Reviewed-by: Sohil Mehta Reviewed-by: Steven Rostedt (Google) --- include/trace/events/mce.h | 13 - 1 file changed, 12 insertions(+), 1 deletion

[PATCH v4 0/2] Update mce_record tracepoint

2024-03-27 Thread Avadhut Naik
been reworked i.e. no code changes have been undertaken for this version, have the retained the below tags from v3: Reviewed-by: Sohil Mehta Reviewed-by: Steven Rostedt (Google) ] Avadhut Naik (2): tracing: Include PPIN in mce_record tracepoint tracing: Include Microcode Revision

[PATCH v3 2/2] tracing: Include Microcode Revision in mce_record tracepoint

2024-01-26 Thread Avadhut Naik
Currently, the microcode field (Microcode Revision) of struct mce is not exported to userspace through the mce_record tracepoint. Export it through the tracepoint as it may provide useful information for debug and analysis. Signed-off-by: Avadhut Naik Reviewed-by: Sohil Mehta --- include

[PATCH v3 1/2] tracing: Include PPIN in mce_record tracepoint

2024-01-26 Thread Avadhut Naik
information for debug and analysis. Signed-off-by: Avadhut Naik Reviewed-by: Sohil Mehta --- include/trace/events/mce.h | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/trace/events/mce.h b/include/trace/events/mce.h index 1391ada0da3b..41a5431545e2 100644

[PATCH v3 0/2] Update mce_record tracepoint

2024-01-26 Thread Avadhut Naik
) to the tracepoint. Changes in v2: - Export microcode field (Microcode Revision) through the tracepoiont in addition to PPIN. Changes in v3: - Change format specifier for microcode revision from %u to %x - Fix tab alignments - Add Reviewed-by: Sohil Mehta Avadhut Naik (2): tracing: Include PPIN

[PATCH v2 2/2] tracing: Include Microcode Revision in mce_record tracepoint

2024-01-25 Thread Avadhut Naik
Currently, the microcode field (Microcode Revision) of struct mce is not exported to userspace through the mce_record tracepoint. Export it through the tracepoint as it may provide useful information for debug and analysis. Signed-off-by: Avadhut Naik --- include/trace/events/mce.h | 7

[PATCH v2 1/2] tracing: Include PPIN in mce_record tracepoint

2024-01-25 Thread Avadhut Naik
information for debug and analysis. Signed-off-by: Avadhut Naik --- include/trace/events/mce.h | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/trace/events/mce.h b/include/trace/events/mce.h index 1391ada0da3b..657b93ec8176 100644 --- a/include/trace/events/mce.h

[PATCH v2 0/2] Update mce_record tracepoint

2024-01-25 Thread Avadhut Naik
) to the tracepoint. Changes in v2: - Export microcode field (Microcode Revision) through the tracepoiont in addition to PPIN. Avadhut Naik (2): tracing: Include PPIN in mce_record tracepoint tracing: Include Microcode Revision in mce_record tracepoint include/trace/events/mce.h | 10 -- 1

[PATCH] tracing: Include PPIN in mce_record tracepoint

2024-01-23 Thread Avadhut Naik
information for debug and analysis. Signed-off-by: Avadhut Naik --- include/trace/events/mce.h | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/trace/events/mce.h b/include/trace/events/mce.h index 1391ada0da3b..657b93ec8176 100644 --- a/include/trace/events/mce.h