提交 2f3778be 编写于 作者: I Ilya Leoshkevich 提交者: Zheng Zengkai

s390/traps: do not test MONITOR CALL without CONFIG_BUG

stable inclusion
from stable-5.10.53
commit be10fff3a4612c21e92405bce52132bad39c093a
bugzilla: 175574 https://gitee.com/openeuler/kernel/issues/I4DTUX

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=be10fff3a4612c21e92405bce52132bad39c093a

--------------------------------

[ Upstream commit b8e9cc20 ]

tinyconfig fails to boot, because without CONFIG_BUG report_bug()
always returns BUG_TRAP_TYPE_BUG, which causes mc 0,0 in
test_monitor_call() to panic. Fix by skipping the test without
CONFIG_BUG.
Signed-off-by: NIlya Leoshkevich <iii@linux.ibm.com>
Reviewed-by: NHeiko Carstens <hca@linux.ibm.com>
Signed-off-by: NVasily Gorbik <gor@linux.ibm.com>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Acked-by: NWeilong Chen <chenweilong@huawei.com>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 9a51eaf4
...@@ -272,6 +272,8 @@ static void __init test_monitor_call(void) ...@@ -272,6 +272,8 @@ static void __init test_monitor_call(void)
{ {
int val = 1; int val = 1;
if (!IS_ENABLED(CONFIG_BUG))
return;
asm volatile( asm volatile(
" mc 0,0\n" " mc 0,0\n"
"0: xgr %0,%0\n" "0: xgr %0,%0\n"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册