Skip to content

Commit

Permalink
Revert "drm/amdgpu: add psp RAP L0 check support"
Browse files Browse the repository at this point in the history
This reverts commit d86fd72.

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

Signed-off-by: Kevin Wang <kevin1.wang@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Kevin Wang authored and Alex Deucher committed Mar 24, 2021
1 parent f258907 commit 03597b4
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
/*
Expand All @@ -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;
Expand Down

0 comments on commit 03597b4

Please sign in to comment.