Re: [RFC PATCH 5/6] powerpc/powernv/idle: Convert stack pointer to physical address

2022-11-08 Thread Christophe Leroy
Le 04/11/2022 à 18:27, Andrew Donnellan a écrit : > When we go into idle, we must disable the MMU. Currently, we can still > access the stack once the MMU is disabled, because the stack is in the > linear map. > > Once we enable CONFIG_VMAP_STACK, the normal stack pointer will be in the > vmallo

[RFC PATCH 5/6] powerpc/powernv/idle: Convert stack pointer to physical address

2022-11-04 Thread Andrew Donnellan
When we go into idle, we must disable the MMU. Currently, we can still access the stack once the MMU is disabled, because the stack is in the linear map. Once we enable CONFIG_VMAP_STACK, the normal stack pointer will be in the vmalloc area. To cope with this, manually convert the stack pointer to