Skip to content

Commit

Permalink
powerpc/ps3: Add CONFIG_PS3_VERBOSE_RESULT option
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/0ce4b6969a08094a747bd382dbfd30b72ebc192d.1622746428.git.geoff@infradead.org
  • Loading branch information
glevand authored and mpe committed Jun 10, 2021
1 parent ff4a825 commit 6caebff
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/include/asm/ps3.h
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ enum lv1_result {

static inline const char* ps3_result(int result)
{
#if defined(DEBUG) || defined(PS3_VERBOSE_RESULT)
#if defined(DEBUG) || defined(PS3_VERBOSE_RESULT) || defined(CONFIG_PS3_VERBOSE_RESULT)
switch (result) {
case LV1_SUCCESS:
return "LV1_SUCCESS (0)";
Expand Down
9 changes: 9 additions & 0 deletions arch/powerpc/platforms/ps3/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,15 @@ config PS3_SYS_MANAGER
This support is required for PS3 system control. In
general, all users will say Y or M.

config PS3_VERBOSE_RESULT
bool "PS3 Verbose LV1 hypercall results" if PS3_ADVANCED
depends on PPC_PS3
help
Enables more verbose log mesages for LV1 hypercall results.

If in doubt, say N here and reduce the size of the kernel by a
small amount.

config PS3_REPOSITORY_WRITE
bool "PS3 Repository write support" if PS3_ADVANCED
depends on PPC_PS3
Expand Down

0 comments on commit 6caebff

Please sign in to comment.