Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1912974pxb; Sat, 7 Nov 2020 03:06:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJz64ps1FVqig3BJrcaYo5DqqFveuYTjBojB3AJr966HnRnUs8qVgWmH90J4Dj7gCFT+B9Zu X-Received: by 2002:a50:c058:: with SMTP id u24mr6475436edd.28.1604747199035; Sat, 07 Nov 2020 03:06:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604747199; cv=none; d=google.com; s=arc-20160816; b=ML+gCrljkGSxq5oNydlj4y4Zdv7Y7pN3SHxSVf/qBB1OQ/dybYSPA5RP4w6h8mUHxc O+1+c+VxZT67I/rIIQIA+jnWKOdNHJby7oHjjYpM5FWbuXtAzNl8eX2crT+vbpmRxC2V 6ThX750ZtW2stGYpbRnO0/f4wnzy5fWUcPn3XuZiW0UIe20Ueo/FmVtMCbGXc/ulpqzM hyEJFesVI5sX4/wZke3SxKveX64wGgHI2/uxfplO1+ASH0dPVkPlYZNT2fMRFFtgll1V XpOdmFoKC5Lb53/41ywFFb6mGkxREx2mo0rxUv6ozzQ+kCZ7LphQRgGSvdr3pYASq+vM zo7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=tlW5Xj3FNVEZMr0AvX4lYP17y6vsCZpD8ZdtddkYEXM=; b=IE/XlP9yrFFK5b2Wfl5RKZbFJAOg70aElIrzITYNXL/pse+2VyyAYjAWjaTtr4fbjW tqwQxtWN0YVuOYIS4YuyNszM2S+tTLPr6aJUB8/vln9V/SQSioGSYQwGB4F4TGWOGUU9 32aa1DbmTVC57NV6oAsmG8qxZx7vL+k9YlwVkFqtTfh2Dnt81diglzLWYaJE9KgnNZoi CRkgXAwKu/Y/8cU0hyWaRFylyO1VSka+0HiMeufPC6gIgX8gquCHMy0XEAZ2AshgQ+ig P/FZrjSSP1cooDCX8vP4ZBXmiyqyGIGudRkRuiI2XY2n3Pc+YTHIaPZrhk/zoPd4OB+b KIwQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y22si3222977ejc.23.2020.11.07.03.06.15; Sat, 07 Nov 2020 03:06:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727801AbgKGLEh (ORCPT + 99 others); Sat, 7 Nov 2020 06:04:37 -0500 Received: from elvis.franken.de ([193.175.24.41]:44453 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726422AbgKGLEg (ORCPT ); Sat, 7 Nov 2020 06:04:36 -0500 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1kbM1K-0001Xd-00; Sat, 07 Nov 2020 12:04:34 +0100 Received: by alpha.franken.de (Postfix, from userid 1000) id E2D77C4DDA; Sat, 7 Nov 2020 10:40:28 +0100 (CET) Date: Sat, 7 Nov 2020 10:40:28 +0100 From: Thomas Bogendoerfer To: Alexander A Sverdlin Cc: Jiaxun Yang , linux-mips@vger.kernel.org, Paul Burton , linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] MIPS: reserve the memblock right after the kernel Message-ID: <20201107094028.GA4918@alpha.franken.de> References: <20201106141001.57637-1-alexander.sverdlin@nokia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201106141001.57637-1-alexander.sverdlin@nokia.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 06, 2020 at 03:10:01PM +0100, Alexander A Sverdlin wrote: > From: Alexander Sverdlin > > Linux doesn't own the memory immediately after the kernel image. On Octeon > bootloader places a shared structure right close after the kernel _end, > refer to "struct cvmx_bootinfo *octeon_bootinfo" in cavium-octeon/setup.c. > > If check_kernel_sections_mem() rounds the PFNs up, first memblock_alloc() > inside early_init_dt_alloc_memory_arch() <= device_tree_init() returns > memory block overlapping with the above octeon_bootinfo structure, which > is being overwritten afterwards. as this special for Octeon how about added the memblock_reserve in octen specific code ? Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]