Skip to content

Workaround for lack of Vega 10 PCI reset code in the linux kernel

Notifications You must be signed in to change notification settings

netsiphon/vega-reset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a15c2c4 · Dec 8, 2020

History

5 Commits
Feb 26, 2019
Dec 8, 2020
Feb 26, 2019
Feb 26, 2019

Repository files navigation

NO LONGER NEEDED for AMD PCI resets...please see https://github.com/gnif/vendor-reset for a working dkms module that fulfills this need.

AMD Vega 56/64 Reset Patch

Due to the architecture of Vega 10 and the lack of appropriate reset code for its built-in PCIe switch, until said reset code exists, one can disable PCIe resets for their Vega card by applying this patch. There appears to be an actual reset patch in the works but no word since last year.

Patch from https://gist.github.com/numinit/1bbabff521e0451e5470d740e0eb82fd

Ubuntu 18.04 LTS example:

Download the latest full kernel release version ...example here is 4.20

wget https://github.com/torvalds/linux/archive/v4.20.zip
unzip v4.20.zip

Clone this repo and patch the kernel source

git clone https://github.com/netsiphon/vega-reset.git
cd vega-reset/
patch -d ../linux-4.20 -p1 < fix-vega-reset.patch

All hunks must succeed to proceed. If they don't look for the failed hunk and manually correct it if you can.

Replace configuration with your OS kernel configuration from /boot

Please note that the make-custom-kernel script is set to generate 16 threads for the 1700/2700. Choose the appropriate number for an alternate model.

./make-custom-kernel ../linux-4.20 config-4.18.0-13-lowlatency

Restart to use the new kernel

About

Workaround for lack of Vega 10 PCI reset code in the linux kernel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages