From: Fang Lijun fanglijun3@huawei.com
ascend inclusion category: bugfix bugzilla: 39052 CVE: NA
---------------------------
This pmu use the same interrupts for every four l3t and lpddrc, so they must be initialized by IRQF_SHARED.
Signed-off-by: Fang Lijun fanglijun3@huawei.com Reviewed-by: Ding Tianhong dingtianhong@huawei.com Signed-off-by: Yang Yingliang yangyingliang@huawei.com --- drivers/perf/hisilicon/hisi_uncore_l3t_pmu.c | 2 +- drivers/perf/hisilicon/hisi_uncore_lpddrc_pmu.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/perf/hisilicon/hisi_uncore_l3t_pmu.c b/drivers/perf/hisilicon/hisi_uncore_l3t_pmu.c index c736df5816a82..4c4952b9533db 100644 --- a/drivers/perf/hisilicon/hisi_uncore_l3t_pmu.c +++ b/drivers/perf/hisilicon/hisi_uncore_l3t_pmu.c @@ -217,7 +217,7 @@ static int hisi_l3t_pmu_init_irq(struct hisi_pmu *l3t_pmu, }
ret = devm_request_irq(&pdev->dev, irq, hisi_l3t_pmu_isr, - IRQF_NOBALANCING | IRQF_NO_THREAD, + IRQF_NOBALANCING | IRQF_NO_THREAD | IRQF_SHARED, dev_name(&pdev->dev), l3t_pmu); if (ret < 0) { dev_err(&pdev->dev, diff --git a/drivers/perf/hisilicon/hisi_uncore_lpddrc_pmu.c b/drivers/perf/hisilicon/hisi_uncore_lpddrc_pmu.c index b612203c9457a..462c33778d9fa 100644 --- a/drivers/perf/hisilicon/hisi_uncore_lpddrc_pmu.c +++ b/drivers/perf/hisilicon/hisi_uncore_lpddrc_pmu.c @@ -224,7 +224,7 @@ static int hisi_lpddrc_pmu_init_irq(struct hisi_pmu *lpddrc_pmu, }
ret = devm_request_irq(&pdev->dev, irq, hisi_lpddrc_pmu_isr, - IRQF_NOBALANCING | IRQF_NO_THREAD, + IRQF_NOBALANCING | IRQF_NO_THREAD | IRQF_SHARED, dev_name(&pdev->dev), lpddrc_pmu); if (ret < 0) { dev_err(&pdev->dev,