Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp122440ybf; Wed, 26 Feb 2020 09:57:35 -0800 (PST) X-Google-Smtp-Source: APXvYqwVNH3dQapF9UyVSjjcftfLc3kIDVhFwooIVocwdUWj35w7pNpBq3CSqXT4/YuRoTjBlimC X-Received: by 2002:aca:220c:: with SMTP id b12mr130318oic.55.1582739854840; Wed, 26 Feb 2020 09:57:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582739854; cv=none; d=google.com; s=arc-20160816; b=gUhzK8NfrLbo7dLsw5+I+mi3ruNZ3yjdEyPUjsmoZFLXTn4skULyr1Vn+kPoHQskGf QcCnxFR8yRjozdB+LzvABzGXyYwfpO29EWg6+mmJC1DKJay6n1BXpqOhWmZOr++c+BMH QVOdK8E6H/3m5V6LQL17NgekZwQSNui33i3lT4+fQiEF2ITtELNq7XRDnSeM0CoVPw+3 lrueBn/BHJXe12IdeOvtUsy+k8J8CeUGbiwLktoZUJR9mAZ0iyt+1niPzuSEEUqttgcv NmNtmJEkAvZxr8DvweLY3clEIIvv2JBZJTxeQLjNTeA6OVzNvI1VaXQWyW2EKg4mlKAL ydZg== 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=o2vY9IYp03giWqGFoGJ0CHo6HYbOh4Eilf+MUDG2LtI=; b=dm4iyhbSRWVX2ZXYzSEP+Do9mvrVuxmYsyJgkuSGA5dZoEeW0vR5lQ5M5QS30wDz5j DyTGxKos57ljv4fRUeMl5GUILwKfGDRYWCF0FdmsfXX71uRoHlqJGwpMu2GJuQ8oJ44X 9EOnaQQtlrOCp6K2H7geYj1mIBuvrnGbQTiUmNetb5XferK0Ok8fQaF4qaaiyt/kBSqd KQgDXSdZi5HtOHLG19itM4/g+xKcNtzC6itTC0dZe1BCnoWNB7n3pFvXPkd80yBfzdsM FI2Up+zQ4wbK4hVojwv9Xx4BEpIl1MXMt65Wru7lcUMqzZ3zuuLhaUIaEVoznWzX+XPH KznQ== 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 w13si1972oiw.106.2020.02.26.09.57.23; Wed, 26 Feb 2020 09:57:34 -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 S1726979AbgBZR4S (ORCPT + 99 others); Wed, 26 Feb 2020 12:56:18 -0500 Received: from mail-oi1-f193.google.com ([209.85.167.193]:35057 "EHLO mail-oi1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726917AbgBZR4S (ORCPT ); Wed, 26 Feb 2020 12:56:18 -0500 Received: by mail-oi1-f193.google.com with SMTP id b18so417743oie.2; Wed, 26 Feb 2020 09:56:17 -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=o2vY9IYp03giWqGFoGJ0CHo6HYbOh4Eilf+MUDG2LtI=; b=QUFk7Q/S/0rXSvba0Lxly20bNA8HamhGyY7fWE6GGZ5NiWkG0pk+ZDCNzr3JKUGizh NU3lE1CoEXN3155NgLeqsK024VzNAD9QCR2PCzIH34i3qDHizO0ZD0ynQv1mdN1kzM/y 92hzvkKQ/Y6xdmhI1/6RZd91z0X7NAq5Bsg4uC+dZYB8NLefOjIJ9ZS+A0Q9s/x8o1dP m1Glo5NlgNjXa3UWknXZs3LM2CPx9PWUnN9mJq3//ta8NVVLoasbgUnFQ6EjyimWW7sn 3Wxo8qzUtg0P8aoTmJB+SGukWqMNUhOAeX11KpwUu3BF3F4CWVcDmzq+FB1bqm6e3UNX eGmA== X-Gm-Message-State: APjAAAXdDdRWOLRfRU1WjDsl200/lbUxpAzgJ+zYQHADplCR2DJudoMY IdY0f21Wflf+30mxDM7UvK1jm16wROdYFb92mJrWyQ== X-Received: by 2002:aca:48cd:: with SMTP id v196mr166058oia.102.1582739777300; Wed, 26 Feb 2020 09:56:17 -0800 (PST) MIME-Version: 1.0 References: <20200225144749.19815-1-geert+renesas@glider.be> <20200226174905.GE25745@shell.armlinux.org.uk> In-Reply-To: <20200226174905.GE25745@shell.armlinux.org.uk> From: Geert Uytterhoeven Date: Wed, 26 Feb 2020 18:56:06 +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: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! 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