[Bug 2108997] Re: [UBUNTU 22.04] GDB: Internal binutils code requires updates made for IBM z17 in binutils already
Frank Heimes
2108997 at bugs.launchpad.net
Tue May 27 18:39:42 UTC 2025
** Description changed:
SRU Justification:
[ Impact ]
* This is a hardware enablement SRU.
* It introduces support for the new IBM z17 hardware to binutils.
* Some Ubuntu releases (like plucky) have already 'anonymous' support
for in terms of 'arch-15', other Ubuntu releases have no 'arch-15' nor
z17 support at all and require two more patches.
* Without this binutils not not aware about the new z17 hardware generation
and it's opcodes etc.
[ Fix ]
- * a3f1e7c56a60573562e8578ae8b675ec1f4448e7 - "s390: Simplify
- (dis)assembly of insn operands with const bits" (pre-req.)
+ * eeafc61979c6f8399bb5ce770e46a00823a5cfae ("s390: Make operand table
+ indices relative to each other") - pre-req. for jammy only
- * a98a6fa2d8ef5eb61534b07db80850dcdf07bdb4 - "s390: Add arch15
- instructions" (pre-req.)
+ * a3f1e7c56a60573562e8578ae8b675ec1f4448e7 ("s390: Simplify
+ (dis)assembly of insn operands with const bits") - pre-req. for jammy,
+ noble and oracular
- * 981fe5fd80faf511aa265e841a380c9b46be30e6 - "390: Add support for z17
- as CPU name"
+ * a98a6fa2d8ef5eb61534b07db80850dcdf07bdb4 ("s390: Add arch15
+ instructions") - pre-req. for jammy, noble and oracular
+
+ * 981fe5fd80faf511aa265e841a380c9b46be30e6 ("390: Add support for z17
+ as CPU name")
[ Test Plan ]
* Check if the same (proper) opcodes are detected on an IBM z17
system with and without the patch.
Since the identification and name of a z17 system was added.
* Or the simplest test is probably to check
(after having 'binutils' installed on an
Ubuntu Server 25.04, 24.10 or 24.04 s390x system)
if not only:
'as -m64 -march=arch15 --target-help'
but especially also:
'as -m64 -march=z17 --target-help'
succeeds and leads to the same output.
(As it does for '-march=arch14' and '-march=z16'.)
* Due to the lack of hardware this needs to be tested at IBM.
[ Where problems could occur ]
* The new name could be wrong, or the name could be accidentally
mapped to the wrong internal arch.
(The test case above will allow to identify this by comparing the output.)
* The two pre-required patches could cause harm - the simplification
and the introduction of the internal arch-15 itself.
These are only needed for oracular and older,
and are included in binutils for a while.
* Other architectures are not touched and affected, since only s390x
specific files are modified (except the doc file as/doc/as.texi on top).
[ Other Info ]
* binutils maintainer (doko) told me that binutils for questing
will be updated anyway to latest release/snapshot,
so nothing to do for questing in this LP bug (and set to Invalid).
__________
With IBM having announced the new IBM z17, Ubuntu 22.04 and 24.04 should
be enabled to run properly on the latest s390x hardware.
While plucky has already the required patches included, please backport
to noble and jammy the GNU Binutils mainline commit 981fe5fd80fa ("s390:
Add support for z17 as CPU name"), which adds the real CPU name "z17" as
alternative for "arch15".
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to binutils in Ubuntu.
https://bugs.launchpad.net/bugs/2108997
Title:
[UBUNTU 22.04] GDB: Internal binutils code requires updates made for
IBM z17 in binutils already
Status in Ubuntu on IBM z Systems:
In Progress
Status in binutils package in Ubuntu:
Invalid
Status in binutils source package in Jammy:
Triaged
Status in binutils source package in Noble:
In Progress
Status in binutils source package in Oracular:
In Progress
Status in binutils source package in Plucky:
In Progress
Status in binutils source package in Questing:
Invalid
Bug description:
SRU Justification:
[ Impact ]
* This is a hardware enablement SRU.
* It introduces support for the new IBM z17 hardware to binutils.
* Some Ubuntu releases (like plucky) have already 'anonymous' support
for in terms of 'arch-15', other Ubuntu releases have no 'arch-15' nor
z17 support at all and require two more patches.
* Without this binutils not not aware about the new z17 hardware generation
and it's opcodes etc.
[ Fix ]
* eeafc61979c6f8399bb5ce770e46a00823a5cfae ("s390: Make operand table
indices relative to each other") - pre-req. for jammy only
* a3f1e7c56a60573562e8578ae8b675ec1f4448e7 ("s390: Simplify
(dis)assembly of insn operands with const bits") - pre-req. for jammy,
noble and oracular
* a98a6fa2d8ef5eb61534b07db80850dcdf07bdb4 ("s390: Add arch15
instructions") - pre-req. for jammy, noble and oracular
* 981fe5fd80faf511aa265e841a380c9b46be30e6 ("390: Add support for z17
as CPU name")
[ Test Plan ]
* Check if the same (proper) opcodes are detected on an IBM z17
system with and without the patch.
Since the identification and name of a z17 system was added.
* Or the simplest test is probably to check
(after having 'binutils' installed on an
Ubuntu Server 25.04, 24.10 or 24.04 s390x system)
if not only:
'as -m64 -march=arch15 --target-help'
but especially also:
'as -m64 -march=z17 --target-help'
succeeds and leads to the same output.
(As it does for '-march=arch14' and '-march=z16'.)
* Due to the lack of hardware this needs to be tested at IBM.
[ Where problems could occur ]
* The new name could be wrong, or the name could be accidentally
mapped to the wrong internal arch.
(The test case above will allow to identify this by comparing the output.)
* The two pre-required patches could cause harm - the simplification
and the introduction of the internal arch-15 itself.
These are only needed for oracular and older,
and are included in binutils for a while.
* Other architectures are not touched and affected, since only s390x
specific files are modified (except the doc file as/doc/as.texi on top).
[ Other Info ]
* binutils maintainer (doko) told me that binutils for questing
will be updated anyway to latest release/snapshot,
so nothing to do for questing in this LP bug (and set to Invalid).
__________
With IBM having announced the new IBM z17, Ubuntu 22.04 and 24.04
should be enabled to run properly on the latest s390x hardware.
While plucky has already the required patches included, please
backport to noble and jammy the GNU Binutils mainline commit
981fe5fd80fa ("s390: Add support for z17 as CPU name"), which adds the
real CPU name "z17" as alternative for "arch15".
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-z-systems/+bug/2108997/+subscriptions
More information about the foundations-bugs
mailing list