[PATCH v2 20/25] coresight: trbe: Request specific affinities for percpu IRQ

Marc Zyngier posted 25 patches 2 weeks, 3 days ago
There is a newer version of this series
[PATCH v2 20/25] coresight: trbe: Request specific affinities for percpu IRQ
Posted by Marc Zyngier 2 weeks, 3 days ago
Let the TRBE driver request IRQs with an affinity mask matching
the TRBE implementation affinity.

Signed-off-by: Marc Zyngier <maz@kernel.org>
---
 drivers/hwtracing/coresight/coresight-trbe.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/hwtracing/coresight/coresight-trbe.c b/drivers/hwtracing/coresight/coresight-trbe.c
index c512f8faa6012..4a84a6bc2e8fc 100644
--- a/drivers/hwtracing/coresight/coresight-trbe.c
+++ b/drivers/hwtracing/coresight/coresight-trbe.c
@@ -1492,7 +1492,8 @@ static int arm_trbe_probe_irq(struct platform_device *pdev,
 	if (!drvdata->handle)
 		return -ENOMEM;
 
-	ret = request_percpu_irq(drvdata->irq, arm_trbe_irq_handler, DRVNAME, drvdata->handle);
+	ret = request_percpu_irq_affinity(drvdata->irq, arm_trbe_irq_handler, DRVNAME,
+					  affinity, drvdata->handle);
 	if (ret) {
 		free_percpu(drvdata->handle);
 		return ret;
-- 
2.39.2
Re: [PATCH v2 20/25] coresight: trbe: Request specific affinities for percpu IRQ
Posted by Suzuki K Poulose 2 weeks, 3 days ago
On 15/09/2025 09:56, Marc Zyngier wrote:
> Let the TRBE driver request IRQs with an affinity mask matching
> the TRBE implementation affinity.
> 
> Signed-off-by: Marc Zyngier <maz@kernel.org>
> ---
>   drivers/hwtracing/coresight/coresight-trbe.c | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/hwtracing/coresight/coresight-trbe.c b/drivers/hwtracing/coresight/coresight-trbe.c
> index c512f8faa6012..4a84a6bc2e8fc 100644
> --- a/drivers/hwtracing/coresight/coresight-trbe.c
> +++ b/drivers/hwtracing/coresight/coresight-trbe.c
> @@ -1492,7 +1492,8 @@ static int arm_trbe_probe_irq(struct platform_device *pdev,
>   	if (!drvdata->handle)
>   		return -ENOMEM;
>   
> -	ret = request_percpu_irq(drvdata->irq, arm_trbe_irq_handler, DRVNAME, drvdata->handle);
> +	ret = request_percpu_irq_affinity(drvdata->irq, arm_trbe_irq_handler, DRVNAME,
> +					  affinity, drvdata->handle);
>   	if (ret) {
>   		free_percpu(drvdata->handle);
>   		return ret;


Acked-by: Suzuki K Poulose <suzuki.poulose@arm.com>