Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753114AbdI0NlB (ORCPT ); Wed, 27 Sep 2017 09:41:01 -0400 Received: from foss.arm.com ([217.140.101.70]:45944 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752895AbdI0NlA (ORCPT ); Wed, 27 Sep 2017 09:41:00 -0400 Date: Wed, 27 Sep 2017 14:39:32 +0100 From: Mark Rutland To: Robin Murphy Cc: Al Stone , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Catalin Marinas , Will Deacon , Suzuki K Poulose Subject: Re: [PATCH 3/3] arm64: cpuinfo: display product info in /proc/cpuinfo Message-ID: <20170927133931.GH32150@leverpostej> References: <20170926222324.17409-1-ahs3@redhat.com> <20170926222324.17409-4-ahs3@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 722 Lines: 23 Hi, On Wed, Sep 27, 2017 at 11:42:07AM +0100, Robin Murphy wrote: > On 26/09/17 23:23, Al Stone wrote: > > + seq_printf(m, ", ARM 8.%d (r%dp%d) CPU", > > + MIDR_VARIANT(midr), > > + MIDR_VARIANT(midr), > > + MIDR_REVISION(midr)); > > What is "ARM 8.1" meant to infer for, say, a typical Cortex-A57? Just to make Robin's point a little clearer, MIDR_EL1.Variant is IMPLEMENTATION DEFINED, and doesn't describe the ARMv8.x architecture revision. For example, on Cortex A57 is contains the major revision number of the CPU, and is 1 for any r1pY Cortex-A57 (e.g. those on Juno R1). For better or worse, the architecture provides us no mechanism to determine the architecture revision. Thanks, Mark.