From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tvrtko Ursulin Subject: Re: [RFC] drm/i915: Simplify page allocation loop a bit Date: Thu, 27 Mar 2014 10:40:42 +0000 Message-ID: <5334002A.7050302@linux.intel.com> References: <1395852527-6048-1-git-send-email-tvrtko.ursulin@linux.intel.com> <1395915537-11086-1-git-send-email-tvrtko.ursulin@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by gabe.freedesktop.org (Postfix) with ESMTP id 172E96E8A6 for ; Thu, 27 Mar 2014 03:40:44 -0700 (PDT) In-Reply-To: <1395915537-11086-1-git-send-email-tvrtko.ursulin@linux.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On 03/27/2014 10:18 AM, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > 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