]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-46968: Fix faulthandler for Sapphire Rapids Xeon (GH-31789) (GH-31831)
authorVictor Stinner <vstinner@python.org>
Fri, 11 Mar 2022 23:37:16 +0000 (00:37 +0100)
committerGitHub <noreply@github.com>
Fri, 11 Mar 2022 23:37:16 +0000 (00:37 +0100)
commitba2b7956fa3932769a5c0aa2575de5c8d7e7ba4b
treeda1cab4290557b3196d17a12e60fe6e1df9dcc3f
parent30d80213ae305bd0f0ed6bec7a0dff3e97b1c321
bpo-46968: Fix faulthandler for Sapphire Rapids Xeon (GH-31789) (GH-31831)

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.

(cherry picked from commit 3b128c054885fe881c3b57a5978de3ea89c81a9c)

Co-authored-by: Oleksandr Pavlyk <oleksandr.pavlyk@intel.com>
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