Skip to content

Commit e8b7d87

Browse files
Yicong YangSuzuki K Poulose
authored andcommitted
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 0811ef7 ("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
1 parent 4669551 commit e8b7d87

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

drivers/hwtracing/ptt/hisi_ptt.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -346,9 +346,9 @@ static int hisi_ptt_register_irq(struct hisi_ptt *hisi_ptt)
346346
return ret;
347347

348348
hisi_ptt->trace_irq = pci_irq_vector(pdev, HISI_PTT_TRACE_DMA_IRQ);
349-
ret = devm_request_threaded_irq(&pdev->dev, hisi_ptt->trace_irq,
350-
NULL, hisi_ptt_isr, 0,
351-
DRV_NAME, hisi_ptt);
349+
ret = devm_request_irq(&pdev->dev, hisi_ptt->trace_irq, hisi_ptt_isr,
350+
IRQF_NOBALANCING | IRQF_NO_THREAD, DRV_NAME,
351+
hisi_ptt);
352352
if (ret) {
353353
pci_err(pdev, "failed to request irq %d, ret = %d\n",
354354
hisi_ptt->trace_irq, ret);

0 commit comments

Comments
 (0)