Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1227181rwr; Wed, 26 Apr 2023 11:46:00 -0700 (PDT) X-Google-Smtp-Source: AKy350bie5te87GtSlkOEZtE8Pw1bhivmTE+PRsYOb4+6wCAnEelA0zkQJTObrWtmk5HkUXq1pDv X-Received: by 2002:a05:6a20:394f:b0:f1:1ab5:5076 with SMTP id r15-20020a056a20394f00b000f11ab55076mr9074888pzg.2.1682534760070; Wed, 26 Apr 2023 11:46:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682534760; cv=none; d=google.com; s=arc-20160816; b=HGSG526jvbqB6oLFzIEwnlDNFEIGLk00U603mc2apc3QARiX7jNVCIT7fBT36UW+ZW 6rbzXuFFc4UUFmmHMXZ2wRUvvcXEhqATWmeXKzUsqK42QdQi2Y4kLL+9KFgfhSm/Sc99 R14UOKCOnHqS2pmJwHUDihcir9mKJT9E4E/ycdMPlbsoLzUcB3fhMt+ZGV8cTRROYuF4 Xal5hZyxZL71q4sY4xFdTBgP1QKR252kj0MjwQJp2bnt+KocFDNFCkeryOBVyaG/fsBI yTXmdoH5nxmqvgTP3RE3Yq+DDDSYC39YrHozHaGaguz95uP3/hzK5V1sh6n2vDbzvK+/ MhEA== 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 :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=lXwqrHaYzKo2yrBADgB5WqZEnPYQ+1SHT4/YEIm6rfk=; b=0QcVO+vF+ytPIWcziQsx9PXZpRBnidLEM/xEJcimB3G5Y1URohNv7AhYrilKdXy930 zSirTAMdbjz+OBiSS6ZDiDwQfHYqPShwIbkvtmNNEoKqrt9/3TgoHmyg6+w/Ns1OT8Sh QpG70khpGKYEDqb+utuyI0KPpFEXcpbcQszRCq0QDxGtwLptMM/xOo+OJ3egy4bubE/V nI4OZp3Lco+3aW9bVFosbvlWCtxcLyk/EZOLqTJRoiZDpSYmw1AKNc43IfntBH7t2cDN KwcxKkEvOnq3ur54k5k4SzcZLu3GSli9rJ/X+a/dhWDY3b/W+R3EaRXpvmpNVlNXfqdu sSbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20221208.gappssmtp.com header.s=20221208 header.b=yxmeIMM7; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c66-20020a621c45000000b0063b86d1e1dfsi16389127pfc.109.2023.04.26.11.45.47; Wed, 26 Apr 2023 11:46:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@dabbelt-com.20221208.gappssmtp.com header.s=20221208 header.b=yxmeIMM7; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236317AbjDZSpa (ORCPT + 99 others); Wed, 26 Apr 2023 14:45:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236147AbjDZSpZ (ORCPT ); Wed, 26 Apr 2023 14:45:25 -0400 Received: from mail-pf1-x436.google.com (mail-pf1-x436.google.com [IPv6:2607:f8b0:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40C5383E1 for ; Wed, 26 Apr 2023 11:45:05 -0700 (PDT) Received: by mail-pf1-x436.google.com with SMTP id d2e1a72fcca58-63b5fca48bcso6182342b3a.0 for ; Wed, 26 Apr 2023 11:45:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20221208.gappssmtp.com; s=20221208; t=1682534704; x=1685126704; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:from:to:cc:subject:date:message-id :reply-to; bh=lXwqrHaYzKo2yrBADgB5WqZEnPYQ+1SHT4/YEIm6rfk=; b=yxmeIMM7AqMrYpjTPhdJvmtkQFPvan9NpmCeQGiyWsJ8rAwTZOYkEjw1ULTCzu/UY/ p+JxxPb6kjDGYGiZE6rGIf6FxsOeVd1XHZhjjQ2Jt4srKtvhvz1BgV7n0RYa9HqX5Tcx pGupfUA0qbgmg2dhyuu0IoXpUgUMTMKispsGRNr4cTt3RXtSfFdnWYxRuJLLfAaqJWoC gcJZez6b6z+kNe50a27vXIEmYxCHZZVP7PtZAOjCK4mZPRQPvsgg+f+Nw5U9T8Kk4QnF iZ//DRkyY1yc2h8A7CQpRKuOXCl1fQrYYoUeWxtQK3nHGckqos7RLKXsKDV8iBrIiaXZ XfOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682534704; x=1685126704; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=lXwqrHaYzKo2yrBADgB5WqZEnPYQ+1SHT4/YEIm6rfk=; b=ePS5TC8ro9YwIsJHepVicjbFGVbEU1i4oLFx2AHqC3e1kWm/6rddvi/jg+5tTjb0+I 8pcZahZ/l7HKE4CNBxxlWDeeb8Bus33JegDKEiXREesA9K+wCFy6ill5Jy3PX1zJzqax VVFL4pgM97tO2VwBPmlEIuGTR/Mk288jbUIC9w8d+SnTdMsZp1YowTFPf/6hd4+iCjzb y02Z5Hcv5FGSdRvx6Hys+0oIchotRLnC4CnB+4H4X8xrANRnszYfmx8QcH3BIFlz5N+9 Rjo3qKr8kbWpIZzlFV3vX0NjKWPoVlSTRLq2gAkRddRcV81JAHhp6cLnGeJE5XOJS8AL +dag== X-Gm-Message-State: AC+VfDw42CZycPW0mwG6o3JLX/nS9znZmF3BJP4UByMNRzU7pf1J+RlY cOkzi5ppvdPifw4ei2GKA56XnA== X-Received: by 2002:a17:902:f682:b0:1a9:9929:face with SMTP id l2-20020a170902f68200b001a99929facemr5189336plg.34.1682534704484; Wed, 26 Apr 2023 11:45:04 -0700 (PDT) Received: from localhost ([50.221.140.188]) by smtp.gmail.com with ESMTPSA id 21-20020a170902ee5500b001a0763fa8d6sm10257455plo.98.2023.04.26.11.45.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Apr 2023 11:45:03 -0700 (PDT) Date: Wed, 26 Apr 2023 11:45:03 -0700 (PDT) X-Google-Original-Date: Wed, 26 Apr 2023 11:44:26 PDT (-0700) Subject: Re: [PATCH V4 10/23] RISC-V: smpboot: Create wrapper smp_setup() In-Reply-To: <20230404182037.863533-11-sunilvl@ventanamicro.com> CC: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-acpi@vger.kernel.org, linux-crypto@vger.kernel.org, platform-driver-x86@vger.kernel.org, llvm@lists.linux.dev, corbet@lwn.net, Paul Walmsley , aou@eecs.berkeley.edu, lenb@kernel.org, daniel.lezcano@linaro.org, tglx@linutronix.de, qianweili@huawei.com, wangzhou1@hisilicon.com, herbert@gondor.apana.org.au, Marc Zyngier , luzmaximilian@gmail.com, hdegoede@redhat.com, markgross@kernel.org, nathan@kernel.org, ndesaulniers@google.com, trix@redhat.com, rafael@kernel.org, davem@davemloft.net, sunilvl@ventanamicro.com, rafael.j.wysocki@intel.com, Conor Dooley , ajones@ventanamicro.com From: Palmer Dabbelt To: sunilvl@ventanamicro.com Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,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-crypto@vger.kernel.org On Tue, 04 Apr 2023 11:20:24 PDT (-0700), sunilvl@ventanamicro.com wrote: > smp_setup() currently assumes DT-based platforms. To enable ACPI, > first make this a wrapper function and move existing code to > a separate DT-specific function. > > Signed-off-by: Sunil V L > Acked-by: Rafael J. Wysocki > Reviewed-by: Conor Dooley > Reviewed-by: Andrew Jones > --- > arch/riscv/kernel/smpboot.c | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > > diff --git a/arch/riscv/kernel/smpboot.c b/arch/riscv/kernel/smpboot.c > index 00b53913d4c6..26214ddefaa4 100644 > --- a/arch/riscv/kernel/smpboot.c > +++ b/arch/riscv/kernel/smpboot.c > @@ -70,7 +70,7 @@ void __init smp_prepare_cpus(unsigned int max_cpus) > } > } > > -void __init setup_smp(void) > +static void __init of_parse_and_init_cpus(void) > { > struct device_node *dn; > unsigned long hart; > @@ -116,6 +116,11 @@ void __init setup_smp(void) > } > } > > +void __init setup_smp(void) > +{ > + of_parse_and_init_cpus(); > +} > + > static int start_secondary_cpu(int cpu, struct task_struct *tidle) > { > if (cpu_ops[cpu]->cpu_start) Reviewed-by: Palmer Dabbelt