[PATCH v2 0/8] Add mode2 reset support for aldebaran

Lazar, Lijo Lijo.Lazar at amd.com
Mon Mar 22 05:57:04 UTC 2021


[AMD Public Use]

This patch series adds support for mode2 reset for aldebaran. Since the
reset sequence is completely different from existing ones, it adds
supports using a new reset control method. The reset control and
handlers can be installed and handle specific types of resets.

v1:
1. Changes to the mode2 sequence as PCI space gets lost during the
sequence.
2. Add support to wait for specific events from PMFW. Reset complete is
considered as one such event.
3. Add support to wait for reset completion on aldebaran
4. Add a new reset control and reset handler method. Reset control can
be installed at device, hive or ip level. For now, it's done only at
device level
5. Add reset control mechanism to the current recover sequence.
6. Expose PSP function to load a list of firmwares
7. Expose CG/PG set functions for use outside of device
8. Add mode2 reset and restore sequences for aldebaran.

v2:
- Coding style fixes
- Mutex protection for new smu api (#2)
- Clear bus mastering before reset (#8)

Lijo Lazar (8):
  drm/amd/pm: Modify mode2 msg sequence on aldebaran
  drm/amd/pm: Add function to wait for smu events
  drm/amd/pm: Add support for reset completion on aldebaran
  drm/amdgpu: Add reset control to amdgpu_device
  drm/amdgpu: Add reset control handling to reset workflow
  drm/amdgpu: Add PSP public function to load a list of FWs
  drm/amdgpu: Make set PG/CG state functions public
  drm/amdgpu: Add mode2 reset support for aldebaran

drivers/gpu/drm/amd/amdgpu/Makefile           |   7 +-
drivers/gpu/drm/amd/amdgpu/aldebaran.c        | 380 ++++++++++++++++++
drivers/gpu/drm/amd/amdgpu/aldebaran.h        |  34 ++
drivers/gpu/drm/amd/amdgpu/amdgpu.h           |  20 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c    |  96 +++--
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c       |  17 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c       |  17 +
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h       |   4 +
drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c     |  98 +++++
drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c.ald |  98 +++++
drivers/gpu/drm/amd/amdgpu/amdgpu_reset.h     |  87 ++++
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c         |   8 +-
drivers/gpu/drm/amd/pm/inc/aldebaran_ppsmc.h  |   3 +-
drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h       |  16 +-
drivers/gpu/drm/amd/pm/inc/smu_types.h        |   1 +
drivers/gpu/drm/amd/pm/inc/smu_v13_0.h        |   5 +
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c     |  14 +
.../drm/amd/pm/swsmu/smu13/aldebaran_ppt.c    |  57 ++-
.../gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c    |  42 +-
drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c        |   2 +-
drivers/gpu/drm/amd/pm/swsmu/smu_cmn.h        |   2 +
21 files changed, 956 insertions(+), 52 deletions(-)
create mode 100644 drivers/gpu/drm/amd/amdgpu/aldebaran.c
create mode 100644 drivers/gpu/drm/amd/amdgpu/aldebaran.h
create mode 100644 drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c
create mode 100644 drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c.ald
create mode 100644 drivers/gpu/drm/amd/amdgpu/amdgpu_reset.h

--
2.17.1

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20210322/bd80946b/attachment-0001.htm>


More information about the amd-gfx mailing list