<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body>
<p style="font-family:Calibri;font-size:10pt;color:#0000FF;margin:5pt;font-style:normal;font-weight:normal;text-decoration:none;" align="Left">
[AMD Official Use Only - AMD Internal Distribution Only]<br>
</p>
<br>
<div>
<div dir="ltr">
<div dir="ltr">Reviewed-by: Yang Wang <kevinyang.wang@amd.com></div>
<div dir="ltr"><br>
</div>
<div dir="ltr">Best Regards,</div>
<div dir="ltr">Kevin</div>
<div id="mail-editor-reference-message-container" class="ms-outlook-mobile-reference-message">
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif"><b>发件人:</b> amd-gfx <amd-gfx-bounces@lists.freedesktop.org> 代表 Asad Kamal <Asad.Kamal@amd.com><br>
<b>发送时间:</b> 星期三, 十一月 13, 2024 5:31 下午<br>
<b>收件人:</b> amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org>; Lazar, Lijo <Lijo.Lazar@amd.com>; Wang, Yang(Kevin) <KevinYang.Wang@amd.com>; Zhang, Hawking <Hawking.Zhang@amd.com><br>
<b>抄送:</b> Ma, Le <Le.Ma@amd.com>; Zhang, Morris <Shiwu.Zhang@amd.com>; Kamal, Asad <Asad.Kamal@amd.com>; Poag, Charis <Charis.Poag@amd.com>; Cheung, Donald <donald.cheung@amd.com>; Khatir, Sepehr <sepehr.khatir@amd.com>; Oliveira, Daniel <Daniel.Oliveira@amd.com><br>
<b>主题:</b> [PATCH] drm/amd/pm: Update data types used for uapi i/f
<div> </div>
</font></div>
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Update member's data type in amdgpu_xcp_metrics from linux specific<br>
to the ones compatible to uapi interface<br>
<br>
Fixes: 155fa7ced39b ("drm/amd/pm: Add gpu_metrics_v1_6")<br>
<br>
Signed-off-by: Asad Kamal <asad.kamal@amd.com><br>
---<br>
drivers/gpu/drm/amd/include/kgd_pp_interface.h | 8 ++++----<br>
1 file changed, 4 insertions(+), 4 deletions(-)<br>
<br>
diff --git a/drivers/gpu/drm/amd/include/kgd_pp_interface.h b/drivers/gpu/drm/amd/include/kgd_pp_interface.h<br>
index ee8170cda1d7..80f7afc5c959 100644<br>
--- a/drivers/gpu/drm/amd/include/kgd_pp_interface.h<br>
+++ b/drivers/gpu/drm/amd/include/kgd_pp_interface.h<br>
@@ -357,11 +357,11 @@ struct dpm_clocks;<br>
<br>
struct amdgpu_xcp_metrics {<br>
/* Utilization Instantaneous (%) */<br>
- u32 gfx_busy_inst[MAX_XCC];<br>
- u16 jpeg_busy[NUM_JPEG_ENG];<br>
- u16 vcn_busy[NUM_VCN];<br>
+ uint32_t gfx_busy_inst[MAX_XCC];<br>
+ uint16_t jpeg_busy[NUM_JPEG_ENG];<br>
+ uint16_t vcn_busy[NUM_VCN];<br>
/* Utilization Accumulated (%) */<br>
- u64 gfx_busy_acc[MAX_XCC];<br>
+ uint64_t gfx_busy_acc[MAX_XCC];<br>
};<br>
<br>
struct amd_pm_funcs {<br>
-- <br>
2.46.0<br>
<br>
</div>
</span></font></div>
</div>
</div>
</body>
</html>