]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-46968: Fix faulthandler for Sapphire Rapids Xeon (GH-31789) (GH-31830)
authorVictor Stinner <vstinner@python.org>
Fri, 11 Mar 2022 23:04:14 +0000 (00:04 +0100)
committerGitHub <noreply@github.com>
Fri, 11 Mar 2022 23:04:14 +0000 (00:04 +0100)
commit393e2bf6bc6effbfe821f051a230978f0edd70df
treecaebdaeaf2382d8b4456bd9579770a3ab48c3aa7
parentb35b36e106152245fe68880f4073fd99ec17f65d
bpo-46968: Fix faulthandler for Sapphire Rapids Xeon (GH-31789) (GH-31830)

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