Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5234176rdb; Wed, 13 Dec 2023 03:02:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IEh7mJg6eE7cjSjJ8qQeOO8aTrXIW5Gn9l36YPPpfEl53G08khLk48HQcHMfdJItQG8H15h X-Received: by 2002:a05:6359:4114:b0:170:bfb9:1cfc with SMTP id kh20-20020a056359411400b00170bfb91cfcmr4179208rwc.1.1702465346322; Wed, 13 Dec 2023 03:02:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702465346; cv=none; d=google.com; s=arc-20160816; b=g7Nz9zgYfxqOixeBpbAX0NB6CuZFZCGqFbkcDN4KUi5hZGf6Km6ECT4E52WCSoGK3K J5tjE5orEheJxCfCWitUkbmmgSuGn6PgQYrruwjgTNK3oIT7PEiTd/P3syIC2zZ1/Z5u zaxiMKfp/leoKg+vWpY2/kkcS9/qy0tVJZ4pf0dzsNi5Oy84GexAPT5zVgQcceVbkE2b aE/pMkbWy8HOHJrZfwwjjStJEiq8V7F6htPeJ6VcU2z8jzSxLw1fVH3kO4QY/lC64m/K RSNHU2fBsQml8mv1amfjQ4BjMP6gpcLB5ztlLaYsV0BYdR+pE5cYAxQ2/KpfLw52stQb YELg== 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=uYvad18ULzgRpB+F0tyS35x76SAecWGGNiK3gOA4BbM=; fh=KEbFbVQaBDMLa8ZdWbrdzDRWGzN3/cLqIcRZMmSRfyU=; b=GCb6usEXF5qAPQ1seW9pVDJEBAG91KwZnXDrTcIaiwvv0LZ2EJHi+QCO4mUHQHGoH+ WCje9NVKnzp/jsbxC4utwtAwDOcPaf5nFDP1VgwBHSKmnB48xggG9vY8jNQVvuFwHe2w Ebp5dfYH+cOOLYraRGLsVFKdLDHF/Qwr4ech/CLWdxITpNQuylynTlv8cn6dIsnrwiuU 5gxAJYdOeHHBrRcz6hEYADG9715WuVAZuQBGwhjT1s49yDyzeqdutXYse/u/YdaNHCLy 8e5ORa8i9SDSyOz+U9y3MK9iL/mmL1DndA2s1jDeCPWDDhRP616KP8eC+i8xWcccLLSf FjCQ== 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:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id t11-20020a17090abc4b00b0028ad5886876si1631918pjv.83.2023.12.13.03.02.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 03:02:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id BD3D98177322; Wed, 13 Dec 2023 03:02:22 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378431AbjLMLBy (ORCPT + 99 others); Wed, 13 Dec 2023 06:01:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378316AbjLMLBw (ORCPT ); Wed, 13 Dec 2023 06:01:52 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B9B210F for ; Wed, 13 Dec 2023 03:01:58 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 11D4FC433C8; Wed, 13 Dec 2023 11:01:56 +0000 (UTC) Date: Wed, 13 Dec 2023 11:01:54 +0000 From: Catalin Marinas To: Huang Shijie Cc: patches@amperecomputing.com, will@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm64: irq: set the correct node for shadow call stack Message-ID: References: <20231213012046.12014-1-shijie@os.amperecomputing.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231213012046.12014-1-shijie@os.amperecomputing.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,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 pete.vger.email 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 (pete.vger.email [0.0.0.0]); Wed, 13 Dec 2023 03:02:22 -0800 (PST) On Wed, Dec 13, 2023 at 09:20:46AM +0800, Huang Shijie wrote: > The init_irq_stacks() has been changed to use the correct node: > https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git/commit/?id=75b5e0bf90bf > > The init_irq_scs() has the same issue with init_irq_stacks(): > cpu_to_node() is not initialized yet, it does not work. > > This patch uses early_cpu_to_node() to set the init_irq_scs() > with the correct node. > > Signed-off-by: Huang Shijie Reviewed-by: Catalin Marinas