From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH] intel_error_decode: use 64b gtt_offset Date: Tue, 29 Apr 2014 11:01:10 +0200 Message-ID: <20140429090110.GL32404@phenom.ffwll.local> References: <1398735784-7069-1-git-send-email-benjamin.widawsky@intel.com> <1398735950-23760-1-git-send-email-benjamin.widawsky@intel.com> <20140429085244.GK32404@phenom.ffwll.local> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ee0-f42.google.com (mail-ee0-f42.google.com [74.125.83.42]) by gabe.freedesktop.org (Postfix) with ESMTP id 64D676E46D for ; Tue, 29 Apr 2014 02:01:15 -0700 (PDT) Received: by mail-ee0-f42.google.com with SMTP id d17so55203eek.1 for ; Tue, 29 Apr 2014 02:01:14 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20140429085244.GK32404@phenom.ffwll.local> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Ben Widawsky Cc: Intel GFX List-Id: intel-gfx@lists.freedesktop.org On Tue, Apr 29, 2014 at 10:52:44AM +0200, Daniel Vetter wrote: > On Mon, Apr 28, 2014 at 06:45:50PM -0700, Ben Widawsky wrote: > > See the relevant kernel patch for the details. I guess this breaks > > support for older error state, I am not actually sure. Without > > versioning our error state though, I cannot think of a better way. > > Suggestions are welcome. > > Just drop the length qualifier and let scanf it the full number? Also, you know the drill: Testcase, please. A copy of drv_hangman to also feed the captured error state into intel_error_decode and check that it doesn't fall overr (exitcode != 0 and nothing on stderr). Maybe call it drv_error_decode or something like that. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch