kernel: turn CONFIG_SUSPEND off (rebuild M0)
ci / test (pull_request) Canceled after 0s
ci / prune-artifacts (push) Canceled after 0s
ci / bench (pull_request) Canceled after 0s
ci / kernel-build (push) Canceled after 0s
ci / qemu-tools (pull_request) Canceled after 0s
ci / quality (push) Canceled after 0s
ci / badges (push) Canceled after 0s
ci / quality (pull_request) Canceled after 0s
ci / test (push) Canceled after 0s
ci / bench (push) Canceled after 0s
ci / qemu-tools (push) Canceled after 0s
ci / kernel-symbols (push) Canceled after 0s
ci / patches-apply (push) Canceled after 0s
ci / mcdc (pull_request) Canceled after 0s
ci / kernel-symbols (pull_request) Canceled after 0s
ci / patches-apply (pull_request) Canceled after 0s
ci / prune-artifacts (pull_request) Canceled after 0s
ci / kernel-build (pull_request) Canceled after 0s
ci / badges (pull_request) Canceled after 0s
ci / mcdc (push) Canceled after 0s

The panel is wall powered and never sleeps the SoC. SUSPEND defaults to y, so the
defconfig carries an explicit unset, and required-symbols.txt asserts SUSPEND and
PM_SLEEP unset against the final .config. Kconfig then drops PM_SLEEP, PM_SLEEP_SMP,
SUSPEND_FREEZER, FREEZER, PM_GENERIC_DOMAINS_SLEEP, FW_CACHE and VT_CONSOLE_SLEEP; as
PM_SLEEP_SMP was the only thing selecting HOTPLUG_CPU on this one-core SoC, HOTPLUG_CPU,
KEXEC and CRASH_DUMP go with it. PM, PM_CLK and runtime PM stay.

Regression test: tests/required-symbols asserts both lines, refuses a config that turns
either back on, and fails when the defconfig loses the explicit unset (proven red).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Cxh2piVufTWbzKTmUafTkk
This commit is contained in:
Noah
2026-10-09 18:31:08 -06:00
co-authored by Claude Sonnet 5.5
parent 469f31c278
commit 8615f7c13a
3 changed files with 37 additions and 0 deletions
+5
View File
@@ -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
+16
View File
@@ -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
@@ -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"