From 7f0be0e7d9becb79630093bf0e6daeadcd937062 Mon Sep 17 00:00:00 2001 From: Mika Kuoppala Date: Wed, 10 Jan 2018 15:42:58 +0200 Subject: tools/intel_reg: Add reading and writing registers through engine 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. v2: no MI_NOOP after BBE (Chris) v3: use modern engine names (Chris), use global fd v4: strcasecmp (Chris) v5: use register definition format for engine (Jani) Cc: Jani Nikula Cc: Chris Wilson CC: Joonas Lahtinen Signed-off-by: Mika Kuoppala Reviewed-by: Chris Wilson (v4) Acked-by: Jani Nikula --- man/intel_reg.rst | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'man') diff --git a/man/intel_reg.rst b/man/intel_reg.rst index d1af178a..4ec24c4c 100644 --- a/man/intel_reg.rst +++ b/man/intel_reg.rst @@ -103,7 +103,7 @@ Display brief help. REGISTER REFERENCES =================== -Registers are defined as [(PORTNAME|PORTNUM|MMIO-OFFSET):](REGNAME|REGADDR). +Registers are defined as [(PORTNAME|PORTNUM|ENGINE|MMIO-OFFSET):](REGNAME|REGADDR). PORTNAME The register access method, most often MMIO, which is the default. The @@ -120,6 +120,13 @@ PORTNUM Numbers above 0xff are automatically interpreted as MMIO offsets, not port numbers. +ENGINE + Instead of cpu based MMIO, specified engine can be used for access method. + Batchbuffer will be targeted for the engine to do read/write. The list of + available engines is architecture specific and can be found with + "intel_reg help". Prefixing engine name with '-' uses non-privileged + batchbuffer for access. + MMIO-OFFSET Use MMIO, and add this offset to the register address. -- cgit v1.2.3