>>107602013
A while ago I was complaining about gpu passthrough, and just couldn't find anything about it. The issue was that linux was setting the powerstate to d3cold when the quadro rtx4000 I was using didn't really have support for that and couldn't recover. Turns out that the solution was to just to add this systemd service.
[Unit]
Description=Disable D3cold for passthrough GPU
After=default.target
[Service]
Type=oneshot
ExecStart=/bin/sh -c 'echo 0 > /sys/bus/pci/devices/0000:c1:00.0/d3cold_allowed'
[Install]
WantedBy=multi-user.target
My 70 iq self couldn't find anything relevent throught google, but it only took 5 minutes with chatgpt to turn this error code.
Comment too long. Click here to view the full text.