Commit afac8c65 authored by YiPeng Chai's avatar YiPeng Chai Committed by Alex Deucher
Browse files

drm/amdgpu: fix ras UE error injection failure issue



The ras command shared memory is allocated from
VRAM and the response status of the command
buffer will not be zero due to gpu being in
fatal error state after ras UE error injection.

Signed-off-by: default avatarYiPeng Chai <YiPeng.Chai@amd.com>
Reviewed-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 8284951a)
parent 5302d1a0
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1630,9 +1630,7 @@ static int psp_ras_send_cmd(struct psp_context *psp,

	switch (cmd) {
	case TA_RAS_COMMAND__TRIGGER_ERROR:
		if (ret || psp->cmd_buf_mem->resp.status)
			ret = -EINVAL;
		else if (out)
		if (!ret && out)
			memcpy(out, &ras_cmd->ras_status, sizeof(ras_cmd->ras_status));
		break;
	case TA_RAS_COMMAND__QUERY_ADDRESS: