From: Daniel Vetter Subject: Re: [PATCH] drm/i915: Work-around garbage DR4 from UXA Date: Tue, 13 May 2014 15:56:37 +0200 Message-ID: <20140513135637.GJ3908@phenom.ffwll.local> References: <1399981307-10326-1-git-send-email-daniel.vetter@ffwll.ch> <1399982527-10754-1-git-send-email-daniel.vetter@ffwll.ch> <20140513122549.GI7239@nuc-i3427.alporthouse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail-we0-f171.google.com (mail-we0-f171.google.com [74.125.82.171]) by gabe.freedesktop.org (Postfix) with ESMTP id E00EE6EABA for ; Tue, 13 May 2014 06:56:41 -0700 (PDT) Received: by mail-we0-f171.google.com with SMTP id w62so426026wes.16 for ; Tue, 13 May 2014 06:56:40 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20140513122549.GI7239@nuc-i3427.alporthouse.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Chris Wilson , Daniel Vetter , Intel Graphics Development , =?iso-8859-1?Q?J=F6rg?= Otte List-Id: intel-gfx@lists.freedesktop.org On Tue, May 13, 2014 at 01:25:49PM +0100, Chris Wilson wrote: > On Tue, May 13, 2014 at 02:02:07PM +0200, Daniel Vetter wrote: > > Somehow UXA submits a completely bogus DR4 value since essentially > > forever. It was originally introduced in > > = > > commit bade7d7d2505a10a8a7d24b084aff9742e2d6d64 > > Author: Eric Anholt > > Date: Fri Jun 6 14:03:25 2008 -0700 > > = > > Use the DRM for submitting batchbuffers when available. > > = > > and dutifully copied around ever since. Since we want to keep the > > general dirt catching around just special case the UXA value. > > = > > This regression was introduced in > > = > > commit 9cb346648d9c529eccc5c7f30093e82d37004e37 > > Author: Daniel Vetter > > Date: Thu Apr 24 08:09:11 2014 +0200 > > = > > drm/i915: Catch dirt in unused execbuffer fields > > = > > v2: Pimp commit message a bit and remove the double space. > > = > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=3D78494 > > Cc: Chris Wilson > > Cc: J=F6rg Otte > > Signed-off-by: Daniel Vetter > = > To be fair, it is a sensible value if one supposes a Region style API to > cliprects. Under that API, DR[14] define the extents of the clip region, > and ((0,0), (0,0)) [DR1=3D=3DDR4=3D=3D0] would mean all clipped, do not d= raw > anything. Hm right. I've added this to the commit message. > Anyway, as far as fixing up the EINVAL, > Acked-by: Chris Wilson And merged the patch to dinq. -Daniel -- = Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch