Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1266872rwl; Wed, 12 Apr 2023 10:15:19 -0700 (PDT) X-Google-Smtp-Source: AKy350aTGBvQoYwLA41xM3vctIztPsy+e3fvjgI+Id1P04XYMK2JhDGmTijvPMU7hgDwWccjALAe X-Received: by 2002:a05:6a20:6a9e:b0:eb:e22b:efa6 with SMTP id bi30-20020a056a206a9e00b000ebe22befa6mr120583pzb.51.1681319718799; Wed, 12 Apr 2023 10:15:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681319718; cv=none; d=google.com; s=arc-20160816; b=jHcloeQLV5x6B7A2j4I6ic9NlIboWszb7CGQYq5ZkmSmvkOV5bK+0WNYFY5dpessHC 4RL76gzDSoeuyKa0uMK6YCHUKPQa5pSrjKsexLzD/BTnD9PEJdc2bcHCP8FPSu0LDDVY dZ6p/OMnsFLnbF/WxDg9thgv7xa/nx1yzhhw8V3o8UNYYS6YBwZMH+z98/nNxXiSt7sS XPfaeH95l26/936zHP/EorROc9tExGfaMfaQL9/w+beSUOrHThU7DvnYp06cOo5KXqdH +56gzJvB3cRIJAQHzDv80yZj7/S7UDYmfNEPUYw6HyryHEbwE2jY13OaZfrD//NuJtig YlFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=0Si+Bn7iJjgIYQMWig1+0qipIaQSsgDaOIlRat+gTaU=; b=zIs2jkm66von/WtolimS0KQkwJYKWGCWCf11QEn2k5qCPycB8Oq/X3gS57b1iXKlSV hRBTcCUP0hnKkXuZc/eJvYrYVcywQueVZgYG0qNKxMb7I14wpzWcod8ozEbBWkQVe5hQ /7KGHSsDbbx6b1ILa0i8Q6xx/hcG7HIsgqXa72ejXUa7w7znMW7vbQ8XMBWdZlWtY25l u4pyp+JJw1zYoS3fcplLB3RXAdLzigxESbuKmVmXuV/Cx5SgmC+1oe8x6y6seTFHQ0kp reSgvCzosY13bmLECQXgWiLtvBOUqck8Br5lkeYS8y1jwql15QeCLSrLBJNFdMf3nkGg tDpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DZW73upS; 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 w190-20020a6262c7000000b00627f03d6e5csi5020864pfb.334.2023.04.12.10.15.06; Wed, 12 Apr 2023 10:15:18 -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=DZW73upS; 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 S230351AbjDLROT (ORCPT + 99 others); Wed, 12 Apr 2023 13:14:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230409AbjDLROO (ORCPT ); Wed, 12 Apr 2023 13:14:14 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A1C9658C for ; Wed, 12 Apr 2023 10:14:03 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0873B637AE for ; Wed, 12 Apr 2023 17:14:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 23C8FC433EF; Wed, 12 Apr 2023 17:14:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681319642; bh=12KprelI2/Vt7xRzp4F0cSteVB2Zn4nZCFdYvgfDKhw=; h=From:Subject:Date:To:Cc:From; b=DZW73upSKWVAOAVvAStc4AmNtkc9r0VMypxtQGB+dZV6LrWnnn0Z5M398esgBiHDs AD9TVC9bA7Qysh0db+Xi4wBZNe7qVjzt/q77jkagR5zDREmmgZGWoJ5mWJiUO5j7j3 3ZgxUCiKDvVjsJJSq0tAYbgTvQtMbrwBDgaZgmwHTMYZwRK/tYbAMc6ELPa5V3BCmT sVFQW1/nfN/XmagNBct+j9w3IHA5aPYUGe2ahUURciPHi68BHrIiHuRrcnpjHrnJy1 oF3x2bKKTIWONt31LzR9r1Xvs28eOdXhCXINmPt+AMaqfIc4BLgfxIdbdrKPuR1nzV u/2EsTCxlUWpg== From: Mark Brown Subject: [PATCH v2 0/3] arm64/cpufeature: Use macros for ID based matches Date: Wed, 12 Apr 2023 18:13:28 +0100 Message-Id: <20230303-arm64-cpufeature-helpers-v2-0-4c8f28a6f203@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIALjmNmQC/42NQQqDMBBFr1Jm3SlJFIWueo/iYkxHE6oxTFRax Ls3eoLyV+/D/2+DxOI5wf2ygfDqk59CBnO9gHUUekb/ygxGmULlIMlYlWjj0jHNizA6HiJLQqq V0QWZsuQa8rylxNgKBeuOg3mMRxuFO/85hc8ms/NpnuR7+ld9tH+oVo0KW13ZrqjIEtPjzRJ4u E3SQ7Pv+w/nTk1m1wAAAA== To: Catalin Marinas , Will Deacon Cc: Suzuki K Poulose , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Mark Brown X-Mailer: b4 0.13-dev-00303 X-Developer-Signature: v=1; a=openpgp-sha256; l=1172; i=broonie@kernel.org; h=from:subject:message-id; bh=12KprelI2/Vt7xRzp4F0cSteVB2Zn4nZCFdYvgfDKhw=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkNubV47aHgtbyATuJF0KGHKr3eF723EvZVSi19Ma1 wFPDq+OJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZDbm1QAKCRAk1otyXVSH0CcdB/ sEN/VmHc0+BouttCfQpR+GjH7nEBfOCV3MxmpgXiS7YDaEUJJlm9SSqiQ4xvC5QEACdNJiQDW6DKYg XDCNdtoy631vwVZI0w1023OS6TKz95TgNeCIDg4DsSs6PZV5EXRck2m6i/Prxv+8sfhVeFm30/i/oN UMOLBKFEkz9dvubb6TPQALrV6C+dFghRIgpLQcg7cN1MALcrxgQhb8yZ78WxvSNAlP/8pz2IFYiPVV CL5hJ+cQynsVeolYb4DLMM/vdpXsQG2fxe2VEys7ed87AWdo46eUIdf1J3G035AMvDXIcvByTMTPd1 n5ogmYl9Qn6fz72y3njF8FJmm0FrHU X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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 As was recently done for hwcaps convert all the cpufeatures that match on ID registers to use helper macros to initialise all the data fields that the matching code uses. The feature table is much less of an eye chart than the hwcap tables were so the benefits are less substantial but the result is still less verbose and error prone so still seems like a win. Signed-off-by: Mark Brown --- Changes in v2: - Re-add missed .matches in WFxT. - Rebase onto v6.3-rc3. - Link to v1: https://lore.kernel.org/r/20230303-arm64-cpufeature-helpers-v1-0-b16cf36acaea@kernel.org --- Mark Brown (3): arm64/cpufeature: Pull out helper for CPUID register definitions arm64/cpufeature: Consistently use symbolic constants for min_field_value arm64/cpufeature: Use helper macro to specify ID register for capabilites arch/arm64/kernel/cpufeature.c | 271 +++++++++-------------------------------- 1 file changed, 59 insertions(+), 212 deletions(-) --- base-commit: e8d018dd0257f744ca50a729e3d042cf2ec9da65 change-id: 20230303-arm64-cpufeature-helpers-a70213a244e7 Best regards, -- Mark Brown