Commit Graph

85 Commits (master)

Author SHA1 Message Date
Marcus Köhler 084881c6e9 Allow correct compilation with Clang/LLVM
Signed-off-by: Marcus Köhler <khler.marcus@gmail.com>
1 month ago
Sakari f72619e468 Fix build on kernel 6.8+ 1 month ago
Geoffrey McRae 1374629d08 [amd] add support for AMD Instinct MI100 1 month ago
Alyssa Ross 4b466e92a2 Fix GCC declaration-after-statement error
Since upgrading to Linux v5.18 in Nixpkgs, we've been seeing an
"ISO C90 forbids mixed declarations and code" error from GCC.

This patch fixes it by initializing regs as part of its declaration,
meaning hook will no longer be declared after a statement.

Signed-off-by: Alyssa Ross <hi@alyssa.is>
2 years ago
dev-sda1 7d43285a50 Bump MODULE_VERSION to 0.1.1
MODULE_VERSION was still set to the old version of 0.1.0, which would give out a warning when DKIM performed version sanity checks.
3 years ago
Térence Clastres 225a49a409 [core] add support for linux 5.11
This approach maintains compatibility with previous kernel versions.

Thanks to @justinkb for finding the commit that broke it (torvalds/linux@d19ad07).
3 years ago
Adam Madsen 547aec42c4 [core] add MODULE_VERSION(), bump DKMS version for first release 3 years ago
Adam Madsen fc694db073 [amd] audio: Preserve PCI config space for audio device 3 years ago
Geoffrey McRae 6875092f2f [core] revert commits that are not quite ready yet
This reverts commit 30ffca808b.
This reverts commit 623fa20705.
3 years ago
Adam Madsen 623fa20705 [amd] audio: Preserve PCI config space for audio device 3 years ago
Matthias Tafelmeier 765b05cdbd refer to uaccess to prevent build failure
Tackling following build glitch for 4.19 kernel:

/var/lib/dkms/vendor-reset/0.0.18/build/src/ioctl.c: In function ‘vendor_reset_ioctl_reset’:
/var/lib/dkms/vendor-reset/0.0.18/build/src/ioctl.c:34:7: error: implicit declaration of function ‘copy_from_user’; did you mean ‘sg_copy_from_buffer’? [-Werror=implicit-function-declaration]
   if (copy_from_user(&iodev, (void __user *)arg, sizeof(iodev)))
       ^~~~~~~~~~~~~~
       sg_copy_from_buffer
cc1: some warnings being treated as errors
make[4]: *** [/usr/src/linux-headers-4.19.0-12-common/scripts/Makefile.build:308: /var/lib/dkms/vendor-reset/0.0.18/build/src/ioctl.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [/usr/src/linux-headers-4.19.0-12-common/Makefile:1565: _module_/var/lib/dkms/vendor-reset/0.0.18/build] Error 2
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-12-amd64'
make: *** [Makefile:8: build] Error 2
3 years ago
Adam Madsen c5cb424fec [amd] polaris10: check if reset is needed, use BACO if possible 4 years ago
Adam Madsen 838ccab480 [amd] firmware: fix IOREG access 4 years ago
Adam Madsen ed604594d3 [amd] common: fix indirect register access 4 years ago
Geoffrey McRae 6140e2fdb0 [amd] all: removed dependency on DRM 4 years ago
Geoffrey McRae 69ec73efd3 [hook] disable TCO for the hooked function 4 years ago
Geoffrey McRae d88aecfc00 [core] mark the configuration table as const 4 years ago
Geoffrey McRae 8ea3ae46fc [core] print reset progress messages 4 years ago
Geoffrey McRae 2d54cdb714 [core] be explicit about the device-db end of array init 4 years ago
Geoffrey McRae ac2bb1cd6b [core] fixed bad mathch on PCI_ANY_ID 4 years ago
Adam Madsen 7d18e6a4c2 [amd] navi10: actually include that missing header file 4 years ago
Adam Madsen 8818587b84 [amd] navi10: add missing header file. 4 years ago
Adam Madsen 47022fe550 [amd] navi10: a little tidying up 4 years ago
Adam Madsen 0dab58276f [amd] common: add missing device dereference. 4 years ago
Geoffrey McRae 9917242b8d [amd] all: always disable bus reset as early as possible 4 years ago
Geoffrey McRae 2f588b8870 [core] honour the kernels probe requests 4 years ago
Adam Madsen 246f57e0b0 [core] hook: prefer included fixes over pci/quirks.c 4 years ago
Geoffrey McRae 06532d1eb7 [amd] vega10: fixed missed macro rename for prints 4 years ago
Geoffrey McRae 6b943a0376 [core] added vr_* logging macros and refactored to use them 4 years ago
Geoffrey McRae 78363b9353 [core] added per reset versioning 4 years ago
Geoffrey McRae 391f99195a [amd] firmware: include compat.h instead of a forward decl 4 years ago
Adam Madsen 331cabae19 [amd] vega10: do not disable some features that apparently cause the SMU to hang up in some circumstances. 4 years ago
Adam Madsen f20d8b70bc [amd] vega10: SMU feature disable + gfx reset + BACO seems to be the secret sauce 4 years ago
Adam Madsen c18730a60d [amd] common: Map port I/O space (proper way to access certain ATOM registers?) 4 years ago
Adam Madsen d537ed67d9 [amd] common: remove mutexes and locks 4 years ago
Geoffrey McRae 331f44820e [amd] common: remove useless dependency on DRM 4 years ago
Geoffrey McRae 01074a6010 [core] missed a rename to `hook` 4 years ago
Geoffrey McRae b62fdae038 [core] split hook code out of module.c 4 years ago
Geoffrey McRae dd8eadc6e7 [core] seperate ioctl setup from module init 4 years ago
Geoffrey McRae c1ab03e74a [core] don't return on failure to reset so post-reset gets called 4 years ago
Geoffrey McRae 9397c0bef2 [core] rename `vendor-reset.c` to `ioctl.c` for consistency 4 years ago
Geoffrey McRae 4865020e2c [core] refactor unlocked codepath into it's own function 4 years ago
Geoffrey McRae c8d538e68f [core] cosmetics 4 years ago
Geoffrey McRae cacf13399f [core] refactored to centralize the lookup and reset code 4 years ago
Adam Madsen edda7f02a5 [core] hooks: zero stack-allocated struct. 4 years ago
Adam Madsen 83ca5e9ae5 [core] Zero stack-allocated struct. 4 years ago
Adam Madsen 986e81c09e [amd] navi10: Fix PSP bootloader read at reset check 4 years ago
Geoffrey McRae 47b58acc57 [amd] vega20: added mode1 psp reset 4 years ago
Geoffrey McRae 4dc9a80657 [core] hook: fixed failure to initialize the kprobe struct completely 4 years ago
Geoffrey McRae 69e33e3cb8 [amd] vega20: print no SOL indicator 4 years ago