Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Stephan Rohr <stephan.rohr@intel.com>
Cc: gdb-patches@sourceware.org, pedro@palves.net, jhb@FreeBSD.org,
	luis.machado@arm.com
Subject: Re: [PATCH v2 2/5] gdb, gdbserver: Add Intel AMX registers.
Date: Fri, 30 Oct 2026 14:47:42 +0200	[thread overview]
Message-ID: <868q3fuzgx.fsf@gnu.org> (raw)
In-Reply-To: <20261030115016.45786-3-stephan.rohr@intel.com> (message from Stephan Rohr on Fri, 30 Oct 2026 11:50:13 +0000)

> From: Stephan Rohr <stephan.rohr@intel.com>
> Cc: pedro@palves.net,
> 	eliz@gnu.org,
> 	jhb@FreeBSD.org,
> 	luis.machado@arm.com
> Date: Fri, 30 Oct 2026 11:50:13 +0000
> 
> From: Felix Willgerodt <felix.willgerodt@intel.com>
> 
> Intel Advanced Matrix Extensions (AMX) adds one 64-byte TILECFG register
> and eight 1024-byte tile registers TMM0, TMM1, ..., TMM7.  The tile
> registers each represent a matrix, whose dimensions are configured via
> TILECFG.  In XSAVE, all tiles are represented in the 8kB TILEDATA section.
> 
> Future platforms are free to add new palettes, which are run-time
> configurable partitionings of the TILEDATA space.  Currently only
> palette 0 (initialized zero state) and palette 1 exist.  New palettes
> might change any of the following parameters, which are defined in the
> palette_table (which can be accessed via CPUID):
> 
> define palette_table[id]:
> 	uint16_t total_tile_bytes
> 	uint16_t bytes_per_tile
> 	uint16_t bytes_per_row
> 	uint16_t max_names
> 	uint16_t max_rows
> 
> More information about Intel AMX can be found in the Intel Software
> Developer's Manual, September 2026.
> 
> The $tilecfg register is implemented as a pseudo register.  For convenience,
> reserved bytes are not shown.  To also be able to show the full register,
> $tilecfg_raw is implemented as a uint512 value.
> 
> The $tmm0_raw-$tmm7_raw registers hold the contents of the tiles.  Each is
> shown with the maximum dimensions of 16 rows of 64 bytes.  Only the elements
> within the dimensions configured in $tilecfg hold data.
> 
> To hide the raw registers, they are added to the "save" and "restore"
> register groups only.  A following patch introduces user registers and adds
> the tile user registers to the "all" group such that the tile registers show
> up in the "info registers all" command.
> 
> Intel AMX is supported for 64-bit only.
> 
> Co-Authored-By: Stephan Rohr <stephan.rohr@intel.com>
> ---
>  gdb/NEWS                             |   5 +
>  gdb/amd64-linux-tdep.c               |   2 +
>  gdb/amd64-tdep.c                     |  67 ++++++++-
>  gdb/amd64-tdep.h                     |   3 +
>  gdb/arch/amd64.c                     |   4 +
>  gdb/arch/x86-linux-tdesc-features.c  |   5 +-
>  gdb/doc/gdb.texinfo                  |  40 ++++++
>  gdb/features/Makefile                |   1 +
>  gdb/features/i386/64bit-amx.c        |  26 ++++
>  gdb/features/i386/64bit-amx.xml      |  26 ++++
>  gdb/i386-tdep.c                      | 132 +++++++++++++++++-
>  gdb/i386-tdep.h                      |  25 +++-
>  gdb/i387-tdep.c                      | 196 +++++++++++++++++++++++++--
>  gdb/i387-tdep.h                      |   6 +
>  gdb/nat/x86-xstate.c                 |   2 +
>  gdb/target-debug.h                   |   2 +
>  gdb/testsuite/gdb.arch/amd64-amx.c   | 115 ++++++++++++++++
>  gdb/testsuite/gdb.arch/amd64-amx.exp | 192 ++++++++++++++++++++++++++
>  gdb/testsuite/lib/amd64-amx.h        |  41 ++++++
>  gdb/testsuite/lib/gdb.exp            |  75 ++++++++++
>  gdbserver/i387-fp.cc                 |  70 +++++++++-
>  gdbserver/linux-x86-low.cc           |   2 +
>  gdbsupport/x86-xstate.h              |  26 +++-
>  23 files changed, 1042 insertions(+), 21 deletions(-)
>  create mode 100644 gdb/features/i386/64bit-amx.c
>  create mode 100644 gdb/features/i386/64bit-amx.xml
>  create mode 100644 gdb/testsuite/gdb.arch/amd64-amx.c
>  create mode 100644 gdb/testsuite/gdb.arch/amd64-amx.exp
>  create mode 100644 gdb/testsuite/lib/amd64-amx.h

Thanks, the documentation parts are okay.

Reviewed-By: Eli Zaretskii <eliz@gnu.org>

  reply	other threads:[~2026-10-30 12:48 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-30 11:50 [PATCH v2 0/5] Add Intel AMX support Stephan Rohr
2026-10-30 11:50 ` [PATCH v2 1/5] gdb: define additional integer built-in types Stephan Rohr
2026-10-30 12:45   ` Eli Zaretskii
2026-10-30 11:50 ` [PATCH v2 2/5] gdb, gdbserver: Add Intel AMX registers Stephan Rohr
2026-10-30 12:47   ` Eli Zaretskii [this message]
2026-11-03 10:44   ` Joos, Christina
2026-11-03 14:40   ` Joos, Christina
2026-10-30 11:50 ` [PATCH v2 3/5] gdb: support register groups for user registers Stephan Rohr
2026-10-30 12:48   ` Eli Zaretskii
2026-10-30 11:50 ` [PATCH v2 4/5] gdb: add a "matrix" register group Stephan Rohr
2026-10-30 12:49   ` Eli Zaretskii
2026-10-30 11:50 ` [PATCH v2 5/5] gdb: add Intel AMX tile registers as user registers Stephan Rohr
2026-10-30 12:50   ` Eli Zaretskii
2026-11-03 15:19   ` Joos, Christina
2026-11-04  9:00     ` Joos, Christina

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=868q3fuzgx.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=gdb-patches@sourceware.org \
    --cc=jhb@FreeBSD.org \
    --cc=luis.machado@arm.com \
    --cc=pedro@palves.net \
    --cc=stephan.rohr@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox