Skip to content

Commit

Permalink
powerpc/32s: Disable VMAP stack which CONFIG_ADB_PMU
Browse files Browse the repository at this point in the history
low_sleep_handler() can't restore the context from virtual
stack because the stack can hardly be accessed with MMU OFF.

For now, disable VMAP stack when CONFIG_ADB_PMU is selected.

Fixes: cd08f10 ("powerpc/32s: Enable CONFIG_VMAP_STACK")
Cc: [email protected] # v5.6+
Reported-by: Giuseppe Sacco <[email protected]>
Signed-off-by: Christophe Leroy <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/ec96c15bfa1a7415ab604ee1c98cd45779c08be0.1598553015.git.christophe.leroy@csgroup.eu
  • Loading branch information
chleroy authored and mpe committed Aug 28, 2020
1 parent 16d83a5 commit 4a133eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/platforms/Kconfig.cputype
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ config PPC_BOOK3S_6xx
select PPC_HAVE_PMU_SUPPORT
select PPC_HAVE_KUEP
select PPC_HAVE_KUAP
select HAVE_ARCH_VMAP_STACK
select HAVE_ARCH_VMAP_STACK if !ADB_PMU

config PPC_BOOK3S_601
bool "PowerPC 601"
Expand Down

0 comments on commit 4a133eb

Please sign in to comment.