From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 24E4CC433EF for ; Sun, 10 Apr 2022 19:13:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241222AbiDJTPU (ORCPT ); Sun, 10 Apr 2022 15:15:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233987AbiDJTPO (ORCPT ); Sun, 10 Apr 2022 15:15:14 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9313860CFF; Sun, 10 Apr 2022 12:13:02 -0700 (PDT) Date: Sun, 10 Apr 2022 19:12:59 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1649617980; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/hYOyxSs+As8A65cCK/of3PWJ1BayHM6HW6k86JAhlA=; b=dA2l+0haX40Je1PFmx+RoCp+pH5LKNpzceRKEDApQMVJwEZQ8wDIAi5ofyQsw3K7FmtJMC IN1Y9aq9kkYdUYejhwiNq2D/ctewnSJ90hj8deLCdMDESy1HNGgNhzkTlFhqEagbsx3Y55 Jy7dAAtpowJtXaB4lfIIs+9vfC1ODBs/mxxj9IkffOpK/uCbhInYBIjbUaWDyd1wiYiIie I3yYzVC1Y60b1aiV3ntbYuY3ZPQ+4mzGeDWk77b06OqlWYWj+tJmS/DoFX0srb6vkP1caS VNqe3ug4T2v+yWhbhSt7WgWtDLRibbpYDV6B7B+6e71t8kZQ9H1CwuvFDvt1xA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1649617980; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/hYOyxSs+As8A65cCK/of3PWJ1BayHM6HW6k86JAhlA=; b=XPAPxixb6k3uZbbMTBxcR9OonFCSuSqAffrdq/FMMMHWa/B7BNbP8HMiY0M4WcsaeBjdjL eJzh0KZm0heUIbCg== From: "tip-bot2 for Marc Zyngier" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/core] irqchip/gic-v3: Always trust the managed affinity provided by the core code Cc: Marc Zyngier , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20220405185040.206297-4-maz@kernel.org> References: <20220405185040.206297-4-maz@kernel.org> MIME-Version: 1.0 Message-ID: <164961797902.4207.18196570030635135623.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the irq/core branch of tip: Commit-ID: 3f893a5962d31c0164efdbf6174ed0784f1d7603 Gitweb: https://git.kernel.org/tip/3f893a5962d31c0164efdbf6174ed0784f1d7603 Author: Marc Zyngier AuthorDate: Tue, 05 Apr 2022 19:50:40 +01:00 Committer: Thomas Gleixner CommitterDate: Sun, 10 Apr 2022 21:06:30 +02:00 irqchip/gic-v3: Always trust the managed affinity provided by the core code Now that the core code has been fixed to always give us an affinity that only includes online CPUs, directly use this affinity when computing a target CPU. Signed-off-by: Marc Zyngier Signed-off-by: Thomas Gleixner Link: https://lore.kernel.org/r/20220405185040.206297-4-maz@kernel.org --- drivers/irqchip/irq-gic-v3-its.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c index cd77297..2656efd 100644 --- a/drivers/irqchip/irq-gic-v3-its.c +++ b/drivers/irqchip/irq-gic-v3-its.c @@ -1624,7 +1624,7 @@ static int its_select_cpu(struct irq_data *d, cpu = cpumask_pick_least_loaded(d, tmpmask); } else { - cpumask_and(tmpmask, irq_data_get_affinity_mask(d), cpu_online_mask); + cpumask_copy(tmpmask, aff_mask); /* If we cannot cross sockets, limit the search to that node */ if ((its_dev->its->flags & ITS_FLAGS_WORKAROUND_CAVIUM_23144) &&