Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp984433ybi; Fri, 24 May 2019 15:00:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqzUDvFpyUjfSob/UZJYyvKbxDCfmzZdxBHmf7O+OKIVgfZZQbfyi7SndvPvYYbraICqE+az X-Received: by 2002:a63:4f23:: with SMTP id d35mr15136010pgb.212.1558735222200; Fri, 24 May 2019 15:00:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558735222; cv=none; d=google.com; s=arc-20160816; b=IOZMtl702+XW6/P/yiQwqAYJ4/NthB+0MYAdwJC7vyTPXPPp7vH1Rzt4kAjM/H9Ydx 6BQ9Yd2aedMi7R7NjazBpGvZchKhnO+lcs9CSEtoViwaot4OXlZYZjQ7fPbPgQluZE7+ jF8Vu72ZYMSO3/VcfiGbtRdKMu/O9ikd0o2LedEZxZpkd00cdkGaJJfzhoTW9yidVkfj zUiZEpMhCUnDZuhiShN6/gYnzVyHx3hQpgT4Pt4oh+YCfS4qsQ7KODeIUKzPC0g/fRzQ LAPnlm7jx5cGGd2i/AW/LX8IUnuCla7cQXlZfIWc28huLyv8511AQWrR969u/0u2iZqJ n+Sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=FX0nAAQKdK8gCwAelke8YNA0bB3X71pjYoDs2aHxEiE=; b=PPn2vjV9GS1E8kowl1H/aPsT2Co070EGZx1uqkuH9QPgKgIYL99qKdYAbLSK1yh0L3 O/4Kneggx6scw7X9tRI6DCXw6QKIvkshO46otF+lmArN2X63dPH2aCoW3qL/39yTTFgg 96zrzoUHSv9KMf/B5ESe2tcSCvpHKMA1spM4giaatVVuHwkrQN6YbclwUhvs5NOLOq/h 7mQY0ogSy6984f5CUekkZ7yEfSi2EB83Pk+CeMo8SJ6t/w1PBrhQS3ScRzhlQ3nhMLQo gXmqqtWPdzYbi6KcJGDvnq08EICQXuhlBWmA8PWyZiP9t4CQ1rrqcij5tsLyeOGXxFKb SvsA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z4si5826996pgp.307.2019.05.24.15.00.06; Fri, 24 May 2019 15:00:22 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404453AbfEXV6k (ORCPT + 99 others); Fri, 24 May 2019 17:58:40 -0400 Received: from mail-oi1-f194.google.com ([209.85.167.194]:41988 "EHLO mail-oi1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404259AbfEXV6k (ORCPT ); Fri, 24 May 2019 17:58:40 -0400 Received: by mail-oi1-f194.google.com with SMTP id w9so8097552oic.9; Fri, 24 May 2019 14:58:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=FX0nAAQKdK8gCwAelke8YNA0bB3X71pjYoDs2aHxEiE=; b=LkKY2TLTIBDLMpOFtQjVSNEgz9+tvvxbpPSUvIPuNIFG/QSM1YLLoeWVh4/XyYRkeM o1kmkcGqKs21KdG8jNKs3mBUp4p8E90rumR2cc+zxOdKWmXBomsVnH26gJJDxAOFgCns XNh3fL3r9xErE5A4ZqQ7PVsWSKjeSkW9gp4/u9y5J/QImkVBCOUmMJdMHeLgcB1K8cgo u/5lDHBN4YSLRV6ANjTAxsdGkc2Gxu2AR0e7xdWuIk2aZJdqk18E5p8ehclN/ZgB+4Gz tOPQgo01IYdAV1UcR+LTgKV8T/RuOlxrLj5eWUjs/NTtGCZljMveDXH41E9fLgJDwrCU 6u+A== X-Gm-Message-State: APjAAAUBjlP6BwfqCDbha/CQVpGpDC4yY6LpdNU/2R38JGXoMzox8YPm 6M3FXnYMEuQl8jPTuEZnqA== X-Received: by 2002:aca:4bd2:: with SMTP id y201mr7159994oia.12.1558735119348; Fri, 24 May 2019 14:58:39 -0700 (PDT) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id x72sm1442794oif.50.2019.05.24.14.58.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 24 May 2019 14:58:38 -0700 (PDT) Date: Fri, 24 May 2019 16:58:38 -0500 From: Rob Herring To: Hsin-Yi Wang Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Frank Rowand , Catalin Marinas , Will Deacon , Andrew Morton , Mike Rapoport , Ard Biesheuvel , Miles Chen , James Morse , Andrew Murray , Mark Rutland , Jun Yao , Yu Zhao , Robin Murphy , Laura Abbott , Stephen Boyd , Kees Cook Subject: Re: [PATCH v4 1/3] amr64: map FDT as RW for early_init_dt_scan() Message-ID: <20190524215838.GA16271@bogus> References: <20190519160446.320-1-hsinyi@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190519160446.320-1-hsinyi@chromium.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 20, 2019 at 12:04:44AM +0800, Hsin-Yi Wang wrote: > Currently in arm64, FDT is mapped to RO before it's passed to > early_init_dt_scan(). However, there might be some code that needs > to modify FDT during init. Map FDT to RW until unflatten DT. typo in the subject. Otherwise, this one seems fine to me. > > Signed-off-by: Hsin-Yi Wang > --- > change log v2->v4: > * v3 abandoned > * add an arg pgprot_t to fixmap_remap_fdt() > --- > arch/arm64/include/asm/mmu.h | 2 +- > arch/arm64/kernel/setup.c | 5 ++++- > arch/arm64/mm/mmu.c | 4 ++-- > 3 files changed, 7 insertions(+), 4 deletions(-)