sysfs-firmware-acpi 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. What: /sys/firmware/acpi/interrupts/
  2. Date: February 2008
  3. Contact: Len Brown <lenb@kernel.org>
  4. Description:
  5. All ACPI interrupts are handled via a single IRQ,
  6. the System Control Interrupt (SCI), which appears
  7. as "acpi" in /proc/interrupts.
  8. However, one of the main functions of ACPI is to make
  9. the platform understand random hardware without
  10. special driver support. So while the SCI handles a few
  11. well known (fixed feature) interrupts sources, such
  12. as the power button, it can also handle a variable
  13. number of a "General Purpose Events" (GPE).
  14. A GPE vectors to a specified handler in AML, which
  15. can do a anything the BIOS writer wants from
  16. OS context. GPE 0x12, for example, would vector
  17. to a level or edge handler called _L12 or _E12.
  18. The handler may do its business and return.
  19. Or the handler may send send a Notify event
  20. to a Linux device driver registered on an ACPI device,
  21. such as a battery, or a processor.
  22. To figure out where all the SCI's are coming from,
  23. /sys/firmware/acpi/interrupts contains a file listing
  24. every possible source, and the count of how many
  25. times it has triggered.
  26. $ cd /sys/firmware/acpi/interrupts
  27. $ grep . *
  28. error:0
  29. ff_gbl_lock:0
  30. ff_pmtimer:0
  31. ff_pwr_btn:0
  32. ff_rt_clk:0
  33. ff_slp_btn:0
  34. gpe00:0
  35. gpe01:0
  36. gpe02:0
  37. gpe03:0
  38. gpe04:0
  39. gpe05:0
  40. gpe06:0
  41. gpe07:0
  42. gpe08:0
  43. gpe09:174
  44. gpe0A:0
  45. gpe0B:0
  46. gpe0C:0
  47. gpe0D:0
  48. gpe0E:0
  49. gpe0F:0
  50. gpe10:0
  51. gpe11:60
  52. gpe12:0
  53. gpe13:0
  54. gpe14:0
  55. gpe15:0
  56. gpe16:0
  57. gpe17:0
  58. gpe18:0
  59. gpe19:7
  60. gpe1A:0
  61. gpe1B:0
  62. gpe1C:0
  63. gpe1D:0
  64. gpe1E:0
  65. gpe1F:0
  66. gpe_all:241
  67. sci:241
  68. sci - The total number of times the ACPI SCI
  69. has claimed an interrupt.
  70. gpe_all - count of SCI caused by GPEs.
  71. gpeXX - count for individual GPE source
  72. ff_gbl_lock - Global Lock
  73. ff_pmtimer - PM Timer
  74. ff_pwr_btn - Power Button
  75. ff_rt_clk - Real Time Clock
  76. ff_slp_btn - Sleep Button
  77. error - an interrupt that can't be accounted for above.
  78. Root has permission to clear any of these counters. Eg.
  79. # echo 0 > gpe11
  80. All counters can be cleared by clearing the total "sci":
  81. # echo 0 > sci
  82. None of these counters has an effect on the function
  83. of the system, they are simply statistics.