From: Chris Wilson Subject: Re: [PATCH] intel_reg_dumper: Add a single register decode mode Date: Thu, 30 Aug 2012 17:41:34 +0100 Message-ID: <6c3329$5oiqcn@orsmga002.jf.intel.com> References: <1346342859-3470-1-git-send-email-damien.lespiau@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTP id C82B89E943 for ; Thu, 30 Aug 2012 09:41:56 -0700 (PDT) In-Reply-To: <1346342859-3470-1-git-send-email-damien.lespiau@gmail.com> 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: Damien Lespiau , intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Thu, 30 Aug 2012 17:07:39 +0100, Damien Lespiau wrote: > From: Damien Lespiau > > From time to time, one would like to decode a register value that have > been captured at a certain point in time (and say printed out with a > printk). intel_reg_dumper has all the knowledge to do that and this > patch adds a -r option to use the tool in that mode. > > Example usage: > > $ ./tools/intel_reg_dumper -r PCH_PP_CONTROL 0xabcd0002 > PCH_PP_CONTROL: 0xabcd0002 (blacklight disabled, power... It's a good idea. Though I would rather have: $ intel_reg_decode PCH_PP_CONTROL 0xabcd1234 -Chris -- Chris Wilson, Intel Open Source Technology Centre