drm/amdgpu: add a helper function to decode iv
authorHawking Zhang <Hawking.Zhang@amd.com>
Wed, 25 Nov 2020 07:25:51 +0000 (15:25 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 23 Dec 2020 20:05:07 +0000 (15:05 -0500)
commit78bd101cdfe20913ef76759b344adc5223dff006
tree4b321eaf7a212d07e4964a39a0fdd7e695b9bd66
parent2d2fbf685c89865d839d5d6913ff1e765ab3d3c1
drm/amdgpu: add a helper function to decode iv

since from soc15, all the chips share the same
iv format. create a common helper to decode iv

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Acked-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Dennis Li <Dennis.Li@amd.com>
Reviewed-by: Feifei Xu <Feifei.Xu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h