Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp475310rdh; Thu, 23 Nov 2023 08:55:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IFjeM+tgD0fE2zXp26aXiHr2M0MIeqZu1I0twiE32lCvEISEFrjhi3XFKQpQnLdSnuj8K7C X-Received: by 2002:a17:90b:17c1:b0:27d:2dde:5979 with SMTP id me1-20020a17090b17c100b0027d2dde5979mr81015pjb.5.1700758542809; Thu, 23 Nov 2023 08:55:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700758542; cv=none; d=google.com; s=arc-20160816; b=bP95y4XSwOWlgrKpkB5JAy/eD/9eWFqBlO5/nNtq5Ncn2VsrjX7XfhkC6ADssvhrlW ehgVPAXJPXnGRfMQnkOBShdQAaYtOP3ZLICHJB0VecHNdZXDKNIQ1GJ0CkUAOVBOA87c Q3eAYWwFUj/K791OZsZOenYpoQjnYUsngVIrbipZkd0K+8YBVsIk4u1Z7HtRSZBHzgf1 UCxA+fdW2ysLqE8EgK2odLM8YtUiucu4YH6wKJsPu/gjhyQ+JNe13UIeDjx0YjQDi/iM UYnkOrEW9BUHZ9UghV03KUbKeVKtewWOCyZH7zbY9e4ukZ862mUSzh3jHuhGFLwXEPQR yJbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=qLTCi0gQN9JcLKjDXwNBz13AnGPCd41C0W+dOPJGPkk=; fh=S/HXTnkEDUP6qiJPYaS9/8RSv0GgnekeVuTyagfaCxA=; b=oPZsLYVfPcULxBbkLKqVne3ctlgfURzseVy/uLO753Bpy9s2ubvhyNKQ2IxrgaMNES IZ3G1MyPdidt91IJiz1MIzEEH7higJ6ESI3tO9Dz5b4oXd55OUWIPnkjwsDWU2Ru2w0U 58eR7tf/XaLzht1BjN/4OXs1U0f56YIuXlGs5gt2wBWuKySk8TcYCztz7F1NzmpA+lHf 8CDeE7zKgqpgICqwY17BxX3mvu+TyuADlmyFA35G+gId/aB+kJj8CCrG5cqd52xq290P COQYG5sKd2zf9/jgE0LfRUZV7C0uulepT+SbY7G7bCTr6QmELCruwPCu2VaKiFmRTHVg RREw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id l3-20020a170902f68300b001c72dbaf7b9si1491791plg.415.2023.11.23.08.55.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 08:55:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 9B31980408D2; Thu, 23 Nov 2023 08:55:40 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229526AbjKWQzb (ORCPT + 99 others); Thu, 23 Nov 2023 11:55:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229462AbjKWQz3 (ORCPT ); Thu, 23 Nov 2023 11:55:29 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 821DD1A8 for ; Thu, 23 Nov 2023 08:55:36 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C38D2C433CB; Thu, 23 Nov 2023 16:55:33 +0000 (UTC) Date: Thu, 23 Nov 2023 16:55:31 +0000 From: Catalin Marinas To: Huang Shijie Cc: will@kernel.org, gregkh@linuxfoundation.org, rafael@kernel.org, arnd@arndb.de, mark.rutland@arm.com, broonie@kernel.org, keescook@chromium.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, patches@amperecomputing.com Subject: Re: [PATCH v3] arm64: irq: set the correct node for VMAP stack Message-ID: References: <20231118160205.3923-1-shijie@os.amperecomputing.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231118160205.3923-1-shijie@os.amperecomputing.com> X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 23 Nov 2023 08:55:40 -0800 (PST) On Sun, Nov 19, 2023 at 12:02:05AM +0800, Huang Shijie wrote: > diff --git a/drivers/base/arch_numa.c b/drivers/base/arch_numa.c > index eaa31e567d1e..90519d981471 100644 > --- a/drivers/base/arch_numa.c > +++ b/drivers/base/arch_numa.c > @@ -144,7 +144,7 @@ void __init early_map_cpu_to_node(unsigned int cpu, int nid) > unsigned long __per_cpu_offset[NR_CPUS] __read_mostly; > EXPORT_SYMBOL(__per_cpu_offset); > > -static int __init early_cpu_to_node(int cpu) > +int early_cpu_to_node(int cpu) > { > return cpu_to_node_map[cpu]; > } I don't think we need this change, let's make the arm64 init_irq_stacks() an __init function instead. > diff --git a/include/asm-generic/numa.h b/include/asm-generic/numa.h > index 1a3ad6d29833..16073111bffc 100644 > --- a/include/asm-generic/numa.h > +++ b/include/asm-generic/numa.h > @@ -35,6 +35,7 @@ int __init numa_add_memblk(int nodeid, u64 start, u64 end); > void __init numa_set_distance(int from, int to, int distance); > void __init numa_free_distance(void); > void __init early_map_cpu_to_node(unsigned int cpu, int nid); > +int early_cpu_to_node(int cpu); And add __init here. With these changes: Reviewed-by: Catalin Marinas Happy to take this patch through the arm64 tree if I get an ack from Greg or Rafael on the drivers/* change.