[PATCH 27/27] drm/i915: Do not share hwsp across contexts any more
Maarten Lankhorst
maarten.lankhorst at linux.intel.com
Thu Aug 13 15:15:52 UTC 2020
Signed-off-by: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
---
drivers/gpu/drm/i915/gt/intel_timeline.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/i915/gt/intel_timeline.c b/drivers/gpu/drm/i915/gt/intel_timeline.c
index a2f74cefe4c3..75cbac42ec8c 100644
--- a/drivers/gpu/drm/i915/gt/intel_timeline.c
+++ b/drivers/gpu/drm/i915/gt/intel_timeline.c
@@ -82,14 +82,13 @@ hwsp_alloc(struct intel_timeline *timeline, unsigned int *cacheline)
hwsp->gt_timelines = gt;
spin_lock_irq(>->hwsp_lock);
- list_add(&hwsp->free_link, >->hwsp_free_list);
+ } else {
+ list_del(&hwsp->free_link);
}
GEM_BUG_ON(!hwsp->free_bitmap);
*cacheline = __ffs64(hwsp->free_bitmap);
hwsp->free_bitmap &= ~BIT_ULL(*cacheline);
- if (!hwsp->free_bitmap)
- list_del(&hwsp->free_link);
spin_unlock_irq(>->hwsp_lock);
--
2.28.0
More information about the Intel-gfx-trybot
mailing list