Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ACPI / Documentation: update ACPI customize method feature docs

Reviewed-by: Changzhong Li <changzhong.li@intel.com>
Reviewed-by: Rui Zhang <rui.zhang@intel.com>
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Erik Schmauss and committed by
Rafael J. Wysocki
fb145901 f4fe74cc

+5 -5
+5 -5
Documentation/acpi/method-customizing.txt
··· 16 16 rebuild/reboot is not needed and test result can be got in minutes. 17 17 18 18 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. 20 21 Note: The same ACPI control method can be overridden for many times, 21 22 and it's always the latest one that used by Linux/kernel. 22 23 Note: To get the ACPI debug object output (Store (AAAA, Debug)), ··· 33 32 34 33 DefinitionBlock ("", "SSDT", 1, "", "", 0x20080715) 35 34 { 36 - External (ACON) 37 - 38 35 Method (\_SB_.AC._PSR, 0, NotSerialized) 39 36 { 40 37 Store ("In AC _PSR", Debug) ··· 41 42 } 42 43 Note that the full pathname of the method in ACPI namespace 43 44 should be used. 44 - And remember to use "External" to declare external objects. 45 45 e) assemble the file to generate the AML code of the method. 46 - e.g. "iasl psr.asl" (psr.aml is generated as a result) 46 + e.g. "iasl -vw 6084 psr.asl" (psr.aml is generated as a result) 47 + If parameter "-vw 6084" is not supported by your iASL compiler, 48 + please try a newer version. 47 49 f) mount debugfs by "mount -t debugfs none /sys/kernel/debug" 48 50 g) override the old method via the debugfs by running 49 51 "cat /tmp/psr.aml > /sys/kernel/debug/acpi/custom_method"