From patchwork Fri Dec 23 12:52:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heinrich Schuchardt X-Patchwork-Id: 9487443 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 106CD601D7 for ; Fri, 23 Dec 2016 12:55:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F334126220 for ; Fri, 23 Dec 2016 12:55:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E488E26247; Fri, 23 Dec 2016 12:55:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 78D1626220 for ; Fri, 23 Dec 2016 12:55:56 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cKPMj-0003fk-8U; Fri, 23 Dec 2016 12:54:29 +0000 Received: from mout.gmx.net ([212.227.15.18]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cKPMe-0003ad-A9; Fri, 23 Dec 2016 12:54:25 +0000 Received: from LT002.fritz.box ([84.119.32.78]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LdHeL-1d2Iru2GpN-00iT9E; Fri, 23 Dec 2016 13:53:11 +0100 From: Heinrich Schuchardt To: Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , Carlo Caione , Kevin Hilman , Neil Armstrong Subject: [PATCH 1/1] ARM64: dts: meson-gxbb-odroidc2: linux,usable-memory Date: Fri, 23 Dec 2016 13:52:13 +0100 Message-Id: <20161223125213.5461-1-xypron.glpk@gmx.de> X-Mailer: git-send-email 2.11.0 X-Provags-ID: V03:K0:RlmS3VCQqkyO02BmmjVI2vpD+SuDkeJxv1aVCT4hlpanUpG1nGZ ZTSdaCE8tvZOido6FamB8PnpsuGcOAltMAonOPJrb0C6q+21esiJ9V39HlyN4hiIaIlRxVT km4FirBQF7mZHwYnUrhRb0SMUOR1OEtHBfZffo0Kuql7x2RURHI8uZdmc3IIEh37y/japiW VY4Is5LXfhHi5ZpopBO5w== X-UI-Out-Filterresults: notjunk:1; V01:K0:WwBSdcFuZgI=:mPUo6cMO7jwSKipYeM//sa 2QyoExmcSbPBUa/7+JKlj1BLcrInmi2xBz0VbSAYtHckY39roYVRTAYZ7k2F+7EouoB1xROxn JwWMq+9Iu68bF5jo+gHSddkDG2HXagTIJ+/uxKopnkPfIvd/YlH9yB7y60uU/l+2gef1wPr7p 3d4gspkriydgK/VMJKc2nJUewJDHudDa/7WXkhrQQod0RKpl30Bkp1xeAtIgZ3pMCVq9NeRPv K2JAnwPecven50Sw8QaOBp0CD0mvDVRF1nyCzzW9v3xS6kVfi+u5qlYNp0jagFQQWrOkhY+Th bx7OhbG5+Ic+3OYuYtxYVGdHut1sIowv1wZ0xs34pl8UMaijtj5KSOONBcEVVc5uVQfLkBm+9 YbY1C7C2P5qA4fobUgiweYjBbzdUhiLR94/jMl13acCCqrAsyQ0SgnBBeG+ospwHsigowtjQd QOwQmQvy7oP2ajUAtj394I4DKG7TqSnPrmCv+4zcszAdp7BobTtkc8P1rEhkz7bN0uo+08Ic5 0lUzK5aDgvbPo4O7l0KlRtKlE/XI+ey6W5bGVCBFXRUAid3Ij0XlYDWupeF4D8l3sCNUznlTo KSuWQq4Kkzvbm7RmRBVfnyFu5u/e4t4Do454puOLPuXO5BQQ6C1is2cEk1WBfsNAfub+JusY5 0rKPMcsQUEO5qzz2oYnr8MnaNoUVVZ/GzQWpF7Td+bWwX7Xmfat40HI1ZS/KUL0MI7dS0iD/s BDdwBIM9iX+4ZQgHC1y52AEUjRHREocGcOzDw4RC1KeRYkcYoeWgJUezmpw= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161223_045424_746956_BC1CFA41 X-CRM114-Status: UNSURE ( 8.12 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Heinrich Schuchardt , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 {