Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Abhay Kandpal <abhay@linux.ibm.com>
To: Ulrich Weigand <Ulrich.Weigand@de.ibm.com>,
	"gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Cc: "cel@linux.ibm.com" <cel@linux.ibm.com>, Abhay Kandpal <Abhay.k@ibm.com>
Subject: Re: [PATCH v1] PowerPC: Add support for Dense Math registers (RFC02653)
Date: Tue, 29 Sep 2026 14:05:46 +0530	[thread overview]
Message-ID: <fdfcb036-bc52-49da-8bd3-a33328bfc6d3@linux.ibm.com> (raw)
In-Reply-To: <f499fa0f30f8ab4ba6daf176b551ee031ec0e52d.camel@de.ibm.com>

[-- Attachment #1: Type: text/plain, Size: 2336 bytes --]

Hi Ulrich,

On 28/09/26 14:52, Ulrich Weigand wrote:
> Abhay Kandpal<abhay@linux.ibm.com> wrote:
>   
>> The existing names encode the base ISA level, but DMR is a later ISA
>> feature layered on an isa207-derived description, so isa207-dmr would
>> misstate the ISA level. A few options:
>>
>> 1. powerpc-isa207-dmr-vsx64l - names the base feature set the description extends
>> 2. powerpc-isa32-dmr-vsx64l - names DMR's own ISA level (ISA 3.2)
>> 3. powerpc-dmr-vsx64l - as posted, no ISA level
> I'm not familiar with ISA 3.2 - is DMR mandatory or optional in 3.2?

I checked with our architecture team. DMR can't be disabled independently,
it depends on VSX being enabled, and an ISA 3.2 implementation running with
VSX disabled isn't a configuration that's supported in practice. So there is
no realistic ISA 3.2 target without DMR.

> And are there any *other* 3.2 features that GDB needs to implement?

No - DMR is the only new architected register state in ISA 3.2,
so the GDB work is limited to these registers.

>
> I'd prefer "powerpc-isa32-vsx64l" to refer to an implementation of
> all mandatory features (including DMR if mandatory), and if DMR is
> optional, then in addition "powerpc-isa32-dmr-vsx64l" for the
> combination of mandatory ISA 3.2 features plus DMR.

Given the above, v2 uses a single description,|powerpc-isa32-vsx32l/64l|,
which includes DMR. Your other comments are addressed in v2 as well.

Regards,
Abhay

>
>   
>> So in v2 I'll convert the native side to the regset mechanism
>> throughout: fetch_regset/store_regset with NT_PPC_DMR in
>> fetch_register, fetch_ppc_registers, store_register and
>> store_ppc_registers, and a regset-based availability check in
>> read_description. That removes the need for the
>> PTRACE_GETDMREGS/PTRACE_SETDMREGS defines, so I'll drop the
>> block rather than move it - unless something still needs them,
>> in which case I'll relocate it as you suggest.
> No, if they're not needed, it's better to drop these defines.
>
>> Yes - PPC_FEATURE2_DMF (0x00008000, Dense Math Facility). I'll add
> that
>> check. The kernel does save and restore these registers across context
>> switches. The hwcap bit and the DMR ptrace support are currently in
>> separate kernel branches here, so I'm assembling a tree with both before
>> validating v2.
> Thanks!
>
> Bye,
> Ulrich

[-- Attachment #2: Type: text/html, Size: 3853 bytes --]

      reply	other threads:[~2026-09-29  8:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-24  6:30 Abhay Kandpal
2026-09-25 12:05 ` Ulrich Weigand
2026-09-26  9:34   ` Abhay Kandpal
2026-09-28  9:22     ` Ulrich Weigand
2026-09-29  8:35       ` Abhay Kandpal [this message]

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=fdfcb036-bc52-49da-8bd3-a33328bfc6d3@linux.ibm.com \
    --to=abhay@linux.ibm.com \
    --cc=Abhay.k@ibm.com \
    --cc=Ulrich.Weigand@de.ibm.com \
    --cc=cel@linux.ibm.com \
    --cc=gdb-patches@sourceware.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