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=-10.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, 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 10C5AC433E0 for ; Thu, 11 Feb 2021 17:49:03 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 B08D864DCE for ; Thu, 11 Feb 2021 17:49:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B08D864DCE Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+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=merlin.20170209; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:References: To:From:Subject:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=aaIQ5xJfGf8tWx7EenEJZUXISutdxjcN5i2+bDu3M5o=; b=kXIqUYbqNby2ocxiQitHMfkKu 2ZJOI8ikIMSr6LlqSZ6PF1KUS7q72TDwDcIEZT8ovYlUN/A72xBBkz3xUNnlfm8+L3z18R6lt8h9r PxLSejOXl80A0C/NRbRYEI27aCTiQGRpSePKUVr7jxGwxY/qewiLUAGwYa0itQHnyPlMmYnKgMwBa 1QcPDIYXnyRkYXneNSjInvIxorI6RxgUIUToWdpRVfyyzxK/EHLbtHuW1qoFO8RkFw2pzP5HYMIA0 vddmIhNkmpXgA/gHXnZkn9WUNR8GzKRLxRQiiPkImuf21bP4fuA0MM24Cjwitd12RDASqRI9xyeB6 crr7IfTqA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1lAG4N-0006jf-6S; Thu, 11 Feb 2021 17:47:59 +0000 Received: from linux.microsoft.com ([13.77.154.182]) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1lAG4J-0006iv-Tv for linux-arm-kernel@lists.infradead.org; Thu, 11 Feb 2021 17:47:57 +0000 Received: from [192.168.0.104] (c-73-42-176-67.hsd1.wa.comcast.net [73.42.176.67]) by linux.microsoft.com (Postfix) with ESMTPSA id BFDFA20B6C40; Thu, 11 Feb 2021 09:47:54 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com BFDFA20B6C40 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1613065674; bh=6EuwAepO8sOWBBXJJIWofEAs3v7xM/DSiHtcGVvxwIU=; h=Subject:From:To:References:Date:In-Reply-To:From; b=CmSPCx04+vjfxsw342xmIeFrmzFMAteny0futqbrEGNa3rCrnJ/6ilMS0dsWVanVj AIHyozVtCvKwVnCdVBWGIPaY3JWRcnmaMpIXlHepOVngvhXi1YpB7r3GQIWMgAI/D+ pTI3oUxMdHmXYpHjBEVUC3N1ZBTI337ZQ3jX19Ew= Subject: Re: Fwd: Re: [PATCH v17 02/10] of: Add a common kexec FDT setup function From: Lakshmi Ramasubramanian To: Rob Herring , Thiago Jung Bauermann , Mimi Zohar , linux-integrity@vger.kernel.org, linux-arm-kernel , linux-integrity@vger.kernel.org, linuxppc-dev References: <202102120032.Bv0MoYv7-lkp@intel.com> <40fd1869-dcb4-36ae-e997-b8486dd4846c@linux.microsoft.com> Message-ID: Date: Thu, 11 Feb 2021 09:47:54 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <40fd1869-dcb4-36ae-e997-b8486dd4846c@linux.microsoft.com> Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210211_124756_139938_B508ED7D X-CRM114-Status: GOOD ( 37.36 ) 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: , Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="windows-1252"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 2/11/21 9:42 AM, Lakshmi Ramasubramanian wrote: > Hi Rob, > = > [PATCH] powerpc: Rename kexec elfcorehdr_addr to elf_headers_mem > = > This change causes build problem for x86_64 architecture (please see the = > mail from kernel test bot below) since arch/x86/include/asm/kexec.h uses = > "elf_load_addr" for the ELF header buffer address and not = > "elf_headers_mem". > = > struct kimage_arch { > =A0=A0=A0=A0... > = > =A0=A0=A0=A0/* Core ELF header buffer */ > =A0=A0=A0=A0void *elf_headers; > =A0=A0=A0=A0unsigned long elf_headers_sz; > =A0=A0=A0=A0unsigned long elf_load_addr; > }; > = > I am thinking of limiting of_kexec_alloc_and_setup_fdt() to ARM64 and = > PPC64 since they are the only ones using this function now. > = > #if defined(CONFIG_ARM64) && defined(CONFIG_PPC64) Sorry - I meant to say #if defined(CONFIG_ARM64) || defined(CONFIG_PPC64) > void *of_kexec_alloc_and_setup_fdt(const struct kimage *image, > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 unsigned long ini= trd_load_addr, > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 unsigned long ini= trd_len, > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 const char *cmdli= ne) > { > =A0=A0=A0=A0... > } > #endif /* defined(CONFIG_ARM64) && defined(CONFIG_PPC64) */ > = > Please let me know if you have any concerns. > = > thanks, > =A0-lakshmi > = > -------- Forwarded Message -------- > Subject: Re: [PATCH v17 02/10] of: Add a common kexec FDT setup function > Date: Fri, 12 Feb 2021 00:50:20 +0800 > From: kernel test robot > To: Lakshmi Ramasubramanian > CC: kbuild-all@lists.01.org > = > Hi Lakshmi, > = > I love your patch! Yet something to improve: > = > [auto build test ERROR on integrity/next-integrity] > [also build test ERROR on v5.11-rc7 next-20210211] > [cannot apply to powerpc/next robh/for-next arm64/for-next/core] > [If your patch is applied to the wrong git tree, kindly drop us a note. > And when submitting patch, we suggest to use '--base' as documented in > https://git-scm.com/docs/git-format-patch] > = > url: = > https://github.com/0day-ci/linux/commits/Lakshmi-Ramasubramanian/Carry-fo= rward-IMA-measurement-log-on-kexec-on-ARM64/20210211-071924 = > = > base: = > https://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity.git= next-integrity = > = > config: x86_64-randconfig-m001-20210211 (attached as .config) > compiler: gcc-9 (Debian 9.3.0-15) 9.3.0 > reproduce (this is a W=3D1 build): > =A0=A0=A0=A0=A0=A0=A0 # = > https://github.com/0day-ci/linux/commit/12ae86067d115b84092353109e8798693= d102f0d = > = > =A0=A0=A0=A0=A0=A0=A0 git remote add linux-review https://github.com/0da= y-ci/linux > =A0=A0=A0=A0=A0=A0=A0 git fetch --no-tags linux-review = > Lakshmi-Ramasubramanian/Carry-forward-IMA-measurement-log-on-kexec-on-ARM= 64/20210211-071924 = > = > =A0=A0=A0=A0=A0=A0=A0 git checkout 12ae86067d115b84092353109e8798693d102= f0d > =A0=A0=A0=A0=A0=A0=A0 # save the attached .config to linux build tree > =A0=A0=A0=A0=A0=A0=A0 make W=3D1 ARCH=3Dx86_64 > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > = > All errors (new ones prefixed by >>): > = > =A0=A0 drivers/of/kexec.c: In function 'of_kexec_alloc_and_setup_fdt': >>> drivers/of/kexec.c:183:17: error: 'const struct kimage_arch' has no = >>> member named 'elf_headers_mem'; did you mean 'elf_headers_sz'? > =A0=A0=A0=A0 183 |=A0=A0=A0=A0 image->arch.elf_headers_mem, > =A0=A0=A0=A0=A0=A0=A0=A0 |=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0 ^~~~~~~~~~~~~~~ > =A0=A0=A0=A0=A0=A0=A0=A0 |=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0 elf_headers_sz > =A0=A0 drivers/of/kexec.c:192:42: error: 'const struct kimage_arch' has = no = > member named 'elf_headers_mem'; did you mean 'elf_headers_sz'? > =A0=A0=A0=A0 192 |=A0=A0 ret =3D fdt_add_mem_rsv(fdt, image->arch.elf_he= aders_mem, > =A0=A0=A0=A0=A0=A0=A0=A0 |=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0 ^~~~~~~~~~~~~~~ > =A0=A0=A0=A0=A0=A0=A0=A0 |=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0 elf_headers_sz > = > = > vim +183 drivers/of/kexec.c > = > =A0=A0=A0 65 > =A0=A0=A0 66=A0=A0=A0 /* > =A0=A0=A0 67=A0=A0=A0=A0 * of_kexec_alloc_and_setup_fdt - Alloc and setu= p a new = > Flattened Device Tree > =A0=A0=A0 68=A0=A0=A0=A0 * > =A0=A0=A0 69=A0=A0=A0=A0 * @image:=A0=A0=A0=A0=A0=A0=A0 kexec image bein= g loaded. > =A0=A0=A0 70=A0=A0=A0=A0 * @initrd_load_addr:=A0=A0=A0 Address where the= next initrd will = > be loaded. > =A0=A0=A0 71=A0=A0=A0=A0 * @initrd_len:=A0=A0=A0=A0=A0=A0=A0 Size of the= next initrd, or 0 if there = > will be none. > =A0=A0=A0 72=A0=A0=A0=A0 * @cmdline:=A0=A0=A0=A0=A0=A0=A0 Command line f= or the next kernel, or NULL = > if there will > =A0=A0=A0 73=A0=A0=A0=A0 *=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 be none. > =A0=A0=A0 74=A0=A0=A0=A0 * > =A0=A0=A0 75=A0=A0=A0=A0 * Return: fdt on success, or NULL errno on erro= r. > =A0=A0=A0 76=A0=A0=A0=A0 */ > =A0=A0=A0 77=A0=A0=A0 void *of_kexec_alloc_and_setup_fdt(const struct ki= mage *image, > =A0=A0=A0 78=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0 unsigned long initrd_load_addr, > =A0=A0=A0 79=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0 unsigned long initrd_len, > =A0=A0=A0 80=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0 const char *cmdline) > =A0=A0=A0 81=A0=A0=A0 { > =A0=A0=A0 82=A0=A0=A0=A0=A0=A0=A0 void *fdt; > =A0=A0=A0 83=A0=A0=A0=A0=A0=A0=A0 int ret, chosen_node; > =A0=A0=A0 84=A0=A0=A0=A0=A0=A0=A0 const void *prop; > =A0=A0=A0 85=A0=A0=A0=A0=A0=A0=A0 unsigned long fdt_size; > =A0=A0=A0 86 > =A0=A0=A0 87=A0=A0=A0=A0=A0=A0=A0 fdt_size =3D fdt_totalsize(initial_boo= t_params) + > =A0=A0=A0 88=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 (cmdline ? strlen= (cmdline) : 0) + > =A0=A0=A0 89=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 FDT_EXTRA_SPACE; > =A0=A0=A0 90 > =A0=A0=A0 91=A0=A0=A0=A0=A0=A0=A0 fdt =3D kvmalloc(fdt_size, GFP_KERNEL); > =A0=A0=A0 92=A0=A0=A0=A0=A0=A0=A0 if (!fdt) > =A0=A0=A0 93=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 return NULL; > =A0=A0=A0 94 > =A0=A0=A0 95=A0=A0=A0=A0=A0=A0=A0 ret =3D fdt_open_into(initial_boot_par= ams, fdt, fdt_size); > =A0=A0=A0 96=A0=A0=A0=A0=A0=A0=A0 if (ret < 0) { > =A0=A0=A0 97=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 pr_err("Error %d setting u= p the new device tree.\n", = > ret); > =A0=A0=A0 98=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 goto out; > =A0=A0=A0 99=A0=A0=A0=A0=A0=A0=A0 } > =A0=A0 100 > =A0=A0 101=A0=A0=A0=A0=A0=A0=A0 /* Remove memory reservation for the cur= rent device tree. */ > =A0=A0 102=A0=A0=A0=A0=A0=A0=A0 ret =3D fdt_find_and_del_mem_rsv(fdt, = > __pa(initial_boot_params), > =A0=A0 103=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0 fdt_totalsize(initial_boot_params)); > =A0=A0 104=A0=A0=A0=A0=A0=A0=A0 if (ret =3D=3D -EINVAL) { > =A0=A0 105=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 pr_err("Error removing memor= y reservation.\n"); > =A0=A0 106=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 goto out; > =A0=A0 107=A0=A0=A0=A0=A0=A0=A0 } > =A0=A0 108 > =A0=A0 109=A0=A0=A0=A0=A0=A0=A0 chosen_node =3D fdt_path_offset(fdt, "/c= hosen"); > =A0=A0 110=A0=A0=A0=A0=A0=A0=A0 if (chosen_node =3D=3D -FDT_ERR_NOTFOUND) > =A0=A0 111=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 chosen_node =3D fdt_add_subn= ode(fdt, = > fdt_path_offset(fdt, "/"), > =A0=A0 112=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0 "chosen"); > =A0=A0 113=A0=A0=A0=A0=A0=A0=A0 if (chosen_node < 0) { > =A0=A0 114=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ret =3D chosen_node; > =A0=A0 115=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 goto out; > =A0=A0 116=A0=A0=A0=A0=A0=A0=A0 } > =A0=A0 117 > =A0=A0 118=A0=A0=A0=A0=A0=A0=A0 ret =3D fdt_delprop(fdt, chosen_node, FD= T_PROP_KEXEC_ELFHDR); > =A0=A0 119=A0=A0=A0=A0=A0=A0=A0 if (ret && ret !=3D -FDT_ERR_NOTFOUND) > =A0=A0 120=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 goto out; > =A0=A0 121=A0=A0=A0=A0=A0=A0=A0 ret =3D fdt_delprop(fdt, chosen_node, FD= T_PROP_MEM_RANGE); > =A0=A0 122=A0=A0=A0=A0=A0=A0=A0 if (ret && ret !=3D -FDT_ERR_NOTFOUND) > =A0=A0 123=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 goto out; > =A0=A0 124 > =A0=A0 125=A0=A0=A0=A0=A0=A0=A0 /* Did we boot using an initrd? */ > =A0=A0 126=A0=A0=A0=A0=A0=A0=A0 prop =3D fdt_getprop(fdt, chosen_node, = > "linux,initrd-start", NULL); > =A0=A0 127=A0=A0=A0=A0=A0=A0=A0 if (prop) { > =A0=A0 128=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 u64 tmp_start, tmp_end, tmp_= size; > =A0=A0 129 > =A0=A0 130=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 tmp_start =3D fdt64_to_cpu(*= ((const fdt64_t *) prop)); > =A0=A0 131 > =A0=A0 132=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 prop =3D fdt_getprop(fdt, ch= osen_node, = > "linux,initrd-end", NULL); > =A0=A0 133=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 if (!prop) { > =A0=A0 134=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ret =3D -EINVAL; > =A0=A0 135=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 goto out; > =A0=A0 136=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 } > =A0=A0 137 > =A0=A0 138=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 tmp_end =3D fdt64_to_cpu(*((= const fdt64_t *) prop)); > =A0=A0 139 > =A0=A0 140=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 /* > =A0=A0 141=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 * kexec reserves exact in= itrd size, while firmware may > =A0=A0 142=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 * reserve a multiple of P= AGE_SIZE, so check for both. > =A0=A0 143=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 */ > =A0=A0 144=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 tmp_size =3D tmp_end - tmp_s= tart; > =A0=A0 145=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ret =3D fdt_find_and_del_mem= _rsv(fdt, tmp_start, = > tmp_size); > =A0=A0 146=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 if (ret =3D=3D -ENOENT) > =A0=A0 147=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ret =3D fdt_find= _and_del_mem_rsv(fdt, tmp_start, > =A0=A0 148=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 round_up(tmp_size, PAGE_SIZE)); > =A0=A0 149=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 if (ret =3D=3D -EINVAL) > =A0=A0 150=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 goto out; > =A0=A0 151=A0=A0=A0=A0=A0=A0=A0 } > =A0=A0 152 > =A0=A0 153=A0=A0=A0=A0=A0=A0=A0 /* add initrd-* */ > =A0=A0 154=A0=A0=A0=A0=A0=A0=A0 if (initrd_load_addr) { > =A0=A0 155=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ret =3D fdt_setprop_u64(fdt,= chosen_node, = > FDT_PROP_INITRD_START, > =A0=A0 156=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0 initrd_load_addr); > =A0=A0 157=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 if (ret) > =A0=A0 158=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 goto out; > =A0=A0 159 > =A0=A0 160=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ret =3D fdt_setprop_u64(fdt,= chosen_node, = > FDT_PROP_INITRD_END, > =A0=A0 161=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0 initrd_load_addr + initrd_len); > =A0=A0 162=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 if (ret) > =A0=A0 163=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 goto out; > =A0=A0 164 > =A0=A0 165=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ret =3D fdt_add_mem_rsv(fdt,= initrd_load_addr, = > initrd_len); > =A0=A0 166=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 if (ret) > =A0=A0 167=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 goto out; > =A0=A0 168 > =A0=A0 169=A0=A0=A0=A0=A0=A0=A0 } else { > =A0=A0 170=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ret =3D fdt_delprop(fdt, cho= sen_node, = > FDT_PROP_INITRD_START); > =A0=A0 171=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 if (ret && (ret !=3D -FDT_ER= R_NOTFOUND)) > =A0=A0 172=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 goto out; > =A0=A0 173 > =A0=A0 174=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ret =3D fdt_delprop(fdt, cho= sen_node, = > FDT_PROP_INITRD_END); > =A0=A0 175=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 if (ret && (ret !=3D -FDT_ER= R_NOTFOUND)) > =A0=A0 176=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 goto out; > =A0=A0 177=A0=A0=A0=A0=A0=A0=A0 } > =A0=A0 178 > =A0=A0 179=A0=A0=A0=A0=A0=A0=A0 if (image->type =3D=3D KEXEC_TYPE_CRASH)= { > =A0=A0 180=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 /* add linux,elfcorehdr */ > =A0=A0 181=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ret =3D fdt_appendprop_addrr= ange(fdt, 0, chosen_node, > =A0=A0 182=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 FDT_= PROP_KEXEC_ELFHDR, > =A0> 183=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 image-= >arch.elf_headers_mem, > = > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org > = _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel