aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_smuio.h
diff options
context:
space:
mode:
authorHawking Zhang <[email protected]>2024-03-17 11:07:11 +0000
committerAlex Deucher <[email protected]>2024-03-20 17:38:16 +0000
commitd80e44a34e25a33a15c510a74575377f66a24b1e (patch)
treea006176d4fbc93f6397254e68f9a0cd4de6ee624 /drivers/gpu/drm/amd/amdgpu/amdgpu_smuio.h
parentdrm/amdgpu: Add smuio v14_0_2 ip block support (diff)
downloadkernel-d80e44a34e25a33a15c510a74575377f66a24b1e.tar.gz
kernel-d80e44a34e25a33a15c510a74575377f66a24b1e.zip
drm/amdgpu: Add smuio callback to get gpu clk counter
Add smuio callback to get gpu clk counter Signed-off-by: Hawking Zhang <[email protected]> Reviewed-by: Likun Gao <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_smuio.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_smuio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_smuio.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_smuio.h
index ff4435181055..ec9d12f85f39 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_smuio.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_smuio.h
@@ -44,6 +44,7 @@ struct amdgpu_smuio_funcs {
u32 (*get_socket_id)(struct amdgpu_device *adev);
enum amdgpu_pkg_type (*get_pkg_type)(struct amdgpu_device *adev);
bool (*is_host_gpu_xgmi_supported)(struct amdgpu_device *adev);
+ u64 (*get_gpu_clock_counter)(struct amdgpu_device *adev);
};
struct amdgpu_smuio {