Skip to content

Commit fb14590

Browse files
Erik Schmaussrafaeljw
authored andcommitted
ACPI / Documentation: update ACPI customize method feature docs
Reviewed-by: Changzhong Li <[email protected]> Reviewed-by: Rui Zhang <[email protected]> Signed-off-by: Erik Schmauss <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent f4fe74c commit fb14590

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Documentation/acpi/method-customizing.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ control method rather than override the entire DSDT, because kernel
1616
rebuild/reboot is not needed and test result can be got in minutes.
1717

1818
Note: Only ACPI METHOD can be overridden, any other object types like
19-
"Device", "OperationRegion", are not recognized.
19+
"Device", "OperationRegion", are not recognized. Methods
20+
declared inside scope operators are also not supported.
2021
Note: The same ACPI control method can be overridden for many times,
2122
and it's always the latest one that used by Linux/kernel.
2223
Note: To get the ACPI debug object output (Store (AAAA, Debug)),
@@ -32,8 +33,6 @@ Note: To get the ACPI debug object output (Store (AAAA, Debug)),
3233

3334
DefinitionBlock ("", "SSDT", 1, "", "", 0x20080715)
3435
{
35-
External (ACON)
36-
3736
Method (\_SB_.AC._PSR, 0, NotSerialized)
3837
{
3938
Store ("In AC _PSR", Debug)
@@ -42,9 +41,10 @@ Note: To get the ACPI debug object output (Store (AAAA, Debug)),
4241
}
4342
Note that the full pathname of the method in ACPI namespace
4443
should be used.
45-
And remember to use "External" to declare external objects.
4644
e) assemble the file to generate the AML code of the method.
47-
e.g. "iasl psr.asl" (psr.aml is generated as a result)
45+
e.g. "iasl -vw 6084 psr.asl" (psr.aml is generated as a result)
46+
If parameter "-vw 6084" is not supported by your iASL compiler,
47+
please try a newer version.
4848
f) mount debugfs by "mount -t debugfs none /sys/kernel/debug"
4949
g) override the old method via the debugfs by running
5050
"cat /tmp/psr.aml > /sys/kernel/debug/acpi/custom_method"

0 commit comments

Comments
 (0)