Home | History | Annotate | only in /external/ltp/testcases/kernel/device-drivers/acpi
Up to higher level directory
NameDateSize
.gitignore06-Dec-201798
ltp_acpi.c06-Dec-20173.9K
ltp_acpi.h06-Dec-20171.2K
ltp_acpi_cmds.c06-Dec-201715.7K
Makefile06-Dec-20171.1K
README06-Dec-20172.3K

README

      1 - ACPI testcase -
      2         ACPI must be enabled in the kernel. Since ACPI will control devices and possibly put them to sleep,
      3         it's not recommended that any other tests be run concurrently with these tests since you may
      4         get unexpected results.
      5         These tests are currently ONLY supported on the 2.5 kernels. 2.4 kernels probably won't even build much
      6         less run.
      7         run ltpacpi.sh -r run  to execute the tests
      8 
      9 3.a. A function "acpi_get_object_info" has been added to the LtpAcpiCmds.c file of LTP project.
     10         (\ltp\testcases\kernel\device-drivers\acpi\LtpAcpiCmds.c)
     11          This function returns information about an object as seen from the namespace node.
     12 
     13 3.b. A function "acpi_install_fixed_event_handler" has been added to the LtpAcpiCmds.c file of LTP project.
     14         This function saves the pointer to the handler function and then enables the event.
     15 
     16 3.c. A function "acpi_remove_fixed_event_handler" has been added to the LtpAcpiCmds.c file.
     17         Disables the event and unregisters the event handler.
     18 
     19 3.d. A function "acpi_acquire_global_lock" has been added to LtpAcpiCmds.c file.
     20         Acquire the ACPI Global Lock
     21 
     22 3.e. A function "acpi_release_global_lock" has been added to LtpAcpiCmds.c file.
     23         Release the ACPI Global Lock
     24 
     25 3.f. A function "acpi_bus_find_driver" has been added to LtpAcpiCmds.c file.
     26         Parses the list of registered drivers looking for a driver applicable for the specified device.
     27 
     28 3.g. A function "acpi_bus_get_power" has been added to LtpAcpiCmds.c file.
     29         Get the device's power state either directly (via _PSC) or indirectly (via power resources).
     30 
     31 3.h. A function "acpi_evaluate_integer" has been added to LtpAcpiCmds.c file.
     32         Looks for _GPE object (an integer). If _GPE evaluates to an integer,
     33 the value is the bit assignment of the SCI interrupt within the GPEx_STS register of a GPE
     34 block described in the FADT that the embedded controller will trigger.
     35 
     36 4. Including ACPI support into the kernel
     37 
     38  By default, the kernel may not enable ACPI feature. A kernel configuration option must be selected
     39  to enable ACPI support.
     40 
     41 5. FAQ
     42 
     43 Q.5.1. Are there any limitations on using this patch?
     44 
     45 A.5.1. If the device supports ACPI feature and the ACPI feature is enabled in the kernel,
     46 then only a user will be able to use these scripts.
     47 
     48