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

Tvrtko Ursulin tvrtko.ursulin at linux.intel.com
Thu Mar 27 11:40:42 CET 2014


On 03/27/2014 10:18 AM, 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.
>
> v2: Put CONFIG_SWIOTLB back in.
>
> I haven't tested this so just RFC please. Not sure that
> seven lines net less is worth this. It just made it clerer
> to a newby to sg building to think of it in terms of
> "merge entries always except when...".

For what it is worth, this builds and doesn't blow up on some smoke tests.

Tvrtko



More information about the Intel-gfx mailing list