Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2885428pxk; Sun, 4 Oct 2020 16:22:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfiEggKt4FlaUFSNjk7pO6UuQG7y90ujYNDz8x4DQ40U85LenKLNAzR36+GJXjV/LPTwaO X-Received: by 2002:a17:906:4ece:: with SMTP id i14mr12661245ejv.366.1601853744181; Sun, 04 Oct 2020 16:22:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601853744; cv=none; d=google.com; s=arc-20160816; b=uVfJr5uAJ7AHkfpg4y4cVdPE5eCuswvaHDmde3CtouAsTqQD+jO7AC6R5uMeuFn0A3 rLGr17moPxgzGaRH+YGUPfMlQ1wvc6JXcZVEGKhdU3d5a2FuTTwiNYo29kopISjB5NO6 mA9M+FMXVP7J4rI9LHYHGiPWxSmWi/3vUHuQOXNsThvHMDEcXjqmxogf5/ChkixXAVEv dJWnsvhKpOANFvBWH/eYHicTIK7SJDBuwmmtHJHEGfGyiuiKuJ86mT8ov69kAKhd78kc XsiIsbX0mXRLnC1nJN3tkF/TEpDAVpmh2iDWGQf34lqxowbL3eJ6bph+a6y8XThgCkhT nrZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=jcJgO6uXgL0y2gYnRqgUThvhgsEJ1n5wWS6ZD66anDU=; b=Cy6iJEwJZckAxhrUHW29GX0j+pG7Sk5usG2vfBq8jlXVe+7GeYzx+YgEVCyzOZGq9f HfG65ogAc2nIu4phDM9SBEHyL2kd+0PvWbROt4xmJNP6DTmcocy4ZG6MliBB/21m4eI7 jo0Zf4V1hHxBsUGM1LK0JKNoqZSCaX0KjiEpP1kKWEw3r/i4L3N4e0X3IZ3rUZYRx1S7 mBn0CBSBAP66N98lwX8hcVkj+d2G96eBYwNLzXflFGA6yHcgGw14uJ7cSr99CnUW3U0p D9uHKMRWtjLXosu5f6R4fOw+cy5RYyKAgiyyXMwnO8wtiYo3C9gCj5/zs0MN0BoPwuB0 HJSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20150623.gappssmtp.com header.s=20150623 header.b=ksGLoj1i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bo17si4953782ejb.391.2020.10.04.16.22.02; Sun, 04 Oct 2020 16:22:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@dabbelt-com.20150623.gappssmtp.com header.s=20150623 header.b=ksGLoj1i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725872AbgJDXUn (ORCPT + 99 others); Sun, 4 Oct 2020 19:20:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725836AbgJDXUm (ORCPT ); Sun, 4 Oct 2020 19:20:42 -0400 Received: from mail-pj1-x1041.google.com (mail-pj1-x1041.google.com [IPv6:2607:f8b0:4864:20::1041]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57DC8C0613CE for ; Sun, 4 Oct 2020 16:20:41 -0700 (PDT) Received: by mail-pj1-x1041.google.com with SMTP id kk9so4259223pjb.2 for ; Sun, 04 Oct 2020 16:20:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20150623.gappssmtp.com; s=20150623; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=jcJgO6uXgL0y2gYnRqgUThvhgsEJ1n5wWS6ZD66anDU=; b=ksGLoj1il+Ym3SZtJ22Ri9Ps5d/OGXKo8qz5gf0hgrnOG1fgBwXXUaJuNvn1vPDKKG lMwHm5P3XbMeyLZXIit9GOGwWV7gJ3+QFGBrtuJ+2D38ZE/f7bQgPdBDvnqXD5AdqnWv QnDMxUP9gC6DdIw8eqvqoG/V1r9tlwvsl8Pl+dt2YumkQ3fyxlQTCRHUKWSxLNoS4zvS Yw0BwDztZW4cjVn686I9JBLRLBDpj+b/uehU7dV5QqWm9Po5Nuc89DTnKRW+NE5FCysz nZJ+2ZbtNp4FcA1SPGUOEIr65K6nt4/OsEHJ5ZcZLBEBSaoYSEy0qcRL16QPKuoNZsPC vG7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=jcJgO6uXgL0y2gYnRqgUThvhgsEJ1n5wWS6ZD66anDU=; b=S561YJg/2JVaUqMsEjD1W38iaOtWGXP0SS3/rZlcRQ/5UFKdLKELH2xinMEnJaMfkb /Oqh22Q3C2MovVUdaEGsyRbVCZXPOkVqsfYtKeMCyS+BLFdZ2SQ6f7st/Scb9SZGByIT 80j2pb9Z4hbtXOMLUtln2/ALnC7/gNoT61OsAqZgo65r//4pG6dHp/nkz3fPxPTC0TZW Ek/Ml0sBuLdJn6h1G1KV4L7BVxfjVvDfEXrG8InFRqYg59MDOm8sN3iCoSFGA88Gx9rV MnbBDDD+1x/tTfAkY0KLQ7bum0WRcYRvw1vRtMhTQi+8GddFWYDUSfXflbThvRuXZV2U a/cg== X-Gm-Message-State: AOAM531tvoj7N6Y0b2pB3lq9I0Wf0RdTD36Ek91F5v8+vQ7/PGe8lY1t n71+kNIYvA+U707oin2i0jJgDPjwX87O13hj X-Received: by 2002:a17:90a:3984:: with SMTP id z4mr13391873pjb.131.1601853640498; Sun, 04 Oct 2020 16:20:40 -0700 (PDT) Received: from localhost (76-210-143-223.lightspeed.sntcca.sbcglobal.net. [76.210.143.223]) by smtp.gmail.com with ESMTPSA id h9sm9460508pfc.28.2020.10.04.16.20.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Oct 2020 16:20:40 -0700 (PDT) Date: Sun, 04 Oct 2020 16:20:40 -0700 (PDT) X-Google-Original-Date: Sun, 04 Oct 2020 16:20:36 PDT (-0700) Subject: Re: [PATCH] RISC-V: Make sure memblock reserves the memory containing DT In-Reply-To: <20201001190456.2860155-1-atish.patra@wdc.com> CC: linux-kernel@vger.kernel.org, Atish Patra , aou@eecs.berkeley.edu, Anup Patel , linux-riscv@lists.infradead.org, Paul Walmsley , zong.li@sifive.com, Alistair Francis , Damien Le Moal , Christoph Hellwig From: Palmer Dabbelt To: Atish Patra Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 01 Oct 2020 12:04:56 PDT (-0700), Atish Patra wrote: > Currently, the memory containing DT is not reserved. Thus, that region > of memory can be reallocated or reused for other purposes. This may result > in corrupted DT for nommu virt board in Qemu. We may not face any issue > in kendryte as DT is embedded in the kernel image for that. > > Fixes: 6bd33e1ece52 ("riscv: add nommu support") > Signed-off-by: Atish Patra > > --- > @Palmer This patch is applicable for v5.9 & before. This fix is already > part of the "RISC-V: Move DT mapping outof fixmap" patch from UEFI support > series. That's why, this patch doesn't need to go into for-next. > --- > arch/riscv/mm/init.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/riscv/mm/init.c b/arch/riscv/mm/init.c > index 564e0be677b7..cabf1697e748 100644 > --- a/arch/riscv/mm/init.c > +++ b/arch/riscv/mm/init.c > @@ -510,6 +510,7 @@ asmlinkage void __init setup_vm(uintptr_t dtb_pa) > #else > dtb_early_va = (void *)dtb_pa; > #endif > + dtb_early_pa = dtb_pa; > } > > static inline void setup_vm_final(void) Thanks, this is on fixes.