drm/amd: Parse both v1 and v2 TA microcode headers using same function
authorMario Limonciello <mario.limonciello@amd.com>
Tue, 3 Jan 2023 20:33:37 +0000 (14:33 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Jan 2023 19:32:56 +0000 (14:32 -0500)
commit994a97447e38182f530f246117a882c074d02af7
tree145f654665408c5790f081080b26136a7fe56e72
parent4773fadedca918faec443daaca5e4ea1c0ced144
drm/amd: Parse both v1 and v2 TA microcode headers using same function

Several IP versions duplicate code and can't use the common helpers.
Move this code into a single function so that the helpers can be used.

v2: squash in fix from Mario to remove duplicate ta parsing

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
drivers/gpu/drm/amd/amdgpu/psp_v10_0.c
drivers/gpu/drm/amd/amdgpu/psp_v11_0.c
drivers/gpu/drm/amd/amdgpu/psp_v12_0.c