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: Wed, 26 Mar 2014 17:33:04 +0000 Message-ID: <53330F50.7030304@linux.intel.com> References: <1395852527-6048-1-git-send-email-tvrtko.ursulin@linux.intel.com> <20140326171149.GC29626@nuc-i3427.alporthouse.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 C39576E3BF for ; Wed, 26 Mar 2014 10:45:56 -0700 (PDT) In-Reply-To: <20140326171149.GC29626@nuc-i3427.alporthouse.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Chris Wilson , Intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On 03/26/2014 05:11 PM, Chris Wilson wrote: > On Wed, Mar 26, 2014 at 04:48:47PM +0000, Tvrtko Ursulin wrote: >> From: Tvrtko Ursulin >> >> 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 >> Cc: Imre Deak > > 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). I think you're right. I'll repost. Although it diminishes the attractiveness of the whole line reducing enterprise a bit. Thanks, Tvrtko