Skip to content

Commit 8527077

Browse files
Asad Kamalalexdeucher
authored andcommitted
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: 4c07ff7 ("drm/amd/pm: Add gpu_metrics_v1_6") Signed-off-by: Asad Kamal <[email protected]> Reviewed-by: Yang Wang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent a163b89 commit 8527077

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/gpu/drm/amd/include/kgd_pp_interface.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -357,11 +357,11 @@ struct dpm_clocks;
357357

358358
struct amdgpu_xcp_metrics {
359359
/* Utilization Instantaneous (%) */
360-
u32 gfx_busy_inst[MAX_XCC];
361-
u16 jpeg_busy[NUM_JPEG_ENG];
362-
u16 vcn_busy[NUM_VCN];
360+
uint32_t gfx_busy_inst[MAX_XCC];
361+
uint16_t jpeg_busy[NUM_JPEG_ENG];
362+
uint16_t vcn_busy[NUM_VCN];
363363
/* Utilization Accumulated (%) */
364-
u64 gfx_busy_acc[MAX_XCC];
364+
uint64_t gfx_busy_acc[MAX_XCC];
365365
};
366366

367367
struct amd_pm_funcs {

0 commit comments

Comments
 (0)