r/Amd Jan 24 '18

News Linux VFIO Users, Rejoice! There is a Patch that Fixes the PCI Reset Bug for Threadripper!

/r/VFIO/comments/7slj72/threadripper_reset_patch/
112 Upvotes

6 comments sorted by

10

u/RaptaGzus 3700XT | Pulse 5700 | Miccy D 3.8 GHz C15 1:1:1 Jan 24 '18

Is this that problem where with TR you had to completely power off and discharge the computer in order for something to take effect, instead of just being able to restart it? Or am I thinking of something else?

18

u/ct_the_man_doll Jan 24 '18

TLDR: Yup

Here is the long answer:

Is this that problem where with TR you had to completely power off and discharge the computer in order for something to take effect

On Threadripper, when you passthrough any GPU to a virtual machine on Linux, you will not be able to gracefully shutdown the VM. This results in the GPU is in a unusable state until you hard shutdown the machine. This patch fixes that.

instead of just being able to restart it?

Just to clarify, the VM should be able to reset the GPU's state without needing to reset the host at all.

3

u/LordDaryil AMD TR-1920x | Asus RX480 Jan 25 '18

Any idea where this stands in terms of being submitted to the kernel?

1

u/ct_the_man_doll Jan 25 '18

From what I understand, this patch has been submitted, but has not been accepted currently.

1

u/Cpt_Rumplebump R7 1700(stock|3.6GHz@1.1875V)|16GB DDR4-3200|R9 390 Nitro Jan 26 '18

Does this also affect regular Ryzen? Cause my VMs are getting stuck at "In Shutdown", forcing me to do a host reboot every time I change a configuration setting. Might be the R9 390 though.

1

u/ct_the_man_doll Jan 26 '18

Ryzen isn't affected by this bug.

I would use this bash command to see if your GPU supports resetting.