Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1618902ybb; Thu, 9 Apr 2020 05:56:47 -0700 (PDT) X-Google-Smtp-Source: APiQypL58/OCQQzBYtJfXYRGGViNwaTb6b+FiJfswnDy0td5CkMZv/JP0rM6QznHtm7T5AGSreGK X-Received: by 2002:a05:6214:17c8:: with SMTP id cu8mr12830892qvb.178.1586437007169; Thu, 09 Apr 2020 05:56:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586437007; cv=none; d=google.com; s=arc-20160816; b=uU2+32kEeJJFMH/5458F2GlBXfIbT8hH9d3kDYalfxcO8s5gvvhOKK3H2pDpL6vpjj 5ewoPITQyAgTw+ZEAr2go0e3AfZhQ4I5Gmn1922GNUDwg+52xtaHCO/FZlJhMNPJzKHg hWZg52A2kM66YKpnpK47OTJch6DwGyf4oe0UDFSPgdJUYnFfutVHFiicfUZpNXvPuWPw 2AFiLWn5VRPrVtSctHnKSWkiACyMZdKRs2cyUNpdd6MyCPpCJ+cr4PM5DF46lMF0QcQe PRoCUV06JQfJxR2J+JkB4Aj3oOHDH0q0xuNuggoRhDtFLu81V1VEmigkruxZfXFCZyU8 25rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=IgrzRB/cqnGxL4Y0HTjsqYO+7jWANHbbxgFZ6x5ew8o=; b=YMpusUZC/kR+jzT/C2Gvtm6QLQOtzbKvv5xPVslqHjqZHhe3DLiDacfDI6rYt9xKJz PxkqFLhzdFA6oYaeBkBeor7eYSBw/G2OnwsvCw+5V9+Nyoxx84pw0pEODQjB8zQKHR9L saSVrsbjITpzzjj1vQGpxZye01CA5leew/aBA2aTzjRwYX9pFuECViPJGRZ8yxUTIb5k eh+FJFCns1ZAlI0eh8wPC4QbcL+w5zz0SZpPM5Sgbn6m8zeq3wyTYR7X8KJNKBYSIUEa l6eXC1rDkXBZVTg14mC9F2E7s5VZ4GR5c4UA/AQk0d1emYmFxQ9Cnn9OnoC2C2KraJeT JhDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dAsFkmOC; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d6si5380871qtq.379.2020.04.09.05.56.30; Thu, 09 Apr 2020 05:56:47 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=dAsFkmOC; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726734AbgDIMza (ORCPT + 99 others); Thu, 9 Apr 2020 08:55:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:41178 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726650AbgDIMza (ORCPT ); Thu, 9 Apr 2020 08:55:30 -0400 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9EECF20B1F; Thu, 9 Apr 2020 12:55:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586436930; bh=ouqY93umzCgNrgbre1T56T3qF+4V8KNH3EWaJaSL00Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dAsFkmOCqOEblMO+YurrQIDGlK+ibLPqbQH6IgSjK7cSFtOpljw13l1iBvg4FtfEE tHkZMSReJ+q3n5pAX3qgKzxG+1AvCFOOehg+3hYSfFrU7RQMNj2LQQDTjN9iovbeXD sKSd0caPqkuyr8Ke4ssonZdwoT1LRCYyUfWD7ufU= Date: Thu, 9 Apr 2020 13:55:26 +0100 From: Will Deacon To: Anshuman Khandual Cc: linux-arm-kernel@lists.infradead.org, Catalin Marinas , Suzuki K Poulose , linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/6] arm64/cpufeature: Add DIT and CSV2 feature bits in ID_PFR0 register Message-ID: <20200409125526.GC13078@willie-the-truck> References: <1580215149-21492-1-git-send-email-anshuman.khandual@arm.com> <1580215149-21492-3-git-send-email-anshuman.khandual@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1580215149-21492-3-git-send-email-anshuman.khandual@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Will