Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp7726748imm; Thu, 28 Jun 2018 08:24:59 -0700 (PDT) X-Google-Smtp-Source: AAOMgpektSRFyBvrQecFZ9EIw/SykXV0i/UsqidIEksdTlTAzPaVOmV8ICnJR5SmV9u4qz3E6FlQ X-Received: by 2002:a17:902:ac83:: with SMTP id h3-v6mr3312558plr.17.1530199499129; Thu, 28 Jun 2018 08:24:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530199499; cv=none; d=google.com; s=arc-20160816; b=DBBcmqFbQw1InDjavdQZrKzjydEdRhi4wkY+dhzUuTEFG5A8xbVhpomwiYqMUIe6h6 WY/LksdJRYRMmB3Y8GF7jknEoKMxWSo72jXgZqCHPc00jSrJohodiV3JHdq4Rss7WYR1 sV4lt95fhR2orczLSualMtVymwdBYFAy210ZbUjy09pgpNu9vbsbt59KVcs/NR1+WSTq kxlBzIFMbZ0R60d+BxDYY5rME8c0+Oi2zhmBIs2DTZd7pitoBxHBo8dek9AaUiVq4/JK BF2vmdJ4Goiho7VQaflB0aN1/jUjPLEQp2gsFf2blZ2cKLYPj4ylcqRjiJ+JVbwIkV+Z +Phg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:to:from :dkim-signature:arc-authentication-results; bh=N+v2giY287WCzlDNGU3zOnRFUlY+bYEIE7Sj+F34UR0=; b=tSfmICtLsUOaRBzXweJd3tson2qZhYnFGUNIE1zAYl7skGJUvSjyIdGztSRsITUedq +8scQLirG05ukg20Z/2lOgV/JXEFnMMGfatvoN7K3XKlDJdOM6gE7cNaQfI5UA2o1+fB 5nioEKsP+u2sdkAKflEN7XDidRMQfBKIN9Dg51KsB59F80xvF2YJf3HA4ExvyJgbCakg a/86Wl/mLsDTGXCoqY2mduowdNp2wMj6QPAt7e9RZ8U7Rn837L223NC+ikgK8mzSpo5r wQ8V6Obtaa7wnx+vAPfZChZkAU4NO2qhHOgjcEVpIk1JxBSYh9BnJ14L1/lib1fnBTvw rERg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SJ74HhYU; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u7-v6si3323283pfi.96.2018.06.28.08.24.43; Thu, 28 Jun 2018 08:24:59 -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=@gmail.com header.s=20161025 header.b=SJ74HhYU; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753458AbeF1KtR (ORCPT + 99 others); Thu, 28 Jun 2018 06:49:17 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:40658 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753040AbeF1KtQ (ORCPT ); Thu, 28 Jun 2018 06:49:16 -0400 Received: by mail-pf0-f193.google.com with SMTP id z24-v6so2414582pfe.7 for ; Thu, 28 Jun 2018 03:49:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=N+v2giY287WCzlDNGU3zOnRFUlY+bYEIE7Sj+F34UR0=; b=SJ74HhYU4pI9TStWPpXNihasoRTNBIOis3rR4bx8BNxs2wRfCb7cQUVZw5aR14oan5 gtHjcBixMPCcvFsYBMuqzMAclhqrSbyMggxZEBjuzAaMVWdUj6hCxrcuJBcLT2tNhAWA nSWB3FQ/6463MaMS5IQSKzikvKA6NI+OvO0o0nvZ4767bkB4tK1KlEZAUz1x4s9JU3Pu FTZrYMFvLjoD2DdeZs6/7n2YwgLDQ1Is4g4oIAhBiMKvKH23eV5hXXbNjg6L7ACzcvGG WdoXwATIRgGHbfbaaZM3dzrQopB3PfNC37W3wtHpeRYk4Eo4ke2oNzmoSUvZ3yI8Szms hJOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=N+v2giY287WCzlDNGU3zOnRFUlY+bYEIE7Sj+F34UR0=; b=YBG569XbH4WKi85f3sXwh6c6O7ruPaEbswQI5uAO29BEDFzddP/sbdX0Lls3IVxcES jySVX+aAixp+ssKSCbyzctQxJr6Jcec/1GZiesQiM10q6fUfLK2hEhb2Y6uU/mz+9/Px gIBliWaJMa1C/vy+jwi5Kp3BfJhhGd18PvWEkAm8iYcW1ubJUOxUcGzVkEjqUWYu4L6J VjIjFhIMYsDf3Emr91e0fj9SP6kYxjacsdsuEONx2xWMy+q41ESD1bTGYI7rY5BbyHmZ +VZXJpuuCfUW1nMsdkvOVkp1OQIiAeP5lDuBH1dTl3w1ip2LDooUmsegja32BlXHoBhz T/bQ== X-Gm-Message-State: APt69E2EJdGmC8JKDl81iBQ0l3QanJeQwqRki/qn88zOwPP4banXjnmw IYRzgQrNE2QHZn+XMQeM3n4= X-Received: by 2002:a63:7d4c:: with SMTP id m12-v6mr8322384pgn.201.1530182955469; Thu, 28 Jun 2018 03:49:15 -0700 (PDT) Received: from app09.andestech.com ([118.163.51.199]) by smtp.gmail.com with ESMTPSA id k13-v6sm15872971pfg.130.2018.06.28.03.49.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Jun 2018 03:49:14 -0700 (PDT) From: Greentime Hu X-Google-Original-From: Greentime Hu To: greentime@andestech.com, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] nds32: Fix the dts pointer is not passed correctly issue. Date: Thu, 28 Jun 2018 18:49:02 +0800 Message-Id: <20180628104902.9078-1-greentime@andestech.com> X-Mailer: git-send-email 2.16.2 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We found that the original implementation will only use the built-in dtb pointer instead of the pointer pass from bootloader. This bug is fixed by this patch. Signed-off-by: Greentime Hu --- arch/nds32/kernel/setup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/nds32/kernel/setup.c b/arch/nds32/kernel/setup.c index 2f5b2ccebe47..63a1a5ef5219 100644 --- a/arch/nds32/kernel/setup.c +++ b/arch/nds32/kernel/setup.c @@ -278,7 +278,8 @@ static void __init setup_memory(void) void __init setup_arch(char **cmdline_p) { - early_init_devtree( __dtb_start); + early_init_devtree(__atags_pointer ? \ + phys_to_virt(__atags_pointer) : __dtb_start); setup_cpuinfo(); -- 1.9.5