Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp8989046ybl; Wed, 25 Dec 2019 10:53:55 -0800 (PST) X-Google-Smtp-Source: APXvYqwvgm3UJ0qx4WykXjGgm0HT5KjZ0n+7MreKCOTrzis24DBCijEpSz8Fsqw68bJnQmUsm0P7 X-Received: by 2002:a05:6830:14d9:: with SMTP id t25mr36795925otq.258.1577300035698; Wed, 25 Dec 2019 10:53:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577300035; cv=none; d=google.com; s=arc-20160816; b=NxDe6os6mN+g1YK1QfrIzUyUp2/zN7ZZ4zqu2c5eFG7bOYY6f77VByhghnAYY0av5v DPA6XCHOph7ILgPGN5dAMw0OlpPdiNOEKwEHdXIzDiEGmAPNLEjXEzagp8uARoq81Zww r1sNAlW924M4X1N9eTDqRRN/Z9XllRY10+9PzhbUzFo5Ui6Yh473vdLycs/DZSonBa7L CR3tMWaXsAuc+9/ccxBCFc4kXjmtL5F6SuV6xQfGG9WmJvMyPlR388yKSscELSkaBbAm 2xTgI92kYn+qHh+NgdJxfTdzapK0pHWmrEyECZc1xk2x5d6LDse+UrTgo/JASbXdmEQt LQEg== 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:dkim-signature; bh=285kDepmv9QK1DA/8vrnMjbxXwuHVWfi0yZmFm9MG4s=; b=nzhBe9ErzgoUrTLprxlOi74eP2scyGBQZlUWyPP7/GHciv1eZemzVqZ8VJvEiAoe08 /9wRcbpgUJ6bo//4E+OTAENZSjqUuMXnTk6XbWc1NL1E9ux7lCNz0Rn+WI8e2bhRwvPm uybv2cl/guVZdJ1AP74yjNDHuhpgMIqc3NbeaMqOCeO+MB1n1e9qsdjteosvCR88rb49 cE5hWZTLpfktmTXTZeLHR1jyeInq5nm0rlLHIzEzMfr3uFD1aAp49aTe8QScRoBrdmXH iwcTE2oQHH3UrtpmA1p9mrP009ZizBjx+9Trj1+LEhUBUVEzhqoMBfLCTL2O4BTsUKDZ EGtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Q4X+I5NE; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k9si4812064oih.157.2019.12.25.10.53.24; Wed, 25 Dec 2019 10:53:55 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Q4X+I5NE; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726435AbfLYStv (ORCPT + 99 others); Wed, 25 Dec 2019 13:49:51 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:21492 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726397AbfLYStu (ORCPT ); Wed, 25 Dec 2019 13:49:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1577299789; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=285kDepmv9QK1DA/8vrnMjbxXwuHVWfi0yZmFm9MG4s=; b=Q4X+I5NEZTHvFoHdpWWnFFe40KG3zs1pmIn0sIDBV+cqU48ioYiPnuODIKBHifD2+Mt2Bg 4IY6JdHlbpb6IVK4s5ljoOwQdgXVqAfriII7AA9NkAEI8VI+RA6J+P94qLu5DuC8jI8dkp fefCXlhylS8ZsnLQ1ZOK5H+aQp9kJYM= Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-424-JJlE0Jm1PJygiT8y-56QGA-1; Wed, 25 Dec 2019 13:49:48 -0500 X-MC-Unique: JJlE0Jm1PJygiT8y-56QGA-1 Received: by mail-pg1-f198.google.com with SMTP id t189so14821811pgd.1 for ; Wed, 25 Dec 2019 10:49:47 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=285kDepmv9QK1DA/8vrnMjbxXwuHVWfi0yZmFm9MG4s=; b=LHNZe1K1cw6lNzl2tPE/Lu87ZqKOv4Mv8OM+fiiHOqIc5zKGceck6TjxkhO/drzRpd QKas78+3HQ44ansKFoDdcqOy50ApY6G5kf9fV1lfQBF39we9GynxFIJss1pn1t6gDu4Y FSNABGjjAp+gPKV9b46HID4aRa+QVKlrVN2ZX8uFaqmaKCR3yUZ1jGCPTqcVHVyLrhGz V+S+RtLosyreUeFg6A6Dmzu9+1n6xobC9cjS2hgoCFxyjgKFdkWeCXeZqdKGsPLkSYba pSkbg7J7XCSbu8JDHOZ2oA91jtaE8Qqv1dQH3xHnmwTzQ9A56WU2V8mVQfo4DlWAQMj8 itHA== X-Gm-Message-State: APjAAAVFVu6a63uYjgk/PEtueidTfEgbYTmxD0rmfZ41wyjlWMQnu0jE KwgyQ1NzbKn2FKT0i70zUIkVC+kMl0jMKkRRa8/TkVCYefEvgXSnmcPzKnYTwc0c4G9GgTKfVNX eCcolkASMGzHEiN+3L0l4TwG2 X-Received: by 2002:a17:902:8d95:: with SMTP id v21mr40949632plo.228.1577299786600; Wed, 25 Dec 2019 10:49:46 -0800 (PST) X-Received: by 2002:a62:7c54:: with SMTP id x81mr43381216pfc.180.1577299783422; Wed, 25 Dec 2019 10:49:43 -0800 (PST) Received: from localhost.localdomain ([122.177.237.105]) by smtp.gmail.com with ESMTPSA id b98sm7539818pjc.16.2019.12.25.10.49.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Dec 2019 10:49:42 -0800 (PST) Subject: Re: [RESEND PATCH v5 5/5] Documentation/vmcoreinfo: Add documentation for 'TCR_EL1.T1SZ' To: James Morse , 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> <8a982138-f1fa-34e8-18fd-49a79cea3652@arm.com> From: Bhupesh Sharma Message-ID: Date: Thu, 26 Dec 2019 00:19:35 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <8a982138-f1fa-34e8-18fd-49a79cea3652@arm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi James, On 12/12/2019 04:02 PM, James Morse wrote: > Hi Bhupesh, I am sorry this review mail skipped my attention due to holidays and focus on other urgent issues. > 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? ..) Ok, will fix the same in v6 version. >> 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. Ok, got it. Fixed this in v6, which should be on its way shortly. Thanks, Bhupesh