Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8574068imu; Thu, 15 Nov 2018 13:51:59 -0800 (PST) X-Google-Smtp-Source: AJdET5e69VsNxQp45O+g5dRJsiVDfNUuDmzpuVXNnhjglxu4gNiL3yDcZg65dRzQBILB9UDJVOAf X-Received: by 2002:a63:5a08:: with SMTP id o8mr7352984pgb.185.1542318718972; Thu, 15 Nov 2018 13:51:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542318718; cv=none; d=google.com; s=arc-20160816; b=A0mjnNV70KMzD2zTKWZ8LvI2Nr6Vm/FtK7XZSRLC/UHj4yg5cvLpBDoNT3Ju7c3Rhs gxc2NvzeZkH9Rlrqxaoc0yqFtV8QLcdG+1GUjsuKKf9kTOEtGZey8BN5JH58fBpZL6Hj +bZNVa073uNPswPe9xt1JZ1zEvlg3XH1mc3vBYZJZemJCkRAS4jQoWNfueZxkIOkRlvy O8pCJQ0yB7maGdDoS63V0fpB9mqUf5IVAaryymSUx4S3XxvRC+QhDevJn6NurRF/Eq6x zkcETxmQBdxkPgbQUoCXpteMmtpVC149ZmckQjhm++jjPtkSZjbiQPZW93mxp7+SzcXQ jD7g== 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; bh=6eXWvU1hc1vq5nQl2iRF8gvooNDGaeCWPSdQLhdgWtE=; b=IPnTfDTiLlZvHnXPZSPZ3HcAwqASIJ0tXn88pl5RheJr6wEiWxy3nW4ACBL3YOxFyx LD4ANO6ygT1/junqvzQ+Z5/cUxHDyVLH8jFDOcLphRDs9BsDOtmZlNbPGSEvNmPehZTf sI+COq9qrCiyfz9l1dBqzvFT/nBsBXOhNlre03jTODypz1u8b4/DRcLldJ3qF3PfnpHw hxUf5gKGc2DMvIY+Phtffs1fco0og+ClQlZB9A4b1eDcAofT8g6igTsZW71qGkljYmjS EgazwwNlbQwjZxBC+rn6dsi/hxoIR+WIeCnVPmuRLTpuzwUuPS3SD2jZzU/AC9KAeAIf dnaw== 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 59-v6si5018277plp.291.2018.11.15.13.51.45; Thu, 15 Nov 2018 13:51:58 -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; 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 S1729252AbeKPIAk (ORCPT + 99 others); Fri, 16 Nov 2018 03:00:40 -0500 Received: from mail-lf1-f68.google.com ([209.85.167.68]:42401 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726600AbeKPIAj (ORCPT ); Fri, 16 Nov 2018 03:00:39 -0500 Received: by mail-lf1-f68.google.com with SMTP id l10so11594632lfh.9 for ; Thu, 15 Nov 2018 13:51:03 -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=6eXWvU1hc1vq5nQl2iRF8gvooNDGaeCWPSdQLhdgWtE=; b=brPKOhhMmbZ3TRH1jOheSLSAnYXCIa1s0uPMNge3tZ7ZLVXapXfWKl1rAxLSQnCzxi Jv5SE4Zt2IijQkHunE7Zc8hxT/0XT89KsQJud+ART7/KUeFz9g8j4811/42FMvN2LbL7 Kiswh++McApkAqdltqq3nZ9ehw8WtcFJtX46vumeiASiJBiPLKHMkYFGzt06asbnTckd uhOo6dsyf3umcG+Y8MQ3GAf024250FLEy2h8NZqzrMzJWT6mWONLbvHZLMHU7KHetrae KAH+2LRueOv5nKVJ3xmiwGOCzVZspMBAfuVp40VwS0L2ABRQQ49VtG7Ve6J0/qJq6VUf VX9A== X-Gm-Message-State: AGRZ1gIi+IWiWzuanMZj5/hdCGVe3EVig2zNYdTow6fmEXbephUZHF1t 8BW937ihpMLNALHTsWIMou9zAFvOu+biYM2rH0wPig== X-Received: by 2002:a19:750a:: with SMTP id y10mr4215653lfe.43.1542318662777; Thu, 15 Nov 2018 13:51:02 -0800 (PST) MIME-Version: 1.0 References: <1540593788-28181-1-git-send-email-bhsharma@redhat.com> <20181027100241.GB1884@MiWiFi-R3L-srv> <20181030020752.GB11408@MiWiFi-R3L-srv> <20181030085917.GC11408@MiWiFi-R3L-srv> In-Reply-To: <20181030085917.GC11408@MiWiFi-R3L-srv> From: Bhupesh Sharma Date: Fri, 16 Nov 2018 03:20:50 +0530 Message-ID: Subject: Re: [PATCH] x86_64, vmcoreinfo: Append 'page_offset_base' to vmcoreinfo To: Baoquan He Cc: Linux Kernel Mailing List , Bhupesh SHARMA , Borislav Petkov , Ingo Molnar , Thomas Gleixner , Kazuhito Hagio , Dave Anderson , James Morse , Omar Sandoval , x86@kernel.org, kexec mailing list , linux-arm-kernel 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 Hi Baoquan, On Tue, Oct 30, 2018 at 2:29 PM Baoquan He wrote: > > Hi Bhupesh, > > On 10/30/18 at 12:33pm, Bhupesh Sharma wrote: > > > Why it's broken? Have you investigated and figured out why it's broken? > > > If fix, what patch will it look like? Does the patch prove it's not > > > worth using the current way? > > > > > > Have you thought about this in advance? Or still like before, you said > > > on arm64 you found different boards have different behaviour, then > > > makedumpfile maintainer Kazu said he investigated and found it may be > > > caused by KALSR. This time, for this KCORE_REMAP adding, can you help to > > > investigate further and give an answer to the issue you found and > > > raised? > > > > Ofcourse, the patchset which added vmcoreinfo into kcore was discussed > > and it was agreed that this was a better approach to move forward and hence > > accepted in mainline. > > Currently I am wondering why x86_64 need add page_offset_base to > vmcoreinfo. Is it because any feature or userspace tool is broken if > page_offset_base is not added into vmcoreinfo? > > Why KCORE_REMAP adding broke makedumpfile, do you find out the root > cause and what it looks like if you fix it in the current way? > > Can you list the reasons one by one as below with short sentence? > 1) > 2) > 3) > > > > > Regarding the makedumpfile issue, I have already provided a detailed > > reply to Kazu (you are Cc'ed on the thread) and also proposed a > > makedumpfile approach which > > reads the 'page_offset_base' value from kcore (using the kernel > > interface provided by this patch), > > [on which you are Cc'ed as well]: > > This is your replying mail link: > https://www.spinics.net/lists/kexec/msg21616.html > > Then what on earth do you want to fix in this patch? > > So Kazu's patch which decuding page_offset_base like x86 64 have done works. > Yes, and your way using vmcoreinfo in kcore also works, but this is not > the reason which supports you to discard the old way Kazu suggested. Now > we are talking about why you want to discard the old way, and adding > page_offset_base to vmcoreinfo. > > Please elaborate and reply with simple and clear logic. I have sent a v2 patch with a much simpler git log message. Hopefully that should clarify the intent behind the patch. Also lets see what views the x86 maintainers have on the v2 patch. Regards, Bhupesh