Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754683AbcKNJxN (ORCPT ); Mon, 14 Nov 2016 04:53:13 -0500 Received: from mail.fireflyinternet.com ([109.228.58.192]:63802 "EHLO fireflyinternet.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753777AbcKNJwi (ORCPT ); Mon, 14 Nov 2016 04:52:38 -0500 X-Default-Received-SPF: pass (skip=forwardok (res=PASS)) x-ip-name=78.156.65.138; Date: Mon, 14 Nov 2016 09:52:29 +0000 From: Chris Wilson To: Tvrtko Ursulin Cc: Intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, Tvrtko Ursulin Subject: Re: [PATCH v4 4/4] drm/i915: Use __sg_alloc_table_from_pages for userptr allocations Message-ID: <20161114095229.GB32240@nuc-i3427.alporthouse.com> Mail-Followup-To: Chris Wilson , Tvrtko Ursulin , Intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, Tvrtko Ursulin References: <20161111102314.GR9300@nuc-i3427.alporthouse.com> <1478867773-24466-1-git-send-email-tvrtko.ursulin@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1478867773-24466-1-git-send-email-tvrtko.ursulin@linux.intel.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1024 Lines: 31 On Fri, Nov 11, 2016 at 12:36:13PM +0000, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > With the addition of __sg_alloc_table_from_pages we can control > the maximum coallescing size and eliminate a separate path for > allocating backing store here. > > Similar to 871dfbd67d4e ("drm/i915: Allow compaction upto > SWIOTLB max segment size") this enables more compact sg lists to > be created and so has a beneficial effect on workloads with many > and/or large objects of this class. > > v2: > * Rename helper to i915_sg_segment_size and fix swiotlb override. > * Commit message update. > > v3: > * Actually include the swiotlb override fix. > > v4: > * Regroup parameters a bit. (Chris Wilson) > > Signed-off-by: Tvrtko Ursulin > Cc: Chris Wilson > Reviewed-by: Chris Wilson (v2) (bump) Reviewed-by: Chris Wilson -Chris -- Chris Wilson, Intel Open Source Technology Centre