Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp270387ybf; Wed, 26 Feb 2020 12:49:03 -0800 (PST) X-Google-Smtp-Source: APXvYqzJHELQq+AVKS+jpLlQ9aJR37a6shmElS6wJp0r9qQjJJ4EOie0lSlqpNp4bnNJnTpT5yYK X-Received: by 2002:a05:6830:154a:: with SMTP id l10mr566269otp.44.1582750143684; Wed, 26 Feb 2020 12:49:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582750143; cv=none; d=google.com; s=arc-20160816; b=nNKMMCQ8M6JRNmBw2CmDRZGSfMjryou5kpcZ5iRcdmP6428Ea6aNsbPU8BiXUQSZM8 D8XyCjCURcDmGVUkwg/nExfsnYRBq9NGRZTcY7mBxKLcvzOR9S5JNAisKQ7+b4i2Zbps T8f+QaOy6FmzqUPzcJi0u5TDLv2+HtMFVlrj0QB2ZKg/xpfzK6Fq5VYqbEtuEAO0agHI EJKFmCw8RekfanmP3bbpCde/cJ5DbIEWyrJpaTAj2h+IUwt9CIfELENpvEMTsUAv+3RV VZJJh69udLYBoes1DeQvQXQt2QHTCJ5y/kYDJJsclRxOcGO7IJXMpEZarJRZPsMURtV2 86Rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=Vg9cOMro+i98waebif4aU1cclILRMqAhraoxkLqHft0=; b=InvsgG1KjH0jt85peph509cQGdH64J9ZbJ+RvN5JcS88RY4zMDsMn5E9Sq3HsARwkv nJXk74Cmqps20+SQcK+pUU1FVT28LVrSqkFncLETvsoyp+sGstUjDbZ6+LTtWVtV051D m4Vcv8Vx2Upns0W1e7+Jszj4rr1vvPyoDIwKXY2xNvUtNHLg7xP3zDmrSLOYUywQAV6L exreIHTzVq93FbJZ0+A11pk4LAKPGqOFlK4AKjecRWiqozd5UAhlWWaR2GVnd7yDdbPF mOCrBXSGflaLzjzM3VMqYe3ZfGC5GZjqE5zLqajX8SOUxsm21soS7yAJHKAVAQNmVBrm Dt+A== ARC-Authentication-Results: i=1; mx.google.com; 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 e7si314305otr.183.2020.02.26.12.48.51; Wed, 26 Feb 2020 12:49:03 -0800 (PST) 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; 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 S1727460AbgBZUsr (ORCPT + 99 others); Wed, 26 Feb 2020 15:48:47 -0500 Received: from mail-ot1-f65.google.com ([209.85.210.65]:41154 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727379AbgBZUsq (ORCPT ); Wed, 26 Feb 2020 15:48:46 -0500 Received: by mail-ot1-f65.google.com with SMTP id v19so761122ote.8; Wed, 26 Feb 2020 12:48:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Vg9cOMro+i98waebif4aU1cclILRMqAhraoxkLqHft0=; b=mu4po8KOeN8+sK3sDalexKmtwZVBXFyHrIlZRx5cQ1QeemIyxggGCTKLNc3NRXqSCQ 6jAKeAUxqiJXmEeZwu8LEGwTtcl8dlUSCM8Juj9jI2N8NMDbAyLKxyhHK0/J4KLLPw5e 8XsjNhQMcgeKJRHw2NQ5A6xLuNGz9Fo2z4Ori5Tch8SO2TcqM/INU6FKQapuZgRnC2KP cd80XDwvDko2inbWRxVXFArHCZGiKVpjsnPxmo2LjyBL2B8FuDPkEtqTLuTf6HZHJ+RI f1zGCW8T5VXEqsWOeCXCtEMgOYs5xwLui3Kb0VAtbriQc81rxEPkWNGJL/TMoBwxds6+ 3Efw== X-Gm-Message-State: APjAAAWUMH/SjQ3FuJ9Tu5lJNgLjM+GTea/cjLcsLgP0qTpNVsRY3Hrp DRJdH9RSb7k9lXbFP6OrrU5leUZHr3xATgb9KJk= X-Received: by 2002:a9d:dc1:: with SMTP id 59mr531250ots.250.1582750125806; Wed, 26 Feb 2020 12:48:45 -0800 (PST) MIME-Version: 1.0 References: <20200225144749.19815-1-geert+renesas@glider.be> <20200226174905.GE25745@shell.armlinux.org.uk> <20200226175723.GF25745@shell.armlinux.org.uk> In-Reply-To: <20200226175723.GF25745@shell.armlinux.org.uk> From: Geert Uytterhoeven Date: Wed, 26 Feb 2020 21:48:34 +0100 Message-ID: Subject: Re: [PATCH] ARM: boot: Fix ATAGs with appended DTB To: Russell King - ARM Linux admin Cc: Marek Szyprowski , Geert Uytterhoeven , Nicolas Pitre , Arnd Bergmann , Eric Miao , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , Chris Brandt , Linux ARM , Linux-Renesas , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Russell, On Wed, Feb 26, 2020 at 6:57 PM Russell King - ARM Linux admin wrote: > On Wed, Feb 26, 2020 at 06:56:06PM +0100, Geert Uytterhoeven wrote: > > On Wed, Feb 26, 2020 at 6:49 PM Russell King - ARM Linux admin > > wrote: > > > On Wed, Feb 26, 2020 at 07:35:14AM +0100, Marek Szyprowski wrote: > > > > On 25.02.2020 15:47, Geert Uytterhoeven wrote: > > > > > At early boot, register r8 may contain an ATAGs or DTB pointer. > > > > > When an appended DTB is found, its address is stored in r8, for > > > > > extraction of the RAM base address later. > > > > > > > > > > However, if r8 contained an ATAGs pointer before, that pointer will be > > > > > lost, and the provided ATAGs is no longer folded into the provided DTB. > > > > > > > > > > Fix this by leaving r8 untouched. > > > > > > > > > > Fixes: 137e522593918be2 ("ARM: 8960/1: boot: Obtain start of physical memory from DTB") > > > > > Reported-by: Marek Szyprowski > > > > > Signed-off-by: Geert Uytterhoeven > > > > > > The original commit hasn't been submitted, so it can be fixed before it > > > hits mainline if you want. Let me know what you want to do. Thanks. > > > > Fixing the original is fine for me, of course. > > Thanks! > > Please submit a replacement for 8960/1, thanks. Done. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds