Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/ps3: Add CONFIG_PS3_VERBOSE_RESULT option

To aid debugging, add a new PS3 kernel config option
PS3_VERBOSE_RESULT that, when enabled, will print more
verbose messages for the result of LV1 hypercalls.

Signed-off-by: Geoff Levand <geoff@infradead.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/0ce4b6969a08094a747bd382dbfd30b72ebc192d.1622746428.git.geoff@infradead.org

authored by

Geoff Levand and committed by
Michael Ellerman
6caebff1 ff4a825e

+10 -1
+1 -1
arch/powerpc/include/asm/ps3.h
··· 232 232 233 233 static inline const char* ps3_result(int result) 234 234 { 235 - #if defined(DEBUG) || defined(PS3_VERBOSE_RESULT) 235 + #if defined(DEBUG) || defined(PS3_VERBOSE_RESULT) || defined(CONFIG_PS3_VERBOSE_RESULT) 236 236 switch (result) { 237 237 case LV1_SUCCESS: 238 238 return "LV1_SUCCESS (0)";
+9
arch/powerpc/platforms/ps3/Kconfig
··· 85 85 This support is required for PS3 system control. In 86 86 general, all users will say Y or M. 87 87 88 + config PS3_VERBOSE_RESULT 89 + bool "PS3 Verbose LV1 hypercall results" if PS3_ADVANCED 90 + depends on PPC_PS3 91 + help 92 + Enables more verbose log mesages for LV1 hypercall results. 93 + 94 + If in doubt, say N here and reduce the size of the kernel by a 95 + small amount. 96 + 88 97 config PS3_REPOSITORY_WRITE 89 98 bool "PS3 Repository write support" if PS3_ADVANCED 90 99 depends on PPC_PS3