Lines Matching full:storm
37 struct mca_storm_desc *storm = this_cpu_ptr(&storm_desc); in mce_inherit_storm() local
40 * Previous CPU owning this bank had put it into storm mode, in mce_inherit_storm()
41 * but the precise history of that storm is unknown. Assume in mce_inherit_storm()
44 * the storm has ended. in mce_inherit_storm()
46 storm->banks[bank].history = ~0ull; in mce_inherit_storm()
47 storm->banks[bank].timestamp = jiffies; in mce_inherit_storm()
55 void mce_set_storm_mode(bool storm) in mce_set_storm_mode() argument
57 __this_cpu_write(storm_desc.poll_mode, storm); in mce_set_storm_mode()
71 struct mca_storm_desc *storm = this_cpu_ptr(&storm_desc); in cmci_storm_begin() local
74 storm->banks[bank].in_storm_mode = true; in cmci_storm_begin()
77 * If this is the first bank on this CPU to enter storm mode in cmci_storm_begin()
80 if (++storm->stormy_bank_count == 1) in cmci_storm_begin()
86 struct mca_storm_desc *storm = this_cpu_ptr(&storm_desc); in cmci_storm_end() local
89 storm->banks[bank].history = 0; in cmci_storm_end()
90 storm->banks[bank].in_storm_mode = false; in cmci_storm_end()
92 /* If no banks left in storm mode, stop polling. */ in cmci_storm_end()
99 struct mca_storm_desc *storm = this_cpu_ptr(&storm_desc); in mce_track_storm() local
105 if (storm->banks[mce->bank].poll_only) in mce_track_storm()
109 * When a bank is in storm mode it is polled once per second and in mce_track_storm()
111 * If it is not in storm mode, then the bank is only checked when in mce_track_storm()
116 if (!storm->banks[mce->bank].in_storm_mode) { in mce_track_storm()
117 delta = now - storm->banks[mce->bank].timestamp; in mce_track_storm()
123 history = storm->banks[mce->bank].history << shift; in mce_track_storm()
125 storm->banks[mce->bank].timestamp = now; in mce_track_storm()
131 storm->banks[mce->bank].history = history; in mce_track_storm()
133 if (storm->banks[mce->bank].in_storm_mode) { in mce_track_storm()
136 printk_deferred(KERN_NOTICE "CPU%d BANK%d CMCI storm subsided\n", smp_processor_id(), mce->bank); in mce_track_storm()
142 printk_deferred(KERN_NOTICE "CPU%d BANK%d CMCI storm detected\n", smp_processor_id(), mce->bank); in mce_track_storm()