]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-46968: Fix faulthandler for Sapphire Rapids Xeon (GH-31789)
authorOleksandr Pavlyk <oleksandr.pavlyk@intel.com>
Fri, 11 Mar 2022 22:19:35 +0000 (16:19 -0600)
committerGitHub <noreply@github.com>
Fri, 11 Mar 2022 22:19:35 +0000 (23:19 +0100)
commit3b128c054885fe881c3b57a5978de3ea89c81a9c
treea29ecf75863020ec4292acdfe485d36c70386bd8
parentdc374ac7b0fabaed49461a2044c220765f48d229
bpo-46968: Fix faulthandler for Sapphire Rapids Xeon (GH-31789)

In Linux kernel 5.14 one can dynamically request size of altstacksize
based on hardware capabilities with getauxval(AT_MINSIGSTKSZ).

This changes allows for Python extension's request to Linux kernel
to use AMX_TILE instruction set on Sapphire Rapids Xeon processor
to succeed, unblocking use of the ISA in frameworks.

Introduced HAVE_LINUX_AUXVEC_H in configure.ac and pyconfig.h.in
Used cpython_autoconf:269 docker container to generate configure.
Misc/NEWS.d/next/Library/2022-03-10-14-51-11.bpo-46968.ym2QxL.rst [new file with mode: 0644]
Modules/faulthandler.c
configure
configure.ac
pyconfig.h.in