]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amdgpu: get_fw_version isn't ASIC specific
authorAmber Lin <Amber.Lin@amd.com>
Fri, 12 Apr 2019 15:07:16 +0000 (11:07 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 19 Apr 2019 16:32:40 +0000 (11:32 -0500)
commit0da8b10e36e91b1c68b88cdcc6efb285a3b386ed
tree95d75651ed3800cdad57e8a93517279d6ea67751
parenta1b11201af9a934f0c4b2218c25a7b75ca2ff42a
drm/amdgpu: get_fw_version isn't ASIC specific

Method of getting firmware version is the same across ASICs, so remove
them from ASIC-specific files and create one in amdgpu_amdkfd.c. This new
created get_fw_version simply reads fw_version from adev->gfx than parsing
the ucode header.

Signed-off-by: Amber Lin <Amber.Lin@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c
drivers/gpu/drm/amd/amdkfd/kfd_device.c
drivers/gpu/drm/amd/include/kgd_kfd_interface.h