summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKelly Rossmoyer <krossmo@google.com>2017-11-20 15:07:23 -0800
committerMichael Bestas <mkbestas@lineageos.org>2019-12-23 23:43:36 +0200
commite2518dc0a5abd63185e686f2afced5c67fcc30c4 (patch)
treec022b0f5088a19162ff71d02997ebe0fd5c5f551 /scripts
parentf1b8091e89b340971678b522d3217e28ef823b9d (diff)
genirq: Add generic action name for chained IRQs
Chained IRQs (the local device IRQs for chips that relay other IRQs) are all initialized in the kernel using a shared generic irqaction struct called "chained_action". Since the action is shared, the API for registering chained IRQ handlers does not allow a unique name to be specified, whereas non-chained IRQ handlers can have unique names. Unfortunately, the name of an IRQ handler action is included in resume logging, both in the kernel and in batterystats, and the name of the shared action for chained IRQ handlers is left null. So when a chained IRQ is detected as part of the wakeup reason during resume flow, we currently see log content like "10 triggered null" and "Resume caused by IRQ 10" in the kernel log and wakeup reason substrings like ":10:" in batterystats. To reduce confusion when troubleshooting and improve the clarity of logs, this change adds a generic name ("chained-irq") to the shared action. This name will show up in resume logging whenever any chained IRQ handler is part of the wakeup reason. In the kernel log: "10 triggered null" will become "10 triggered chained-irq" "... caused by IRQ 199" will become "... caused by IRQ 199 chained-irq" And in batterystats wakeup reasons: ":10:" will become ":10:chained-irq" This change does not (and cannot) provide any clarity in the logs about which chip is associated with which chained IRQ number; that information - if needed - must be obtained through other means. Bug: 63899519 Test:Ran on walleye and taimen devices and observed kernel logging and dumpsys batterystats logging changes. Signed-off-by: Kelly Rossmoyer <krossmo@google.com> Change-Id: I807f385fe64573cb3962cd25089fbc8e270a2377
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions