Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3054802ybb; Sun, 12 Apr 2020 22:48:55 -0700 (PDT) X-Google-Smtp-Source: APiQypKJnrFjf03yxdvUWgwjaAGjtwg6bsGR5Yu8tckJpbpKVbwJBMiKGtTsX4rNB/zYeh7IzBDk X-Received: by 2002:a05:620a:15a3:: with SMTP id f3mr13741761qkk.15.1586756935362; Sun, 12 Apr 2020 22:48:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586756935; cv=none; d=google.com; s=arc-20160816; b=fbJJxhkWOf5I6ziEHmu1LnE1auAEG+a/7d8nClqY7v0keh7cwz4xmTl0u6aKRaFB8G 5e2MGJMVn5PfKif6ff1/v4hNr6zt+TQViwKfmHxDtsS9+ElwdWkP4xZNDd8+HHAcY+cm LBCMyNUgY4F8JlBoA2kQPJiNVIjPrgq0fVTg+tW7fStob9BJ5bniS/TwkjyzkmK6BaI4 ZaiVomv5xc34naJBDIazCkAVPjyIMr3XB4SyFpRT39mi88szzTaSdQAqB6dMcsMxY+qS PVJ7g6S26xc835n8rE7uI2hVlXffD6HzLcwu2BPRmZYysHkbEfwIAJMLaK6u1aVOdRqh NvRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=Lwz8snHHbxZ+NwskxzNwDGAKCeZhypj/lTja9uoh06U=; b=J/AJfEIHj4pEL5FjGBvHW8aO5iM6xwu1zcws3EkJ0gIJhWCE2h4pSlMaZYtJ+5ccKr 5BKuj3fKhJolibXFQnRmwN1/ZSXBdZPKztt6c+wnVz2obPYKZ5sYNa8ntg6su7z/Knan x3IAPr+oi3WX+uQZRjB2wPAOAklUOh8Utfts99+Nl+Aztjygu3l7qv8+iA2G2/5RRukE sATSNoO0IG1gmIPxGtG65zRcOWQWno963C5AIduhW6wJGh58wig1/Q4SVcHP6/RgxZjg /O/cpRyypkaX9t8QfwqtFFfQLoGlI6WGXseerx8UZMj3FIGCc2pGRe2Bu5saUteOfX41 fw3g== ARC-Authentication-Results: i=1; mx.google.com; spf=neutral (google.com: 209.132.180.67 is neither permitted nor denied by best guess record for domain of linux-kernel-owner@vger.kernel.org) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org ([209.132.180.67]) by mx.google.com with ESMTP id i91si4557074qtb.121.2020.04.12.22.48.41; Sun, 12 Apr 2020 22:48:55 -0700 (PDT) Received-SPF: neutral (google.com: 209.132.180.67 is neither permitted nor denied by best guess record for domain of linux-kernel-owner@vger.kernel.org) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.132.180.67 is neither permitted nor denied by best guess record for domain of linux-kernel-owner@vger.kernel.org) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728570AbgDMDfh (ORCPT + 99 others); Sun, 12 Apr 2020 23:35:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.18]:51356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727513AbgDMDfh (ORCPT ); Sun, 12 Apr 2020 23:35:37 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7349DC0A3BE0 for ; Sun, 12 Apr 2020 20:35:37 -0700 (PDT) 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 4227230E; Sun, 12 Apr 2020 20:35:37 -0700 (PDT) Received: from [10.163.1.49] (unknown [10.163.1.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 811A43F6C4; Sun, 12 Apr 2020 20:35:35 -0700 (PDT) Subject: Re: [PATCH 2/6] arm64/cpufeature: Add DIT and CSV2 feature bits in ID_PFR0 register To: Will Deacon Cc: linux-arm-kernel@lists.infradead.org, Catalin Marinas , Suzuki K Poulose , linux-kernel@vger.kernel.org References: <1580215149-21492-1-git-send-email-anshuman.khandual@arm.com> <1580215149-21492-3-git-send-email-anshuman.khandual@arm.com> <20200409125526.GC13078@willie-the-truck> From: Anshuman Khandual Message-ID: Date: Mon, 13 Apr 2020 09:05:28 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20200409125526.GC13078@willie-the-truck> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/09/2020 06:25 PM, Will Deacon wrote: > On Tue, Jan 28, 2020 at 06:09:05PM +0530, Anshuman Khandual wrote: >> 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), > > Same comment as CSV3 here. Why is CSV2 being treated as strict here, but not > in the aa64* register? Sure, will change. > > Will >