函数逻辑报告 |
Source Code:arch\x86\kernel\cpu\mce\amd.c |
Create Date:2022-07-27 09:03:36 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Turn off thresholding banks for the following conditions:* - MC4_MISC thresholding is not supported on Family 0x15.* - Prevent possible spurious interrupts from the IF bank on Family 0x17* Models 0x10-0x2F due to Erratum #1114.
函数原型:static void disable_err_thresholding(struct cpuinfo_x86 *c, unsigned int bank)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct cpuinfo_x86 * | c | |
unsigned int | bank |
593 | 如果CPU family 恒等于0x15且bank恒等于4则 |
597 | 否则如果CPU family 恒等于0x17且x86_model大于等于0x10且x86_model小于等于0x2F则 |
600 | 如果smca_get_bank_type(bank)不等于SMCA_IF则返回 |
603 | msrs[0]等于MSR_AMD64_SMCA_MCx_MISC(bank) |
604 | num_msrs等于1 |
605 | 否则 |
606 | 返回 |
609 | rdmsrl(MSR_K7_HWCR, hwcr) |
612 | need_toggle等于非hwcr按位与BIT(18)的值 |
613 | 如果need_toggle则wrmsrl(MSR_K7_HWCR, hwcr | BIT(18)) |
617 | 以i小于num_msrs循环Clear @bit in a MSR @msr.* Retval:* < 0: An error was encountered.* = 0: Bit was already cleared.* > 0: Hardware accepted the MSR write. |
621 | 如果need_toggle则wrmsrl(MSR_K7_HWCR, hwcr) |
名称 | 描述 |
---|---|
mce_amd_feature_init | pu init entry point, called from mce.c with preempt off |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |