resend these two patches about *notrigger* parameter
Subsystems (3)
PATCH v2 1/2 ACPI, APEI, EINJ, new parameter to control trigger action
In reply to Chen GongSome APEI firmware implementation will access injected address specified in param1 to trigger the error when injecting memory error, which means if one SRAR error is injected, the crash always happens because it is executed in kernel context. This new parameter can disable trigger action and control is taken over by the user. In this way, an SRAR error can happen in user context instead of crashing the system. This function is highly depended on BIOS implementation so please ensure you know the BIOS trigger procedure before you enable this switch.
v2:
notrigger should be created together with param1/param2
--- drivers/acpi/apei/einj.c | 15 ++++++++++++--- 1 files changed, 12 insertions(+), 3 deletions(-)
drivers/acpi/apei/einj.c +12 -3
@@ -74,6 +74,8 @@ struct vendor_error_type_extension {u8 reserved[3 ]; }; +static u32 notrigger; +static u32 vendor_flags;static struct debugfs_blob_wrapper vendor_blob;static char vendor_dev[64 ];
@@ -496,9 +498,11 @@ static int __einj_error_inject(u32 type, u64 param1, u64 param2)if (rc)return rc; trigger_paddr =apei_exec_ctx_get_output (&ctx); - rc =__einj_error_trigger (trigger_paddr, type, param1, param2); -if (rc) -return rc; +if (notrigger ==0 ) { + rc =__einj_error_trigger (trigger_paddr, type, param1, param2); +if (rc) +return rc; + } rc =apei_exec_run_optional (&ctx,ACPI_EINJ_END_OPERATION );return rc;
@@ -700,6 +704,11 @@ static int __init einj_init(void) einj_debug_dir, &error_param2);if (!fentry) goto err_unmap; + + fentry =debugfs_create_x32 ("notrigger" ,S_IRUSR |S_IWUSR , + einj_debug_dir, ¬rigger); +if (!fentry) + goto err_unmap; }if (vendor_dev[0 ]) {
Signature · 1 line
1.7.8.2.302.g17b4e
PATCH v2 2/2 Update documentation for parameter *notrigger* in einj.txt
In reply to Chen GongAdd description of parameter notrigger in the einj.txt. One can utilize this new parameter to do some SRAR injection test. Pay attention, the operation is highly depended on the BIOS implementation. If no proper BIOS supports it, even if enabling this parameter, expected result will not happen.
v2:
Update the documentation suggested by Tony
--- Documentation/acpi/apei/einj.txt | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-)
Documentation/acpi/apei/einj.txt +8 -0
@@ -53,6 +53,14 @@ directory apei/einj. The following files are provided. This file is used to set the second error parameter value. Effect of parameter depends on error_type specified. +- notrigger + The EINJ mechanism is a two step process. First inject the error, then + perform some actions to trigger it. Setting "notrigger" to 1 skips the + trigger phase, which *may* allow the user to cause the error in some other + context by a simple access to the cpu, memory location, or device that is + the target of the error injection. Whether this actually works depends + on what operations the BIOS actually includes in the trigger phase. + BIOS versions based in the ACPI 4.0 specification have limited options to control where the errors are injected. Your BIOS may support an extension (enabled with the param_extension=1 module parameter, or
Signature · 1 line
1.7.8.2.302.g17b4e
[v2 PATCH 1/2] ACPI, APEI, EINJ, new parameter to [v2 PATCH 2/2] Update documentation for parameter
Hi, Len
Would you please help to merge these 2 patches for APEI enhancement? They have been posted about one month eariler. It looks like no one has objection.
Luck, Tony
reviewerQuoted 8 lines
[v2 PATCH 1/2] ACPI, APEI, EINJ, new parameter to [v2 PATCH 2/2] Update documentation for parameter
Hi, Len
Would you please help to merge these 2 patches for APEI enhancement? They have been posted about one month eariler. It looks like no one has objection.
They are already "Tested-by" and "Suggested-by" me ... you can add "Acked-by: Tony Luck <[email protected]>" too if you like.
-Tony
Quoted 8 lines · Tony
Quoted 8 lines
[v2 PATCH 1/2] ACPI, APEI, EINJ, new parameter to [v2 PATCH 2/2] Update documentation for parameter
Hi, Len
Would you please help to merge these 2 patches for APEI enhancement? They have been posted about one month eariler. It looks like no one has objection.
Quoted 9 lines
They are already "Tested-by" and "Suggested-by" me ... you can add "Acked-by: Tony Luck<[email protected]>" too if you like.
-Tony
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Thx Tony. I'd like to do that.
Len
If you have no objection, please help to add "Acked-by: Tony Luck <[email protected]>". Thx a lot!
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html