]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: switch to common xgmi ta helpers
authorHawking Zhang <Hawking.Zhang@amd.com>
Mon, 4 May 2020 11:39:24 +0000 (19:39 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 8 May 2020 18:31:37 +0000 (14:31 -0400)
commitde86e26a8f7314bb762345ff75d1990d6471d082
treeb5d1c597b3eaf521e1ac8810e9d647b9a543827d
parent2d9f7a0a8854d8614d7dea799c316bf567a274c9
drm/amdgpu: switch to common xgmi ta helpers

get_hive_id/get_node_id/get_topology_info/set_topology_info
are common xgmi command supported by TA for all the ASICs
that support xgmi link. They should be implemented as common
helper functions to avoid duplicated code per IP generation

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Guchun Chen <guchun.chen@amd.com>
Reviewed-by: John Clements <john.clements@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h
drivers/gpu/drm/amd/amdgpu/psp_v11_0.c