Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2737945ybc; Wed, 20 Nov 2019 20:07:54 -0800 (PST) X-Google-Smtp-Source: APXvYqziQfsQUvca5BxKfHWn2YGnonKzSDbSOEM8fugz+8TmHtKYMFbKRiAzNNvNxN4YuQk8sYXw X-Received: by 2002:a17:906:e88:: with SMTP id p8mr10470963ejf.15.1574309274697; Wed, 20 Nov 2019 20:07:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574309274; cv=none; d=google.com; s=arc-20160816; b=Wj8VM8dPwnhdHyjXif3bY2awzb6lYyUrQu3atnw2zJtohID2FxKzz6KqGWtobK05OL cE7eXHIKGuslVJxe5+jz6ixjuTtlrJh9CmMc69swQ+KcLSflGqkxMVd6zVNpGQgFz/D6 T/u0CCbxR1mg/Exr3+L/IJYzUsv3uD9n1VyhLRAx29jP7ZOqGW0TR8O43NXBgNiyN/x1 cyomq3913M/W3nmptPC16K4u7GYf0umhDJcfVVIR6oJ0cQOprKw3SusgtgvVIkZIMZdJ 70xpkF/Lq/ZLWzjS0Ry4nhmtUGCSVnF/CkJFYHVUo/4GtVFxr+vQe7X43Tnf8eq+UQb9 iYZQ== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=ddcL9As6t6N2W7FClqz+MM4Vj5YcYH8nBzk/ipEcve0=; b=NZxXOrEkC3BW5R9AoP3jUprRk0aG2Q0hWD+2BWvXpAvSAiCPHPlWp8oEyWlgDLAeXq FmiGUZwK9YR/g9atGdAIg0G/V6oGNKRIqt3c99QPV0CrObiNrKLub4kUyxrCQG1kTooa xzSvofCgl9fMNYc8uPbQY424UJuPUh/fbDE7E1bLPE9/LMCzoNELXr5FjkhTrmC8i3Ya 0Pt2Mn/ssjft/iGIQs+pKfU5aJviesRetp/i52qNf+W9MYhfED6+fFKMUwIlW56fVTl1 vCw2Wj0LU62W15SClecg0Fxra/5PiaucLEBgNBN1rqWrZxMejRr3YldDq64p8pvQzxZX ry7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UzAKWfXU; 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 q44si1164200eda.242.2019.11.20.20.07.30; Wed, 20 Nov 2019 20:07:54 -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=UzAKWfXU; 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 S1726568AbfKUEFu (ORCPT + 99 others); Wed, 20 Nov 2019 23:05:50 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:51521 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726230AbfKUEFu (ORCPT ); Wed, 20 Nov 2019 23:05:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1574309148; 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=ddcL9As6t6N2W7FClqz+MM4Vj5YcYH8nBzk/ipEcve0=; b=UzAKWfXUbwKBAvf6c15mXdDu5VhZbdhgprKyLI4Lnn2dL2Me67voFMi3r2bzl6icR5eWSa VfyfIzM7+N9S+0ux4G72lU0WhyMvYrNq3o951e5NgAfIL9w7GNGRqxMpmxQkTPRx7KpOMM 3OXZFA8lY7UPK60MOqM/wbn5iMdzOCc= Received: from mail-lf1-f69.google.com (mail-lf1-f69.google.com [209.85.167.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-320-XQEBoglpPdW8CLi9MT7-LQ-1; Wed, 20 Nov 2019 23:05:45 -0500 Received: by mail-lf1-f69.google.com with SMTP id x16so502738lfe.19 for ; Wed, 20 Nov 2019 20:05:44 -0800 (PST) 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=XAdRIJ2WowQ38gyWjLPpmLE8JvGLeIMdMt69fOJjIH4=; b=B2M8MuxqsaCZDhvUwJq4GCKtXtVJ+LDebNDeqwomkLpqs8ZumPmHzb6pmI3zucSb4m QrNjObudpPMjYJYh5LjkcDkQVmfd7bJBg3Ir55lnBOT+PH2QjC0i3r5ebunFEQ6Z2Xf0 mlETXqBXCYtnUT0KZ9ykAT5+5n5RsIImHy44iV80pGDV7aZjw7Ja1waRYH8QesLIQNhF fykap6tPqDAERVnKSJzbmfbOzEWm0GGKdoHInuAS4yBufrcOvXSEcdxMYNlCzFWQz8ne p7K24K1n7kgoeMufh2EkuhVS88KmggrdJXgz3hRoooIBYACNDNng0uGvXYlEXbF3qFT7 4aKA== X-Gm-Message-State: APjAAAWrcd8QGWvFkVWQhGduCh305IU8Id0r9xuwTKoJ4bhBlJETabJy UB0Xtabmevf+MVbBjGpeT3xK8WT4hraqUJadKvyuHUP2D0UAljSWC8RB2mVusGNIyNd5ueL468X 76hMqyms3zPgPqotQqRZ/rD2SKPFg23f3kwg7Clq4 X-Received: by 2002:a19:bec5:: with SMTP id o188mr5652127lff.140.1574309143460; Wed, 20 Nov 2019 20:05:43 -0800 (PST) X-Received: by 2002:a19:bec5:: with SMTP id o188mr5652105lff.140.1574309143167; Wed, 20 Nov 2019 20:05:43 -0800 (PST) MIME-Version: 1.0 References: <1573459282-26989-1-git-send-email-bhsharma@redhat.com> <20191121032047.GB23368@dhcp-128-65.nay.redhat.com> In-Reply-To: <20191121032047.GB23368@dhcp-128-65.nay.redhat.com> From: Bhupesh Sharma Date: Thu, 21 Nov 2019 09:35:29 +0530 Message-ID: Subject: Re: [PATCH v4 0/3] Append new variables to vmcoreinfo (TCR_EL1.T1SZ for arm64 and MAX_PHYSMEM_BITS for all archs) To: Dave Young Cc: Linux Kernel Mailing List , Mark Rutland , Linux Doc Mailing List , Benjamin Herrenschmidt , Paul Mackerras , Will Deacon , Ingo Molnar , Jonathan Corbet , Michael Ellerman , x86@kernel.org, Catalin Marinas , Boris Petkov , Thomas Gleixner , Bhupesh SHARMA , linux-arm-kernel , Kazuhito Hagio , Ard Biesheuvel , Steve Capper , kexec mailing list , James Morse , Dave Anderson , linuxppc-dev@lists.ozlabs.org X-MC-Unique: XQEBoglpPdW8CLi9MT7-LQ-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dave, On Thu, Nov 21, 2019 at 8:51 AM Dave Young wrote: > > On 11/11/19 at 01:31pm, Bhupesh Sharma wrote: > > 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_SPARSEM= EM > > 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, wher= eas > > [PATCH 2/2] appends 'MAX_PHYSMEM_BITS' to vmcoreinfo in core kernel c= ode (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 kernel= s > > 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: 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 (3): > > crash_core, vmcoreinfo: Append 'MAX_PHYSMEM_BITS' to vmcoreinfo > > arm64/crash_core: Export TCR_EL1.T1SZ in vmcoreinfo > > Soft reminder: the new introduced vmcoreinfo needs documentation > > Please check Documentation/admin-guide/kdump/vmcoreinfo.rst Sure, will send a v5 to address the same. Thanks, Bhupesh