From: Daniel Vetter <daniel@ffwll.ch>
To: Ben Widawsky <ben@bwidawsk.net>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [RFC] [PATCH] quick_dump: A dump utility different than reg_dumper
Date: Thu, 27 Sep 2012 13:51:59 +0200 [thread overview]
Message-ID: <20120927115159.GB2098@bremse> (raw)
In-Reply-To: <20120926114026.0000211b@unknown>
On Wed, Sep 26, 2012 at 11:40:26AM -0700, Ben Widawsky wrote:
> On Wed, 26 Sep 2012 13:51:01 +0200
> Daniel Vetter <daniel@ffwll.ch> wrote:
>
> > On Sat, Sep 22, 2012 at 01:58:37PM -0700, Ben Widawsky wrote:
> > > On 2012-09-22 11:05, Daniel Vetter wrote:
> > > >And a quick comment on your approach here: I'm not too sure
> > > >whether the
> > > >file-base register block approach scales, respectively why exactly
> > > >this is
> > > >better than frobbing the reg_dumper tool. Since that one has the
> > > >concept
> > > >of register blocks already, too.
> > >
> > > It doesn't scale. It scales better than reg_dumper was my goal and
> > > point (IMO).
> > >
> > > The exact problem that was trying to be solved is Valleyview (and I
> > > assure you there will be more such products coming). Valleyview took
> > > a huge chunk of well known registers, and changed their offsets.
> > > Modifying this in reg dumper is of course possible, but it's
> > > tedious. I wanted to have easy to modify text files with an easy
> > > python front end (the offsets could even be applied in the script
> > > extremely easily).
> >
> > If the issue is just the base-address moving around, I think we could
> > solve that with some refactoring ...
> > -Daniel
>
> That's exactly an example of the problem it's trying to solve. When
> working on new platforms (which is happening much more frequently then
> it used to), we shouldn't have to refactor an existing tool to make it
> do what we want in preparation for power-on, or even worse, during
> power-on. I want something quick, and dirty that gets the information I
> need, and migrate it over time to intel_reg_dumper. Furthermore, doing
> the range dump can be trivially added with your scripting language of
> choice.
>
> Almost as important, it takes away from the maintenance burden on a
> useful tool like reg_dumper for one off platforms like the stupid vlv
> we are currently working with (ie. things which will never ship).
>
> I'm not sure at this point if you're genuinely opposed, or just looking
> for holes to poke. Maybe you can clarify, because frankly, I'm using
> this tool for my own needs, and whether or not I push it is fairly
> don't care.
Not genuinely opposed, but questioning the usefulness of such a script as
a tool to be used for end-users (which most of the i-g-t/tools programs
are for). If you want I think it'd make sense to move it to scripts as a
noinst_PYTHON thing (we have a few of those already). I'll merge such a
patch.
Cheers, Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
next prev parent reply other threads:[~2012-09-27 11:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-21 19:46 [RFC] [PATCH] quick_dump: A dump utility different than reg_dumper Ben Widawsky
2012-09-22 18:05 ` Daniel Vetter
2012-09-22 20:58 ` Ben Widawsky
2012-09-26 11:51 ` Daniel Vetter
2012-09-26 18:40 ` Ben Widawsky
2012-09-27 11:51 ` Daniel Vetter [this message]
2013-01-20 2:03 ` Ben Widawsky
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=20120927115159.GB2098@bremse \
--to=daniel@ffwll.ch \
--cc=ben@bwidawsk.net \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox