diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-16 15:33:19 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-16 15:33:19 -0500 |
| commit | 288f02bbb6e9609cbaf1eb7a9cb97ae45ce090b2 (patch) | |
| tree | 4f5e5c9fe6638bdbd246379f64b3541de68f329a | |
| parent | 8aedf8a6ae98d5d4df3254b6afb7e4432d9d8600 (diff) | |
| parent | aa96ce0af8385415a3450bc13e6254a4d6b4a888 (diff) | |
Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6
* 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6: (117 commits)
ACPI processor: Fix section mismatch for processor_add()
ACPI: Add platform-wide _OSC support.
ACPI: cleanup pci_root _OSC code.
ACPI: Add a generic API for _OSC -v2
msi-wmi: depend on backlight and fix corner-cases problems
msi-wmi: switch to using input sparse keymap library
msi-wmi: replace one-condition switch-case with if statement
msi-wmi: remove unused field 'instance' in key_entry structure
msi-wmi: remove custom runtime debug implementation
msi-wmi: rework init
msi-wmi: remove useless includes
X86 drivers: Introduce msi-wmi driver
Toshiba Bluetooth Enabling driver (RFKill handler v3)
ACPI: fix for lapic_timer_propagate_broadcast()
acpi_pad: squish warning
ACPI: dock: minor whitespace and style cleanups
ACPI: dock: add struct dock_station * directly to platform device data
ACPI: dock: dock_add - hoist up platform_device_register_simple()
ACPI: dock: remove global 'dock_device_name'
ACPI: dock: combine add|alloc_dock_dependent_device (v2)
...
66 files changed, 4113 insertions, 1712 deletions
diff --git a/Documentation/acpi/method-customizing.txt b/Documentation/acpi/method-customizing.txt new file mode 100644 index 000000000000..e628cd23ca80 --- /dev/null +++ b/Documentation/acpi/method-customizing.txt | |||
| @@ -0,0 +1,66 @@ | |||
| 1 | Linux ACPI Custom Control Method How To | ||
| 2 | ======================================= | ||
| 3 | |||
| 4 | Written by Zhang Rui <rui.zhang@intel.com> | ||
| 5 | |||
| 6 | |||
| 7 | Linux supports customizing ACPI control methods at runtime. | ||
| 8 | |||
| 9 | Users can use this to | ||
| 10 | 1. override an existing method which may not work correctly, | ||
| 11 | or just for debugging purposes. | ||
| 12 | 2. insert a completely new method in order to create a missing | ||
| 13 | method such as _OFF, _ON, _STA, _INI, etc. | ||
| 14 | For these cases, it is far simpler to dynamically install a single | ||
| 15 | control method rather than override the entire DSDT, because kernel | ||
| 16 | rebuild/reboot is not needed and test result can be got in minutes. | ||
| 17 | |||
| 18 | Note: Only ACPI METHOD can be overridden, any other object types like | ||
| 19 | "Device", "OperationRegion", are not recognized. | ||
| 20 | Note: The same ACPI control method can be overridden for many times, | ||
| 21 | and it's always the latest one that used by Linux/kernel. | ||
| 22 | |||
| 23 | 1. override an existing method | ||
| 24 | a) get the ACPI table via ACPI sysfs I/F. e.g. to get the DSDT, | ||
| 25 | just run "cat /sys/firmware/acpi/tables/DSDT > /tmp/dsdt.dat" | ||
| 26 | b) disassemble the table by running "iasl -d dsdt.dat". | ||
| 27 | c) rewrite the ASL code of the method and save it in a new file, | ||
| 28 | d) package the new file (psr.asl) to an ACPI table format. | ||
| 29 | Here is an example of a customized \_SB._AC._PSR method, | ||
| 30 | |||
| 31 | DefinitionBlock ("", "SSDT", 1, "", "", 0x20080715) | ||
| 32 | { | ||
| 33 | External (ACON) | ||
| 34 | |||
| 35 | Method (\_SB_.AC._PSR, 0, NotSerialized) | ||
| 36 | { | ||
| 37 | Store ("In AC _PSR", Debug) | ||
| 38 | Return (ACON) | ||
| 39 | } | ||
| 40 | } | ||
| 41 | Note that the full pathname of the method in ACPI namespace | ||
| 42 | should be used. | ||
| 43 | And remember to use "External" to declare external objects. | ||
| 44 | e) assemble the file to generate the AML code of the method. | ||
| 45 | e.g. "iasl psr.asl" (psr.aml is generated as a result) | ||
| 46 | f) mount debugfs by "mount -t debugfs none /sys/kernel/debug" | ||
| 47 | g) override the old method via the debugfs by running | ||
| 48 | "cat /tmp/psr.aml > /sys/kernel/debug/acpi/custom_method" | ||
| 49 | |||
| 50 | 2. insert a new method | ||
| 51 | This is easier than overriding an existing method. | ||
| 52 | We just need to create the ASL code of the method we want to | ||
| 53 | insert and then follow the step c) ~ g) in section 1. | ||
| 54 | |||
| 55 | 3. undo your changes | ||
| 56 | The "undo" operation is not supported for a new inserted method | ||
| 57 | right now, i.e. we can not remove a method currently. | ||
| 58 | For an overrided method, in order to undo your changes, please | ||
| 59 | save a copy of the method original ASL code in step c) section 1, | ||
| 60 | and redo step c) ~ g) to override the method with the original one. | ||
| 61 | |||
| 62 | |||
| 63 | Note: We can use a kernel with multiple custom ACPI method running, | ||
| 64 | But each individual write to debugfs can implement a SINGLE | ||
| 65 | method override. i.e. if we want to insert/override multiple | ||
| 66 | ACPI methods, we need to redo step c) ~ g) for multiple times. | ||
diff --git a/Documentation/feature-removal-schedule.txt b/Documentation/feature-removal-schedule.txt index 21ab9357326d..870d190fe617 100644 --- a/Documentation/feature-removal-schedule.txt +++ b/Documentation/feature-removal-schedule.txt | |||
| @@ -474,3 +474,22 @@ Why: Obsoleted by the adt7475 driver. | |||
| 474 | Who: Jean Delvare <khali@linux-fr.org> | 474 | Who: Jean Delvare <khali@linux-fr.org> |
| 475 | 475 | ||
| 476 | --------------------------- | 476 | --------------------------- |
| 477 | What: Support for lcd_switch and display_get in asus-laptop driver | ||
| 478 | When: March 2010 | ||
| 479 | Why: These two features use non-standard interfaces. There are the | ||
| 480 | only features that really need multiple path to guess what's | ||
| 481 | the right method name on a specific laptop. | ||
| 482 | |||
