From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH 1/2] drm: Add colouring to the range allocator Date: Thu, 12 Jul 2012 14:15:34 +0200 Message-ID: <20120712121534.GD5039@phenom.ffwll.local> References: <20120710094014.GC5108@phenom.ffwll.local> <1341915324-18896-1-git-send-email-chris@chris-wilson.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-bk0-f49.google.com (mail-bk0-f49.google.com [209.85.214.49]) by gabe.freedesktop.org (Postfix) with ESMTP id 8F6159E84E for ; Thu, 12 Jul 2012 05:15:34 -0700 (PDT) Received: by bkcji2 with SMTP id ji2so1964740bkc.36 for ; Thu, 12 Jul 2012 05:15:33 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1341915324-18896-1-git-send-email-chris@chris-wilson.co.uk> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Chris Wilson Cc: Benjamin Herrenschmidt , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Jerome Glisse , Ben Skeggs , Daniel Vetter , Alex Deucher List-Id: intel-gfx@lists.freedesktop.org On Tue, Jul 10, 2012 at 11:15:23AM +0100, Chris Wilson wrote: > In order to support snoopable memory on non-LLC architectures (so that > we can bind vgem objects into the i915 GATT for example), we have to > avoid the prefetcher on the GPU from crossing memory domains and so > prevent allocation of a snoopable PTE immediately following an uncached > PTE. To do that, we need to extend the range allocator with support for > tracking and segregating different node colours. > > This will be used by i915 to segregate memory domains within the GTT. > > v2: Now with more drm_mm helpers and less driver interference. > > Signed-off-by: Chris Wilson > Cc: Dave Airlie Cc: Benjamin Herrenschmidt > Cc: Ben Skeggs > Cc: Jerome Glisse > Cc: Alex Deucher > Cc: Daniel Vetter > Cc: dri-devel@lists.freedesktop.org Imo we should ditch the rather useless best_match and maybe also fold the _range variants into the generic ones for most cases, but that's stuff for other patches. So Reviewed-by: Daniel Vetter Cheers, Daniel -- Daniel Vetter Mail: daniel@ffwll.ch Mobile: +41 (0)79 365 57 48