Repository navigation
fix(agc): name the reason when /dev/udmabuf cannot be opened - #1688
Conversation
|
End-to-end check with a display, on this PR's head: Linux, RX 7600 (RADV, Mesa 25.2.8), headless weston + Xwayland, DOOM PPSA99666 v1.1.1 built from source (byte-identical to the release), relinked with User without access to User in the
The first run after a rebuild can still fall back with |
…mabuf importWatchTests required the dma-buf import probe to succeed whenever the device supports dma-buf import. The probe also needs /dev/udmabuf. GitHub's Linux runner has no such node, and many distributions create it as root:kvm 0660 (boykopovar#1688). The probe then fails at "open /dev/udmabuf", and the suite stopped there in CI. The driver already handles this case: such ranges are copied instead of imported. When the probe fails at that step, the case now reports the dma-buf probe as not tested, as it does when the device has no dma-buf import. Any other probe failure still fails the case. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Native Windows run, since no Windows results were posted. Setup: Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release. Head
No title was run. 🤖 Addressed by Claude Code |
On Linux, shared direct memory is imported through /dev/udmabuf (boykopovar#943). Many distributions create it as root:kvm 0660, so a user outside the kvm group cannot open it. The ranges are then copied instead of imported, and GPU stores through FLAT/GLOBAL addresses to them fail with "BDA access failed": DOOM PPSA99666's compute presenter falls back to its CPU scaler. The only trace was "failed at open /dev/udmabuf (-1000072003)", a Vulkan result that hides errno. Print the open error once, with the fix for EACCES, and document the requirement in USAGE.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
55be83f to
f70d2bd
Compare
…mabuf importWatchTests required the dma-buf import probe to succeed whenever the device supports dma-buf import. The probe also needs /dev/udmabuf. GitHub's Linux runner has no such node, and many distributions create it as root:kvm 0660 (boykopovar#1688). The probe then fails at "open /dev/udmabuf", and the suite stopped there in CI. The driver already handles this case: such ranges are copied instead of imported. When the probe fails at that step, the case now reports the dma-buf probe as not tested, as it does when the device has no dma-buf import. Any other probe failure still fails the case. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ission fix(agc): name the reason when /dev/udmabuf cannot be opened

What
On Linux, shared direct memory is imported through
/dev/udmabuf(#943) when the driver imports dma-buf memory. Many distributions create the node asroot:kvmwith mode0660(#943's checklist notes this, and its test machine had a per-user ACL), so a user outside thekvmgroup cannot open it. The ranges are then copied instead of imported, and GPU stores through FLAT/GLOBAL addresses to them fail. The only trace was the import step and a Vulkan result, which hideserrno:DOOM PPSA99666 (homebrew) presents through a compute kernel that stores into a 32 MiB direct memory range, so on such a machine it logs
video: GPU presentation failed, switching to the CPU scaler.udmabufDeviceprints the open error once, with the fix forEACCES:context.dmaBufImportis set, so nothing is printed on the NVIDIA proprietary driver (fix(agc): keep dma-buf import off the NVIDIA proprietary driver #1329).docs/user/USAGE.mddocuments the requirement next to the Windows direct memory note, including the 64 MiBsize_limit_mbabove which ranges are copied anyway (feat(agc): import shared direct memory through udmabuf on Linux #943).No behaviour change.
Tested
Linux, Ubuntu 24.04.5, GCC 13.3, RX 7600 (RADV, Mesa 25.2.8),
/dev/udmabufroot:kvm 0660./dev/udmabuffailuresBDA access failedmainPermission deniedkvmgroup)--exclude-sce-module libc.prxonmain, run under Xvfb. The run without access used a private mount namespace in which/dev/udmabufwas a root-only file, with the process running as the normal user.ctest -R "agc|guest_agc"withANYPS5_REQUIRE_VULKAN=1: 227/227 with access; the new line does not appear.#ifndef _WIN32block.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code