Lines Matching refs:banks

27  * Also supports reliable discovery of shared banks.
36 * some MCA banks are shared across cpus. When a cpu is offlined, cmci_clear()
37 * disables CMCI on all banks owned by the cpu and clears this bitfield. At
39 * taking ownership of some of the shared MCA banks that were previously
78 static int cmci_supported(int *banks)
97 *banks = min_t(unsigned, MAX_NR_BANKS, cap & 0xff);
182 /* Skip banks in firmware first mode */
240 storm->banks[bank].poll_only = true;
256 * We are able to set thresholds for some banks that
271 * Enable CMCI (Corrected Machine Check Interrupt) for available MCE banks
273 * banks. Called during initial bootstrap, and also for hotplug CPU operations
274 * to rediscover/reassign machine check banks.
276 static void cmci_discover(int banks)
283 for (i = 0; i < banks; i++) {
296 "bios_cmci_threshold: Some banks do not have valid thresholds set\n");
304 * all the CMCI owned banks.
309 int banks;
311 if (!mce_available(raw_cpu_ptr(&cpu_info)) || !cmci_supported(&banks))
336 * Disable CMCI on this CPU for all banks it owns when it goes down.
337 * This allows other CPUs to claim the banks on rediscovery.
343 int banks;
345 if (!cmci_supported(&banks))
348 for (i = 0; i < banks; i++)
355 int banks;
357 /* Recheck banks in case CPUs don't all have the same */
358 if (cmci_supported(&banks))
359 cmci_discover(banks);
365 int banks;
367 if (!cmci_supported(&banks))
378 int banks;
379 if (cmci_supported(&banks))
380 cmci_discover(banks);
385 int banks;
388 if (!cmci_supported(&banks))
406 int banks;
408 if (!cmci_supported(&banks)) {
414 cmci_discover(banks);
418 * check for the banks later for CPU #0 just to make sure