AMD CPU type 0x70f40 (ext family 0xa) unknown

Bug #2065141 reported by Marco Trevisan (Treviño)
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
rr (Ubuntu)
Fix Released
Medium
Marco Trevisan (Treviño)
Jammy
Fix Released
Medium
Marco Trevisan (Treviño)
Mantic
Fix Released
Medium
Marco Trevisan (Treviño)
Noble
Fix Released
Medium
Marco Trevisan (Treviño)

Bug Description

[ Impact ]

Running rr in Phonenix AMD APU (Ryzen 7840U) as in latest generation of AMD ThinkPad fails with

[FATAL ./src/PerfCounters_x86.h:121:compute_cpu_microarch()] AMD CPU type 0x70f40 (ext family 0xa) unknown

It was fixed upstream via https://github.com/rr-debugger/rr/pull/3645 (related issue https://github.com/rr-debugger/rr/issues/3715)

[ Test case ]

With a such CPU run:
 rr record true

It should record the process execution as expected, in case it may mention that some further tuning is required for Zen CPUs:

  On Zen CPUs, rr will not work reliably unless you disable the hardware
  SpecLockMap optimization.
  For instructions on how to do this, see
  https://github.com/rr-debugger/rr/wiki/Zen

[ Regression Potential ]

Not really known since it's just adding a case for the CPU family.

In theory it may make other CPUs of the same family not work in the same way.

Changed in rr (Ubuntu Jammy):
status: New → Triaged
Changed in rr (Ubuntu Noble):
status: New → Triaged
Changed in rr (Ubuntu Jammy):
importance: Undecided → Medium
Changed in rr (Ubuntu Noble):
importance: Undecided → Medium
Changed in rr (Ubuntu Jammy):
assignee: nobody → Marco Trevisan (Treviño) (3v1n0)
Changed in rr (Ubuntu Noble):
assignee: nobody → Marco Trevisan (Treviño) (3v1n0)
description: updated
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :
Changed in rr (Ubuntu):
status: Triaged → In Progress
Changed in rr (Ubuntu Noble):
status: Triaged → Fix Committed
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :
Changed in rr (Ubuntu Mantic):
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Marco Trevisan (Treviño) (3v1n0)
description: updated
tags: added: patch
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :
Changed in rr (Ubuntu Jammy):
status: Triaged → In Progress
Changed in rr (Ubuntu Noble):
status: Fix Committed → In Progress
Changed in rr (Ubuntu Noble):
status: In Progress → Fix Committed
Changed in rr (Ubuntu):
status: In Progress → Fix Committed
Changed in rr (Ubuntu Mantic):
status: In Progress → Fix Committed
Changed in rr (Ubuntu Jammy):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package rr - 5.7.0-2ubuntu1

---------------
rr (5.7.0-2ubuntu1) oracular; urgency=medium

  * debian/patches: Add support for AMD Phoenix Zen 4 CPU (LP: #2065141)

 -- Marco Trevisan (Treviño) <email address hidden> Wed, 08 May 2024 09:02:10 +0200

Changed in rr (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Timo Aaltonen (tjaalton) wrote : Please test proposed package

Hello Marco, or anyone else affected,

Accepted rr into noble-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/rr/5.7.0-2ubuntu0.24.04.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-noble to verification-done-noble. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-noble. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

tags: added: verification-needed verification-needed-noble
tags: added: verification-needed-mantic
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

Hello Marco, or anyone else affected,

Accepted rr into mantic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/rr/5.6.0-4ubuntu0.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-mantic to verification-done-mantic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-mantic. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

tags: added: verification-needed-jammy
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

Hello Marco, or anyone else affected,

Accepted rr into jammy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/rr/5.5.0-1ubuntu0.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-jammy to verification-done-jammy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-jammy. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

❯ apt-cache policy rr
rr:
  Installato: 5.6.0-4ubuntu0.1
  Candidato: 5.6.0-4
  Tabella versione:
 *** 5.6.0-4ubuntu0.1 100
        100 http://archive.ubuntu.com/ubuntu mantic-proposed/universe amd64 Packages
        100 /var/lib/dpkg/status
     5.6.0-4 500
        500 http://archive.ubuntu.com/ubuntu mantic/universe amd64 Packages

❯ rr --version
rr version 5.6.0

❯ rr record true
rr: Saving execution to trace directory `/tmp/rr-traces/true-0'.
On Zen CPUs, rr will not work reliably unless you disable the hardware SpecLockMap optimization.
For instructions on how to do this, see https://github.com/rr-debugger/rr/wiki/Zen

❯ wget https://raw.githubusercontent.com/rr-debugger/rr/master/scripts/zen_workaround.py -q -O- | \
    sudo python3 -
Zen workaround in place

❯ rr record true
rr: Saving execution to trace directory `/tmp/rr-traces/true-1'

tags: added: verification-done-mantic
removed: verification-needed-mantic
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

❯ apt-cache policy rr
rr:
  Installato: 5.5.0-1ubuntu0.1
  Candidato: 5.5.0-1ubuntu0.1
  Tabella versione:
 *** 5.5.0-1ubuntu0.1 400
        400 http://archive.ubuntu.com/ubuntu jammy-proposed/universe amd64 Packages
        100 /var/lib/dpkg/status
     5.5.0-1build1 500
        500 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages

❯ rr --version
rr version 5.5.0

❯ rr record true
rr: Saving execution to trace directory `/tmp/rr-traces/true-0'.
On Zen CPUs, rr will not work reliably unless you disable the hardware SpecLockMap optimization.
For instructions on how to do this, see https://github.com/rr-debugger/rr/wiki/Zen

❯ wget https://raw.githubusercontent.com/rr-debugger/rr/master/scripts/zen_workaround.py -q -O- | \
    sudo python3 -
Zen workaround in place

❯ rr record true
rr: Saving execution to trace directory `/tmp/rr-traces/true-2'.

tags: added: verification-done-jammy
removed: verification-needed-jammy
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

❯ apt-cache policy rr
rr:
  Installato: 5.7.0-2ubuntu0.24.04.1
  Candidato: 5.7.0-2ubuntu0.24.04.1
  Tabella versione:
 *** 5.7.0-2ubuntu0.24.04.1 400
        400 http://archive.ubuntu.com/ubuntu noble-proposed/universe amd64 Packages
        100 /var/lib/dpkg/status
     5.7.0-2build1 400
        400 http://archive.ubuntu.com/ubuntu noble/universe amd64 Packages

❯ rr --version
rr version 5.7.0

❯ rr record true
rr: Saving execution to trace directory `/tmp/rr-traces/true-0'.
On Zen CPUs, rr will not work reliably unless you disable the hardware SpecLockMap optimization.
For instructions on how to do this, see https://github.com/rr-debugger/rr/wiki/Zen

❯ wget https://raw.githubusercontent.com/rr-debugger/rr/master/scripts/zen_workaround.py -q -O- | \
    sudo python3 -
Zen workaround in place

❯ rr record true
rr: Saving execution to trace directory `/tmp/rr-traces/true-1'.

tags: added: verification-done-noble
removed: verification-needed-noble
tags: added: verification-done
removed: verification-needed
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

I'm wondering if the mantic and jammy patches aren't missing the change to src/counters-test/counters.c. Note that this file was renamed to counters.cc in noble, so maybe the change was missed because of that rename?

Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

> I'm wondering if the mantic and jammy patches aren't missing the change to src/counters-test/counters.c

When doing the patch I did grep on those trees for similar contents, and there's not.

The file was added on 5.6.0 (https://github.com/rr-debugger/rr/commit/de389f73cecaedb9e3f8f593bec00db80183993f) so not in jammy for sure, while it was present in mantic (I had missed the rename there it seems), but as the file states it's just a standalone test that was nice to have but not fully required to get the fix landed.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package rr - 5.7.0-2ubuntu0.24.04.1

---------------
rr (5.7.0-2ubuntu0.24.04.1) noble; urgency=medium

  * debian/patches: Add support for AMD Phoenix Zen 4 CPU (LP: #2065141)

 -- Marco Trevisan (Treviño) <email address hidden> Wed, 08 May 2024 09:02:10 +0200

Changed in rr (Ubuntu Noble):
status: Fix Committed → Fix Released
Revision history for this message
Andreas Hasenack (ahasenack) wrote : Update Released

The verification of the Stable Release Update for rr has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package rr - 5.6.0-4ubuntu0.1

---------------
rr (5.6.0-4ubuntu0.1) mantic; urgency=medium

  * debian/patches: Add support for AMD Phoenix Zen 4 CPU (LP: #2065141)

 -- Marco Trevisan (Treviño) <email address hidden> Wed, 08 May 2024 09:02:10 +0200

Changed in rr (Ubuntu Mantic):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package rr - 5.5.0-1ubuntu0.1

---------------
rr (5.5.0-1ubuntu0.1) jammy; urgency=medium

  * debian/patches: Add support for AMD Phoenix Zen 4 CPU (LP: #2065141)

 -- Marco Trevisan (Treviño) <email address hidden> Wed, 08 May 2024 09:02:10 +0200

Changed in rr (Ubuntu Jammy):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.