Received: by 10.192.165.148 with SMTP id m20csp2167777imm; Sun, 22 Apr 2018 01:49:02 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/onEUUt40SccWJvmMAjdN44/YWnTdqhQdakX8uGPzPM58TZgxz/XhFUVGFa7SlwQEkE/aA X-Received: by 10.98.95.198 with SMTP id t189mr15279338pfb.244.1524386942799; Sun, 22 Apr 2018 01:49:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524386942; cv=none; d=google.com; s=arc-20160816; b=ONASlbrxLddUz79E/a8K5x6A7rnZfAmo20XCS6c2gPDO1u2ineoiqiYGWFbS4T362t onTvv81XBfrCmRNf2uNxf7l24WU087G9C8Hz0QbHZNbJsq8s030HP0sGT3Ex6vnq41fN skjLFzYVgvnccuqcvp+N3HV5sYYKOlh9sOWt+f7c0FeOQv0N9UylShmpfxNV3tFRZ1e3 kYilLjLU/25qi8RRB2gxfA3UQTi11g+DpP2UYTo0rAN3LTe0BQWPZvXuQwmJGAUh4dPb xvl72OD65dA5FDmSYWcKugCO4MsY9FE47RRXquaAqb1XPVUVJCdKog9abqPgWagMm3ls IvVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:organization:user-agent :references:in-reply-to:subject:cc:to:from:message-id:date :arc-authentication-results; bh=S6Al9DGOaqU8iCE7Vcpl3yxVAtKJ48vCdYWc0RFixe8=; b=PgWUUxFcVcyLCmeQjwmaupe62dCbSdpy8wIJPDeFK1poKNpbZAC/eoF8bth9JBsWkP faeMEsYB8Uh3EjOHMXqOim7OTZMPtAgnbAZA5ef4Rv+930ey7NDqmlM2EoPi1ltAWU9y Yh/XctpesSzXrik55cyDQQuROMUH82rsQJlpQpgOCeStKVUd35CD9ZVTevgdl0IWurFI Qjc9w7ZesHIOqDlpT4AnmXtRsct/Uf5x7DNTcnQzYcjh5SWMTxnCsN1Z98sVmG1zssdQ bK6i9f6pXzLpAlATwDeozM7uRl+RsTBlUmvV2KyGGgMHjnwgOGgOdEf3bRCywwfNs49V Ps5g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h10si8864411pfc.206.2018.04.22.01.48.48; Sun, 22 Apr 2018 01:49:02 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751787AbeDVIri (ORCPT + 99 others); Sun, 22 Apr 2018 04:47:38 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:59262 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750854AbeDVIrh (ORCPT ); Sun, 22 Apr 2018 04:47:37 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id DB1D81529; Sun, 22 Apr 2018 01:47:36 -0700 (PDT) Received: from big-swifty.misterjones.org (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 51E2B3F59D; Sun, 22 Apr 2018 01:47:33 -0700 (PDT) Date: Sun, 22 Apr 2018 09:47:29 +0100 Message-ID: <86h8o3r5jy.wl-marc.zyngier@arm.com> From: Marc Zyngier To: Pavel Machek Cc: Mark Rutland , , , , , , , , , , , , , Subject: Re: [PATCHv3 11/11] arm64: docs: document pointer authentication In-Reply-To: <20180422080520.GC17875@amd> References: <20180417183735.56985-1-mark.rutland@arm.com> <20180417183735.56985-12-mark.rutland@arm.com> <20180422080520.GC17875@amd> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.8 EasyPG/1.0.0 Emacs/25.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) Organization: ARM Ltd MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 22 Apr 2018 09:05:21 +0100, Pavel Machek wrote: > > Hi! > > > @@ -205,6 +205,14 @@ Before jumping into the kernel, the following conditions must be met: > > ICC_SRE_EL2.SRE (bit 0) must be initialised to 0b0. > > - The DT or ACPI tables must describe a GICv2 interrupt controller. > > > > + For CPUs with pointer authentication functionality: > > + - If EL3 is present: > > + SCR_EL3.APK (bit 16) must be initialised to 0b1 > > + SCR_EL3.API (bit 17) must be initialised to 0b1 > > + - If the kernel is entered at EL1: > > + HCR_EL2.APK (bit 40) must be initialised to 0b1 > > + HCR_EL2.API (bit 41) must be initialised to 0b1 > > + > > 0b1 is quite confusing way to write 1. Do you find 0x1 equally confusing? 0bx is a pretty common way of describing bit-fields of a hardware register. It is also consistent with the rest of this document. M. -- Jazz is not dead, it just smell funny.