machine, linux-wak: add server/desktop/laptop/vm roles and x86_64 desktop and laptop machines. #30

Open
william-work wants to merge 11 commits from william-work/machine-roles into main AGit
Member

Role includes for server, desktop, laptop and vm, kernel tags derived from them, x86 bare-metal options shared across server/desktop/laptop, and new x86_64-desktop and x86_64-laptop machines. Existing machines merge to an identical kernel fragment; all six machines pass do_kernel_configcheck and the laptop kernel builds.

Role includes for server, desktop, laptop and vm, kernel tags derived from them, x86 bare-metal options shared across server/desktop/laptop, and new x86_64-desktop and x86_64-laptop machines. Existing machines merge to an identical kernel fragment; all six machines pass do_kernel_configcheck and the laptop kernel builds.
Machines now pick a role include (conf/machine/include/{server,desktop,laptop,vm}.inc) that sets MACHINEOVERRIDES, and linux-wak derives the defconfig matcher tags from those overrides instead of listing each machine. laptop.inc includes desktop.inc, so laptops get every desktop option. The x86_64 machines share conf/machine/include/x86_64.inc for the tune and bzImage.

In the defconfig, IOMMU, P-state/C-state/RAPL, ACPI PRM/PCC and sensor options move from x86_64-server to every x86_64 real-hw machine, and the local VT/efidrm console covers servers and desktops. The four existing machines merge to exactly the same fragment as before.

New x86_64-desktop: amdgpu/i915/xe, HDA (Realtek, Conexant, Intel/AMD HDMI) and USB audio, PS/2 keyboard, Logitech receivers, Realtek and Intel client Ethernet, USB4, AMD/Intel PMC for s2idle, suspend, and no reboot on soft lockup, hung task or workqueue stall. New x86_64-laptop adds ACPI AC/battery/thermal/fan, Intel HID/VBTN and AMD PMF, i2c-hid touchpads, UCSI, SD card readers, UVC webcams, iwlwifi, MT7921/MT7925 and USB Bluetooth.
Constraints now read as alternatives separated by spaces (OR), each a comma-joined list of terms (AND), with AND binding tighter. That lets x86_64,server replace the x86_64-server machine tag, so the defconfig only names a machine for board-specific hardware (opi5-server, rock5b-server). Version comparisons are ordinary terms (>=7.4-rc0,x86_64,server), and CONFIG_VT uses an unconditional default plus a later override instead of a negated compound.

All six machines merge to the same fragment as before on 7.3, 7.3.4 and 7.4-rc2.
Machines now combine a platform include (real-hw.inc or vm.inc) with a role (server.inc or graphical.inc); desktop.inc and laptop.inc are real-hw graphical. That makes VM servers and graphical VMs possible: add x86_64-vm-server and x86_64-vm-graphical, and drop x86_64-vm, whose kernel was identical to x86_64-vm-server. Bare-metal-only kernel options now require real-hw as well (x86_64,real-hw,server), so the VMs never get IPMI, EDAC, server NICs, GPUs, HDA, Wi-Fi or USB4.

Graphical machines build PREEMPT_RT with PREEMPT_DYNAMIC (preempt=lazy switches back at boot) and therefore lose transparent hugepages, which depend on !PREEMPT_RT. They get Intel, MediaTek and Qualcomm Wi-Fi and Bluetooth and amdgpu and xe (no i915) as modules. The graphical VM gets virtio-gpu, virtio sound and virtio input. Realtek NICs move to the out-of-tree driver, and the stall-panic policy stays the same as on servers.

Re-enable the wayland, opengl, alsa, wifi and bluetooth distro features. The x86_64-server image is byte-identical with and without them (same 32 packages, all 398 files). wak-shell-image now installs MACHINE_EXTRA_RDEPENDS, and real-hw machines list the linux-firmware packages for the drivers they build: ice on bare-metal servers, RTL8125 on rock5b-server, and GPU, Wi-Fi and Bluetooth firmware on desktops and laptops. The linux-firmware meta package alone installs only licenses under NO_RECOMMENDATIONS.

All eight machines pass do_kernel_configcheck; the RT laptop kernel and image build (233M with firmware), and the x86_64-server image stays at 13M.
Keep alsa and pulseaudio opted out; wayland, opengl, wifi and bluetooth stay enabled. The x86_64-server image still matches the pre-features baseline file for file, apart from the firmware it now installs.

Graphical machines go back from PREEMPT_RT to PREEMPT with PREEMPT_DYNAMIC (preempt=lazy still switches at boot), which brings transparent hugepages back. Server kernel fragments are unchanged; all three graphical machines pass do_kernel_configcheck and the laptop kernel builds.
The linux-firmware meta package installs only licenses under NO_RECOMMENDATIONS, and the full set is about 2 GB, so machines now list exact packages. A linux-firmware bbappend splits two small packages out of oe-core's catch-all ones: nvidia-blackwell (GB10x/GB20x GSP plus the shared ga102 GSP image they link to) and iwlwifi-be211 (Intel BE211 ucode, including the top-level compat symlinks iwlwifi actually requests). x86_64 real hardware installs xe firmware, x86_64 bare-metal servers add Blackwell, and graphical real hardware adds BE211; VMs and rk3588 boards install none.

Drop the E810 (ice) driver along with its DDP firmware until we have one, and drop alsa from the graphical MACHINE_FEATURES.

tools/firmware-check lists the firmware every built linux-wak module requests (modinfo) and checks it against an image's rootfs, and the kernel recipes' update procedures now include a firmware cross-check step pointing at it. It caught the missing iwlwifi symlinks before this commit.
Add nvidia-open 620.73.04 (latest open-gpu-kernel-modules tag) building nvidia.ko and nvidia-uvm.ko for headless compute; modeset, drm, peermem and vgpu are excluded and nouveau stays off. The GSP firmware the modules require is not in that repo, so the recipe also fetches the matching NVIDIA-Linux-x86_64-620.73.04.run and pulls only the license and the ga10x images (Ampere and later, which covers Blackwell) out of its zstd payload instead of running the installer.

NVIDIA builds the OS-agnostic core (nv-kernel.o) with its own makefiles, so it never sees the kernel's hardening flags; pass it the ones linux-wak uses (kCFI with integer normalization and arity, IBT ENDBR, call padding, clang retpoline and return thunks) so FineIBT/kCFI calls into it match. The modules come out signed with the kernel's build key and the firmware is byte-identical to the .run copy. objtool reports 22 fall-through warnings in nv-kernel.o and one no-cfi indirect call in nvidia-uvm; runtime is untested without hardware.

x86_64 bare-metal servers install nvidia-open instead of the nouveau-only Blackwell linux-firmware split, which is removed. The graphical kernel drops amdgpu, MediaTek and Qualcomm Wi-Fi, iwlwifi MVM and Bluetooth, keeping xe and iwlwifi MLD for BE211, and the BE211 firmware is pinned to the Panther Lake API 107 ucode the kernel loads. tools/firmware-check now covers out-of-tree modules: nvidia resolves its ga10x firmware on x86_64-server, and xe and iwlwifi resolve theirs on x86_64-laptop.
william-work force-pushed william-work/machine-roles from 5e3722ac5c to 21b6f21936 2026-11-23 15:29:52 -08:00 Compare
Stop opting out of vulkan so graphical machines can build Vulkan drivers and loaders. Nothing in the x86_64-server image checks for vulkan: a rebuild after the change reran none of its 1763 tasks and produced the same 39 packages and 428 files.
Physical boards all have USB host ports and the kernel builds the host controller drivers only for real-hw, so declare usbhost in real-hw.inc instead of graphical.inc. Servers and the rk3588 boards gain it, the graphical VM drops it. usbhost is not a distro feature, so COMBINED_FEATURES is unchanged; the x86_64-server image reruns no tasks and opi5-server's pending task list is the same with and without the change.
Restore the original constraint syntax (wak-kconfig-merge.sh is byte-identical to main again) and rewrite the defconfig conditions in that style: AND groups use spaces (x86_64 real-hw server) and an OR of groups is one line per group with the same value, which is equivalent because the last matching line wins. Machine-name tags stay limited to board hardware.

All seven machines merge to the same fragment as before on 7.3, 7.3.4 and 7.4-rc2, and pass do_kernel_configcheck.
Every machine has PCI (x86_64 hardware, rk3588 PCIe, virtio-pci in VMs),
so pci moves from graphical.inc to the shared wak.inc.

Drop nfs from DISTRO_FEATURES_OPTED_OUT and build the kernel NFS client
and server for the server role (bare metal and VM): NFSv3 and NFSv4.0,
4.1, 4.2 over TCP, no NFSv2, no UDP, no pNFS server layouts.

All seven machines pass kernel_configcheck. The x86_64-server image has
the same package list; only the nvidia modules (rebuilt against the new
kernel) and modules.order change.
Drop the NFSv3 client, the v3 ACL side protocol on client and server, and
the NFSv4.0 client. The nfsv4 module always carries 4.1 with 4.2, and nfsd
always builds v3 in, so the defconfig comment notes the nfs.conf settings
that limit the server to 4.2 at runtime. All four server machines pass
kernel_configcheck.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/30/head:william-work/machine-roles'
git switch 'william-work/machine-roles'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'william-work/machine-roles'
git switch 'william-work/machine-roles'
git rebase 'main'
git switch 'main'
git merge --ff-only 'william-work/machine-roles'
git switch 'william-work/machine-roles'
git rebase 'main'
git switch 'main'
git merge --no-ff 'william-work/machine-roles'
git switch 'main'
git merge --squash 'william-work/machine-roles'
git switch 'main'
git merge --ff-only 'william-work/machine-roles'
git switch 'main'
git merge 'william-work/machine-roles'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
wak/meta-wak!30
No description provided.