A Module for AMD GPUs Reset-Bug: vendor-reset

It was pain in the *ss until now. Now, We can use our AMD Cards again and again without rebooting the host OS. Hallelujah!

This processes for quick installation guide and doesn’t contain all information about the module which kernel parameters are required to be on. Please check the repo for further information. This installation process is valid for debian systems. Personally, I did many times with Ubuntu and Pop!_OS.

1- Prerequisities

DKMS and Git should be installed in your system to get the files from git and installing it.

sudo apt install dkms git

2- Module Installation

The following shell codes will download the vendor-reset from Github repo and install it.

cd ~ 
git clone https://github.com/gnif/vendor-reset
cd vendor-reset
sudo dkms install .

3- Loading the module.
The module is installed but, we need to load the module in every boot before running the VM. Because of this problem, we can do this process automatically by the following changes in modules file.

sudo nano /etc/modules

add

vendor-reset
Editting the /etc/modules

Save and exit the file. After changes in module, initramfs need to be updated by the following code.

sudo update-initramfs -u
sudo reboot

We can check the module with “lsmod” in terminal if it is loaded or not. The following code should show an output that vendor_reset and integer on the command window.

lsmod |grep vendor
vendor-reset is automatically active after reboot

Thanks gnif and other coders who wrote this patch and published for VFIO Community.

Leave a Reply