Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3662487pxp; Tue, 15 Mar 2022 03:49:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXKzEhOl60/fi49hMYwDu8s5LIIg7rr4hkbgV0ctS/oIKhIWhcZdTuS0RQWEqg67ZdTOeb X-Received: by 2002:a50:cf48:0:b0:415:df40:9e3d with SMTP id d8-20020a50cf48000000b00415df409e3dmr24277686edk.185.1647341388679; Tue, 15 Mar 2022 03:49:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647341388; cv=none; d=google.com; s=arc-20160816; b=Y+Lubz/T2XpQ7W1vC7XrFHF/cFdO4EJ/dFEsLQormXLIcYznkjpDu50rv/7wLl4k90 wL7cugJ74pTVnGIeJ6KUnyEMQK/R6/HmmEuQUtcRltEqOAzjKHgT/mCUB8hjVI0sShn3 2h/rYGePZHHkv8PUylRZoWQAsQ17qx1og2ikdc9Om0BcJKTXn/ksNARAInpWrTwQR+bM OHHFIhZ5NI2psBTcvAP0eKARKac4oVIajSam7uknw9WK1W6NAikhKwI0vFFwB1/ZTfcF 5snTgP8By8ZlXbQ3x9uHcPTIuXqpVPliRldp54LXxQeSML+8+0VWp3aj6+40jJUy+h7H qehg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=FbRMqePOignRVDj9Y3Kxt9+o91pUlrDvEbxf2jx4YSs=; b=YfUTAOoWLTGRmYG01lRfl9kIoqWWqELTAxBVjZjRDmlyOWq39ybyS9i47CCdxzTi+W bTPgqVMpdDC7QFqLOpDjsNNIJ0crCxje7nkwlCiN/Kz5FmvAxEXdGiX0HF1Z1uYQ1WtQ LBW77ZfC5PoXUKFVfaTMjXNV7io4bwtNZNfCfeKroeEK0hWu+AGagftBtQf0Yuf9ZzDK VAX397N8p2V81XNGlXuA3jgd2Lkfvq9AybdYQoOySzAy4bEe+W8DgbndlO6H+sTB9Obg VzTG9451IzUhV1zbPfJy/yvq9hTsDiskC1AutFvrNkh6j48NFO93dz7ajQRXseTwnmGF f8Kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=FwfdcMhS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u15-20020a170906124f00b006db5a51361fsi10461637eja.688.2022.03.15.03.49.23; Tue, 15 Mar 2022 03:49:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=FwfdcMhS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245200AbiCNMct (ORCPT + 99 others); Mon, 14 Mar 2022 08:32:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243923AbiCNMVX (ORCPT ); Mon, 14 Mar 2022 08:21:23 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD21513CDE; Mon, 14 Mar 2022 05:18:22 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 92799B80DF5; Mon, 14 Mar 2022 12:18:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7BBF2C340E9; Mon, 14 Mar 2022 12:18:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1647260300; bh=AxC3A0PHk25w6JCnEL+Q4GQPcyLNQkzIbvvI+FCuOpU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FwfdcMhSSF+O/WtAueaHFRtI/4w8o9TI4uFiooTHcAkVCGpGYH+wXoWsw4q90Z0wq S6pmLi3DnPePBn7yw9TDuoRsRpH1uuBqpgwzkKM6miQ55Sffs88cP8MJEBQgPXXS+D WDg7Lu4SY4NzE9Dweu6WG7j6wYP4ON6+jBj0BhOM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nikhil Gupta , Rob Herring , Sasha Levin Subject: [PATCH 5.16 069/121] of/fdt: move elfcorehdr reservation early for crash dump kernel Date: Mon, 14 Mar 2022 12:54:12 +0100 Message-Id: <20220314112746.049884876@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220314112744.120491875@linuxfoundation.org> References: <20220314112744.120491875@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nikhil Gupta [ Upstream commit 132507ed04ce0c5559be04dd378fec4f3bbc00e8 ] elfcorehdr_addr is fixed address passed to Second kernel which may be conflicted with potential reserved memory in Second kernel,so fdt_reserve_elfcorehdr() ahead of fdt_init_reserved_mem() can relieve this situation. Signed-off-by: Nikhil Gupta Signed-off-by: Rob Herring Link: https://lore.kernel.org/r/20220128042321.15228-1-nikhil.gupta@nxp.com Signed-off-by: Sasha Levin --- drivers/of/fdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c index 7e868e5995b7..f66abb496ed1 100644 --- a/drivers/of/fdt.c +++ b/drivers/of/fdt.c @@ -644,8 +644,8 @@ void __init early_init_fdt_scan_reserved_mem(void) } fdt_scan_reserved_mem(); - fdt_init_reserved_mem(); fdt_reserve_elfcorehdr(); + fdt_init_reserved_mem(); } /** -- 2.34.1