[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20180626185900.GA20755@kryptos.localdomain>
Date: Tue, 26 Jun 2018 13:59:00 -0500
From: Julia Cartwright <juliac@....teric.us>
To: Hans de Goede <hdegoede@...hat.com>
Cc: Michael Nazzareno Trimarchi <michael@...rulasolutions.com>,
artlomiej Zolnierkiewicz <b.zolnierkie@...sung.com>,
linux-fbdev@...r.kernel.org, LKML <linux-kernel@...r.kernel.org>
Subject: Re: simple-framebuffer enquire
On Tue, Jun 26, 2018 at 08:44:58PM +0200, Hans de Goede wrote:
> Hi,
>
> On 26-06-18 18:35, Michael Nazzareno Trimarchi wrote:
[..]
> > cat memblock/reserved
> > 0: 0x80004000..0x80007fff
> > 1: 0x80100000..0x81e030b3
> > 2: 0x83000000..0x83007fff
> > 3: 0x84000000..0x85ffffff
> > 4: 0x86fa2000..0x87021fff
> >
> > + reserved-memory {
> > + #address-cells = <1>;
> > + #size-cells = <1>;
> > + ranges;
> > +
> > + display_reserved: framebuffer@...a2000 {
> > + reg = <0x86fa2000 0x80000>;
> > + };
> > +
> > + };
[..]
> > Still have the same on ioremap.
>
> Hmm, I guess the kernel does map the entire region its get
> passed and simply makes sure to not touch the reserved mem,
> where as with the changes to the passed in mem-region the
> sunxi u-boot code does the memory does not get mapped by
> the kernel at all ?
If the intent is to reserve memory _and_ prevent it from being included
in the kernel's linear map, then it is also necessary to include the
'no-map' property for this reserved-mem node.
>From Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt:
no-map (optional) - empty property
- Indicates the operating system must not create a virtual mapping
of the region as part of its standard mapping of system memory,
nor permit speculative access to it under any circumstances other
than under the control of the device driver using the region.
Julia
Powered by blists - more mailing lists