[radeonsi] “Not enough memory for command submission” with AMD FirePro S7150 GCN3 Tonga XT GL
I first reported it there: https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/2039352
I'm reproducing the bug with current Mesa (d97427f41c1603db2f657b5d9c3f91a97f74b1c0
) with LLVM 16.0.6.
I first reproduced the bug with Mesa 23.2.1 (LLVM 15.0.7) from Ubuntu 23.10 Mantic Minautor
In both case Mesa reports DRM 3.54.
I'm running Linux 6.5.0-9-generic from Ubuntu 23.10 Mantic Minautor.
I have two GPUs plugged in, an AMD Radeon PRO W7600 as default card, and an AMD FirePro S7150 as secondary card.
If I run glxinfo -B
on the AMD FirePro S7150 this way:
DRI_PRIME=1 glxinfo -B
The glxinfo
binary never returns, it only prints one line and doesn't exit:
name of display: :1
While, in the mean time, the dmesg
log is filled with many lines like that per second:
[63917.968215] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Not enough memory for command submission!
[63917.969742] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Not enough memory for command submission!
[63917.971166] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Not enough memory for command submission!
[63917.972500] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Not enough memory for command submission!
[63917.973860] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Not enough memory for command submission!
[63917.975198] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Not enough memory for command submission!
[63917.976547] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Not enough memory for command submission!
[63917.977905] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Not enough memory for command submission!
The log spam immediately starts when I run glxinfo -B
, and immediately stops when I kill glxinfo
.
Since it's a secondary card (it even doesn't have any output), it doesn't prevent to run some software on my system, but software that may iterate the available GPU (such as Unigine Superposition) would not run at all, even if there is another card that works, because of being stuck while querying the AMD FirePro S7150.
The AMD FirePro S7150 is a GCN 3.0 Tonga XT GL compute card, meant for virtualization, this is the single-chip variant. It is expected to have 8GB of GPU memory. SR-IOV is enabled in BIOS, but no custom kernel module is currently used for SR-IOV usage neither any SR-IOV software yet.