GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - gvozd188/vmd-arl004: Intel VMD 8086:ad0b second-rootbus support and experimental ARL004 NVMe completion-ordering workaround for Linux

BranchesTags
Open more actions menu

Latest commit

 

History

2 Commits
2 Commits

Folders and files

NameName
Last commit message
Last commit date
0001-vmd-second-rootbus-intel.patch
0001-vmd-second-rootbus-intel.patch
 
 
0002-vmd-ad0b-arl004-workaround.patch
0002-vmd-ad0b-arl004-workaround.patch
 
 
ARL004.md
ARL004.md
 
 
BOOTSTRAP-UBUNTU.md
BOOTSTRAP-UBUNTU.md
 
 
INSTALLATION.md
INSTALLATION.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
RECOVERY.md
RECOVERY.md
 
 
SHA256SUMS
SHA256SUMS
 
 
VMD-INSTALL.md
VMD-INSTALL.md
 
 
WINDOWS-REFERENCE.md
WINDOWS-REFERENCE.md
 
 
vmd-arl004.patch
vmd-arl004.patch
 
 
vmd-ubuntu-7.0.0-30.c
vmd-ubuntu-7.0.0-30.c
 
 
vmd.c
vmd.c
 
 
vmd.ko
vmd.ko
 
 

Repository files navigation

Intel VMD 8086:ad0b — Second Root Bus support and ARL004 workaround

Status: experimental Platform: Ubuntu 26.04 Latest verified kernel: 7.0.0-42

Experimental Linux VMD fixes for Intel Arrow Lake-HX systems with the Intel VMD controller 8086:ad0b. Developed and tested on an MSI Vector 17 HX AI A2XWIG running Ubuntu 26.04 LTS with Secure Boot enabled.

The project addresses two separate issues:

  1. Bus Offset Setting 3 / Second Root Bus: the stock VMD driver fails to initialize the controller, preventing Linux from detecting the internal NVMe SSD.
  2. ARL004 / NVMe completion stalls: after NVMe enumeration is restored, an interrupt-ordering erratum can cause repeated ~30-second I/O stalls.

The repository contains a tested VMD source, individual and combined patches, a historical kernel-specific reference module, and documentation covering installation, bootstrap, recovery, and the investigation.

Warning

Experimental storage-controller code. VMD operation has been verified on the MSI Vector using specific Ubuntu kernels from 7.0.0-14 through 7.0.0-42, as listed in the test matrix. This does not mean that every intermediate kernel was tested. Other kernel versions and other laptop models have not been tested. The repository currently provides source code, patches, and installation notes, not a ready-to-install DKMS package. Installing a VMD module or initramfs incorrectly can prevent the OS from booting. Keep a known-working kernel and an external recovery environment. Do not install the included vmd.ko on any kernel other than the exact kernel build for which it was compiled.

Current status — October 29, 2026

  • Works on the tested MSI Vector: patched VMD driver 0.7 loads, the internal NVMe SSD is accessible, and Ubuntu boots directly from it.
  • Boot-verified kernel range: 7.0.0-14-generic through 7.0.0-42-generic (specific tested versions listed below; not every version in between). Latest successful boot: 7.0.0-42-generic (October 29, 2026).
  • Initial bootstrap: the patched VMD driver was installed for kernel 7.0.0-14, enabling the first boot from the internal NVMe SSD. DKMS automation was configured later.
  • Local DKMS: vmd-arl004/1.0 successfully rebuilt and installed the final patched source for kernels 7.0.0-31, 7.0.0-34, 7.0.0-38, and 7.0.0-42. Other kernel versions have not been tested.
  • Secure Boot: enabled; the DKMS module is signed with a locally enrolled Machine Owner Key (MOK).
  • Initramfs: the patched updates/dkms/vmd.ko.zst and the standard NVMe modules are present in the dracut-generated boot image for kernel 7.0.0-42.
  • Latest boot log: no matches for Unknown Bus Offset, completion polled, or nvme.*timeout in the checked current-boot kernel log. This is not a long-duration stress test.
  • NVIDIA: GeForce RTX 5080 Laptop GPU and driver 595.99.02 work on 7.0.0-42 (CUDA driver capability reported as 13.2).
  • Other hardware: the patched driver has not yet been tested on other laptop models. Results from other affected systems would be welcome.
  • Installation: the working DKMS setup is configured locally; a ready-to-install DKMS package has not yet been published.

The original experimental ARL004 patch in this repository is not the same implementation as the later accepted upstream Linux change; see Upstream status.

Tested hardware

Component Configuration
Laptop MSI Vector 17 HX AI A2XWIG
CPU Intel Core Ultra 9 275HX (Arrow Lake-HX)
GPU NVIDIA GeForce RTX 5080 Laptop GPU
VMD controller 8086:ad0b
VMD PCI address 0000:00:0e.0
VMD subsystem ID 1462:149c
NVMe SSD Phison 1 TB ESR01TBYCCA4-EDJ-2MS
NVMe controller Phison PS5029-E29T PCIe 4.0
NVMe PCI ID 1987:5029 (rev 01)
NVMe firmware ETFM50.0
OS Ubuntu 26.04 LTS, x86-64
Secure Boot Enabled
Latest boot-tested kernel 7.0.0-42-generic

The SSD serial number and private signing key are not published.

Kernel compatibility

VMD operation was verified on the MSI Vector test system on the specific Ubuntu kernels listed below, spanning 7.0.0-14 through 7.0.0-42. This is not a claim that every kernel between these versions has been tested. Other kernel versions and other laptop models have not been tested. The driver must be built for the target kernel; the test results do not establish compatibility with untested kernels.

Ubuntu kernel Patched driver / DKMS System boot Internal NVMe
7.0.0-14-generic Patched VMD module built for this kernel Verified Verified
7.0.0-30-generic Patched VMD module; repository reference build Verified Verified
7.0.0-31-generic DKMS installed Verified Verified
7.0.0-34-generic DKMS installed Verified Verified
7.0.0-38-generic DKMS installed Verified Verified
7.0.0-42-generic DKMS installed Verified (2026-10-29) Verified

The project uses the patched VMD driver, built for each target kernel. The published vmd.c source matches the current local DKMS source by SHA256. This comparison does not establish the source revision used for every historical kernel build. Other kernel versions and other laptop models have not been tested.

No new extended NVMe throughput benchmark was run for 7.0.0-42; the performance comparison below is from the original investigation.

Problem 1 — internal NVMe SSD not detected

With the stock Ubuntu VMD driver on the affected Arrow Lake-HX system, the kernel reported:

vmd 0000:00:0e.0: Unknown Bus Offset Setting (3)

The internal NVMe controller was not enumerated and no corresponding /dev/nvme* device was available. The controller itself appeared on the PCI bus, but the VMD initialization did not complete. Linux 6.14 was also tried without resolving the problem, and no usable per-drive BIOS option to disable VMD was available on the tested laptop.

Fix 1 — Second Root Bus

Intel's public VMD patch series adds handling for the second root bus used by newer VMD hardware. The repository integrates an earlier version of that work into the Ubuntu 7.0.0-30 VMD source while retaining the Ubuntu-side changes.

  • Integration patch: 0001-vmd-second-rootbus-intel.patch
  • Original Intel v3 series
  • Newer Intel v9 series, posted October 26, 2026

The original work on second-rootbus support belongs to Intel's patch authors. This repository provides a tested integration for the affected Ubuntu version; it should not be confused with Intel's most recent upstream series.

After this change, the internal Phison PS5029-E29T (1987:5029) NVMe controller became visible to Linux.

Problem 2 — NVMe completion stalls

Restoring enumeration exposed a second problem. The kernel repeatedly logged messages resembling:

nvme nvme0: I/O tag ... timeout, completion polled

The affected system experienced stalls at approximately 30-second intervals. Disabling ASPM did not resolve the issue. An initial 1 GiB sequential diagnostic read took 121.339 seconds (~8.8 MB/s).

Fix 2 — experimental ARL004 workaround

The investigation compared the behavior with the official Intel RST/VMD Windows driver distributed by MSI. Static analysis indicated a PCI configuration-space read in a relevant interrupt/completion path, consistent with Intel's ARL004: MSI from VMD-Owned Device May Pass Memory Write erratum.

The local experimental workaround performs a dummy PCI configuration-space read before dispatching affected child interrupts, narrowly scoped to the tested VMD/NVMe path.

  • Experimental patch: 0002-vmd-ad0b-arl004-workaround.patch
  • Investigation: ARL004.md
  • Windows-driver reference and hashes: WINDOWS-REFERENCE.md

No proprietary Windows driver binaries are redistributed.

Original diagnostic results

Test on the affected MSI Vector Time Approximate throughput
Second-rootbus support, without ARL004 workaround 121.339 s / 1 GiB 8.8 MB/s
Second-rootbus support, with ARL004 workaround 0.88206 s / 1 GiB 1.2 GB/s

This was an approximately 136× difference in this one diagnostic read, not a general SSD benchmark or a claim about all workloads. A subsequent 10 GiB read completed normally, and the repeated completion-polling timeouts were no longer reproduced in that test environment.

Source files and patch selection

File Purpose
vmd-ubuntu-7.0.0-30.c Original Ubuntu 7.0.0-30 VMD source used as the patch base
0001-vmd-second-rootbus-intel.patch Integration of Intel's Second Root Bus changes
0002-vmd-ad0b-arl004-workaround.patch Experimental ARL004 workaround
vmd-arl004.patch Combined patch incorporating both changes
vmd.c Final tested patched source; used by the working local DKMS setup
vmd.ko Historical reference binary for 7.0.0-30-generic only
SHA256SUMS Original source, patch and module checksums

For the matching Ubuntu 7.0.0-30 source, select either the combined vmd-arl004.patch or patches 0001 and 0002 in that order — not both. These patches were verified against that original source. They are not guaranteed to apply cleanly to newer upstream kernel trees.

Historical patch application from the root of the matching kernel source tree:

patch -p1 < /path/to/vmd-arl004.patch

This modifies drivers/pci/controller/vmd.c. Applying the patch does not, by itself, build or install a working module. Follow the relevant installation notes and maintain a recovery path.

Installation and recovery documentation

Start with INSTALLATION.md, which links to the appropriate procedure:

  • VMD-INSTALL.md — historical VMD module installation, DKMS, initramfs, Secure Boot and MOK notes.
  • BOOTSTRAP-UBUNTU.md — original process of booting Ubuntu from an external HDD via SATA-to-USB to expose the internal NVMe and deploy Ubuntu without overwriting existing Windows/data partitions.
  • RECOVERY.md — recovery procedure after an experimental VMD/initramfs prevented booting.

Historical installation sequence: an external Ubuntu HDD ran 7.0.0-30-generic; the manually deployed internal-SSD installation initially had 7.0.0-14-generic. The patched VMD driver was built and installed for that kernel, making independent NVMe boot possible. DKMS was set up later, followed by subsequent Ubuntu kernel upgrades.

Caution

The guides document what worked on the original test machine. They have not yet been tested on other laptops, and the repository does not currently include a one-click installer. In particular, do not copy the prebuilt module or a machine's MOK private key to a different system. Never disable or change VMD/RST settings on a Windows dual-boot machine without understanding the consequences.

Local DKMS validation (not a packaged installer)

The tested machine currently uses the following DKMS configuration:

PACKAGE_NAME="vmd-arl004"
PACKAGE_VERSION="1.0"
BUILT_MODULE_NAME[0]="vmd"
DEST_MODULE_LOCATION[0]="/updates/dkms"
AUTOINSTALL="yes"
MAKE[0]="make -C /lib/modules/${kernelver}/build M=$dkms_tree/$PACKAGE_NAME/$PACKAGE_VERSION/build modules"
CLEAN="make -C /lib/modules/${kernelver}/build M=$dkms_tree/$PACKAGE_NAME/$PACKAGE_VERSION/build clean"

This is a record of the working local setup, not a complete, tested install procedure. The existing source tree is located at /usr/src/vmd-arl004-1.0/ on the test machine. With AUTOINSTALL="yes", DKMS attempts to rebuild the module when a new kernel is installed; it does not guarantee a successful build or a working module on an untested kernel. For the tested kernels, the local MOK key signed the built module and dracut included the patched module in initramfs.

On 7.0.0-42-generic, the installed module was found at:

/lib/modules/7.0.0-42-generic/updates/dkms/vmd.ko.zst

The initramfs contained this DKMS VMD, as well as the stock nvme.ko.zst and nvme-core.ko.zst modules. The local post-install check also validated the VMD installation during previous kernel updates.

Useful read-only diagnostics for an already installed system:

uname -r
dkms status
modinfo vmd | grep -E '^(filename|version|signer|vermagic):'
lsblk -o NAME,SIZE,MODEL
sudo journalctl -k -b | grep -Ei 'vmd|Unknown Bus Offset|completion polled|nvme.*timeout' || true

A successful DKMS build and a present signature do not by themselves demonstrate successful boot and NVMe operation. On any new test system, check that the correct module is included in the target kernel's initramfs before rebooting.

Source and binary verification

SHA256 of the final vmd.c, confirmed identical between the GitHub main branch and the source used by the local working DKMS installation on October 29, 2026:

0a27aa1379e8b7fc22f509b8d06ed3676a211d7bb3226a3f9b3dadfc208be7a3

SHA256 of the historical vmd.ko for Ubuntu 7.0.0-30-generic:

b2c9eacb720d45fcaab15ff09ad3fdc2e97b8a6dd215c80fa282090ff8d2b2cd

Reference binary metadata:

version:    0.7
srcversion: 72D1DD10CE4417CDF0E82C3
vermagic:   7.0.0-30-generic SMP preempt mod_unload modversions
signer:     VMD custom module

The included prebuilt binary is specific to the kernel ABI for which it was compiled, and its signature was made with a locally enrolled MOK. A different kernel requires its own compatible, signed build; whether the current source will compile and work on an untested kernel is unknown. The same uncertainty applies to other laptop models: lack of testing is neither proof of compatibility nor proof of incompatibility.

Upstream status

The two problems have separate upstream paths:

ARL004 interrupt ordering

  • A revised upstream fix, PCI: vmd: Flush DMA writes before handling MSI on Arrow Lake, by Vladimir Nedoshivin, was accepted into the Linux PCI development tree. It enables the existing VMD_FEAT_INTERRUPT_QUIRK for 0xad0b; this is not byte-for-byte the same as the original experimental patch in this repository.
  • Upstream Linux PCI commit 2c88c2dc1852
  • PCI changes submitted for Linux 7.4

Second Root Bus / Bus Offset 3

  • The Intel Second Root Bus series is developed separately. As of October 29, 2026, v9 (seven patches) had been posted; this README does not claim it has been merged into an Ubuntu release.
  • The original integration in this repository is based on an earlier revision of Intel's series.

Ubuntu

  • An examination of the stock Ubuntu 7.0.0-42.42 drivers/pci/controller/vmd.c on October 29, 2026 found neither the Second Root Bus implementation nor ARL004 interrupt-quirk activation for 0xad0b. The local DKMS module remains necessary on this test machine.
  • The above is specific to the checked source revision; re-check newer Ubuntu packages rather than inferring their contents from this README.

The accepted ARL004 change alone is not sufficient to expose NVMe devices behind an unsupported Bus Offset 3 VMD topology.

Bug reports and third-party reproductions

  • Ubuntu Launchpad bug #2166325 — original report, reproduction results, and submitted source references.
  • Ubuntu kernel-team SRU proposal — two-patch proposal for the affected Ubuntu kernel.

Independent reports on Dell and MSI Arrow Lake-HX systems also reproduced Bus Offset Setting 3 with NVMe devices missing. Those reports do not establish that the ARL004 workaround has been tested on their hardware.

Limitations and next steps

  • VMD operation has been confirmed on the MSI Vector on the listed kernels, from 7.0.0-14 through 7.0.0-42. Other kernel versions and other laptop models have not been tested.
  • The local DKMS configuration is working, but a ready-to-install DKMS package, automated rollback, and installation testing on other machines are still pending.
  • The vmd.ko reference module applies only to its historical kernel build. For other kernels, even successful DKMS compilation would not by itself prove correct boot or NVMe operation.
  • The repository's original integrated Intel Second Root Bus code may differ from later upstream v9 and beyond.
  • A successful boot and a clean kernel log do not replace extended I/O, suspend/resume, hot-plug, or multi-NVMe testing.
  • Once both required fixes are in a verified official Ubuntu kernel, the local DKMS override can be evaluated for removal — only after confirming NVMe visibility and reliable I/O with that stock kernel.

Contributions are welcome, especially reproducible reports that clearly state laptop model, VMD PCI ID, BIOS revision, exact kernel build, NVMe models, and whether Second Root Bus and ARL004 were tested separately.


Maintainer: Vladimir Nedoshivin (gvozd188)
Project: github.com/gvozd188/vmd-arl004
Last documented validation: October 29, 2026

About

Intel VMD 8086:ad0b second-rootbus support and experimental ARL004 NVMe completion-ordering workaround for Linux

Topics

arrow-lake-hxhardware-debuggingintelintel-vmdkernel-driverlinuxlinux-kernelnvme-ssdpciphisonreverse-engineeringssdstorageubuntuvmd

Resources

Readme
GPL-2.0 license
Activity

Stars

3 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.