1 |
commit: ee5e5804a9a10db5fd95022efe5e9217b56dd6d1 |
2 |
Author: Ilya Trukhanov <lahvuun <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat May 23 14:13:15 2020 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 24 20:28:54 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee5e5804 |
7 |
|
8 |
media-libs/mesa: check for CONFIG_CHECKPOINT_RESTORE=y |
9 |
|
10 |
This lets AMDGPU users know they should enable the kernel config option. |
11 |
It should be enabled by CONFIG_GENTOO_LINUX_INIT_SYSTEMD, but if e.g. |
12 |
OpenRC is used, it's possible for the option to be unset, as was in |
13 |
my case. |
14 |
|
15 |
Not doing so can cause the following spooky warning: |
16 |
"amdgpu: os_same_file_description couldn't determine if two DRM fds |
17 |
reference the same file description. If they do, bad things may happen!" |
18 |
|
19 |
I haven't experienced any issues with the config option disabled, but |
20 |
the warning is likely there for a reason. |
21 |
|
22 |
Closes: https://github.com/gentoo/gentoo/pull/15926 |
23 |
Signed-off-by: Ilya Trukhanov <lahvuun <AT> gmail.com> |
24 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
25 |
|
26 |
media-libs/mesa/mesa-19.3.5.ebuild | 11 ++++++++++- |
27 |
media-libs/mesa/mesa-20.0.4-r1.ebuild | 11 ++++++++++- |
28 |
media-libs/mesa/mesa-20.0.7.ebuild | 11 ++++++++++- |
29 |
media-libs/mesa/mesa-20.1.0_rc4.ebuild | 11 ++++++++++- |
30 |
media-libs/mesa/mesa-9999.ebuild | 11 ++++++++++- |
31 |
5 files changed, 50 insertions(+), 5 deletions(-) |
32 |
|
33 |
diff --git a/media-libs/mesa/mesa-19.3.5.ebuild b/media-libs/mesa/mesa-19.3.5.ebuild |
34 |
index 7773329bcc6..734d4a391c5 100644 |
35 |
--- a/media-libs/mesa/mesa-19.3.5.ebuild |
36 |
+++ b/media-libs/mesa/mesa-19.3.5.ebuild |
37 |
@@ -5,7 +5,7 @@ EAPI=7 |
38 |
|
39 |
PYTHON_COMPAT=( python3_{6,7,8} ) |
40 |
|
41 |
-inherit llvm meson multilib-minimal pax-utils python-any-r1 |
42 |
+inherit llvm meson multilib-minimal pax-utils python-any-r1 linux-info |
43 |
|
44 |
OPENGL_DIR="xorg-x11" |
45 |
|
46 |
@@ -325,6 +325,15 @@ pkg_setup() { |
47 |
ewarn "detected! This can cause problems. For details, see bug 459306." |
48 |
fi |
49 |
|
50 |
+ # os_same_file_description requires the kcmp syscall, |
51 |
+ # which is only available with CONFIG_CHECKPOINT_RESTORE=y. |
52 |
+ # Currently only AMDGPU utilizes this function, so only AMDGPU users would |
53 |
+ # get a spooky warning message if the syscall fails. |
54 |
+ if use gallium && use video_cards_radeonsi; then |
55 |
+ CONFIG_CHECK="~CHECKPOINT_RESTORE" |
56 |
+ linux-info_pkg_setup |
57 |
+ fi |
58 |
+ |
59 |
if use gallium && use llvm; then |
60 |
llvm_pkg_setup |
61 |
fi |
62 |
|
63 |
diff --git a/media-libs/mesa/mesa-20.0.4-r1.ebuild b/media-libs/mesa/mesa-20.0.4-r1.ebuild |
64 |
index 7beeaef918f..097105ff4c5 100644 |
65 |
--- a/media-libs/mesa/mesa-20.0.4-r1.ebuild |
66 |
+++ b/media-libs/mesa/mesa-20.0.4-r1.ebuild |
67 |
@@ -5,7 +5,7 @@ EAPI=7 |
68 |
|
69 |
PYTHON_COMPAT=( python3_{6,7,8} ) |
70 |
|
71 |
-inherit llvm meson multilib-minimal python-any-r1 |
72 |
+inherit llvm meson multilib-minimal python-any-r1 linux-info |
73 |
|
74 |
OPENGL_DIR="xorg-x11" |
75 |
|
76 |
@@ -330,6 +330,15 @@ pkg_setup() { |
77 |
ewarn "detected! This can cause problems. For details, see bug 459306." |
78 |
fi |
79 |
|
80 |
+ # os_same_file_description requires the kcmp syscall, |
81 |
+ # which is only available with CONFIG_CHECKPOINT_RESTORE=y. |
82 |
+ # Currently only AMDGPU utilizes this function, so only AMDGPU users would |
83 |
+ # get a spooky warning message if the syscall fails. |
84 |
+ if use gallium && use video_cards_radeonsi; then |
85 |
+ CONFIG_CHECK="~CHECKPOINT_RESTORE" |
86 |
+ linux-info_pkg_setup |
87 |
+ fi |
88 |
+ |
89 |
if use gallium && use llvm; then |
90 |
llvm_pkg_setup |
91 |
fi |
92 |
|
93 |
diff --git a/media-libs/mesa/mesa-20.0.7.ebuild b/media-libs/mesa/mesa-20.0.7.ebuild |
94 |
index 03083871b14..ff719014070 100644 |
95 |
--- a/media-libs/mesa/mesa-20.0.7.ebuild |
96 |
+++ b/media-libs/mesa/mesa-20.0.7.ebuild |
97 |
@@ -5,7 +5,7 @@ EAPI=7 |
98 |
|
99 |
PYTHON_COMPAT=( python3_{6,7,8} ) |
100 |
|
101 |
-inherit llvm meson multilib-minimal python-any-r1 |
102 |
+inherit llvm meson multilib-minimal python-any-r1 linux-info |
103 |
|
104 |
OPENGL_DIR="xorg-x11" |
105 |
|
106 |
@@ -334,6 +334,15 @@ pkg_setup() { |
107 |
ewarn "detected! This can cause problems. For details, see bug 459306." |
108 |
fi |
109 |
|
110 |
+ # os_same_file_description requires the kcmp syscall, |
111 |
+ # which is only available with CONFIG_CHECKPOINT_RESTORE=y. |
112 |
+ # Currently only AMDGPU utilizes this function, so only AMDGPU users would |
113 |
+ # get a spooky warning message if the syscall fails. |
114 |
+ if use gallium && use video_cards_radeonsi; then |
115 |
+ CONFIG_CHECK="~CHECKPOINT_RESTORE" |
116 |
+ linux-info_pkg_setup |
117 |
+ fi |
118 |
+ |
119 |
if use gallium && use llvm; then |
120 |
llvm_pkg_setup |
121 |
fi |
122 |
|
123 |
diff --git a/media-libs/mesa/mesa-20.1.0_rc4.ebuild b/media-libs/mesa/mesa-20.1.0_rc4.ebuild |
124 |
index 03083871b14..ff719014070 100644 |
125 |
--- a/media-libs/mesa/mesa-20.1.0_rc4.ebuild |
126 |
+++ b/media-libs/mesa/mesa-20.1.0_rc4.ebuild |
127 |
@@ -5,7 +5,7 @@ EAPI=7 |
128 |
|
129 |
PYTHON_COMPAT=( python3_{6,7,8} ) |
130 |
|
131 |
-inherit llvm meson multilib-minimal python-any-r1 |
132 |
+inherit llvm meson multilib-minimal python-any-r1 linux-info |
133 |
|
134 |
OPENGL_DIR="xorg-x11" |
135 |
|
136 |
@@ -334,6 +334,15 @@ pkg_setup() { |
137 |
ewarn "detected! This can cause problems. For details, see bug 459306." |
138 |
fi |
139 |
|
140 |
+ # os_same_file_description requires the kcmp syscall, |
141 |
+ # which is only available with CONFIG_CHECKPOINT_RESTORE=y. |
142 |
+ # Currently only AMDGPU utilizes this function, so only AMDGPU users would |
143 |
+ # get a spooky warning message if the syscall fails. |
144 |
+ if use gallium && use video_cards_radeonsi; then |
145 |
+ CONFIG_CHECK="~CHECKPOINT_RESTORE" |
146 |
+ linux-info_pkg_setup |
147 |
+ fi |
148 |
+ |
149 |
if use gallium && use llvm; then |
150 |
llvm_pkg_setup |
151 |
fi |
152 |
|
153 |
diff --git a/media-libs/mesa/mesa-9999.ebuild b/media-libs/mesa/mesa-9999.ebuild |
154 |
index 03083871b14..ff719014070 100644 |
155 |
--- a/media-libs/mesa/mesa-9999.ebuild |
156 |
+++ b/media-libs/mesa/mesa-9999.ebuild |
157 |
@@ -5,7 +5,7 @@ EAPI=7 |
158 |
|
159 |
PYTHON_COMPAT=( python3_{6,7,8} ) |
160 |
|
161 |
-inherit llvm meson multilib-minimal python-any-r1 |
162 |
+inherit llvm meson multilib-minimal python-any-r1 linux-info |
163 |
|
164 |
OPENGL_DIR="xorg-x11" |
165 |
|
166 |
@@ -334,6 +334,15 @@ pkg_setup() { |
167 |
ewarn "detected! This can cause problems. For details, see bug 459306." |
168 |
fi |
169 |
|
170 |
+ # os_same_file_description requires the kcmp syscall, |
171 |
+ # which is only available with CONFIG_CHECKPOINT_RESTORE=y. |
172 |
+ # Currently only AMDGPU utilizes this function, so only AMDGPU users would |
173 |
+ # get a spooky warning message if the syscall fails. |
174 |
+ if use gallium && use video_cards_radeonsi; then |
175 |
+ CONFIG_CHECK="~CHECKPOINT_RESTORE" |
176 |
+ linux-info_pkg_setup |
177 |
+ fi |
178 |
+ |
179 |
if use gallium && use llvm; then |
180 |
llvm_pkg_setup |
181 |
fi |