From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B15741382C5 for ; Sun, 24 May 2020 20:29:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 02E68E0991; Sun, 24 May 2020 20:29:04 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D2659E0991 for ; Sun, 24 May 2020 20:29:03 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E0EC034EE0C for ; Sun, 24 May 2020 20:29:02 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 96DCA1BC for ; Sun, 24 May 2020 20:29:01 +0000 (UTC) From: "Matt Turner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Matt Turner" Message-ID: <1590352134.ee5e5804a9a10db5fd95022efe5e9217b56dd6d1.mattst88@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/mesa/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/mesa/mesa-19.3.5.ebuild media-libs/mesa/mesa-20.0.4-r1.ebuild media-libs/mesa/mesa-20.0.7.ebuild media-libs/mesa/mesa-20.1.0_rc4.ebuild media-libs/mesa/mesa-9999.ebuild X-VCS-Directories: media-libs/mesa/ X-VCS-Committer: mattst88 X-VCS-Committer-Name: Matt Turner X-VCS-Revision: ee5e5804a9a10db5fd95022efe5e9217b56dd6d1 X-VCS-Branch: master Date: Sun, 24 May 2020 20:29:01 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 3e8483d0-2e17-447b-8f78-f0f461bff499 X-Archives-Hash: 58546bebb0a03696506c963ab86c85d3 commit: ee5e5804a9a10db5fd95022efe5e9217b56dd6d1 Author: Ilya Trukhanov gmail com> AuthorDate: Sat May 23 14:13:15 2020 +0000 Commit: Matt Turner gentoo org> CommitDate: Sun May 24 20:28:54 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee5e5804 media-libs/mesa: check for CONFIG_CHECKPOINT_RESTORE=y This lets AMDGPU users know they should enable the kernel config option. It should be enabled by CONFIG_GENTOO_LINUX_INIT_SYSTEMD, but if e.g. OpenRC is used, it's possible for the option to be unset, as was in my case. Not doing so can cause the following spooky warning: "amdgpu: os_same_file_description couldn't determine if two DRM fds reference the same file description. If they do, bad things may happen!" I haven't experienced any issues with the config option disabled, but the warning is likely there for a reason. Closes: https://github.com/gentoo/gentoo/pull/15926 Signed-off-by: Ilya Trukhanov gmail.com> Signed-off-by: Matt Turner gentoo.org> media-libs/mesa/mesa-19.3.5.ebuild | 11 ++++++++++- media-libs/mesa/mesa-20.0.4-r1.ebuild | 11 ++++++++++- media-libs/mesa/mesa-20.0.7.ebuild | 11 ++++++++++- media-libs/mesa/mesa-20.1.0_rc4.ebuild | 11 ++++++++++- media-libs/mesa/mesa-9999.ebuild | 11 ++++++++++- 5 files changed, 50 insertions(+), 5 deletions(-) diff --git a/media-libs/mesa/mesa-19.3.5.ebuild b/media-libs/mesa/mesa-19.3.5.ebuild index 7773329bcc6..734d4a391c5 100644 --- a/media-libs/mesa/mesa-19.3.5.ebuild +++ b/media-libs/mesa/mesa-19.3.5.ebuild @@ -5,7 +5,7 @@ EAPI=7 PYTHON_COMPAT=( python3_{6,7,8} ) -inherit llvm meson multilib-minimal pax-utils python-any-r1 +inherit llvm meson multilib-minimal pax-utils python-any-r1 linux-info OPENGL_DIR="xorg-x11" @@ -325,6 +325,15 @@ pkg_setup() { ewarn "detected! This can cause problems. For details, see bug 459306." fi + # os_same_file_description requires the kcmp syscall, + # which is only available with CONFIG_CHECKPOINT_RESTORE=y. + # Currently only AMDGPU utilizes this function, so only AMDGPU users would + # get a spooky warning message if the syscall fails. + if use gallium && use video_cards_radeonsi; then + CONFIG_CHECK="~CHECKPOINT_RESTORE" + linux-info_pkg_setup + fi + if use gallium && use llvm; then llvm_pkg_setup fi diff --git a/media-libs/mesa/mesa-20.0.4-r1.ebuild b/media-libs/mesa/mesa-20.0.4-r1.ebuild index 7beeaef918f..097105ff4c5 100644 --- a/media-libs/mesa/mesa-20.0.4-r1.ebuild +++ b/media-libs/mesa/mesa-20.0.4-r1.ebuild @@ -5,7 +5,7 @@ EAPI=7 PYTHON_COMPAT=( python3_{6,7,8} ) -inherit llvm meson multilib-minimal python-any-r1 +inherit llvm meson multilib-minimal python-any-r1 linux-info OPENGL_DIR="xorg-x11" @@ -330,6 +330,15 @@ pkg_setup() { ewarn "detected! This can cause problems. For details, see bug 459306." fi + # os_same_file_description requires the kcmp syscall, + # which is only available with CONFIG_CHECKPOINT_RESTORE=y. + # Currently only AMDGPU utilizes this function, so only AMDGPU users would + # get a spooky warning message if the syscall fails. + if use gallium && use video_cards_radeonsi; then + CONFIG_CHECK="~CHECKPOINT_RESTORE" + linux-info_pkg_setup + fi + if use gallium && use llvm; then llvm_pkg_setup fi diff --git a/media-libs/mesa/mesa-20.0.7.ebuild b/media-libs/mesa/mesa-20.0.7.ebuild index 03083871b14..ff719014070 100644 --- a/media-libs/mesa/mesa-20.0.7.ebuild +++ b/media-libs/mesa/mesa-20.0.7.ebuild @@ -5,7 +5,7 @@ EAPI=7 PYTHON_COMPAT=( python3_{6,7,8} ) -inherit llvm meson multilib-minimal python-any-r1 +inherit llvm meson multilib-minimal python-any-r1 linux-info OPENGL_DIR="xorg-x11" @@ -334,6 +334,15 @@ pkg_setup() { ewarn "detected! This can cause problems. For details, see bug 459306." fi + # os_same_file_description requires the kcmp syscall, + # which is only available with CONFIG_CHECKPOINT_RESTORE=y. + # Currently only AMDGPU utilizes this function, so only AMDGPU users would + # get a spooky warning message if the syscall fails. + if use gallium && use video_cards_radeonsi; then + CONFIG_CHECK="~CHECKPOINT_RESTORE" + linux-info_pkg_setup + fi + if use gallium && use llvm; then llvm_pkg_setup fi diff --git a/media-libs/mesa/mesa-20.1.0_rc4.ebuild b/media-libs/mesa/mesa-20.1.0_rc4.ebuild index 03083871b14..ff719014070 100644 --- a/media-libs/mesa/mesa-20.1.0_rc4.ebuild +++ b/media-libs/mesa/mesa-20.1.0_rc4.ebuild @@ -5,7 +5,7 @@ EAPI=7 PYTHON_COMPAT=( python3_{6,7,8} ) -inherit llvm meson multilib-minimal python-any-r1 +inherit llvm meson multilib-minimal python-any-r1 linux-info OPENGL_DIR="xorg-x11" @@ -334,6 +334,15 @@ pkg_setup() { ewarn "detected! This can cause problems. For details, see bug 459306." fi + # os_same_file_description requires the kcmp syscall, + # which is only available with CONFIG_CHECKPOINT_RESTORE=y. + # Currently only AMDGPU utilizes this function, so only AMDGPU users would + # get a spooky warning message if the syscall fails. + if use gallium && use video_cards_radeonsi; then + CONFIG_CHECK="~CHECKPOINT_RESTORE" + linux-info_pkg_setup + fi + if use gallium && use llvm; then llvm_pkg_setup fi diff --git a/media-libs/mesa/mesa-9999.ebuild b/media-libs/mesa/mesa-9999.ebuild index 03083871b14..ff719014070 100644 --- a/media-libs/mesa/mesa-9999.ebuild +++ b/media-libs/mesa/mesa-9999.ebuild @@ -5,7 +5,7 @@ EAPI=7 PYTHON_COMPAT=( python3_{6,7,8} ) -inherit llvm meson multilib-minimal python-any-r1 +inherit llvm meson multilib-minimal python-any-r1 linux-info OPENGL_DIR="xorg-x11" @@ -334,6 +334,15 @@ pkg_setup() { ewarn "detected! This can cause problems. For details, see bug 459306." fi + # os_same_file_description requires the kcmp syscall, + # which is only available with CONFIG_CHECKPOINT_RESTORE=y. + # Currently only AMDGPU utilizes this function, so only AMDGPU users would + # get a spooky warning message if the syscall fails. + if use gallium && use video_cards_radeonsi; then + CONFIG_CHECK="~CHECKPOINT_RESTORE" + linux-info_pkg_setup + fi + if use gallium && use llvm; then llvm_pkg_setup fi