Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp786672ybg; Wed, 3 Jun 2020 13:41:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwcwQ4uEdr1PiHqSK+h4j6wcBJyLQAS8GoQq5EdDb6YlcXJzjcXUhfkPUxBQRKbhHfKp7YB X-Received: by 2002:aa7:cb53:: with SMTP id w19mr1190122edt.328.1591216917309; Wed, 03 Jun 2020 13:41:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591216917; cv=none; d=google.com; s=arc-20160816; b=qpl4OaLTXz/NqEGcYXoY5gxHG2Tg3j7Be2fCnHhQmRAvNiRDovG4z9hlud5O987z3C YUtzJOoKtC0ijHFnyyiwC8Jl94sj7eB8+97smk/0aBpQRC/Q1kTDFvWqPE4b9chhkcIA vziHZLIBR+XaKvMwDSuEWJDK812xIA5HHNcSkTr66xZDEVYfh1kPxd7vtyFjRr3E4dgv TFKhFWnqg9qUB35wzJrMmcXEanjIKkaCZ4Dp0bUFfO9rhMvUHtb5oVQ3i+8MMIXbXJAv FsS+6so31cPq5JC5c+OmvJ5FAIr9OSLM/MEM+ePkFLepxCtj1phPchyommvmNyyb2Ao0 YcOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=7qXutEZtbDBMnxHPxNkfv1ht6U8C9RNtapAPHQL9k7E=; b=T8TDbaKnl/Ce9bBBVpLudAJ2UY+0MR7uO7DHTjYYy7QuBgWdS0O1RzQm3gTQwwKGhA yhPbqfmDZc9unY+V2VcuitqrgLlhwu77/8fUaLwVRgJi9RqfJtd+BnbBm/E4ItUfEt5K RO5B6Pwv/ERXhlxrLDqAGfJvzxiYrPrRmiepDl6j9B0n9lzFFpQ5MQ05jXeggLioHV0Q k5BwM8zhJoKRC+iJzJ48AEA521qrM7hWwZ8VHWSUd4e+MJUW+j+Mp5CzGT5LZLLi5Ud1 ESCehNXk7Ne3JKaEt8IT0tgkk+Kfiu5j5+/LFKBbHNrulJfD8C5ZHjuINnD+YaJgHhl8 9N8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FwYEIM4a; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id l13si376127ejx.63.2020.06.03.13.41.33; Wed, 03 Jun 2020 13:41:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FwYEIM4a; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726204AbgFCUjW (ORCPT + 99 others); Wed, 3 Jun 2020 16:39:22 -0400 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:27969 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726186AbgFCUjV (ORCPT ); Wed, 3 Jun 2020 16:39:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1591216759; 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: in-reply-to:in-reply-to:references:references; bh=7qXutEZtbDBMnxHPxNkfv1ht6U8C9RNtapAPHQL9k7E=; b=FwYEIM4aMlcPkf6Tgn6QdgrqRb5JnYsOmyNGrD6gK8ctfN/orX0W3SmHc3BaXxwbr64jZW oHIwXcbIJTvhW2iTLvGw/DTEvJE68cBfK2nLtubJsFCR63FmTu21KNFzekYU7jFeRi8yz/ UipZHCA6Hz45z76TvtukZOlRytirDYg= Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-427-vEScfUw4OMu04OcATQrooA-1; Wed, 03 Jun 2020 16:39:12 -0400 X-MC-Unique: vEScfUw4OMu04OcATQrooA-1 Received: by mail-qk1-f200.google.com with SMTP id n22so2643720qka.18 for ; Wed, 03 Jun 2020 13:39:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7qXutEZtbDBMnxHPxNkfv1ht6U8C9RNtapAPHQL9k7E=; b=n5foykZeS4INTaoKsTFwhh4KXdjAKcR1T6VF3BU1YFJqycdblH1jkEX/gMjDvo4vFF vDJyjNMRpHywVvx9dN5MJ62+BVdXB3yG/1o6IbY1nCIx2owMS0RTS140WsmEOwCnJ3um YrHwfSDkTEJ7PmtKbrqMqKgfTPhOaL7osxpSCQryY3uy2xAwxeK92SDPlZrZj/wrddfR msKkyHCXgcuKVY1kDT94+al7ogAzamN+y8Vl4Xll2RGuInkuP3sdg5yZU4A0eqARW024 0kxoQ6PWzV8MvhyS9dRK+KWW4enupNz4pnn6jIVDZpZOJUzQKUZKMBnQSgn1cazdrbnM /J5g== X-Gm-Message-State: AOAM5312LI5q/O0HwyfIS6uwCbI8fu3ha6qcrPM/5TtvNPjO9vavV9Ix tu7dwQUWmXaDSuOLqGGw/Wsj8UODz1o0ZUTbtvxpcp9Tu1ooHsBxEe3SFGQ6yBa2hflYfeyV/hB Q8E23SDPser5ts3KCX2EAwAA6Z/Qiexx76mzReRY7 X-Received: by 2002:ac8:4d03:: with SMTP id w3mr1222317qtv.200.1591216752191; Wed, 03 Jun 2020 13:39:12 -0700 (PDT) X-Received: by 2002:ac8:4d03:: with SMTP id w3mr1222300qtv.200.1591216751906; Wed, 03 Jun 2020 13:39:11 -0700 (PDT) MIME-Version: 1.0 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> <51606585-77a3-265f-1d4e-19f25a90697d@broadcom.com> In-Reply-To: <51606585-77a3-265f-1d4e-19f25a90697d@broadcom.com> From: Bhupesh Sharma Date: Thu, 4 Jun 2020 02:08:59 +0530 Message-ID: Subject: Re: Re: [RESEND PATCH v5 5/5] Documentation/vmcoreinfo: Add documentation for 'TCR_EL1.T1SZ' To: Scott Branden Cc: James Morse , Linux Kernel Mailing List , Mark Rutland , Ard Biesheuvel , Linux Doc Mailing List , Will Deacon , x86@kernel.org, kexec mailing list , Kazuhito Hagio , Dave Anderson , Catalin Marinas , Bhupesh SHARMA , linuxppc-dev@lists.ozlabs.org, linux-arm-kernel , Steve Capper Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Scott, On Thu, Jun 4, 2020 at 12:17 AM Scott Branden wrote: > > Hi Bhupesh, > > Would be great to get this patch series upstreamed? > > On 2019-12-25 10:49 a.m., Bhupesh Sharma wrote: > > 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. > I can't seem to find v6? Oops. I remember Cc'ing you to the v6 patchset (may be my email client messed up), anyways here is the v6 patchset for your reference: Do share your review/test comments on the same. Thanks, Bhupesh