Revert "drm/amdgpu: remove fence fallback"
Subsystems (2)
PATCH 1/2 Revert "drm/amdgpu: remove fence fallback"
This reverts commit 9b0df0937a852d299fbe42a5939c9a8a4cc83c55. This commit breaks KCQ IB test and S3 on Polaris 11.
--- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c | 56 +++++++++++++++++++++++++++++++ drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h | 1 + 3 files changed, 58 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu.h +1 -0
@@ -146,6 +146,7 @@ extern int amdgpu_cik_support;#define AMDGPU_DEFAULT_GTT_SIZE_MB 3072ULL/* 3GB by default */ #define AMDGPU_WAIT_IDLE_TIMEOUT_IN_MS 3000#define AMDGPU_MAX_USEC_TIMEOUT 100000/* 100 ms */ +#define AMDGPU_FENCE_JIFFIES_TIMEOUT (HZ / 2)/* AMDGPU_IB_POOL_SIZE must be a power of 2 */ #define AMDGPU_IB_POOL_SIZE 16#define AMDGPU_DEBUGFS_MAX_COMPONENTS 32
drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c +56 -0
98 lines not on this page · raw message
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h +1 -0
@@ -77,6 +77,7 @@ struct amdgpu_fence_driver {bool initialized;struct amdgpu_irq_src *irq_src;unsigned irq_type; +struct timer_list fallback_timer;unsigned num_fences_mask;spinlock_t lock;struct dma_fence **fences;
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): 1537559505-24299-1-git-send-email-andrey.grodzovsky-5C7GfCeVMHo@public.gmane.org
PATCH 2/2 drm/amdgpu: Add warning message for INT SW fallback.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c +1 -0
@@ -274,6 +274,7 @@ static void amdgpu_fence_fallback(struct timer_list *t)struct amdgpu_ring *ring =from_timer (ring, t, fence_drv.fallback_timer); +DRM_INFO ("Fallback to SW interrupt on ring %s due to HW interrupt time out" , ring->name);amdgpu_fence_process (ring); }
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): 1537559505-24299-2-git-send-email-andrey.grodzovsky-5C7GfCeVMHo@public.gmane.org
Deucher, Alexander
Acked-byRe: [PATCH 2/2] drm/amdgpu: Add warning message for INT SW fallback.
Series is:
________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org> on behalf of Andrey Grodzovsky <[email protected]>
Sent: Friday, September 21, 2018 3:51:45 PM
To: [email protected]
Cc: Grodzovsky, Andrey; Koenig, Christian
Subject: [PATCH 2/2] drm/amdgpu: Add warning message for INT SW fallback.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c +1 -0
@@ -274,6 +274,7 @@ static void amdgpu_fence_fallback(struct timer_list *t)struct amdgpu_ring *ring =from_timer (ring, t, fence_drv.fallback_timer); +DRM_INFO ("Fallback to SW interrupt on ring %s due to HW interrupt time out" , ring->name);amdgpu_fence_process (ring); }
--
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
Re: [PATCH 2/2] drm/amdgpu: Add warning message for INT SW fallback.
In reply to a message not in the archiveAm 21.09.2018 um 21:51 schrieb Andrey Grodzovsky:
Quoted 10 lines
Signed-off-by Andrey Grodzovsky <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c +0
-0
drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c static void amdgpu_fence_fallback(struct timer_list *t) · line 277
Quoted 4 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c +1
-0@@ -274,6 +274,7 @@ static void amdgpu_fence_fallback(struct timer_list *t)struct amdgpu_ring *ring =from_timer (ring, t, fence_drv.fallback_timer); +DRM_INFO ("Fallback to SW interrupt on ring %s due to HW interrupt time out" , ring->name);
Please make that a DRM_WARN(), apart from that the series is Reviewed-by: Christian König <[email protected]>
Thanks for taking care of this,
Christian.
drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c static void amdgpu_fence_fallback(struct timer_list *t) · line 280
Quoted 3 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c +0
-0amdgpu_fence_process (ring); }
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx