Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3519281rwb; Mon, 7 Aug 2023 15:11:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHvpYnDwflxWGQKclHhMwAXDIm7a3ERyK7w5BHhQdV8FW1FD1AXzme0081aOJDHRPYK4qEW X-Received: by 2002:a17:903:188:b0:1bc:40ce:e1ec with SMTP id z8-20020a170903018800b001bc40cee1ecmr9283656plg.30.1691446299282; Mon, 07 Aug 2023 15:11:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691446299; cv=none; d=google.com; s=arc-20160816; b=niU2NInQN2bIKSq7rBUXiuueUCOtH8lzwAgu9eAGROyd9P5zHztoYa40zK4p6M+IWB mKA/LjhL4pSTjadAPRn6QoiRsgyea957BRCbbKle0QtF4psbJjY1qvFcWOmtE/i8bKPA fq4yonTkrrIRsyII44Fs4xNAh42lY/L6lthvYNXgPFW/r5E2wdqVhPq+6bOhh3II2iHM 93dzo2LDB1dl7OX96WgZx653ZWLttZVRy67wf/xglcjxzL2R+JoxE0824qiPYC34wPlJ 6FcOYToZWQfJhy5rzh8yXUmTjNGdvn7YtVgSVA96HfRkNDPKEV7uIKt0lpDLPN4JQSLB jYWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=ZjNg0k5JLv8meVnlQQnkT78Rd0wGAKwtkegHXDEiJaM=; fh=EdAFSmIgUzZTC6WCy4Jg1wBZ0/m6m2d/OjiRUJ3BsTI=; b=UeatDUEwPLzzv0DU8LGhyXZHCMTJ8ynD3ZR9qkibUPCitz7qy+3P7aNLpxpUG2/Q1Y 6Tih/5yi/S198ewKTg1smljX+r5ZNTvnCwvZMTFodMMK9vugoLESEoljwat3MgF+1FNb BJsSGq4O4UXeHLsr29VwDEcXvzcIdIFDiLDSIYfTWCRlc0OrgcwDaXS3npcj6bOY2Trw SUY5EKC0iTpA0tzZ/QaH5D6G/6tZmtfvI/KvJKz77oJQ9moQKgD+J8oyZvX7KyuKQq0S 870JIO4TWWOMQHxlDkrBOJknJ4lOphUISBuk/SflUGOusHFISwHuyXaMCi8YgGYuEpsG 7Azw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NXEGe8qg; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e15-20020a17090301cf00b0019c354055d0si6293838plh.304.2023.08.07.15.11.28; Mon, 07 Aug 2023 15:11:39 -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=@kernel.org header.s=k20201202 header.b=NXEGe8qg; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230206AbjHGWCU (ORCPT + 99 others); Mon, 7 Aug 2023 18:02:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230207AbjHGWCE (ORCPT ); Mon, 7 Aug 2023 18:02:04 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66A95EB; Mon, 7 Aug 2023 15:01:57 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id CAEF5622A3; Mon, 7 Aug 2023 22:01:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7FCDCC4339A; Mon, 7 Aug 2023 22:01:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691445716; bh=8dG7a5zhnwPAZeiNFnvKUhXNUal9236c6/e90HmcsCA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=NXEGe8qgWBXHR/TnXm0iyjuU5h4ZsCJuLRNuWB1fRnujzYyRt7DovR77LQ6bk6NcA AavWpKfEGv1HHnyGjdp/NT/yBHuk1tBj17MnEy2zfnAPeQhmrBLPsbUqqbYNj4lwE3 0ZBl1WqGW4HYvMOfo6ueRBsYnLB0MsKcgFmxF88Hr5mTv/qtpmMAMmHAfFVwgt6/+W Gh/x6+LZArDcAHH5G0veeztkWa3hb2bltNMGbGxGlvwK+3omrbISbPyysFw+7mBevA N7aKo4Sts7ZMBOs/SG3Ega4kYW85ePAYJRHOn7JPVaRdPLwdrnYICM1A+ijqPpttBB LaTJkQepdonMA== From: Mark Brown Date: Mon, 07 Aug 2023 23:00:09 +0100 Subject: [PATCH v4 04/36] arm64/sysreg: Add new system registers for GCS MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230807-arm64-gcs-v4-4-68cfa37f9069@kernel.org> References: <20230807-arm64-gcs-v4-0-68cfa37f9069@kernel.org> In-Reply-To: <20230807-arm64-gcs-v4-0-68cfa37f9069@kernel.org> To: Catalin Marinas , Will Deacon , Jonathan Corbet , Andrew Morton , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Arnd Bergmann , Oleg Nesterov , Eric Biederman , Kees Cook , Shuah Khan , "Rick P. Edgecombe" , Deepak Gupta , Ard Biesheuvel , Szabolcs Nagy Cc: "H.J. Lu" , Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, kvmarm@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Mark Brown X-Mailer: b4 0.13-dev-034f2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1873; i=broonie@kernel.org; h=from:subject:message-id; bh=8dG7a5zhnwPAZeiNFnvKUhXNUal9236c6/e90HmcsCA=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBk0WmbYz7h4KKVyPVSng5oTDfpmHrQGuHESgbbfxHp oy+ZR6qJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZNFpmwAKCRAk1otyXVSH0Ni1B/ 0V34yNxYv/KPJa0LhtcUa/t815ae5BWGGSrD3VDQHDuAMWFxWbJF2iNdwHIFCUQiejD0Us+hhjwW2F 2z4VeH1cDPvdf6NtfTwtzjn5YWtd2wpIa2YB5p43LKp9JNxRxf6yDCiVeb8PrR7eHcx9BL1qN1K5eE jFonFIkpKk9fGtso75yZfcs6+PLaePYfki07sRDRt/DquN1TSih4yeq0dcnFHU4ZabVsx3bxTp6PbH BMEmFaotH7ozIrsMTLcbFdnExgT3Y1B/8ULXjAVpG9BBsI0X6DJaRL22Wo7YUIoynYE6gjBiITEcMq /beJBkqp1fwpfkqpdtorPQHF81y+Yg X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 FEAT_GCS introduces a number of new system registers. Add the registers available up to EL2 to sysreg as per DDI0601 2022-12. Signed-off-by: Mark Brown --- arch/arm64/tools/sysreg | 55 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/arch/arm64/tools/sysreg b/arch/arm64/tools/sysreg index 65866bf819c3..20c12e65a304 100644 --- a/arch/arm64/tools/sysreg +++ b/arch/arm64/tools/sysreg @@ -1780,6 +1780,41 @@ Sysreg SMCR_EL1 3 0 1 2 6 Fields SMCR_ELx EndSysreg +SysregFields GCSCR_ELx +Res0 63:10 +Field 9 STREn +Field 8 PUSHMEn +Res0 7 +Field 6 EXLOCKEN +Field 5 RVCHKEN +Res0 4:1 +Field 0 PCRSEL +EndSysregFields + +Sysreg GCSCR_EL1 3 0 2 5 0 +Fields GCSCR_ELx +EndSysreg + +SysregFields GCSPR_ELx +Field 63:3 PTR +Res0 2:0 +EndSysregFields + +Sysreg GCSPR_EL1 3 0 2 5 1 +Fields GCSPR_ELx +EndSysreg + +Sysreg GCSCRE0_EL1 3 0 2 5 2 +Res0 63:11 +Field 10 nTR +Field 9 STREn +Field 8 PUSHMEn +Res0 7:6 +Field 5 RVCHKEN +Res0 4:1 +Field 0 PCRSEL +EndSysreg + Sysreg ALLINT 3 0 4 3 0 Res0 63:14 Field 13 ALLINT @@ -2010,6 +2045,10 @@ Field 4 DZP Field 3:0 BS EndSysreg +Sysreg GCSPR_EL0 3 3 2 5 1 +Fields GCSPR_ELx +EndSysreg + Sysreg SVCR 3 3 4 2 2 Res0 63:2 Field 1 ZA @@ -2209,6 +2248,14 @@ Sysreg SMCR_EL2 3 4 1 2 6 Fields SMCR_ELx EndSysreg +Sysreg GCSCR_EL2 3 4 2 5 0 +Fields GCSCR_ELx +EndSysreg + +Sysreg GCSPR_EL2 3 4 2 5 1 +Fields GCSPR_ELx +EndSysreg + Sysreg DACR32_EL2 3 4 3 0 0 Res0 63:32 Field 31:30 D15 @@ -2268,6 +2315,14 @@ Sysreg SMCR_EL12 3 5 1 2 6 Fields SMCR_ELx EndSysreg +Sysreg GCSCR_EL12 3 5 2 5 0 +Fields GCSCR_ELx +EndSysreg + +Sysreg GCSPR_EL12 3 5 2 5 1 +Fields GCSPR_ELx +EndSysreg + Sysreg FAR_EL12 3 5 6 0 0 Field 63:0 ADDR EndSysreg -- 2.30.2