Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp6253561rwj; Wed, 21 Dec 2022 12:52:28 -0800 (PST) X-Google-Smtp-Source: AMrXdXt41/pqMsFN/k8zBLr0+P+DvS0H3/YeB9LmCTtj+mpqNLMpWAZPi8ED4r4k1S1W00d8Wybu X-Received: by 2002:a17:902:d18c:b0:189:66dc:4af5 with SMTP id m12-20020a170902d18c00b0018966dc4af5mr2652911plb.13.1671655948577; Wed, 21 Dec 2022 12:52:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671655948; cv=none; d=google.com; s=arc-20160816; b=yGBK7PX90d+yfOJRflAN1ghZMlY60lpKPsjP1rz+4SVaZcgsbU5h4WgDNccuK+s9KJ smvVY4lWT8ioPmLwqx9TjVcL604IgFMCuTGHvBqvMQISfmLO6N8YJ+9XldjRr7rigny4 pzy6FLXbN2zWTSRwVdx8TeLFyK3hbdDRxtg4ZZediXIaW8et82pjGGHkMm+FW274fo4y F5LTPmauBz5XSVkO9gWFgbCtkod4+5PUifcdpMq8a+4wgagA80px2/UJLlr+1Csf947f 0KLztNtfOMUFzI9vLOwT9Q+D9/8eb6QfNMqtA8EkTtH51nAZB16gLDGcH2LHoBhpB8ZF kRAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from :dkim-signature; bh=cbFQ+J5fs5BdCa+m7U3HiXNal18DTSvVi/iSf3zznx4=; b=d80C2qxMRHCGqVuJS6ut7juA47nUIIHRUAOh+y7+AtyV1n2LyRmBSI56NeA9SdoCv4 Lki4u1Qa7wlF+KAvD70Ht/bFWIdV/FXpZzcUTX8KYGBCy3IfY01tnwcn2ebir1rUrW7a cHCvpUlosTrkJ7IZGuKG5MGuk92e0XqnL1/iYnkdCADWl0T1xMiJ9Xv4ciSFlISIXQHG DYZiifWVgV41WuGnpaDcfZjbBLxdZ0ZPi/KunrnDDvB0+14IUApiTk5gAxTbx82P7r1d hhDLxI2Mm1V10Hp2V3gHIz5MyJb4kEDYUTdtbRfz1bCmKfyk7INWoA7vlsyHymx33Vhn qujw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@daynix-com.20210112.gappssmtp.com header.s=20210112 header.b=18h10GUg; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l3-20020a170902e2c300b001871e838ba9si15129662plc.344.2022.12.21.12.52.19; Wed, 21 Dec 2022 12:52:28 -0800 (PST) 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=fail header.i=@daynix-com.20210112.gappssmtp.com header.s=20210112 header.b=18h10GUg; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234792AbiLUUki (ORCPT + 67 others); Wed, 21 Dec 2022 15:40:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234606AbiLUUke (ORCPT ); Wed, 21 Dec 2022 15:40:34 -0500 Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF6ED6580 for ; Wed, 21 Dec 2022 12:40:33 -0800 (PST) Received: by mail-pg1-x531.google.com with SMTP id 7so12440pga.1 for ; Wed, 21 Dec 2022 12:40:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=cbFQ+J5fs5BdCa+m7U3HiXNal18DTSvVi/iSf3zznx4=; b=18h10GUg0vVIZjuVhPGsjv6haTyX1xXm0fs1oK6cXpMzO9Q+tV38Yokj9e74NrYojp FeNHxIzWBf2ySgHYIzgLjcGesUuvFH6a+Srq4hqQsWy/p97WPv3c0gdTH2FOIwmniMkW zv6O5Skz7TQf3tDU07Vh8+ZcGaFBCwx7+ORX3ryJurzUZALXh29abwAuL/ZuNcxeD+U/ HVOlKOv3qgi2G+b14vQqmHWCfjxGnohvzeC4FJ2DiYjDFjMv3NLr1MYlyP6M/s1/MD7C hOwrViSfyFkVVjfiCbn4+COqzMKTLuMnlpTg4C6KlTqKKSKr8v/hd1Z+0ijSgB39FxNe JI3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cbFQ+J5fs5BdCa+m7U3HiXNal18DTSvVi/iSf3zznx4=; b=PhjHqYEtxPt6tPfhBh7zm4BGaIwqYtey22XQRZSSgg2iovqqL5karyGh6DDDxG4okj ZopbkzfCk5r8JYiUevv/sFKXAAQWlTlnv5WwfMjG3XzorNKdzHeNyLutoC75hJMfMjBA R7/efNnXju3nFZ2N9xk3smk8psz5erPFDRnZtXnT4c4JmvJp1wxRUYcfd04gSRTj/HB0 6S877VK3hxm1H1VviZ7txOvemq/D60gmKCexL9RYHqaBX0evKrbQXytXrUsTuHrNdpuu bVVslj192UC98cLOeCCo98XGgNCNyydgKDnmuywAk+6191j+1LSgZRvua7eeHCPN3KT2 vM0g== X-Gm-Message-State: AFqh2kp31CW12+NT4bcSaIU6DlC5jTmJM2+a5DhFO24osP/iJDaNzX9i qEB7gMNlbay7mUhNEDlcOy9IRA== X-Received: by 2002:a05:6a00:26ee:b0:578:777e:7f18 with SMTP id p46-20020a056a0026ee00b00578777e7f18mr3088234pfw.3.1671655233393; Wed, 21 Dec 2022 12:40:33 -0800 (PST) Received: from fedora.flets-east.jp ([2400:4050:c360:8200:8ae8:3c4:c0da:7419]) by smtp.gmail.com with ESMTPSA id r4-20020aa79884000000b005763c22ea07sm11017784pfl.74.2022.12.21.12.40.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Dec 2022 12:40:33 -0800 (PST) From: Akihiko Odaki Cc: Mark Brown , Marc Zyngier , linux-kernel@vger.kernel.org, kvmarm@lists.linux.dev, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, Mathieu Poirier , Oliver Upton , Suzuki K Poulose , Alexandru Elisei , James Morse , Will Deacon , Catalin Marinas , asahi@lists.linux.dev, Alyssa Rosenzweig , Sven Peter , Hector Martin , Akihiko Odaki Subject: [PATCH v4 2/7] arm64/sysreg: Convert CCSIDR_EL1 to automatic generation Date: Thu, 22 Dec 2022 05:40:11 +0900 Message-Id: <20221221204016.658874-3-akihiko.odaki@daynix.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221221204016.658874-1-akihiko.odaki@daynix.com> References: <20221221204016.658874-1-akihiko.odaki@daynix.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert CCSIDR_EL1 to automatic generation as per DDI0487I.a. Signed-off-by: Akihiko Odaki --- arch/arm64/include/asm/sysreg.h | 1 - arch/arm64/tools/sysreg | 10 ++++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h index 7d301700d1a9..910e960661d3 100644 --- a/arch/arm64/include/asm/sysreg.h +++ b/arch/arm64/include/asm/sysreg.h @@ -425,7 +425,6 @@ #define SYS_CNTKCTL_EL1 sys_reg(3, 0, 14, 1, 0) -#define SYS_CCSIDR_EL1 sys_reg(3, 1, 0, 0, 0) #define SYS_AIDR_EL1 sys_reg(3, 1, 0, 0, 7) #define SYS_RNDR_EL0 sys_reg(3, 3, 2, 4, 0) diff --git a/arch/arm64/tools/sysreg b/arch/arm64/tools/sysreg index 8f26fe1bedc6..097d6faafc87 100644 --- a/arch/arm64/tools/sysreg +++ b/arch/arm64/tools/sysreg @@ -873,6 +873,16 @@ Sysreg SCXTNUM_EL1 3 0 13 0 7 Field 63:0 SoftwareContextNumber EndSysreg +# The bit layout for CCSIDR_EL1 depends on whether FEAT_CCIDX is implemented. +# The following is for case when FEAT_CCIDX is not implemented. +Sysreg CCSIDR_EL1 3 1 0 0 0 +Res0 63:32 +Unkn 31:28 +Field 27:13 NumSets +Field 12:3 Associativity +Field 2:0 LineSize +EndSysreg + Sysreg CLIDR_EL1 3 1 0 0 1 Res0 63:47 Field 46:33 Ttypen -- 2.38.1