Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1819239rwd; Mon, 15 May 2023 03:35:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6gIJVDl2LQPX3/fWFmxxK8VKRUMh12YPtSqlTICMHWjjnybl5NQhOV5GLX+QhopRrFHV4u X-Received: by 2002:a17:90b:807:b0:252:f526:c0c5 with SMTP id bk7-20020a17090b080700b00252f526c0c5mr3659242pjb.43.1684146953145; Mon, 15 May 2023 03:35:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684146953; cv=none; d=google.com; s=arc-20160816; b=v6OMIOCOr/bTkkkzLkvJcXux5+tVpBEZH3pVMa/mNAW47zV8NtZPDbsofAuemln5tf tqzUY6NojuCIUOjTcisiRmvxeXwzcLN6Co4Hfkpmd2enTCD8NQ+GRLloWe5e8lInsLtq DUzoFW7logB4t2CODkXWm2c9x/49F4Waoq4IVX0BqU5f6joAoxFIoUE+Sp3pydh3eZLG jVK+wyNe8jRF+3f0eWSwcMlqH4gX9eAOpBkbg2CFKTjacEO5afbIJCFyCg8+gLuPvida 79SiFsOK7RT6k8OnoSy+4inwGV9nC1YzYIKE38JBZrPNjCMvWVrgZDMh0llz+GZ+1Rnk iMiw== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=vquRR2xg2mUWwJhSCSqfcs1YyVV7iN6bUPd5yrCcyxU=; b=cAMqhUu6m1nGBtKVhLTXznIMFsPzc61sqCKtnk3UNBThRsHV/2cPXuLyiYhEkjoXzj cbCV4kkQ+bQP5uNmLyMiIuXizjv71HdQj3zRPq6oX89klMTxbZWxdjN/KqI92xNJrckj 6VOZtdlkFamkUwTFVqB8hM2r5u1QY62MAYjBD16QNkz512JdI7usfdTT+ZfeAFGUrkNS 6KHvC9s3VpE3Gb8VqMXqdbwGq72920G2POMzZB1OL5FEQWBFeuJ5yD8I+1nPG07I3k7p P42KWQRrUp82cBYX+7WamXOqB+KVn5GcbWtG4NFcqR0eBEsIJLlBAHS66V2h9eunRo/G 5DHQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s28-20020a63af5c000000b00530b7eca08esi5237359pgo.340.2023.05.15.03.35.38; Mon, 15 May 2023 03:35:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240979AbjEOKIp (ORCPT + 99 others); Mon, 15 May 2023 06:08:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240413AbjEOKI0 (ORCPT ); Mon, 15 May 2023 06:08:26 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3CD781FE2; Mon, 15 May 2023 03:08:16 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 765DB2F4; Mon, 15 May 2023 03:09:00 -0700 (PDT) Received: from bogus (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id CFD0E3F67D; Mon, 15 May 2023 03:08:12 -0700 (PDT) Date: Mon, 15 May 2023 11:08:10 +0100 From: Sudeep Holla To: Ayan Kumar Halder Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, geert+renesas@glider.be, magnus.damm@gmail.com, konrad.dybcio@linaro.org, andersson@kernel.org, mazziesaccount@gmail.com, conor.dooley@microchip.com, j@jannau.net, mailingradian@gmail.com, me@iskren.info, lpieralisi@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-renesas-soc@vger.kernel.org, Julien Grall , Stefano Stabellini , Michal Orzel , Sudeep Holla , Michal Simek Subject: Re: Need suggestions for smp related properties in cpus.yaml to support smpboot for cortex-r52 based platform Message-ID: <20230515100810.ctebdbqlienbcf7t@bogus> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,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 On Thu, May 11, 2023 at 10:35:37AM +0100, Ayan Kumar Halder wrote: > Hi Device Tree engineers, > > Recently I have ported Xen on Cortex-R52 (AArch32-V8R processor) for our AMD > platform. > I remember that there was some exploration on feasibility of using PSCI here. What happened to that ? Any summary why that was dropped ? > I was discussing with xen-devel community about how we can properly support > smpboot when I was suggested that this might be the correct forum for > discussion. > > Please refer > https://lists.xenproject.org/archives/html/xen-devel/2023-05/msg00224.html > and the follow-ups for context. > > > The way smpboot works on our platform is as follows:- > > 1. core0 writes to register (say regA) the address of the secondary core > initialization routine. > > 2. core0 writes to another register (say regB) the value "0x1" to put the > secondary core in reset mode. > > 3. core0 writes to regB the value "0x0" to pull the secondary core out of > reset mode. > > regA, regB will differ for core1, core2, core3 and so on. > Sounds OK but will you ever need to support power management on these cores ? If so, just start with PSCI or provide reasons as why it doesn't fit well before exploring and extending the existing spin table bindings. > > Currently, I am trying to bringup core1 only. > > > I am thinking to use "enable-method=spin-table" in the cpu node for core1.? > So that I can use "cpu-release-address" for regA. > > For regB, I am thinking of introducing a new property "amd-cpu-reset-addr" > in the cpu node. > > Please let me know your thoughts on this approach. I am also open to any > alternative suggestions. > > > Also I see that in https://elixir.bootlin.com/linux/v6.4-rc1/source/Documentation/devicetree/bindings/arm/cpus.yaml#L87 > , "arm,cortex-r52" is missing. > Yes that should be fine IMO. > Can I submit a patch (a one line change) to add this ? > Of course, it makes it easy to accept or reject rather than this question hidden as part of other discussion. -- Regards, Sudeep