* 'atom_size' configuration when a generic setup_per_cpu_ares() is used
@ 2015-10-23 17:19 Jungseok Lee
0 siblings, 0 replies; only message in thread
From: Jungseok Lee @ 2015-10-23 17:19 UTC (permalink / raw)
To: linux-mm
Greetings,
Nowadays I'm working on 'IRQ Stack' on ARM64 [1]. Like x86, I'd like to
utilize percpu infrastructure for stack allocation, but I've got a challenge.
ARM64 uses a generic setup_per_cpu_areas() described in mm/percpu.c. IOW,
__per_cpu_offset[] is PAGE_SIZE aligned, and it is not possible to allocate
stack with an alignment which is bigger than PAGE_SIZE. At first glance,
the alignment of __per_cpu_offset[] looks controlled by 'atom_size' argument
of pcpu_embed_first_chunk(), but I soon realize that the 'atom_size' is not
configurable in this case.
It would be redundant to introduce ARM64-specific setup_per_cpu_areas() for
a single parameter, atom_size, change. At the same time, it is doubtable to
define an interface, like PERCPU_ENOUGH_ROOM [2], for a single arch support.
I'm not sure which approach is better than the other.
Any comments are greatly welcome.
Thanks in advance!
[1] https://lkml.org/lkml/2015/10/17/75
[2] Since no code uses PERCPU_ENOUGH_ROOM, it could be dropped as clean-up.
--
Best Regards
Jungseok Lee
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-10-23 17:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-23 17:19 'atom_size' configuration when a generic setup_per_cpu_ares() is used Jungseok Lee
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).