]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
hwtracing: hisi_ptt: Handle the interrupt in hardirq context
authorYicong Yang <yangyicong@hisilicon.com>
Tue, 10 Oct 2023 08:47:28 +0000 (16:47 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Jan 2024 10:50:04 +0000 (11:50 +0100)
commit2e3fc2a45a7ae9abb177692d63790632721821a7
treeaa59ff4d0cd9f62f7f7285f9f07f45e1a862af5e
parent319c5186d66ca60b1b75f5759d566f67c532e827
hwtracing: hisi_ptt: Handle the interrupt in hardirq context

[ Upstream commit e0dd27ad8af00f147ac3c9de88e0687986afc3ea ]

Handle the trace interrupt in the hardirq context, make sure the irq
core won't threaded it by declaring IRQF_NO_THREAD and userspace won't
balance it by declaring IRQF_NOBALANCING. Otherwise we may violate the
synchronization requirements of the perf core, referenced to the
change of arm-ccn PMU
  commit 0811ef7e2f54 ("bus: arm-ccn: fix PMU interrupt flags").

In the interrupt handler we mainly doing 2 things:
- Copy the data from the local DMA buffer to the AUX buffer
- Commit the data in the AUX buffer

Signed-off-by: Yicong Yang <yangyicong@hisilicon.com>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
[ Fixed commit description to suppress checkpatch warning ]
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20231010084731.30450-3-yangyicong@huawei.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hwtracing/ptt/hisi_ptt.c