Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp980323pxb; Wed, 6 Apr 2022 05:57:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwww6BGpcpoRazUUUuiD1RiNriBX+vlvFZopICUWh1f1APb6rcagQe9Leu1tivHIV7edTe5 X-Received: by 2002:a17:902:ab8b:b0:156:16c0:dc6d with SMTP id f11-20020a170902ab8b00b0015616c0dc6dmr8555442plr.147.1649249852496; Wed, 06 Apr 2022 05:57:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649249852; cv=none; d=google.com; s=arc-20160816; b=tlIwmngMEcatLiAF64lH/MhgauoRihE4bwuAeWVZhDOLbHZJCuwEtY3KTFMMwpoZhb qcm7jG8L8IqSKz8OK+wtoZKlMY0+zzsDwnT85J0EG4lyCfXpTdarHweyd5zv72jQdxi0 QAGeocl8gqq9AjFKsqr5RmAhXGAFtfRzAP5zb2Es20tfh2Sue/nwvigSO0Q3mxc/IfDP UBl0tZ3szgTGSSMbgxhs2Ei6TXaKEls882bEx8mOCi7VEOC1Pfd06XXtJaSU6ldfp1WP 6bZwMkd7hO1Ogi0VgYYTOlzjXhOkIV92+1+Ci5hb7cfHQgdcOFmT7Kt9znbUhO/JcurR Aaag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=KRMi6spkiA+PGaxeBOSbe8+n6eQ9ywcY8L4MfcP3KKg=; b=b+0uB0xjJyA+WHSwm0z4Z8ah6mck6LQeWiRyMEQj5LLnRifZlfft7HJCXfe4jyRGnQ vcLW2SWaeHW8ebGqb5wpZGCCFU3arJFivH9cezMA3fyF7X8dmNZ/QV8rE7aBSzKCMMy3 fxYGlUI5AAij5Z3FJq1raVd95fbVkSPall4+vJ5UW5wPOuM05elQMBMULZxvA7X4GVXp YQDfOEm8iaVyWPhYhI1fPYF2yWb9qC9tJgv4GgGkPNyS81Q16hdk4q6IGEPNYKC/MpVI 1nQditRTKMGNIE4C/5QMRscvzjBIoKEasUrri4g1qqe7AvNc9YLreLArXdHXpWuTggis rF8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ftuf1iTn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id k3-20020a6568c3000000b003816043f01dsi16316868pgt.530.2022.04.06.05.57.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 05:57:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ftuf1iTn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 55CE94EFB77; Wed, 6 Apr 2022 03:07:29 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232151AbiDEVjw (ORCPT + 99 others); Tue, 5 Apr 2022 17:39:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1573312AbiDESwp (ORCPT ); Tue, 5 Apr 2022 14:52:45 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7259B1AAB for ; Tue, 5 Apr 2022 11:50:46 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 27FB1618E1 for ; Tue, 5 Apr 2022 18:50:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 81310C385A7; Tue, 5 Apr 2022 18:50:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649184645; bh=SEYzK4vSPeMJtzy43JQGZXAJd12jPg80CMxvL3TbA+w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ftuf1iTnz8Nu5ZYDyk8s11y7iQSVnmZXMjBWjZkkG+vjWMk+7bJATzu15mgn0PQPN c7WdUa//KVMOS/YfTc5PpI3Fs3Of6n8MCsI/AAMODdDuo4m88I0tklSSIkFOr9pUKp zjJuNazMQLa4iMionLKyXyV3Rk6Haa8ZNHlf9GOvAuFhNT7aQ2ChjU8CoVO+zIZYLS tqEpjwrlwwaIBXdeQ8TJmdAbpj4M7J/naaKnah3PHJIwmrvmfNR0CnHb18iNEoW6bO Y17bP3EuCu908PqsT/LplVGE/crve5mY7xNBBXisSKQFOg8FiZNoK99SU5QVo8NpD6 gJxk7Z1YyKTug== Received: from sofa.misterjones.org ([185.219.108.64] helo=why.lan) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nboGJ-001tpg-Fx; Tue, 05 Apr 2022 19:50:43 +0100 From: Marc Zyngier To: linux-kernel Cc: Thomas Gleixner , John Garry , Xiongfeng Wang , David Decotigny Subject: [PATCH v3 3/3] irqchip/gic-v3: Always trust the managed affinity provided by the core code Date: Tue, 5 Apr 2022 19:50:40 +0100 Message-Id: <20220405185040.206297-4-maz@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220405185040.206297-1-maz@kernel.org> References: <20220405185040.206297-1-maz@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: linux-kernel@vger.kernel.org, tglx@linutronix.de, john.garry@huawei.com, wangxiongfeng2@huawei.com, ddecotig@google.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 cd772973114a..2656efd5d2b6 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) && -- 2.34.1