of: reserved-mem: print out reserved-mem details during boot
authorMartin Liu <liumartin@google.com>
Thu, 9 Feb 2023 16:09:55 +0000 (00:09 +0800)
committerRob Herring <robh@kernel.org>
Wed, 15 Feb 2023 21:07:42 +0000 (15:07 -0600)
commitaeb9267eb6b1df992e39467a620da8fdf434df54
tree675c29af090f5f16e0e5352936b9f01faa8ad837
parent0c559bc8abfb60695beacfc72993dff035d0267f
of: reserved-mem: print out reserved-mem details during boot

It's important to know reserved-mem information in mobile world
since reserved memory via device tree keeps increased in platform
(e.g., 45% in our platform). Therefore, it's crucial to know the
reserved memory sizes breakdown for the memory accounting.

This patch prints out reserved memory details during boot to make
them visible.

Below is an example output:

[    0.000000] OF: reserved mem: 0x00000009f9400000..0x00000009fb3fffff ( 32768 KB ) map reusable test1
[    0.000000] OF: reserved mem: 0x00000000ffdf0000..0x00000000ffffffff ( 2112 KB ) map non-reusable test2
[    0.000000] OF: reserved mem: 0x0000000091000000..0x00000000912fffff ( 3072 KB ) nomap non-reusable test3

Signed-off-by: Martin Liu <liumartin@google.com>
Link: https://lore.kernel.org/r/20230209160954.1471909-1-liumartin@google.com
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/of_reserved_mem.c