From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S968760AbdAERKj (ORCPT ); Thu, 5 Jan 2017 12:10:39 -0500 Received: from foss.arm.com ([217.140.101.70]:55358 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S968523AbdAERJg (ORCPT ); Thu, 5 Jan 2017 12:09:36 -0500 Date: Thu, 5 Jan 2017 17:09:31 +0000 From: Catalin Marinas To: Suzuki K Poulose Cc: linux-arm-kernel@lists.infradead.org, mark.rutland@arm.com, ryan.arnold@linaro.org, sid@reserved-bit.com, aph@redhat.com, will.deacon@arm.com, linux-kernel@vger.kernel.org, adhemerval.zanella@linaro.org, dave.martin@arm.com Subject: Re: [PATCH v3 2/9] arm64: cpufeature: remove explicit RAZ fields Message-ID: <20170105170931.GD29765@e104818-lin.cambridge.arm.com> References: <1483552147-9605-1-git-send-email-suzuki.poulose@arm.com> <1483552147-9605-3-git-send-email-suzuki.poulose@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1483552147-9605-3-git-send-email-suzuki.poulose@arm.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 04, 2017 at 05:49:00PM +0000, Suzuki K. Poulose wrote: > From: Mark Rutland > > We currently have some RAZ fields described explicitly in our > arm64_ftr_bits arrays. These are inconsistently commented, grouped, > and/or applied, and maintaining these is error-prone. > > Luckily, we don't need these at all. We'll never need to inspect RAZ > fields to determine feature support, and init_cpu_ftr_reg() will ensure > that any bits without a corresponding arm64_ftr_bits entry are treated > as RES0 with strict matching requirements. In check_update_ftr_reg() > we'll then compare these bits from the relevant cpuinfo_arm64 > structures, and need not store them in a arm64_ftr_reg. > > This patch removes the unnecessary arm64_ftr_bits entries for RES0 bits. > > Signed-off-by: Mark Rutland > Cc: Catalin Marinas > Cc: Will Deacon > Reviewed-by: Suzuki K Poulose > Signed-off-by: Suzuki K Poulose Reviewed-by: Catalin Marinas