Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp644714ybl; Thu, 12 Dec 2019 02:34:03 -0800 (PST) X-Google-Smtp-Source: APXvYqyZK+3DWp5UzbgtZUb1V7Rj2EV0VkSB4lup2CVOagNUQnOnakHrOEvSqwOe2b2pRTXf3SGn X-Received: by 2002:a9d:dc1:: with SMTP id 59mr7518265ots.250.1576146843453; Thu, 12 Dec 2019 02:34:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576146843; cv=none; d=google.com; s=arc-20160816; b=wcpumzfntZZchdicCrcJ84Y0UJUntSzq+tjps1RR6k+tzMfTU2+5E/htDcTpv9Rflq +gbbaiqSO40385dyr3uVAXJiH+3O6hw31FMUzsEtfKDBaSV+XeVTfzxcDdEYOMHAfwXD XrOCE5rFRkcP0LsB3IoWexyMabLxCAwU7QCCrN6l49vj6ayvoGdiX9GWCj8T3ljTxLXm p6oipxdMr71pypOI/MN0nes4aWU15MgPVguXascuZMEddAhIm5fgDT1MwJAIYXaBwkph o/rgDi9c3+3JTUSp4F9ouFsvhTIEopmPuNfjljwfovYdt+KM0zgRmJDcpoJZLM/sgwmK Bamw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=vvM5PXXbnjUocAw6QLME2voD5FXgG78hGc9IxWvIlZY=; b=VATAeqvfJirEetiKZcZuQ5rTTGbt/14cepdFvCbh75LiDqnIk2jLFMtngCaqw9tur6 pw2qkizOLcfjqpgUnZi+4G72PBrw4Yatlxk7i2yFeKn8j4MlCuddTAL9ErGtx0aze5QU Uc1Kve+Zy2YMVksenEFHCzPQ8QXM67tE1nlthLi54EZUQPLBg9FSwaOQm5n84h9YJwGj 9mmSCXeSldCEcIlDwBJHbc+v+0MCgdl8L50C7P/SP/fP6pqGpUUYcH0x8GxdTIi4EZGP TwcP/ZN6Xo8awrlaN6fyY6W5WUvJD5ZnTeQrcw70nZ4aQCl5aPlIrKbbF4ZpAe0GfvVj nxYQ== 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 w5si2904624oib.134.2019.12.12.02.33.50; Thu, 12 Dec 2019 02:34:03 -0800 (PST) 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 S1728746AbfLLKcm (ORCPT + 99 others); Thu, 12 Dec 2019 05:32:42 -0500 Received: from foss.arm.com ([217.140.110.172]:41590 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728605AbfLLKcm (ORCPT ); Thu, 12 Dec 2019 05:32:42 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A5204328; Thu, 12 Dec 2019 02:32:41 -0800 (PST) Received: from [10.1.196.105] (eglon.cambridge.arm.com [10.1.196.105]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DA63E3F6CF; Thu, 12 Dec 2019 02:32:39 -0800 (PST) Subject: Re: [RESEND PATCH v5 5/5] Documentation/vmcoreinfo: Add documentation for 'TCR_EL1.T1SZ' To: Bhupesh Sharma , linux-kernel@vger.kernel.org Cc: bhupesh.linux@gmail.com, x86@kernel.org, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, kexec@lists.infradead.org, Mark Rutland , Will Deacon , Steve Capper , Catalin Marinas , Ard Biesheuvel , Dave Anderson , Kazuhito Hagio References: <1575057559-25496-1-git-send-email-bhsharma@redhat.com> <1575057559-25496-6-git-send-email-bhsharma@redhat.com> From: James Morse Message-ID: <8a982138-f1fa-34e8-18fd-49a79cea3652@arm.com> Date: Thu, 12 Dec 2019 10:32:38 +0000 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <1575057559-25496-6-git-send-email-bhsharma@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Bhupesh, On 29/11/2019 19:59, Bhupesh Sharma wrote: > Add documentation for TCR_EL1.T1SZ variable being added to > vmcoreinfo. > > It indicates the size offset of the memory region addressed by TTBR1_EL1 > and hence can be used for determining the vabits_actual value. used for determining random-internal-kernel-variable, that might not exist tomorrow. Could you describe how this is useful/necessary if a debugger wants to walk the page tables from the core file? I think this is a better argument. Wouldn't the documentation be better as part of the patch that adds the export? (... unless these have to go via different trees? ..) > diff --git a/Documentation/admin-guide/kdump/vmcoreinfo.rst b/Documentation/admin-guide/kdump/vmcoreinfo.rst > index 447b64314f56..f9349f9d3345 100644 > --- a/Documentation/admin-guide/kdump/vmcoreinfo.rst > +++ b/Documentation/admin-guide/kdump/vmcoreinfo.rst > @@ -398,6 +398,12 @@ KERNELOFFSET > The kernel randomization offset. Used to compute the page offset. If > KASLR is disabled, this value is zero. > > +TCR_EL1.T1SZ > +------------ > + > +Indicates the size offset of the memory region addressed by TTBR1_EL1 > +and hence can be used for determining the vabits_actual value. 'vabits_actual' may not exist when the next person comes to read this documentation (its going to rot really quickly). I think the first half of this text is enough to say what this is for. You should include words to the effect that its the hardware value that goes with swapper_pg_dir. You may want to point readers to the arm-arm for more details on what the value means. Thanks, James