From: Jani Nikula <jani.nikula@linux.intel.com>
To: Ben Widawsky <ben@bwidawsk.net>,
Damien Lespiau <damien.lespiau@gmail.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 1/2] intel_reg_dumper: Add a single register decode mode
Date: Mon, 03 Sep 2012 10:06:45 +0300 [thread overview]
Message-ID: <87txvfa8l6.fsf@intel.com> (raw)
In-Reply-To: <e3bc1d7ded436695306f89f1517efc3d@bwidawsk.net>
On Sun, 02 Sep 2012, Ben Widawsky <ben@bwidawsk.net> wrote:
> On 2012-08-31 06:45, Damien Lespiau wrote:
>> From: Damien Lespiau <damien.lespiau@intel.com>
>>
>> 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 way to ask it to decode a value.
>>
>> Example usage:
>>
>> $ ./tools/intel_reg_dumper PCH_PP_CONTROL 0xabcd0002
>> PCH_PP_CONTROL: 0xabcd0002 (blacklight disabled, power...
>>
>> v2: friendlier invocation (Chris Wilson)
>>
>> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
>
> Back to my earlier complaint from the other patch... If the names don't
> match the docs then you forced to memorize our historically awful naming
> scheme. More useful to me would be to decode a register at an offset for
> a given generation.
I think both would be useful. So how about supporting both? Concrete
suggestion:
1) If strtoul eats whole of register name, it's register offset. Print
*all* matches across *all* generations.
2) If it's a register name, print *all* partial matches (from beginning
of string) across *all* generations.
3) Include generation and register offset in the output:
Gen5: PCH_PP_CONTROL (0xc7204): 0xabcd0002 (blacklight disabled, power...
This would help in cross checking historically awful naming against
register offsets, and help in checking for differences between registers
and their values across generations.
These patches could also go in first, and the above added later.
BR,
Jani.
next prev parent reply other threads:[~2012-09-03 7:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-31 13:45 [PATCH 1/2] intel_reg_dumper: Add a single register decode mode Damien Lespiau
2012-08-31 13:45 ` [PATCH 2/2] intel_reg_dumper: Decode FDI_RX_IIR Damien Lespiau
2012-09-02 1:48 ` [PATCH 1/2] intel_reg_dumper: Add a single register decode mode Ben Widawsky
2012-09-03 7:06 ` Jani Nikula [this message]
2012-09-03 15:35 ` Lespiau, Damien
2012-09-03 7:10 ` Jani Nikula
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87txvfa8l6.fsf@intel.com \
--to=jani.nikula@linux.intel.com \
--cc=ben@bwidawsk.net \
--cc=damien.lespiau@gmail.com \
--cc=intel-gfx@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.