!251 [OLK-5.10] arm64: add machine checksafe support
Merge Pull Request from: @ma-wupeng With the increase of memory capacity and density, the probability of memory error increases. The increasing size and density of server RAM in the data center and cloud have shown increased uncorrectable memory errors. Currently, the kernel has a mechanism to recover from hardware memory errors. This patchset provides an new recovery mechanism. For arm64, the hardware memory error handling is do_sea() which divided into two cases: The user state consumed the memory errors, the solution is kill the user process and isolate the error page. The kernel state consumed the memory errors, the solution is panic. For case 2, Undifferentiated panic maybe not the optimal choice, it can be handled better, in some scenarios, we can avoid panic, such as uaccess, if the uaccess fails due to memory error, only the user process will be affected, kill the user process and isolate the user page with hardware memory errors is a better choice. PR form 22.09: Link:https://gitee.com/openeuler/kernel/pulls/251 Reviewed-by: Kefeng Wang <wangkefeng.wang@huawei.com> Reviewed-by: Zheng Zengkai <zhengzengkai@huawei.com> Signed-off-by: Zheng Zengkai <zhengzengkai@huawei.com>
Showing
arch/arm64/lib/copy_page_mc.S
0 → 100644
arch/arm64/lib/memcpy_mc.S
0 → 100644
想要评论请 注册 或 登录