Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp7286456rwp; Tue, 18 Jul 2023 12:55:55 -0700 (PDT) X-Google-Smtp-Source: APBJJlECL23aL/wOg3yf36LcQCrLGUL44LbmStEg0OHOFBE5C87N2c18dAhteJfzeG6TO/Gz7pGl X-Received: by 2002:a05:6a21:7892:b0:11a:dbb3:703b with SMTP id bf18-20020a056a21789200b0011adbb3703bmr13730147pzc.6.1689710155429; Tue, 18 Jul 2023 12:55:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689710155; cv=none; d=google.com; s=arc-20160816; b=jaSWwHq5Zi56gjBnVCssmrZBEG/vw+e6EQUtHwbOu+iLL9DTOcU/qlhIJsfwXlhy9f Zv3sipi2nohRD6We1BYCLxNjxRl0EAAh+D66fuJMDVaJWO0IrPZgC5CFHDxhln+kW6Cy QBmF4InQX+bOxd5EL5gaRuEneFiccUB5O1EzXaboh6MOEQQPveCIIuV4lb2NDXUS4wE6 8xXYZBA9cb11wdsM8PqyfWTZemIfYmoco98UtM2noS05t8WWO6KrAjNmjksmwxTKg4S8 MDbtcglCDErVtYeyTytkE0NXvCFmu0zTumtATacf9/o5uDw/rM8NZRdm/8YyvxHoYtHe mzdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:message-id:content-transfer-encoding :mime-version:subject:date:from:dkim-signature; bh=Pfumda0O/Bn5ccrEjf4dGkDMbkBF0wgdiykq9dtlQeM=; fh=mmnYMrzza9qIhc2+Z15/1GoW7mAEAg13yyzBwpaiwtk=; b=GSJgK34+jcw04Eop+F5JXV0FR+SIJEzJXIby2Yi3A5mINbOaF4e/f9PsVwlv2UB7Qn GjN9EzceLLEGGl9YDhVhCgNx9Wv/+L/ycZhfsPqF8HNB9zKcTp3rLGWdigMR3Dpeot6/ ZnHvTc1Bl0fr05Okf1nXwxyt0XKa7B/j/EZk5fuaqVyGvR/6uZnyeZXahAirypj02PPE 0gBXCH8sKBvtYtFhbChC4V7fNfkooko2yLuyJOg0s4Tv9WHzTTNssz454DJvYrmwG69W 8+iAxrJa7Uv8HXBo3ltDE07WSqAcmrhVD6TQ1o19TgonvMHIvOFI3MjzZxnFuLQLy12l kl5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Dd1v3n+a; 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 h12-20020a63574c000000b00557899ed8b4si1968114pgm.156.2023.07.18.12.55.42; Tue, 18 Jul 2023 12:55:55 -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=Dd1v3n+a; 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 S229972AbjGRTp4 (ORCPT + 99 others); Tue, 18 Jul 2023 15:45:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229506AbjGRTpy (ORCPT ); Tue, 18 Jul 2023 15:45:54 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C1EC198D for ; Tue, 18 Jul 2023 12:45:53 -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 191C360B99 for ; Tue, 18 Jul 2023 19:45:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7117BC433C9; Tue, 18 Jul 2023 19:45:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689709552; bh=0rN5CSxJDnCuMqJvHrYdXsQ52WEJJPMcuK7y/yvyczU=; h=From:Date:Subject:To:Cc:From; b=Dd1v3n+a46acUabS0xtg5DS8Lg8HgQOsArtsn8JEgsgIJTTY+kgTrzj0lhTD1feQu 1FdCLetRzF6IRtLXMtEab928tNwrda5BgJ3yznq8IxZwUAckrtBTIbwMxjXWw7CMOv TI08ZdJEpNTEm8LfJ4xU0PG57/1RUbi/zB6aNmTvthIx5HlpIFl8a1gIMx63v5vSWO U8qwuyOweh7ErMpAaBAaD+zPbiLLKlVF5sQOq5D/l+q16eqJr189JLMUMeXitHOR81 jpVdjeTzONIj/aDsJVEBTJuw3iwQgKvTCDjCFLZF51XJyfLnSomLklxnP8dRojqCSy jDLCx1fNUaU+w== From: Mark Brown Date: Tue, 18 Jul 2023 20:45:44 +0100 Subject: [PATCH] arm64/cpufeature: Use ARM64_CPUID_FIELD() to match EVT MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230718-arm64-evt-cpuid-helper-v1-1-68375d1e6b92@kernel.org> X-B4-Tracking: v=1; b=H4sIAOjrtmQC/x3MSQqAMAxA0atI1gYcqkGvIi5KjRpwKKmKIN7d4 vIt/n8gsAoHaJMHlC8Jsm8ReZqAm+02McoQDUVWlBnlhFbX2iBfBzp/yoAzL54VK0NkyZm6GUu IsVce5f7HXf++H5lI1PVoAAAA To: Catalin Marinas , Will Deacon Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1160; i=broonie@kernel.org; h=from:subject:message-id; bh=0rN5CSxJDnCuMqJvHrYdXsQ52WEJJPMcuK7y/yvyczU=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBktuvuoNn0zPzmd2bZeawg85F4MyZ+ktLaO8JSzmO1 0Vm0WUOJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZLbr7gAKCRAk1otyXVSH0KsUB/ 9vRmOUHdOjFGPbQF4xn07mtjEXbTQTNFiHnKkF3H3l7z/XcoL9l5ijeFM96zxJXgypi08YhoNuX0cj dae1/zPklYnFMF/5rS3sxDmCueojaLPUhWUw9oMyemzE2aOxACVcro+xaN7J6cox1Pg0YWrGPs3QD/ JLMpMoQ+u+lPpmqBrF+79IBOtCGQfmEMtjRHZM9Iw9mSdRlDyZPaRTc10JODu/kBAa91fKThOJr9O5 v2zBDuCY3JABS55z7Ro2iUD9zMBDYR5fy3QgcnF/8DRJ5QG7DwQvCAnEHktjuKYXY9vwwdxx0EDDr+ obguEajiLzs1MWGVTAM9mofa7y2Vdg X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,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 The recently added Enhanced Virtualization Traps cpufeature does not use the ARM64_CPUID_FIELDS() helper, convert it to do so. No functional change. Signed-off-by: Mark Brown --- arch/arm64/kernel/cpufeature.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c index f9d456fe132d..bcb006390e55 100644 --- a/arch/arm64/kernel/cpufeature.c +++ b/arch/arm64/kernel/cpufeature.c @@ -2708,12 +2708,8 @@ static const struct arm64_cpu_capabilities arm64_features[] = { .desc = "Enhanced Virtualization Traps", .capability = ARM64_HAS_EVT, .type = ARM64_CPUCAP_SYSTEM_FEATURE, - .sys_reg = SYS_ID_AA64MMFR2_EL1, - .sign = FTR_UNSIGNED, - .field_pos = ID_AA64MMFR2_EL1_EVT_SHIFT, - .field_width = 4, - .min_field_value = ID_AA64MMFR2_EL1_EVT_IMP, .matches = has_cpuid_feature, + ARM64_CPUID_FIELDS(ID_AA64MMFR2_EL1, EVT, IMP) }, {}, }; --- base-commit: fdf0eaf11452d72945af31804e2a1048ee1b574c change-id: 20230717-arm64-evt-cpuid-helper-5477a7c469f3 Best regards, -- Mark Brown