Skip to contentSkip to conversation

Warning after "enforce overlap of memory.memblock and memory.reserved"

DISCUSSION Heiner Kallweit 2 participants 2 messages Dec 12, 2020 – Dec 14, 2020 Memory management

lore
Share & tools
lore
#0 lore raw

Since 950c37691925 ("mm: memblock: enforce overlap of memory.memblock and memory.reserved") I get the following warning (on x86).

memblock: reserved range [0x0000000000000000-0x0000000000001000] is not in memory
memblock: reserved range [0x000000000009f000-0x0000000000100000] is not in memory

According to comment "Some architectures (e.g. x86) have reserved pages outside of memblock.memory." it seems there's nothing wrong with it, then why a warning? Wouldn't debug level be better suited?

#1 lore raw
Quoted 9 lines · Heiner Kallweit

Since 950c37691925 ("mm: memblock: enforce overlap of memory.memblock and memory.reserved") I get the following warning (on x86).

memblock: reserved range [0x0000000000000000-0x0000000000001000] is not in memory
memblock: reserved range [0x000000000009f000-0x0000000000100000] is not in memory

According to comment "Some architectures (e.g. x86) have reserved pages outside of memblock.memory." it seems there's nothing wrong with it, then why a warning? Wouldn't debug level be better suited?

I think that this is wrong to consider memory reserved by firmware as "not memory", hence the warning.

Anyway, this patch needs an update as it breaks arm [1] and maybe other machines. During the update I'll reconsider the printk level.

[1] https://lore.kernel.org/lkml/[email protected]/

Signature · 2 lines
Sincerely yours,
Mike.