Skip to content

sync: rvck #271: riscv: add hardware error trap handler support#233

Merged
xmzzz merged 1 commit into
RVCK-Project:OLK-6.6from
ieiao:PR271@rvck
Jun 3, 2026
Merged

sync: rvck #271: riscv: add hardware error trap handler support#233
xmzzz merged 1 commit into
RVCK-Project:OLK-6.6from
ieiao:PR271@rvck

Conversation

@ieiao

@ieiao ieiao commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Sync commits from rvck PR 271.
Source PR: RVCK-Project/rvck#271

mainline inclusion
from mainline-v7.1
commit 5d5c5d0f2be9cf0351ad8e90516c519a8db22981
category: feature
bugzilla: RVCK-Project/rvck#269
Reference: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?h=next-20260413&id=5d5c5d0f2be9cf0351ad8e90516c519a8db22981

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

Add support for handling hardware error traps (exception code 19)
in the RISC-V architecture. The changes include:

- Add do_trap_hardware_error function declaration in asm-prototypes.h
- Add hardware error trap vector entry in entry.S exception vector table
- Implement do_trap_hardware_error handler in traps.c that generates
  SIGBUS with BUS_MCEERR_AR for hardware errors

This enables proper handling of hardware error exceptions that may occur
in RISC-V systems, providing appropriate error reporting and signal
generation for user space processes.

Signed-off-by: Rui Qi <qirui.001@bytedance.com>
Link: https://patch.msgid.link/20260202094200.53735-1-qirui.001@bytedance.com
[pjw@kernel.org: clean up commit message slightly]
Signed-off-by: Paul Walmsley <pjw@kernel.org>
Signed-off-by: Lu Peng <lu.peng3@zte.com.cn>
Signed-off-by: liuqingtao <liu.qingtao2@zte.com.cn>
[sync from rvck.]
Signed-off-by: WeiHao Li <cn.liweihao@gmail.com>
@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown

开始测试 log: https://github.com/RVCK-Project/rvck-olk/actions/runs/26865222925

参数解析结果
args value
repository RVCK-Project/rvck-olk
head ref pull/233/head
base ref OLK-6.6
LAVA repo RVCK-Project/lavaci
LAVA hardware ['qemu']
LAVA Testcase path lava-testcases/common-test/ltp/ltp.yaml
need run job kunit-test,kernel-build,check-patch,lava-trigger

测试完成

详细结果:
check result
kunit-test failure
kernel-build failure
check-patch success
lava-trigger-qemu skipped
lava-trigger-sg2042 skipped
lava-trigger-k1 skipped
lava-trigger-lpi4a skipped

Kunit Test Result

kunit test failed

Kernel Build Result

Check Patch Result

Total Errors 0
Total Warnings 0

@xmzzz
xmzzz merged commit dbf027f into RVCK-Project:OLK-6.6 Jun 3, 2026
8 of 11 checks passed
@ieiao
ieiao deleted the PR271@rvck branch June 9, 2026 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants