Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp426262imm; Tue, 3 Jul 2018 22:55:27 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdA0Vs+qhUK87vIoHCAZj7edKCST4oj+JHmccDAXR0LFu9vrhFDhUZpP9A4WjPk9mVByPCe X-Received: by 2002:a62:ee01:: with SMTP id e1-v6mr757404pfi.2.1530683727809; Tue, 03 Jul 2018 22:55:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530683727; cv=none; d=google.com; s=arc-20160816; b=vPf1oFoxlx80bL3rb6Nla2HcizVLkgsiIUTUtaUA0A8jeMxxTt8YS850VwJobqk2KF iI03O68bgrVH+vShRoXjx9vjpK6Bizp8mQ6qJyRTCEhYCf5Enu/+F64JJ47PsU/PWr27 XF8j4qcZlZKbv6SunyGS2PY9e2BYJJir+uEPoomkBRnhuUD5Hci8JZ6NLL+10FwgjDbW 6s0D5F9VemoBPs4r+LnP94yzQ0ORM057qWL41qxY5TCkQQ8WPr+eAAm7s48XA59F13mg 05O/5jB5R0K2F2QEl+k+aSM6h8ergZkN/khOq2FHiVG772izsnhW2phvikei5jwCVnk8 nAgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=GZz4DRmTIW6WvmzHIyWd+RqB/C3fKPGmRA84caE+HLU=; b=ub6OdbSFnQsv9A8Iaj60VaHZc0hBl7D+lGbX/bd8FjmCv9g9vKoYiFpXVlIFkjEYSS XssqEphZOtlXAinkjbxv0jUSkGpirw9GGXXg0H6lG3s1V4MMZ/qEk8kCRgkORa7G9s/V GFGF6xR+pLhPLdo3RcqWJFqVXJwcgBFz/LGwJZdCLCgpu7ebuh1rRPtFgRx957csAjtX 9xar5WoelI/vnxNR+Mb3n7kqeu8vAdgFw0NPy5eT4qq6xLkzdoLzQj6MlAhsnsxnICmR 4mbGTkKfjhv0ITk4ex5U7OjIRoJz5IdL73z3f99y6N2bC5rf46GIcMOFdL042boEa7Qc nUpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Yg37qxyw; 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 203-v6si2705420pgh.46.2018.07.03.22.55.13; Tue, 03 Jul 2018 22:55:27 -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=Yg37qxyw; 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 S933313AbeGDFwn (ORCPT + 99 others); Wed, 4 Jul 2018 01:52:43 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:46548 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932871AbeGDFwi (ORCPT ); Wed, 4 Jul 2018 01:52:38 -0400 Received: by mail-pg0-f68.google.com with SMTP id q14-v6so2003182pgt.13 for ; Tue, 03 Jul 2018 22:52:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=GZz4DRmTIW6WvmzHIyWd+RqB/C3fKPGmRA84caE+HLU=; b=Yg37qxywG8NkB0VyXepfsm+NZUegWYwnZfU24aOIxYgHL3fUjaywqT1+t6mcIy8u+2 6nm78fkRnHfSAW3Ens27C3OKrBgXSOqLsDD+uOdHfTwCmo28trz0quEL4iSk267ubMVt h2QJ/jvkRwT7fJwDrSy/Y8323Rfdma8irl3gU7UWbXdxD8eYqIkFJTE1dFn4l5aYA2XJ ZYgZOvLTzMLSH2UkrwD13SfzDOY82Yr4RbBrdGUbfIxa1UUeILNJkkeDBOov8poUUOzH xV1bp5Gyh7YqSKb91LmUiOndtsgRJfp7uxombp9g8hugiabHkZuKmtPz0uF6w2A4HJnc CR1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=GZz4DRmTIW6WvmzHIyWd+RqB/C3fKPGmRA84caE+HLU=; b=XXvWDf6AOozyzGLacGIMKU/IyHRiSxyVhHVxvT+nHoVg6+oOUSjp2wQ5MokgrE1Y2t ov4jnDL6shbmBzb8KlftPvQ+PvgyxGNuCxGiym572TOhylIIg4WQk3nCb7IrQAA1JrX6 2cm2U3OuHTEj2dEy9Z5ssQ/y/RsIXg1td7eN9G0EzSMaAXMfsxrDSwESSdFe4PKlNchP SCWnwdaX2utctc2BNq77kE3uih4Yf14rp+HTbOYZm5SmvmnmAA1uwgrSEXuGSB92rJLv zQLbhpSpnhbLaoDmBZyTdBnbCuyQGJZbddumsn1mTLB7BVoiFqJuzq2r05wzYYEBQhYV xm+g== X-Gm-Message-State: APt69E1dvVWYiH7J1w14SSOQIv1lq/mPBGTqbTwFDFiO1TsOu3jDpADp Zn8hfpfRkdt8WrKuYfrric8= X-Received: by 2002:a63:4d5:: with SMTP id 204-v6mr624093pge.129.1530683557429; Tue, 03 Jul 2018 22:52:37 -0700 (PDT) Received: from app09.andestech.com ([118.163.51.199]) by smtp.gmail.com with ESMTPSA id b22-v6sm4257226pfi.144.2018.07.03.22.52.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Jul 2018 22:52:36 -0700 (PDT) From: Greentime Hu X-Google-Original-From: Greentime Hu To: greentime@andestech.com, linux-kernel@vger.kernel.org, ren_guo@c-sky.com Cc: green.hu@gmail.com Subject: [PATCH v2 2/3] nds32: Fix the dts pointer is not passed correctly issue. Date: Wed, 4 Jul 2018 13:52:09 +0800 Message-Id: <6897e6ecb3167598cb45e1a1424dd4d5e3778837.1530683430.git.greentime@andestech.com> X-Mailer: git-send-email 2.16.2 In-Reply-To: References: In-Reply-To: References: 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(); -- 2.16.2