Skip to contentSkip to conversation

drm/amdgpu/psp11: wait for sOS ready for ring creation

PATCH In review Yuan, Xiaojie 2 participants 3 messages Oct 18, 2019 2 messages not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 drm/amdgpu/psp11: wait for sOS ready for ring creation

---
 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c | 8 ++++++++
 1 file changed, 8 insertions(+)
drivers/gpu/drm/amd/amdgpu/psp_v11_0.c +8 -0
index e8e70b74ea5b..dfe85a1d79a5 100644
@@ -459,6 +459,14 @@ static int psp_v11_0_ring_create(struct psp_context *psp,
 				   0x80000000, 0x8000FFFF, false);
 
 	} else {
+		/* Wait for sOS ready for ring creation */
+		ret = psp_wait_for(psp, SOC15_REG_OFFSET(MP0, 0, mmMP0_SMN_C2PMSG_64),
+				   0x80000000, 0x80000000, false);
+		if (ret) {
+			DRM_ERROR("Failed to wait for sOS ready for ring creation\n");
+			return ret;
+		}
+
 		/* Write low address of the ring to C2PMSG_69 */
 		psp_ring_reg = lower_32_bits(ring->ring_mem_mc_addr);
 		WREG32_SOC15(MP0, 0, mmMP0_SMN_C2PMSG_69, psp_ring_reg);
Signature · 6 lines
2.20.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

PATCH 2/2 drm/amdgpu/psp11: fix typo in comment

---
 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/psp_v11_0.c +1 -1
index dfe85a1d79a5..4eb5bacb55f7 100644
@@ -232,7 +232,7 @@ static int psp_v11_0_bootloader_load_kdb(struct psp_context *psp)
 	/* Copy PSP KDB binary to memory */
 	memcpy(psp->fw_pri_buf, psp->kdb_start_addr, psp->kdb_bin_size);
 
-	/* Provide the sys driver to bootloader */
+	/* Provide the PSP KDB to bootloader */
 	WREG32_SOC15(MP0, 0, mmMP0_SMN_C2PMSG_36,
 	       (uint32_t)(psp->fw_pri_mc_addr >> 20));
 	psp_gfxdrv_command_reg = PSP_BL__LOAD_KEY_DATABASE;
Signature · 6 lines
2.20.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw

Re: [PATCH 2/2] drm/amdgpu/psp11: fix typo in comment

Series is reviewed by Feifei Xu <[email protected]>

Quoted 27 lines · Xiaojie

Signed-off-by: Xiaojie Yuan <[email protected]>
---
drivers/gpu/drm/amd/amdgpu/psp_v11_0.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/psp_v11_0.c +1 -1
index dfe85a1d79a5..4eb5bacb55f7 100644
@@ -232,7 +232,7 @@ static int psp_v11_0_bootloader_load_kdb(struct psp_context *psp)
   /* Copy PSP KDB binary to memory */
   memcpy(psp->fw_pri_buf, psp->kdb_start_addr, psp->kdb_bin_size);
 
-    /* Provide the sys driver to bootloader */
+    /* Provide the PSP KDB to bootloader */
   WREG32_SOC15(MP0, 0, mmMP0_SMN_C2PMSG_36,
          (uint32_t)(psp->fw_pri_mc_addr >> 20));
   psp_gfxdrv_command_reg = PSP_BL__LOAD_KEY_DATABASE;
Signature · 6 lines
2.20.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx