Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S942064AbcLWTsr (ORCPT ); Fri, 23 Dec 2016 14:48:47 -0500 Received: from mail-wj0-f182.google.com ([209.85.210.182]:33755 "EHLO mail-wj0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753616AbcLWTsp (ORCPT ); Fri, 23 Dec 2016 14:48:45 -0500 Message-ID: <585D7F9A.6030203@baylibre.com> Date: Fri, 23 Dec 2016 20:48:42 +0100 From: Neil Armstrong User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Heinrich Schuchardt , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , Carlo Caione , Kevin Hilman CC: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] ARM64: dts: meson-gxbb-odroidc2: linux,usable-memory References: <20161223125213.5461-1-xypron.glpk@gmx.de> In-Reply-To: <20161223125213.5461-1-xypron.glpk@gmx.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1549 Lines: 44 Le 23/12/2016 13:52, Heinrich Schuchardt a ?crit : > After reading the fdt u-boot overwrites the reg property of the > memory node with <0x0 0x0 0x0 0x78000000>. > > To override this setting we have to use the property > linux,usable-memory. > > If the first 16MB of the 2GB physical memory are used by > the Linux kernel oops occur on the Odroid C2. > > For the Odroid C2 this patch replaces > [RFT PATCH] ARM64: dts: meson-gxbb: Add reserved memory zone and > usable memory range > https://lkml.org/lkml/2016/12/12/127 > > Fixes: 855960342d1e7 ARM64: dts: amlogic: add Hardkernel ODROID-C2 > CC: Neil Armstrong > CC: Kevin Hilman > Signed-off-by: Heinrich Schuchardt > --- > arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts > index 238fbeacd330..82ab94417940 100644 > --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts > +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts > @@ -61,7 +61,7 @@ > > memory@0 { > device_type = "memory"; > - reg = <0x0 0x0 0x0 0x80000000>; > + linux,usable-memory = <0x0 0x01000000 0x0 0x7f000000>; > }; > > usb_otg_pwr: regulator-usb-pwrs { > Hi Heinrich, Thanks a lot for testing and pushing this patch, indeed I missed this point abou u-boot overwriting reg. I will test this next week, and hopefully get these merged. Neil