Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp909404ybp; Fri, 11 Oct 2019 06:20:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqwd0IQvPr8Vj7wFoxOWvH+9KHH8zY2NZ6cZeqKW3prUtyY098maxZajlV1xlLQACIgBGS3X X-Received: by 2002:a17:906:48d4:: with SMTP id d20mr8962125ejt.246.1570800032693; Fri, 11 Oct 2019 06:20:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570800032; cv=none; d=google.com; s=arc-20160816; b=IpkTJWPMJRhL3hK7zktzzlj+PW6qPIIaKrYkWMhaD2CD/09TMtYWWIXBqFeTzDrbF1 IvUWqXeYoNGHHwDaycHZ4MKzW8vCtSwcxwZKdp/8mdxwIMqQhdrBcrIrVZKGOxxGcQZI okTlYUBis5mvSW66B4OQ+sKSHWqJ9uVxkBwzdhTUTYEJRlnQdJkWYzW+1iGhZRsdpM9k 6uJyP0A34R3WZBPj9fdSl6fuw1p20iL15+NruWKD78xjLgbQwpTTsQ8oLnnGq7qhGqEf AWw7GmPDPwucOOjYpO9qCBln3g0jTE3COn1eygUwu89MxxvkGd8BFwyb1WjbzjhGc5R2 pAEg== 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:mime-version :message-id:date:in-reply-to:subject:cc:to:from:user-agent :references:dkim-signature; bh=3WqnFBtN99txOjHW8qFZ7VvrrzF2BjnHQs3onyzMvPs=; b=yecjHzHlaR/2lJsWWtpK/G7aWmaD6B1+KPhAcDAH5l4cxuV5+ND/QudAhl4PTjZQko KeZ6LGwXsAXNOjJTBovKtejp7g25eKDoTJAw2iAkYiWPaPWreTcpcxillJ1hZ5ns0M5f iuYOLRxsZF4vYI+Kwo0RcaIOOsqaHZRr7Ec/+L0qsgzTE/+sxVtCrmUL0g58+tR3Ci+0 3X1Hhx4PpjV3sVe99do1Da0G8F6hXQYWQSpdVEVDw2ogatUlKl/lSSpYHX8sonO7Sla2 qhW8cgJ7+18x5WU4XQE+CZkvM5jVwPs/5vIMa2D675+MHFspYS/p3EmujdO+8ode5joh kj6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bH5CG0AW; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l23si4933074eds.310.2019.10.11.06.20.08; Fri, 11 Oct 2019 06:20:32 -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=@linaro.org header.s=google header.b=bH5CG0AW; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728562AbfJKNTy (ORCPT + 99 others); Fri, 11 Oct 2019 09:19:54 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:53578 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728172AbfJKNTx (ORCPT ); Fri, 11 Oct 2019 09:19:53 -0400 Received: by mail-wm1-f68.google.com with SMTP id i16so10397126wmd.3 for ; Fri, 11 Oct 2019 06:19:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version:content-transfer-encoding; bh=3WqnFBtN99txOjHW8qFZ7VvrrzF2BjnHQs3onyzMvPs=; b=bH5CG0AW9kXASvJA2EuMJnKaKD7Fbs1GwNRinWUWTNTapEP8RrIptCMP1an49xbekJ H/3qiouCwCwQmtjegXgBKGYHApR1xTo11NC5DYgYsPTOeQGRoDPvtPnRqKg84HcAlqvO XRvXTQoaIKeYYrxABxAnEh0Qvzhqn4By2pZusdHwszJXbIb/NFeogtxxx6vNknOUUPy5 RfDnt/1a4BbZriu5/MsIqONZBAi1MKpClV3PE8YTfrl7OOtrUxEVgeQSqiDMBL92j54u u4ZwCTTwFqwMacJBhOAq3ppU8n5FD0zr7DkSg35RtBGQhA8ISMcqUAddCt9zb4UvoSUc H1aQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version:content-transfer-encoding; bh=3WqnFBtN99txOjHW8qFZ7VvrrzF2BjnHQs3onyzMvPs=; b=W4kDhOzD/f0TlEC3V3VaYom2FTHjJWR4f48rszwTB8G0JhXsMvwUUF68ZDN9P7AjBb DdHGYjJNfqIKIr5tLpzakOXtayerO4qf3DNZhu1d4o4H2dCtrC6axEOJNcUZGHkM0iYy 8+lIx4KizwZfj267l0c6jXDqTQu/jqIKo7e4Jk4ecYvqKSuEQsPn9YZ+aDvGfnT9Geud YJf287YahArRGQeNwoUzjVPoXi8mIVTfHEIY+QDutaQUy65Yx02zgE19S6+gQyzp64HR DnrfH7qya37ZFAuojUi/BT3qWG8CfR92rYaEjEqTH5JuTgRGc8Kqd9/XazK6pTJ2t3Je hUVg== X-Gm-Message-State: APjAAAVPbO1cqJrGxE5soAgZjQmaRnHWhp2wY+ZC0Pp9H6FLXt86hoOI GoQ5yunh02QNKpf8Arm96UNY1Q== X-Received: by 2002:a7b:ca54:: with SMTP id m20mr3360919wml.142.1570799990277; Fri, 11 Oct 2019 06:19:50 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id f143sm12497795wme.40.2019.10.11.06.19.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2019 06:19:49 -0700 (PDT) Received: from zen (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id E1BD11FF87; Fri, 11 Oct 2019 14:19:48 +0100 (BST) References: <1570733080-21015-1-git-send-email-Dave.Martin@arm.com> <1570733080-21015-5-git-send-email-Dave.Martin@arm.com> User-agent: mu4e 1.3.5; emacs 27.0.50 From: Alex =?utf-8?Q?Benn=C3=A9e?= To: Dave Martin Cc: linux-kernel@vger.kernel.org, Andrew Jones , Arnd Bergmann , Catalin Marinas , Eugene Syromiatnikov , Florian Weimer , "H.J. Lu" , Jann Horn , Kees Cook , Kristina =?utf-8?Q?Mart=C5=A1enko?= , Mark Brown , Paul Elliott , Peter Zijlstra , Richard Henderson , Sudakshina Das , Szabolcs Nagy , Thomas Gleixner , Will Deacon , Yu-cheng Yu , Amit Kachhap , Vincenzo Frascino , linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 04/12] arm64: docs: cpu-feature-registers: Document ID_AA64PFR1_EL1 In-reply-to: <1570733080-21015-5-git-send-email-Dave.Martin@arm.com> Date: Fri, 11 Oct 2019 14:19:48 +0100 Message-ID: <87zhi7l8qz.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dave Martin writes: > Commit d71be2b6c0e1 ("arm64: cpufeature: Detect SSBS and advertise > to userspace") exposes ID_AA64PFR1_EL1 to userspace, but didn't > update the documentation to match. > > Add it. > > Signed-off-by: Dave Martin > > --- > > Note to maintainers: > > * This patch has been racing with various other attempts to fix > the same documentation in the meantime. > > Since this patch only fixes the documenting for pre-existing > features, it can safely be dropped if appropriate. > > The _new_ documentation relating to BTI feature reporting > is in a subsequent patch, and needs to be retained. > --- > Documentation/arm64/cpu-feature-registers.rst | 15 +++++++++++---- > 1 file changed, 11 insertions(+), 4 deletions(-) > > diff --git a/Documentation/arm64/cpu-feature-registers.rst b/Documentatio= n/arm64/cpu-feature-registers.rst > index 2955287..b86828f 100644 > --- a/Documentation/arm64/cpu-feature-registers.rst > +++ b/Documentation/arm64/cpu-feature-registers.rst > @@ -168,8 +168,15 @@ infrastructure: > +------------------------------+---------+---------+ > > > - 3) MIDR_EL1 - Main ID Register > + 3) ID_AA64PFR1_EL1 - Processor Feature Register 1 > + +------------------------------+---------+---------+ > + | Name | bits | visible | > + +------------------------------+---------+---------+ > + | SSBS | [7-4] | y | > + +------------------------------+---------+---------+ > + > > + 4) MIDR_EL1 - Main ID Register > +------------------------------+---------+---------+ > | Name | bits | visible | > +------------------------------+---------+---------+ > @@ -188,7 +195,7 @@ infrastructure: > as available on the CPU where it is fetched and is not a system > wide safe value. > > - 4) ID_AA64ISAR1_EL1 - Instruction set attribute register 1 > + 5) ID_AA64ISAR1_EL1 - Instruction set attribute register 1 If I'm not mistaken .rst has support for auto-enumeration if the # character is used. That might reduce the pain of re-numbering in future. > > +------------------------------+---------+---------+ > | Name | bits | visible | > @@ -210,7 +217,7 @@ infrastructure: > | DPB | [3-0] | y | > +------------------------------+---------+---------+ > > - 5) ID_AA64MMFR2_EL1 - Memory model feature register 2 > + 6) ID_AA64MMFR2_EL1 - Memory model feature register 2 > > +------------------------------+---------+---------+ > | Name | bits | visible | > @@ -218,7 +225,7 @@ infrastructure: > | AT | [35-32] | y | > +------------------------------+---------+---------+ > > - 6) ID_AA64ZFR0_EL1 - SVE feature ID register 0 > + 7) ID_AA64ZFR0_EL1 - SVE feature ID register 0 > > +------------------------------+---------+---------+ > | Name | bits | visible | -- Alex Benn=C3=A9e