Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp8544245rwr; Thu, 11 May 2023 02:50:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7ufUYYufePhwJdlkACOESvPlZHsksRKDA2ON0BB4I8MuQToZQyi4DUUijtTQVdEa+bY2mx X-Received: by 2002:a17:902:ea0f:b0:1a6:fe25:412b with SMTP id s15-20020a170902ea0f00b001a6fe25412bmr25322192plg.26.1683798652978; Thu, 11 May 2023 02:50:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1683798652; cv=pass; d=google.com; s=arc-20160816; b=wi5TwK9LPp30ehXgdY0vbt0/RU9DdLT1w+RD88hCkW/yXlagLXQdyszX9JgtzBCwzN cApkblYFXVH+9B5/1YFECUc83SjWUvprvyPJtGCyW4+XzHpYu+y6lGPJILzKkM2U5CFW Wamhf0ZRWwp0vhuhJ2m/T724o03B953k7OhLl8aSIJVEs2ZcoX7CYB7P2bZCMd/DiYfA K364MWsHGtlh9QTy7AQVaCcAS9/pX6UNQrH22ch8FgfJFXLnQw1hbaBFmzuSFBKXuVCu cozvM3QDggRBleRH4Xb+b6msiN4Z1E2MgwG8l+7IK0nsm3pUV4pIhr03tPTwGb9CuQ1q J7bg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding:cc:to :subject:from:user-agent:date:message-id:dkim-signature; bh=DWSYvHK7vKIdO64Z0gZ2dZPsjAtDaq3s+yYvNUfc5d0=; b=qbfUPTlH762CJJauYjqM4kDvANZGLxQqxGg09LIE5u0zWmgBBcalW/CVyuisjRhccs uEGYRAvXm1YicuYUrRIhZjw6TWM6wpz76AeWRZJoOyjng2OetGPpCNwyv0riaMUKUy3I fCMEz3cZBoqqmLumvTdY3Ehdlz83D8kzXOvNeTdAIPauXxeSWIDyow6+n2Tcm/FMIHHi yNTZXWOzlwen3wUv1786KY0t6NWOgDJ6WpfYdJCm7uTr0GbcZYCYnuHKhKmFhMw6JI4+ uXgwsgd3rTmDlI+4tIMYzXvHDPekQuT6njG4eHqwnkfC2k0dbO3fI67pFDowIt8gC9K1 6slw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=gTXNxnEh; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z1-20020a170902708100b0019f25dae4f5si6092991plk.198.2023.05.11.02.50.41; Thu, 11 May 2023 02:50:52 -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; dkim=pass header.i=@amd.com header.s=selector1 header.b=gTXNxnEh; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237745AbjEKJgQ (ORCPT + 99 others); Thu, 11 May 2023 05:36:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237590AbjEKJgB (ORCPT ); Thu, 11 May 2023 05:36:01 -0400 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2080.outbound.protection.outlook.com [40.107.243.80]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB2CEA26F; Thu, 11 May 2023 02:35:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bhaQ1sPZeF0D0Ojlunob+q54Wl7qcYMiS34oQ8IAbAsXZLSn7JNogx0q+w/E+/FClgR1Pj5eROgsa0iOZXW+dbaHiYGgzs1a/kYW90KRIJ6KQoDSNx6T5TpEvQMenrivYeJxAcMuJjqzycw2o1rKNAM9sX5hyGWCMf3tls9mV3XCEbTWATAR0Ta5jDqJTIpdlAT6eBrGGbQBn3rsy8i0SPgS/L+myq2p7uBWhyQWJFx2fl0epOZFNzmMdQIqplDAVSxJGXR81D76xxWtLifleI5nlzlRggZb90VkSzb644xBozDz/o8qzfwuhRwHZPjpdP/a4HaMNHAh0xRBZFm8qA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=DWSYvHK7vKIdO64Z0gZ2dZPsjAtDaq3s+yYvNUfc5d0=; b=LkVBYgiPhFrlEZmlr/5TbHwi3dZaE5wNidEufz6tIwCUzoQLdMEhikoK2Z9Z9Gle5IeaswWwvOD/+IW9Op0M3ArkNrrF5qQB2DzWF65NeJck4I9BiST7Tcz1Kfwap63IE4f435sdFv6aR77F4m2SO+msy04rG+G0mbtf1+SW9d7S3wBOMdRlMbA/8sVjJrFtUPNs8MRN7S4i+jckrGb2V+JGKwMausyLtstBrP19SZbJr0Kk01D4IB2Am2526OMOnlFTZg3BuJWv8YwH4RlyfYMgwlqk7CDUC+ZCn+MHgCFbh1yP44set5Bz4hvRwVCtLdNkEQNNZN6zfSbjRQFc1w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DWSYvHK7vKIdO64Z0gZ2dZPsjAtDaq3s+yYvNUfc5d0=; b=gTXNxnEhJwy3MdLek5mmkGL2hG4tlf5WHm2uKGIUfIOK6BMcSptfIemQg01kf5XKFtKpXxZUav91huT3oqHt1nWytaJbmEnE+z+ITGMHEWi7q4j0uCFRe1yO+e2Ko93Rf812C/HU3iWHLtIy7FwC6FcOt3UScnEH/35LDutmjQk= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from SN6PR12MB2621.namprd12.prod.outlook.com (2603:10b6:805:73::15) by PH0PR12MB5450.namprd12.prod.outlook.com (2603:10b6:510:e8::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.33; Thu, 11 May 2023 09:35:46 +0000 Received: from SN6PR12MB2621.namprd12.prod.outlook.com ([fe80::ef8d:bf8a:d296:ec2c]) by SN6PR12MB2621.namprd12.prod.outlook.com ([fe80::ef8d:bf8a:d296:ec2c%7]) with mapi id 15.20.6363.033; Thu, 11 May 2023 09:35:46 +0000 Message-ID: Date: Thu, 11 May 2023 10:35:37 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 From: Ayan Kumar Halder Subject: Need suggestions for smp related properties in cpus.yaml to support smpboot for cortex-r52 based platform To: 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 Cc: 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 , Michal Simek Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: LO4P265CA0015.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:2ad::18) To SN6PR12MB2621.namprd12.prod.outlook.com (2603:10b6:805:73::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN6PR12MB2621:EE_|PH0PR12MB5450:EE_ X-MS-Office365-Filtering-Correlation-Id: 4c3e89f5-2b1a-4b77-4bd1-08db52031901 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HTerL+xn1kvy9U04ktRLCJbDNPYTeRULK9UV9C69xKz+3Lb+MZy3tQHRPIXH/cU0aqLzSganY+uCm6JIxMQWX6pBf05IQTTXoEGl6VTQodT9v2KBIo9EAu/GbCphem9DmlUd0OgjPgAWKQ9Auex88OTtVXtAm95aByoteVLXhJcqYPMO6yzvf0mIsPeb0dbYNWyBKwO8dS7VU7dVaLDUlaRC+GNdjUYfyOnbhWh6sRhhWABJqunT9U7mkgUAeFmF2UIw7zKnTFGOKQ71O+zmp9NZsYFWvf9S9fR1MQ5yWDzYMCgm4xhueOvepxA8qtgE0OvByNKGqGTA3hjoAa2PVKAfEB3wxgT3E942wFJJAX5OClsBaTaHI/v2ENFeeJJGAaKOxH80KbDK59YQJWM6m2dTdRodbgIf++jLJjA38IS6EFBlaJL6gEwS6vEcO1hWPg90c3pTKY1SNL7S657gLosriyYtzWf2xtrMdJHC4He9X9ueOGdjV8wBUHOr/rJq54Ypa1Ac2ASmjFmQa632HzWTeFyeWEPqmr/KteOeGV27PDYL1EbBFPIC1u5QXQ9X/F4V4z1+CgcIWDVWvup+rjtYEaH8DdTPR3hUEyBT3FnP42a21WYg7k1TV3p8S5PjMiZa7pADLHPm96IbnG6XH93B+VzzrjjZtv1iG8nc5a+XEajVZjbhpUGre4RvSsiZ X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR12MB2621.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(39860400002)(136003)(376002)(346002)(366004)(396003)(451199021)(6486002)(83380400001)(6666004)(41300700001)(6506007)(966005)(26005)(5660300002)(8676002)(6512007)(8936002)(7416002)(2906002)(186003)(36756003)(2616005)(31696002)(921005)(38100700002)(54906003)(478600001)(66946007)(66556008)(66476007)(316002)(4326008)(31686004)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?NFRTNzVjUGpiNnU1aS9QeEtjS1AveUF1aDkwZ1h6UFg1NEpCUjNuaUh3eDFT?= =?utf-8?B?UXRGQzREeVQ5WWdMU3hlamVKakdLKytWVXd6Mzl3MzljTUxYRzVuZWYzZ2h3?= =?utf-8?B?MEJNaGFNTnVZUmIyT1hQdzk5Z0R4bXVuZG9YaFFpTnNTdER6ZzJtQ1QwNSt1?= =?utf-8?B?Y3ZQUzJxRld4cFNxSDJ6czRFZVYxZUhSNFpjRWJZM29rRTB5Y3NUYnNwa3lT?= =?utf-8?B?WUJ4cUVFUDJ2ai9jREdRZGoyM2JHWjZFc28xa0t5T3hPc1lUN0hXVGFycm9K?= =?utf-8?B?ajdaZStuemtqOXAvWW5JWHc1Mlp2L2tBYitTNkFIejdHYUx1TENpOWZ1enRa?= =?utf-8?B?Z21kRkh2NWtDVXRjWjlEbmFDdEVoSGRRNzJId1I5UU9DcmlPVmlVWXkxd3ZU?= =?utf-8?B?MUFJa3k2TStLWFJzbDN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rossTenant-AuthSource: SN6PR12MB2621.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 May 2023 09:35:46.3895 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 9kfOkxhb/CQ0e3+JTz6Lys3gt3OlnsIAzI1yVPNTxus8jqZdeiZwoa76/q/B+rj/1xJRG6xk9AStywsLgeRZMg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR12MB5450 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=no 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 Hi Device Tree engineers, Recently I have ported Xen on Cortex-R52 (AArch32-V8R processor) for our AMD platform. 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. 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. Can I submit a patch (a one line change) to add this ? Kind regards, Ayan