[Intel-gfx] [PATCH 6/8] drm/i915: Move register white-listing to the common workaround framework

2018-11-30 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Instead of having a separate list of white-listed registers we can trivially move this to the common workarounds framework. This brings us one step closer to the goal of driving all workaround classes using the same code. Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm/

Re: [Intel-gfx] [PATCH 6/8] drm/i915: Move register white-listing to the common workaround framework

2018-11-30 Thread Chris Wilson
Quoting Tvrtko Ursulin (2018-11-30 11:31:59) > -static void whitelist_reg(struct whitelist *w, i915_reg_t reg) > +static void > +whitelist_reg(struct i915_wa_list *wal, i915_reg_t reg) > { > - if (GEM_DEBUG_WARN_ON(w->count >= RING_MAX_NONPRIV_SLOTS)) > - return; > - > -

Re: [Intel-gfx] [PATCH 6/8] drm/i915: Move register white-listing to the common workaround framework

2018-11-30 Thread Tvrtko Ursulin
On 30/11/2018 11:45, Chris Wilson wrote: Quoting Tvrtko Ursulin (2018-11-30 11:31:59) -static void whitelist_reg(struct whitelist *w, i915_reg_t reg) +static void +whitelist_reg(struct i915_wa_list *wal, i915_reg_t reg) { - if (GEM_DEBUG_WARN_ON(w->count >= RING_MAX_NONPRIV_SLOTS)) -