[PATCH V16 10/11] trace, ras: add ARM processor error trace event
Borislav Petkov
bp at alien8.de
Tue May 16 07:44:14 PDT 2017
On Mon, May 15, 2017 at 03:27:59PM -0600, Tyler Baicar wrote:
> Currently there are trace events for the various RAS
> errors with the exception of ARM processor type errors.
> Add a new trace event for such errors so that the user
> will know when they occur. These trace events are
> consistent with the ARM processor error section type
> defined in UEFI 2.6 spec section N.2.4.4.
>
> Signed-off-by: Tyler Baicar <tbaicar at codeaurora.org>
> Acked-by: Steven Rostedt <rostedt at goodmis.org>
> Reviewed-by: Xie XiuQi <xiexiuqi at huawei.com>
> ---
> drivers/acpi/apei/ghes.c | 6 +++++-
> drivers/firmware/efi/cper.c | 1 +
> drivers/ras/ras.c | 6 ++++++
> include/linux/ras.h | 3 +++
> include/ras/ras_event.h | 45 +++++++++++++++++++++++++++++++++++++++++++++
> 5 files changed, 60 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c
> index 1106722..2dddb3b 100644
> --- a/drivers/acpi/apei/ghes.c
> +++ b/drivers/acpi/apei/ghes.c
> @@ -518,7 +518,11 @@ static void ghes_do_proc(struct ghes *ghes,
>
> }
> #endif
> - else {
> + else if (!uuid_le_cmp(sec_type, CPER_SEC_PROC_ARM)) {
> + struct cper_sec_proc_arm *err = acpi_hest_get_payload(gdata);
> +
> + call_arm_trace_event(err);
> + } else {
> void *err = acpi_hest_get_payload(gdata);
>
> call_non_standard_trace_event(&sec_type, fru_id,
> diff --git a/drivers/firmware/efi/cper.c b/drivers/firmware/efi/cper.c
> index d5a5855..48a8f69 100644
> --- a/drivers/firmware/efi/cper.c
> +++ b/drivers/firmware/efi/cper.c
> @@ -35,6 +35,7 @@
> #include <linux/printk.h>
> #include <linux/bcd.h>
> #include <acpi/ghes.h>
> +#include <ras/ras_event.h>
>
> #define INDENT_SP " "
>
> diff --git a/drivers/ras/ras.c b/drivers/ras/ras.c
> index 57363be..8655ef4 100644
> --- a/drivers/ras/ras.c
> +++ b/drivers/ras/ras.c
> @@ -20,6 +20,11 @@ void call_non_standard_trace_event(const uuid_le *sec_type,
> trace_non_standard_event(sec_type, fru_id, fru_text, sev, err, len);
> }
>
> +void call_arm_trace_event(struct cper_sec_proc_arm *err)
log_arm_hw_error()
because it is exactly that - a hardware error.
--
Regards/Gruss,
Boris.
Good mailing practices for 400: avoid top-posting and trim the reply.
More information about the linux-arm-kernel
mailing list