From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Widawsky Subject: Re: [PATCH] drm/i915: Fix pte updates in ggtt clear range Date: Tue, 27 Nov 2012 08:32:57 -0800 Message-ID: <20121127083257.00003a39@unknown> References: <1353995574-1021-1-git-send-email-ben@bwidawsk.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from shiva.chad-versace.us (209-20-75-48.static.cloud-ips.com [209.20.75.48]) by gabe.freedesktop.org (Postfix) with ESMTP id E0B83E62BC for ; Tue, 27 Nov 2012 08:33:10 -0800 (PST) In-Reply-To: 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, 27 Nov 2012 08:22:01 +0000 Chris Wilson wrote: > On Mon, 26 Nov 2012 21:52:54 -0800, Ben Widawsky > wrote: > > This bug was introduced by me: > > commit e76e9aebcdbfebae8f4cd147e3c0f800d36e97f3 > > Author: Ben Widawsky > > Date: Sun Nov 4 09:21:27 2012 -0800 > > > > drm/i915: Stop using AGP layer for GEN6+ > > > > The existing code uses memset_io which follows memset semantics in > > only guaranteeing a write of individual bytes. Since a PTE entry is > > 4 bytes, this can only be correct if the scratch page address is 0. > > Gah. Wasn't there an iowrite32_rep? And you would hope it does what you want... but it seems like just a memcpy of dword sized chunks. My first thought was to write my own memset which does what you want, but this seemed like a path of less resistance. > > > This caused unsightly errors when we clear the range at load time, > > though I'm not really sure what the heck is referencing that memory > > anyway. I caught this is because I believe we have some other bug > > where the display is doing reads of memory we feel should be > > cleared (or we are relying on scratch pages to be a specific value). > > That's just because we are no longer disabling outputs before updating > the GTT and hence continue to scanout from the BIOS fb during module > load. It's a regression that we'll be able to finally fix properly > with fastboot - though that will not be without its downsides either. > -Chris >