[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ef6ac601-22a6-48f6-98d7-32ff93a2d21e@arm.com>
Date: Mon, 15 Sep 2025 10:30:59 +0100
From: Suzuki K Poulose <suzuki.poulose@....com>
To: Marc Zyngier <maz@...nel.org>, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-acpi@...r.kernel.org
Cc: Thomas Gleixner <tglx@...utronix.de>, Mark Rutland
<mark.rutland@....com>, Will Deacon <will@...nel.org>,
"Rafael J. Wysocki" <rafael@...nel.org>, Rob Herring <robh@...nel.org>,
Saravana Kannan <saravanak@...gle.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>, Sven Peter
<sven@...nel.org>, Janne Grunau <j@...nau.net>,
James Clark <james.clark@...aro.org>
Subject: Re: [PATCH v2 07/25] coresight: trbe: Convert to new IRQ affinity
retrieval API
On 15/09/2025 09:56, Marc Zyngier wrote:
> Now that the relevant interrupt controllers are equipped with
> a callback returning the affinity of per-CPU interrupts, switch
> the TRBE driver over to this new method.
>
> Signed-off-by: Marc Zyngier <maz@...nel.org>
Assuming this goes via irqchip tree,
Acked-by: Suzuki K Poulose <suzuki.poulose@....com>
> ---
> drivers/hwtracing/coresight/coresight-trbe.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/hwtracing/coresight/coresight-trbe.c b/drivers/hwtracing/coresight/coresight-trbe.c
> index 8267dd1a2130d..c512f8faa6012 100644
> --- a/drivers/hwtracing/coresight/coresight-trbe.c
> +++ b/drivers/hwtracing/coresight/coresight-trbe.c
> @@ -1472,9 +1472,10 @@ static void arm_trbe_remove_cpuhp(struct trbe_drvdata *drvdata)
> static int arm_trbe_probe_irq(struct platform_device *pdev,
> struct trbe_drvdata *drvdata)
> {
> + const struct cpumask *affinity;
> int ret;
>
> - drvdata->irq = platform_get_irq(pdev, 0);
> + drvdata->irq = platform_get_irq_affinity(pdev, 0, &affinity);
> if (drvdata->irq < 0) {
> pr_err("IRQ not found for the platform device\n");
> return drvdata->irq;
> @@ -1485,8 +1486,7 @@ static int arm_trbe_probe_irq(struct platform_device *pdev,
> return -EINVAL;
> }
>
> - if (irq_get_percpu_devid_partition(drvdata->irq, &drvdata->supported_cpus))
> - return -EINVAL;
> + cpumask_copy(&drvdata->supported_cpus, affinity);
>
> drvdata->handle = alloc_percpu(struct perf_output_handle *);
> if (!drvdata->handle)
Powered by blists - more mailing lists