Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp8299143rwp; Wed, 19 Jul 2023 08:01:27 -0700 (PDT) X-Google-Smtp-Source: APBJJlFh5+K0tvzB1FtuRx4pbsyVNBlTmpdyssCw7gPsWTeFDghJ8HNec49Uh5C51HTaQrTVNACG X-Received: by 2002:a17:907:3f22:b0:992:103c:43fa with SMTP id hq34-20020a1709073f2200b00992103c43famr2776663ejc.30.1689778887171; Wed, 19 Jul 2023 08:01:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689778887; cv=none; d=google.com; s=arc-20160816; b=QuIzaVwamS/xKxuXRBjnuPZgHAn6iAMCpkxS7ZLq+sQl5//gu1syyTihfsZeE5vA3U MvLBrU+jwdZAGj90jPHsqlrt+7ZiOWyxG3VLQkzvmqamSES3czwNER+h+yw9pNJdIhiR t6BN5hvHUuRHsG/PB2YVGXbEJQQgZ2ketA6ezbNaF3aGODXvWjnDEzjOP71Vo2J4Ff67 wIW68rp2GxzusLPqEmZDvOLf2vnD/V+XeW+81/KcBM18uqATkQutFqPOwy3VNh5fKpq8 OoWElf1UR1/o1wx3zuJXFKx/oEPg3o52p5HB+8LqLCDrDCIufoUIwK5TyJzVOtafpXUs Xf/w== 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:mime-version:date :dkim-signature:message-id; bh=qB35vgPnpDa8L5WeWPGMzlEuhzzMC0xS7q+crMBgfF8=; fh=5snwNXL+fbkLSAOooU8nXPXFbHeVVwzOEOJ4Cv1LaLQ=; b=YQ2r9IOzZL3WrwjiZMD9ObDJhyStL115r0Jp6aiaAcOtdVaPQF5K1XWE4B8Q6dCuHZ jkrKGU7MnvFYl32FnG8JRf10lnEUsfhSdgyVEHF4MjUH+YHcpv6f6j+bIfxUGGTPV4Wa suSfmkRieLBUVun477NXdH7HCqNRwE7p+kowbgwC4IDAKejwn/+T8zA6TZBGcCblzCN+ i+CukCISItUxp3djQj6RLA6Uy6yKRAeAafluIgCXQHLvSGsE8L49uNzGy9LB+vLwSTWS 9tGyAptMO/glXcBreGbJOKNu/bPnGK5Kq5DgYs1VhLKS05GpQtRlD1+oB/fgrP+9drMY CJEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=d9SnxG3T; 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=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j21-20020a170906279500b00992be03096dsi2672967ejc.846.2023.07.19.08.00.58; Wed, 19 Jul 2023 08:01:27 -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=@linux.dev header.s=key1 header.b=d9SnxG3T; 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=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231279AbjGSOye (ORCPT + 99 others); Wed, 19 Jul 2023 10:54:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231403AbjGSOyT (ORCPT ); Wed, 19 Jul 2023 10:54:19 -0400 Received: from out-7.mta1.migadu.com (out-7.mta1.migadu.com [95.215.58.7]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F70CC7 for ; Wed, 19 Jul 2023 07:54:18 -0700 (PDT) Message-ID: <77417a3a-597f-b503-acc0-9c6afcaac511@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1689778454; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qB35vgPnpDa8L5WeWPGMzlEuhzzMC0xS7q+crMBgfF8=; b=d9SnxG3TtlqruVRMYaa9eD7lgF0vFKmI18W/HAuJmJYzMw3MoYiwm/jvlNVwQ55UYRMagL QPKpi4lklLfhy/htPUm1DD1sJYdd/Kw1p4z7HFrXPiSJjT/m8pGJLEbj6T8Q74hYQWGsYE elYNl2aJ0nl8xZRQcjbeh5TdIVvjdmA= Date: Wed, 19 Jul 2023 22:53:40 +0800 MIME-Version: 1.0 Subject: Re: [PATCH] arm64/cpufeature: Use ARM64_CPUID_FIELD() to match EVT Content-Language: en-US To: Mark Brown , Catalin Marinas , Will Deacon Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20230718-arm64-evt-cpuid-helper-v1-1-68375d1e6b92@kernel.org> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Zenghui Yu In-Reply-To: <20230718-arm64-evt-cpuid-helper-v1-1-68375d1e6b92@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 2023/7/19 03:45, Mark Brown wrote: > 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) > }, > {}, > }; Reviewed-by: Zenghui Yu