Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
578b510
The state passphrase prompt says what to do when no key reaches it
DevomB Oct 23, 2026
60b854f
snd-ctl-led loads ahead of snd-hda-intel, so the mute lights follow t…
DevomB Oct 23, 2026
d92455d
The card's switches follow the master's mute and the microphone's grant
DevomB Oct 23, 2026
abffeb7
The audio note says where AMD laptops' microphones are, and names eve…
DevomB Oct 23, 2026
a178838
The audio note names the CS35L41's CLSA0100 and CLSA0101 too (serial-…
DevomB Oct 23, 2026
da5a624
The audio note's ID sentence wraps evenly
DevomB Oct 23, 2026
78c0e2f
The camera docs name the Ryzen AI Max's MIPI camera as not covered
DevomB Oct 23, 2026
636b8c0
hardening.md says which TPMs feed the entropy pool
DevomB Oct 23, 2026
a8b104d
The broker fuzz target builds again, and a pull request that touches …
DevomB Oct 29, 2026
36e7ab0
A processor on acpi-cpufreq runs schedutil, and the TPM comment says …
DevomB Oct 29, 2026
16f25dd
Pin reviews for three releases since 2026-10-23: one fine, two held
DevomB Oct 29, 2026
d3c7907
Merge remote-tracking branch 'origin/main' into mute-lights-follow-mixer
DevomB Oct 29, 2026
0d30e8e
Merge remote-tracking branch 'origin/main' into prompt-no-key-hint
DevomB Oct 29, 2026
1d7ac29
The docs say where a build of main comes from, how long a cold build …
DevomB Oct 29, 2026
a98bed8
The guide says kryptik-stick copies off from each zone given a stick …
DevomB Oct 29, 2026
db14359
On a machine with no UART, sysinit drops the console= ttyS0, so /dev/…
DevomB Oct 29, 2026
a038659
Pin reviews for five more: cmake twice and lvm2 fine, node and firefo…
DevomB Oct 29, 2026
1d942ad
Five security pins move together: the CA bundle, Firefox 153.6.0, Nod…
DevomB Oct 29, 2026
5df1aea
Merge camera-docs-amd-isp (#647): the camera docs name the Ryzen AI M…
DevomB Oct 29, 2026
3fc792b
Merge hardening-tpm-rng (#648): hardening.md says which TPMs feed the…
DevomB Oct 29, 2026
f130de9
Merge fuzz-stick-arm (#649): the broker fuzz target matches the stick…
DevomB Oct 29, 2026
aee0638
Merge kernel-cpufreq-tpm (#650): a processor on acpi-cpufreq runs sch…
DevomB Oct 29, 2026
08a717f
Merge console-drop-phantom (#654): on a machine with no UART, sysinit…
DevomB Oct 29, 2026
0f5ddec
Merge prompt-no-key-hint (#620): the state passphrase prompt says wha…
DevomB Oct 29, 2026
4145793
Merge mute-lights-follow-mixer (#623): the mute lights follow the mix…
DevomB Oct 29, 2026
28c2c9b
Merge docs-builds-and-failures (#652): the docs say where a build of …
DevomB Oct 29, 2026
ee7dd15
Merge remote-tracking branch 'origin/main' into audio-docs-amd-mics
DevomB Oct 29, 2026
cf96919
Merge pin-reviews-2026-10-29 (#651): pin reviews for eight releases s…
DevomB Oct 29, 2026
6c3732b
Merge audio-docs-amd-mics (#646): the audio note says where AMD lapto…
DevomB Oct 29, 2026
f11d7b5
Merge pins-ca-firefox-node (#655): ca-bundle 2026-10-20, Firefox 153.…
DevomB Oct 29, 2026
b1a7d37
Pin reviews: the five held rows go, as #655 brings each pin up to the…
DevomB Oct 29, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/fuzz.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
name: Fuzz

# Coverage-guided fuzzing of the two parsers of zone bytes (docs/design/broker.md), weekly on a pinned nightly.
# A pull request that touches their code builds both targets without fuzzing them, so a new request
# variant the harness does not match fails there, not on the next weekly run.

on:
schedule:
- cron: '0 4 * * 0'
workflow_dispatch:
pull_request:
paths:
- 'compartments/kryptikd/src/**'
- 'compartments/kryptikd/fuzz/**'
- 'compositor/wlproxy/**'
- '.github/workflows/fuzz.yml'

permissions:
contents: read
Expand Down Expand Up @@ -59,8 +67,14 @@ jobs:
fi
echo "$(find "$RUNNER_TEMP/corpus" -type f | wc -l) seeds"

- name: The target builds
if: github.event_name == 'pull_request'
working-directory: ${{ matrix.dir }}
run: cargo fuzz build --sanitizer none "$FUZZ_TARGET"

# Safe Rust throughout, so no sanitizer: panics, overflow checks and the harness's asserts are the oracle.
- name: Twenty minutes of fuzzing
if: github.event_name != 'pull_request'
working-directory: ${{ matrix.dir }}
run: cargo fuzz run --sanitizer none "$FUZZ_TARGET" "$RUNNER_TEMP/corpus" -- -max_total_time=1200 -max_len="$MAX_LEN" -timeout=10 -print_final_stats=1

Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ From the Releases page take the medium, its signed checksums and the anchor:
`kryptik-VERSION-usb.img.zst` (or `kryptik-VERSION.iso.zst`),
`kryptik-VERSION.SHA256SUMS` with its `.sig`, and `release-signers`. Check
the download, then write it to a USB stick. The stick is overwritten whole:
be sure of the disk you name.
be sure of the disk you name. Between releases, a tested build of main is a
Distro run's `kryptik-release` artifact
([releases](docs/releases.md#a-build-of-main)).

**Linux**

Expand Down
7 changes: 7 additions & 0 deletions build/config/kernel/boot.fragment
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,13 @@ CONFIG_AMD_PMC=m
# (root, /sys/power), amd_pmc's SMU idle mask and the LPS0 constraints reach the
# kernel log, and pm_wakeup_irq names what woke it. Root-only switches, off until set.
CONFIG_PM_DEBUG=y
# The processor's clock: amd-pstate in active mode, where the power service sets the energy
# preference, and schedutil for a machine whose processor falls back to acpi-cpufreq, where
# defconfig's userspace governor would hold the clock wherever the firmware left it.
CONFIG_X86_AMD_PSTATE=y
CONFIG_X86_AMD_PSTATE_DEFAULT_MODE=3
CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set
CONFIG_INTEL_VSEC=m
CONFIG_INTEL_PMT_TELEMETRY=m
CONFIG_INTEL_PMC_CORE=m
Expand Down
3 changes: 2 additions & 1 deletion build/config/kernel/hardening.fragment
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@ CONFIG_IOMMU_DEFAULT_DMA_STRICT=y
CONFIG_INTEL_IOMMU_DEFAULT_ON=y
CONFIG_INTEL_IOMMU_SVM=y
CONFIG_AMD_IOMMU=y
# The TPM, as an entropy source.
# The TPM, as an entropy source where it gives one: on AMD, 6.18 turns a firmware
# TPM's off (AMD's PA-410), so there only a TPM chip of its own or Pluton feeds it.
CONFIG_TCG_TPM=y
CONFIG_TCG_TIS=y
CONFIG_TCG_CRB=y
Expand Down
6 changes: 4 additions & 2 deletions build/config/modprobe.d/sound.conf
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# The HD Audio codec drivers, loaded ahead of the controller: the kernel cannot
# load them itself (STATIC_USERMODEHELPER), and a codec binds only to a driver
# loaded when snd-hda-intel probes it. Stage 05 holds this list to the codec
# drivers build/config/kernel/boot.fragment builds, both ways.
softdep snd-hda-intel pre: snd-hda-codec-generic \
# drivers build/config/kernel/boot.fragment builds, both ways. snd-ctl-led too,
# which a codec's parser would load by request_module: a laptop's mute and
# microphone-mute lights follow the mixer only through it.
softdep snd-hda-intel pre: snd-ctl-led snd-hda-codec-generic \
snd-hda-codec-alc269 snd-hda-codec-alc662 snd-hda-codec-alc882 \
snd-hda-codec-conexant snd-hda-codec-senarytech snd-hda-codec-idt \
snd-hda-codec-cs420x snd-hda-codec-cs421x snd-hda-codec-cs8409 \
Expand Down
6 changes: 3 additions & 3 deletions build/config/versions.env
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ V_XZ=5.8.4
V_ZLIB=1.3.1
V_FILE=5.45
V_MAKE=4.4.1
V_PATCH=2.8
V_PATCH=2.8.1
V_M4=1.4.19
V_NCURSES=6.6
V_READLINE=8.3
Expand Down Expand Up @@ -99,7 +99,7 @@ V_S6_RC=0.7.0.0
V_S6_LINUX_INIT=1.2.0.2

# --- language runtimes needed at build time ---
V_PYTHON=3.12.15
V_PYTHON=3.12.16
V_PERL=5.40.5

# --- encrypted zone volumes: cryptsetup and what it needs ---
Expand Down Expand Up @@ -128,7 +128,7 @@ V_WPA_SUPPLICANT=2.12
V_IW=6.17
# Mozilla's CA bundle as curl.se publishes it: how the net zone checks a
# release server.
V_CA_BUNDLE=2026-08-13
V_CA_BUNDLE=2026-10-20

# --- the desktop ---
# dwl on wlroots (pixman renderer, no GPU stack), havoc, lynx and nano.
Expand Down
21 changes: 21 additions & 0 deletions build/guest-tests/sound-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,27 @@ else
fail "volume-steps" "${stepped}; ${top}"
fi

# The card's switches follow the master's mute and the microphone's grant, as a laptop's mute
# lights do through them: outputs off while muted, inputs off while no zone holds the microphone.
sw() { "$PROBE" switches 0 2>&1; }
outs='^(Master|PCM|Speaker|Headphone|Headset|Front|Line Out) playback'
ins='^(Capture|Mic|Headset) capture'
ctl revoke > /dev/null; ctl mute on > /dev/null; muted="$(sw)"
ctl mute off > /dev/null; unmuted="$(sw)"
ctl grant untrusted > /dev/null; given="$(sw)"
ctl revoke > /dev/null; taken="$(sw)"
follows() { # follows PATTERN OFF ON: every switch PATTERN names is off in OFF and on in ON
grep -qE "$1 off$" <<<"$2" && ! grep -qE "$1 on$" <<<"$2" && grep -qE "$1 on$" <<<"$3" && ! grep -qE "$1 off$" <<<"$3"
}
# Every card has an output switch the generic parser names Master or PCM; QEMU's codec may have
# no input one, and then only the outputs are checked.
if follows "$outs" "$muted" "$unmuted" && { ! grep -qE "$ins" <<<"$given" || follows "$ins" "$taken" "$given"; }; then
in_said="$(grep -E "$ins" <<<"$given" | paste -sd, -)"
pass "switches-follow" "muted: $(grep -E "$outs" <<<"$muted" | paste -sd, -); granted: ${in_said:-no input switch on this card}"
else
fail "switches-follow" "muted: $(paste -sd, - <<<"$muted"); unmuted: $(paste -sd, - <<<"$unmuted"); granted: $(paste -sd, - <<<"$given"); taken back: $(paste -sd, - <<<"$taken")"
fi

# The levels outlast the mixer, never the microphone's grant. A restart starts from the last
# mixer's record in /run; a boot, with /run empty, from what the finish script kept on the state
# partition. Removing the record stands in for the boot here.
Expand Down
4 changes: 2 additions & 2 deletions build/images/sources.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ cca6b6a86e4389d89b370288761ce2385ddeceb10c4412da78689bc30c88af2d at-spi2-core-2
1c767308174337a74694da0f3ec069c271452163a1ef4540964c50c301f157d4 cairo-1.18.6.tar.xz
ea1de9f9e23107d97ee2b41a72c552f34064a593da503789218387aee59f3ba4 cargo-1.98.1-x86_64-unknown-linux-gnu.tar.xz
2ecb53484c9c167ba674026b656d8a27d7657a58e6066aa902bfb1a4aa00ae20 cbindgen-0.29.4.crate
28714a7d4f9b38c7aafbe38022de7775a3d9cb3c1ebf19a567c26eb761e3410b firefox-153.5.0esr.source.tar.xz
91cb675ddfc678255f57ecd7aad498501961577686d19c1947a82b14edea7f25 firefox-153.6.0esr.source.tar.xz
4f7b554a38cdf78c033f666c8871f3749e14a094f65a07f630c91ed0b43d35e3 fontconfig-2.18.3.tar.xz
93cd47eb719c325107f2d3cf087d06299e944c3b48a40b55537302304dea1dd5 freetype-2.15.0.tar.xz
6949dcde27d41cebad1fd741fcafc36d55a1020d2d872d4a6eb3914caabbada2 fribidi-1.0.17.tar.xz
Expand All @@ -16,7 +16,7 @@ a7ced37f4102b745ac86d6a70a9da399cc139ff168ba6b8002b4d8d43c900c15 libepoxy-1.5.1
2b6e15b06aafb4c0b6e2348124808cbd9b291c647299eaaba2e3202f51ff2f3d libglvnd-v1.7.0.tar.gz
d80dd2a38a37f803cb9b6ac7b14bd6e74ddc3b654780a8380bdf93523fdb4389 libpng-1.6.59.tar.xz
87336eba53b4acfe917424ab5d500d2b0054d9f5148d35c2273ccf2cfb712f0d nasm-3.02.tar.xz
cc2f601cee82d9a5a233302fe307abc600727035fd7d2c3a3571755989e95008 node-v24.22.0-linux-x64.tar.xz
48cc0e21e048790e54c0cf5749c2725005313d652651c40b7a21feb9697aaf75 node-v24.22.2-linux-x64.tar.xz
342385b6ca3b7c73455d7c80a13b7dbe4489e00bc3bd4c5bd6ed4dce421e374a pango-1.58.2.tar.xz
53c156e1ba416a20da8e65395daa132da0d80e76910424caca3fcdae7831d384 pcre2-10.49.tar.bz2
fa3ff450172a16c026944030230c5069947af93c728d9179971d44e5e0cfb561 rust-std-1.98.1-x86_64-unknown-linux-gnu.tar.xz
Expand Down
4 changes: 2 additions & 2 deletions build/images/versions.env
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ V_GTK3=3.24.52
# --- browser: Firefox ESR, over the toolkit and build-only layers no zone gets ---
# The ESR after 140, which ends once the two stop overlapping. Mozilla's key is taken from the KEY file
# beside this release (tools/key-provenance.tsv), so a bump changes both.
V_FIREFOX=153.5.0
V_FIREFOX=153.6.0
# The compiler kryptikd is built with: build/config/rust.lock holds the same three tarballs.
V_RUST=1.98.1
# LLVM's release build, for the libclang bindgen loads.
V_LLVM=23.1.3
V_CBINDGEN=0.29.4
V_NASM=3.02
# Node.js's release build, which Firefox's build runs for its devtools: an LTS line.
V_NODE=24.22.0
V_NODE=24.22.2
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Firefox 153.5.0 ESR: building with GCC 14
# Firefox 153.6.0 ESR: building with GCC 14

Applied by `s_browser_firefox` in the browser image through `apply_repo_patches`;
`SHA256SUMS` is verified before anything is applied.
Expand Down
25 changes: 21 additions & 4 deletions build/service-scripts/ask.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
# POSIX sh, sourced by sysinit and firstboot.
# consoles the console devices, one per line
# tell LINE... each LINE on every console
# ask [-s] SECS Q Q on every console; the first line typed on any goes to stdout.
# -s keeps echo off; SECS 0 waits forever; fails if nothing comes in time.
# ask [-s] [-h HSECS HINT] SECS Q
# Q on every console; the first line typed on any goes to stdout.
# -s keeps echo off; -h tells HINT once when HSECS pass with no answer;
# SECS 0 waits forever; fails if nothing comes in time.

ask_dir=/run/kryptik

Expand All @@ -24,8 +26,14 @@ tell() {

# One reader per console, first line wins; stty never discards input, so an early answer is kept.
ask() {
_a_quiet=''
[ "$1" = -s ] && { _a_quiet=1; shift; }
_a_quiet='' _a_hsecs=0 _a_hint=''
while :; do
case "$1" in
-s) _a_quiet=1; shift ;;
-h) _a_hsecs=$2 _a_hint=$3; shift 3 ;;
*) break ;;
esac
done
_a_secs=$1 _a_q=$2
_a_devs=$(consoles)
rm -f "$ask_dir/ask"
Expand Down Expand Up @@ -54,6 +62,15 @@ ask() {
) < /dev/null > /dev/null 2>&1 &
_a_pids="$_a_pids $!"
fi
# The hint is only told: the readers keep reading, and what was typed before it stays theirs.
if [ -n "$_a_hint" ] && [ "$_a_hsecs" -gt 0 ]; then
(
trap 'kill "$!" 2>/dev/null; exit 0' TERM
sleep "$_a_hsecs" & wait "$!"
tell "" "$_a_hint"
) < /dev/null > /dev/null 2>&1 &
_a_pids="$_a_pids $!"
fi
_a_ans='' _a_from='' _a_ended=0
while [ "$_a_ended" -lt "$_a_n" ] && IFS= read -r _a_msg <&3; do
case "$_a_msg" in
Expand Down
12 changes: 11 additions & 1 deletion build/service-scripts/sysinit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
echo running > /run/kryptik-sysinit
trap 'echo finished > /run/kryptik-sysinit' EXIT

# A console= port the machine lacks, as a laptop's legacy ttyS0 (type 0: no UART answered), is
# still /dev/console, and every write to it fails. Dropped, it hands /dev/console to the screen's
# console, so whatever opens /dev/console later is seen. A port with a UART behind it is kept.
for t in "${KRYPTIK_SYSFS:-/sys}"/class/tty/ttyS*; do
[ "$(cat "$t/type" 2>/dev/null)" = 0 ] && [ "$(cat "$t/console" 2>/dev/null)" = Y ] || continue
echo N > "$t/console" 2>/dev/null || true
done

[ -r /etc/hostname ] && hostname "$(cat /etc/hostname)" || true

# The only names the /etc upper layer may carry: accounts, identity, clock, zone 0's resolver.
Expand Down Expand Up @@ -39,10 +47,12 @@ prune_etc_upper() { # prune_etc_upper UPPER QUARANTINE
}

. /usr/libexec/kryptik/ask.sh
# Told after a minute with nothing typed: a keyboard whose driver is a module types nothing here.
NO_KEY="sysinit: if no key reaches this prompt, a plain USB keyboard will: some keyboards' drivers load only after it."
unlock_state() { # unlock_state DEVICE -> /dev/mapper/kryptik-state
try=1
while [ "$try" -le 3 ] && [ ! -b /dev/mapper/kryptik-state ]; do
pass=$(ask -s 0 "sysinit: passphrase for the state partition (try $try of 3): ") || pass=""
pass=$(ask -s -h 60 "$NO_KEY" 0 "sysinit: passphrase for the state partition (try $try of 3): ") || pass=""
# printf is a builtin: the passphrase never appears as an argument.
printf '%s' "$pass" | cryptsetup open --type luks2 --key-file=- "$1" kryptik-state 2>/dev/null || true
try=$((try + 1))
Expand Down
2 changes: 1 addition & 1 deletion compartments/kryptikd/fuzz/broker_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ fuzz_target!(|data: &[u8]| {
let Some(nl) = data.iter().position(|b| *b == b'\n') else { return };
let header = String::from_utf8_lossy(&data[..nl]);
match parse_request(&header) {
Err(_) | Ok(Request::Version | Request::ClipboardGet | Request::UpdatePoll) => {}
Err(_) | Ok(Request::Version | Request::ClipboardGet | Request::UpdatePoll | Request::Stick) => {}
Ok(Request::ClipboardSet { mime, len }) => assert!(MIME_TYPES.contains(&mime.as_str()) && len <= CLIPBOARD_MAX),
Ok(Request::Transfer { dest, name }) => {
assert!((1..=12).contains(&dest.len()));
Expand Down
2 changes: 1 addition & 1 deletion docs/audit-scope.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ Everything runs on GitHub's runners, so a fork is enough:
medium. Its `acceptance-report` artifact holds `REPORT.md`, one row per
item, `results.tsv`, and every item's log and serial transcript
([status](status.md#the-last-full-pass)). A run from no cache takes about
three hours.
six hours.
- **Locally**, [building](building.md) lists the host packages and stages;
`make test` and `make zone-tests` need no build, and `make acceptance`
needs KVM and two built releases.
Expand Down
4 changes: 4 additions & 0 deletions docs/design/boot-and-updates.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ root=/dev/dm-0 ro rootwait console=tty0 console=ttyS0,115200 panic=10 loglevel=4
- `CONFIG_DM_VERITY_VERIFY_ROOTHASH_SIG` is on but not the mechanism; the
kernel's signature authenticates the hash.
- `tools/check-kernel-hardening.sh` checks the parameters after `loglevel`.
- `console=ttyS0` comes last so a VM's serial port is `/dev/console`, which
the suites read. On a machine with no UART behind ttyS0, as most laptops,
the kernel registers the console anyway and every write to it fails, so
`sysinit` drops it at once and `/dev/console` becomes the screen's.

Stage 06 relinks stage 05's unbound kernel per variant (`media-usb`,
`media-iso`, `slot-a`, `slot-b`; `06-kernel-bind.sh`), changing only
Expand Down
2 changes: 1 addition & 1 deletion docs/design/browser-and-graphics.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ floors are given with each layer.
`-fno-delete-null-pointer-checks`, under which GCC 14 cannot evaluate
SpiderMonkey's compile-time checks (Mozilla's own builds go without it
too), and carries the few changes a GCC
build needs (`build/patches/firefox-153.5.0`).
build needs (`build/patches/firefox-153.6.0`).
- `--enable-default-toolkit=cairo-gtk3-wayland-only`, `--disable-dbus`,
`--enable-release`, `--disable-tests`, `--disable-crashreporter`,
`--disable-updater` (updates are the image's) and `--disable-eme`.
Expand Down
21 changes: 17 additions & 4 deletions docs/design/camera.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ to grant it, and the grant visible for as long as it lasts.
device made for it.
- **Not covered:** the MIPI cameras of many Intel laptops since 2022, behind
the IPU6, which need a camera stack in userspace (libcamera and Intel's
image processing), and infrared face-login cameras.
image processing); those behind the image processor of AMD's Ryzen AI Max
(HP's ZBook Ultra G1a), whose driver came in Linux 7.2, after 6.18; and
infrared face-login cameras.

## Who reaches that code, and when

Expand Down Expand Up @@ -115,9 +117,10 @@ itself waits for the tests on physical hardware.

## Not covered

- MIPI cameras behind the IPU6 (below), and infrared cameras. Of several
cameras, a grant gives the zone the lowest numbered node that is its
device's first (`index` 0), which a camera's metadata node is not
- MIPI cameras behind Intel's IPU6 and AMD's image processor (below), and
infrared cameras. Of several cameras, a grant gives the zone the lowest
numbered node that is its device's first (`index` 0), which a camera's
metadata node is not
(`camera_in` in `camera.rs`). On a laptop whose infrared face-login camera
is a USB device of its own, that node may be the infrared camera's, which
gives a call no picture. Preferring a node that offers a colour format
Expand Down Expand Up @@ -159,3 +162,13 @@ it; a USB camera works on those laptops. The firmware is the small part of
the cost. Where the image processing runs and what a grant hands over are
the questions, and they wait for a machine with such a camera to answer
them on.

AMD's Ryzen AI Max has an image processor of its own, the ISP4, behind the
MIPI camera of HP's ZBook Ultra G1a. Its firmware drives the sensor and
makes the picture, and its driver gives one capture node of NV12 or YUYV
frames, as a USB camera does, rather than a graph of raw ones, so it would
fit a grant of one node. That driver (`VIDEO_AMD_ISP4_CAPTURE`) came in
Linux 7.2, and Kryptik builds 6.18. It would also need amdgpu's half
(`DRM_AMD_ISP`, off), platform cameras in the media filter (off), the
processor's firmware (`amdgpu/isp_*`, which `firmware.list` leaves out),
and kryptikd's grant loading it beside `uvcvideo`.
28 changes: 20 additions & 8 deletions docs/design/laptop-audio.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,15 @@ platform's SOF driver is built, so with none built it finds no row and
microphones are all silent, and as that card has no device 0 the mixer
plays to none of it, a monitor's speakers included.
- **AMD laptops:** on most the codec is on HD Audio, so the speakers and
the jack work. The built-in microphones are on the audio coprocessor (ACP)
and do not. Some, from the coprocessor's 6.3 generation (Ryzen 7040) on,
put their codecs on SoundWire behind the coprocessor instead, and there,
as on Intel's SoundWire laptops, the speakers, the jack and the
microphones are all silent.
the jack work. Where the built-in microphones are on the audio
coprocessor (ACP), as on many consumer models (HP's OMEN and Victus among
them), they do not. Some put them on the codec's digital-microphone input
instead, as the kernel logs of HP's EliteBook 8 G1a and 845 G9 show, and
HD Audio then drives them as it does a headset's microphone; no such
laptop has run Kryptik yet. Some, from the coprocessor's 6.3 generation
(Ryzen 7040) on, put their codecs on SoundWire behind the coprocessor
instead, and there, as on Intel's SoundWire laptops, the speakers, the
jack and the microphones are all silent.
- **Smart amplifiers** in front of the speakers (Cirrus's CS35L41, CS35L54,
CS35L56 and CS35L57, TI's TAS2781), on Intel and AMD laptops alike:
linux-firmware has tuning files for about 200 models, most of them ASUS,
Expand All @@ -50,7 +54,14 @@ USB audio works on all of them. A machine shows which kinds it is without
any of these drivers: the audio controller's PCI class (0x040100 or
0x040380 means a DSP, 0x040300 none), an `NHLT` table under
`/sys/firmware/acpi/tables`, and whether its ACPI tables describe SoundWire
links or amplifiers (`CSC3551` for Cirrus's CS35L41, `TIAS2781` for TI's).
links or amplifiers, which `ls /sys/bus/acpi/devices` lists: `CSC3551`,
`CLSA0100` and `CLSA0101` for Cirrus's CS35L41; `CSC3554`, `CSC3556` and
`CSC3557` for its CS35L54, CS35L56 and CS35L57; `TIAS2781` and `TXNW2781`
for TI's. On AMD, the codec
shows whether it has the microphones: the kernel's autoconfig line for a
Realtek codec lists `Internal Mic=0x12`, and pin 0x12 in
`/proc/asound/card*/codec#0` has an internal-microphone default rather than
0x411111f0, the value of a pin with nothing on it.
Testing on physical hardware is planned for October 2026. The Intel and AMD
laptops tested then will show which kinds they are.

Expand Down Expand Up @@ -188,8 +199,9 @@ laptops tested then will show which kinds they are.
## Recommendation: a named gap in 1.0

1.0 ships without most of them, and the user guide's known limitations say
so: no built-in microphones on Intel laptops with a DSP or on AMD laptops,
no built-in sound on SoundWire laptops, and no speakers behind smart
so: no built-in microphones on Intel laptops with a DSP or on AMD laptops
whose microphones are on the coprocessor, no built-in sound on SoundWire
laptops, and no speakers behind smart
amplifiers other than Cirrus's CS35L54, CS35L56 and CS35L57 on I2C.

Those three are built ahead of the rule below, that each comes only once a
Expand Down
Loading
Loading