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 C1360C433F5 for ; Thu, 10 Mar 2022 07:25:11 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A0ADB80FA6; Thu, 10 Mar 2022 08:25:07 +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="nIRXGUot"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BEFC883979; Thu, 10 Mar 2022 08:25:05 +0100 (CET) Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam08on20602.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e8c::602]) (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 2813E80818 for ; Thu, 10 Mar 2022 08:25:00 +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=V+YdIxNEkxJSZktuS6qbhwnksVeTuHLMnG+tCKQoKYzkFUhA2urYXOmmGl0yfrKbVLdDTcYQ+f8DfbPfv74SOAIdtv2+crwZbr9ivXlatyKQQuBNgG8GEdMJ+ivjEmqd3EYnoc5Wvv15U6TAsCSX7Leu4VuXpSg2fiBikVvSZtVikvRb9qACtLbmKY415b4wPUN+LSQqnlB11xCf58DTBBSbRFmQWvudT5gFqEsUlkVBvQ4mIKAmz8RdqjUYMBlxjSEklspFL8rg4xcAp4ofkNMfxJ/17nA+a7XNDJx1xcLkW5nKsZW9936CjYKG6qud6g00b6v5m/4szyRCgOT2IA== 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=4btVM48wboP5LFR7LgDhGqPYQquBijd5b93Mn31r8PY=; b=Wle4CBLQOsszB+8KGlJV/NWloXJJ4jhKVNEZkxDGnScJbsmuPHAL9t2/xfiOeaXm18/5OZSZBicD5VZHtHcQongyxd+fClOOUQtf/m5PhT/vP6wszaAwEzJuiV5sVEYp8ykTgKfiRICV+9WtQTXwQTsp+FfdKE5DOa+uWMqnPCgcwlkHelLtoECOda1CaJUHPxsTCczWskrK5ElSO3kqf38Sfy5Nba4vxypAcwxovzS3gHdA6wg9M31jLn2FLTbgXjKJY+OEF7qC3O62Betzu6kIoS/sosod9bMxW6XVyLKLaxxmokWobky+Gx+pqWZqaGoaNYdh/C+IxCtOrbB5rQ== 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=4btVM48wboP5LFR7LgDhGqPYQquBijd5b93Mn31r8PY=; b=nIRXGUotYoFSfRTkyFoZb8h3ZJGDF+k1aHZ+HzQFSqG5JnVYjOjshlHml9XGn6hrwJhG8UFB0CK8Ox6npFtzNfW4aR5DOXlrRytsW7AY0y6KPJQej2Yq4YJllPXv5cQca05IvS+tCBR83yylOW/SCTEavcox9DnwP9iGgsWjdwU= Received: from SA9PR13CA0082.namprd13.prod.outlook.com (2603:10b6:806:23::27) by SN6PR02MB4448.namprd02.prod.outlook.com (2603:10b6:805:a8::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5061.22; Thu, 10 Mar 2022 07:24:55 +0000 Received: from SN1NAM02FT0020.eop-nam02.prod.protection.outlook.com (2603:10b6:806:23:cafe::bb) by SA9PR13CA0082.outlook.office365.com (2603:10b6:806:23::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5081.7 via Frontend Transport; Thu, 10 Mar 2022 07:24:55 +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-pvapexch01.xlnx.xilinx.com; Received: from xsj-pvapexch01.xlnx.xilinx.com (149.199.62.198) by SN1NAM02FT0020.mail.protection.outlook.com (10.97.5.96) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5061.22 via Frontend Transport; Thu, 10 Mar 2022 07:24:55 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch01.xlnx.xilinx.com (172.19.86.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Wed, 9 Mar 2022 23:24:54 -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; Wed, 9 Mar 2022 23:24:54 -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=45440) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1nSDAM-0000lN-Hj; Wed, 09 Mar 2022 23:24:54 -0800 Message-ID: Date: Thu, 10 Mar 2022 08:24:51 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.2 Subject: Re: [PATCH 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: <20220310014404.1251636-1-trini@konsulko.com> <20220310014404.1251636-3-trini@konsulko.com> From: Michal Simek In-Reply-To: <20220310014404.1251636-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: 5f536c9f-44f9-487b-7fa8-08da02671338 X-MS-TrafficTypeDiagnostic: SN6PR02MB4448: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: TDcBqM4gJ09qsneFN/BznT+cgOpgPlgqPdRDy80jq7iCZHaQvJ0S1iSaI9/d0vuydHB0QTckZay/j4dIiS9Gfwbf+mhroaXdv8g+Kemg41zBQVBmAykmJFHeOfBM/PdiYuYPHu2B2xPCdN3R4Xie1URGyhgHFxAq/Kzlx/AkeUwuwz7q1EFvGQ8/qRayjTqcuVsWtBusd0SSsyDg9vIV5iLWk4l/Jsq7kEtml0WYhTEai22+ZTespCI9x3AfgpBSrY1Gdd2NgYjL3/e0RbLe/I4HNurE7p8KYxklzKoCTTQ6Z0Nv9/Cry38NkrtRw5XKvoJgrHcZpUEVgjkrARvqp9OBvRWON5JWHVljx5fYDQ3yxjqEABw0+Qlbz2qY3Q3K2RfIMcHOKGlhLidc37XuY21OrEUMmBvSMbwN9UhTQJEqoSouxj6cZUdG0nIi+35aro3TIBRpS1FhoIPcpWHPXK149krwk8JUUF3NVlGz0pTvxHecToBLQilcf2ApPIRj99VrgHk6JRXMqrMYS2PXBM1yeA8q/TpDudI3CubHFddfPUs7MXJpR84exv/v5pw88IN2JwI5HD4v5y1nQMAoln5AcRT91l9HOKirBRNobv8RnhEbXekOAC0QU2RIZoWHoci33J2cJjpHDaHwSp6IdEalxJW3HgZ5qTErTnvaDXK+PpY7ySlCepNXX62hoPZEAaq3MhvI8crT4h4h1eHYl8ErH88/kekKH3DVJEJl5VQ= X-Forefront-Antispam-Report: CIP:149.199.62.198; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:xsj-pvapexch01.xlnx.xilinx.com; PTR:unknown-62-198.xilinx.com; CAT:NONE; SFS:(13230001)(4636009)(46966006)(40470700004)(36840700001)(186003)(2906002)(40460700003)(36860700001)(31686004)(26005)(426003)(36756003)(508600001)(336012)(5660300002)(2616005)(356005)(7636003)(31696002)(9786002)(8936002)(83380400001)(44832011)(54906003)(110136005)(47076005)(4326008)(53546011)(82310400004)(70586007)(6666004)(70206006)(8676002)(316002)(50156003)(43740500002); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Mar 2022 07:24:55.2922 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5f536c9f-44f9-487b-7fa8-08da02671338 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-pvapexch01.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: SN1NAM02FT0020.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR02MB4448 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 Hi Tom, On 3/10/22 02:43, Tom Rini wrote: > This converts the following to Kconfig: > CONFIG_ARMV8_SWITCH_TO_EL1 > > As this option isn't enabled anywhere and is for very specific > circumstances, it's not an asked Kconfig option and instead noted as > something to select. > > Cc: Alex Nemirovsky > Cc: Marek Vasut > Cc: Michal Simek > Cc: Nobuhiro Iwamatsu > Cc: Simon Goldschmidt > Cc: Tien Fong Chee > Signed-off-by: Tom Rini > --- > 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..8d29393bc0e9 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 I think it make sense to be able to enable it via menuconfig to make it selectable based on user wish. I was using it in past to check that we can do clear handoff to EL1 directly. Thanks, Michal