From: Ma Wupeng mawupeng1@huawei.com
hulk inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I96IZH
--------------------------------
Do not show pbha related info during startup if pbha is not properly enabled. Param pbha is checked during efi-stub and kernel startup, however any param starts with "pbha" can lead to pbha related log info while pbha is not enabled since only "enable" or "user" is accepted by kernel. To solve this problem, only show this info if accepted args is passed to kernel.
Fixes: 3bef1e33a5dd ("arm64: mm: Introduce kernel param pbha") Signed-off-by: Ma Wupeng mawupeng1@huawei.com --- drivers/soc/hisilicon/pbha.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/soc/hisilicon/pbha.c b/drivers/soc/hisilicon/pbha.c index 79173154bf9c..57daa5c338b5 100644 --- a/drivers/soc/hisilicon/pbha.c +++ b/drivers/soc/hisilicon/pbha.c @@ -197,7 +197,9 @@ static int __init setup_pbha(char *str) pbha_bit0_enabled = true; }
- pr_info("pbha bit_0 enabled, kernel: %d\n", pbha_bit0_kernel_enabled); + if (pbha_bit0_enabled) + pr_info("pbha bit_0 enabled, kernel: %d\n", + pbha_bit0_kernel_enabled);
return 0; }