Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp642429img; Fri, 22 Mar 2019 05:46:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqy7/brPXYNfAT7iMfZ0kZUNWaBPpkaZrmk9JH/L6CRzEpAqVqic7K3mUFQ7MfScYsNE4Emv X-Received: by 2002:aa7:9211:: with SMTP id 17mr8949996pfo.220.1553258770304; Fri, 22 Mar 2019 05:46:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553258770; cv=none; d=google.com; s=arc-20160816; b=ixZEXWPIhKStlzrY0LYr+F0hWNyXpRFwFbfJMdaYqq+WQ9xHTmkXMRT8uu2dKPHcca mJHCY+yB3bAilGzt2DKQlqZ/ku32phdoJgj9UwD2lnk/RsOQLmhPjep4qk9ItIX7x2eo /9NPReDY3RO9K0/bYRkjRg901x+qPneTNoW2K5UKvWrHEz4gtr3P9tIKV/WamJc+MKVI 8YoDEO2CJQ9mwmXGYsTDmmEAzolew9fDaE+CZP+lbuUSdw3RVRi1TJCeKCyewy+5xNJc NfXZ5XAnFQ2WI8VHZr5ZEdA4Dlfio4ULPFjx8j6Y0rezcvDnlIbL4XECwL8YHfC7lL1L FbJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Jmt5gbGX4BSgkRK/6zW5KlO4KYzN7k8agC4jcv07u2Q=; b=y18GIaQG8ntoLBrx1XeE9Xfyd15UsxPluxYD3du9DaCwWKh/D0fjFtxgROzgaT24Ot nVjphtnuzHcqlCdgxpRNvYQJiZkgQvUGVvIIM2s57OFkb/Bply3DStiF1K3O/3fUtHWx /XKTHtUoHg8zD2MMNtKjAPWsgQqh3Z3cS6pmZbab3iwhx2qPGWmzoQxPwWgtZYlMSWi6 dD5QSop6ehjPUS9d4eQeKsvc1wOsv2l5uVfn1hOQnG+yGk+m9UPyBbpm/UAQs/gePdT8 XanvmZIPmls8LfwI1uTDv/Kps6HQ6ld3vdV1uxJ6+toTH7Ixolngf3MoC4ouhZjxd7Sg pu9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sCzyQckK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d195si6885395pga.309.2019.03.22.05.45.52; Fri, 22 Mar 2019 05:46:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sCzyQckK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387808AbfCVMpO (ORCPT + 99 others); Fri, 22 Mar 2019 08:45:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:37986 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730518AbfCVMAn (ORCPT ); Fri, 22 Mar 2019 08:00:43 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CBF7621934; Fri, 22 Mar 2019 12:00:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553256042; bh=EgGGDnFrIMDvi2CHZcM+azdqhwirYFoJnxII5qNoCvM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sCzyQckKEoCTgR0Xz4pef6FCdeksikBF84DywJWj77RlkPnjKuTe3tkFy0LT33PXE v8eXExQ7/8rGjngYfc9cTQSD/7leQfP3SPSQoin+C8vQlKNA0yyplvm2CmfhiaijP3 UPmR+MGNVcOcD7SMMe/G17AfwOzuyJvOZr0C0MCY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tristan Bastian , Thierry Reding , Arnd Bergmann , Sasha Levin Subject: [PATCH 4.19 091/280] ARM: tegra: Restore DT ABI on Tegra124 Chromebooks Date: Fri, 22 Mar 2019 12:14:04 +0100 Message-Id: <20190322111311.595593858@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190322111306.356185024@linuxfoundation.org> References: <20190322111306.356185024@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 94d9b9337d09bdd27735005b3251d97ab29f7273 ] Commit 482997699ef0 ("ARM: tegra: Fix unit_address_vs_reg DTC warnings for /memory") inadventently broke device tree ABI by adding a unit- address to the "/memory" node because the device tree compiler flagged the missing unit-address as a warning. Tegra124 Chromebooks (a.k.a. Nyan) use a bootloader that relies on the full name of the memory node in device tree being exactly "/memory". It can be argued whether this was a good decision or not, and some other bootloaders (such as U-Boot) do accept a unit-address in the name of the node, but the device tree is an ABI and we can't break existing setups just because the device tree compiler considers it bad practice to omit the unit-address nowadays. This partially reverts the offending commit and restores device tree ABI compatibility. Fixes: 482997699ef0 ("ARM: tegra: Fix unit_address_vs_reg DTC warnings for /memory") Reported-by: Tristan Bastian Signed-off-by: Thierry Reding Tested-by: Tristan Bastian Signed-off-by: Arnd Bergmann Signed-off-by: Sasha Levin --- arch/arm/boot/dts/tegra124-nyan.dtsi | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/tegra124-nyan.dtsi b/arch/arm/boot/dts/tegra124-nyan.dtsi index d5f11d6d987e..bc85b6a166c7 100644 --- a/arch/arm/boot/dts/tegra124-nyan.dtsi +++ b/arch/arm/boot/dts/tegra124-nyan.dtsi @@ -13,10 +13,25 @@ stdout-path = "serial0:115200n8"; }; - memory@80000000 { + /* + * Note that recent version of the device tree compiler (starting with + * version 1.4.2) warn about this node containing a reg property, but + * missing a unit-address. However, the bootloader on these Chromebook + * devices relies on the full name of this node to be exactly /memory. + * Adding the unit-address causes the bootloader to create a /memory + * node and write the memory bank configuration to that node, which in + * turn leads the kernel to believe that the device has 2 GiB of + * memory instead of the amount detected by the bootloader. + * + * The name of this node is effectively ABI and must not be changed. + */ + memory { + device_type = "memory"; reg = <0x0 0x80000000 0x0 0x80000000>; }; + /delete-node/ memory@80000000; + host1x@50000000 { hdmi@54280000 { status = "okay"; -- 2.19.1