Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2700331rdb; Fri, 8 Dec 2023 17:04:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IEtN2rV8F+58xrgpINj+fHCYh3ABa8eWZiP7W5twlpZ90veYaODhpZOR/71KBISv5hcaWr6 X-Received: by 2002:a05:6a20:428e:b0:190:12a3:7edb with SMTP id o14-20020a056a20428e00b0019012a37edbmr1439069pzj.20.1702083886613; Fri, 08 Dec 2023 17:04:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702083886; cv=none; d=google.com; s=arc-20160816; b=ik1ZZpHKK03VomFD21W5kxk99ARUDe8q4wJ1Q9X9ksy9RxN3oGTzD8WooehRWoiyHn ttlUOFN/EI8TnsHi5xkrZNSZhKpIKovGuHb0o0jh+9oeQl/RMWGcaXI73Vc1Lt3EAXgI xaZazEBMR19n4QEBXMG1rYGae9+FQ+UOWmiswEzwqttwtAP9cVYhX9c2I4WIDmxP47CK vX4WxWjfygSGw6o4AifueakdDbpAcbwqE6/fofPhN5DRfeAIH8NXMmWz2tQ07PWFY1J2 J199N/Q+Ry7ldCNfhMdpIhKb7uAEVFWXYbpSXAAbNyCKnowvSBkAmw3kH6NXoX+Kt/qo s4SA== 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=5xlfBE4hBFq90jANR/1xv8zoGAgcr3o4vP7s3q+Bjmc=; fh=RQpcuy0YgCiqZ+RbF/rOk8HfHduhyUUElRjcxQgQpaM=; b=hbu+6qr4T9gO58ZoPa1ZBhZa0oYLK9SUYNeuwRLrbZ4fK+p2LQzY5K8V3V/+WqV4YB eiNb/iX5yVTEIdAdNDK2nOQS/wDc1BgYDlRTC03GcWbuzXQuLPkKSguTbMTB+GotqKF4 cJSUz7X6farBkn4Ae2WJx4ontiYi6dHNluL2Q7XMkzFxnaefnDfJBSTggqTtPJW5K6HK bs1XLu1f/OR09U36Sv9zYN4oxCtfP3unf7DVulvHT3SUEI6ZNgarfDFfHQDoO7H76dmj KSjhGAHO32ySmM36krf8TbjLFHn7eBkLMWdTgo6UNQs+MByD3k9ZH86XOLz73jqQxehD 8g9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="J/A3j23L"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id v15-20020a63150f000000b005b91536981csi2346185pgl.11.2023.12.08.17.04.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 17:04:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="J/A3j23L"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id F1E9A826FAF4; Fri, 8 Dec 2023 17:04:42 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1574991AbjLIBEY (ORCPT + 99 others); Fri, 8 Dec 2023 20:04:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1574829AbjLIBD7 (ORCPT ); Fri, 8 Dec 2023 20:03:59 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2645C19BF for ; Fri, 8 Dec 2023 17:03:56 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 30664C433C8; Sat, 9 Dec 2023 01:03:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702083835; bh=y25TspdV+qLqbmcbn1y+RPSd8+STa8gj+7s0nXWIqSo=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=J/A3j23LirltPnsA17Cg7bvPuTKcWwf8jvLZAK4sEbZlJAOpe2+8X7tawR9FE3w3t Fx8By7Do41Q7ivBEJyv14KM0NGW8JiAsI9BoLesAqPTXFKekzy8/adibFGyYCFQ0+O 91W/yIQtw8rQYaTTpDthezXC8U85kYPKqQZWrrzVpYKsqDzFXMVZFa0UyzeU3DvANh biTiuQobpDUikvi+0g0mkmzdGUKhS0iOvI+PPt60S4zARySs527XoZxEbnUm1rwFMA ktvXBKHgmFRLVVPfit06xx9sbCFrasC0L3C4jhMD/lFoNVmnID5AMZrmb4lYbPuv6m K/cM4AGiSe2/w== From: Mark Brown Date: Sat, 09 Dec 2023 01:02:59 +0000 Subject: [PATCH 13/13] 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: <20231209-b4-arm64-sysreg-additions-v1-13-45284e538474@kernel.org> References: <20231209-b4-arm64-sysreg-additions-v1-0-45284e538474@kernel.org> In-Reply-To: <20231209-b4-arm64-sysreg-additions-v1-0-45284e538474@kernel.org> To: Catalin Marinas , Will Deacon Cc: Fuad Tabba , Joey Gouly , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Mark Brown X-Mailer: b4 0.13-dev-0438c X-Developer-Signature: v=1; a=openpgp-sha256; l=1873; i=broonie@kernel.org; h=from:subject:message-id; bh=y25TspdV+qLqbmcbn1y+RPSd8+STa8gj+7s0nXWIqSo=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBlc7zdabWpx1jnlabpkPLThggY6InxyhArse4xX CoVcO8hAVuJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZXO83QAKCRAk1otyXVSH 0F8rB/9liwVA5gLZFJMc/Pj5zn/eUrlxzYir/9V1OzmeD+iGbXqVVoHRwumIk/n2SpZFcwzW0U/ lmAkZHyueHOR27e4V0ODIu1QuVmYzIPI9nFXXwGuVyUJ6G+niO98MR9Vgv5KH5hw/bWRYnqMeDf u0jdWa7TTFrIfsXYfb4EFgaYIq1zDjdGfO2XfTC8vgijdNGHOT80Bh6HkxqUx6NEqZc+3DWW15R fsCPxt15dzszEX+kmyr0Tuem2aPA0ia4S8e09J7GgV/Kdr5/LNoKSTIhw9eRANHewSSnfLhusBx k9WALFF83AwpIYsDB2pajOi0osFbAknjtGKTlH/MR0F4EXEs X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 08 Dec 2023 17:04:43 -0800 (PST) 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 1c6d1c904750..b2007963523e 100644 --- a/arch/arm64/tools/sysreg +++ b/arch/arm64/tools/sysreg @@ -1903,6 +1903,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 @@ -2133,6 +2168,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 @@ -2531,6 +2570,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 @@ -2590,6 +2637,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.39.2