From: Mark Rutland <mark.rutland@arm.com>
To: Jing Zhang <renyu.zj@linux.alibaba.com>
Cc: linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
Will Deacon <will@kernel.org>,
Shuai Xue <xueshuai@linux.alibaba.com>
Subject: Re: [PATCH] drivers/perf: Fix ali_drw_pmu driver interrupt status clearing
Date: Tue, 20 Aug 2024 10:18:46 +0100 [thread overview]
Message-ID: <ZsRfdn58mPLRIfVk@J2N7QTR9R3> (raw)
In-Reply-To: <1724068110-45239-1-git-send-email-renyu.zj@linux.alibaba.com>
On Mon, Aug 19, 2024 at 07:48:30PM +0800, Jing Zhang wrote:
> The alibaba_uncore_pmu driver forgot to clear all interrupt status
> in the interrupt processing function. After the PMU counter overflow
> interrupt occurred, an interrupt storm occurred, causing the system
> to hang.
>
> Therefore, clear the correct interrupt status in the interrupt handling
> function to fix it.
>
> Signed-off-by: Jing Zhang <renyu.zj@linux.alibaba.com>
Presumably this should have
Fixes: cf7b61073e4526ca ("drivers/perf: add DDR Sub-System Driveway PMU driver for Yitian 710 SoC")
... right?
With that:
Acked-by: Mark Rutland <mark.rutland@arm.com>
Mark.
> ---
> drivers/perf/alibaba_uncore_drw_pmu.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/perf/alibaba_uncore_drw_pmu.c b/drivers/perf/alibaba_uncore_drw_pmu.c
> index 38a2947..c6ff1bc 100644
> --- a/drivers/perf/alibaba_uncore_drw_pmu.c
> +++ b/drivers/perf/alibaba_uncore_drw_pmu.c
> @@ -400,7 +400,7 @@ static irqreturn_t ali_drw_pmu_isr(int irq_num, void *data)
> }
>
> /* clear common counter intr status */
> - clr_status = FIELD_PREP(ALI_DRW_PMCOM_CNT_OV_INTR_MASK, 1);
> + clr_status = FIELD_PREP(ALI_DRW_PMCOM_CNT_OV_INTR_MASK, status);
> writel(clr_status,
> drw_pmu->cfg_base + ALI_DRW_PMU_OV_INTR_CLR);
> }
> --
> 1.8.3.1
>
next prev parent reply other threads:[~2024-08-20 9:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-19 11:48 [PATCH] drivers/perf: Fix ali_drw_pmu driver interrupt status clearing Jing Zhang
2024-08-19 12:25 ` Shuai Xue
2024-08-20 9:18 ` Mark Rutland [this message]
2024-08-21 2:20 ` Jing Zhang
2024-08-22 3:33 ` [PATCH v2] " Jing Zhang
2024-08-22 9:44 ` Mark Rutland
2024-08-23 17:02 ` Will Deacon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZsRfdn58mPLRIfVk@J2N7QTR9R3 \
--to=mark.rutland@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=renyu.zj@linux.alibaba.com \
--cc=will@kernel.org \
--cc=xueshuai@linux.alibaba.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.