]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amdgpu/sriov: Use VF-accessible register for gpu_clock_count
authorjianzh <Jiange.Zhao@amd.com>
Fri, 21 Feb 2020 06:28:12 +0000 (14:28 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 Mar 2020 05:32:23 +0000 (00:32 -0500)
commite7429606bb6ad846cfa4f3dd26a328b1d3e76a54
tree6dfa8a60c22bdbe89fbee310d00d44ce2d50391e
parent781345f9ef03cbdc7720897b6b2aa7dfe7ec69ac
drm/amdgpu/sriov: Use VF-accessible register for gpu_clock_count

Navi12 VK CTS subtest timestamp.calibrated.dev_domain_test failed
because mmRLC_CAPTURE_GPU_CLOCK_COUNT register cannot be
written in VF due to security policy.

Solution: use a VF-accessible timestamp register pair
mmGOLDEN_TSC_COUNT_LOWER/UPPER for SRIOV case.

v2: according to Deucher Alexander's advice, switch to
mmGOLDEN_TSC_COUNT_LOWER/UPPER for both bare metal and SRIOV.

Signed-off-by: jianzh <Jiange.Zhao@amd.com>
Reviewed-by: Monk Liu <monk.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c