linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Julia Cartwright <juliac@eso.teric.us>
To: Hans de Goede <hdegoede@redhat.com>
Cc: Michael Nazzareno Trimarchi <michael@amarulasolutions.com>,
	artlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>,
	linux-fbdev@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>
Subject: Re: simple-framebuffer enquire
Date: Tue, 26 Jun 2018 18:59:00 +0000	[thread overview]
Message-ID: <20180626185900.GA20755@kryptos.localdomain> (raw)
In-Reply-To: <996603c6-9779-7412-d998-bd7b49194490@redhat.com>

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@86fa2000 {
> > +                       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

      reply	other threads:[~2018-06-26 18:59 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-25 13:29 simple-framebuffer enquire Michael Nazzareno Trimarchi
2018-06-26 10:01 ` Hans de Goede
     [not found]   ` <CAOf5uwk2cf_+27nk9i9MQmbfJ8LCfPYopkcX__9M64jMYmhu1A@mail.gmail.com>
2018-06-26 13:29     ` Michael Nazzareno Trimarchi
2018-06-26 13:36       ` Hans de Goede
2018-06-26 13:38         ` Michael Nazzareno Trimarchi
2018-06-26 14:42           ` Michael Nazzareno Trimarchi
2018-06-26 14:47             ` Hans de Goede
2018-06-26 16:35               ` Michael Nazzareno Trimarchi
2018-06-26 18:44                 ` Hans de Goede
2018-06-26 18:59                   ` Julia Cartwright [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180626185900.GA20755@kryptos.localdomain \
    --to=juliac@eso.teric.us \
    --cc=b.zolnierkie@samsung.com \
    --cc=hdegoede@redhat.com \
    --cc=linux-fbdev@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=michael@amarulasolutions.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).