Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4714087ybg; Tue, 29 Oct 2019 11:17:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqxLFduRr5pmA2+fkHmZfGmK9Lo5n67jUXHd4jI5sJNHwyqU4GtKI+87g+3OM7nZAeRSkLLm X-Received: by 2002:aa7:cc18:: with SMTP id q24mr27008378edt.150.1572373035783; Tue, 29 Oct 2019 11:17:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572373035; cv=none; d=google.com; s=arc-20160816; b=w595GBP507fV+3AMIV7nrSVn+zMM4nYE881KWfD5KJ1/JcL/oUxrw2S5Kyd1qsbzOc JuagyD3rcL3CUjesz3LmwZ7sSxPp9T+vMlCZbKwE1j9y4Qo/XeFVlTUT1n8g9X0YXz9m qHlmgYlf69gZ5uOrfCfh7hl4ISJogA91lZYcjlP50YB2bdo+XpooXP4uSoJtpa9APwlY wd/F8qyu+jQbfahjjUlOdbDWdZkRS5+1fgueBhn1nUI2RCQBBG6gAvWI3qTuCSMKW/mb WfzDSi5E+vBtL7xEfrqTWUZ90HFusiUjJGytg8nUoEwNzkidfqhxnR2tkivP5bnF82sV sqeg== 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=xLuO+wvpdMRNVjweuK3/9herl68YGSC10CG9e2/hak8=; b=CrFKnmSgqGhb1pUtiEKstjk39s3TYJuGOKKYfW2/8UGTQvfNXrnd0bP9ABEoFvihNP XUIAKkvugA7nbFKppdx7nniPMJbVRhzRTpqhXUPFqtObyzbiKmsDrXCveQuwvJLxVCfK H5T1fSo20MiKq9Sma56qY8yGzs6LNJf/AlR3/Fondy5rVI7ziche7ZIJXQMcWE+t3Vw8 2UIsCUK3hu6FDUIJuGQ+3Urr/Kk7+PfTNThPQY04iDNIJKDDXu/OR775ASWWqbtSbSTM ZU+0+YIH0tekS3S1JfNg85qxoLN6CGf5ByA/7Wc0XAPDAJRGL5KAkWYAJMPWMMSsoLsq HeWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=geGLqSfE; 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 f3si11158116eda.251.2019.10.29.11.16.50; Tue, 29 Oct 2019 11:17:15 -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=geGLqSfE; 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 S1731386AbfJ2LgM (ORCPT + 99 others); Tue, 29 Oct 2019 07:36:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:40720 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727900AbfJ2LgM (ORCPT ); Tue, 29 Oct 2019 07:36:12 -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 777EA20862; Tue, 29 Oct 2019 11:36:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1572348971; bh=tlknb9NnrARnO/8Jo6xu68QaVQIAbSopr0LHFOUwm+k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=geGLqSfEdrnzxSm9FQfIRzAiLbtD2iIt8lyKJ6YUWqb3eNbFWglTqSONgv6jbCViU x0FY/02oXRKa8MrrU7G9szdibvAeRlEz73QLwwFPnfKdf6BbU8RjD9LQ7OSKnC/Klv qat2wwlVHkM5hSsLE0PUbjqz98Pz8DrGwv5Q8IRU= Date: Tue, 29 Oct 2019 11:36:07 +0000 From: Will Deacon To: Julien Grall Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, catalin.marinas@arm.com, suzuki.poulose@arm.com, Dave.Martin@arm.com Subject: Re: [PATCH] arm64: cpufeature: Export Armv8.6 Matrix feature to userspace Message-ID: <20191029113606.GB12103@willie-the-truck> References: <20191025171056.30641-1-julien.grall@arm.com> <20191029111517.GE11590@willie-the-truck> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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, Oct 29, 2019 at 11:26:41AM +0000, Julien Grall wrote: > On 29/10/2019 11:15, Will Deacon wrote: > > On Fri, Oct 25, 2019 at 06:10:56PM +0100, Julien Grall wrote: > > > This patch provides support for reporting the presence of Armv8.6 > > > Matrix and its optional features to userspace. > > > > Are you sure this is 8.6 and not earlier? > > This was introduced by Armv8.6 see [1] but allowed to be used by Armv8.2 and > onwards. That doesn't mean an awful lot though, especially then the features are referred to in the docs as things like "ARMv8.2-F64MM". > > > @@ -227,6 +229,12 @@ infrastructure: > > > +------------------------------+---------+---------+ > > > | Name | bits | visible | > > > +------------------------------+---------+---------+ > > > + | F64MM | [56-59] | y | > > > + +------------------------------+---------+---------+ > > > + | F32MM | [52-55] | y | > > > + +------------------------------+---------+---------+ > > > + | I8MM | [44-47] | y | > > > + +------------------------------+---------+---------+ > > > > Urgh, we're inconsistent in our bitfields. Some are [lo-hi] whilst others > > are [hi-lo]. Please can you fix that in a preparatory patch? I prefer > > [hi-lo] and it matches the arch docs. > > Sure. Thanks. Will