From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH 2/2] drm/i915: Segregate memory domains in the GTT using coloring Date: Thu, 12 Jul 2012 14:19:34 +0200 Message-ID: <20120712121934.GE5039@phenom.ffwll.local> References: <20120710094014.GC5108@phenom.ffwll.local> <1341915324-18896-1-git-send-email-chris@chris-wilson.co.uk> <1341915324-18896-2-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-we0-f177.google.com (mail-we0-f177.google.com [74.125.82.177]) by gabe.freedesktop.org (Postfix) with ESMTP id 757329EC9B for ; Thu, 12 Jul 2012 05:19:33 -0700 (PDT) Received: by weyr3 with SMTP id r3so1663561wey.36 for ; Thu, 12 Jul 2012 05:19:32 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1341915324-18896-2-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: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Tue, Jul 10, 2012 at 11:15:24AM +0100, Chris Wilson wrote: > Several functions of the GPU have the restriction that differing memory > domains cannot be placed next to each other (as the GPU may prefetch > beyond the end of one domain and hang as it crosses into the other > domain). We use the facility of the drm_mm to mark ranges with a > particular color that corresponds to the cache attributes of those pages > in order to prevent allocating adjacent blocks of differing memory > types. > > v2: Rebase ontop of drm_mm coloring v2. > > Signed-off-by: Chris Wilson Reviewed-by: Daniel Vetter -- Daniel Vetter Mail: daniel@ffwll.ch Mobile: +41 (0)79 365 57 48