Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp978210ybf; Fri, 28 Feb 2020 11:19:21 -0800 (PST) X-Google-Smtp-Source: APXvYqwP0sZvKUJ2LgQCEzVs7032F0XvBLnN6y3rHMPHQSbLisPhGRJ2merujUNyswXBcjS5VJwm X-Received: by 2002:a05:6808:487:: with SMTP id z7mr4377980oid.46.1582917561540; Fri, 28 Feb 2020 11:19:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582917561; cv=none; d=google.com; s=arc-20160816; b=XhI2xiU1EE4MqNJc3Ho8JbM6I3lypeHCeVtNwg7oGsR9Lszrjt5mp8hgsS7M6e0huF r4/A0Ql4nx2XmNP0RG+Po1VXDoWDIqBUgn9bK5PAHTAJlCTkfFwPCzfTL7BRfogjbYiV mqN+QYHBWN80TnJnVvNqpw+AS9hSkmO26ms7k7RjtnF9e6W301VXTaQygbtaKwL0698B 7ko17Yl6CHU2028QB6lcbBh6tMrGuwQv/NdmyMLiyNZhXQ8BInbC8+LVVUv7jMRmPXcm aKlPrAmMC9gaGSdgkhBOM+mbna0yD7HW5vUhaJh/Q8nqoUwHn93TOr27LHGDzia181kr nxGQ== 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:dkim-signature; bh=uXA3/+C+Ws03rM5oecAfvZ0EjvjFdg2ZbM6QXJtOnis=; b=y5nnQIBJ391JIxpWOtRrmaOgI73FNO/4v1lzpnAmhpdQVzyGDG2dvb3WJUNPyTrTF1 idiy4by3tsn/SmRFeTjqdZbK9zuYP5+6XB7eu/cS/q9zAVKKP1C0WnXVGJbFMLAY5MJF sdul/wA6NfTZgG+8T0QvOh6bqM/oCnQ7CT9tW3iM/xyBilgB8q5RfEr2K4lr+X+0lqrf 11slE7RgPH0C1LQWb4TN5y+vdcd5OTBUeekjLBJf7LyZymjNc/fraNXFcpm6KmC7IPz1 SkvD7VmeyjQkc1T0FTugAdGNr4NWItrA3oHVHE86swcFoRRMO2kfjE0/EpjsuUuA02Ui iA/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=T85BmpDr; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a124si2250445oii.138.2020.02.28.11.19.09; Fri, 28 Feb 2020 11:19:21 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=T85BmpDr; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726838AbgB1TRv (ORCPT + 99 others); Fri, 28 Feb 2020 14:17:51 -0500 Received: from mail-ua1-f66.google.com ([209.85.222.66]:44855 "EHLO mail-ua1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725827AbgB1TRv (ORCPT ); Fri, 28 Feb 2020 14:17:51 -0500 Received: by mail-ua1-f66.google.com with SMTP id a33so1364509uad.11 for ; Fri, 28 Feb 2020 11:17:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=uXA3/+C+Ws03rM5oecAfvZ0EjvjFdg2ZbM6QXJtOnis=; b=T85BmpDrleLyl915HxeMadTD8HviR0L4YI8g1TPE3bzM0UctdJVLSN9P2/laHAAMSR upFTHz+wPJzr7i4Kmsk87YXVm3GIj8ZRb29Jod2t6WqHxNhpchtwJDD3oQSj5yOOZ+VA 0xFJMmVLfXQegbcviPjOWZJAOHv/hAvB7tfno8C6Cc4qnuJG4rnyd7SewPIMeLg5qfTP 0iOb2BIh6w+DBm+BgJgnPIbzYb6W1N0uSTX0wHehFWdXEmViuSrDILQJS2dFGSvWI7n+ 9QAM8+Tr/LSd7aW7pyGeSy14nQvI3fNhAz79HVyqyE4Y+nSqVU7aqfQq2cgQ04SgFn1n sI3g== 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=uXA3/+C+Ws03rM5oecAfvZ0EjvjFdg2ZbM6QXJtOnis=; b=tRXm2JL3ZnsAnlQlASRqiFpfzsd52J6hbf4bhSCDVQbYV06qjiKQr72C8KbSm33ccZ 8B/03GtsZpBS7NWb23yrEQmg4ENUd8TXBTbg8Sr6Hj93KRZHa2RYHtGgWS61z0EP9X+w HNOKntXlDMhcEF/vylGL0mY+nmGx6XZK1SfPvgUktdip1/AN5C3OKjyP1t05E/ZOQwUw 4jkmD8TJsl4jAH0yGTNv2dwAgM/e9F2tQM210f6/3Ezg4i9+CdKMu7dTE47Y7oFlGove 0ayEXOIiPJ/DnVKbV4MOoWObYbtSLO3TqI+l+pNWmMSzA4wBnYdypVT+/WwArNKupoLA TQDw== X-Gm-Message-State: ANhLgQ3LOL+EK2SUtxyWral/hq2pzLiR0WcPJ6s5ujdTQUGUnvp4srwL aNImMzuzNDl3BSxZYnE7pRIHGjVWZ/SttR2sqFkz7SFhJSg= X-Received: by 2002:a9f:36ca:: with SMTP id p68mr2882516uap.112.1582917469575; Fri, 28 Feb 2020 11:17:49 -0800 (PST) MIME-Version: 1.0 References: <20200224021029.142701-1-adelva@google.com> <20200224021029.142701-3-adelva@google.com> <20200227232253.GA5966@bogus> In-Reply-To: <20200227232253.GA5966@bogus> From: Alistair Delva Date: Fri, 28 Feb 2020 11:17:38 -0800 Message-ID: Subject: Re: [PATCH v3 3/3] dt-bindings: pmem-region: Document memory-region To: Rob Herring Cc: LKML , Kenny Root , "Oliver O'Halloran" , Dan Williams , Vishal Verma , Dave Jiang , Ira Weiny , Device Tree , linux-nvdimm@lists.01.org, kernel-team@android.com 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 Rob, Thanks for reviewing. On Thu, Feb 27, 2020 at 3:22 PM Rob Herring wrote: >> On Sun, Feb 23, 2020 at 06:10:29PM -0800, Alistair Delva wrote: > > From: Kenny Root > > > > Add documentation and example for memory-region in pmem. > > > > Signed-off-by: Kenny Root > > Signed-off-by: Alistair Delva > > Cc: "Oliver O'Halloran" > > Cc: Rob Herring > > Cc: Dan Williams > > Cc: Vishal Verma > > Cc: Dave Jiang > > Cc: Ira Weiny > > Cc: devicetree@vger.kernel.org > > Cc: linux-nvdimm@lists.01.org > > Cc: kernel-team@android.com > > --- > > [v3: adelva: remove duplicate "From:"] > > .../devicetree/bindings/pmem/pmem-region.txt | 29 +++++++++++++++++++ > > 1 file changed, 29 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/pmem/pmem-region.txt b/Documentation/devicetree/bindings/pmem/pmem-region.txt > > index 5cfa4f016a00..0ec87bd034e0 100644 > > --- a/Documentation/devicetree/bindings/pmem/pmem-region.txt > > +++ b/Documentation/devicetree/bindings/pmem/pmem-region.txt > > @@ -29,6 +29,18 @@ Required properties: > > in a separate device node. Having multiple address ranges in a > > node implies no special relationship between the two ranges. > > > > + This property may be replaced or supplemented with a > > + memory-region property. Only one of reg or memory-region > > + properties is required. > > + > > + - memory-region: > > + Reference to the reserved memory node. The reserved memory > > + node should be defined as per the bindings in > > + reserved-memory.txt > > Though we've never enforced it, but /reserved-memory should be within > the bounds of /memory node(s). Is that the intent here? If so, how does > that work? Wouldn't all the memory be persistent then? Or some other > system processor is preserving the contents? On the systems we're working with, the RAM remains refreshed across reboots, but the contents of RAM could be changed by something outside of Linux (i.e. the bootloader). By reserving this region in DT for pmem we are saying "this is persistent like the rest of RAM on this device, but it is also not going to be touched by anything besides this Linux driver". > > + > > + This property may be replaced or supplemented with a reg > > + property. Only one of reg or memory-region is required. > > + > > Optional properties: > > - Any relevant NUMA assocativity properties for the target platform. > > > > @@ -63,3 +75,20 @@ Examples: > > volatile; > > }; > > > > + > > + /* > > + * This example uses a reserved-memory entry instead of > > + * specifying the memory region directly in the node. > > + */ > > + > > + reserved-memory { > > + pmem_1: pmem@5000 { > > + no-map; > > Just add 'compatible = "pmem-region";' here and be done with it. Why add > a layer of indirection? Sure, I'll do that.. > > + reg = <0x00005000 0x00001000>; > > + }; > > + }; > > + > > + pmem@1 { > > No 'reg', so shouldn't have a unit-address here. ..then I guess I can just delete this. v4 incoming. > > + compatible = "pmem-region"; > > + memory-region = <&pmem_1>; > > + }; > > -- > > 2.25.0.265.gbab2e86ba0-goog > > > > -- > To unsubscribe from this group and stop receiving emails from it, send an email to kernel-team+unsubscribe@android.com. >