diff --git a/build/required-symbols.txt b/build/required-symbols.txt index 0b0b809..a3081ce 100644 --- a/build/required-symbols.txt +++ b/build/required-symbols.txt @@ -53,6 +53,11 @@ CONFIG_NFT_LIMIT=y CONFIG_NFT_SOCKET=y CONFIG_NFT_REJECT=y ## +## tier A power: no suspend (Noah 2026-10-09). The two lines below are derived +## off with it; assert them so a Kconfig change cannot bring them back. +# CONFIG_SUSPEND is not set +# CONFIG_PM_SLEEP is not set +## ## tier C recommended CONFIG_NETFILTER_XT_MATCH_ADDRTYPE=y CONFIG_NF_CONNTRACK_PROCFS=y diff --git a/build/warden_defconfig b/build/warden_defconfig index 75073d4..16b9b7c 100644 --- a/build/warden_defconfig +++ b/build/warden_defconfig @@ -1472,6 +1472,22 @@ CONFIG_NFT_LIMIT=y CONFIG_NFT_SOCKET=y CONFIG_NFT_REJECT=y # +# No suspend (rebuild M0, Noah 2026-10-09): the panel is wall powered and never +# sleeps the SoC, and nothing in the product wakes it. Turning SUSPEND off lets +# Kconfig drop everything that existed only for it: PM_SLEEP and PM_SLEEP_SMP, +# SUSPEND_FREEZER and FREEZER, PM_GENERIC_DOMAINS_SLEEP, FW_CACHE (firmware +# cached across a suspend) and VT_CONSOLE_SLEEP. PM_SLEEP_SMP was also the only +# thing selecting HOTPLUG_CPU on this one-core SoC, and an SMP ARM kernel offers +# KEXEC and CRASH_DUMP only with it, so those go too (nothing uses them: the +# kexec flash path was a 5.10 experiment). PM, PM_CLK, runtime PM and +# ARM_CPU_SUSPEND (kept by ARM_PSCI_FW) stay, because the USB, DRM and Wi-Fi +# drivers use runtime PM. Hibernation was already off. The AIC8800 driver must +# keep building and loading; the SDK build and the slot test prove it. +# CONFIG_SUSPEND is not set +# PM_SLEEP has no prompt and follows SUSPEND; the line records the expected result, and +# required-symbols.txt asserts it against the final .config. +# CONFIG_PM_SLEEP is not set +# # Probe tier (N-36, d06 O14, probe V3): the Rockchip hardware RNG, built into # the test kernel. build/probe-symbols.txt lists it; it moves to # required-symbols.txt only if V3 passes on the panel, and comes out of this diff --git a/tests/required-symbols/run-required-symbols-tests.sh b/tests/required-symbols/run-required-symbols-tests.sh index 1b3051f..3191503 100755 --- a/tests/required-symbols/run-required-symbols-tests.sh +++ b/tests/required-symbols/run-required-symbols-tests.sh @@ -60,6 +60,22 @@ for sym in $(req_assertions "$REQ" | sed -n 's/^# \(CONFIG_[A-Z0-9_]*\) is not s req_assert_config "$TMP/cfg-absent" "$REQ" "$PROBE" >/dev/null 2>&1 && ok "$sym absent from the config is accepted" || bad "$sym absent from the config was refused" done +# No suspend (Noah 2026-10-09): CONFIG_SUSPEND and CONFIG_PM_SLEEP are asserted unset, the +# defconfig carries the explicit unset (SUSPEND defaults to y), and a config that +# turns either back on is refused by name. +DEFCONFIG="$REPO/build/warden_defconfig" +for sym in CONFIG_SUSPEND CONFIG_PM_SLEEP; do + req_assertions "$REQ" | grep -qxF "# $sym is not set" \ + && ok "required-symbols.txt asserts $sym unset" || bad "required-symbols.txt does not assert $sym unset" + { cat "$TMP/good"; echo "$sym=y"; } > "$TMP/cfg-suspend" + out=$(req_assert_config "$TMP/cfg-suspend" "$REQ" "$PROBE" 2>&1) && bad "$sym=y was accepted" \ + || { printf '%s' "$out" | grep -q "$sym" && ok "$sym=y is refused naming $sym" || bad "$sym=y was refused without naming it"; } +done +grep -qxF '# CONFIG_SUSPEND is not set' "$DEFCONFIG" \ + && ok "warden_defconfig carries the explicit # CONFIG_SUSPEND is not set" \ + || bad "warden_defconfig lost the explicit # CONFIG_SUSPEND is not set (the Kconfig default is y)" +grep -qE '^CONFIG_SUSPEND=' "$DEFCONFIG" && bad "warden_defconfig sets CONFIG_SUSPEND" || ok "warden_defconfig does not set CONFIG_SUSPEND" + # fail-closed shapes : > "$TMP/empty" req_assert_config "$TMP/empty" "$REQ" >/dev/null 2>&1 && bad "an empty config was accepted" || ok "an empty config is refused"