[PATCH 00/10] switch to common helper for rlc fw init

Hawking Zhang Hawking.Zhang at amd.com
Thu Sep 15 17:01:25 UTC 2022


Replace IP specific implementation with common rlc helper
for rlc firmware initialization.

This also helps reduce duplicated code when introduce new
ip block support.

Hawking Zhang (10):
  drm/amdgpu: add helper to init rlc fw in header v2_0
  drm/amdgpu: add helper to init rlc fw in header v2_1
  drm/amdgpu: add helper to init rlc fw in header v2_2
  drm/amdgpu: add helper to init rlc fw in header v2_3
  drm/amdgpu: add helper to init rlc fw in header v2_4
  drm/amdgpu: add helper to init rlc firmware
  drm/amdgpu/gfx8: switch to amdgpu_gfx_rlc_init_microcode
  drm/amdgpu/gfx9: switch to amdgpu_gfx_rlc_init_microcode
  drm/amdgpu/gfx10: switch to amdgpu_gfx_rlc_init_microcode
  drm/amdgpu/gfx11: switch to amdgpu_gfx_rlc_init_microcode

 drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.c | 264 ++++++++++++++++++++++++
 drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.h |   4 +-
 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c  | 191 +----------------
 drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c  | 156 +-------------
 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c   |  60 +-----
 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c   | 106 +---------
 6 files changed, 289 insertions(+), 492 deletions(-)

-- 
2.17.1



More information about the amd-gfx mailing list