Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4018087rwd; Tue, 23 May 2023 01:42:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4otVNgtJsSNT8izQbn89v7hSEGRrlWZmayOh4avOmrX0SnfHweIjn00wm/VOPINKL48Acp X-Received: by 2002:a17:90a:f86:b0:252:c3b7:6689 with SMTP id 6-20020a17090a0f8600b00252c3b76689mr11149110pjz.49.1684831369906; Tue, 23 May 2023 01:42:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684831369; cv=none; d=google.com; s=arc-20160816; b=QKaX/4IFBRsgrlSRrEuQ4uPkqEfS4VWmi6wRXiIrjmZi7jpVdtuTNk1UK/cB5ho3Hz MQfBXYxfk/GGU91xQARSdXSeTFAVxZU0kPbOfOV5xgaNCh8SOKtU2qPt/lbWIfcuypyb GEwpt/5wqiEmlWm25JYgtcs71vfWmb61iWn7RVYtUFm/uDCwLBc7VMp1nixY/WLvjrhg k20A7lD++zmeV4BIreIfzGHD3/R37wUGVwdHo/rbk0mWJ6zf4abBGkHkyGznQMXsOa5Z 12oMZrti1IxlzVJoIaZpQk3qaIK70LKIfsiotnqjhza3G5QHExHXkfy1K0W4EZKNpBW3 w1/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=LpOsE3/nvyZFQ6qT8l82e25zttZzXnGS9PS0I5hAY6w=; b=hO5z+4Tm4CHOqIrapfPC7Ame0RGp9ktqmOHDC7i/YAuhIhcRW+yOHqtoUuVB+TzrmW Gr0SGQDXpknxDLBLSnAcorXHay6DEybKo9YthjIOhKw+fkAAm3A7YHj+3A4gpMb0qweN CawrAwZ6HPRH3cfOJNql7h5ik6j/lPQovm/EoV1/3yOftq7GjL6cUxmO2ERTQNOfDHHe djD6arNFvkCEss0c45QTlsjELSxckmVuOaFzFpe//+0y14zhXzatCz6BWYyuW0nDiX7N jPdaYQjd/FNTvLCFsA6K7m9u0VyE27J6ACKeruPIylbnxGZ16NjfJ5J39WXsY04sUCjk OGCQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cf17-20020a17090aebd100b002496cedea8esi2937296pjb.24.2023.05.23.01.42.35; Tue, 23 May 2023 01:42:49 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235764AbjEWIZW (ORCPT + 99 others); Tue, 23 May 2023 04:25:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235793AbjEWIYR (ORCPT ); Tue, 23 May 2023 04:24:17 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5C3711FC3 for ; Tue, 23 May 2023 01:21:48 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D7BF9139F; Tue, 23 May 2023 01:22:32 -0700 (PDT) Received: from [10.162.42.7] (unknown [10.162.42.7]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id AF07C3F762; Tue, 23 May 2023 01:21:44 -0700 (PDT) Message-ID: Date: Tue, 23 May 2023 13:51:41 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH 5/5] arm64/sysreg: Convert OSLAR_EL1 to automatic generation Content-Language: en-US To: Oliver Upton , Mark Brown Cc: Catalin Marinas , Will Deacon , Marc Zyngier , James Morse , Suzuki K Poulose , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kvmarm@lists.linux.dev References: <20230419-arm64-syreg-gen-v1-0-936cd769cb9e@kernel.org> <20230419-arm64-syreg-gen-v1-5-936cd769cb9e@kernel.org> From: Anshuman Khandual In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,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 On 5/23/23 13:43, Oliver Upton wrote: > On Mon, May 22, 2023 at 05:22:44PM +0100, Mark Brown wrote: >> Convert OSLAR_EL1 to automatic generation as per DDI0601 2023-03. No >> functional change. >> >> Signed-off-by: Mark Brown >> --- >> arch/arm64/include/asm/sysreg.h | 3 --- >> arch/arm64/tools/sysreg | 5 +++++ >> 2 files changed, 5 insertions(+), 3 deletions(-) >> >> diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h >> index 09de958e79ed..3b51e532caa9 100644 >> --- a/arch/arm64/include/asm/sysreg.h >> +++ b/arch/arm64/include/asm/sysreg.h >> @@ -140,9 +140,6 @@ >> #define SYS_DBGWCRn_EL1(n) sys_reg(2, 0, 0, n, 7) >> #define SYS_MDRAR_EL1 sys_reg(2, 0, 1, 0, 0) >> >> -#define SYS_OSLAR_EL1 sys_reg(2, 0, 1, 0, 4) >> -#define OSLAR_EL1_OSLK BIT(0) >> - >> #define SYS_OSLSR_EL1 sys_reg(2, 0, 1, 1, 4) >> #define OSLSR_EL1_OSLM_MASK (BIT(3) | BIT(0)) >> #define OSLSR_EL1_OSLM_NI 0 > > Should the OSLSR_EL1 definitions be rolled over to the generated scheme > as well? Agreed, was about to ask the same question :) Any reason it got skipped ? > >> diff --git a/arch/arm64/tools/sysreg b/arch/arm64/tools/sysreg >> index a5ae0e19fc9f..84df0b7feb45 100644 >> --- a/arch/arm64/tools/sysreg >> +++ b/arch/arm64/tools/sysreg >> @@ -83,6 +83,11 @@ Res0 5:1 >> Field 0 SS >> EndSysreg >> >> +Sysreg OSLAR_EL1 2 0 1 0 4 >> +Res0 63:1 >> +Field 0 OSLK >> +EndSysreg >> + >> Sysreg ID_PFR0_EL1 3 0 0 1 0 >> Res0 63:32 >> UnsignedEnum 31:28 RAS >> >> -- >> 2.30.2 >> >