cee25393d8
- Fix P15-8-init-cycle-detection.patch: replace visiting+error with seen+silent-skip to eliminate 11 false-positive 'dependency cycle detected' errors on shared deps - Fix P0-daemon-fix-init-notify-unwrap.patch: remove eprintln! for missing INIT_NOTIFY (expected for oneshot_async services, ~7 daemons affected) - Fix driver-manager hotplug loop: add PERMANENTLY_SKIPPED static set shared between hotplug handler and DriverConfig::probe() to stop infinite re-probing of Fatal/NotSupported/deferred-exhausted device+driver pairs (e.g. ided) - Fix driver-manager log_timeline: suppress repeated EPIPE/ENOENT errors with AtomicI32 dedup and AtomicBool one-shot guards for boot timeline JSON - Add driver-manager SIGTERM handler, ACPI bus registration, --status mode, driver reap loop, graceful shutdown, and reduced deferred retries (30→3)
25 lines
822 B
Diff
25 lines
822 B
Diff
--- a/src/cpu_set.rs
|
|
+++ b/src/cpu_set.rs
|
|
@@ -42,17 +42,18 @@
|
|
}
|
|
|
|
#[cfg(target_pointer_width = "64")]
|
|
-pub const MAX_CPU_COUNT: u32 = 128;
|
|
+pub const MAX_CPU_COUNT: u32 = 256;
|
|
|
|
#[cfg(target_pointer_width = "32")]
|
|
pub const MAX_CPU_COUNT: u32 = 32;
|
|
|
|
const SET_WORDS: usize = (MAX_CPU_COUNT / usize::BITS) as usize;
|
|
|
|
-// TODO: Support more than 128 CPUs.
|
|
+// TODO: Support more than 256 CPUs.
|
|
// The maximum number of CPUs on Linux is configurable, and the type for LogicalCpuSet and
|
|
// LogicalCpuId may be optimized accordingly. In that case, box the mask if it's larger than some
|
|
-// base size (probably 256 bytes).
|
|
+// base size (probably 256 bytes). AMD EPYC has 128C/256T, Threadripper PRO 96C/192T —
|
|
+// 256 covers current hardware.
|
|
#[derive(Debug)]
|
|
pub struct LogicalCpuSet([AtomicUsize; SET_WORDS]);
|
|
|