Comments (6)
My guess is some missing include in that old of a kernel. Maybe try including <linux/uaccess.h> directly in ioctl.c?
from vendor-reset.
Thanks, I tried that. dkms
still looks like it's being blocked by some intermediate state.
$ sudo dkms install .
Error! DKMS tree already contains: vendor-reset-0.0.18
You cannot add the same module/version combo more than once.
make
however seems to be sucessful:
$ make clean
make -C /lib/modules/4.19.0-13-amd64/build M=/home/kai/vendor-reset clean
make[1]: Entering directory '/usr/src/linux-headers-4.19.0-13-amd64'
make[1]: Leaving directory '/usr/src/linux-headers-4.19.0-13-amd64'
$ make
make -C /lib/modules/4.19.0-13-amd64/build M=/home/kai/vendor-reset modules
make[1]: Entering directory '/usr/src/linux-headers-4.19.0-13-amd64'
CC [M] /home/kai/vendor-reset/src/module.o
CC [M] /home/kai/vendor-reset/src/vendor-reset-dev.o
CC [M] /home/kai/vendor-reset/src/ioctl.o
CC [M] /home/kai/vendor-reset/src/ftrace.o
CC [M] /home/kai/vendor-reset/src/hook.o
CC [M] /home/kai/vendor-reset/src/amd/common.o
CC [M] /home/kai/vendor-reset/src/amd/compat.o
CC [M] /home/kai/vendor-reset/src/amd/firmware.o
CC [M] /home/kai/vendor-reset/src/amd/navi10.o
CC [M] /home/kai/vendor-reset/src/amd/polaris10.o
CC [M] /home/kai/vendor-reset/src/amd/vega10.o
CC [M] /home/kai/vendor-reset/src/amd/vega20.o
CC [M] /home/kai/vendor-reset/src/amd/amdgpu/amdgpu_device.o
CC [M] /home/kai/vendor-reset/src/amd/amdgpu/amdgpu_discovery.o
CC [M] /home/kai/vendor-reset/src/amd/amdgpu/amdgpu_bios.o
CC [M] /home/kai/vendor-reset/src/amd/amdgpu/amdgpu_atomfirmware.o
CC [M] /home/kai/vendor-reset/src/amd/amdgpu/atom.o
CC [M] /home/kai/vendor-reset/src/amd/amdgpu/common_baco.o
CC [M] /home/kai/vendor-reset/src/amd/amdgpu/navi10_reg_init.o
CC [M] /home/kai/vendor-reset/src/amd/amdgpu/navi12_reg_init.o
CC [M] /home/kai/vendor-reset/src/amd/amdgpu/navi14_reg_init.o
CC [M] /home/kai/vendor-reset/src/amd/amdgpu/polaris_baco.o
CC [M] /home/kai/vendor-reset/src/amd/amdgpu/smu7_baco.o
CC [M] /home/kai/vendor-reset/src/amd/amdgpu/vega10_reg_init.o
CC [M] /home/kai/vendor-reset/src/amd/amdgpu/vega20_reg_init.o
LD [M] /home/kai/vendor-reset/vendor-reset.o
Building modules, stage 2.
MODPOST 1 modules
CC /home/kai/vendor-reset/vendor-reset.mod.o
LD [M] /home/kai/vendor-reset/vendor-reset.ko
make[1]: Leaving directory '/usr/src/linux-headers-4.19.0-13-amd64'
make install
however fails differently:
$ sudo make install
make -C /lib/modules/4.19.0-13-amd64/build M= INSTALL_MOD_PATH= modules_install
make[1]: Entering directory '/usr/src/linux-headers-4.19.0-13-amd64'
cp: cannot stat './modules.order': No such file or directory
make[3]: *** [/usr/src/linux-headers-4.19.0-13-common/Makefile:1304: _modinst_] Error 1
make[2]: *** [Makefile:146: sub-make] Error 2
make[1]: *** [Makefile:8: all] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.19.0-13-amd64'
make: *** [Makefile:11: install] Error 2
The mentioned file doesn't exist from my perspective as well.
This is all new to me so maybe I'm making some stupid mistake.
Would a kernel upgrade help? Any minimum version recommended?
from vendor-reset.
Ok I upgraded to 5.9 and I'm no longer able to boot the machine. Looks like nVidia kernel modules messed things up 👎
Old kernel doesn't boot any more as well. Also some nVidia error messages. Might take some time to figure that out.
from vendor-reset.
To compile vendor-reset
on old kernels, you might need this (ugly) patch:
--- a/src/ioctl.c
+++ b/src/ioctl.c
@@ -21,6 +21,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA
#include "vendor-reset-ioctl.h"
#include <linux/miscdevice.h>
+#include <linux/uaccess.h>
#define VENDOR_RESET_IOCTL_DEVNAME "vendor_reset"
from vendor-reset.
That's what @iggy suggested. I had a lot of follow up problems, so I'm currently rebuilding the machine using the latest Manjaro (minimal). Will report back.
from vendor-reset.
Cannot reproduce the problem with a more recent kernel and build environment.
from vendor-reset.
Related Issues (20)
- Is it possible to support iGPU like 5900HX? HOT 4
- Reset of Radeon VII not working on Unraid
- Compile fails on 5.18 kernel (Fedora 36) HOT 1
- Support for other brands
- Request to add the hardware id of the amd APU HOT 21
- Navi 21? HOT 2
- Looping Invalidation Time-out Error and possible fix
- > Has anyone here managed to pass one through successfully?
- a small suggestion
- eGPU Not Resetting
- How do I setup vendor-reset. HOT 1
- Install module error
- Radeon PRO WX7100 (Polaris 10) reset bug not fixed HOT 2
- How to add new GPUs/devices?
- Request support for Ryzen 7 iGPU like 5000U, 5825U HOT 3
- possible to work for an nvidia gpu?
- Build Error: strlcpy removed in kernel 6.8.0-rc1 HOT 3
- Instinct MI100 cluster fails to reset on restart HOT 2
- Proxmox 8.2.2 Vega 56 (eGPU) kernel 6.8 -> 6.5 (not reseting after downgraded to 6.5)
- Is it possible to make this work for the 780M on an 7840hs?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vendor-reset.