Commit Graph

73 Commits

Author SHA1 Message Date
Geoffrey McRae 391f99195a [amd] firmware: include compat.h instead of a forward decl 2020-11-14 13:25:17 +11:00
Adam Madsen 8d2b2f3d4d [core] Bump DKMS version. 2020-11-13 19:42:48 -06:00
Adam Madsen 331cabae19 [amd] vega10: do not disable some features that apparently cause the SMU to hang up in some circumstances. 2020-11-13 19:42:14 -06:00
Adam Madsen d99cee4489 [core] bump DKMS module version 2020-11-13 17:36:28 -06:00
Adam Madsen f20d8b70bc [amd] vega10: SMU feature disable + gfx reset + BACO seems to be the secret sauce 2020-11-13 17:35:03 -06:00
Adam Madsen c18730a60d [amd] common: Map port I/O space (proper way to access certain ATOM registers?) 2020-11-13 17:35:03 -06:00
Adam Madsen d537ed67d9 [amd] common: remove mutexes and locks 2020-11-13 17:35:03 -06:00
Geoffrey McRae 331f44820e [amd] common: remove useless dependency on DRM 2020-11-14 09:27:49 +11:00
Geoffrey McRae 01074a6010 [core] missed a rename to `hook` 2020-11-12 12:12:25 +11:00
Geoffrey McRae b62fdae038 [core] split hook code out of module.c 2020-11-12 12:09:43 +11:00
Geoffrey McRae dd8eadc6e7 [core] seperate ioctl setup from module init 2020-11-12 11:56:08 +11:00
Geoffrey McRae c1ab03e74a [core] don't return on failure to reset so post-reset gets called 2020-11-12 08:34:19 +11:00
Geoffrey McRae 9397c0bef2 [core] rename `vendor-reset.c` to `ioctl.c` for consistency 2020-11-12 08:32:45 +11:00
Geoffrey McRae 4865020e2c [core] refactor unlocked codepath into it's own function 2020-11-12 08:30:43 +11:00
Geoffrey McRae c8d538e68f [core] cosmetics 2020-11-12 08:23:39 +11:00
Geoffrey McRae c30410b1be [core] disable building of the userspace reset for now 2020-11-12 08:16:51 +11:00
Geoffrey McRae cacf13399f [core] refactored to centralize the lookup and reset code 2020-11-12 08:16:51 +11:00
Adam Madsen edda7f02a5 [core] hooks: zero stack-allocated struct. 2020-11-11 14:04:17 -06:00
Adam Madsen 83ca5e9ae5 [core] Zero stack-allocated struct. 2020-11-11 14:03:30 -06:00
Adam Madsen 6dec3dcbaa [core] Add device to Navi14 list 2020-11-11 13:13:17 -06:00
Adam Madsen 986e81c09e [amd] navi10: Fix PSP bootloader read at reset check 2020-11-11 13:12:52 -06:00
Geoffrey McRae adcf81eb94 [core] updated README.md with instructions and additional details 2020-11-11 13:51:00 +11:00
Geoffrey McRae b3c83ed36f [core] bumped dkms version 2020-11-11 12:54:15 +11:00
Geoffrey McRae 47b58acc57 [amd] vega20: added mode1 psp reset 2020-11-11 12:53:10 +11:00
Geoffrey McRae 4dc9a80657 [core] hook: fixed failure to initialize the kprobe struct completely 2020-11-11 11:24:42 +11:00
Geoffrey McRae 69e33e3cb8 [amd] vega20: print no SOL indicator 2020-11-11 10:59:55 +11:00
Geoffrey McRae cc8e8b3005 [core] properly handle failure to register hooks 2020-11-11 10:59:55 +11:00
Geoffrey McRae 34b4e4f446 [core] dkms version bump 2020-11-11 10:03:49 +11:00
Geoffrey McRae 254f6b06c6 [amd] vega20: cosmetics (tabs to spaces) 2020-11-11 10:01:55 +11:00
Geoffrey McRae 255660bd5b [amd] vega20: added preliminary BACO reset (untested) 2020-11-11 09:55:44 +11:00
Geoffrey McRae e45a309e01 [amd] navi10: cosmetics, put back the colon 2020-11-11 07:21:21 +11:00
Geoffrey McRae aacf8f3450 [amd] navi10: cosmetics (tabs to two spaces) 2020-11-11 07:19:35 +11:00
Geoffrey McRae fb4e65efe1 [amd] navi10: print the actual device model 2020-11-11 07:18:36 +11:00
Adam Madsen 7b2f5d76dd Small QoL logging clarification 2020-11-10 13:01:50 -06:00
Adam Madsen 67422cc5bd Log when hooks are installed, set install_hook=y by default 2020-11-10 13:00:04 -06:00
Adam Madsen 346e99246b Fix conditional guard against amdgpu module 2020-11-10 11:36:29 -06:00
Adam Madsen 1394ebdd37 Do not reset when device is under control of amdgpu. 2020-11-10 11:10:48 -06:00
Adam Madsen 8d5922b434 AMD: I think that's Navi. 2020-11-10 09:48:36 -06:00
Adam Madsen 1e5120caa4 Add polaris 11 and polaris 12 device IDs 2020-11-10 07:18:48 -06:00
Adam Madsen 9395482980 Remove unneeded logs 2020-11-10 07:15:09 -06:00
Adam Madsen f3cbc30bf0 Add DKMS config (thanks gnif) 2020-11-10 07:08:05 -06:00
Adam Madsen 5615523f26 Add install target to install module 2020-11-10 06:59:40 -06:00
Adam Madsen 25827381f4 Change exit order in attempt to prevent misc device kobj from sticking around 2020-11-10 06:59:30 -06:00
Adam Madsen c21bcddd9e AMD: disable bus resets. 2020-11-10 00:20:32 -06:00
Adam Madsen 2165913cef Add option to install hook via `make load HOOK=1` 2020-11-10 00:11:26 -06:00
Adam Madsen 2649176b4d userspace: Use `always-y` with `userprogs` to ensure it builds on 5.8. 2020-11-10 00:09:16 -06:00
Adam Madsen 81516a3241 Add additional source 2020-11-09 22:35:10 -06:00
Adam Madsen 74ea6dd018 Add option to hook device reset through ftrace 2020-11-09 22:33:15 -06:00
Adam Madsen afbc509011 AMD: allocate amd_fake_dev struct for polaris10. 2020-11-09 14:24:11 -06:00
Adam Madsen 2d08232dc2 AMD: apply polaris ops to polaris cards :) 2020-11-09 14:13:30 -06:00