Hi, Team,

Would you please help to take a look this patch[2/2]?

BR
Jack

-----Original Message-----
From: Jack Zhang <[email protected]> 
Sent: Thursday, November 21, 2019 2:17 PM
To: [email protected]
Cc: Zhang, Jack (Jian) <[email protected]>
Subject: [PATCH 2/2] drm/amd/amdgpu/sriov skip RLCG s/r list for arcturus VF.

After rlcg fw 2.1, kmd driver starts to load extra fw for 
LIST_CNTL,GPM_MEM,SRM_MEM. We needs to skip the three fw because all rlcg 
related fw have been loaded by host driver.
Guest driver would load the three fw fail without this change.

Signed-off-by: Jack Zhang <[email protected]>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c 
b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
index c3a42d3..eecde80 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
@@ -1470,7 +1470,10 @@ static int psp_np_fw_load(struct psp_context *psp)
                    || ucode->ucode_id == AMDGPU_UCODE_ID_SDMA5
                    || ucode->ucode_id == AMDGPU_UCODE_ID_SDMA6
                    || ucode->ucode_id == AMDGPU_UCODE_ID_SDMA7
-                   || ucode->ucode_id == AMDGPU_UCODE_ID_RLC_G))
+                    || ucode->ucode_id == AMDGPU_UCODE_ID_RLC_G
+                   || ucode->ucode_id == AMDGPU_UCODE_ID_RLC_RESTORE_LIST_CNTL
+                   || ucode->ucode_id == 
AMDGPU_UCODE_ID_RLC_RESTORE_LIST_GPM_MEM
+                   || ucode->ucode_id == 
+AMDGPU_UCODE_ID_RLC_RESTORE_LIST_SRM_MEM))
                        /*skip ucode loading in SRIOV VF */
                        continue;
 
--
2.7.4

_______________________________________________
Freedreno mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/freedreno

Reply via email to