Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp4447478imd; Tue, 30 Oct 2018 02:01:11 -0700 (PDT) X-Google-Smtp-Source: AJdET5e2PzRQJR4wSvDW03ltQBASv1qtPLTL81ABe9A584+aWya/6HbZKjf5FEKZhZfRXgRqwxVg X-Received: by 2002:a62:995c:: with SMTP id d89-v6mr2028837pfe.11.1540890071318; Tue, 30 Oct 2018 02:01:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540890071; cv=none; d=google.com; s=arc-20160816; b=tkG6/A/QA0BAjtc0h3mJ5PIhqGSlLkz/vonHHtaCwtiNVuT3FYaTUe9qEapqWHK5xZ 0YQEvN6Ib3axVZSUdulf2m5KW+krlK3vDZGGtwDvPuRYmhtmlzH+gR0SNlt0E8NCVgaW KloFX0rTwmQCgRLCx2w4B81MIJ2HnhFgKOBKZZ0Ieuo2PXhd14+SDt54+DYHmRY9ljdV W7eGL2ncaDEPhzlz0sf4O9AD+7Qo4CHq2GukTQfhpmG07LD1Sp5GYu6SMu5XnA5O3gLY 3BUv5S+akNo/uU4QfFV9GTgvBoIhwNTslk8dZXWmU8TUvdUOOxRmLaaempfD3jO/NttV vX7A== 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=aLVbidm05atIx5+GC1lcv4jw6sk2B7jx0xYVm6e9Msc=; b=KPE1VDjEJiY9WI/KFjqE5GC7nflDEPjn8Om63iRm82MoHj6Sap68/hVld0y6C5lXwF 4kaGpNsgTj1ZhW5K8z9/oSq0B1UomkIIHA8ttUbWMCaxY1WSqqJCxdC4reX8AUYj5Zg/ GwGe9owqVz4KIluKruTSB0eCETLV7/Gdzz0fTR/tsqHnMfHg6GJ0hMmjAJcaEFmcNVmW edE7S8iWqt0Mv/xQyxhit7OUAeVrSzmnoUo6nBI79MlWV/SbW1bxEV0C5Plf+zLujGTE uNVHHtwQlcUAktecRV9aPCq2D6TisX90QDrd2KYpwss7kRugx+4GuI5/c7IKvrr5Q1hB trIg== 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 s186-v6si15238971pfb.129.2018.10.30.02.00.53; Tue, 30 Oct 2018 02:01:11 -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 S1727115AbeJ3RwB (ORCPT + 99 others); Tue, 30 Oct 2018 13:52:01 -0400 Received: from mx1.redhat.com ([209.132.183.28]:6151 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726858AbeJ3RwA (ORCPT ); Tue, 30 Oct 2018 13:52:00 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0A679A6E13; Tue, 30 Oct 2018 08:59:22 +0000 (UTC) Received: from localhost (ovpn-8-16.pek2.redhat.com [10.72.8.16]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 20410608EF; Tue, 30 Oct 2018 08:59:20 +0000 (UTC) Date: Tue, 30 Oct 2018 16:59:17 +0800 From: Baoquan He To: Bhupesh Sharma 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 Subject: Re: [PATCH] x86_64, vmcoreinfo: Append 'page_offset_base' to vmcoreinfo Message-ID: <20181030085917.GC11408@MiWiFi-R3L-srv> References: <1540593788-28181-1-git-send-email-bhsharma@redhat.com> <20181027100241.GB1884@MiWiFi-R3L-srv> <20181030020752.GB11408@MiWiFi-R3L-srv> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.1 (2017-09-22) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Tue, 30 Oct 2018 08:59:27 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Thanks Baoquan