Adam Madsen
c5cb424fec
[amd] polaris10: check if reset is needed, use BACO if possible
2020-11-18 17:45:51 -06:00
Adam Madsen
838ccab480
[amd] firmware: fix IOREG access
2020-11-18 17:44:50 -06:00
Adam Madsen
ed604594d3
[amd] common: fix indirect register access
2020-11-18 17:43:28 -06:00
Geoffrey McRae
6140e2fdb0
[amd] all: removed dependency on DRM
2020-11-15 23:52:38 +11:00
Geoffrey McRae
d88aecfc00
[core] mark the configuration table as const
2020-11-15 15:12:01 +11:00
Adam Madsen
7d18e6a4c2
[amd] navi10: actually include that missing header file
2020-11-14 18:39:11 -06:00
Adam Madsen
8818587b84
[amd] navi10: add missing header file.
2020-11-14 18:31:22 -06:00
Adam Madsen
47022fe550
[amd] navi10: a little tidying up
2020-11-14 11:16:50 -06:00
Adam Madsen
0dab58276f
[amd] common: add missing device dereference.
2020-11-14 01:07:52 -06:00
Geoffrey McRae
9917242b8d
[amd] all: always disable bus reset as early as possible
2020-11-14 17:53:50 +11:00
Geoffrey McRae
2f588b8870
[core] honour the kernels probe requests
2020-11-14 17:25:41 +11:00
Geoffrey McRae
06532d1eb7
[amd] vega10: fixed missed macro rename for prints
2020-11-14 13:27:52 +11:00
Geoffrey McRae
6b943a0376
[core] added vr_* logging macros and refactored to use them
2020-11-14 13:25:17 +11:00
Geoffrey McRae
78363b9353
[core] added per reset versioning
2020-11-14 13:25:17 +11:00
Geoffrey McRae
391f99195a
[amd] firmware: include compat.h instead of a forward decl
2020-11-14 13:25:17 +11: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
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
cacf13399f
[core] refactored to centralize the lookup and reset code
2020-11-12 08:16:51 +11:00
Adam Madsen
986e81c09e
[amd] navi10: Fix PSP bootloader read at reset check
2020-11-11 13:12:52 -06:00
Geoffrey McRae
47b58acc57
[amd] vega20: added mode1 psp reset
2020-11-11 12:53:10 +11:00
Geoffrey McRae
69e33e3cb8
[amd] vega20: print no SOL indicator
2020-11-11 10:59:55 +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
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
c21bcddd9e
AMD: disable bus resets.
2020-11-10 00:20:32 -06:00
Adam Madsen
afbc509011
AMD: allocate amd_fake_dev struct for polaris10.
2020-11-09 14:24:11 -06:00
Adam Madsen
c46c1dd071
AMD: Add PCIE reset method for Polaris 10.
2020-11-09 13:26:16 -06:00
Adam Madsen
d0b17b2bb5
[amd] Update vega10 to use fake dev init
2020-11-02 15:23:53 -06:00
Adam Madsen
68ca4816b6
Load and parse BIOS/firmware where possible
2020-11-02 14:47:13 -06:00
Geoffrey McRae
7c1c9aa44a
[amd] cosmetics
2020-11-03 00:30:06 +11:00
Geoffrey McRae
2b21a6e3cf
[amd] added amdgpu_discovery and initial navi10 setup code
2020-11-03 00:16:49 +11:00
Adam Madsen
7faae1b95a
Guard against common cases where vega10 does not
...
need to be reset.
Specifically, check if the card is already in BACO. If so, exit. If the card shows no signs of life, exit because we likely can't do anything. If the card shows signs of life, do a BACO reset.
2020-11-01 23:29:53 -06:00
Adam Madsen
eb42a21118
Vega10 BACO reset should work now.
2020-11-01 21:41:46 -06:00
Adam Madsen
4ecfddfc0e
Unmap mmio post reset.
2020-11-01 21:16:22 -06:00
Adam Madsen
95bcd0f0f1
Collect some precondition info
2020-11-01 20:18:39 -06:00
Adam Madsen
b7554f9035
Free mutex
2020-11-01 19:17:30 -06:00
Adam Madsen
db50c45f35
Store pointer to vendor struct, fix crash in lock.
2020-11-01 19:16:25 -06:00
Adam Madsen
b8517880ea
Implement BACO for vega10.
...
Additionally, imported a whole bunch of stuff from the `amdgpu` module.
2020-11-01 18:48:10 -06:00
Adam Madsen
1a32bb50ba
Add missing license header.
2020-11-01 16:15:29 -06:00
Adam Madsen
9c2185f113
Add structure for common pre- and post-reset tasks
2020-11-01 16:14:11 -06:00
Geoffrey McRae
5a32e3e3c2
restructure and added stubs for vega10, vega20 and navi10
2020-10-31 20:14:36 +11:00