Skip to contentSkip to conversation

Allocator MAX_ORDER exceeds SECTION_SIZE

DISCUSSION Michael Buesch 2 participants 3 messages Jan 10, 2010

lore
Share & tools
lore
#0 lore raw

I get the following compilation failure, if 64k pages is selected on 2.6.32.3 on a PowerMAC config:

include/linux/mmzone.h:947:2: error: #error Allocator MAX_ORDER exceeds SECTION_SIZE

Any idea?

Signature · 1 line
Greetings, Michael.
#1 lore raw
Quoted 7 lines · On Sunday 10 January 2010 14:31:09 Michael Buesch wrote:

I get the following compilation failure, if 64k pages is selected on 2.6.32.3 on a PowerMAC config:

include/linux/mmzone.h:947:2: error: #error Allocator MAX_ORDER exceeds SECTION_SIZE

Any idea?

Ok, I figured out that lowering CONFIG_FORCE_MAX_ZONEORDER from 13 to 9
seems to fix the problem.
That error message could really need some improvement and at least a hint on what to do and why.

I'm also wondering, if the kconfig entry for CONFIG_FORCE_MAX_ZONEORDER could somehow be limited to 9, if 64k pages is enabled.

Signature · 1 line
Greetings, Michael.
#2 lore raw
Quoted 9 lines · Michael Buesch
Quoted 7 lines · On Sunday 10 January 2010 14:31:09 Michael Buesch wrote:

I get the following compilation failure, if 64k pages is selected on 2.6.32.3 on a PowerMAC config:

include/linux/mmzone.h:947:2: error: #error Allocator MAX_ORDER exceeds SECTION_SIZE

Any idea?

Quoted 6 lines

Ok, I figured out that lowering CONFIG_FORCE_MAX_ZONEORDER from 13 to 9
seems to fix the problem.
That error message could really need some improvement and at least a hint on what to do and why.

I'm also wondering, if the kconfig entry for CONFIG_FORCE_MAX_ZONEORDER could somehow be limited to 9, if 64k pages is enabled.

There's some stuff in there to try to change the max order but KConfig never quite get it right I think.

Cheers,
Ben.