diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3882-drm-amdgpu-psp-invalidate-the-hdp-read-cache-before-.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3882-drm-amdgpu-psp-invalidate-the-hdp-read-cache-before-.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3882-drm-amdgpu-psp-invalidate-the-hdp-read-cache-before-.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3882-drm-amdgpu-psp-invalidate-the-hdp-read-cache-before-.patch new file mode 100644 index 00000000..32557234 --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3882-drm-amdgpu-psp-invalidate-the-hdp-read-cache-before-.patch @@ -0,0 +1,34 @@ +From b03a12685ba130cb9b05666da51fcdbe709c7fa6 Mon Sep 17 00:00:00 2001 +From: Alex Deucher <alexander.deucher@amd.com> +Date: Tue, 17 Sep 2019 15:17:41 -0500 +Subject: [PATCH 3882/4256] 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> +--- + drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +index 1963e11a37c0..d3444f24647e 100644 +--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +@@ -151,10 +151,12 @@ psp_cmd_submit_buf(struct psp_context *psp, + return ret; + } + ++ amdgpu_asic_invalidate_hdp(psp->adev, NULL); + while (*((unsigned int *)psp->fence_buf) != index) { + if (--timeout == 0) + break; + msleep(1); ++ amdgpu_asic_invalidate_hdp(psp->adev, NULL); + } + + /* In some cases, psp response status is not 0 even there is no +-- +2.17.1 + |