Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1744940ybl; Thu, 9 Jan 2020 00:34:59 -0800 (PST) X-Google-Smtp-Source: APXvYqyMaLVD2/nfI9NCCID5ZyjdZRQc90ax3IjLiAZ/pOejzX7E00NiZSbBEYvslYiRuxBuqHoc X-Received: by 2002:a05:6808:f:: with SMTP id u15mr2341863oic.100.1578558899413; Thu, 09 Jan 2020 00:34:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578558899; cv=none; d=google.com; s=arc-20160816; b=y1hYrvqttLaUfqrCRL/u5S5kEw9X+WwkVvYSmVwIiE3RFv4cKQEUK49MaK6zFe/1e3 fh/DaGpjsscygXr/+HWgXg+/F5FKHr/3VIIx5e2RVfHlAleWRLcAhm0YOW9QORyF3Vof qa3NmeicwOZwzz/AKAmbce17TornHuAjOPQw+8pQBHAt58cO7gi2qmrjdLoHQifgEfxY CquTTKZ7v2PXiWHLLzY+/FOejghD3Us7oHrQXbhFLQBEcdkWk4oSWYLwC0IjtrSg0DhR NSsNa9c6CYkATo8tvWS532bvI2q/Pa6ie0K+PfeGAQU7S71MNAu0T8io8I/9f2U1baO/ afwA== 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:to :from:date:dkim-signature; bh=0cDEB4w9tCqZ5xzgrDwR3+xlrz5dHrXpyPVUPL4DdNc=; b=Io+7fEhrSk5fqBi3E6KqF8v/kZaIXSVuM6N2AEXMsqZR3IVE67QpgJ53ThXCGCf6Es /3icail1JoSZDGUxBkRgqcfDWGAGwI3FhQIhLIbzWGMljTy+V5qsDDqlO25P/px32Gbp MdTU8CFe1Rg2WKGkzlY1rLiUR5GgHVsxj+brrxTybl8bOdm4G+121l8sjIwkXtEfdVNF 3lYaFFxsrHr7hR5PSqlqBWgEjAMCnCkgTnd+hUcaDi15gwhsLDvopxw1ic0hTW7B5fl2 ZaaUZz7tf0vODjN38gsT8I92JGJ2Lt14fMcQ6VQjFcrpEptzLnu2h6kc0sJ1RVwVL35m 0Z3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ZW24qfX6; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e24si3164470otl.62.2020.01.09.00.34.46; Thu, 09 Jan 2020 00:34:59 -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=@kernel.org header.s=default header.b=ZW24qfX6; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728508AbgAIIdB (ORCPT + 99 others); Thu, 9 Jan 2020 03:33:01 -0500 Received: from mail.kernel.org ([198.145.29.99]:59582 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728347AbgAIIdB (ORCPT ); Thu, 9 Jan 2020 03:33:01 -0500 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6F20C20673; Thu, 9 Jan 2020 08:32:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578558780; bh=K/8jTc/G+/G9KpLYm2RrQRaA/2Ksqd3676QEmOVLgSY=; h=Date:From:To:Subject:References:In-Reply-To:From; b=ZW24qfX6vZYfde10oWKxf9doyhrwmVhaLRivKfvaF5mR/fSL/C16gzZHTAQ4nT/3U 6ySBgEy6Xf8tUj3pT9Ux/29vphkZezo7EaYvT819taR+g978O9qOri3Drqs+vad1iD rQoeyPPniBw4IlEyCE3lH7ePUIpPr/RMxZnPiPds= Date: Thu, 9 Jan 2020 08:32:55 +0000 From: Will Deacon To: AKASHI Takahiro , pasha.tatashin@soleen.com, catalin.marinas@arm.com, will.deacon@arm.com, robh+dt@kernel.org, frowand.list@gmail.com, bhsharma@redhat.com, kexec@lists.infradead.org, linux-kernel@vger.kernel.org, james.morse@arm.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v4 2/2] arm64: kexec_file: add crash dump support Message-ID: <20200109083254.GA7280@willie-the-truck> References: <20191216021247.24950-1-takahiro.akashi@linaro.org> <20191216021247.24950-3-takahiro.akashi@linaro.org> <20200108174839.GB21242@willie-the-truck> <20200109004654.GA28530@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200109004654.GA28530@linaro.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 09, 2020 at 09:46:55AM +0900, AKASHI Takahiro wrote: > On Wed, Jan 08, 2020 at 05:48:39PM +0000, Will Deacon wrote: > > On Mon, Dec 16, 2019 at 11:12:47AM +0900, AKASHI Takahiro wrote: > > > Enabling crash dump (kdump) includes > > > * prepare contents of ELF header of a core dump file, /proc/vmcore, > > > using crash_prepare_elf64_headers(), and > > > * add two device tree properties, "linux,usable-memory-range" and > > > "linux,elfcorehdr", which represent respectively a memory range > > > to be used by crash dump kernel and the header's location > > > > > > Signed-off-by: AKASHI Takahiro > > > Cc: Catalin Marinas > > > Cc: Will Deacon > > > Reviewed-by: James Morse > > > Tested-and-reviewed-by: Bhupesh Sharma > > > --- > > > arch/arm64/include/asm/kexec.h | 4 + > > > arch/arm64/kernel/kexec_image.c | 4 - > > > arch/arm64/kernel/machine_kexec_file.c | 106 ++++++++++++++++++++++++- > > > 3 files changed, 106 insertions(+), 8 deletions(-) > > > > > > diff --git a/arch/arm64/include/asm/kexec.h b/arch/arm64/include/asm/kexec.h > > > index 12a561a54128..d24b527e8c00 100644 > > > --- a/arch/arm64/include/asm/kexec.h > > > +++ b/arch/arm64/include/asm/kexec.h > > > @@ -96,6 +96,10 @@ static inline void crash_post_resume(void) {} > > > struct kimage_arch { > > > void *dtb; > > > unsigned long dtb_mem; > > > + /* Core ELF header buffer */ > > > + void *elf_headers; > > > + unsigned long elf_headers_mem; > > > + unsigned long elf_headers_sz; > > > }; > > > > This conflicts with the cleanup work from Pavel. Please can you check my > > resolution? [1] > > I don't know why we need to change a type of dtb_mem, > otherwise it looks good. > > (I also assume that you notice that kimage_arch is of no use for kexec.) Yes, that's why I'd like the resolution checked. If you reckon it's cleaner to drop Pavel's patch altogether in light of your changes, we can do that instead. Thoughts? Will