[GH-ISSUE #5] Claim refuses every card when board firmware leaves bus mastering on (Supermicro X11, -EBUSY at unlock_610.c:816) #6

Closed
opened 2026-10-26 16:38:55 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @foureight84 on GitHub (Oct 22, 2026).
Original GitHub issue: https://github.com/Zagitta/gpu-unlock/issues/5

On a Supermicro X11SPi-TF (AMI Aptio 2.20.1276, UEFI boot, CSM off), every RTX 3090 is refused at claim because the firmware leaves Bus Master Enable set:

pci 0000:6a:00.0: claim: power=5 pm_cap=0x60 flags=0x0
pci 0000:6a:00.0: failure unlock_610.c:816 unlock_transaction_claim error=-16 ... master=0 firmware_started=0
pci 0000:6a:00.0: last PCI sample: capability=0 offset=0x4 value=0x147 result=0
pci 0000:6a:00.0: gpu_unlock: unlock failed (-16)

(The power=5 / PCI_UNKNOWN check failed first on this 6.8 kernel. That's #3; I patched it locally to get this far.)

The BIOS sets it, not Linux. In the UEFI shell before Linux starts, pci 69 00 00 shows DE 10 04 22 47 01, so the command register is 0x0147. It stays 0x0147 with both of these changed:

  • the slot's PCIe OPROM set to Disabled (the 3090s aren't the display; the onboard ASPEED is the boot VGA)
  • the BIOS's own "Bus Master Enable" option set to Disabled

No driver has touched the cards at that point, so BME here doesn't mean a driver owns the card. The WPR2 check (card already initialised since power on) already catches cards that really have been initialised.

With BME cleared at claim instead of refused, all four cards unlock (log: claim: cleared firmware BME, pre-FLR selectors: ss0=0x88888888 ..., PCIe FLR returned: result=0, gpu_unlock: unlocked).

Setup: 4x RTX 3090 (10de:2204) behind a PLX switch, VBIOS 94.02.59.00.94 x3 and 94.02.59.00.DD x1; Ubuntu 24.04, kernel 6.8.0-31-generic, NVIDIA open 610.57.04.

Results (torch 8192³ matmul, fp32 accumulate, 5 runs, spread ≤ 1.4 TFLOPS; power caps unchanged across boots):

card cap BF16 before → after FP16 before → after
69 (.94) 225 W 54.4 → 67.8 52.1 → 63.6
6a (.94) 225 W 55.2 → 67.7 52.3 → 62.9
6d (.94) 250 W 58.3 → 78.5 56.3 → 73.5
6e (.DD) 225 W 49.2 → 60.1 46.1 → 55.9

Throughput per SM clock went from ~0.043 to ~0.082 TFLOPS/MHz. Under these caps the cards clock down from 1.1–1.4 GHz to 0.7–0.9 GHz, which is why the net gain is 22–35% and not 2x.

A PR with a fix is coming.

Originally created by @foureight84 on GitHub (Oct 22, 2026). Original GitHub issue: https://github.com/Zagitta/gpu-unlock/issues/5 On a Supermicro X11SPi-TF (AMI Aptio 2.20.1276, UEFI boot, CSM off), every RTX 3090 is refused at claim because the firmware leaves Bus Master Enable set: ``` pci 0000:6a:00.0: claim: power=5 pm_cap=0x60 flags=0x0 pci 0000:6a:00.0: failure unlock_610.c:816 unlock_transaction_claim error=-16 ... master=0 firmware_started=0 pci 0000:6a:00.0: last PCI sample: capability=0 offset=0x4 value=0x147 result=0 pci 0000:6a:00.0: gpu_unlock: unlock failed (-16) ``` (The `power=5` / PCI_UNKNOWN check failed first on this 6.8 kernel. That's #3; I patched it locally to get this far.) The BIOS sets it, not Linux. In the UEFI shell before Linux starts, `pci 69 00 00` shows `DE 10 04 22 47 01`, so the command register is `0x0147`. It stays `0x0147` with both of these changed: - the slot's PCIe OPROM set to Disabled (the 3090s aren't the display; the onboard ASPEED is the boot VGA) - the BIOS's own "Bus Master Enable" option set to Disabled No driver has touched the cards at that point, so BME here doesn't mean a driver owns the card. The WPR2 check (`card already initialised since power on`) already catches cards that really have been initialised. With BME cleared at claim instead of refused, all four cards unlock (log: `claim: cleared firmware BME`, `pre-FLR selectors: ss0=0x88888888 ...`, `PCIe FLR returned: result=0`, `gpu_unlock: unlocked`). Setup: 4x RTX 3090 (10de:2204) behind a PLX switch, VBIOS 94.02.59.00.94 x3 and 94.02.59.00.DD x1; Ubuntu 24.04, kernel 6.8.0-31-generic, NVIDIA open 610.57.04. Results (torch 8192³ matmul, fp32 accumulate, 5 runs, spread ≤ 1.4 TFLOPS; power caps unchanged across boots): | card | cap | BF16 before → after | FP16 before → after | |---|---|---|---| | 69 (.94) | 225 W | 54.4 → 67.8 | 52.1 → 63.6 | | 6a (.94) | 225 W | 55.2 → 67.7 | 52.3 → 62.9 | | 6d (.94) | 250 W | 58.3 → 78.5 | 56.3 → 73.5 | | 6e (.DD) | 225 W | 49.2 → 60.1 | 46.1 → 55.9 | Throughput per SM clock went from ~0.043 to ~0.082 TFLOPS/MHz. Under these caps the cards clock down from 1.1–1.4 GHz to 0.7–0.9 GHz, which is why the net gain is 22–35% and not 2x. A PR with a fix is coming.
Sign in to join this conversation.
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
Zagitta/gpu-unlock#6
No description provided.