Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 939335 - <sys-devel/gcc-15: AMD Zen5 (znver5) tunings backport for GCC 14
Summary: <sys-devel/gcc-15: AMD Zen5 (znver5) tunings backport for GCC 14
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal enhancement
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2024-09-08 16:41 UTC by Adrien Dessemond
Modified: 2024-10-06 12:20 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
GCC 15 Zen5 tunings for GCC 14 (experimental backport) (backport-zen5-gcc14.patch,13.77 KB, patch)
2024-09-08 16:41 UTC, Adrien Dessemond
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adrien Dessemond 2024-09-08 16:41:13 UTC
Created attachment 902411 [details, diff]
GCC 15 Zen5 tunings for GCC 14 (experimental backport)

Following a series of briefs published on Phoronix with regards to AMD Zen 5 tunings coming with GCC15, I managed to backport the five referenced patchsets for GCC14 :

* part 1 => https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=d6360b4083695970789fd65b9c515c11a5ce25b4
* part 2 => https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=d82edbe92eed53a479736fcbbe6d54d0fb42daa4
* part 3 => https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=e2125a600552bc6e0329e3f1224eea14804db8d3
* part 4 => https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=f0ab3de6ec0e3540f2e57f3f5628005f0a4e3fa5
* part 5 => https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=4292297a0f938ffc953422fa246ff00fe345fe3d

sys-devel/gcc-14.2.1_p20240817 has been successfully patched and recompiled.
(Not sure for the real gains with my 9950X, will see).


Of course this patch will void your warranty :)
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-09-08 16:43:58 UTC
I'm not really sure what the bug is for. Good on you for doing it, but I don't plan on backporting this downstream.

Honza usually backports tuning stuff anyway.
Comment 2 Adrien Dessemond 2024-09-08 17:03:51 UTC
The start of the idea is here => https://www.phoronix.com/news/GCC-15-Lands-More-Zen-5-Tuning

I have ported it back for my own curiosity but wanted to share it in case of someone would find this useful for a reason or another.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-09-08 17:09:35 UTC
I think it's premature in any case. Honza as I said does tend to pick these to the branches (in fact rather aggressively so). We can always ask him in a few weeks if it hasn't happened, but I'd rather them have some soaking time first.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-09-29 00:25:26 UTC
Honza's done the backports and they'll be in next week's round of snapshots.
Comment 6 Larry the Git Cow gentoo-dev 2024-10-04 02:40:53 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4cfe101db6bc15b980cacbe008075ccb69b54509

commit 4cfe101db6bc15b980cacbe008075ccb69b54509
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-10-04 02:40:14 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-10-04 02:40:14 +0000

    sys-devel/gcc: add 12.4.1_p20241003
    
    Bug: https://bugs.gentoo.org/939335
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-devel/gcc/Manifest                    |  1 +
 sys-devel/gcc/gcc-12.4.1_p20241003.ebuild | 65 +++++++++++++++++++++++++++++++
 2 files changed, 66 insertions(+)
Comment 7 Larry the Git Cow gentoo-dev 2024-10-05 00:58:20 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4bab3141d1d3536ffce8d3376cef15073aff0ac1

commit 4bab3141d1d3536ffce8d3376cef15073aff0ac1
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-10-05 00:57:59 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-10-05 00:57:59 +0000

    sys-devel/gcc: add 13.3.1_p20241004
    
    Bug: https://bugs.gentoo.org/939335
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-devel/gcc/Manifest                    |  1 +
 sys-devel/gcc/gcc-13.3.1_p20241004.ebuild | 66 +++++++++++++++++++++++++++++++
 2 files changed, 67 insertions(+)
Comment 8 Larry the Git Cow gentoo-dev 2024-10-06 00:28:14 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a636d7f4a49b7216a3b21f7d083f22dbda84d3c2

commit a636d7f4a49b7216a3b21f7d083f22dbda84d3c2
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-10-06 00:27:30 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-10-06 00:27:30 +0000

    sys-devel/gcc: add 14.2.1_p20241005
    
    Bug: https://bugs.gentoo.org/939335
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-devel/gcc/Manifest                    |  1 +
 sys-devel/gcc/gcc-14.2.1_p20241005.ebuild | 54 +++++++++++++++++++++++++++++++
 2 files changed, 55 insertions(+)
Comment 9 Adrien Dessemond 2024-10-06 12:20:50 UTC
Excellent, nice job. Thank you so much!