summaryrefslogtreecommitdiff
path: root/Documentation/firmware-guide/acpi
diff options
context:
space:
mode:
authorQifu Zhang <zhangqifu@bytedance.com>2022-07-19 19:50:13 +0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2022-07-21 17:05:42 +0200
commit9066e151c37950af92c3be6a7270daa8e8063db9 (patch)
treea8584cadd5172aa8d0d29f557907a1105ec200a7 /Documentation/firmware-guide/acpi
parentdd5e555400305bcc9bf1f063d7206656c4c68e96 (diff)
Documentation: ACPI: EINJ: Fix obsolete example
Since commit 488dac0c9237 ("libfs: fix error cast of negative value in simple_attr_write()"), the EINJ debugfs interface no longer accepts negative values as input. Attempt to do so will result in EINVAL. Fixes: 488dac0c9237 ("libfs: fix error cast of negative value in simple_attr_write()") Signed-off-by: Qifu Zhang <zhangqifu@bytedance.com> Reviewed-by: Tony Luck <tony.luck@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'Documentation/firmware-guide/acpi')
-rw-r--r--Documentation/firmware-guide/acpi/apei/einj.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/firmware-guide/acpi/apei/einj.rst b/Documentation/firmware-guide/acpi/apei/einj.rst
index 55e2331a6438..d6b61d22f525 100644
--- a/Documentation/firmware-guide/acpi/apei/einj.rst
+++ b/Documentation/firmware-guide/acpi/apei/einj.rst
@@ -168,7 +168,7 @@ An error injection example::
0x00000008 Memory Correctable
0x00000010 Memory Uncorrectable non-fatal
# echo 0x12345000 > param1 # Set memory address for injection
- # echo $((-1 << 12)) > param2 # Mask 0xfffffffffffff000 - anywhere in this page
+ # echo 0xfffffffffffff000 > param2 # Mask - anywhere in this page
# echo 0x8 > error_type # Choose correctable memory error
# echo 1 > error_inject # Inject now