函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\mce\amd.c Create Date:2022-07-27 09:03:28
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Reprogram MCx_MISC MSR behind this threshold bank.

函数原型:static void threshold_restart_bank(void *_tr)

返回类型:void

参数:

类型参数名称
void *_tr
379  tr等于_tr
382  Access to machine-specific registers (available on 586 and better only)* Note: the rd* operations modify the parameters directly (without using* pointer indirection), this allows gcc to optimize better( MSR address for the block , lo, hi)
384  如果* Value upon which threshold * interrupt is generated.小于hi按位与THRESHOLD_MAX的值则reset等于1
387  如果reset
388  hi等于hi按位与MASK_ERR_COUNT_HI按位或MASK_OVERFLOW_HI的值的反按位或THRESHOLD_MAX* Value upon which threshold * interrupt is generated.
391  否则如果old_limit
392  new_count等于hi按位与THRESHOLD_MAX的值加old_limit* Value upon which threshold * interrupt is generated.
395  hi等于hi按位与MASK_ERR_COUNT_HI的反按位或new_count按位与THRESHOLD_MAX
400  hi与等于MASK_INT_TYPE_HI的反
402  如果非 Bank can generate an interrupt. 则转到:done
405  如果set_lvt_off
406  如果lvt_off_valid(b, lvt_off, lo, hi)则
408  hi与等于MASK_LVTOFF_HI的反
409  hi或等于lvt_off左移20位
413  如果 Enable/Disable APIC interrupt hi或等于INT_TYPE_APIC
416  done :
418  hi或等于MASK_COUNT_EN_HI
419  wrmsr( MSR address for the block , lo, hi)
调用者
名称描述
mce_threshold_block_init
log_and_reset_block