Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp46352lqs; Thu, 13 Jun 2024 03:27:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXa/C2cd92Q+zCK65mhtzMrcBUP654eEznbDZiIEiU9aXzRg8qWY6HVLaEBq3ZmAjbd24eXZZxIBMTAhTE9HX1JOU8/hKjrmTeFTfeyeA== X-Google-Smtp-Source: AGHT+IHFrVIFy239d4+HtleLqY4XVbKQYlL7Vj+ZEbYMouUcFuD5znBNUWGekKUNEA9whGS0Lsio X-Received: by 2002:a05:6a20:728e:b0:1b0:14a0:c875 with SMTP id adf61e73a8af0-1b8a9b77a5amr5653295637.1.1718274466012; Thu, 13 Jun 2024 03:27:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718274466; cv=pass; d=google.com; s=arc-20160816; b=DQGzG1ZdCJ2hMdIgt6Zr5TMEhtBjjLZnVkSyd8JVQi534PD09LOG2bV16ep/rxrvPD 63rCcly7nP9ALe0tNfkfJ1HNMATLQcELnB0WjSjYfh1zVBT2G9RY+4bV7aaHFNFIut5h iqKKYRMvMab87vMZ1ZSs4yFitA/Om1naAlGELsbatzzwkph2ZtIRhsrf7dZnJUBY/Pkj vFY8diXQ9TPvCv1ZZWizRknizRW6diGMeIshOxn5RDv2bpfWgrwcf2bBvI+8a9cfu/nu JvaRH9t64uIwsGT7nkeHy5X4hhJ2fRIWMvvAYFhAVthfK6yHB1HFuNapogNhGHfjxGFV RrPg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=jixuxwltnJ2inZAnpBEqM2TQmHs8ZjJ+bSLoowSHZo4=; fh=rssethGWdZCj/S1iN5FoVqAOb/Yk+rgGO+TXf6viWxY=; b=hC1pohG+wQGyjjJ78bdpVYYIXvmw5i+BsoVs81nQIuC1PM81su4+VQousE7Cd4x8F0 GPqAUxdFW5wB/gggC7dHMobKT8IYtvp1TxpjhSDOdVfeZ3hi4PU4KnLFwlv2XVVGJ7Bb ZTTz3+/anA70x2h7UVTSITPt6ZFUBMD7W3M3BRlWBiMe6snP/UmkHUkFlXnNcgby8yW1 3T+F9npaw5RbyQvv1Wi+65WnwlUp5dZm79uh893qWGGsmIf01SRANUgS0l7MUNC3otkz mkTsdwtdXmB43IBOB7tLW3+fo3lanpl2JGyL6dhGDtYUZ2iEiwxPA3pL793b8wALwAzi Aa4A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-213021-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213021-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6fee435199fsi996749a12.518.2024.06.13.03.27.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 03:27:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213021-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-213021-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213021-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 81B5F286EBE for ; Thu, 13 Jun 2024 10:27:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DB82314262B; Thu, 13 Jun 2024 10:27:23 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D14011422D1 for ; Thu, 13 Jun 2024 10:27:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718274443; cv=none; b=KEsXuW63v7hC+NMaI6A7orAd/6/0idJyXNuzRFkbBGDogK3difxFljf7ktZC6RXKF1l0QfXziPRFERydx6VY4It8tbX2w6xrvZhW1BELoYpP7ptt+OYPlZkoOF3IidCm+fmeYoxO2aKqr8CM29oHQWo20JbC3A85Tg0bhzs8Ycc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718274443; c=relaxed/simple; bh=nbuOukV7CZ02btKXgW0+RmyN5gVD4F0yYWswrEiINzQ=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=YPg29+VUXtH+sLie+xltnd/mij99nn/FtkdjcgJ7MPbKAKJDCAkkBw8ohAVKs024yJGuBHBE3vrCRFBM6ZqF9fMY/uPx3MVO6+K8BWhuqA9/w1lC8d0lIgAAIQA5rsDzdr0EpvNlUj9MD2ROoCmYAbz8Qaj0j7Za4vQljSchFU8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com 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 DC2071063; Thu, 13 Jun 2024 03:27:44 -0700 (PDT) Received: from a077893.arm.com (unknown [10.163.44.128]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id A08723F5A1; Thu, 13 Jun 2024 03:27:16 -0700 (PDT) From: Anshuman Khandual To: linux-arm-kernel@lists.infradead.org Cc: mark.rutland@arm.com, ryan.roberts@arm.com, Anshuman Khandual , Marc Zyngier , Oliver Upton , Catalin Marinas , Will Deacon , Mark Brown , kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH V2 0/2] arm64: Drop ID_AA64PFR0_EL1_ELx_[64BIT_ONLY|32BIT_64BIT] Date: Thu, 13 Jun 2024 15:57:08 +0530 Message-Id: <20240613102710.3295108-1-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This series replaces custom macros usage for ID_AA64PFR0_EL1_ELx_64BIT_ONLY and ID_AA64PFR0_EL1_ELx_32BIT_64BIT fields, thus finally just dropping them off completely. This series applies on v6.10-rc3 Cc: Marc Zyngier Cc: Oliver Upton Cc: Catalin Marinas Cc: Will Deacon Cc: Mark Rutland Cc: Mark Brown Cc: linux-arm-kernel@lists.infradead.org Cc: kvmarm@lists.linux.dev Cc: linux-kernel@vger.kernel.org Changes in V2: - Replaced FIELD_PREP() with SYS_FIELD_PREP_ENUM() as per Marc Changes in V1: https://lore.kernel.org/all/20240418053804.2573071-1-anshuman.khandual@arm.com/ Anshuman Khandual (2): KVM: arm64: Replace custom macros with fields from ID_AA64PFR0_EL1 arm64/cpufeature: Replace custom macros with fields from ID_AA64PFR0_EL1 arch/arm64/include/asm/cpufeature.h | 4 ++-- arch/arm64/include/asm/sysreg.h | 4 ---- arch/arm64/kernel/cpufeature.c | 4 ++-- arch/arm64/kvm/hyp/include/nvhe/fixed_config.h | 10 +++++----- arch/arm64/kvm/hyp/nvhe/pkvm.c | 4 ++-- arch/arm64/kvm/hyp/nvhe/sys_regs.c | 2 +- 6 files changed, 12 insertions(+), 16 deletions(-) -- 2.30.2