aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
diff options
context:
space:
mode:
authorTong Liu01 <Tong.Liu01@amd.com>2023-04-06 15:58:31 +0800
committerAlex Deucher <alexander.deucher@amd.com>2023-04-11 18:03:44 -0400
commit5591a051b86be170a84943698ab140342602ff7b (patch)
tree598deaec69fe187a6b6994419b3d03d7e2b80e6f /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
parentfc926faefcb7fade1abc05043db540f5c0fef79e (diff)
downloadlinux-5591a051b86be170a84943698ab140342602ff7b.tar.gz
linux-5591a051b86be170a84943698ab140342602ff7b.tar.bz2
linux-5591a051b86be170a84943698ab140342602ff7b.zip
drm/amdgpu: refine get gpu clock counter method
[why] regGOLDEN_TSC_COUNT_LOWER/regGOLDEN_TSC_COUNT_UPPER are protected and unaccessible under sriov. The clock counter high bit may update during reading process. [How] Replace regGOLDEN_TSC_COUNT_LOWER/regGOLDEN_TSC_COUNT_UPPER with regCP_MES_MTIME_LO/regCP_MES_MTIME_HI to get gpu clock under sriov. Refine get gpu clock counter method to make the result more precise. Signed-off-by: Tong Liu01 <Tong.Liu01@amd.com> Acked-by: Luben Tuikov <luben.tuikov@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions