1 Star 0 Fork 7

Meredith/rasdaemon

forked from src-anolis-os/rasdaemon 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
854364ba44aee9bc5646f6537fc744b0b54aff37.patch 1.26 KB
一键复制 编辑 原始数据 按行查看 历史
geliwei 提交于 2022-04-13 15:41 . update to rasdaemon-0.6.1-12.el8.src.rpm
commit 854364ba44aee9bc5646f6537fc744b0b54aff37
Author: Muralidhara M K <[email protected]>
Date: Thu Aug 20 21:00:57 2020 +0530
rasdaemon: Add 8 channel decoding for SMCA systems
Current Scalable Machine Check Architecture (SMCA) systems support up
to 8 UMC channels.
To find the UMC channel represented by a bank, look at the 6th nibble
in the MCA_IPID[InstanceId] field.
Signed-off-by: Muralidhara M K <[email protected]>
[ Adjust commit message. ]
Signed-off-by: Yazen Ghannam <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
diff --git a/mce-amd-smca.c b/mce-amd-smca.c
index d0b6cb6..7c619fd 100644
--- a/mce-amd-smca.c
+++ b/mce-amd-smca.c
@@ -438,15 +438,7 @@ static void amd_decode_errcode(struct mce_event *e)
*/
static int find_umc_channel(struct mce_event *e)
{
- uint32_t umc_instance_id[] = {0x50f00, 0x150f00};
- uint32_t instance_id = EXTRACT(e->ipid, 0, 31);
- int i, channel = -1;
-
- for (i = 0; i < ARRAY_SIZE(umc_instance_id); i++)
- if (umc_instance_id[i] == instance_id)
- channel = i;
-
- return channel;
+ return EXTRACT(e->ipid, 0, 31) >> 20;
}
/* Decode extended errors according to Scalable MCA specification */
static void decode_smca_error(struct mce_event *e)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yueeranna/rasdaemon.git
[email protected]:yueeranna/rasdaemon.git
yueeranna
rasdaemon
rasdaemon
a8

搜索帮助