Skip to contentSkip to conversation

Revert "drm/amdgpu: add psp RAP L0 check support"

PATCH In review Kevin Wang 2 participants 2 messages Mar 9, 2021

Subsystems (2)
lore
Share & tools
lore

Kevin Wang

author
#0 lore raw

PATCH 1/1 Revert "drm/amdgpu: add psp RAP L0 check support"

This reverts commit a77e3752c319e479c538a84c3b0f6d87f6fa4bc7.

Disable PSP RAP L0 self test until to RAP feature ready.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +1 -9
index d9856cae9a39..80a4dc51951e 100644
@@ -2365,7 +2365,6 @@ static int psp_hw_init(void *handle)
 {
 	int ret;
 	struct amdgpu_device *adev = (struct amdgpu_device *)handle;
-	enum ta_rap_status status = TA_RAP_STATUS__SUCCESS;
 
 	mutex_lock(&adev->firmware.mutex);
 	/*
@@ -2383,14 +2382,7 @@ static int psp_hw_init(void *handle)
 	}
 
 	mutex_unlock(&adev->firmware.mutex);
-
-	ret = psp_rap_invoke(&adev->psp, TA_CMD_RAP__VALIDATE_L0, &status);
-	if (ret || status != TA_RAP_STATUS__SUCCESS) {
-		dev_err(adev->dev, "RAP: (%d) Failed to Invoke Validate L0, status %d\n",
-			ret, status);
-	}
-
-	return ret;
+	return 0;
 
 failed:
 	adev->firmware.load_type = AMDGPU_FW_LOAD_DIRECT;
Signature · 6 lines
2.17.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Reviewed-by on v1 1/1
#1 lore raw

[AMD Public Use]

Regards,
Hawking
-----Original Message-----
From: Wang, Kevin(Yang) <[email protected]>
Sent: Tuesday, March 9, 2021 18:32
To: [email protected]
Cc: Zhang, Hawking <[email protected]>; Wang, Kevin(Yang) <[email protected]>
Subject: [PATCH] Revert "drm/amdgpu: add psp RAP L0 check support"

This reverts commit a77e3752c319e479c538a84c3b0f6d87f6fa4bc7.

Disable PSP RAP L0 self test until to RAP feature ready.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +1 -9
index d9856cae9a39..80a4dc51951e 100644
@@ -2365,7 +2365,6 @@ static int psp_hw_init(void *handle)  {
 	int ret;
 	struct amdgpu_device *adev = (struct amdgpu_device *)handle;
-	enum ta_rap_status status = TA_RAP_STATUS__SUCCESS;
 
 	mutex_lock(&adev->firmware.mutex);
 	/*
@@ -2383,14 +2382,7 @@ static int psp_hw_init(void *handle)
 	}
 
 	mutex_unlock(&adev->firmware.mutex);
-
-	ret = psp_rap_invoke(&adev->psp, TA_CMD_RAP__VALIDATE_L0, &status);
-	if (ret || status != TA_RAP_STATUS__SUCCESS) {
-		dev_err(adev->dev, "RAP: (%d) Failed to Invoke Validate L0, status %d\n",
-			ret, status);
-	}
-
-	return ret;
+	return 0;
 
 failed:
 	adev->firmware.load_type = AMDGPU_FW_LOAD_DIRECT;

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