From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 81717221DA5; Mon, 15 Sep 2025 09:31:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757928665; cv=none; b=HV98ECYuyDFbUY+AduPuD9cj77gds9bh6mtUBRculIlOMLnYHDCByPOUpWy77pwg9+JRjFWu9pB6ByJb3kTNqDBFyJoC9b3YcFniEvm8CufZic/rGOL7CsbIyV+c/Be5pxuHgPwYxIa09Q9Iaj/FfOyU45+jeQKSoOaFsqjRikw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757928665; c=relaxed/simple; bh=UFhV/7AGyMsS824TQlWmd24PvS2Vmm4dlKYWw7YtZKc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=tjzZpTLtoLJVAgHAoEIUK0mJE0kXiZfUCuUgnWHrXEGENtt+H0NM5xaU5T2JhNy1cvn90hSoWTv+vB1hsK0uSxkwDTRqaGBHuMauwOjqFhrlXhEygGPL+56+iwUw9C+UiC0RCMRc//B/aMbT/KladaF613U3SvzuY63nAHkNP8s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9831E1063; Mon, 15 Sep 2025 02:30:54 -0700 (PDT) Received: from [10.1.35.47] (unknown [10.1.35.47]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 7BDB33F694; Mon, 15 Sep 2025 02:31:00 -0700 (PDT) Message-ID: Date: Mon, 15 Sep 2025 10:30:59 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 07/25] coresight: trbe: Convert to new IRQ affinity retrieval API Content-Language: en-GB To: Marc Zyngier , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org Cc: Thomas Gleixner , Mark Rutland , Will Deacon , "Rafael J. Wysocki" , Rob Herring , Saravana Kannan , Greg Kroah-Hartman , Sven Peter , Janne Grunau , James Clark References: <20250915085702.519996-1-maz@kernel.org> <20250915085702.519996-8-maz@kernel.org> From: Suzuki K Poulose In-Reply-To: <20250915085702.519996-8-maz@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 Assuming this goes via irqchip tree, Acked-by: Suzuki K Poulose > --- > 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)