From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH 1/2] drm/i915: Switch to fake context on older gens Date: Fri, 14 Mar 2014 16:46:45 +0100 Message-ID: <20140314154645.GY30571@phenom.ffwll.local> References: <1394806931-7399-1-git-send-email-mika.kuoppala@intel.com> <87d2ho264b.fsf@intel.com> <20140314154221.GX30571@phenom.ffwll.local> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ee0-f50.google.com (mail-ee0-f50.google.com [74.125.83.50]) by gabe.freedesktop.org (Postfix) with ESMTP id BA626FA88B for ; Fri, 14 Mar 2014 08:46:51 -0700 (PDT) Received: by mail-ee0-f50.google.com with SMTP id c13so1527130eek.37 for ; Fri, 14 Mar 2014 08:46:49 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20140314154221.GX30571@phenom.ffwll.local> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org To: Jani Nikula Cc: intel-gfx@lists.freedesktop.org, miku@iki.fi, "Lu, HuaX" List-Id: intel-gfx@lists.freedesktop.org On Fri, Mar 14, 2014 at 04:42:21PM +0100, Daniel Vetter wrote: > On Fri, Mar 14, 2014 at 04:43:16PM +0200, Jani Nikula wrote: > > On Fri, 14 Mar 2014, Mika Kuoppala wrote: > > > We used to have per file descriptor hang stats for the > > > i915_get_reset_stats_ioctl() and for default context banning. > > > > > > commit 0eea67eb26000657079b7fc41079097942339452 > > > Author: Ben Widawsky > > > Date: Fri Dec 6 14:11:19 2013 -0800 > > > > > > drm/i915: Create a per file_priv default context > > > > > > made having separate hangstats in file_private redundant > > > as i915_hw_context already contained hangstats. So > > > > > > commit c482972a086e03e6a6d27e4f7af2d868bf659648 > > > Author: Ben Widawsky > > > Date: Fri Dec 6 14:11:20 2013 -0800 > > > > > > drm/i915: Piggy back hangstats off of contexts > > > > > > consolidated the hangstats and enabled further improvements. > > > > > > commit 44e2c0705a19e09d7b0f30a591f92e473e5ef89e > > > Author: Mika Kuoppala > > > Date: Thu Jan 30 16:01:15 2014 +0200 > > > > > > drm/i915: Use i915_hw_context to set reset stats > > > > > > tried to reap full benefits of consolidation but fell short > > > as we never 'switch' to the fake private context on gens > > > that don't have hw_contexts, so request->ctx remained NULL > > > on those. > > > > > > Fix this by 'switching' to fake context so that when > > > request is submitted to ring, proper context gets assigned > > > to it. > > > > > > References: https://bugs.freedesktop.org/show_bug.cgi?id=76055 > > > > I'd say this still applies: > > > > Tested-by: Lu Hua > > Also if your patch intends to fix a bug, please use a Bugzilla: reference, > I tend to use References only when there's an issue seen in a report, but > it's not the main issue. Queued for -next, thanks for the patch. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch