drm/amdgpu/psp: invalidate the hdp read cache before reading the psp response
Otherwise we may get stale data. Reviewed-by: Feifei Xu <Feifei.Xu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -151,10 +151,12 @@ psp_cmd_submit_buf(struct psp_context *psp,
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
amdgpu_asic_invalidate_hdp(psp->adev, NULL);
|
||||||
while (*((unsigned int *)psp->fence_buf) != index) {
|
while (*((unsigned int *)psp->fence_buf) != index) {
|
||||||
if (--timeout == 0)
|
if (--timeout == 0)
|
||||||
break;
|
break;
|
||||||
msleep(1);
|
msleep(1);
|
||||||
|
amdgpu_asic_invalidate_hdp(psp->adev, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* In some cases, psp response status is not 0 even there is no
|
/* In some cases, psp response status is not 0 even there is no
|
||||||
|
|||||||
Reference in New Issue
Block a user