From: Chris Wilson Subject: Re: [PATCH 6/9] drm/i915: Allocate context objects from stolen Date: Sat, 10 Aug 2013 10:34:29 +0100 Message-ID: <20130810093429.GJ3561@cantiga.alporthouse.com> References: <1375969271-4331-1-git-send-email-chris@chris-wilson.co.uk> <1375969271-4331-6-git-send-email-chris@chris-wilson.co.uk> <20130810092546.GI31670@phenom.ffwll.local> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from fireflyinternet.com (s16502780.onlinehome-server.info [87.106.93.118]) by gabe.freedesktop.org (Postfix) with ESMTP id D6713E64B8 for ; Sat, 10 Aug 2013 02:34:39 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20130810092546.GI31670@phenom.ffwll.local> 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: Daniel Vetter Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Sat, Aug 10, 2013 at 11:25:46AM +0200, Daniel Vetter wrote: > On Thu, Aug 08, 2013 at 02:41:08PM +0100, Chris Wilson wrote: > > Once again, the CPU PAT bits are irrelevant when considering the GPU > > cacheing, and context objects are never accessed from the CPU or > > directly by userspace making them another ideal candidate to allocate > > from stolen memory. > > > > Signed-off-by: Chris Wilson > > I think this will break hibernate, since over hibernate stolen get some > garbage. And userspace (and the gpu) probably don't expect garbage when > trying to restore a hw context. Same will be true for framebuffers, which we definitely want to use stolen for. Suggests we will need to allocate temporaries across hibernate or warn userspace that the contents are garbage. -Chris -- Chris Wilson, Intel Open Source Technology Centre