<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<p style="font-family:Arial;font-size:10pt;color:#008000;margin:15pt;" align="Left">
[Public]<br>
</p>
<br>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Reviewed-by: Alex Deucher <alexander.deucher@amd.com><br>
</div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> amd-gfx <amd-gfx-bounces@lists.freedesktop.org> on behalf of Oak Zeng <Oak.Zeng@amd.com><br>
<b>Sent:</b> Thursday, July 15, 2021 9:25 PM<br>
<b>To:</b> amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org><br>
<b>Cc:</b> Xu, Feifei <Feifei.Xu@amd.com>; Kuehling, Felix <Felix.Kuehling@amd.com>; Liu, Leo <Leo.Liu@amd.com>; Zeng, Oak <Oak.Zeng@amd.com>; Zhang, Hawking <Hawking.Zhang@amd.com><br>
<b>Subject:</b> [PATCH 2/5] drm/amdgpu: Change a few function names</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="PlainText">Function name "psp_np_fw_load" is not proper as people don't<br>
know _np_fw_ means "non psp firmware". Change the function<br>
name to psp_load_non_psp_fw for better understanding. Same<br>
thing for function psp_execute_np_fw_load.<br>
<br>
Signed-off-by: Oak Zeng <Oak.Zeng@amd.com><br>
---<br>
 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 16 ++++++++--------<br>
 1 file changed, 8 insertions(+), 8 deletions(-)<br>
<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c<br>
index d9ddb2c..8d1e2b2 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c<br>
@@ -2351,7 +2351,7 @@ static int psp_prep_load_ip_fw_cmd_buf(struct amdgpu_firmware_info *ucode,<br>
         return ret;<br>
 }<br>
 <br>
-static int psp_execute_np_fw_load(struct psp_context *psp,<br>
+static int psp_execute_non_psp_fw_load(struct psp_context *psp,<br>
                                   struct amdgpu_firmware_info *ucode)<br>
 {<br>
         int ret = 0;<br>
@@ -2387,7 +2387,7 @@ static int psp_load_smu_fw(struct psp_context *psp)<br>
                 }<br>
         }<br>
 <br>
-       ret = psp_execute_np_fw_load(psp, ucode);<br>
+       ret = psp_execute_non_psp_fw_load(psp, ucode);<br>
 <br>
         if (ret)<br>
                 DRM_ERROR("PSP load smu failed!\n");<br>
@@ -2442,14 +2442,14 @@ int psp_load_fw_list(struct psp_context *psp,<br>
         for (i = 0; i < ucode_count; ++i) {<br>
                 ucode = ucode_list[i];<br>
                 psp_print_fw_hdr(psp, ucode);<br>
-               ret = psp_execute_np_fw_load(psp, ucode);<br>
+               ret = psp_execute_non_psp_fw_load(psp, ucode);<br>
                 if (ret)<br>
                         return ret;<br>
         }<br>
         return ret;<br>
 }<br>
 <br>
-static int psp_np_fw_load(struct psp_context *psp)<br>
+static int psp_load_non_psp_fw(struct psp_context *psp)<br>
 {<br>
         int i, ret;<br>
         struct amdgpu_firmware_info *ucode;<br>
@@ -2488,7 +2488,7 @@ static int psp_np_fw_load(struct psp_context *psp)<br>
 <br>
                 psp_print_fw_hdr(psp, ucode);<br>
 <br>
-               ret = psp_execute_np_fw_load(psp, ucode);<br>
+               ret = psp_execute_non_psp_fw_load(psp, ucode);<br>
                 if (ret)<br>
                         return ret;<br>
 <br>
@@ -2565,7 +2565,7 @@ static int psp_load_fw(struct amdgpu_device *adev)<br>
         if (ret)<br>
                 goto failed;<br>
 <br>
-       ret = psp_np_fw_load(psp);<br>
+       ret = psp_load_non_psp_fw(psp);<br>
         if (ret)<br>
                 goto failed;<br>
 <br>
@@ -2765,7 +2765,7 @@ static int psp_resume(void *handle)<br>
         if (ret)<br>
                 goto failed;<br>
 <br>
-       ret = psp_np_fw_load(psp);<br>
+       ret = psp_load_non_psp_fw(psp);<br>
         if (ret)<br>
                 goto failed;<br>
 <br>
@@ -2863,7 +2863,7 @@ int psp_update_vcn_sram(struct amdgpu_device *adev, int inst_idx,<br>
         ucode.mc_addr = cmd_gpu_addr;<br>
         ucode.ucode_size = cmd_size;<br>
 <br>
-       return psp_execute_np_fw_load(&adev->psp, &ucode);<br>
+       return psp_execute_non_psp_fw_load(&adev->psp, &ucode);<br>
 }<br>
 <br>
 int psp_ring_cmd_submit(struct psp_context *psp,<br>
-- <br>
2.7.4<br>
<br>
_______________________________________________<br>
amd-gfx mailing list<br>
amd-gfx@lists.freedesktop.org<br>
<a href="https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&amp;data=04%7C01%7Calexander.deucher%40amd.com%7C27434c9fa61e4b45a66b08d947f899a5%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637619955325142021%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=Glg8agdk%2BQu5ToJqr7RaF9br4TUfbW%2BFZo1nMX1liZ8%3D&amp;reserved=0">https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&amp;data=04%7C01%7Calexander.deucher%40amd.com%7C27434c9fa61e4b45a66b08d947f899a5%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637619955325142021%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=Glg8agdk%2BQu5ToJqr7RaF9br4TUfbW%2BFZo1nMX1liZ8%3D&amp;reserved=0</a><br>
</div>
</span></font></div>
</div>
</body>
</html>