mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-10 15:58:47 +00:00
hwtracing: hisi_ptt: Handle the interrupt in hardirq context
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
This commit is contained in:
parent
55e0a2fb0c
commit
e0dd27ad8a
@ -342,9 +342,9 @@ static int hisi_ptt_register_irq(struct hisi_ptt *hisi_ptt)
|
|||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
hisi_ptt->trace_irq = pci_irq_vector(pdev, HISI_PTT_TRACE_DMA_IRQ);
|
hisi_ptt->trace_irq = pci_irq_vector(pdev, HISI_PTT_TRACE_DMA_IRQ);
|
||||||
ret = devm_request_threaded_irq(&pdev->dev, hisi_ptt->trace_irq,
|
ret = devm_request_irq(&pdev->dev, hisi_ptt->trace_irq, hisi_ptt_isr,
|
||||||
NULL, hisi_ptt_isr, 0,
|
IRQF_NOBALANCING | IRQF_NO_THREAD, DRV_NAME,
|
||||||
DRV_NAME, hisi_ptt);
|
hisi_ptt);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
pci_err(pdev, "failed to request irq %d, ret = %d\n",
|
pci_err(pdev, "failed to request irq %d, ret = %d\n",
|
||||||
hisi_ptt->trace_irq, ret);
|
hisi_ptt->trace_irq, ret);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user