pr_notice("CMCI storm detected: switching to poll mode\n"); return true; } 该函数通过jiffies,判断固定时间内发生的cmci次数是否大于CMCI_STORM_THRESHOLD(15),如果否则return,反之说明发生cmci storm,则执行cmci_toggle_interrupt_mode()关闭cmci功能, 切换为poll mode,通过轮询方式获取event; 2.非cmci storm...
Dec 2 15:30:23 localhost kernel: CMCI storm subsided: switching to interrupt mode Dec 2 15:30:23 localhost kernel: CMCI storm detected: switching to poll mode [..] Dec 2 15:35:24 localhost kernel: CMCI storm subsided: switching to interrupt mode Dec 2 15:35:29 localhost kernel: CMCI ...
CMCI_STORM_ACTIVE);r=atomic_add_return(1,&cmci_storm_on_cpus);mce_timer_kick(CMCI_STORM_INTERVAL);this_cpu_write(cmci_backoff_cnt,INITIAL_CHECK_INTERVAL);if(r==1)pr_notice("CMCI storm detected: switching to poll mode\n
当检测到错误的时候,CMCI架构会把这些信息存放到P5_MC_TYPE和P5_MC_ADDR寄存器中。 日志中的体现 kernel: CMCI storm subsided: switching to interrupt mode kernel: CMCI storm detected: switching to poll mode 上面是在message中输出的错误信息。我们知道CMCI架构每遇到一个错误就会产生一个中断。如果这个错误产...
(false); __this_cpu_write(cmci_storm_state, CMCI_STORM_ACTIVE); r = atomic_add_return(1, &cmci_storm_on_cpus); mce_timer_kick(CMCI_STORM_INTERVAL); this_cpu_write(cmci_backoff_cnt, INITIAL_CHECK_INTERVAL); if (r == 1) pr_notice("CMCI storm detected: switching to poll mode\n...