drm/amdgpu/sriov: Use kiq to copy the gpu clock
authorEmily Deng <Emily.Deng@amd.com>
Thu, 27 Feb 2020 01:47:13 +0000 (09:47 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 28 Feb 2020 21:59:21 +0000 (16:59 -0500)
commit89510a2737ae6515dcc5e6cbd3cf588753d4fa17
treeade0bdf4d7cfced4b43353a03ad84a80e9b2db0c
parentf2cc50cefd0f209b4ee87206660d2554a7be7ae0
drm/amdgpu/sriov: Use kiq to copy the gpu clock

For vega10 sriov, the register is blocked, use
copy data command to fix the issue.

v2: Rename amdgpu_kiq_read_clock to gfx_v9_0_kiq_read_clock.

Signed-off-by: Emily Deng <Emily.Deng@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c