From patchwork Tue May 18 10:14:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 12264521 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 984D7C433B4 for ; Tue, 18 May 2021 10:26:48 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 28C0F61002 for ; Tue, 18 May 2021 10:26:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 28C0F61002 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=XwzVg/xcPaL7H5TTC+1c2uvP6s95l2Dz7/1N/vdUVgE=; b=mmzr0QawO+XOCrPf/GQZ3StJr rzBWEsyA4sLztXiq94+z1S3KbtyYHGy4scMEjaFt3A+wCTsj9QluIuTtyNIt58SICrpix3Nzm3AqD bxREipdKETVMznz8IDwZUmPveUxQsASSFBz2qxTlwTg4C3gI9XQLW2sMUfVxVZg9Fug4K2xBq7abz ebVjAY1TlFh9w7IHdWAfeEwxF2L9/JeBrwT8KR4MkC1Y6JSXoAOR8Knf63J/SwlAstOiNDEzMFdb+ CUj5GWvXel3+x+eiWPvvnkJA+ZTMNieAP/Nev7TT81SceYo00JB2ClDp+AcZyrKyjPlNHHrmtirSq 3AH8UVVPA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1liwu4-000MYc-0i; Tue, 18 May 2021 10:24:44 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1liwli-000Jzs-SL for linux-arm-kernel@desiato.infradead.org; Tue, 18 May 2021 10:16:07 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=MIME-Version:Content-Type: Content-Transfer-Encoding:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Sender:Reply-To:Content-ID:Content-Description; bh=lLXjQtjsyG0fP7MiAhiuBH2BkVoJ21EL7ooBo0UVJgU=; b=30TVR6pKn2+z1B5nV0vwYq+NFQ mZMjkZXatUKYl3YIRwIsMahHrK14mk8uBJZaW/6qcwGF6NZJc3sKkypsDZE/HJ5DF8UUdfHicvuPZ XxX8mL/v6L7KM0ODQe9Y++sPzcdTBc8Fgv4Tmztl74qLB6zbZ2KCgjmQQnb8YcZvJ0QqF6bD16b2o Immt+PH/M6vtjMc8UpvJ78QRxEX5TaVccvk8gR7wiqZV1HXn7L1AKxZAciKblBSthvUYdCPhg2f8a /5Oi7oJCtAEXH95yQ6JYzyLi74Qh3jLcDckLUInX4/SdZz07FPsn8cUrNq3csjcHA+ZszPfHxK/L/ 1KpK5V3g==; Received: from mail-eopbgr150042.outbound.protection.outlook.com ([40.107.15.42] helo=EUR01-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1liwlg-00EYJl-Bd for linux-arm-kernel@lists.infradead.org; Tue, 18 May 2021 10:16:05 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CX087fCyBH2UkAklrNryTB35NcKYxBukHbYoZng4z6lojgi6RebviaB6jQy/NYl59rM71jgWCBsJ+MNsJGCWVQ3Gq2wwj6ANZckY5khWX3y51vcv3HNRzqOP2gia72jDV+5Ub+drIXxABp3tMr73anNWNSaqEztTz5saM4FZjHmWA02mAA7ezTKNgZF1giMGqek/IDGLRVsDQybynCoBp06bv5s135/r7NOEkrxshwEasXAPF1CEc7wI8Xh3x+CTY1fH7lXPsjJ3m5r4QlT7lG+hdn4vB4mz6pbSK+hazBQe538bi8aALVUuJHUXQeOQkIUvWnYmG68whQf3v7CDBQ== 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-SenderADCheck; bh=lLXjQtjsyG0fP7MiAhiuBH2BkVoJ21EL7ooBo0UVJgU=; b=jTg8bPXK3iq1q63VUyf2DSi9tk3lm2MEr4XmaSfe9TXMd3H37yNDQx7yGaQc/wlBSe7DrM9SN4zE0Bsbikob9V0JpO92mLz7a6Y2/nshcQiU2nqIHRN1Z1msxynCG3IyiJAtl/EzWkISjnoLD3DGwjeDsc/GzdXAvIaRb9kIWoHzLLc8YikKWsiUoygwobbisINfee9AxUOrU6HwTsd9ieZ/3U5Eh5ON5RpCim95sBBFo3wgSbAbapv/w4wu61TONSbQqr1XObPOTIs/1kADE16juC+Y1fxl/dgXe1pWOUvYITSS2rkbZr+MGKuL5Fu05TbD3QRNdKolZGippBE98A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lLXjQtjsyG0fP7MiAhiuBH2BkVoJ21EL7ooBo0UVJgU=; b=pRq1it7CBXWA9blDOpGBPN+/JNajOn4OkbWcZguocQvt6j+Z86qKLLWfIuehXwkFg4sQUhQjH73D+N4q2jkVBsgB6moH0Tm+LI76rLvDI5Ah47T6YCo3a/vekDp2KLBihysazVZJLuedkQQxuzSLwJACHBk59nM4hdj0/7ysK5s= Authentication-Results: lists.infradead.org; dkim=none (message not signed) header.d=none;lists.infradead.org; dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB4966.eurprd04.prod.outlook.com (2603:10a6:20b:2::14) by AM5PR0401MB2450.eurprd04.prod.outlook.com (2603:10a6:203:34::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.28; Tue, 18 May 2021 10:16:00 +0000 Received: from AM6PR04MB4966.eurprd04.prod.outlook.com ([fe80::b10a:ad0:a6f5:db9b]) by AM6PR04MB4966.eurprd04.prod.outlook.com ([fe80::b10a:ad0:a6f5:db9b%2]) with mapi id 15.20.4129.031; Tue, 18 May 2021 10:16:00 +0000 From: Dong Aisheng To: linux-arm-kernel@lists.infradead.org Cc: dongas86@gmail.com, Dong Aisheng Subject: [PATCH 4/4] arm64: head: fix code comments in set_cpu_boot_mode_flag Date: Tue, 18 May 2021 18:14:05 +0800 Message-Id: <20210518101405.1048860-5-aisheng.dong@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210518101405.1048860-1-aisheng.dong@nxp.com> References: <20210518101405.1048860-1-aisheng.dong@nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: SG2PR06CA0217.apcprd06.prod.outlook.com (2603:1096:4:68::25) To AM6PR04MB4966.eurprd04.prod.outlook.com (2603:10a6:20b:2::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.66) by SG2PR06CA0217.apcprd06.prod.outlook.com (2603:1096:4:68::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.25 via Frontend Transport; Tue, 18 May 2021 10:15:59 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e1ff5d34-15fa-4d55-86d1-08d919e5ef6b X-MS-TrafficTypeDiagnostic: AM5PR0401MB2450: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2733; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: L4LJfYN6BLtnmw2gJZ6wPA58CVRalzg7GHRAE1zk1wO+vHDtszE+HrGyaRqZQCPSAWyMoT9UEDjizySPHCM0qkNaTrE42VPc8rXEyphPTqLVRG7liWOBXlMfMbd09NyKsn+z/88Qaaa6Kp5mZ4/DdMMvQrl4kVovMCbD+6ql9NDBl9IxtcUUMFa5Duk9uX3r39zJg4dA2aTfyHpQ94FAOe+OuBh5Jq3H1JPCZLQPHdfVXkyGEiHZH6UMwY+5uyz6iLIC43oZjLMdDxuCeWD+TxbRPI8uqHgIFY/ZbkrA4fI57UBNB0KjeQ5N9sVooWkmkuTR7j6KJ3nhHzaITtqNQzR0E0k4Kdmflb/55B+26d9zJQG34+YGVV9hAQZJgiiJW4pm+FJFk4uD19mwdafgLLh/gLOEJpsRmFOLZEuP1dzwOJzh7sWOR0LWWiqUYBpIPXdvRQUfFRZgQissbLOBm9fV/RE1McXE7xB5253zITD4T+9VRLqRt6cvTMIDOwEGRXQ+C849zINfTU3RElDHoZHzwqWKtyt54RkgHKYKN7SIRxYkk2CjhLJUyr65JFlpVmfaLMjYOsdewKzWEm8dlTLRbuF7xRMquRWKeVJNk8tp44pJVgPIkU4iwlt8JBQ94HebRfTMGg1WWOGXW+WZUVyDPjCfgl/oUkoHevP2nTROAXYSL3QAh6ViZALTEM/r X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM6PR04MB4966.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(346002)(376002)(39850400004)(136003)(366004)(6666004)(316002)(478600001)(6506007)(4326008)(186003)(4744005)(52116002)(16526019)(8936002)(86362001)(6486002)(2906002)(8676002)(2616005)(5660300002)(26005)(66946007)(956004)(66556008)(66476007)(38350700002)(38100700002)(6512007)(6916009)(1076003)(83380400001)(36756003)(69590400013); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: H5Eq4rRM5vv0SHBMMCbXmhdy2NxjvRlbMEvQyOyhADic1eDc+YeGSLAQcJ0O/BSx01hhVBMwAMLgZoKfQqq53WnXmGrAQ5my+vxHUq9vQ5J81hBG98A+enMkLyR06FrMdC2kd6MC7xyrgLdwWmLOi1STblHEIHueTSSeVP1p7XeM3mTobI1alvHHu5d+M6NDo69tv+VOEanKCKbPUWSiX4KJr4gxf13DxC4LXQICom1bGI6VW+0Pzjr+s5MrtzoR4elGYUPTKgCeriZefczjuvnHjhiwIB6sTiB56O+4hMWF25Ca6zctIjtZnT5dT0H+cY4gKU7APcBWcji+f67iKDE2TgaXiS4gQlfw+yg/zwlvc5IfdOwlqsZV+TYa5GMpuyBF80/5Ktfzt9OaV0cfwWkjxbAkIQ4AehE2EVO2adGRoODC4ZAPwOY9VLMVLq9zHQXhv9lJnhPH9f1Odq8HSBxApxf3hpHH1LCLGl0VwKgLysuhdPYix1zS6OYDzYbYlxspQNz5FlJVZRzefOHJh47cXDnUgjYy8AC9YdqQIhbGhGe8Z/EbseqHaMlHplLOmMBjwmKnqca4JMY38AmAbU1G37q303QNVB5XK0sUQ46oHu5ovaaDARsYUJe6FSWz52PbnfLXVgj6lVCQwjGJmixXvk6/NVvB5JjfXU26ZJ8Z1v2r7xqECo554ZCc7FWSWjnADjeBIKz91nLK8ebCF8gEADF5xUPgytLOx2z7lX7mQo8ZG2wPAagG0cnUkxx0qaFSkNFW4FLwEd8i+SnmyOWQE+mtMiPBbbgssu02Y5uX66auPtzadbeWUgdYCSBSPFChT0aWs6oEzeGfYb3ul6sFbWvJs1IuDxp5UPtjbUEdSe0eTXYayGFoNe8SRfThrzxM0kgqlvV04XSr9sJxTpl76pQeaxUEVyHOnYhGKAaRr8mIU2o+5Oyw7NemLVKArDUsc7BJHvYdfd3qG63dr65GHF/Xc0R5k4wNuTTsNb9cENongI5EpngMi3JORdeqm4rjPIf/r1re7Az6vdvZJt2h7YKp1uV8Ico/i5Y70zgeZj3t59DUaSEgVQJpDY9ldmdYiJndJvsWtgRjkI0mv+7oFgkaF8cs8unzQGLRV1wH6T9SiSSzD03B+/Jf7ABACQBdxXaGcAkCMzhSnC/fiumu9/g6zNFOE9x1tHUgCT8A0f5KFM0tV4BKK1lEA+iVoWouLD4JM+kbwLHdJYfu9bVIlN1vbomdnmlqjOAF2dTSa/Aqk0JWzJ5QMirDQXGNg6CYSlRGmJAwVauk67D6AiTWkUGNitw+5ZYp/HTmhK/S+Q1AnoRzt06rtiSKkVJv X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e1ff5d34-15fa-4d55-86d1-08d919e5ef6b X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB4966.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 May 2021 10:16:00.8130 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: l63gMfu2U9xwgx7JTnMHxuKb13J9VUy+tCtF5naxKS9Cy+7GCCV7gOdJPsOQh08uuKDu1l5F0OHI5KoryDdRMQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0401MB2450 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210518_031604_417733_74F05959 X-CRM114-Status: GOOD ( 11.51 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Up to here, the CPU boot mode can either be EL1 or EL2. Correct the code comments a bit. Signed-off-by: Dong Aisheng Acked-by: Mark Rutland Acked-by: Catalin Marinas --- arch/arm64/kernel/head.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kernel/head.S b/arch/arm64/kernel/head.S index d266b4c6287d..3b88000841d9 100644 --- a/arch/arm64/kernel/head.S +++ b/arch/arm64/kernel/head.S @@ -550,7 +550,7 @@ SYM_FUNC_START_LOCAL(set_cpu_boot_mode_flag) cmp w0, #BOOT_CPU_MODE_EL2 b.ne 1f add x1, x1, #4 -1: str w0, [x1] // This CPU has booted in EL1 +1: str w0, [x1] // Save CPU boot mode dmb sy dc ivac, x1 // Invalidate potentially stale cache line ret