[Intel-gfx] [RFC] drm/i915: Simplify page allocation loop a bit

Chris Wilson chris at chris-wilson.co.uk
Wed Mar 26 18:11:49 CET 2014


On Wed, Mar 26, 2014 at 04:48:47PM +0000, Tvrtko Ursulin wrote:
> From: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
> 
> Looks like there are some redundant lines in the main loop of
> i915_gem_object_get_pages_gtt.
> 
> I haven't tested this so just RFC please.
> 
> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
> Cc: Imre Deak <imre.deak at intel.com>

I am pretty sure we can't drop CONFIG_SWIOTLB as swiotlb_nr_tbl only
exists when lib/swiotlb.c is built i.e. #if IS_ENABLED(CONFIG_SWIOTLB).
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre



More information about the Intel-gfx mailing list