Repository navigation
fix(agc): keep dma-buf import off the NVIDIA proprietary driver - #1329
Conversation
The dma-buf import probe corrupts the device on the NVIDIA proprietary Linux driver: the import itself succeeds, the allocation right after it fails (vkAllocateMemory, VK_ERROR_OUT_OF_DEVICE_MEMORY), and every later allocation on that device fails with it. The probe runs while each device is set up, so every GPU execution test on that driver fails. Measured on an RTX 3080 Ti, driver 615.71.09, main at df16c4c, ctest -j 16: - without this change: 84 of 408 tests fail, all 84 of them agc_driver execution tests (84 of 166); - APS5_WRITE_WATCH_IMPORTS=watch, which skips both probes but leaves context.dmaBufImport set: 408 of 408 pass, which places the probe, not the shared-backing imports, at the failure. dma-buf import is now off on VK_DRIVER_ID_NVIDIA_PROPRIETARY, which stops the probe and 815d274's imports together. No test provides shared backing, so those imports are not exercised here; they are left off rather than assumed to work on this driver. The Recorder test device takes the same decision, so a developer build behaves like the shipped one. Tested: Linux (CachyOS, GCC, Release, BUILD_TESTING=ON), full suite 408 of 408 with the change, 324 of 408 without it. CI runs on lavapipe, whose driver id is not NVIDIA, so the new condition does not fire there.
|
@adriadam10 ready for eyes — keeps the dma-buf import probe off on the NVIDIA proprietary driver, in VulkanDevice.cpp and the duplicate decision in tests/Recorder.cpp. Four checks green. |
|
Reproduced on 595.91.07, the driver where #1289 didn't reproduce for @hashaam1217. Here the user can open Nobara 44 (Linux 7.2), GCC 16.2.1, Release,
All 100 failures on So the driver fails the same way on 595.91.07 and on 615.71.09. |
What
This is #1289, reproduced first-hand on a different NVIDIA stack (details below).
Since #943 every GPU test fails on the NVIDIA proprietary Linux driver:
ProbeDmaBufImportWriteProtectionruns while each device is set up, and on this driver its import corrupts the device. The import succeeds, the allocation right after it fails withVK_ERROR_OUT_OF_DEVICE_MEMORY, and every later allocation on that device fails with it.This keeps dma-buf import off
VK_DRIVER_ID_NVIDIA_PROPRIETARY, which is option 1 from the report: neither the probe nor 815d274's shared-backing imports run there. No test provides shared backing, so those imports are not exercised by the suite; they are left off rather than assumed to work on this driver. TheRecordertest device takes the same decision, so a developer build behaves like the shipped one.Tested
Linux (CachyOS, GCC, Release,
BUILD_TESTING=ON), RTX 3080 Ti, driver 615.71.09,mainat df16c4c.ctest -j 16ctest -R agc_driver -j 16The 84 failures without the change all carry the report's line:
One difference from the reporting machine: the device is created here (
Vulkan device ready device=…) and the corruption shows up at the next allocation —vkCreateComputePipelines: Vulkan result -13in the first failing test — rather than atvkAllocateDescriptorSets. Same probe line, same trigger.Control that places the probe rather than the imports:
APS5_WRITE_WATCH_IMPORTS=watchskips both probes while leavingcontext.dmaBufImportset, and the suite is green (408/408). So the probe is what breaks the device here.agc_driver_recorder_tests(EXCLUDE_FROM_ALL) still builds after the same change. No CI test is added: CI runs on lavapipe, whose driver id is not NVIDIA, so the new condition never fires there and a test of it there would assert nothing. The measurement above is the evidence instead.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)