Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4433436rwb; Mon, 31 Jul 2023 06:56:34 -0700 (PDT) X-Google-Smtp-Source: APBJJlErxhAIyeGNyCTOQjb5zHQEmetBY5gt1cU8G9YkYrUCFP6+9KFrVhR28m2zOeAB61Dem1zC X-Received: by 2002:a17:903:18c:b0:1b8:a4e5:1735 with SMTP id z12-20020a170903018c00b001b8a4e51735mr11232804plg.61.1690811793817; Mon, 31 Jul 2023 06:56:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690811793; cv=none; d=google.com; s=arc-20160816; b=UUon3UqJCgWHIt2o8zZkdaEG218jlSnOWMhj1ypIIBapmTHkQ0+AWn51WOiIPgMsmB kZRT9RzP1fxpeBudiQS+vx47IAExL4kp5/jvaWbTs5SKaMIlIDg47rFUu5yY5lpVkqaN G0sL+nJ3Yuk7aX78X5LIByYsgx4Pp4cvMcxWnTLV409eZGzeLRkOCLRdisnIo/vQiFu9 YnG/kXAuvfiBy49R57gbQ2+yeSsQtmzk/d8ABBenUOpmzkhubHsQQVt85kanyRruiBpU rU3oMXIxCzV6kg7Lrr20K2aTF9IhPkNTiEWYYcq/Xz1tyrMCLbqCO2TPTSKq2Sj7EHDw Z9Fw== 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=mXQNOGkqyNPPp7NyRAMiP28tdiV/rPuQJSBtoEtRf7ysez5V5W4exFK+t8pP2kzM3a sqFzTBR57VsYNCF5+ZJ0JvbcWkbfFWXe7/Z6fiWprRwael7qNp5Z0QNMRnavccOYAuJf HPgRHoj/Y89CuevaJag++JnUDkgxpob6xMJgcSBFtS8iXDnj11CHVairMMgnUH9F7qsW t+L5k7RzpA+he7PeeUcV2wdhdoUWeyfVlEKXj1AWammmyJmxNue/dWI4DKxQa6Wg1Fdw npXSfknhNYtjQEITh/0J1OjJCoqodE7nRz9KPASw2H/Qb/DJeHDMdX3si0OvlEHIgsW9 cW7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UNIlOmyx; 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 k7-20020a170902c40700b001b9d2010b27si7836455plk.119.2023.07.31.06.56.20; Mon, 31 Jul 2023 06:56:33 -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=UNIlOmyx; 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 S231931AbjGaNvt (ORCPT + 99 others); Mon, 31 Jul 2023 09:51:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231867AbjGaNvZ (ORCPT ); Mon, 31 Jul 2023 09:51:25 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A903519B4; Mon, 31 Jul 2023 06:51:16 -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 A648261159; Mon, 31 Jul 2023 13:51:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6ACA5C433C8; Mon, 31 Jul 2023 13:51:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690811475; bh=8dG7a5zhnwPAZeiNFnvKUhXNUal9236c6/e90HmcsCA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=UNIlOmyxQlsDGZJJUlqtBQ3pKGu9374jbAVXpf249MEPk/7xOISrn7LV2miW34Rap JCt/KtM7Z1890WzrDybSb/rdV0lg1nK864oQ1Xr+yw0hGvERsNGJCmbhh/HgKJYgsi B/IE8cXFog7znQKMJee8kLLxJhIdas8q4jjEYDEhZ2IWxbLZDL1k3Ajg/kfAH80SY7 ewY5JqHbjoPQ0U32MHJMM4U8gI+3v9eZLqS5ipEBAprGwZyINGZfhUIMpIm5bqKhdJ GmRXo0dmMr0LIVtM/RUi3JCM6bneJhkXdrK41dEx43Globcmw0xBTjeo9qrLGJJrQC lsQBTeRA/Xy2g== From: Mark Brown Date: Mon, 31 Jul 2023 14:43:13 +0100 Subject: [PATCH v3 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: <20230731-arm64-gcs-v3-4-cddf9f980d98@kernel.org> References: <20230731-arm64-gcs-v3-0-cddf9f980d98@kernel.org> In-Reply-To: <20230731-arm64-gcs-v3-0-cddf9f980d98@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-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1873; i=broonie@kernel.org; h=from:subject:message-id; bh=8dG7a5zhnwPAZeiNFnvKUhXNUal9236c6/e90HmcsCA=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkx7wXrSTFXcgNytPlNbVq48jyprVFXs18BW465j/K XAkAlKiJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZMe8FwAKCRAk1otyXVSH0KzsB/ 4tiNeZ4UMeFymPGXy+vrRR/CeqE1Eo2278HuFEFxg/jAeMprtm+Q2Fj+OKMW0OieY/iQho/4q1MI2t Ryg3boNagu4L7zayoqipT6iYmOnTZEiXNq6Ay7dZGKUVlwDCQyBS4R3yRBqSg1zFTyW5PAdEUtU/lr w3P6Jsn2bcskmRpz8xfmU5xEO2/9EMipd7qtZkZmhUUOu7inLemxyFMVa6a8jGJGYWjMWcyDASadE2 90TEAvg02jv3I0ncnhZTsLPzhbwKfg5v+MajM37byix/EGh4307GV7NyPuhgbMBzdLccRPE7L5gS6+ lsnNZAG/7AcRFugLOeeh3M6KxrQYhS 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,T_SCC_BODY_TEXT_LINE 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