Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 91E1AC433EF for ; Fri, 11 Mar 2022 14:27:26 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 290FD8309C; Fri, 11 Mar 2022 15:27:24 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=xilinx.onmicrosoft.com header.i=@xilinx.onmicrosoft.com header.b="F+V6QQu2"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 692BB83ADA; Fri, 11 Mar 2022 15:27:22 +0100 (CET) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on20627.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e89::627]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8C3E081F9A for ; Fri, 11 Mar 2022 15:27:18 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=michals@xilinx.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CfQmuh/RpSTXTyE23HJS0ghVokGktP6pTR9YELxlhwy29q1SRaopL/emKqm20u1McJxT3y9wc8Gnr8gr0V076BXcbaCFdfS/UQ0shYNtndY/xIMFsRIBmxKZoISCeYX/9FVKdPmwzD+SErKjHlBUPoVDg6ahOf1DRBrBFCkEnCEOS2dIt6kv2MYYA7pNdVc+N2WRDz0UbRm7B4EbtRw3zyheRpdcef4KaNMiWx37WwYBKNepj2SskAz4QjLSGPvbfWFkqXm1/9ipArGm3aZiP0/0Ur4lkv3A1Kpsyasyc8Bk2XKCUlNB5z8g6vJnROflVi3yy0YcNJzYMJUfnvEUZQ== 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=XZ/2uzDOT4fcEmz3uKSVsWw47XLesOCSaUeQjrrXMpo=; b=n1WA469TzKpA84oh3kSm/jP0hWsCiEanp+sdPuQHbvUsBFLBfILEqs91LiqZONb5cSuouJquy4lxIc+Dnak0y4FDD+lfhrtJxviAwRDvTcvKClUaFU/oQoG4BLgn+Padp2f/jQJD3z6zNpj9pUWfyRjcG5hyHX5ZnbmbiuWrPvZZ6OOxB4atlK+3GxXaeEOs2nS6uiQp/ZVArNpMMErjtDS5ZaaPrrREpTfNh5K1N3WD54qoxOhCDKdmI9FQnAP0uRpPAfEtLfY6YUWTQFTnqAuIHKktdOi/R2DeTyrB5S09re+I6H2OVJwXwuqITj7Z20YBX9AzINdqnicSstPIqA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=konsulko.com smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XZ/2uzDOT4fcEmz3uKSVsWw47XLesOCSaUeQjrrXMpo=; b=F+V6QQu2JxaceUJZGPg41l/+AYl5wHdKzsUWhrgkfGwOzjGdGKtpDxtducivGhkHccFqn7WPvALHyAFVtcPAvQ+H+pp1mrm7I3eEfEk65fKkjyvJZsTz1crgXxjbwlYgisnRJAYRwyROSjWByH289dzJk7YrFkBQXlm78U9sOSw= Received: from BN9PR03CA0436.namprd03.prod.outlook.com (2603:10b6:408:113::21) by BY5PR02MB6995.namprd02.prod.outlook.com (2603:10b6:a03:238::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5061.22; Fri, 11 Mar 2022 14:27:14 +0000 Received: from BN1NAM02FT027.eop-nam02.prod.protection.outlook.com (2603:10b6:408:113:cafe::f) by BN9PR03CA0436.outlook.office365.com (2603:10b6:408:113::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5061.25 via Frontend Transport; Fri, 11 Mar 2022 14:27:13 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.62.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.62.198; helo=xsj-pvapexch02.xlnx.xilinx.com; Received: from xsj-pvapexch02.xlnx.xilinx.com (149.199.62.198) by BN1NAM02FT027.mail.protection.outlook.com (10.13.2.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5061.22 via Frontend Transport; Fri, 11 Mar 2022 14:27:13 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Fri, 11 Mar 2022 06:27:11 -0800 Received: from smtp.xilinx.com (172.19.127.95) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Fri, 11 Mar 2022 06:27:11 -0800 Envelope-to: trini@konsulko.com, u-boot@lists.denx.de, alex.nemirovsky@cortina-access.com, marek.vasut+renesas@gmail.com, iwamatsu@nigauri.org, simon.k.r.goldschmidt@gmail.com, tien.fong.chee@intel.com Received: from [10.254.241.50] (port=43722) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1nSgDH-0006Ev-OU; Fri, 11 Mar 2022 06:25:51 -0800 Message-ID: <393382d1-fab9-a09f-cdf0-7084392a27e8@xilinx.com> Date: Fri, 11 Mar 2022 15:25:49 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [v2 03/15] Convert CONFIG_ARMV8_SWITCH_TO_EL1 to Kconfig Content-Language: en-US To: Tom Rini , CC: Alex Nemirovsky , Marek Vasut , Michal Simek , Nobuhiro Iwamatsu , Simon Goldschmidt , Tien Fong Chee References: <20220311141210.2810346-1-trini@konsulko.com> <20220311141210.2810346-3-trini@konsulko.com> From: Michal Simek In-Reply-To: <20220311141210.2810346-3-trini@konsulko.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 194e86ac-e507-4282-d32a-08da036b3c6d X-MS-TrafficTypeDiagnostic: BY5PR02MB6995:EE_ X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5gVOzVvxAwBt2z2ikieN53nlL8hsw2B8d7YIGC+MpxKmFDpdq55BtHjV4S7H5J9MheezEuQgtWjkZ9KH4KBqerAULdhmRFdKap0w5HyTtT9SXtVkxBLKGufpANiIU/oa3x6rW44D6sdP8RuP8Rmlz00WN8MmSKfkwKX9EXcJJFd35LIhKeDG6bX/RbuZU0MMCmgbQjBCGEmD+5TgqbaixLmIKd9WMBKw1FbLgOyaRjT38hwqybH6xj/yA6si1MMxwlI9t/zzwBn9tji/YvUQ2/pros9pxQVdsUC39hgbY8V7tSQpAXteO1YNv+WbGMWqryX+X5NoIjWLiAaPpAypl6Xrkj8ewEqu7nF//KdPvsh85u/mc/h9T842vY2goFVcst7CpqMt3qosXyjbc98EfgZQDXEABkHQ6Lt1j1DQzbYpE61nB1UPodBW5/46Mj1j5//BymhDYWAHPbDwVsqhajb7nwbbWNPE/StPBlzc2bsJs2FA/AJI6rYZohRZAvEZgi8xo8gdIYGvCZqAXp4btuI7/3IrY4iPdfOOCOGgtofDSL7Oyfz11nT5Vw8xBQ783ZFaPNlASW/6ATUtiSFVICDObsnw0hPY1X+uK4CzaUY0h28F8PbqfRI+qoiYg8jXWqoeAiaQBL1oE5yd1RxP46Eaqykaqj45OYTxijqZR9eGEw4hNLrOMvVUVTvdxkjZQEtCmLyHBqgB11ytmAfEgA== X-Forefront-Antispam-Report: CIP:149.199.62.198; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:xsj-pvapexch02.xlnx.xilinx.com; PTR:unknown-62-198.xilinx.com; CAT:NONE; SFS:(13230001)(4636009)(36840700001)(46966006)(356005)(53546011)(7636003)(83380400001)(426003)(336012)(8936002)(5660300002)(44832011)(2906002)(2616005)(31686004)(36756003)(70586007)(9786002)(82310400004)(47076005)(508600001)(70206006)(26005)(186003)(54906003)(110136005)(8676002)(4326008)(36860700001)(316002)(31696002)(50156003)(43740500002); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Mar 2022 14:27:13.5154 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 194e86ac-e507-4282-d32a-08da036b3c6d X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.62.198]; Helo=[xsj-pvapexch02.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: BN1NAM02FT027.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR02MB6995 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean On 3/11/22 15:11, Tom Rini wrote: > This converts the following to Kconfig: > CONFIG_ARMV8_SWITCH_TO_EL1 > > Cc: Alex Nemirovsky > Cc: Marek Vasut > Cc: Michal Simek > Cc: Nobuhiro Iwamatsu > Cc: Simon Goldschmidt > Cc: Tien Fong Chee > Signed-off-by: Tom Rini > --- > Changes in v2: > - Don't hide the option, per Michal's request. > --- > arch/arm/cpu/armv8/Kconfig | 6 ++++++ > include/configs/xilinx_versal.h | 2 -- > include/configs/xilinx_zynqmp.h | 2 -- > 3 files changed, 6 insertions(+), 4 deletions(-) > > diff --git a/arch/arm/cpu/armv8/Kconfig b/arch/arm/cpu/armv8/Kconfig > index 9967376ecab9..4d4469c88439 100644 > --- a/arch/arm/cpu/armv8/Kconfig > +++ b/arch/arm/cpu/armv8/Kconfig > @@ -31,6 +31,12 @@ config ARMV8_SET_SMPEN > it can be safely enabled when EL2/EL3 initialized SMPEN bit > or when CPU implementation doesn't include that register. > > +config ARMV8_SWITCH_TO_EL1 > + bool "Enable switching to running in EL1" > + help > + In some circumstances we need to switch to running in EL1. > + Enable this option to have U-Boot switch to EL1. > + > config ARMV8_SPIN_TABLE > bool "Support spin-table enable method" > depends on ARMV8_MULTIENTRY && OF_LIBFDT > diff --git a/include/configs/xilinx_versal.h b/include/configs/xilinx_versal.h > index 20f5a7271a20..a8009f236937 100644 > --- a/include/configs/xilinx_versal.h > +++ b/include/configs/xilinx_versal.h > @@ -10,8 +10,6 @@ > #ifndef __XILINX_VERSAL_H > #define __XILINX_VERSAL_H > > -/* #define CONFIG_ARMV8_SWITCH_TO_EL1 */ > - > /* Generic Interrupt Controller Definitions */ > #define GICD_BASE 0xF9000000 > #define GICR_BASE 0xF9080000 > diff --git a/include/configs/xilinx_zynqmp.h b/include/configs/xilinx_zynqmp.h > index 1f0da1a4b3e4..27ec3e06270e 100644 > --- a/include/configs/xilinx_zynqmp.h > +++ b/include/configs/xilinx_zynqmp.h > @@ -10,8 +10,6 @@ > #ifndef __XILINX_ZYNQMP_H > #define __XILINX_ZYNQMP_H > > -/* #define CONFIG_ARMV8_SWITCH_TO_EL1 */ > - > /* Generic Interrupt Controller Definitions */ > #define GICD_BASE 0xF9010000 > #define GICC_BASE 0xF9020000 Reviewed-by: Michal Simek Thanks, Michal