Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1896466ybt; Mon, 15 Jun 2020 12:14:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHvxjGBjAFdRoqFOumrMsn2sXgMJqvDTAAIB5cKuv5M4zUFcP8MI/i8Q+xxo7iOpiss0Zf X-Received: by 2002:a17:906:6890:: with SMTP id n16mr14179166ejr.553.1592248468545; Mon, 15 Jun 2020 12:14:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592248468; cv=none; d=google.com; s=arc-20160816; b=kz7tMAreOLPa0eSTauxQopBgFAnkNay9i5TJvdu1D+MErss3aecRfnquHgz9F6nwtn QCc0VwouoVObK8ZtKtISZYWWXqeX+b+Wgw37iJUgqJxCKuagHfnPhPyR97DjiofVW2Wn I6kje+RnOFwx4hSPBIPz5vI4Zm2wHDNAuviXjDLe8rNFGzH/2gE9dofxxcHEl/58D+av Cd+8rCIP4JFE8q4/VzPbe7tBfO+gTsM+n7ndSAlAk6+dfbtFeV5B5f2kFDlESeqviHXZ cif8uf9PiIV506vWDt0PKqtOxbiSZbwU3vLlZMNczsxsUwCGOc8FVdRc5frqwwbgdQxV GS6A== 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=gBDypd72AayeylkkdmJfk3R+s+aCIKax33JorcXAteU=; b=TBeDrW0FTS6wUi50lh0GVPKmaAdTiZqgQdCHtrPyLhoK9Ka0+5N4m5C5SSconmLWnx DX3m7q7imdEp68v0ODzp6GoYCKdDemcxUGrrQ/4D8X5GrZ41Xvk1dkk3ADYVZggx3ncl 45K5+GBXkgYkZHaYsqVSOSEL3bnWbwX/Be60kSl0UU6ZLw9WiaUGe2XwQYypvM7cPOFy pJMmB2BNfCneRmeLsuBU+UqBaFhFojKGSfjpsn4h/AhrKtTzEn+dC7jiE1I/juDo+YMt 5fHoT5ZvLoIhTNnnxoCwByixA09EJYNdiR82ujmDfrxBbQVJDLtNipUdSU8+q5jBuohy ysBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HZhbvUeN; 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 w18si9528163ejn.727.2020.06.15.12.14.06; Mon, 15 Jun 2020 12:14:28 -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=HZhbvUeN; 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 S1731454AbgFOTMF (ORCPT + 99 others); Mon, 15 Jun 2020 15:12:05 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:58378 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729354AbgFOTME (ORCPT ); Mon, 15 Jun 2020 15:12:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1592248323; 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=gBDypd72AayeylkkdmJfk3R+s+aCIKax33JorcXAteU=; b=HZhbvUeNmU2tZJfP3AaFmYlzwHSdFQGl7OO62+uPjBDuo2S7XxL54NwBW7HQ3mwF2arQO1 SbjJt/ekmd5WW7t4eGvD6wZveK6VwOnoEToH6Ecb7fd74AcoNel7PAI7aMwYdLmgziiKLm o+BF31DqGrcZ6wV064rCQHSr/+e9CaI= Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-488-7z01uD96Po6yOUcINHXr1Q-1; Mon, 15 Jun 2020 15:11:51 -0400 X-MC-Unique: 7z01uD96Po6yOUcINHXr1Q-1 Received: by mail-qt1-f199.google.com with SMTP id u26so14745390qtj.21 for ; Mon, 15 Jun 2020 12:11:51 -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=gBDypd72AayeylkkdmJfk3R+s+aCIKax33JorcXAteU=; b=GcRls6STAUEcHdo2PubG5UXPucztwJK9KXMWTtQCmiqqHWMeqcN6zjLVOu2GFtQiHG sbItNb7+fckney7kVceRBLC7pC/YW+ov4Lk8qF76LAqo/BGoPpB//ObOkdxG3skcSKxZ rYokzQtdvy5VjUTl2tMi0ALmngT1U8hI2t8eWbepl0oUT9nwrfE8jkySP7lOEKCJAqcW 5ZQTLXBZPKjFA9Q0556Jk6yPHPLeommvEHtEcbwch+4yVZLnaKi6AMiferzSYXU6RuKq fjQ1yRwZkYpVfUyD2zoDDJiLR+G9Hs53bzd01j4uCkr6yUhposAZg4dJrd9khbR8/oer 6pmw== X-Gm-Message-State: AOAM533s7//DGhio1cW99Sj6TPkelW/0/LQsB3tWEqAhJTgyYmKM8322 Qs0UTgBZigmngp2H3rYZ0HCe7xug4w/rzIs2925dyl3veRYuXENLJ0zmO7h40gmYcXjIltm60mQ 6D5pBNocq9K5C5ahG+pIuezQ9Q3c8UJ16LF9UxydU X-Received: by 2002:a0c:e254:: with SMTP id x20mr25376399qvl.153.1592248310799; Mon, 15 Jun 2020 12:11:50 -0700 (PDT) X-Received: by 2002:a0c:e254:: with SMTP id x20mr25376377qvl.153.1592248310457; Mon, 15 Jun 2020 12:11:50 -0700 (PDT) MIME-Version: 1.0 References: <1589395957-24628-1-git-send-email-bhsharma@redhat.com> In-Reply-To: From: Bhupesh Sharma Date: Tue, 16 Jun 2020 00:41:37 +0530 Message-ID: Subject: Re: [PATCH v6 0/2] Append new variables to vmcoreinfo (TCR_EL1.T1SZ for arm64 and MAX_PHYSMEM_BITS for all archs) To: linux-arm-kernel , x86@kernel.org, Catalin Marinas , Will Deacon Cc: Bhupesh SHARMA , Boris Petkov , Ingo Molnar , Thomas Gleixner , Jonathan Corbet , James Morse , Mark Rutland , Steve Capper , Ard Biesheuvel , Michael Ellerman , Paul Mackerras , Benjamin Herrenschmidt , Dave Anderson , Kazuhito Hagio , John Donnelly , Scott Branden , Amit Kachhap , linuxppc-dev@lists.ozlabs.org, Linux Kernel Mailing List , Linux Doc Mailing List , kexec mailing list 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 Catalin, Will, On Tue, Jun 2, 2020 at 10:54 AM Bhupesh Sharma wrote: > > Hello, > > On Thu, May 14, 2020 at 12:22 AM Bhupesh Sharma wrote: > > > > Apologies for the delayed update. Its been quite some time since I > > posted the last version (v5), but I have been really caught up in some > > other critical issues. > > > > Changes since v5: > > ---------------- > > - v5 can be viewed here: > > http://lists.infradead.org/pipermail/kexec/2019-November/024055.html > > - Addressed review comments from James Morse and Boris. > > - Added Tested-by received from John on v5 patchset. > > - Rebased against arm64 (for-next/ptr-auth) branch which has Amit's > > patchset for ARMv8.3-A Pointer Authentication feature vmcoreinfo > > applied. > > > > Changes since v4: > > ---------------- > > - v4 can be seen here: > > http://lists.infradead.org/pipermail/kexec/2019-November/023961.html > > - Addressed comments from Dave and added patches for documenting > > new variables appended to vmcoreinfo documentation. > > - Added testing report shared by Akashi for PATCH 2/5. > > > > Changes since v3: > > ---------------- > > - v3 can be seen here: > > http://lists.infradead.org/pipermail/kexec/2019-March/022590.html > > - Addressed comments from James and exported TCR_EL1.T1SZ in vmcoreinfo > > instead of PTRS_PER_PGD. > > - Added a new patch (via [PATCH 3/3]), which fixes a simple typo in > > 'Documentation/arm64/memory.rst' > > > > Changes since v2: > > ---------------- > > - v2 can be seen here: > > http://lists.infradead.org/pipermail/kexec/2019-March/022531.html > > - Protected 'MAX_PHYSMEM_BITS' vmcoreinfo variable under CONFIG_SPARSEMEM > > ifdef sections, as suggested by Kazu. > > - Updated vmcoreinfo documentation to add description about > > 'MAX_PHYSMEM_BITS' variable (via [PATCH 3/3]). > > > > Changes since v1: > > ---------------- > > - v1 was sent out as a single patch which can be seen here: > > http://lists.infradead.org/pipermail/kexec/2019-February/022411.html > > > > - v2 breaks the single patch into two independent patches: > > [PATCH 1/2] appends 'PTRS_PER_PGD' to vmcoreinfo for arm64 arch, whereas > > [PATCH 2/2] appends 'MAX_PHYSMEM_BITS' to vmcoreinfo in core kernel code (all archs) > > > > This patchset primarily fixes the regression reported in user-space > > utilities like 'makedumpfile' and 'crash-utility' on arm64 architecture > > with the availability of 52-bit address space feature in underlying > > kernel. These regressions have been reported both on CPUs which don't > > support ARMv8.2 extensions (i.e. LVA, LPA) and are running newer kernels > > and also on prototype platforms (like ARMv8 FVP simulator model) which > > support ARMv8.2 extensions and are running newer kernels. > > > > The reason for these regressions is that right now user-space tools > > have no direct access to these values (since these are not exported > > from the kernel) and hence need to rely on a best-guess method of > > determining value of 'vabits_actual' and 'MAX_PHYSMEM_BITS' supported > > by underlying kernel. > > > > Exporting these values via vmcoreinfo will help user-land in such cases. > > In addition, as per suggestion from makedumpfile maintainer (Kazu), > > it makes more sense to append 'MAX_PHYSMEM_BITS' to > > vmcoreinfo in the core code itself rather than in arm64 arch-specific > > code, so that the user-space code for other archs can also benefit from > > this addition to the vmcoreinfo and use it as a standard way of > > determining 'SECTIONS_SHIFT' value in user-land. > > > > Cc: Boris Petkov > > Cc: Ingo Molnar > > Cc: Thomas Gleixner > > Cc: Jonathan Corbet > > Cc: James Morse > > Cc: Mark Rutland > > Cc: Will Deacon > > Cc: Steve Capper > > Cc: Catalin Marinas > > Cc: Ard Biesheuvel > > Cc: Michael Ellerman > > Cc: Paul Mackerras > > Cc: Benjamin Herrenschmidt > > Cc: Dave Anderson > > Cc: Kazuhito Hagio > > Cc: John Donnelly > > Cc: scott.branden@broadcom.com > > Cc: Amit Kachhap > > Cc: x86@kernel.org > > Cc: linuxppc-dev@lists.ozlabs.org > > Cc: linux-arm-kernel@lists.infradead.org > > Cc: linux-kernel@vger.kernel.org > > Cc: linux-doc@vger.kernel.org > > Cc: kexec@lists.infradead.org > > > > Bhupesh Sharma (2): > > crash_core, vmcoreinfo: Append 'MAX_PHYSMEM_BITS' to vmcoreinfo > > arm64/crash_core: Export TCR_EL1.T1SZ in vmcoreinfo > > > > Documentation/admin-guide/kdump/vmcoreinfo.rst | 16 ++++++++++++++++ > > arch/arm64/include/asm/pgtable-hwdef.h | 1 + > > arch/arm64/kernel/crash_core.c | 10 ++++++++++ > > kernel/crash_core.c | 1 + > > 4 files changed, 28 insertions(+) > > Ping. @James Morse , Others > > Please share if you have some comments regarding this patchset. Ping. I think we have two Tested-by available from Oracle and Marvell folks on this patchset and no further review-comments. Can you please help review/pick this patchset via the arm64 tree? User-space utilities like makedumpfile and crash have been broken since 52-bit VA addressing was enabled on arm64 kernel, so distros are obliged to carry downstream-only fixes for these user-space utilities to make them work with the kernel which support 52-bit VA addressing on arm64. Thanks, Bhupesh