DOKK / manpages / debian 12 / intel-gpu-tools / intel_reg.1.en
INTEL_REG(1) General Commands Manual INTEL_REG(1)

intel_reg - Intel graphics register multitool

intel_reg [OPTIONS] COMMAND

Intel graphics register multitool. Read, write, dump, and decode Intel graphics MMIO and sideband registers, and more.

Some options are global, and some specific to commands.

Increase verbosity.
Decrease verbosity.
Read N registers.
Output binary values.
Decode registers for all known platforms.
Use MMIO bar from FILE.
Pretend to be PCI ID DEVID. Useful with MMIO bar snapshots from other machines.
Read register spec from directory or file specified by PATH; see REGISTER SPEC DEFINITIONS below for details.
Show brief help.

See REGISTER REFERENCES below on how to describe registers for the commands.

Dump each specified REGISTER, or N registers starting from each REGISTER.

Write each VALUE to corresponding REGISTER.

Dump all registers specified in the register spec.

Decode REGISTER VALUE.

Output the MMIO bar to stdout. The output can be used for a later invocation of dump or read with the --mmio=FILE and --devid=DEVID parameters.

List the known registers.

Display brief help.

Registers are defined as [(PORTNAME|PORTNUM|ENGINE|MMIO-OFFSET):](REGNAME|REGADDR).

The register access method, most often MMIO, which is the default. The methods supported on all platforms are "mmio", "portio-vga", and "mmio-vga".

On BYT and CHV, the sideband ports "bunit", "punit", "nc", "dpio", "gpio-nc", "cck", "ccu", "dpio2", and "flisdsi" are also supported.

Port number for the sideband ports supported on BYT and CHV. Only numbers mapped to the supported ports are allowed, arbitrary numbers are not accepted.

Numbers above 0xff are automatically interpreted as MMIO offsets, not port numbers.

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.
Use MMIO, and add this offset to the register address.

Numbers equal to or below 0xff are automatically interpreted as port numbers, not MMIO offsets.

Name of the register as defined in the register spec.

If MMIO offset is not specified, it is picked up from the register spec. However, ports are not; the port is a namespace for the register names.

Register address. The corresponding register name need not be specified in the register spec.

Path to a directory or a file containing register spec definitions.

A register spec associates register names with addresses. The spec is searched for in this order:

1.
Directory or file specified by the --spec option.
2.
Directory or file specified by the INTEL_REG_SPEC environment variable.
3.
Builtin register spec. Also used as fallback with a warning if the above are used but fail.

If a directory is specified using --spec option or INTEL_REG_SPEC environment variable, the directory is scanned for a spec file in this order:

1.
File named after the PCI device id. For example, "0412".
2.
File named after the code name in lowercase, without punctuation. For example, "valleyview".
3.
File named after generation. For example, "gen7" (note that this matches valleyview, ivybridge and haswell!).

The register spec format is briefly described below:

  • Empty lines and lines beginning with "#", ";", or "//" are ignored.
  • Lines not beginning with "(" are interpreted as file names, absolute or relative, to be included.
  • Lines beginning with "(" are interpreted as register definitions.

Registers are defined as tuples ('REGNAME', 'REGADDR', 'PORTNAME|PORTNUM|MMIO-OFFSET'), as in REGISTER REFERENCES above. The port description may also be an empty string to denote MMIO.

Examples:

  • # this is a comment, below is an include
  • vlv_pipe_a.txt
  • ('GEN6_PMINTRMSK', '0x0000a168', '')
  • ('MIPIA_PORT_CTRL', '0x61190', '0x180000')
  • ('PLL1_DW0', '0x8000', 'DPIO')

Reading some registers may hang the GPU or the machine.

Report bugs on fd.o GitLab: https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/issues

Jani Nikula <jani.nikula@intel.com>

2015-2016 Intel Corporation

2016-03-01 igt-gpu-tools 1.27.1