summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAsad Kamal <asad.kamal@amd.com>2024-11-13 10:17:23 +0100
committerAlex Deucher <alexander.deucher@amd.com>2024-11-20 15:35:27 +0100
commit85270776f65d27b1c9720324745ab7da3ed71b3e (patch)
tree419f685e32ab1141136d02200c497623f5f3234d
parentMerge tag 'drm-xe-next-fixes-2024-11-15' of https://gitlab.freedesktop.org/dr... (diff)
downloadlinux-85270776f65d27b1c9720324745ab7da3ed71b3e.tar.xz
linux-85270776f65d27b1c9720324745ab7da3ed71b3e.zip
drm/amd/pm: Update data types used for uapi i/f
Update member's data type in amdgpu_xcp_metrics from linux specific to the ones compatible to uapi interface Fixes: 4c07ff7d07f7 ("drm/amd/pm: Add gpu_metrics_v1_6") Signed-off-by: Asad Kamal <asad.kamal@amd.com> Reviewed-by: Yang Wang <kevinyang.wang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/include/kgd_pp_interface.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/include/kgd_pp_interface.h b/drivers/gpu/drm/amd/include/kgd_pp_interface.h
index bb27c0d2a9ae..640f6dcdbe1d 100644
--- a/drivers/gpu/drm/amd/include/kgd_pp_interface.h
+++ b/drivers/gpu/drm/amd/include/kgd_pp_interface.h
@@ -357,11 +357,11 @@ struct dpm_clocks;
struct amdgpu_xcp_metrics {
/* Utilization Instantaneous (%) */
- u32 gfx_busy_inst[MAX_XCC];
- u16 jpeg_busy[NUM_JPEG_ENG];
- u16 vcn_busy[NUM_VCN];
+ uint32_t gfx_busy_inst[MAX_XCC];
+ uint16_t jpeg_busy[NUM_JPEG_ENG];
+ uint16_t vcn_busy[NUM_VCN];
/* Utilization Accumulated (%) */
- u64 gfx_busy_acc[MAX_XCC];
+ uint64_t gfx_busy_acc[MAX_XCC];
};
struct amd_pm_funcs {