From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH 2/2] tests: wedged + error_state read test Date: Wed, 4 Apr 2012 13:09:24 +0200 Message-ID: <20120404110924.GB4069@phenom.ffwll.local> References: <1333519380-6756-1-git-send-email-ben@bwidawsk.net> <1333519380-6756-3-git-send-email-ben@bwidawsk.net> <1333536532_232842@CP5-2952> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by gabe.freedesktop.org (Postfix) with ESMTP id 8FB369EBBC for ; Wed, 4 Apr 2012 04:08:39 -0700 (PDT) Received: by wibhj13 with SMTP id hj13so102487wib.12 for ; Wed, 04 Apr 2012 04:08:38 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1333536532_232842@CP5-2952> 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: Ben Widawsky , intel-gfx@lists.freedesktop.org, Ben Widawsky List-Id: intel-gfx@lists.freedesktop.org On Wed, Apr 04, 2012 at 11:48:22AM +0100, Chris Wilson wrote: > On Tue, 3 Apr 2012 23:02:59 -0700, Ben Widawsky wrote: > > +[[ `echo 1 | sudo tee ${i915_path}/i915_wedged` ]] || die "Couldn't write to ${i915_path}/i915_wedged" > echo 1 | sudo tee $(i915_path)/i915_wedged || die ... > > +cat $i915_path/i915_error_state > /dev/null 2>&1 > cat $(i915_path)/i915_error_state > /dev/null 2>&1 || die ... > > Can we check for gen >= 6 before killing the GPU in an automated test? > Or do we recommend reseting the GPU if i915_wedged remains set? I've ditched this from the automated test list, fixed up the root confusion (make test would already check for that), and fixed the bash sourcing to also work when pwd != i-g-t/tests. -Daniel -- Daniel Vetter Mail: daniel@ffwll.ch Mobile: +41 (0)79 365 57 48