Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp361888ybl; Tue, 28 Jan 2020 04:40:52 -0800 (PST) X-Google-Smtp-Source: APXvYqy+oaLddf9c5wYkeK8loFetR4/N2/cx1nrPBvVVcfifkcf6iiKLjsACBoEdDctMKTUkmKjz X-Received: by 2002:a05:6830:112:: with SMTP id i18mr15840943otp.209.1580215252498; Tue, 28 Jan 2020 04:40:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580215252; cv=none; d=google.com; s=arc-20160816; b=zD9sJ2nsEzkGNd/74JuN6xrUhDuUjRX03MVx4bE1xQ9k4flBo+FwrpUJrJ5/mOVi0X QE68qOMaoCJKIux0xWnzBYPQWZP7Jnf/I6A2YxNTH7yzVtGvUKh/QfZM7tko1U83OH+6 3qR/I40VHiDdqeP3R5ZET7/XQVbUr8J/LYVp8Db7wptIafpWHJPK26nmAxls1xAINGdb 1OOKL3+n72iNavyqC9BayVsk/1jj092kDHEkN7Ss5cDY/4cOVqmSd+DfdpsZ+hP3wOVe ZRoAA+yC4dQdJ6ITkHH/WQYMrGvZ0+rlboMZR86WcH7HfkVf8qc6FWOjN7KSh7iCL7UN eGRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=6d8c3yYmVsX8mA9uyoavRslgoAwhpNFpoqLODampTc8=; b=INPlldv/M3tkcPGwAJySxYldP1Tem9rTaxzNgjcF+rmSk+tXDr+JE6gOns09p95YDL wP4tUJeNC32e+wbLSrysAe59m22M/RVUsLD9tvcEa6zy7GXFLXpHbLX8p0Jpv4nioY2y K/BDAdmhdDgFLoFVF4/cwWCUE+FPMaLys7vZMX2rMJCJdwjQRlJeoWEymyphuSE+o3m/ jAWgdPe/EGBAEqxyjMuZdC5UrCPwwGK0euVlT2k0u/t10RJvKtV0yjmQt2DiSdW2kNvK H+WKjp2dXN40vcMrXG7HQBwnA8NCFV3IPoB1ZY6t5pKkb6Fub9timDpYSopQnWspRxUs Z2bA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i13si8348313oth.175.2020.01.28.04.40.40; Tue, 28 Jan 2020 04:40:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726240AbgA1Mjj (ORCPT + 99 others); Tue, 28 Jan 2020 07:39:39 -0500 Received: from foss.arm.com ([217.140.110.172]:56258 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725852AbgA1Mjj (ORCPT ); Tue, 28 Jan 2020 07:39:39 -0500 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 D666C106F; Tue, 28 Jan 2020 04:39:38 -0800 (PST) Received: from p8cg001049571a15.arm.com (unknown [10.163.1.151]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 768BC3F52E; Tue, 28 Jan 2020 04:39:36 -0800 (PST) From: Anshuman Khandual To: linux-arm-kernel@lists.infradead.org Cc: Anshuman Khandual , Catalin Marinas , Will Deacon , Suzuki K Poulose , linux-kernel@vger.kernel.org Subject: [PATCH 2/6] arm64/cpufeature: Add DIT and CSV2 feature bits in ID_PFR0 register Date: Tue, 28 Jan 2020 18:09:05 +0530 Message-Id: <1580215149-21492-3-git-send-email-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1580215149-21492-1-git-send-email-anshuman.khandual@arm.com> References: <1580215149-21492-1-git-send-email-anshuman.khandual@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Enable DIT and CSV2 feature bits in ID_PFR0 register as per ARM DDI 0487E.a specification. Except RAS and AMU, all other feature bits are now enabled. Cc: Catalin Marinas Cc: Will Deacon Cc: Suzuki K Poulose Cc: linux-kernel@vger.kernel.org Signed-off-by: Anshuman Khandual --- arch/arm64/include/asm/sysreg.h | 3 +++ arch/arm64/kernel/cpufeature.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h index 054aab7ebf1b..469d61c8fabf 100644 --- a/arch/arm64/include/asm/sysreg.h +++ b/arch/arm64/include/asm/sysreg.h @@ -718,6 +718,9 @@ #define ID_ISAR6_DP_SHIFT 4 #define ID_ISAR6_JSCVT_SHIFT 0 +#define ID_PFR0_DIT_SHIFT 24 +#define ID_PFR0_CSV2_SHIFT 16 + #define ID_PFR2_SSBS_SHIFT 4 #define ID_PFR2_CSV3_SHIFT 0 diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c index c1e837fc8f97..9e4dab15c608 100644 --- a/arch/arm64/kernel/cpufeature.c +++ b/arch/arm64/kernel/cpufeature.c @@ -341,6 +341,8 @@ static const struct arm64_ftr_bits ftr_id_isar6[] = { }; static const struct arm64_ftr_bits ftr_id_pfr0[] = { + ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, ID_PFR0_DIT_SHIFT, 4, 0), + ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, ID_PFR0_CSV2_SHIFT, 4, 0), ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, 12, 4, 0), /* State3 */ ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, 8, 4, 0), /* State2 */ ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, 4, 4, 0), /* State1 */ -- 2.20.1