Loading...
Loading...
What were you trying to do that didn't work? Run to frozen VM due to the exhausted DMA buffer on attempt to build cuda-samples in VM where a GB100 is passed through from NVidia (grace-hopper) host. What is the impact of this issue to you? The VM is frozen and won’t be recovered until a reboot Please provide the package NVR for which the bug is seen: host: kernel-6.12.0-261.el10 (64KB) qemu: qemu-kvm-10.1.0-26.el10 guest: kernel-6.12.0-250.el10 (64KB) How reproducible is this bug?: Steps to reproduce Provision NVidia grace-hopper to kernel-6.12.0-261-64k.el10, and update qemu to qemu-kvm-10.1.0-26.el10 Start the guest with the following command lines. Note that my qemu binary was built from tag qemu-kvm-10.1.0-26.el10 host$ /home/gavin/sandbox/qemu.main/build/qemu-system-aarch64 -accel kvm -machine virt,gic-version=host,ras=on,highmem-mmio-size=4T -cpu host -smp cpus=72 -m size=8G -object memory-backend-ram,id=mem0,size=8G -numa node,nodeid=0,memdev=mem0,cpus=0-71 -numa node,nodeid=1 -numa node,nodeid=2 -numa node,nodeid=3 -numa node,nodeid=4 -numa node,nodeid=5 -numa node,nodeid=6 -numa node,nodeid=7 -numa node,nodeid=8 -L /home/gavin/sandbox/qemu.main/build/pc-bios -monitor none -serial mon:stdio -nographic -gdb tcp::6666 -qmp tcp:localhost:5555,server,wait=off -bios /home/gavin/sandbox/qemu.main/build/pc-bios/edk2-aarch64-code.fd -boot c -drive file=/home/gavin/sandbox/images/disk.qcow2,if=none,id=drive0 -device virtio-blk-pci,id=virtblk0,bus=pcie.0,drive=drive0,num-queues=4,bootindex=1 -netdev tap,id=tap1,vhost=true,script=/etc/qemu-ifup,downscript=/etc/qemu-ifdown -device virtio-net-pci,bus=pcie.0,netdev=tap1,mac=b8:3f:d2:1d:3e:f0 -device pxb-pcie,bus=pcie.0,bus_nr=1,id=pcie.1,numa_node=0 -device arm-smmuv3,primary-bus=pcie.1,id=s0,accel=on,ats=on,ril=off,ssidsize=20,oas=48 -device pcie-root-port,id=pcie.1.0,bus=pcie.1,chassis=1,io-reserve=0 -object iommufd,id=iommufd0 -device vfio-pci-nohotplug,host=0009:01:00.0,bus=pcie.1.0,rombar=0,id=pt0,iommufd=iommufd0 -object acpi-generic-initiator,id=gi1,pci-dev=pt0,node=1 -object acpi-generic-initiator,id=gi2,pci-dev=pt0,node=2 -object acpi-generic-initiator,id=gi3,pci-dev=pt0,node=3 -object acpi-generic-initiator,id=gi4,pci-dev=pt0,node=4 -object acpi-generic-initiator,id=gi5,pci-dev=pt0,node=5 -object acpi-generic-initiator,id=gi6,pci-dev=pt0,node=6 -object acpi-generic-initiator,id=gi7,pci-dev=pt0,node=7 -object acpi-generic-initiator,id=gi8,pci-dev=pt0,node=8 In the VM, the attempt to build ‘cuda-samples’ fails, messages spew from VM’s serial console complain the DMA bounce buffer has been exhausted. guest$ cd /root/cuda-samples/build guest$ make -j 64 clean; make -j 64 : [ 23%] Building CUDA fatbin: /root/cuda-samples/build/cpp/2_Concepts_and_Techniques/threadMigration/threadMigration_kernel64.fatbin [ 24%] Building CUDA object cpp/3_CUDA_Features/bf16TensorCoreGemm/CMakeFiles/bf16TensorCoreGemm.dir/bf16TensorCoreGemm.cu.o [ 24%] Building CUDA object cpp/3_CUDA_Features/binaryPartitionCG/CMakeFiles/binaryPartitionCG.dir/binaryPartitionCG.cu.o [ 24%] Building CUDA object cpp/3_CUDA_Features/cdpAdvancedQuicksort/CMakeFiles/cdpAdvancedQuicksort.dir/cdpAdvancedQuicksort.cu.o <... stopped here, no more output ...> From the VM's serial port, error messages are seen: qemu-system-aarch64: virtio: bogus descriptor or out of resources [ 82.993109] virtio_blk virtio0: [vda] new size: 268435456 512-byte logical blocks (137 GB/128 GiB) [ 243.522031] INFO: task kworker/u288:0:12 blocked for more than 122 seconds. [ 243.522624] Tainted: G OE ------ --- 6.12.0-250.el10.aarch64+64k #1 [ 243.523223] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [ 243.523797] task:kworker/u288:0 state:D stack:0 pid:12 tgid:12 ppid:2 task_flags:0x4248060 flags:0x00000010 [ 243.524623] Workqueue: xfs-cil/dm-0 xlog_cil_push_work [xfs] [ 243.525162] Call trace: [ 243.525346] __switch_to+0xf0/0x1a8 (T) [ 243.525639] __schedule+0x280/0x848 [ 243.525906] schedule+0x3c/0xc0 [ 243.526143] xlog_state_get_iclog_space+0x264/0x358 [xfs] [ 243.526594] xlog_write_get_more_iclog_space+0xd0/0x140 [xfs] [ 243.527060] xlog_write_partial+0x2d4/0x310 [xfs] [ 243.527471] xlog_write+0x1f0/0x268 [xfs] [ 243.527808] xlog_cil_push_work+0x398/0x610 [xfs] [ 243.528192] process_one_work+0x180/0x420 [ 243.528498] worker_thread+0x260/0x390 [ 243.528778] kthread+0x110/0x130 [ 243.529018] ret_from_fork+0x10/0x20 Expected results The attempt to build ‘cuda-samples’ in the VM should succeed. Actual results The attempt to build ‘cuda-samples’ in the VM fails.
Done-Errata
Red Hat Integration
Learn more about where this data comes from
BugZero Plan
Streamline upgrades with automated vendor bug scrubs
BugZero Prevent
Wish you caught this bug sooner? Get proactive today.