drm/amdgpu: fix gfx VF FLR test fail on navi
Subsystems (2)
PATCH 1/1 drm/amdgpu: fix gfx VF FLR test fail on navi
Cp wptr in wb buffer is outdated after VF FLR.
The outdated wptr may cause cp to execute unexpected packets. Reset cp wptr in wb buffer.
--- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +1 -0
@@ -3107,6 +3107,7 @@ static int gfx_v10_0_gfx_init_queue(struct amdgpu_ring *ring)memcpy (mqd, adev->gfx.me.mqd_backup[AMDGPU_MAX_GFX_RINGS ],sizeof (*mqd));/* reset the ring */ ring->wptr =0 ; + adev->wb.wb[ring->wptr_offs] =0 ;amdgpu_ring_clear_ring (ring);#ifdef BRING_UP_DEBUG mutex_lock (&adev->srbm_mutex);
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): 1572340693-122958-1-git-send-email-HaiJun.Chang-5C7GfCeVMHo@public.gmane.org
Deucher, Alexander
Acked-by________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org> on behalf of HaiJun Chang <[email protected]>
Sent: Tuesday, October 29, 2019 5:18 AM
To: [email protected] <[email protected]>
Cc: Chang, HaiJun <[email protected]>
Subject: [PATCH] drm/amdgpu: fix gfx VF FLR test fail on navi
Cp wptr in wb buffer is outdated after VF FLR.
The outdated wptr may cause cp to execute unexpected packets. Reset cp wptr in wb buffer.
--- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +1 -0
@@ -3107,6 +3107,7 @@ static int gfx_v10_0_gfx_init_queue(struct amdgpu_ring *ring)memcpy (mqd, adev->gfx.me.mqd_backup[AMDGPU_MAX_GFX_RINGS ],sizeof (*mqd));/* reset the ring */ ring->wptr =0 ; + adev->wb.wb[ring->wptr_offs] =0 ;amdgpu_ring_clear_ring (ring);#ifdef BRING_UP_DEBUG mutex_lock (&adev->srbm_mutex);
--
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