Re: simple-framebuffer enquire

From
Julia Cartwright <hidden>
Date
2018-06-26 19:08:28
Also in
lkml
Reply to
Hans de Goede, 2018-06-26
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:
[..]
quoted
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>;
+               };
+
+       };
[..]
quoted
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
Thread (8 messages) 8 messages, 3 authors, last reply 2018-06-26
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help