drm/amdgpu: psp_ring_destroy cause psp->km_ring.ring_mem NULL
Subsystems (2)
PATCH 1/1 drm/amdgpu: psp_ring_destroy cause psp->km_ring.ring_mem NULL
psp_ring_destroy inside psp_load_fw cause psp->km_ring.ring_mem NULL. Call Trace occurred when psp_cmd_submit.
should be psp_ring_stop instead.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +1 -1
@@ -547,7 +547,7 @@ static int psp_load_fw(struct amdgpu_device *adev)struct psp_context *psp = &adev->psp;if (amdgpu_sriov_vf (adev) && adev->in_gpu_reset) { -psp_ring_destroy (psp,PSP_RING_TYPE__KM ); +psp_ring_stop (psp,PSP_RING_TYPE__KM );/* should not destroy ring, only stop */ goto skip_memalloc; }
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1545119502-3934-1-git-send-email-Wentao.Lou-5C7GfCeVMHo@public.gmane.org
Yu, Xiangliang
Reviewed-by Xiangliang Yu-----Original Message-----
From: Lou, Wentao <[email protected]>
Sent: Tuesday, December 18, 2018 3:52 PM
To: [email protected]
Cc: Lou, Wentao <[email protected]>
Subject: [PATCH] drm/amdgpu: psp_ring_destroy cause psp->km_ring.ring_mem NULL
psp_ring_destroy inside psp_load_fw cause psp->km_ring.ring_mem NULL. Call Trace occurred when psp_cmd_submit.
should be psp_ring_stop instead.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +1 -1
@@ -547,7 +547,7 @@ static int psp_load_fw(struct amdgpu_device *adev)struct psp_context *psp = &adev->psp;if (amdgpu_sriov_vf (adev) && adev->in_gpu_reset) { -psp_ring_destroy (psp,PSP_RING_TYPE__KM ); +psp_ring_stop (psp,PSP_RING_TYPE__KM );/* should not destroy ring, only stop */ goto skip_memalloc; }
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): BY1PR12MB044075048255B481E1512E01EBBD0-PicGAnIBOoaYcfEdm45K0QdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org
Hi Wentao,
We need to check psp firmware version here instead of to change psp_ring_destroy to psp_ring_stop.
Best wishes
Emily Deng
Quoted 45 lines
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Yu, Xiangliang
Sent: Tuesday, December 18, 2018 3:58 PM
To: Lou, Wentao <[email protected]>; [email protected]
Subject: RE: [PATCH] drm/amdgpu:psp_ring_destroycause psp-Quoted 1 line
km_ring.ring_mem NULL
Reviewed-by Xiangliang Yu <[email protected]>-----Original Message-----
From: Lou, Wentao <[email protected]>
Sent: Tuesday, December 18, 2018 3:52 PM
To: [email protected]
Cc: Lou, Wentao <[email protected]>
Subject: [PATCH] drm/amdgpu:psp_ring_destroycausepsp->km_ring.ring_memNULL
psp_ring_destroyinsidepsp_load_fwcausepsp->km_ring.ring_memNULL. Call Trace occurred whenpsp_cmd_submit.
should bepsp_ring_stopinstead.Change-Id Ib332004b3b9edc9e002adc532b2d45cdad929b05Signed-off-by Wentao Lou <[email protected]>---
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +1
-1@@ -547,7 +547,7 @@ static int psp_load_fw(struct amdgpu_device *adev)struct psp_context *psp = &adev->psp;if (amdgpu_sriov_vf (adev) && adev->in_gpu_reset) { -psp_ring_destroy (psp,PSP_RING_TYPE__KM ); +psp_ring_stop (psp,PSP_RING_TYPE__KM );/* should not destroy ring, only stop */
goto skip_memalloc; }
Quoted 7 lines
--
2.7.4_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx