Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp910101imc; Mon, 11 Mar 2019 02:07:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqz/5PwEhaXSDqCpRPJHVIpZAY73VNUE68XBLzdDZDK0hx5OnWw/MGwenfrxt2TCxe3+KujW X-Received: by 2002:a63:6e84:: with SMTP id j126mr15357339pgc.253.1552295251452; Mon, 11 Mar 2019 02:07:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552295251; cv=none; d=google.com; s=arc-20160816; b=yKAWn4RfeDc84Ye/eRczprNgTFnkLdmD20e4OiXaBZXK4PRYic9UxDwZYxQUL5Dzq6 UwGMfW0VTGlG4u24NEk7OmPsdvnbQLZHWgispkZtgV1rd+SHpPpKS86900uf6YyUAxFs p2Nr9C3ViuHXDfm+R0jE46cUxsh0enyiHALeIkiMior0W7YsvZdkQ/84I1+kkCgede1W 20lF3DmaAwKfVKCBf4XIJdKfiWzEqT56ITJmQ2c2pkRCmbZNIz15Msdw86XdKxC0ilIQ 6hZWt0pBMFQJDhi2eCYDBsEbC8Q4p3rOpDbgqyvSyibhOwRZEzy5w7Jlz6QP3OZpxq55 0xDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=AKSG0SJwldTdVCbzclWsgLMjltHO8Ijt3RNMGisA5Ak=; b=DwEwa0O3kMGBKU+1vDTHb1VOmbjYBGZGXoC8skUp00n7cOgGtE2jTX3TkY6QkrjlQH gY2lyI+4WDYGf3HVY2EMLlj7dFfGcnks0ObXy7vAd9B3iP16m5wrmojMT0c4XEgSb331 UTplFtL/VB4ZPiULKqDfOvuJ85RpoVQSJ5kOajmyuPME7PUfFI/krR+aYyg6iqv7LBxB OT3/ahGSm778JG69JwGeHQVqIRJa6tQmd0lgnyPLL/8Oc8h7tJiweIplLy5JKG3E3Qq3 yLkSxGMPKbbVFxY08FaSII0XovOB7i4HPq5T/peUlK9rMwCc+1MKkua6MoCRHQmYR23p jvgg== 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; dmarc=fail (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 b14si4590884pfj.144.2019.03.11.02.07.15; Mon, 11 Mar 2019 02:07:31 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727033AbfCKJGL (ORCPT + 99 others); Mon, 11 Mar 2019 05:06:11 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38024 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725839AbfCKJGL (ORCPT ); Mon, 11 Mar 2019 05:06:11 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A4CD2308A953; Mon, 11 Mar 2019 09:06:10 +0000 (UTC) Received: from dhcp-128-65.nay.redhat.com (ovpn-12-113.pek2.redhat.com [10.72.12.113]) by smtp.corp.redhat.com (Postfix) with ESMTPS id F21E95DD8D; Mon, 11 Mar 2019 09:05:56 +0000 (UTC) Date: Mon, 11 Mar 2019 17:05:53 +0800 From: Dave Young To: Bhupesh Sharma Cc: linux-kernel@vger.kernel.org, Mark Rutland , Kazuhito Hagio , Michael Ellerman , x86@kernel.org, Will Deacon , linuxppc-dev@lists.ozlabs.org, kexec@lists.infradead.org, James Morse , linux-arm-kernel@lists.infradead.org, Benjamin Herrenschmidt , Boris Petkov , Thomas Gleixner , bhupesh.linux@gmail.com, Dave Anderson , Ingo Molnar , Paul Mackerras Subject: Re: [PATCH v2 0/2] Append new variables to vmcoreinfo (PTRS_PER_PGD for arm64 and MAX_PHYSMEM_BITS for all archs) Message-ID: <20190311090553.GA12130@dhcp-128-65.nay.redhat.com> References: <1552212242-9479-1-git-send-email-bhsharma@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1552212242-9479-1-git-send-email-bhsharma@redhat.com> User-Agent: Mutt/1.9.5 (2018-04-13) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.41]); Mon, 11 Mar 2019 09:06:11 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Bhupesh, On 03/10/19 at 03:34pm, Bhupesh Sharma wrote: > 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 'PTRS_PER_PGD' 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) > during v1 review, 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: Mark Rutland > Cc: James Morse > Cc: Will Deacon > Cc: Boris Petkov > Cc: Ingo Molnar > Cc: Thomas Gleixner > Cc: Michael Ellerman > Cc: Paul Mackerras > Cc: Benjamin Herrenschmidt > Cc: Dave Anderson > Cc: Kazuhito Hagio > Cc: x86@kernel.org > Cc: linuxppc-dev@lists.ozlabs.org > Cc: linux-arm-kernel@lists.infradead.org > Cc: linux-kernel@vger.kernel.org > Cc: kexec@lists.infradead.org > > Bhupesh Sharma (2): > arm64, vmcoreinfo : Append 'PTRS_PER_PGD' to vmcoreinfo > crash_core, vmcoreinfo: Append 'MAX_PHYSMEM_BITS' to vmcoreinfo > > arch/arm64/kernel/crash_core.c | 1 + > kernel/crash_core.c | 1 + > 2 files changed, 2 insertions(+) > Lianbo's document patch has been merged, would you mind to add vmcoreinfo doc patch as well in your series? Thanks Dave