drm/amd/pm: Update data types used for uapi i/f
Subsystems (2)
PATCH 1/1 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
--- drivers/gpu/drm/amd/include/kgd_pp_interface.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/include/kgd_pp_interface.h +4 -4
@@ -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 {
Signature · 1 line
2.46.0
[AMD Official Use Only - AMD Internal Distribution Only]
Best Regards,
Kevin
________________________________
发件人: amd-gfx <[email protected]> 代表 Asad Kamal <[email protected]>
发送时间: 星期三, 十一月 13, 2024 5:31 下午
收件人: [email protected] <[email protected]>; Lazar, Lijo <[email protected]>; Wang, Yang(Kevin) <[email protected]>; Zhang, Hawking <[email protected]>
抄送: Ma, Le <[email protected]>; Zhang, Morris <[email protected]>; Kamal, Asad <[email protected]>; Poag, Charis <[email protected]>; Cheung, Donald <[email protected]>; Khatir, Sepehr <[email protected]>; Oliveira, Daniel <[email protected]> 主题: [PATCH] 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
--- drivers/gpu/drm/amd/include/kgd_pp_interface.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/include/kgd_pp_interface.h +4 -4
@@ -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 {
--
2.46.0
Quoted 6 lines · Asad Kamal
Update member's data type in
amdgpu_xcp_metricsfrom linux specific to the ones compatible to uapi interfaceFixes 155fa7ced39b ("drm/amd/pm: Add gpu_metrics_v1_6")Signed-off-by Asad Kamal <[email protected]>
Thanks,
Lijo
Quoted 24 lines
--- drivers/gpu/drm/amd/include/kgd_pp_interface.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)drivers/gpu/drm/amd/include/kgd_pp_interface.h +4
-4@@ -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 {