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)
commit35ccba4e9fc7619941ac1ad26d9f154bfa93db9d
treeb5d1c597b3eaf521e1ac8810e9d647b9a543827d
parent14040aff5f03a09fa001b5f473ec89cb6d932862
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