aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorTony Lindgren <[email protected]>2020-11-11 19:06:13 +0200
committerLee Jones <[email protected]>2020-11-19 08:34:28 +0000
commit14639a22de657eabbb776f503a816594393cc935 (patch)
treeefbbe67ace0fdb7649eeaabd2fe2b0614746ca27 /tools/perf/scripts/python/export-to-sqlite.py
parentd75846ed08e6f4135ec73778575c34d9c0ace993 (diff)
mfd: cpcap: Fix interrupt regression with regmap clear_ack
With commit 3a6f0fb7b8eb ("regmap: irq: Add support to clear ack registers"), the cpcap interrupts are no longer getting acked properly leading to a very unresponsive device with CPUs fully loaded spinning in the threaded IRQ handlers. To me it looks like the clear_ack commit above actually fixed a long standing bug in regmap_irq_thread() where we unconditionally acked the interrupts earlier without considering ack_invert. And the issue with cpcap started happening as we now also consider ack_invert. Tim Harvey <[email protected]> tried to fix this issue earlier with "[PATCH v2] regmap: irq: fix ack-invert", but the reading of the ack register was considered unnecessary for just ack_invert, and we did not have clear_ack available yet. As the cpcap irqs worked both with and without ack_invert earlier because of the unconditional ack, the problem remained hidden until now. Also, looks like the earlier v3.0.8 based Motorola Android Linux kernel does clear_ack style read-clear-write with "ireg_val & ~mreg_val" instead of just ack_invert style write. So let's switch cpcap to use clear_ack to fix the issue. Fixes: 3a6f0fb7b8eb ("regmap: irq: Add support to clear ack registers") Cc: Carl Philipp Klemm <[email protected]> Cc: Laxminath Kasam <[email protected]> Cc: Merlijn Wajer <[email protected]> Cc: Mark Brown <[email protected]> Cc: Pavel Machek <[email protected]> Cc: Sebastian Reichel <[email protected]> Cc: Tim Harvey <[email protected]> Signed-off-by: Tony Lindgren <[email protected]> Tested-by: Pavel Machek <[email protected]> Reviewed-By: Tim Harvey <[email protected]> Signed-off-by: Lee Jones <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions