From: Mika Kuoppala <mika.kuoppala@linux.intel.com>
To: Jani Nikula <jani.nikula@intel.com>, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH igt] tools/intel_reg: Add reading and writing registers through engine
Date: Wed, 31 Jan 2018 15:29:34 +0200 [thread overview]
Message-ID: <87bmhaw401.fsf@gaia.fi.intel.com> (raw)
In-Reply-To: <87607ichhq.fsf@intel.com>
Jani Nikula <jani.nikula@intel.com> writes:
> On Mon, 22 Jan 2018, Mika Kuoppala <mika.kuoppala@linux.intel.com> wrote:
>> Jani Nikula <jani.nikula@intel.com> writes:
>>
>>> On Mon, 08 Jan 2018, Mika Kuoppala <mika.kuoppala@linux.intel.com> wrote:
>>>> Add option to specify engine for register read/write operation.
>>>> If engine is specified, use MI_LOAD_REGISTER_IMM and MI_STORE_REGISTER_IMM
>>>> to write and read register using a batch targeted at that engine.
>>>
>>> Copy-pasting from the man page, we already have the notation:
>>>
>>> "Registers are defined as [(PORTNAME|PORTNUM|MMIO-OFFSET):](REGNAME|REGADDR)."
>>>
>>> Why don't we add this as ENGINE:REGNAME or something instead of an extra
>>> --engine parameter? As a "port". Sure, it's more work, but I really like
>>> the current possibility of reading all types of registers at once. Now
>>> you prevent dumps that would contain both mmio and batch based reads.
>>>
>>
>> Are you ok with the latest version? As discussed in irc, there are
>> problems with trying to add engines as ports, due to dynamic nature
>> and also that the existing infra relies on PORTNAME being mmio
>> for symbolic register dumping to work correctly.
>>
>> for the wart of if (reg->engine) in read/write paths
>> we gain the benefits of mmio dumps with engines.
>
> Can't say I would've reviewed all the engine bits and pieces, but
>
> Acked-by: Jani Nikula <jani.nikula@intel.com>
Thanks for ack and review. Pushed.
-Mika
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2018-01-31 13:29 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-01 14:16 [PATCH igt] tools/intel_reg: Add reading and writing registers through engine Mika Kuoppala
2017-12-01 14:21 ` ✗ Fi.CI.BAT: failure for " Patchwork
2017-12-01 14:32 ` [PATCH igt] " Chris Wilson
2018-01-08 14:12 ` Mika Kuoppala
2018-01-08 14:24 ` Chris Wilson
2018-01-08 14:31 ` Jani Nikula
2018-01-10 13:42 ` Mika Kuoppala
2018-01-22 16:08 ` Mika Kuoppala
2018-01-31 12:58 ` Jani Nikula
2018-01-31 13:29 ` Mika Kuoppala [this message]
2018-01-08 14:51 ` ✓ Fi.CI.BAT: success for tools/intel_reg: Add reading and writing registers through engine (rev2) Patchwork
2018-01-08 19:58 ` ✗ Fi.CI.IGT: warning " Patchwork
2018-01-10 14:10 ` ✓ Fi.CI.BAT: success for tools/intel_reg: Add reading and writing registers through engine (rev3) Patchwork
2018-01-10 14:56 ` ✗ Fi.CI.IGT: warning " Patchwork
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=87bmhaw401.fsf@gaia.fi.intel.com \
--to=mika.kuoppala@linux.intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jani.nikula@intel.com \
/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.