DGX Spark fan-control kernel module — running on dual Sparks since mid-August

I’ve observed my DGX Spark reaching approximately 105°C and shutting down during long runs. The firmware contains critical = 104800.

NVIDIA doesn’t expose user-space fan control, so I wrote a kernel module to control the fans.

I’ve been running it on a dual-Spark setup since mid-August to maximize TPS during embedding workloads.

Source code: dgx-spark-fan-control

I’d welcome feedback from other Spark owners, particularly observations from sustained workloads.

I also shared this on X: Christopher Owen on X: "DGX Spark shutdowns aren’t always OOM. Long runs can heat-soak the machine and trigger a thermal shutdown. The ConnectX-7 contributes. NVIDIA keeps fan control in firmware, beyond standard user-space tools. I’ve been running this on dual Sparks since mid-August to maximi… / X

Thanks a lot for sharing this, and for your firmware-stack write-up too. It matches what we found in the capsules.

We tried the same idea as your module, raising the EC’s fan floor, on our new Founders Edition (bought Oct 23). We used our own small signed module that sends the floor request to the EC thermal mailbox through the SoC’s FF-A eSPI service (nvfancontrol’s protocol: OEM1 command 17, shared page at 0x933dd000). Here is exactly what happened:

1. Current firmware: EC 3.13.7 (0x03000d07) + SoC 2.158.15 (0x02009e0f)

  • We disassembled the EC 3.13.7 capsule from LVFS. Its thermal mailbox now answers the cap and floor writes (cmd 3 and 5) with status 0xff (unsupported), and the reads (cmd 2 and 4) return a constant 0xffff. The code that applied the override slots is gone, and the capability reply now says 975-4,350 rpm for both fans (3.5.8: 1,260-9,000 and 1,890-13,500). So we didn’t load our module on this EC.
  • The ACPI fan knob doesn’t help either: writing 100 to cooling_device0/1 is accepted and reads back 100, but the fans stay at the same speed (2,014 / 2,056 rpm before and after).

2. Older EC on the new SoC: EC 3.5.8 (0x03000508) + SoC 2.158.15

  • We flashed EC 3.5.8 the official way (fwupd/LVFS) and kept the SoC firmware. Our module’s very first request, the read-only cmd 1 capability query, failed with eSPI status 5 (a timeout) after 54 ms, so the module refused to bind and nothing was written. The shared page already held someone else’s 50-byte frame.
  • On that combination the ACPI fan tach also read 0 / 0 rpm while the fans were clearly spinning. We went back to EC 3.13.7.

So we suspect the October Founders Edition release locks owners out: EC 3.13.7 dropped the override, and SoC 2.158.15 no longer talks to EC 3.5.8, which still has it. That would leave anyone who installed the October updates with no way to raise the fan speed, except perhaps rolling the SoC firmware back to 2.155.11 as well, which we haven’t tried. NVIDIA support has asked us not to downgrade while they review our case.

If you have a moment, could you please share:

  1. Which firmware your nodes are running now: the EC, SoC, USB-C PD and BIOS versions (fwupdmgr get-devices), plus DGX OS, kernel and driver? In the DeepSeek 4.1 thread you listed EC 3.5.8 / SoC 2.155.11 / PD 5.22, with the October set (EC 3.13.7 / SoC 2.158.15 / PD 5.25) not yet tested. Have you had a chance to try the October set since, and does your module still work on it?
  2. What you think is going on? Was the override removed on purpose, or has it perhaps moved somewhere else? Since you’ve rebuilt EC 3.5.8 from source, we’d love to know if you see the same change in 3.13.7’s thermal mailbox.

Our unit for reference: EC 3.13.7 (0x03000d07), SoC 2.158.15 (0x02009e0f), USB-C PD 5.25 (0x00000519), BIOS 5.36_0ACUM028, DGX OS 7.6.0, kernel 7.0.0-1019-nvidia, driver 580.178.04.

Thanks again, any insight would be much appreciated!

Will this work on Asus Ascent GX10?

Hi @maxeffort,

Thanks, this is a really useful report, and the way you went about it (nothing written until the capability query checked out) is exactly right.

My versions. All four of my Founders Editions are still on the September firmware, and the module is running on all of them right now (the performance curve is holding floors of 10–12 of 12 under serving load):

Component Version
EC 3.5.8 (0x03000508)
SoC 2.155.11 (0x02009b0b)
USB-C PD 5.22 (0x00000516)
BIOS 5.36_0ACUM018 on two, 5.36_0ACUM027 on two
DGX OS 7.6.0 (dgx-spark-ota-update-meta 26.09.2)
Kernel 7.0.0-1019-nvidia-64k, kho=off
Driver 580.178.04 (open)

I haven’t tried the October set yet, and your report is a good reason to wait.

What my module would do on 3.13.7. It wouldn’t help, but it should fail safe. It doesn’t use nvfancontrol’s OEM1/shared-page path: it sends FF-A direct messages to the secure partition’s EC packet relay (op 1 capabilities, ops 4/5 read and write the lower clamp, op 7 telemetry). It ends at the same EC thermal mailbox, and your cmd 2–5 line up with those ops. Probe pins the capability reply to 3.5.8’s ranges (1,260–9,000 / 1,890–13,500 rpm), so a 975–4,350 reply makes it refuse to bind before it writes anything.

EC 3.5.8 on SoC 2.158.15. I can’t tell from here whether that’s a protocol change or contention, but two things from my side may help:

  • On SoC 2.155.11 the relay’s poll returns a cached flag and response from the secure partition, not the EC’s physical mailbox, and I hit stale and out-of-order completions there. That’s written up in the repo, and 0.1.3 recovers from it.
  • The relay doesn’t arbitrate between clients, so only one should own it. A 50-byte frame already in the shared page suggests something else was talking to the EC when your query went out, such as the stock FF-A EC driver or the ACPI fan path.

With the tach also reading 0 / 0, my first guess is that the new SoC simply doesn’t speak 3.5.8’s dialect. That would make it an unsupported pairing rather than a lockout.

What’s going on in 3.13.7. I haven’t looked at it yet; my rebuild work stops at 3.5.8. From your description (the override handlers gone, writes answering 0xff, reads returning a constant 0xffff, and a new capability reply), it reads like a deliberate removal rather than a move. The only way to know is to look for a new operation or command family in its eSPI dispatch.

One question back: under a long, heavy load on 3.13.7, do the fans ever go above ~4,350 rpm? If that capability reply describes the real range, the fans may now top out well below 3.5.8’s 9,000 / 13,500, and that would matter more for long runs than the missing override. Heat soak on long runs is what started this thread, with the firmware’s critical trip at 104.8 °C.

I’d also follow NVIDIA support’s request and not downgrade while they review it. If they confirm the override was removed on purpose, it would be good to hear whether there’s a supported way to raise the fan floor now.

For now I’ll stick with this firmware because my benching depends on cooling the units to the same temperature between runs.

@enjihn: not as-is. The driver only binds on NVIDIA’s DGX Spark board (DMI NVIDIA / NVIDIA_DGX_Spark / P4242) and refuses anything else, on purpose. The GX10 may use the same EC path, but I don’t have one to test, and I’d rather not guess on someone else’s firmware.

Update and a correction: EC 3.5.8 works with the October SoC

Hey Christopher, an update, and a correction to what I posted earlier.

I wrote that the October SoC (2.158.15) locks owners out of EC 3.5.8. That was wrong. On Oct 25 we only tried the EC mailbox: our own module using nvfancontrol’s protocol (OEM1 command 17 and the shared page, through the SoC firmware’s FF-A eSPI service). Its very first read-only capability query timed out with eSPI status 5, and we jumped from “this path doesn’t work on this pairing” to “this pairing can’t take fan requests”. To be clear, that says nothing about your driver: yours goes through the EC packet relay, a different FF-A service, which we never tried on this mix.

What we skipped was ACPI: \_SB.FAN0/FAN1 _FSL through cooling_device*/cur_state, which the BIOS turns into an EC fan command with a target of 975 + 33.75 × level rpm. On EC 3.5.8 + SoC 2.158.15 it just works, no module needed:

  • 100: both fans at 4,320 rpm (on 3.13.7 the same write is accepted and ignored)
  • 40: ~2,270 rpm. 20: the second fan stalls. 0: both stop, so we never go below 40.
  • 20 cores busy: 73 °C peak, ~60 °C settled (3.13.7: 92 °C and climbing)
  • one write moves both fans on our unit; in the DSDT both devices go through the same method, which sets both fan targets

To your earlier question: on 3.13.7 our fans never went past ~3,090 rpm, even at 92 °C.

One difference worth noting: your driver sets a floor, so the EC can still add cooling on top. The ACPI level is a target that replaces the EC’s own curve, at least at normal temperatures, so the script has to do all the work. That’s why we keep a hard minimum of 40 and go to 100 on any error. On the June pair, your floor approach is the more conservative one.

Thanks again: your report that 3.5.8 works on your units is what sent us back to it. Full steps are in our thread: New DGX Spark: fans barely speed up at high temps and can't be adjusted. Critical. Please open fan control

I’m truly impressed by this.