mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 07:45:12 +07:00
d61e2944b6
Surprisingly there is no simple way to see if the IRQ line in question is wakeup source or not. Note that wakeup might be an OOB (out-of-band) source like GPIO line which makes things slightly more complicated. Add a sysfs node to cover this case. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Tested-by: Tony Lindgren <tony@atomide.com> Cc: Grygorii Strashko <grygorii.strashko@ti.com> Cc: "Rafael J . Wysocki" <rafael.j.wysocki@intel.com> Link: https://lkml.kernel.org/r/20180226155043.67937-1-andriy.shevchenko@linux.intel.com
61 lines
2.1 KiB
Plaintext
61 lines
2.1 KiB
Plaintext
What: /sys/kernel/irq
|
|
Date: September 2016
|
|
KernelVersion: 4.9
|
|
Contact: Craig Gallek <kraig@google.com>
|
|
Description: Directory containing information about the system's IRQs.
|
|
Specifically, data from the associated struct irq_desc.
|
|
The information here is similar to that in /proc/interrupts
|
|
but in a more machine-friendly format. This directory contains
|
|
one subdirectory for each Linux IRQ number.
|
|
|
|
What: /sys/kernel/irq/<irq>/actions
|
|
Date: September 2016
|
|
KernelVersion: 4.9
|
|
Contact: Craig Gallek <kraig@google.com>
|
|
Description: The IRQ action chain. A comma-separated list of zero or more
|
|
device names associated with this interrupt.
|
|
|
|
What: /sys/kernel/irq/<irq>/chip_name
|
|
Date: September 2016
|
|
KernelVersion: 4.9
|
|
Contact: Craig Gallek <kraig@google.com>
|
|
Description: Human-readable chip name supplied by the associated device
|
|
driver.
|
|
|
|
What: /sys/kernel/irq/<irq>/hwirq
|
|
Date: September 2016
|
|
KernelVersion: 4.9
|
|
Contact: Craig Gallek <kraig@google.com>
|
|
Description: When interrupt translation domains are used, this file contains
|
|
the underlying hardware IRQ number used for this Linux IRQ.
|
|
|
|
What: /sys/kernel/irq/<irq>/name
|
|
Date: September 2016
|
|
KernelVersion: 4.9
|
|
Contact: Craig Gallek <kraig@google.com>
|
|
Description: Human-readable flow handler name as defined by the irq chip
|
|
driver.
|
|
|
|
What: /sys/kernel/irq/<irq>/per_cpu_count
|
|
Date: September 2016
|
|
KernelVersion: 4.9
|
|
Contact: Craig Gallek <kraig@google.com>
|
|
Description: The number of times the interrupt has fired since boot. This
|
|
is a comma-separated list of counters; one per CPU in CPU id
|
|
order. NOTE: This file consistently shows counters for all
|
|
CPU ids. This differs from the behavior of /proc/interrupts
|
|
which only shows counters for online CPUs.
|
|
|
|
What: /sys/kernel/irq/<irq>/type
|
|
Date: September 2016
|
|
KernelVersion: 4.9
|
|
Contact: Craig Gallek <kraig@google.com>
|
|
Description: The type of the interrupt. Either the string 'level' or 'edge'.
|
|
|
|
What: /sys/kernel/irq/<irq>/wakeup
|
|
Date: March 2018
|
|
KernelVersion: 4.17
|
|
Contact: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
|
|
Description: The wakeup state of the interrupt. Either the string
|
|
'enabled' or 'disabled'.
|