Skip to content

Linux AMD support (#135) with NVIDIA kept as the auto default - #136

Merged
T-Crypt merged 5 commits into
mainfrom
T-Crypt/amd-support
Oct 22, 2026
Merged

T-Crypt merged 5 commits into
mainfrom
T-Crypt/amd-support

Conversation

@T-Crypt

@T-Crypt T-Crypt commented Oct 22, 2026

Copy link
Copy Markdown
Owner

This carries #135 from @jenerestain unchanged (its commits and authorship are kept) and adds one commit on top.

What the extra commit changes

  • Auto backend on mixed hosts. In feat(gpu): add Linux AMD probes and tested 780M APU leasing #135, --gpu-backend auto refused to start when it found both nvidia-smi and a supported AMD GPU. Every installed berthd unit runs with auto, so NVIDIA users on a Phoenix laptop with an RTX dGPU, or a Ryzen 8000G desktop with a GeForce card, would lose berthd after upgrading. Auto now keeps NVIDIA whenever nvidia-smi is installed, which is how it behaved before AMD support. It only scans for AMD when nvidia-smi is missing. To govern the AMD card on a host with both vendors, pass --gpu-backend amd.
  • Test isolation. The guarded broker tests reached the host's sysfs through the VFIO fallback. On a machine whose card is bound to vfio-pci, a stale read was treated as passthrough and TestGuardedStaleSuccessCannotFreeLease failed every time. The tests now use an empty sysfs root, as the VFIO tests do.
  • CHANGELOG entry under Unreleased, and the README line about mixed hosts.

Review of #135

NVIDIA behavior is unchanged apart from backend selection: every new check is gated on Snapshot.Guarded or Snapshot.APU, which only the AMD probe sets, and NVIDIA probes leave Proc.Start at 0, so the new PID identity check does not run for them.

Proof

Not proven here: a live AMD run (no AMD card on this host), and a live NVIDIA run, because the card was in a VM during the review.

jenerestain and others added 5 commits October 22, 2026 07:47
…D support

On a host with nvidia-smi and a supported AMD GPU, auto refused to start.
That covers Phoenix laptops with an RTX dGPU and Ryzen 8000G desktops with
a GeForce card, where an installed unit has no --gpu-backend, so berthd
would stop starting after an upgrade. Auto now picks NVIDIA as it did
before AMD support and scans for AMD only without nvidia-smi.

The guarded broker tests read the host's sysfs through the VFIO fallback,
so they failed on a machine whose card was bound to vfio-pci. They now use
an empty sysfs root, as the VFIO tests do.
@T-Crypt
T-Crypt merged commit 050866f into main Oct 22, 2026
4 checks passed
@T-Crypt
T-Crypt deleted the T-Crypt/amd-support branch October 22, 2026 01:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants