Commit Graph

24 Commits

Author SHA1 Message Date
Adam Madsen 2d08232dc2 AMD: apply polaris ops to polaris cards :) 2020-11-09 14:13:30 -06:00
Adam Madsen c46c1dd071 AMD: Add PCIE reset method for Polaris 10. 2020-11-09 13:26:16 -06:00
Adam Madsen 91ad547e08 Parse PCI devices in DBDF form. 2020-11-03 18:00:40 -06:00
Adam Madsen d0b17b2bb5 [amd] Update vega10 to use fake dev init 2020-11-02 15:23:53 -06:00
Adam Madsen 710b434e85 Remove extra tab 2020-11-02 15:18:43 -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
Geoffrey McRae 26e3aca758 added author entry for Adam 2020-11-02 22:26:09 +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
Geoffrey McRae 99d99cba4e implemented userspace reset utility 2020-10-31 19:29:36 +11:00
Geoffrey McRae 1175e8ab58 return -EOPNOTSUPP for devices that are not supported 2020-10-31 19:29:16 +11:00
Geoffrey McRae 5e3a6f1399 remove unused reference to uio in the makefile 2020-10-31 19:11:11 +11:00
Geoffrey McRae 86ce357ec8 implemented initial ioctl framework and empty device database 2020-10-31 19:10:01 +11:00
Geoffrey McRae 100bd04d2d Initial module framework 2020-10-31 18:00:00 +11:00