Skip to content

Latest commit

ย 

History

272 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

tux Linux kernel

The Linux kernel is the core of any Linux operating system. It manages hardware, system resources, and provides the fundamental services for all other software.


Linux Kernel Custom Kernel

Target Ryzen9 Target T440p Target OS Compiler


๐Ÿ“– Table of Contents

  1. Overview
  2. Repository layout & configuration files
  3. Implemented improvements
  4. CI/CD pipeline & build environment
  5. Secure Boot & MOK enrollment
  6. Tests & verification
  7. Results
  8. Real hardware

๐Ÿงญ Overview

Custom Debian 13 (Trixie) kernels, tuned and built by CI for two exact machines. Each device has its own config in configs/stable/, its own compiler flags and its own signed .deb packages.

๐Ÿ–ฅ๏ธ Workstation ๐Ÿ’ป Laptop
Machine AMD Ryzen 9 5950X + Radeon RX 6950 XT Lenovo ThinkPad T440p (Intel Core i7-4700MQ, HD Graphics 4600)
Config configs/stable/config-7.3.6-ryzen9-debian13 configs/stable/config-6.19.14-t440p-debian13
Kernel 7.3.6-ryzen9 6.19.14-t440p
Architecture flags -march=znver3 -O2 -pipe -march=haswell -mtune=haswell -O2 -pipe
Loadable modules (=m) 193 (-95.2% vs Debian stock) 251 (-93.8% vs Debian stock)
Built-in options (=y) 1,967 (-25.8%) 1,878 (-29.2%)
Secure Boot Signed modules, MOK Signed modules, MOK

Baseline for every comparison: Debian 13 stock 6.12.118+deb13-amd64 (configs/base/).

The guiding philosophy is aggressive module & bloat removal (95.2% module reduction vs Debian 13 stock 6.12.118+deb13-amd64, from 4,051 down to 193 essential =m modules, and 25.8% fewer built-in =y options from 2,651 down to 1,967) while retaining security, performance, and diagnostic capabilities:

  • ๐Ÿ”ง CPU-specific optimization (Zen 3, 32 threads, AMD pstate EPP, PREEMPT, 1000 Hz)
  • ๐ŸŽฎ GPU-specific support (RDNA 2 / amdgpu module, ROCm SVM, VRAM cgroups, DRM panic)
  • ๐ŸŒ Targeted network drivers only (Intel I211 igb + Intel 10GbE ixgbe + Intel AX210 iwlwifi / btusb + Realtek r8169)
  • ๐Ÿ” Security retained (all AMD Zen 3 CPU mitigations, CET User Shadow Stack, BPF LSM, mandatory module signing)
  • ๐Ÿ” Diagnostics retained (Ftrace, Kprobes, Uprobes, ORC)
  • ๐Ÿ—‘๏ธ Hardware bloat removed (Intel GPU, NVIDIA, legacy Radeon, APU-only ISP/ACP, unused network vendors, legacy buses, TV/DVB)

๐Ÿ“‚ Repository Layout & Configuration Files

Path Content
configs/stable/ Configs used by the CI by default (the newest file per device).
configs/archive/ Previous revisions kept for diffing / rollback (6.19.14, 7.3, 7.3.1, 7.3.3, 7.3.4, 7.3.5; both devices).
configs/base/ Debian 13 stock configs (6.12.107, 6.12.113, 6.12.118+deb13-amd64) used as the baseline for every footprint comparison.
changelogs/ Upstream release notes per kernel version (6.19.14, 7.2.8, 7.3, 7.3.3, 7.3.5, 7.3.6).
patchs/debian13-ryzen9.patch Historical .config diff (Debian stock 6.12.107 โ†’ 6.19.14); not used by the CI workflow.
.github/workflows/build-kernel.yml Build, sign and release pipeline (see CI/CD Pipeline & Build Environment).

๐Ÿ“Œ Current configs/stable/ contents

Config file Kernel Loadable (=m) Built-in (=y) Total CONFIG_
config-7.3.6-ryzen9-debian13 7.3.6 193 1,967 2,306
config-6.19.14-t440p-debian13 6.19.14 251 1,878 2,271
  • The kernel version is taken from the file name; with config = stable the workflow picks the newest file per device (sort -V), so replacing a file in configs/stable/ is enough to bump a target.
  • The T440p is currently pinned to the 6.19.14 config; the 7.3.x T440p configs are kept in configs/archive/.
  • Both configs are generated with gcc (Debian 14.2.0-19) 14.2.0, compress modules with XZ (CONFIG_MODULE_COMPRESS_XZ=y) and sign them with certs/MOK-signing.pem (CONFIG_MODULE_SIG_KEY).

The counters used across this README can be reproduced with:

f=configs/stable/config-7.3.6-ryzen9-debian13
echo "m=$(grep -c '=m$' $f) y=$(grep -c '=y$' $f) total=$(grep -c '^CONFIG_' $f)"
# m=193 y=1967 total=2306

โšก Implemented Improvements

What was changed relative to the Debian stock configuration, grouped by device. Every option listed here can be checked against the files in configs/stable/.

โš–๏ธ Per-device Configuration Differences

Area AMD Ryzen 9 5950X (7.3.6) Lenovo ThinkPad T440p (6.19.14)
CPU count CONFIG_NR_CPUS=32 CONFIG_NR_CPUS=8
NUMA CONFIG_NUMA=y (# CONFIG_NUMA_BALANCING is not set) # CONFIG_NUMA is not set
Frequency driver amd-pstate (CONFIG_X86_AMD_PSTATE_DEFAULT_MODE=3, active EPP) intel_pstate (CONFIG_X86_INTEL_PSTATE=y), running as intel_cpufreq (passive)
Default cpufreq governor schedutil schedutil
cpuidle governors teo + menu + ladder built (cpuidle.governor=teo on the cmdline) teo only, with CONFIG_INTEL_IDLE=y
GPU CONFIG_DRM_AMDGPU=m (SI/CIK off) CONFIG_DRM_I915=m
Graphical panic CONFIG_DRM_PANIC=y # CONFIG_DRM_PANIC is not set
IOMMU CONFIG_AMD_IOMMU=y none (# CONFIG_INTEL_IOMMU is not set)
USB Type-C CONFIG_TYPEC=y (UCSI ACPI + DP AltMode) # CONFIG_TYPEC is not set
KVM CONFIG_KVM_AMD=m CONFIG_KVM_INTEL=m
Wired / Wi-Fi igb, igbvf, ixgbe, r8169, iwlwifi e1000e, iwlwifi (+ USB AX88179 / RTL8153 adapters)
Audio CA0132 (Sound Blaster Z) + HDMI (ATI) Realtek HDA codecs + HDMI (Intel); # CONFIG_SND_HDA_CODEC_CA0132 is not set
NVMe built-in (CONFIG_BLK_DEV_NVME=y) module (CONFIG_BLK_DEV_NVME=m)
FireWire CONFIG_FIREWIRE=m / FIREWIRE_OHCI=m / FIREWIRE_SBP2=m # CONFIG_FIREWIRE is not set
Meltdown / KPTI # CONFIG_MITIGATION_PAGE_TABLE_ISOLATION is not set CONFIG_MITIGATION_PAGE_TABLE_ISOLATION=y
AMD-specific mitigations RETHUNK, UNRET_ENTRY, IBPB_ENTRY, SRSO, RETBLEED, TSA = y # CONFIG_MITIGATION_RETHUNK is not set, # CONFIG_MITIGATION_RETBLEED is not set
Intel-specific mitigations โ€” IBRS_ENTRY, MDS, TAA, L1TF, MMIO_STALE_DATA, SRBDS, GDS, RFDS, SPECTRE_BHI, VMSCAPE = y
User shadow stack (CET) CONFIG_X86_USER_SHADOW_STACK=y # CONFIG_X86_USER_SHADOW_STACK is not set
Platform extras CONFIG_GIGABYTE_WMI=m THINKPAD_ACPI, THINKPAD_LMI, SENSORS_HDAPS, INTEL_RAPL, X86_PKG_TEMP_THERMAL, INTEL_POWERCLAMP

Shared by both configs: CONFIG_PREEMPT_DYNAMIC=y, CONFIG_HZ_1000=y, CONFIG_NO_HZ_IDLE=y (NO_HZ_FULL off), CONFIG_X86_NATIVE_CPU=y, CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE=y, BBR (CONFIG_DEFAULT_TCP_CONG="bbr"), MGLRU enabled, ZRAM with lz4 (ZSWAP off), THP madvise, CONFIG_SCHED_CORE=y / CONFIG_SCHED_AUTOGROUP=y, CONFIG_CGROUP_DMEM=y, CONFIG_IO_URING_ZCRX=y, CONFIG_MODULE_SIG_FORCE=y (SHA-256), CONFIG_BPF_LSM=y, CONFIG_STRICT_DEVMEM=y, kexec compiled out, CONFIG_DEBUG_INFO_NONE=y and the same ftrace / kprobes / ORC diagnostics set.

๐Ÿ–ฅ๏ธ AMD Ryzen 9 5950X โ€” Summary Tables

Config: config-7.3.6-ryzen9-debian13.

๐Ÿง  CPU, Architecture & Topology

Subsystem / Option Kconfig Option Engineering Rationale
Native CPU Optimization CONFIG_X86_NATIVE_CPU=y + KCFLAGS="-march=znver3 -O2 -pipe" Two-layer native optimization: X86_NATIVE_CPU enables Kconfig host ISA feature detection; -march=znver3 directs GCC to emit Zen 3-specific instructions (AVX2/BMI2/VAES).
CPU Core Sizing CONFIG_NR_CPUS=32 Hardcapped to 32 exact threads matching Ryzen 9 5950X, eliminating virtual CPU overhead.
CPU Frequency Scaling amd-pstate EPP (CONFIG_X86_AMD_PSTATE=y + CONFIG_CPU_FREQ_GOV_POWERSAVE=y) Hardware CPPC microsecond-level core frequency and voltage scaling in active EPP mode with powersave and performance governors (# CONFIG_X86_AMD_PSTATE_UT is not set).
NUMA Topology CONFIG_NUMA=y / # CONFIG_NUMA_BALANCING is not set NUMA topology retained (AMD_NUMA=y, X86_64_ACPI_NUMA=y); automatic scan balancing disabled to eliminate overhead on single-node Ryzen systems.
Core Scheduling CONFIG_SCHED_CORE=y SMT thread isolation and core scheduling for security and hyperthreading gaming performance.

โฑ๏ธ Scheduler, Latency & Ticks

Subsystem / Option Kconfig Option Engineering Rationale
Scheduler & Preemption CONFIG_PREEMPT_BUILD=y / CONFIG_PREEMPT=y / CONFIG_PREEMPT_DYNAMIC=y Fully preemptible kernel with dynamic preemption switching for minimal input processing and audio latency.
Timer Frequency 1000 Hz (CONFIG_HZ_1000=y, CONFIG_HZ=1000) High-resolution tick frequency for desktop responsiveness and precise frame pacing.
Tickless Kernel CONFIG_NO_HZ_IDLE=y Idle-tickless mode: suppresses timer interrupts on idle CPUs, reducing wakeup overhead.
EEVDF Core Scheduling CONFIG_SCHED_CORE=y & CONFIG_SCHED_AUTOGROUP=y High-responsiveness EEVDF scheduler with SMT core isolation and per-TTY autogrouping. sched_ext (SCX) and BTF are intentionally disabled to guarantee 100% clean, hang-free initramfs booting on Debian 13.

๐ŸŽฎ GPU RDNA 2, Display & Compute (ROCm)

Subsystem / Option Kconfig Option Engineering Rationale
GPU Driver Stack CONFIG_DRM_AMDGPU=m AMDGPU driver as loadable kernel module. Native RDNA 2 support, 16 GB Resizable BAR (ReBAR), and unlocked OverDrive power limits.
AMD Display Core CONFIG_DRM_AMD_DC=y / CONFIG_DRM_AMD_DC_FP=y AMD Display Core with fast-path support for DCN 3.0 (Navi 21 / RX 6950 XT).
VRAM Cgroup Management CONFIG_CGROUP_DMEM=y cgroups v2 Device Memory controller for dynamic VRAM resource allocation and priority control on amdgpu.
USB-C & DisplayPort AltMode CONFIG_TYPEC=y / CONFIG_TYPEC_DP_ALTMODE=m Built-in USB Type-C connector subsystem with UCSI ACPI and DisplayPort Alternate Mode for USB-C monitors connected directly to the RX 6950 XT.
Heterogeneous Compute CONFIG_HSA_AMD=y / CONFIG_HSA_AMD_SVM=y / CONFIG_DEVICE_PRIVATE=y / CONFIG_DRM_AMDGPU_USERPTR=y Native AMD KFD driver with Shared Virtual Memory (SVM) for ROCm, Vulkan, OpenCL 3.0, and direct GPU user-pointer memory access.
Graphical Kernel Panic CONFIG_DRM_PANIC=y Renders kernel panic diagnostics directly over amdgpu DRM output (CONFIG_DRM_PANIC_SCREEN="user").
Legacy Radeon Removal # CONFIG_DRM_RADEON is not set Legacy Radeon DRM driver disabled to ensure exclusive execution of the amdgpu driver stack.

๐ŸŒ Networking, Sockets & Congestion Control

Subsystem / Option Kconfig Option Engineering Rationale
TCP Congestion TCP BBR (CONFIG_DEFAULT_TCP_CONG="bbr") Bottleneck bandwidth RTT pacing algorithm to prevent bufferbloat and latency spikes.
Targeted Network Stack CONFIG_IGB=m / CONFIG_IXGBE=m / CONFIG_IWLWIFI=m Targeted network stack: I211 Gigabit (igb), 10GbE (ixgbe + libie_adminq / libie_fwlog), Realtek r8169, and AX210 Wi-Fi 6E (iwlwifi / btusb).
Async Socket I/O CONFIG_IO_URING_ZCRX=y Zero-copy packet reception for ultra-fast network socket I/O via io_uring.

๐Ÿ’พ Memory Management, ZRAM & Storage

Subsystem / Option Kconfig Option Engineering Rationale
Multi-Gen LRU (MGLRU) CONFIG_LRU_GEN=y / CONFIG_LRU_GEN_ENABLED=y Modern multi-generational LRU page reclamation with MMU walks (CONFIG_LRU_GEN_WALKS_MMU=y), minimizing page thrashing and memory pressure latency.
ZRAM Devices CONFIG_ZRAM=y (CONFIG_ZRAM_DEF_COMP="lz4") Compressed RAM block devices with LZ4 default compression for high-performance dynamic swap (# CONFIG_ZSWAP is not set).
Loop & RAM Disk CONFIG_BLK_DEV_LOOP=m / CONFIG_BLK_DEV_RAM=m Support for mounting ISO/disk images (loop) and RAM disk block devices.
Hugepages & Compaction THP MADVISE (CONFIG_TRANSPARENT_HUGEPAGE_MADVISE=y) Transparent Hugepages default set to madvise with memory compaction to avoid bloat while enabling opt-in 2MB hugepages.

๐Ÿ”Š Audio, Multimedia & Gaming Input

Subsystem / Option Kconfig Option Engineering Rationale
Hi-Res Audio Driver CONFIG_SND_HDA_CODEC_CA0132=m Dedicated CA0132 Sound Core3D ALSA codec module with DSP support for Sound Blaster Z 32-bit / 192 kHz audio.
PlayStation Controllers CONFIG_HID_PLAYSTATION=y / CONFIG_PLAYSTATION_FF=y Built-in Sony DualSense (PS5) & DualShock 4 (PS4) controller support with haptic Force Feedback over USB and Bluetooth.
Virtual User Input CONFIG_INPUT_UINPUT=m User-space /dev/uinput interface for input emulation, virtual gamepads, and software remapping (Steam Input).
USB Webcams & Video CONFIG_USB_VIDEO_CLASS=m / CONFIG_VIDEOBUF2_V4L2=m Video4Linux2 pipeline and UVC driver for USB webcams with physical evdev button support.
Legacy USB Webcams (GSPCA) CONFIG_USB_GSPCA=m / CONFIG_USB_GSPCA_OV519=m GSPCA framework with OV519 subdriver for legacy Sony PlayStation 2 EyeToy (OV7630/OV7648) USB webcam support.
Legacy USB Controllers CONFIG_USB_EHCI_HCD=m / OHCI / UHCI USB 2.0 and 1.1 host controller drivers for maximum legacy USB peripheral compatibility.

๐Ÿ” Security, Integrity & Diagnostics

Subsystem / Option Kconfig Option Engineering Rationale
CPU Security Mitigations CONFIG_CPU_MITIGATIONS=y Full AMD Zen 3 mitigation suite active: Spectre v1/v2, Retpoline, SRSO, Rethunk, SSB, IBPB entry, SLS, and TSA (KPTI disabled since AMD Zen 3 is unaffected by Meltdown).
User Shadow Stack (CET) CONFIG_X86_CET=y / CONFIG_X86_USER_SHADOW_STACK=y Hardware CET Shadow Stack (CET_SS) for user-space ROP protection on AMD Zen 3 (# CONFIG_X86_KERNEL_IBT is not set, as Zen 3 lacks IBT).
eBPF Security (LSM) CONFIG_BPF_LSM=y / CONFIG_BPF_JIT_ALWAYS_ON=y In-kernel eBPF Linux Security Module with eBPF JIT permanently enabled and unprivileged BPF disabled by default (CONFIG_BPF_UNPRIV_DEFAULT_OFF=y).
Stack Unwinder & Tracing UNWINDER_ORC=y / CONFIG_DEBUG_INFO_NONE=y Low-overhead ORC call stack unwinding with stripped debug symbols for instant initramfs boot times and zero hang risk.
Module Cleanup (95.2%) 193 Essential Modules (=m) / 1,967 Built-in (=y) Massive 95.2% reduction in loadable modules (4,051 โ†’ 193) and 25.8% reduction in built-in options (2,651 โ†’ 1,967) vs Debian 13 stock (6.12.118+deb13-amd64). Removed unused Intel/NVIDIA GPUs, unused network vendors, and TV/DVB cards.
Signed Modules & Secure Boot CONFIG_MODULE_SIG_FORCE=y / CONFIG_MODULE_SIG_ALL=y Mandatory cryptographic signature validation for loadable modules (SHA-256) and full UEFI Secure Boot compatibility via MOK.

๐Ÿ–ฅ๏ธ AMD Ryzen 9 5950X โ€” Detailed Breakdown

๐Ÿงน 1. Hardware Trimming & Bloat Elimination

  • Non-AMD CPU Support Removed: Disabled Intel, Hygon, Centaur, and Zhaoxin CPU support (# CONFIG_CPU_SUP_INTEL is not set, etc.) to streamline kernel execution paths.
  • Unused GPU Drivers Removed: Disabled Intel i915 (# CONFIG_DRM_I915 is not set) and Nvidia Nouveau (# CONFIG_DRM_NOUVEAU is not set).
  • Legacy AMDGPU Generations Removed: Disabled legacy Southern Islands (SI) and Sea Islands (CIK) support (# CONFIG_DRM_AMDGPU_SI is not set, # CONFIG_DRM_AMDGPU_CIK is not set), eliminating si_support / cik_support parameter warnings in dmesg.
  • Targeted Wireless & Network Drivers: Kept iwlwifi (Intel AX210), igb (Intel I211 Gigabit) and ixgbe (Intel 10GbE), plus the Realtek r8169 Ethernet module (CONFIG_R8169=m); Broadcom, Atheros, Ralink and Realtek wireless drivers are stripped.
  • AMD IOMMU Isolation: Native AMD Vi IOMMU driver enabled (CONFIG_AMD_IOMMU=y), while disabling unused Intel DMAR overhead (# CONFIG_INTEL_IOMMU is not set).
  • Legacy Radeon Driver Disabled: Legacy Radeon DRM driver disabled (# CONFIG_DRM_RADEON is not set), ensuring exclusive amdgpu driver stack execution.
  • Legacy Controllers & Buses: Removed floppy (# CONFIG_BLK_DEV_FD is not set), parallel ports (# CONFIG_PARPORT is not set), PCMCIA/CardBus (# CONFIG_PCCARD is not set), ISDN, and analog modems, while keeping FireWire (IEEE1394) as modules (CONFIG_FIREWIRE=m, CONFIG_FIREWIRE_OHCI=m, CONFIG_FIREWIRE_SBP2=m) and retaining legacy USB host controllers (CONFIG_USB_EHCI_HCD=m, CONFIG_USB_OHCI_HCD=m, CONFIG_USB_UHCI_HCD=m) for full legacy USB 1.1/2.0 device compatibility.
  • DVB & TV Capture Removal: Disabled DVB digital/analog TV, SDR radio, and PCI capture cards (# CONFIG_MEDIA_DIGITAL_TV_SUPPORT is not set, # CONFIG_MEDIA_PCI_SUPPORT is not set), while preserving USB webcam support (CONFIG_USB_VIDEO_CLASS=m, CONFIG_UVC_COMMON=m, VIDEOBUF2) and legacy GSPCA webcams (CONFIG_USB_GSPCA=m, CONFIG_USB_GSPCA_OV519=m for Sony PS2 EyeToy).

โฑ๏ธ 2. Low-Latency Tuning (Gaming & High-Res Audio)

  • Full Preemption: Full preemptible kernel (CONFIG_PREEMPT_BUILD=y, CONFIG_PREEMPT=y) for immediate task response and minimal audio/input latency.
  • Timer Frequency (1000 Hz): Set timer frequency to 1000 Hz (CONFIG_HZ_1000=y, CONFIG_HZ=1000) for precise event timing.
  • Tickless Idle (NO_HZ_IDLE): Idle-tickless kernel (CONFIG_NO_HZ_IDLE=y) suppressing timer interrupts on idle CPUs, reducing wakeup overhead. Full tickless mode (NO_HZ_FULL) is intentionally not enabled to avoid scheduler complexity on this configuration.
  • Hi-Res Audio Driver: Dedicated Sound Blaster Z ALSA driver (snd_ca0132 / Sound Core3D) configured for 32-bit / 192 kHz low-jitter audio.
  • PlayStation DualSense & DualShock 4: Built-in Sony PlayStation HID driver (CONFIG_HID_PLAYSTATION=y, CONFIG_PLAYSTATION_FF=y) with full haptic Force Feedback for PS4/PS5 gamepads over USB and Bluetooth.
  • Virtual User Input (uinput): Enabled CONFIG_INPUT_UINPUT=m for user-space input emulation (Steam Input, virtual gamepads, software controller remapping).
  • Legacy USB Webcam (GSPCA/OV519): Enabled CONFIG_USB_GSPCA=m and CONFIG_USB_GSPCA_OV519=m for Sony PlayStation 2 EyeToy (OV7630/OV7648 sensor) support via the Video4Linux2 GSPCA framework.

๐Ÿง  3. CPU Optimizations (AMD Ryzen 9 5950X โ€” 16C / 32T)

  • Native Architecture Compilation โ€” two-layer optimization:
    • CONFIG_X86_NATIVE_CPU=y โ€” instructs Kconfig to probe the build host CPU and enable matching kernel features (e.g., VAES, AVX2 crypto paths, AMD-specific code paths).
    • KCFLAGS="-march=znver3 -O2 -pipe" (with KCPPFLAGS="-march=znver3 -mtune=znver3") โ€” instructs GCC to emit Zen 3-specific instructions throughout the build. Set in the CI workflow (make bindeb-pkg KCFLAGS="-march=znver3 -O2 -pipe" KCPPFLAGS="-march=znver3 -mtune=znver3").
    • Both flags are complementary and required for full native optimization; neither alone is sufficient.
  • Core Scheduling: Hardware SMT core scheduling enabled (CONFIG_SCHED_CORE=y) for thread isolation, security, and hyperthreading gaming performance.
  • Sized Core Count: Sized to CONFIG_NR_CPUS=32 matching exact hardware threads, removing virtual CPU overhead.
  • AMD P-State Driver: Native amd-pstate CPPC driver in active EPP mode (CONFIG_X86_AMD_PSTATE=y, CONFIG_X86_AMD_PSTATE_DEFAULT_MODE=3) with CONFIG_CPU_FREQ_GOV_POWERSAVE=y and CONFIG_CPU_FREQ_GOV_PERFORMANCE=y for full dynamic EPP scaling (# CONFIG_X86_AMD_PSTATE_UT is not set in production).
  • NUMA Infrastructure: NUMA support is retained (CONFIG_NUMA=y, CONFIG_AMD_NUMA=y, CONFIG_X86_64_ACPI_NUMA=y) for correct hardware topology detection. Automatic NUMA balancing (# CONFIG_NUMA_BALANCING is not set) is disabled to eliminate background memory scan overhead on this single-node Ryzen system.
  • High-Responsiveness EEVDF Scheduler: Official Linux mainline EEVDF CPU scheduler tuned with 1000 Hz tick rate (CONFIG_HZ_1000=y), PREEMPT_DYNAMIC=y, and interactive autogrouping (CONFIG_SCHED_AUTOGROUP=y). Note: sched_ext (SCX) and heavy BTF typeinfo are intentionally omitted (CONFIG_DEBUG_INFO_NONE=y) in production to completely eliminate initramfs hangs and boot stalls in Debian 13.

๐ŸŽฎ 4. GPU & Display Core (Radeon RX 6950 XT / Navi 21)

  • AMDGPU as Module: CONFIG_DRM_AMDGPU=m โ€” the AMDGPU driver is a loadable kernel module, not built into the kernel image. This is the standard Debian/upstream configuration for GPU drivers.
  • Display Core (DCN 3.0): AMD Display Core enabled (CONFIG_DRM_AMD_DC=y) with fast-path support (CONFIG_DRM_AMD_DC_FP=y) and Secure Display (CONFIG_DRM_AMD_SECURE_DISPLAY=y), optimized for Navi 21 / RDNA 2 architecture (DCN 3.0). APU-only blocks (# CONFIG_DRM_AMD_ISP is not set, # CONFIG_DRM_AMD_ACP is not set) and # CONFIG_DRM_AMDGPU_WERROR is not set are disabled.
  • USB Type-C & DisplayPort AltMode: Native Type-C subsystem (CONFIG_TYPEC=y, CONFIG_USB_COMMON=y) with UCSI ACPI driver (CONFIG_TYPEC_UCSI=y, CONFIG_UCSI_ACPI=y) and DisplayPort Alternate Mode module (CONFIG_TYPEC_DP_ALTMODE=m) enabling direct USB-C monitor connectivity with zero video delay on boot.
  • Heterogeneous Compute (ROCm / KFD + SVM): AMD HSA kernel driver (CONFIG_HSA_AMD=y) with Shared Virtual Memory (CONFIG_DEVICE_PRIVATE=y, CONFIG_HSA_AMD_SVM=y) enabled for ROCm, Vulkan, and OpenCL compute.
  • Direct GPU Memory Access: CONFIG_DRM_AMDGPU_USERPTR=y allowing GPU direct access to user space memory pointers.
  • Graphical Kernel Panic: CONFIG_DRM_PANIC=y (CONFIG_DRM_PANIC_SCREEN="user") renders panic output directly on DRM displays.
  • Resizable BAR & OverDrive: Full 16 GB VRAM BAR access and OverDrive power limit unlocking (amdgpu.ppfeaturemask=0xffffffff).
  • VRAM Cgroup Management (CONFIG_CGROUP_DMEM=y): Enabled cgroups v2 Device Memory controller for amdgpu, allowing dynamic VRAM priority allocation (dmemcg-booster) to eliminate stutter under heavy VRAM pressure.

๐ŸŒ 5. Networking & Congestion Control

  • TCP BBR Default: Configured with TCP BBR as the default congestion control algorithm (CONFIG_DEFAULT_TCP_CONG="bbr", CONFIG_DEFAULT_BBR=y). Eliminates bufferbloat and maximizes bandwidth throughput.
  • Targeted Network Stack: Includes Intel I211 (igb), Intel 10GbE (ixgbe), Realtek r8169, and Intel AX210 Wi-Fi 6E / Bluetooth 5.3 (iwlwifi / btusb).
  • eBPF JIT & LSM: JIT compiler permanently enabled (CONFIG_BPF_JIT=y, CONFIG_BPF_JIT_DEFAULT_ON=y, CONFIG_BPF_JIT_ALWAYS_ON=y) alongside eBPF Security Module (CONFIG_BPF_LSM=y) and unprivileged BPF disabled by default (CONFIG_BPF_UNPRIV_DEFAULT_OFF=y) for zero-overhead security hooks.
  • IO_URING_ZCRX: Zero-copy network reception (CONFIG_IO_URING_ZCRX=y) enabled for ultra-fast socket I/O.

๐Ÿ’พ 6. Memory Tuning (MGLRU, ZRAM & Loop)

  • Multi-Gen LRU (MGLRU): Multi-Generational Least Recently Used page reclamation (CONFIG_LRU_GEN=y, CONFIG_LRU_GEN_ENABLED=y, CONFIG_LRU_GEN_WALKS_MMU=y). Replaces legacy two-tier page reclamation with high-performance generational aging and page-table scanning, drastically reducing reclaim latency and memory thrashing under heavy loads.
  • ZRAM Compressed RAM Devices: Built-in CONFIG_ZRAM=y with LZ4 default compression (CONFIG_ZRAM_DEF_COMP="lz4") for compressed swap/RAM block devices. Zswap is intentionally disabled (# CONFIG_ZSWAP is not set).
  • Loop & RAM Disk Devices: CONFIG_BLK_DEV_LOOP=m and CONFIG_BLK_DEV_RAM=m enabled for mounting disk images and loopback/RAM devices.
  • Transparent Hugepages (madvise): Set THP default to madvise (CONFIG_TRANSPARENT_HUGEPAGE_MADVISE=y) alongside memory compaction (CONFIG_COMPACTION=y) to prevent system-wide memory bloat while enabling 2MB hugepages for opt-in applications (games, emulators, KVM).

๐Ÿ” 7. CPU Security & Mitigations (Zen 3 / x86_64)

This kernel is not a "performance at all costs" build โ€” all applicable AMD Zen 3 CPU security mitigations are retained:

  • CPU Mitigations Enabled: Full AMD Zen 3 mitigation suite active (CONFIG_CPU_MITIGATIONS=y), including Spectre v1/v2, Retpoline (CONFIG_MITIGATION_RETPOLINE=y), Rethunk (CONFIG_MITIGATION_RETHUNK=y), SRSO (CONFIG_MITIGATION_SRSO=y), SSB (CONFIG_MITIGATION_SSB=y), IBPB entry (CONFIG_MITIGATION_IBPB_ENTRY=y), SLS (CONFIG_MITIGATION_SLS=y), and TSA (CONFIG_MITIGATION_TSA=y).
  • User Shadow Stack (CET): Hardware-enforced Shadow Stack enabled (CONFIG_X86_CET=y, CONFIG_X86_USER_SHADOW_STACK=y) for user-space ROP protection (CET_SS verified in silicon on Ryzen 9 5950X; # CONFIG_X86_KERNEL_IBT is not set since Zen 3 lacks IBT).
  • No Unnecessary Meltdown KPTI Overhead on Zen 3: # CONFIG_MITIGATION_PAGE_TABLE_ISOLATION is not set on the Ryzen 9 config (AMD Zen 3 is architecturally unaffected by Meltdown), whereas KPTI remains enabled (CONFIG_MITIGATION_PAGE_TABLE_ISOLATION=y) on the Intel Haswell ThinkPad T440p config.
  • Kernel Hardening: kexec compiled out (# CONFIG_KEXEC is not set), mandatory signed modules (CONFIG_MODULE_SIG_FORCE=y), strict /dev/mem (CONFIG_STRICT_DEVMEM=y, CONFIG_IO_STRICT_DEVMEM=y), and eBPF LSM (CONFIG_BPF_LSM=y, CONFIG_BPF_UNPRIV_DEFAULT_OFF=y).

The security philosophy is hardware/driver bloat removal โ€” not security regression.

๐Ÿ”ฌ 8. Diagnostics, Tracing & Observability

CONFIG_DEBUG_KERNEL=y is set intentionally. This enables the diagnostic/tracing infrastructure without heavyweight runtime overhead โ€” KASAN, KFENCE, SLUB_DEBUG, DEBUG_VM, and lock validators are not set.

The project removes unnecessary runtime hardware support while deliberately retaining the infrastructure needed to diagnose and profile the system (ftrace, perf, blktrace, ORC unwinding, and hung-task/lockup detection):

๐Ÿ” Kernel Debug & Fast Initramfs Boot
CONFIG_DEBUG_KERNEL=y
CONFIG_DEBUG_MISC=y
CONFIG_DEBUG_INFO_NONE=y
CONFIG_DYNAMIC_DEBUG=y
CONFIG_DYNAMIC_DEBUG_CORE=y
CONFIG_BLK_DEV_IO_TRACE=y

CONFIG_DEBUG_INFO_NONE=y strips debug symbols and heavy BTF typeinfo from loadable modules, avoiding initramfs parsing stalls and keeping boot times fast on Debian 13.

๐Ÿ“Š Scheduler Diagnostics
CONFIG_SCHED_INFO=y
CONFIG_SCHEDSTATS=y
CONFIG_LOCK_DEBUGGING_SUPPORT=y

Heavy lock validation facilities are disabled:

# CONFIG_PROVE_LOCKING is not set
# CONFIG_LOCK_STAT is not set
# CONFIG_DEBUG_SPINLOCK is not set
# CONFIG_DEBUG_MUTEXES is not set
# CONFIG_DEBUG_ATOMIC_SLEEP is not set
๐Ÿ”Ž Ftrace & Event Probes
CONFIG_FTRACE=y
CONFIG_FUNCTION_TRACER=y
CONFIG_FUNCTION_GRAPH_TRACER=y
CONFIG_DYNAMIC_FTRACE=y
CONFIG_DYNAMIC_FTRACE_WITH_REGS=y
CONFIG_DYNAMIC_FTRACE_WITH_DIRECT_CALLS=y
CONFIG_DYNAMIC_FTRACE_WITH_ARGS=y
CONFIG_STACK_TRACER=y
CONFIG_FTRACE_SYSCALLS=y
CONFIG_KPROBE_EVENTS=y
CONFIG_UPROBE_EVENTS=y
CONFIG_BPF_EVENTS=y
CONFIG_DYNAMIC_EVENTS=y
๐Ÿงญ ORC Unwinder & ๐Ÿšจ Hung Task / Lockup Detection
CONFIG_UNWINDER_ORC=y
# CONFIG_UNWINDER_FRAME_POINTER is not set
CONFIG_LOCKUP_DETECTOR=y
CONFIG_SOFTLOCKUP_DETECTOR=y
CONFIG_HARDLOCKUP_DETECTOR=y
CONFIG_DETECT_HUNG_TASK=y
CONFIG_DEFAULT_HUNG_TASK_TIMEOUT=120

๐Ÿ’ป Lenovo ThinkPad T440p โ€” Kernel Configuration

Config: config-6.19.14-t440p-debian13.

Element Value Engineering Rationale
Kernel Version 6.19.14-t440p Custom Linux kernel tuned for mobile Haswell architecture (configs/stable/config-6.19.14-t440p-debian13; 7.3.x T440p configs live in configs/archive/). Built with KCFLAGS="-march=haswell -mtune=haswell -O2 -pipe".
Target CPU Intel Core i7-4700MQ 4 cores / 8 threads (Haswell, 22nm, TDP 47W).
CPU Core Sizing CONFIG_NR_CPUS=8 Hardcapped to 8 exact threads, removing virtual CPU bitmap overhead.
Timer Tick Rate 1000 Hz (CONFIG_HZ_1000=y, CONFIG_HZ=1000) High-resolution tick frequency matching the low-latency desktop profile (CONFIG_NO_HZ_IDLE=y allows idle cores to enter deep sleep states).
Preemption Model CONFIG_PREEMPT_DYNAMIC=y Low-latency dynamic preemption for smooth desktop experience.
Integrated GPU CONFIG_DRM_I915=m Intel HD Graphics 4600 driver module (exclusive; AMD/Nvidia removed).
PCIe ASPM Policy CONFIG_PCIEASPM_DEFAULT=y BIOS-guided ASPM policy; prevents PCIe link timeouts (error -110) on Sierra Wireless EM7345 4G LTE modem and xHCI controllers.
WWAN 4G LTE Modem Sierra Wireless EM7345 (CONFIG_USB_NET_CDC_MBIM=m) Native mobile broadband support for internal M.2 Sierra Wireless EM7345 LTE modem (1199:a001) via CDC MBIM/NCM networking protocol.
USB xHCI Roles CONFIG_USB_ROLE_SWITCH=m / CONFIG_USB_ROLES_INTEL_XHCI=m Hardware-accurate USB 3.0 role switching for Intel Lynx Point chipset.
Card Reader & Media CONFIG_MMC=y / CONFIG_MMC_SDHCI_PCI=y / CONFIG_MEMSTICK=y Native Realtek/SDHCI PCI bus card reader and combo media stick support.
Touchpad & TrackPoint CONFIG_RMI4_SMB=m / CONFIG_RMI4_F03=y Native Synaptics RMI4 over SMBus with TrackPoint guest pass-through, modern multi-touch, and hardware button support (F11/F12/F30).
Module Cleanup (93.8%) 251 Essential Modules (=m) / 1,878 Built-in (=y) Massive 93.8% reduction in loadable modules (4,051 โ†’ 251) and 29.2% reduction in built-in options (2,651 โ†’ 1,878) vs Debian 13 stock (6.12.118+deb13-amd64). Stripped non-Intel GPUs, most foreign wireless cards (USB ATH9K_HTC is kept) and server controllers.
Initramfs Safety CONFIG_DEBUG_INFO_NONE=y Stripped debug/BTF symbols to eliminate boot stalls and initramfs deadlocks.
CPU Frequency & Idle CONFIG_X86_INTEL_PSTATE=y / CONFIG_INTEL_IDLE=y / CONFIG_CPU_IDLE_GOV_TEO=y intel_pstate built in (# CONFIG_X86_ACPI_CPUFREQ is not set); on this machine it runs in passive mode (reported as intel_cpufreq) with the schedutil governor; teo is the only cpuidle governor built.
Power & Thermal CONFIG_THINKPAD_ACPI=m / CONFIG_INTEL_RAPL=m / CONFIG_X86_PKG_TEMP_THERMAL=m / CONFIG_INTEL_POWERCLAMP=m ThinkPad ACPI extras, RAPL power capping, package thermal and powerclamp; CONFIG_SENSORS_HDAPS=m and CONFIG_THINKPAD_LMI=m also built.
Single-node / No IOMMU / No Type-C # CONFIG_NUMA / # CONFIG_INTEL_IOMMU / # CONFIG_TYPEC not set Features that a single-socket Haswell laptop without USB-C ports does not use.
Storage & Optical CONFIG_SATA_AHCI=y / CONFIG_BLK_DEV_SR=m / CONFIG_UDF_FS=m / CONFIG_ISO9660_FS=m AHCI built in for SATA boot; optical drive (sr_mod) and disc filesystems (UDF / ISO 9660) as modules; NVMe kept as a module (CONFIG_BLK_DEV_NVME=m).
Wired, Wi-Fi & Bluetooth CONFIG_E1000E=m / CONFIG_IWLWIFI=m / CONFIG_IWLMVM=m / CONFIG_BT_HCIBTUSB=m Intel I217-LM Gigabit (e1000e), Intel Wireless 7260 through iwlmvm (# CONFIG_IWLDVM is not set) and the USB Intel Bluetooth controller (btusb + btintel).
USB Network Adapters CONFIG_USB_NET_AX88179_178A=m / CONFIG_USB_RTL8153_ECM=m / CONFIG_USB_NET_QMI_WWAN=m / CONFIG_USB_SIERRA_NET=m USB Ethernet dongles plus QMI / Sierra WWAN fallbacks next to the MBIM path; CONFIG_USB_SERIAL_SIERRAWIRELESS=m and CONFIG_USB_SERIAL_OPTION=m cover AT-command modes.
Audio CONFIG_SND_HDA_INTEL=m / CONFIG_SND_HDA_CODEC_REALTEK=m / CONFIG_SND_HDA_CODEC_HDMI=m HDA PCH controller with the Realtek codec driver plus HDMI audio on the CPU-integrated controller; Sound Blaster CA0132 is not built.
Webcams CONFIG_USB_VIDEO_CLASS=m / CONFIG_USB_GSPCA=m / CONFIG_USB_GSPCA_OV519=m UVC plus the legacy GSPCA OV519 driver, same as the Ryzen config.
Virtualization CONFIG_KVM_INTEL=m KVM for Intel VT-x; KVM_AMD is not built and # CONFIG_VFIO is not set.
CPU Security Mitigations CONFIG_MITIGATION_PAGE_TABLE_ISOLATION=y / IBRS_ENTRY / RETPOLINE / SLS / MDS / TAA / L1TF / MMIO_STALE_DATA / SRBDS / GDS / RFDS / SPECTRE_BHI / VMSCAPE Intel-side mitigation set enabled, including KPTI. # CONFIG_MITIGATION_RETHUNK and # CONFIG_MITIGATION_RETBLEED are not set in this config.
No CET Shadow Stack # CONFIG_X86_USER_SHADOW_STACK is not set Haswell predates Control-flow Enforcement Technology, so the user shadow stack is disabled (it is enabled on the Zen 3 config).
Hardening (shared) CONFIG_MODULE_SIG_FORCE=y / # CONFIG_KEXEC is not set / CONFIG_STRICT_DEVMEM=y / CONFIG_BPF_LSM=y Mandatory signed modules (SHA-256), kexec compiled out, strict /dev/mem and eBPF LSM, identical to the Ryzen build.

๐Ÿ—๏ธ CI/CD Pipeline & Build Environment

flowchart TD
    subgraph Job1["๐ŸŽฏ 1. Resolve Targets & Verify Configs (ubuntu-latest)"]
        A0["Target Selection (Ryzen 9 / T440p / Both)<br/>Resolve configs/stable, kernel versions & tarball URLs"]
    end

    subgraph Job2["๐Ÿง 2. Matrix Build in Parallel (debian:trixie Container)"]
        direction TB
        subgraph MatrixRyzen["๐Ÿ–ฅ๏ธ Build: AMD Ryzen 9 (7.3.6-ryzen9)"]
            B1_R["๐Ÿ› ๏ธ Toolchain gcc-14 + Rust + debian:trixie"]
            B2_R["๐Ÿ“ฅ Download Kernel Source & Apply .config + olddefconfig"]
            B3_R["๐Ÿ”‘ Inject MOK Key (certs/MOK-signing.pem)"]
            B4_R["๐Ÿง make bindeb-pkg<br/>KCFLAGS='-march=znver3 -O2 -pipe'"]
            B5_R["๐Ÿ”’ Clean MOK Key & Upload Artifacts"]
            B1_R --> B2_R --> B3_R --> B4_R --> B5_R
        end
        subgraph MatrixT440p["๐Ÿ’ป Build: Lenovo ThinkPad T440p (6.19.14-t440p)"]
            B1_L["๐Ÿ› ๏ธ Toolchain gcc-14 + Rust + debian:trixie"]
            B2_L["๐Ÿ“ฅ Download Kernel Source & Apply .config + olddefconfig"]
            B3_L["๐Ÿ”‘ Inject MOK Key (certs/MOK-signing.pem)"]
            B4_L["๐Ÿง make bindeb-pkg<br/>KCFLAGS='-march=haswell -mtune=haswell -O2 -pipe'"]
            B5_L["๐Ÿ”’ Clean MOK Key & Upload Artifacts"]
            B1_L --> B2_L --> B3_L --> B4_L --> B5_L
        end
    end

    subgraph Job3["๐Ÿš€ 3. Publish Release & Notify (ubuntu-latest)"]
        direction TB
        C1["๐Ÿ“ฅ Download & Merge Artifacts<br/>(.deb, .buildinfo, .changes, logs)"]
        C2["๐Ÿ“ Generate Unified Release Notes + SHA-256"]
        C3["๐Ÿท๏ธ Publish GitHub Release (tag: kernel-RUN_NUMBER)"]
        C4["๐Ÿ“ฒ Send Telegram Notification (Status / Error Logs)"]
        C1 --> C2 --> C3 --> C4
    end

    subgraph Deploy["๐Ÿ’ป Deployment & Installation"]
        E1["๐Ÿ–ฅ๏ธ Ryzen 9 Workstation<br/>sudo apt install ./linux-*-ryzen9*.deb"]
        E2["๐Ÿ’ป ThinkPad T440p<br/>sudo apt install ./linux-*-t440p*.deb"]
    end

    A0 --> Job2
    B5_R -->|"compiled-kernel-artifacts-ryzen9"| C1
    B5_L -->|"compiled-kernel-artifacts-t440p"| C1
    C3 --> E1
    C3 --> E2

    style Job1 fill:#1a202c,stroke:#319795,color:#fff
    style Job2 fill:#1a202c,stroke:#2b6cb0,color:#fff
    style MatrixRyzen fill:#233044,stroke:#4299e1,color:#fff
    style MatrixT440p fill:#233044,stroke:#4299e1,color:#fff
    style Job3 fill:#1a202c,stroke:#805ad5,color:#fff
    style Deploy fill:#2d3748,stroke:#ed8936,color:#fff
    style E1 fill:#dd6b20,stroke:#ed8936,color:#fff
    style E2 fill:#dd6b20,stroke:#ed8936,color:#fff
Loading

๐Ÿง Kernel and Toolchain

Element AMD Ryzen 9 5950X Lenovo ThinkPad T440p
Kernel 7.3.6-ryzen9 6.19.14-t440p
Config configs/stable/config-7.3.6-ryzen9-debian13 configs/stable/config-6.19.14-t440p-debian13
Model SMP PREEMPT_DYNAMIC SMP PREEMPT_DYNAMIC
Base Distribution Debian 13 Debian 13
Compiler GCC 14.2.0 GCC 14.2.0
Target Architecture Zen 3 Haswell
KCFLAGS -march=znver3 -O2 -pipe -march=haswell -mtune=haswell -O2 -pipe
KCPPFLAGS -march=znver3 -mtune=znver3 -march=haswell -mtune=haswell
Grub / cmdline GRUB_CMDLINE_LINUX_DEFAULT="amdgpu.ppfeaturemask=0xffffffff efi=nodbx cpuidle.governor=teo" acpi_osi=Linux acpi_backlight=native (from /proc/cmdline)

๐Ÿ“ฆ Build Dependencies

sudo apt update && sudo apt install -y build-essential gcc-14 g++-14 fakeroot bc bison flex zstd \
  libdw-dev libelf-dev libssl-dev libncurses-dev dwarves debhelper rsync python3 ccache curl jq patch kmod perl mawk tar xz-utils git
Package Version
build-essential 12.12
gcc-14 14.2.0-19
g++-14 14.2.0-19
fakeroot 1.37.1.1-1
bc 1.07.1-4
bison 2:3.8.2+dfsg-1+b2
flex 2.6.4-8.2+b4
zstd 1.5.7+dfsg-1
libdw-dev 0.192-4
libelf-dev 0.192-4
libssl-dev 3.5.7-1~deb13u3
libncurses-dev 6.5+20250216-2
dwarves 1.30-1
debhelper 13.24.2
rsync 3.5.0+ds1-0+deb13u1
python3 3.13.5-1
curl 8.14.1-2+deb13u7
jq 1.7.1-6+deb13u4
patch 2.8-2
kmod 34.2-2
perl 5.40.1-6+deb13u1
mawk 1.3.4.20250131-1
tar 1.35+dfsg-3.1
xz-utils 5.8.1-1+deb13u2
git 1:2.47.3-0+deb13u1

๐Ÿ” Secure Boot & MOK (Machine Owner Key) Enrollment

Both custom kernel variants (-ryzen9 and -t440p) are cryptographically signed during the build pipeline (CONFIG_MODULE_SIG=y, CONFIG_MODULE_SIG_ALL=y, CONFIG_SYSTEM_TRUSTED_KEYRING=y). All compiled kernel modules (.ko) are signed with a private Machine Owner Key (MOK).

This ensures full compatibility with UEFI Secure Boot, preventing unsigned or tampered code from loading into kernel space while maintaining an unbroken chain of trust.

๐Ÿ”‘ MOK Key Artifacts Overview

File Format Purpose Required for Compilation? Enrolled in UEFI?
MOK.pem PEM (ASCII) Public certificate corresponding to the MOK signing key. No No
MOK-signing.pem PEM (ASCII) Private key used by scripts/sign-file during make bindeb-pkg. Yes (injected from GitHub Secret MOK_SIGNING_PEM) No
MOK.der DER (Binary) Public certificate in binary X.509 format for UEFI Shim / mokutil. No Yes (one-time enrollment)
MOK.priv PEM / Raw Local master private key used to generate the signing key pair. No (kept securely offline) No

๐Ÿ–ฅ๏ธ Step-by-Step: Enrolling the MOK Key in UEFI/BIOS with mokutil

To boot the signed kernel on any target machine (Workstation AMD Ryzen 9 or Lenovo ThinkPad T440p) with UEFI Secure Boot enabled, you must enroll the public certificate MOK.der once in the system's Shim MOK database.

Step 1: Copy MOK.der to the Target Machine

Transfer the MOK.der binary certificate to the target workstation or laptop (e.g., via SCP, USB flash drive, or local network share).

Step 2: Register the Key with mokutil

Execute the enrollment request command with root privileges:

sudo mokutil --import /path/to/MOK.der

You will be prompted to enter and confirm a one-time password (e.g., 12345678). This temporary password is only used once during the subsequent reboot to authorize the enrollment in firmware.

Step 3: Reboot the System

sudo reboot

Step 4: Confirm Enrollment in the Shim UEFI Screen (MOK Management)

When the machine reboots, the blue Shim UEFI key management screen will appear before GRUB:

  1. Press any key within 10 seconds to enter the MOK management menu.
  2. Select Enroll MOK and press Enter.
  3. Select View key 0 (optional) to review the certificate details (Issuer, Fingerprint, Validity).
  4. Select Continue.
  5. When prompted "Enroll the key(s)?", select Yes.
  6. Enter the temporary password you created in Step 2.
  7. Select Reboot.

The machine will reboot normally into your signed custom Linux kernel.


๐Ÿ” Verification Commands

After booting into Linux, you can verify that Secure Boot and the MOK key are active and functional:

# 1. Check Secure Boot status
$ mokutil --sb-state
SecureBoot enabled

# 2. Verify that your MOK certificate is enrolled
$ mokutil --test-key /path/to/MOK.der
/path/to/MOK.der is already enrolled

# 3. List all enrolled keys in the MOK database
$ mokutil --list-enrolled | grep -E "(Issuer|Subject|Serial)"

# 4. Check kernel dmesg for the loaded MOK certificate in the system keyring
$ sudo dmesg | grep -Ei "certificate|keyring|asymmetric"
[    0.912450] Loading compiled-in X.509 certificates
[    0.913012] Loaded X.509 cert 'Custom MOK: ...'

๐Ÿงช Tests & Verification

Three layers of checks: the packaged config (dpkg-deb), runtime checks after booting the kernel, and Secure Boot / MOK state.

Test Command ๐Ÿ–ฅ๏ธ Workstation ๐Ÿ’ป Laptop
Kernel version uname -a 7.3.6-ryzen9 โ€ฆ SMP PREEMPT_DYNAMIC 6.19.14-t440p โ€ฆ SMP PREEMPT_DYNAMIC
Preemption dmesg | grep -i preempt Dynamic Preempt: full Dynamic Preempt: full
Tickless grep NO_HZ /boot/config-$(uname -r) NO_HZ_IDLE=y, NO_HZ_FULL off NO_HZ_IDLE=y, NO_HZ_FULL off
CPU frequency driver cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver amd-pstate-epp intel_cpufreq (intel_pstate, passive) + schedutil
TCP congestion cat /proc/sys/net/ipv4/tcp_congestion_control bbr bbr
MGLRU cat /sys/kernel/mm/lru_gen/enabled 0x0007 0x0007
ZRAM grep -E "CONFIG_ZRAM($|_DEF_COMP)|CONFIG_ZSWAP" /boot/config-$(uname -r) ZRAM=y, lz4, ZSWAP off ZRAM=y, lz4, ZSWAP off
GPU driver dmesg | grep -i amdgpu / lsmod | grep i915 amdgpu, ReBAR BAR=16384M i915 module loaded
Secure Boot mokutil --sb-state SecureBoot enabled SecureBoot enabled
Packaged config dpkg-deb --fsys-tarfile โ€ฆ | tar -x ./boot/config-<ver> -O see below see below

Evidence level: both columns match output captured on the machines themselves. The laptop output (kernel 6.19.14-t440p, 2026-11-26) is shown in the laptop verification section.

๐Ÿ–ฅ๏ธ Workstation โ€” Post-Boot Verification

After booting into the custom kernel, verify active optimizations using the following commands.

Kernel version

$ uname -a
Linux ryzen 7.3.6-ryzen9 #ryzen9 SMP PREEMPT_DYNAMIC Mon Nov 23 17:22:13 CET 2026 x86_64 GNU/Linux

CPU topology

$ lscpu | grep -E "Model name|Thread\(s\) per core|CPU\(s\):"
CPU(s):                32
Thread(s) per core:    2
Model name:            AMD Ryzen 9 5950X 16-Core Processor

AMD P-State

$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver
amd-pstate-epp

Preemption

$ sudo dmesg | grep -i "preempt"
[    0.032333] Dynamic Preempt: full
[    0.032388] rcu: Preemptible hierarchical RCU implementation.

CONFIG_PREEMPT_BUILD=y, CONFIG_PREEMPT=y, CONFIG_PREEMPT_DYNAMIC=y

NO_HZ

$ grep -E "CONFIG_NO_HZ_(IDLE|FULL)" /boot/config-$(uname -r)
CONFIG_NO_HZ_IDLE=y
# CONFIG_NO_HZ_FULL is not set

RCU

$ grep -E "CONFIG_RCU_(BOOST|NOCB_CPU)" /boot/config-$(uname -r)

No output expected โ€” RCU_BOOST and RCU_NOCB_CPU are not set in this configuration.

TCP BBR

$ cat /proc/sys/net/ipv4/tcp_congestion_control
bbr

Multi-Gen LRU (MGLRU)

$ cat /sys/kernel/mm/lru_gen/enabled
0x0007

0x0007 indicates all components of Multi-Gen LRU are active (kswapd, direct reclaim, page-table walks).

Resizable BAR (ReBAR)

$ sudo dmesg | grep -i "Detected VRAM"
[drm] Detected VRAM RAM=16368M, BAR=16384M

Confirms full 16 GB Resizable BAR active on AMD Radeon RX 6950 XT.

ZRAM

$ grep -E "CONFIG_ZRAM($|_DEF_COMP)|CONFIG_ZSWAP" /boot/config-$(uname -r)
# CONFIG_ZSWAP is not set
CONFIG_ZRAM=y
CONFIG_ZRAM_DEF_COMP="lz4"

AMDGPU

$ sudo dmesg | grep -i amdgpu | head -30
[    0.000000] Command line: BOOT_IMAGE=/vmlinuz-7.3.6-ryzen9 root=/dev/mapper/debian_crypt-root ro amdgpu.ppfeaturemask=0xffffffff efi=nodbx cpuidle.governor=teo
[    0.009148] Kernel command line: BOOT_IMAGE=/vmlinuz-7.3.6-ryzen9 root=/dev/mapper/debian_crypt-root ro amdgpu.ppfeaturemask=0xffffffff efi=nodbx cpuidle.governor=teo
[    4.859534] amdgpu: unknown parameter 'si_support' ignored
[    4.860323] amdgpu: unknown parameter 'cik_support' ignored
[    4.866799] amdgpu: Virtual CRAT table created for CPU
[    4.867606] amdgpu: Topology: Add CPU node
[    4.868422] amdgpu: Overdrive is enabled, please disable it before reporting any bugs unrelated to overdrive.
[    4.869268] amdgpu 0000:0d:00.0: enabling device (0006 -> 0007)
[    4.870087] amdgpu 0000:0d:00.0: initializing kernel modesetting (SIENNA_CICHLID 0x1002:0x73A5 0x1002:0x0E3A 0xC0).
[    4.870907] amdgpu 0000:0d:00.0: register mmio base: 0xFC900000
[    4.871664] amdgpu 0000:0d:00.0: register mmio size: 1048576
[    4.876104] amdgpu 0000:0d:00.0: detected ip block number 0 <common_v1_0_0> (nv_common)
[    4.876820] amdgpu 0000:0d:00.0: detected ip block number 1 <gmc_v10_0_0> (gmc_v10_0)
[    4.877510] amdgpu 0000:0d:00.0: detected ip block number 2 <ih_v5_0_0> (navi10_ih)
[    4.878172] amdgpu 0000:0d:00.0: detected ip block number 3 <psp_v11_0_0> (psp)
[    4.878825] amdgpu 0000:0d:00.0: detected ip block number 4 <smu_v11_0_0> (smu)
[    4.879470] amdgpu 0000:0d:00.0: detected ip block number 5 <dce_v1_0_0> (dm)
[    4.880098] amdgpu 0000:0d:00.0: detected ip block number 6 <gfx_v10_0_0> (gfx_v10_0)
[    4.880712] amdgpu 0000:0d:00.0: detected ip block number 7 <sdma_v5_2_0> (sdma_v5_2)
[    4.881301] amdgpu 0000:0d:00.0: detected ip block number 8 <vcn_v3_0_0> (vcn_v3_0)
[    4.881866] amdgpu 0000:0d:00.0: detected ip block number 9 <jpeg_v3_0_0> (jpeg_v3_0)
[    4.882420] amdgpu 0000:0d:00.0: Fetched VBIOS from VFCT
[    4.882943] amdgpu 0000:0d:00.0: [drm] ATOM BIOS: 113-D4124100-102, build: 604554  , ver: 020.001.000.071.018202, 2022/03/10
[    4.885161] amdgpu 0000:0d:00.0: vgaarb: deactivate vga console
[    4.885165] amdgpu 0000:0d:00.0: Trusted Memory Zone (TMZ) feature disabled as experimental (default)
[    4.885199] amdgpu 0000:0d:00.0: MEM ECC is not presented.
[    4.885205] amdgpu 0000:0d:00.0: SRAM ECC is not presented.
[    4.885215] amdgpu 0000:0d:00.0: vm size is 262144 GB, 4 levels, block size is 9-bit, fragment size is 9-bit
[    4.885226] amdgpu 0000:0d:00.0: VRAM: 16368M 0x0000008000000000 - 0x00000083FEFFFFFF (16368M used)
[    4.885232] amdgpu 0000:0d:00.0: GART: 512M 0x0000000000000000 - 0x000000001FFFFFFF

The si_support/cik_support "ignored" warnings confirm that legacy SI/CIK support is correctly disabled in the config (# CONFIG_DRM_AMDGPU_SI is not set). VRAM: 16368M with full ReBAR mapping.

Device Memory Cgroup

$ grep CONFIG_CGROUP_DMEM /boot/config-$(uname -r)
CONFIG_CGROUP_DMEM=y

BPF JIT

$ grep -E "CONFIG_BPF_JIT" /boot/config-$(uname -r)
CONFIG_BPF_JIT=y
CONFIG_BPF_JIT_ALWAYS_ON=y
CONFIG_BPF_JIT_DEFAULT_ON=y

USB Type-C & UCSI

$ ls -l /sys/class/typec/

Shows registered Type-C connector ports and UCSI status for USB-C monitors and peripherals.

ORC Unwinder

$ grep CONFIG_UNWINDER_ORC /boot/config-$(uname -r)
CONFIG_UNWINDER_ORC=y

๐Ÿ–ฅ๏ธ Workstation โ€” Packaged Config Verification

The configuration embedded in the installed kernel can be extracted directly from the Debian package:

$ dpkg-deb --fsys-tarfile linux-image-7.3.6-ryzen9_*.deb \
  | tar -x ./boot/config-7.3.6-ryzen9 -O \
  | grep -E "CONFIG_(X86_NATIVE_CPU|NR_CPUS|PREEMPT|NO_HZ|BPF_JIT|CGROUP_DMEM|DRM_AMDGPU|HSA_AMD|TYPEC)"
CONFIG_NO_HZ_IDLE=y
CONFIG_PREEMPT_BUILD=y
CONFIG_PREEMPT=y
CONFIG_PREEMPT_DYNAMIC=y
CONFIG_BPF_JIT=y
CONFIG_BPF_JIT_ALWAYS_ON=y
CONFIG_BPF_JIT_DEFAULT_ON=y
CONFIG_NR_CPUS=32
CONFIG_X86_NATIVE_CPU=y
CONFIG_DRM_AMDGPU=m
CONFIG_HSA_AMD=y
CONFIG_CGROUP_DMEM=y

This allows the packaged kernel to be verified independently of the source-tree configuration.

๐Ÿ’ป Laptop โ€” Verification

The configuration embedded in the packaged kernel can be extracted and checked the same way as on the Ryzen build:

$ dpkg-deb --fsys-tarfile linux-image-6.19.14-t440p_*.deb \
  | tar -x ./boot/config-6.19.14-t440p -O \
  | grep -E "^CONFIG_(NR_CPUS|PREEMPT|PREEMPT_DYNAMIC|HZ_1000|NO_HZ_IDLE|X86_INTEL_PSTATE|DRM_I915|MITIGATION_PAGE_TABLE_ISOLATION|MODULE_SIG_FORCE)="
CONFIG_NO_HZ_IDLE=y
CONFIG_PREEMPT=y
CONFIG_PREEMPT_DYNAMIC=y
CONFIG_NR_CPUS=8
CONFIG_HZ_1000=y
CONFIG_MITIGATION_PAGE_TABLE_ISOLATION=y
CONFIG_X86_INTEL_PSTATE=y
CONFIG_MODULE_SIG_FORCE=y
CONFIG_DRM_I915=m

Laptop-specific options:

$ grep -E "^CONFIG_(PCIEASPM_DEFAULT|USB_NET_CDC_MBIM|RMI4_SMB|BLK_DEV_SR|UDF_FS)=" /boot/config-$(uname -r)
CONFIG_PCIEASPM_DEFAULT=y
CONFIG_BLK_DEV_SR=m
CONFIG_USB_NET_CDC_MBIM=m
CONFIG_RMI4_SMB=m
CONFIG_UDF_FS=m

Runtime checks captured on the laptop (kernel 6.19.14-t440p, 2026-11-26):

$ uname -a
Linux thinkpad 6.19.14-t440p #t440p SMP PREEMPT_DYNAMIC Fri Nov 20 11:27:50 CET 2026 x86_64 GNU/Linux

$ dmesg | grep -i preempt
[    0.156905] Dynamic Preempt: full
[    0.157042] rcu: Preemptible hierarchical RCU implementation.

$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
intel_cpufreq
schedutil

$ cat /sys/devices/system/cpu/cpuidle/current_governor
teo

$ cat /sys/kernel/mm/lru_gen/enabled /proc/sys/net/ipv4/tcp_congestion_control
0x0007
bbr

$ lsmod | grep -E "i915|iwlwifi|e1000e|cdc_mbim"
cdc_mbim               16384  0
iwlwifi               430080  1 iwlmvm
i915                 3809280  11
e1000e                311296  0

$ zramctl
NAME       ALGORITHM DISKSIZE DATA COMPR TOTAL STREAMS MOUNTPOINT
/dev/zram0 lz4             8G   4K   69B   20K         [SWAP]

$ mokutil --sb-state
SecureBoot enabled

CPU vulnerability status (lscpu), consistent with the mitigation set in the config (KPTI, MDS, L1TF, retpolines on; RETHUNK / RETBLEED not set):

Vulnerability Status
Meltdown Mitigation: PTI
L1TF Mitigation: PTE Inversion; VMX conditional cache flushes, SMT vulnerable
MDS Mitigation: Clear CPU buffers; SMT vulnerable
Spectre v1 Mitigation: usercopy/swapgs barriers and __user pointer sanitization
Spectre v2 Mitigation: Retpolines; IBPB conditional; IBRS_FW; STIBP conditional; RSB filling; BHI not affected
Speculative Store Bypass Mitigation: disabled via prctl
SRBDS Mitigation: Microcode
iTLB multihit KVM: Mitigation: Split huge pages
VMSCAPE Mitigation: IBPB before exit to userspace
Retbleed, GDS, MMIO stale data, RFDS, TSA, ITS, TAA, Spec rstack overflow, Ghostwrite Not affected

The steps in the Secure Boot & MOK section apply unchanged to the -t440p packages.


๐Ÿ“Š Results

๐Ÿ“ธ Last Build

terminal-ryzen
Build for AMD Ryzen 9 5950X.

terminal-t440p
Build for Lenovo ThinkPad T440p.

๐Ÿ“Š Stock vs Custom Kernel Footprint (6.12.118+deb13-amd64 vs 7.3.6-ryzen9)

Metric Debian 13 Stock (6.12.118+deb13-amd64) Custom (7.3.6-ryzen9) Difference Reduction
Loadable Modules (=m) 4,051 193 -3,858 -95.2%
Built-in Options (=y) 2,651 1,967 -684 -25.8%
Combined Active (=m + =y) 6,702 2,160 -4,542 -67.8%
Total Enabled (^CONFIG_) 6,901 2,306 -4,595 -66.6%

๐Ÿ“Š Stock vs Custom Kernel Footprint (6.12.118+deb13-amd64 vs 6.19.14-t440p)

Metric Debian 13 Stock (6.12.118+deb13-amd64) Custom (6.19.14-t440p) Difference Reduction
Loadable Modules (=m) 4,051 251 -3,800 -93.8%
Built-in Options (=y) 2,651 1,878 -773 -29.2%
Combined Active (=m + =y) 6,702 2,129 -4,573 -68.2%
Total Enabled (^CONFIG_) 6,901 2,271 -4,630 -67.1%

๐Ÿš€ Kernel Crypto API Benchmark (cryptsetup in-memory โ€” Ryzen 9 5950X)

Measured under identical conditions (amd-pstate-epp performance governor, THP always, xts-aes-vaes-avx2, 10 s per multi-thread run):

Benchmark Debian 13 Stock (6.12.118+deb13-amd64) Custom (7.3.6-ryzen9) Delta Gain
AES-XTS-256 (1 thread, Encrypt) 5,169.7 MiB/s 5,550.0 MiB/s +380.3 MiB/s +7.4%
AES-XTS-256 (1 thread, Decrypt) 5,155.4 MiB/s 5,542.6 MiB/s +387.2 MiB/s +7.5%
AES-XTS-512 (1 thread, Encrypt) 4,844.6 MiB/s 5,154.4 MiB/s +309.8 MiB/s +6.4%
AES-XTS-512 (1 thread, Decrypt) 4,829.1 MiB/s 5,145.1 MiB/s +316.0 MiB/s +6.5%
AES-XTS-256 (32 threads, Encrypt) 78.5 GiB/s 84.0 GiB/s +5.5 GiB/s +7.0%
AES-XTS-256 (32 threads, Decrypt) 78.1 GiB/s 83.8 GiB/s +5.7 GiB/s +7.3%
AES-XTS-512 (32 threads, Encrypt) 72.3 GiB/s 75.9 GiB/s +3.6 GiB/s +5.0%
AES-XTS-512 (32 threads, Decrypt) 72.1 GiB/s 76.0 GiB/s +3.9 GiB/s +5.4%
PBKDF2-SHA256 (1 thread) 8,533,680 it/s 8,603,700 it/s +70,020 it/s +0.8%
Argon2id LUKS (4T / 32T, 10 s) 77 / 91 iter 76 / 91 iter ~0 (RAM-bound) โ€”
Average / Peak Frequency 4,161 / 5,013 MHz 4,150 / 5,054 MHz -11 / +41 MHz โ€”
Peak Temperature 54.2 ยฐC 53.1 ยฐC -1.1 ยฐC Cooler

No benchmark has been published for the T440p yet; only its footprint numbers are available.


๐Ÿ–ฅ๏ธ Real Hardware

๐Ÿ–ฅ๏ธ Workstation โ€” AMD Ryzen 9 5950X

๐Ÿง  CPU

Component Details
Architecture x86_64 amd64
Core Architecture Zen 3
CPU AMD Ryzen 9 5950X (Vermeer)
Cores / Threads 16 cores / 32 threads
Socket AM4
Maximum Frequency ~4.9 GHz (boost)
TDP 105W
SMT Enabled
NUMA 1 node
Virtualization AMD-V enabled
L1 Cache 512 KiB (16ร—32 KiB data + 16ร—32 KiB instruction)
L2 Cache 8 MiB (16ร—512 KiB)
L3 Cache 64 MiB (2 CCDs)
Instruction Sets AVX2, FMA, AES-NI, SHA-NI, VAES, BMI1/2
Part 100-100000059WOF

๐Ÿ’พ Memory RAM

Parameter Value
Total Capacity 128 GB
Configuration 4 ร— 32 GB
Type DDR4
Speed 3600 MT/s
CL 18-22-22-42
Voltage 1.35v
Channels Dual Channel
ECC No
Model G.Skill F4-3600C18D-64GTZN
EAN 4713294224835

๐ŸŽฎ GPU

Component Details
GPU AMD Radeon RX 6950 XT
Architecture RDNA 2 (Navi 21)
PCI ID 1002:73a5
Kernel Driver amdgpu
DRM/KMS Enabled

๐ŸŽฎ GPU APIs

API Version Driver
AMDGPU / DRM 3.64 AMDGPU โ€” AMD Radeon RX 6950 XT / NAVI21
Vulkan 1.4.309 RADV โ€” Mesa 25.0.7-2+deb13u1
OpenCL 3.0 RustiCL โ€” Mesa 25.0.7-2+deb13u1
OpenCL C 1.1 Device OpenCL C Version
OpenGL 4.6 radeonsi โ€” Mesa 25.0.7-2+deb13u1, LLVM 19.1.7
VRAM 16368 MiB GDDR6, 256-bit
Resizable BAR 16 GB BAR 0: 16 GB
GTT 32109 MiB AMDGPU
GART 512 MiB AMDGPU

๐Ÿงฉ Motherboard

Component Details
Motherboard Gigabyte X570 AORUS ELITE (rev. 1.0)
Chipset AMD X570
Manufacturer Gigabyte Technology Co., Ltd.
BIOS AMI (American Megatrends)
BIOS Version F40
BIOS Date 2025-10-29
Boot Mode UEFI
SMBIOS 3.3.0
AMD AGESA 1.2.0.F

๐Ÿ” Trusted Platform Module (TPM)

Parameter Value
Type fTPM (Firmware TPM)
Version TPM 2.0
Manufacturer AMD
Implementation AMD CPU fTPM
Interface CRB (Command Response Buffer)
ACPI TPM2 table present
Device /dev/tpm0, /dev/tpmrm0
Permissions tss group
Kernel Driver tpm_crb (built-in)
Status Enabled in UEFI
Compliance FIPS 140-2
TPM Revision 1.38
PCRs 24
Input Buffer 1024 bytes
Max Command Size 4096 bytes
Max Response Size 4096 bytes
Hardware RNG Disabled (CRB design)

๐Ÿ”Š Audio

Component Details
Sound Card Creative Sound Blaster Z
Chip CA0132 Sound Core3D
DNR/SNR 116 dB
PCI ID 1102:0012
Driver ALSA (snd_ca0132)
Hi-res Audio Enabled 32 bits / 192kHz
Speakers Edifier M60

๐ŸŒ Network โ€” Ethernet

Component Details
Controller Intel I211 Gigabit
Bus Interface PCI Express v2.1 (2.5 GT/s)
IEEE Standards 802.3az (EEE), 1588 / 802.1AS, 802.1Qav
Speeds 10/100/1000 Mbps (Auto-negotiation)
PCI ID 8086:1539
Driver igb

๐Ÿ“ก Wi-Fi / Bluetooth

Component Details
Wi-Fi Intel AX210
Standard Wi-Fi 6E (802.11ax)
PCI ID 8086:2725
Driver iwlwifi
Bluetooth 5.3
USB ID 8087:0032
Driver btusb + btintel (kernel modules loaded)

๐Ÿฅถ Cooling

Component Details Store
AIO Fractal Celsius+ Prisma S36 Amazon
Fan front 3x Noctua NF-P12 redux-1700 Amazon
Fan top 2x Noctua NF-A14 PWM Amazon
Fan rear 1x Noctua NF-F12 PWM Amazon
Thermal Paste Noctua NT-H2 Amazon
Fan hub Noctua NA-FH1 Amazon

๐Ÿ’ป Laptop โ€” Lenovo ThinkPad T440p

๐Ÿงฉ Platform

Component Details
Model Lenovo ThinkPad T440p (20AWS1XU1F)
BIOS Lenovo GLETA2WW (2.56), 2021-07-16, UEFI
Embedded Controller firmware 1.13
SMBIOS 2.7
Chipset Intel QM87 Express (8 Series / Lynx Point PCH) 8086:8c4f
Security hardware Embedded security chip reported by SMBIOS ("IBM Embedded Security hardware")
Boot UEFI, Secure Boot enabled

๐Ÿง  CPU

Component Details
CPU Intel Core i7-4700MQ (4th gen Core, mobile M-Processor line)
Core Architecture Haswell (family 6, model 60), 22 nm
Cores / Threads 4 cores / 8 threads, 1 socket
Frequency 800 MHz min, 2.4 GHz base, 3.4 GHz max turbo
L1 / L2 / L3 Cache L1d 128 KiB + L1i 128 KiB (4 instances), L2 1 MiB (4 instances), L3 6 MiB (shared)
TDP 47 W
Package rPGA946B/947 (37.5 mm x 37.5 mm), socketed
CPU โ†” PCH link DMI 2.0 (x4)
Instruction Sets SSE4.2, AVX, AVX2, FMA3, BMI1/BMI2, F16C, AES-NI, PCLMULQDQ, RDRAND (no TSX: no hle/rtm flags)
Virtualization Intel VT-x with EPT, VPID and flexpriority (CONFIG_KVM_INTEL=m)
Kernel flags -march=haswell -mtune=haswell -O2 -pipe

๐Ÿ’พ Memory RAM

Parameter Value
Total Capacity 16 GB (15 GiB usable)
Configuration 2 ร— 8 GB SO-DIMM: ChannelA-DIMM0 and ChannelB-DIMM0 (Dual Channel)
Model 2 ร— Kingston HyperX Impact HX316LS9IB/8
Type DDR3L-1600, 204-pin SO-DIMM, unbuffered, non-ECC
Organization 1G x 64-bit, 2Rx8, sixteen 512M x 8 FBGA chips
Speed 1600 MT/s (PC3-12800); configured speed reported by dmidecode: 1600 MT/s
CL 9-9-9 (module rating; tRC 48.125 ns, tRAS 33.75 ns, tRFC 260 ns)
Voltage 1.35 V (or 1.5 V)
PnP profiles DDR3-1600 CL9-9-9, DDR3-1333 CL8-8-8, DDR3-1066 CL6-6-6
Max capacity (SMBIOS) 16 GB, 2 slots
Bandwidth up to 25.6 GB/s theoretical at 1600 MT/s (dual channel)
Operating temperature 0 ยฐC to 85 ยฐC

Intel's datasheet lists 16 GB as the maximum for two 2Rx8 SO-DIMMs (8 GB per module, one per channel), so this is the largest validated configuration. The same datasheet gives tCL 10/11 as the supported timing at DDR3L-1600 for this processor line; dmidecode (SMBIOS 2.7) confirms the 1600 MT/s speed but does not report the CAS timings that actually run.

๐Ÿ’ฟ Storage

Component Details
SSD WD Blue 3D NAND SATA SSD WDS100T2B0A (reported as WDC WDS100T2B0A-00SM50, firmware 411030WD)
Capacity 1 TB (1,000,204,886,016 bytes, 931.5 GiB)
Form Factor 2.5" / 7 mm
Interface SATA III 6 Gb/s (link negotiated at 6.0 Gb/s; SATA 3.3, ACS-4)
Sector size 512 bytes logical / physical
TRIM Available (deterministic, zeroed)
Sequential Read / Write up to 560 / 530 MB/s
Random Read / Write (4 KB QD32) up to 95K / 84K IOPS
Endurance 400 TBW
MTTF up to 1.75 M hours
Power 60 mW average active, 56 mW slumber, 5โ€“12 mW DEVSLP
Max Read / Write power 2,550 mW / 3,750 mW
Operating temperature 0 ยฐC to 70 ยฐC
Dimensions / Weight 100.2 x 69.85 x 7.00 mm / 37.4 g
Warranty 5 years
Controller / Driver Intel 8 Series SATA AHCI 8086:8c03, ahci (CONFIG_SATA_AHCI=y)
Optical drive HL-DT-ST DVDRAM GUD0N (sr0, 24x; writes CD-R/RW, DVD-R and DVD-RAM and M-Disc; CONFIG_BLK_DEV_SR=m, UDF, ISO 9660)

๐ŸŽฎ GPU

Component Details
GPU Intel HD Graphics 4600 (4th Gen Core integrated graphics, GT2) 8086:0416
Subsystem Lenovo ThinkPad T440p 17aa:220e
Kernel Driver i915 (CONFIG_DRM_I915=m)
APIs (Intel datasheet) DirectX 11.1, OpenGL 4.0
Display outputs embedded DisplayPort (internal panel) plus DDI ports

๐Ÿ“ก Network & Wireless

Component Details
Ethernet Intel Ethernet Connection I217-LM 8086:153a (e1000e, interface enp0s25)
Wi-Fi Intel Dual Band Wireless-N 7260 8086:08b2 (iwlwifi + iwlmvm, interface wlp3s0)
Bluetooth Intel Bluetooth wireless interface 8087:07dc (USB)
Mobile broadband Sierra Wireless EM7345 4G LTE 1199:a001 (cdc_mbim, interface wwp0s20u10)

๐Ÿ”Š Audio

Component Details
HDMI audio Intel Xeon E3-1200 v3 / 4th Gen Core HD Audio Controller 8086:0c0c (snd_hda_intel)
Analog audio Intel 8 Series/C220 High Definition Audio Controller 8086:8c20 (snd_hda_intel, card HDA Intel PCH)

โŒจ๏ธ Input, Security & Peripherals

Component Details
Touchpad / TrackPoint Synaptics tm2962-001 over RMI4 / SMBus (CONFIG_RMI4_SMB=m)
Fingerprint reader Validity Sensors VFS 5011 138a:0017
Smartcard reader Alcor Micro AU9540 058f:9540
Webcam Chicony Integrated Camera 04f2:b39a (CONFIG_USB_VIDEO_CLASS=m)
Card reader Realtek RTS5227 PCI Express Card Reader 10ec:5227
Battery LGC 45N1147, Li-ion, 56.16 Wh design capacity, 47.18 Wh full charge on 2026-11-26 (about 84% of design)

๐Ÿงฐ System

Component Details
OS Debian 13 (Trixie)
Kernel 6.19.14-t440p (configs/stable/config-6.19.14-t440p-debian13)
Kernel cmdline acpi_osi=Linux acpi_backlight=native, root on /dev/mapper/debian_crypt-linux (dm-crypt)
Secure Boot Enabled, MOK-signed kernel and modules
Swap ZRAM 8 GB (lz4, priority 100) + 15.3 GB swap partition (priority -1)
Full PCI / USB ID list
00:00.0 Host bridge        8086:0c04  Xeon E3-1200 v3/4th Gen Core DRAM Controller
00:02.0 VGA                8086:0416  4th Gen Core Integrated Graphics (i915)
00:03.0 Audio              8086:0c0c  HD Audio Controller (HDMI)
00:14.0 USB xHCI           8086:8c31  8 Series USB xHCI
00:16.0 MEI                8086:8c3a  8 Series MEI Controller #1
00:19.0 Ethernet           8086:153a  I217-LM (e1000e)
00:1a.0 USB EHCI #2        8086:8c2d
00:1b.0 Audio              8086:8c20  8 Series HD Audio Controller
00:1c.0 PCI bridge         8086:8c10  PCIe Root Port #1
00:1c.1 PCI bridge         8086:8c12  PCIe Root Port #2
00:1d.0 USB EHCI #1        8086:8c26
00:1f.0 ISA bridge         8086:8c4f  QM87 Express LPC Controller
00:1f.2 SATA (AHCI)        8086:8c03  8 Series 6-port SATA Controller
00:1f.3 SMBus              8086:8c22
02:00.0 Card reader        10ec:5227  Realtek RTS5227
03:00.0 Network (Wi-Fi)    8086:08b2  Wireless 7260 (iwlwifi)

USB 058f:9540  Alcor Micro AU9540 Smartcard Reader
USB 138a:0017  Validity Sensors VFS 5011 fingerprint sensor
USB 1199:a001  Sierra Wireless EM7345 4G LTE
USB 8087:07dc  Intel Bluetooth wireless interface
USB 04f2:b39a  Chicony Integrated Camera

Sources: Intel Mobile 4th Generation Core Processor Family Datasheet, Volume 1 of 2 (Order No. 328901-007, July 2014); Western Digital WD Blue 3D NAND SATA SSD data sheet (2879-800092-A04, April 2019); Kingston HX316LS9IB/8 module specification (Doc. 4807048-001.A00); lscpu, lspci -nnk, lsusb, dmidecode and smartctl output from the laptop (2026-11-26).