Sources
- Shrink an AMD APU's dedicated VRAM to the minimum
- issue-comment by
dhh
- issue-comment by
dhh
- issue-comment by
superm1
- issue-comment by
superm1
- review-comment by
greptile-apps[bot]
- review-comment by
dhh
- Let AMD GPUs map all of RAM but 8 GiB, not half
- Let AMD GPUs map all of RAM but 8 GiB, not half (#19164)
- issue-comment by
superm1
- issue-comment by
dhh
- issue-comment by
superm1
- issue-comment by
dhh
dhh merged omacom/omarchy#19164 at 08:02 UTC. It landed on the quattro development branch as omacom/omarchy@c3c8acf1ef37. The kernel normally lets a GPU map only half of RAM. On an AMD APU such as Strix Halo, which has almost no dedicated VRAM, that meant a 64 GB machine could not load a 38 GiB local model. The change raises ttm.pages_limit to all of RAM except 8 GiB on machines with an AMD GPU and more than 16 GB. New installs get it directly; existing installs get it through a migration that rebuilds the boot image for the next boot.
In the merged thread, superm1 said this was only half the fix (omacom/omarchy#19164:issuecomment-6940458693). The firmware's VRAM carveout should also be lowered so the kernel has more memory to give the GPU. That can be done through amdgpu's UMA carveout setting or a vendor firmware interface such as HP's hp-bioscfg, and fwupdmgr can wrap both.
dhh replied that he had changed it in the BIOS and did not know of another way.
superm1 answered that fwupd exposes both settings to unprivileged users.
dhh then moved the work to a new PR (omacom/omarchy#19164:issuecomment-6950636560).
That follow-up, omacom/omarchy#19226, opened at 12:49 UTC and is still open. In its current description, which was updated after the coverage day, it adds fwupd to the base packages and sets the smallest carveout the firmware offers through fwupd's video-memory BIOS setting. It sizes the cap for the RAM the next boot will see and adds omarchy device gpu vram, with list and set subcommands, so users can raise the VRAM again. The description says, as the author's own estimate, that a 64 GB Strix Halo shipped with a 32 GB carveout would go from about 24 GiB to about 55 GiB of GPU-addressable memory without a trip into the BIOS.
Review changed the design during the day. superm1 first argued the PR re-implemented in scripts what fwupdmgr already does, and suggested wrapping fwupdmgr --json (omacom/omarchy#19226:issuecomment-6949856069).
dhh switched to fwupd and asked which backend the firmware honours when the two disagree (omacom/omarchy#19226:issuecomment-6951264902).
superm1 replied that both should change the same value and only take effect after a reboot (omacom/omarchy#19226:issuecomment-6951524213).
greptile-apps[bot], an automated reviewer, warned that a failed settings read could mark the migration done without changing anything.
dhh answered that the migration now stays pending when a read fails (omacom/omarchy#19226:discussion_r4600959562).
dhh then posted the results of a test with a real reboot on an HP ZBook Ultra G3a (omacom/omarchy#19226:issuecomment-6951717123). He reported that on this machine neither backend can change the carveout from Linux. HP's setting rejected writes with error 0x4, and amdgpu's setting accepted a write but was reset at boot. He warned that the current code could leave the migration stuck, or size the cap for RAM that never appears. His planned fixes are to treat a failed write as non-fatal in the default run and to size the cap only for the RAM present now. He also asked
superm1 whether this firmware behaviour is expected. The PR has not merged, so none of this has reached users yet.
