From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 70FDDC33C9E for ; Thu, 9 Jan 2020 00:47:54 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4356C2070E for ; Thu, 9 Jan 2020 00:47:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="azvR+R7C"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="vlXw4X09" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4356C2070E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=YZUDGPkK/hG6xlzw7vD/0eyYS83R51UE7OeR4B09RLU=; b=azvR+R7CvOp4uU sqCaFgfGHBFNBGCtWxfU8chGnGZY5G9890eigVTXjEkqWufJR+NBtruB4K2uPp+WewblYPXyP0D/+ TBAwXuwyuygmIUGti8y28AA5AXLV7P4j12hkCB23qLeqRYVDKgpg9MEjY1FKpcc40Reskhoybd+V9 MuURZf8EqHRiRmq5ZW8iuUvYnXzl2SeyDZqSR4YaGU5+b+F3quDLVeQ8D7U2UxjctEEvOVROyF6Wx mRtIjS581InGC6ahFe6uiB5yWDsF4b71pXYJHHr5PTOnSsLiTXuHiR18EHsF2wOH1qpZQOelpup8T 0DoRxeF44bvHo7WheU/Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ipLzN-0004S0-6e; Thu, 09 Jan 2020 00:47:53 +0000 Received: from mail-pj1-x1042.google.com ([2607:f8b0:4864:20::1042]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ipLzH-0004QK-0W for linux-arm-kernel@lists.infradead.org; Thu, 09 Jan 2020 00:47:51 +0000 Received: by mail-pj1-x1042.google.com with SMTP id r67so362740pjb.0 for ; Wed, 08 Jan 2020 16:47:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=rSfEEcmQyCUqfvgCiTT6mkGa4l0lidjR/v02Uy320aQ=; b=vlXw4X09XtxJmnvAJpjDx+iHGbAhzR8xoLQkJQBDx0HyHh04Cy/pvVg8AWPKiH1i14 JHUj3TzmajSF4cRTHkQYxyNL/bJU+Wmt+CkIcjZiAotEGEGxmT/03D46hSWJEcxHvnSw auKTtM5a4oXh6YD+9rqg8h8jMFhhRuaDVBNNfaTnLxiG3XxV81N/+YbeJ6E68PnVlbmV EeMn4TWWovHmHBASdO480YbZIuMh/BaswVryM/GELCxzf5O/2ieWsLn0ZemGdaWy7dHg Ac1rxyw1VvR/+AV3gGkGBx+4XWGXQm3B7rHRCAtaiLGKIu9xyAMHJeMh72SlPrB5WnVM zfhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=rSfEEcmQyCUqfvgCiTT6mkGa4l0lidjR/v02Uy320aQ=; b=KEycMPh/WWrdfH11ElRgcrMG5KjcvFeRaJJZ+TsNKstnVnrUXi9demdM9zhVL3GjcW lMS7k5mrYuCgZxCek5BBlU3jpDn3WExcLyh2RM5sDoNHb7cQsnYr+PsD19Yzb2ILXcjG E3+hU57WY524hpbU7ZVtrWgLzmDF29SkB9//t3XgWQ7PRnJYdlr0/lmleNa75xu3p+ub Xrpm+Xp/8y0eEZfUHxGYVmA+6Wsqt/RyYLIwBUrqI0nCnQ+bpB160Vdq0Cu5Mp+iRE1t 5m17zWBBPllFBiZtALLtacAEco/7tHP+zgwePwJ34vv08DS5NrDj/I5Ad9ZfUT7cSpJJ SU0w== X-Gm-Message-State: APjAAAWDmH7KzlFXSEs9KyKjSImoSQg3+FGwv149AlgzrXiiQ0Ci+Ww7 5bsETDnfyGmY9C4d9jR/6hJP4A== X-Google-Smtp-Source: APXvYqw7WGHnX/QpyTD8r1wwlNVnsgyvHRNaXQv42JH5+fdbom1in8GXTZi8DnCxNlaJBf7Bd6EUMQ== X-Received: by 2002:a17:902:9a08:: with SMTP id v8mr8665290plp.134.1578530865394; Wed, 08 Jan 2020 16:47:45 -0800 (PST) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id b8sm5099312pfr.64.2020.01.08.16.47.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Jan 2020 16:47:44 -0800 (PST) Date: Thu, 9 Jan 2020 09:46:55 +0900 From: AKASHI Takahiro To: Will Deacon Subject: Re: [PATCH v4 2/2] arm64: kexec_file: add crash dump support Message-ID: <20200109004654.GA28530@linaro.org> Mail-Followup-To: AKASHI Takahiro , Will Deacon , 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 References: <20191216021247.24950-1-takahiro.akashi@linaro.org> <20191216021247.24950-3-takahiro.akashi@linaro.org> <20200108174839.GB21242@willie-the-truck> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200108174839.GB21242@willie-the-truck> User-Agent: Mutt/1.5.24 (2015-08-30) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200108_164747_213674_17138203 X-CRM114-Status: GOOD ( 19.07 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: pasha.tatashin@soleen.com, catalin.marinas@arm.com, bhsharma@redhat.com, will.deacon@arm.com, linux-kernel@vger.kernel.org, robh+dt@kernel.org, james.morse@arm.com, frowand.list@gmail.com, kexec@lists.infradead.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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.) Thank you for the merge, -Takahiro Akashi > Will > > [1] https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git/diff/?h=for-kernelci&id=aef73191765a88cadc0a627cdc070e5a0086b015 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel