Lines Matching full: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
83 static int cmci_supported(int *banks) in cmci_supported() argument
102 *banks = min_t(unsigned, MAX_NR_BANKS, cap & 0xff); in cmci_supported()
270 * Enable CMCI (Corrected Machine Check Interrupt) for available MCE banks
272 * banks.
274 static void cmci_discover(int banks) in cmci_discover() argument
282 for (i = 0; i < banks; i++) { in cmci_discover()
289 /* Skip banks in firmware first mode */ in cmci_discover()
324 * We are able to set thresholds for some banks that in cmci_discover()
339 "bios_cmci_threshold: Some banks do not have valid thresholds set\n"); in cmci_discover()
347 * all the CMCI owned banks.
352 int banks; in cmci_recheck() local
354 if (!mce_available(raw_cpu_ptr(&cpu_info)) || !cmci_supported(&banks)) in cmci_recheck()
376 * Disable CMCI on this CPU for all banks it owns when it goes down.
377 * This allows other CPUs to claim the banks on rediscovery.
383 int banks; in cmci_clear() local
385 if (!cmci_supported(&banks)) in cmci_clear()
388 for (i = 0; i < banks; i++) in cmci_clear()
395 int banks; in cmci_rediscover_work_func() local
397 /* Recheck banks in case CPUs don't all have the same */ in cmci_rediscover_work_func()
398 if (cmci_supported(&banks)) in cmci_rediscover_work_func()
399 cmci_discover(banks); in cmci_rediscover_work_func()
405 int banks; in cmci_rediscover() local
407 if (!cmci_supported(&banks)) in cmci_rediscover()
418 int banks; in cmci_reenable() local
419 if (cmci_supported(&banks)) in cmci_reenable()
420 cmci_discover(banks); in cmci_reenable()
425 int banks; in cmci_disable_bank() local
428 if (!cmci_supported(&banks)) in cmci_disable_bank()
446 int banks; in intel_init_cmci() local
448 if (!cmci_supported(&banks)) { in intel_init_cmci()
454 cmci_discover(banks); in intel_init_cmci()
458 * check for the banks later for CPU #0 just to make sure in intel_init_cmci()