From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 985D3EB64DA for ; Wed, 19 Jul 2023 14:54:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=q1EhhDDc1yGh9Fs1dl/Lzldv8rhoc28V3YMcFDxPjoc=; b=JdUmPoJGWksf+1 IMlMnm0KTeJGZRbnYYYQsaM5KzDbc+k7hbbEclXXj/4TqBbHXAEW8z8j2oxyWMeMCb6mbFw1NQi7a BxpNbb9/JLvte0qMLkvreZbUS51CTQJ0S2vdDXJ7RQrf5VMVD4Bj8DfKe5aKFacP+ogjf4E+5BKhz KBrG/FqAAZpaSGX3BlgSyUwcZg2WtOcnwL3mQdM7+nt4wUXm+IE9KdfyOq0Dhaxh+Mx8rpImIqYhf YzYnLmZZOYzGn+1DeZWSlHsv+QgTu5xFkbBniWDvsrjrCRkoXlUMaeIvudVUsD/Ny6rlq7ztN2XTL zxhTpqOFOGMdnwDzpXxg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qM8ZN-007pAF-2n; Wed, 19 Jul 2023 14:54:25 +0000 Received: from out-10.mta1.migadu.com ([2001:41d0:203:375::a]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qM8ZJ-007p7T-1x for linux-arm-kernel@lists.infradead.org; Wed, 19 Jul 2023 14:54:23 +0000 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> X-Migadu-Flow: FLOW_OUT X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230719_075422_119808_EB90F078 X-CRM114-Status: GOOD ( 13.31 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel