-
Notifications
You must be signed in to change notification settings - Fork 7
/
nvidia-kmod-common.spec
419 lines (297 loc) · 14 KB
/
nvidia-kmod-common.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
%global _dracutopts_in rd.driver.blacklist=nouveau modprobe.blacklist=nouveau
%global _dracutopts_rm nomodeset gfxpayload=vga=normal nouveau.modeset=0 nvidia-drm.modeset=1 initcall_blacklist=simpledrm_platform_driver_init
%global _dracut_conf_d %{_prefix}/lib/dracut/dracut.conf.d
# gsp_*.bin: ELF 64-bit LSB executable, UCB RISC-V
%global _binaries_in_noarch_packages_terminate_build 0
%global __strip /bin/true
Name: nvidia-kmod-common
Version: 565.77
Release: 2%{?dist}
Summary: Common file for NVIDIA's proprietary driver kernel modules
Epoch: 3
License: NVIDIA License
URL: http://www.nvidia.com/object/unix.html
BuildArch: noarch
Source0: %{name}-%{version}.tar.xz
Source17: nvidia-boot-update
Source18: kernel.conf
Source19: nvidia-modeset.conf
Source20: nvidia.conf
Source21: 60-nvidia.rules
Source24: 99-nvidia.conf
# UDev rule location (_udevrulesdir) and systemd macros:
BuildRequires: systemd-rpm-macros
# Owns /usr/lib/firmware:
Requires: linux-firmware
Requires: nvidia-modprobe
Requires: nvidia-kmod = %{?epoch:%{epoch}:}%{version}
Provides: nvidia-kmod-common = %{?epoch:%{epoch}:}%{version}
Obsoletes: cuda-nvidia-kmod-common < %{?epoch:%{epoch}:}%{version}
%description
This package provides the common files required by all NVIDIA kernel module
package variants.
%prep
%autosetup
%install
# Script for post/preun tasks
install -p -m 0755 -D %{SOURCE17} %{buildroot}%{_sbindir}/nvidia-boot-update
sed -i \
-e 's/_dracutopts_in/%{_dracutopts_in}/g' \
-e 's/_dracutopts_rm/%{_dracutopts_rm}/g' \
%{buildroot}%{_sbindir}/nvidia-boot-update
# Choice of kernel module type:
install -p -m 0644 -D %{SOURCE18} %{buildroot}%{_sysconfdir}/nvidia/kernel.conf
# Nvidia modesetting support:
install -p -m 0644 -D %{SOURCE19} %{buildroot}%{_sysconfdir}/modprobe.d/nvidia-modeset.conf
# Load nvidia-uvm, enable complete power management:
install -p -m 0644 -D %{SOURCE20} %{buildroot}%{_modprobedir}/nvidia.conf
# Avoid Nvidia modules getting in the initrd:
install -p -m 0644 -D %{SOURCE24} %{buildroot}%{_dracut_conf_d}/99-nvidia.conf
# UDev rules
# https://github.com/NVIDIA/nvidia-modprobe/blob/master/modprobe-utils/nvidia-modprobe-utils.h#L33-L46
# https://github.com/negativo17/nvidia-kmod-common/issues/11
# https://github.com/negativo17/nvidia-driver/issues/27
install -p -m 644 -D %{SOURCE21} %{buildroot}%{_udevrulesdir}/60-nvidia.rules
# Firmware files:
mkdir -p %{buildroot}%{_prefix}/lib/firmware/nvidia/%{version}/
install -p -m 644 firmware/* %{buildroot}%{_prefix}/lib/firmware/nvidia/%{version}
%post
%{_sbindir}/nvidia-boot-update post
%preun
if [ "$1" -eq "0" ]; then
%{_sbindir}/nvidia-boot-update preun
fi ||:
%files
%{_dracut_conf_d}/99-nvidia.conf
%{_modprobedir}/nvidia.conf
%{_prefix}/lib/firmware/nvidia/%{version}
%{_sbindir}/nvidia-boot-update
%config(noreplace) %{_sysconfdir}/modprobe.d/nvidia-modeset.conf
%config(noreplace) %{_sysconfdir}/nvidia/kernel.conf
%{_udevrulesdir}/60-nvidia.rules
%changelog
* Wed Dec 25 2024 Simone Caronni <[email protected]> - 3:565.77-2
- Run nvidia-modprobe only on add/bind (thanks os369510).
* Thu Dec 05 2024 Simone Caronni <[email protected]> - 3:565.77-1
- Update to 565.77.
* Tue Oct 29 2024 Simone Caronni <[email protected]> - 3:565.57.01-2
- Update power management configuration.
* Wed Oct 23 2024 Simone Caronni <[email protected]> - 3:565.57.01-1
- Update to 565.57.01.
* Fri Oct 11 2024 Simone Caronni <[email protected]> - 3:560.35.03-2
- Fix configuration file replacement (#14).
* Wed Aug 21 2024 Simone Caronni <[email protected]> - 3:560.35.03-1
- Update to 560.35.03.
* Tue Aug 06 2024 Simone Caronni <[email protected]> - 3:560.31.02-1
- Update to 560.31.02.
* Mon Aug 05 2024 Simone Caronni <[email protected]> - 3:560.28.03-1
- Update to 560.28.03.
* Tue Jul 02 2024 Simone Caronni <[email protected]> - 3:555.58.02-1
- Update to 555.58.02.
* Thu Jun 27 2024 Simone Caronni <[email protected]> - 3:555.58-1
- Update to 555.58.
* Thu Jun 06 2024 Simone Caronni <[email protected]> - 3:555.52.04-1
- Update to 555.52.04.
* Fri May 31 2024 Simone Caronni <[email protected]> - 3:555.42.02-2
- Fix typo in preun scriptlet.
* Wed May 22 2024 Simone Caronni <[email protected]> - 3:555.42.02-1
- Update to 555.42.02.
* Fri Apr 26 2024 Simone Caronni <[email protected]> - 3:550.78-1
- Update to 550.78.
* Thu Apr 18 2024 Simone Caronni <[email protected]> - 3:550.76-1
- Update to 550.76.
* Sun Mar 24 2024 Simone Caronni <[email protected]> - 3:550.67-1
- Update to 550.67.
* Mon Mar 11 2024 Simone Caronni <[email protected]> - 3:550.54.14-2
- Add support for installing drivers without a configured bootloader (i.e.
kickstart case).
- Add support for sdboot.
* Sun Mar 03 2024 Simone Caronni <[email protected]> - 3:550.54.14-1
- Update to 550.54.14.
* Tue Feb 06 2024 Simone Caronni <[email protected]> - 3:550.40.07-1
- Update to 550.40.07.
* Fri Dec 01 2023 Simone Caronni <[email protected]> - 3:545.29.06-1
- Update to 545.29.06.
* Tue Nov 14 2023 Simone Caronni <[email protected]> - 3:545.29.02-5
- Update location of configuration file for kernel module variant.
* Mon Nov 13 2023 Simone Caronni <[email protected]> - 3:545.29.02-4
- Allow installing proprietary or open source kernel modules.
* Sat Nov 04 2023 Simone Caronni <[email protected]> - 3:545.29.02-3
- Second part of the fix for issue
https://github.com/negativo17/nvidia-kmod-common/issues/11.
* Sat Nov 04 2023 Simone Caronni <[email protected]> - 3:545.29.02-2
- First part of fix for issue
https://github.com/negativo17/nvidia-kmod-common/issues/11.
* Tue Oct 31 2023 Simone Caronni <[email protected]> - 3:545.29.02-1
- Update to 545.29.02.
* Thu Oct 19 2023 Simone Caronni <[email protected]> - 3:545.23.06-2
- Also remove old simpledrm workaround if still present.
* Wed Oct 18 2023 Simone Caronni <[email protected]> - 3:545.23.06-1
- Update to 545.23.06.
* Fri Sep 22 2023 Simone Caronni <[email protected]> - 3:535.113.01-1
- Update to 535.113.01.
* Thu Aug 24 2023 Simone Caronni <[email protected]> - 3:535.104.05-1
- Update to 535.104.05.
* Wed Aug 09 2023 Simone Caronni <[email protected]> - 3:535.98-1
- Update to 535.98.
* Wed Jul 19 2023 Simone Caronni <[email protected]> - 3:535.86.05-1
- Update to 535.86.05.
* Thu Jun 15 2023 Simone Caronni <[email protected]> - 3:535.54.03-1
- Update to 535.54.03.
* Tue Jun 13 2023 Simone Caronni <[email protected]> - 3:535.43.02-1
- Update to 535.43.02.
* Fri Mar 24 2023 Simone Caronni <[email protected]> - 3:530.41.03-1
- Update to 530.41.03.
* Wed Mar 08 2023 Simone Caronni <[email protected]> - 3:530.30.02-1
- Update to 530.30.02.
* Wed Mar 08 2023 Simone Caronni <[email protected]> - 3:525.89.02-2
- Drop workaround for simpledrm support (fixed in 525.60.11).
* Fri Feb 10 2023 Simone Caronni <[email protected]> - 3:525.89.02-1
- Update to 525.89.02.
* Fri Jan 20 2023 Simone Caronni <[email protected]> - 3:525.85.05-1
- Update to 525.85.05.
* Mon Jan 09 2023 Simone Caronni <[email protected]> - 3:525.78.01-1
- Update to 525.78.01.
* Tue Nov 29 2022 Simone Caronni <[email protected]> - 3:525.60.11-1
- Update to 525.60.11.
* Thu Oct 13 2022 Simone Caronni <[email protected]> - 3:520.56.06-1
- Update to 520.56.06.
* Wed Sep 21 2022 Simone Caronni <[email protected]> - 3:515.76-1
- Update to 515.76.
* Mon Aug 08 2022 Simone Caronni <[email protected]> - 3:515.65.01-1
- Update to 515.65.01.
* Wed Jun 29 2022 Simone Caronni <[email protected]> - 3:515.57-1
- Update to 515.57.
* Thu Jun 09 2022 Simone Caronni <[email protected]> - 3:515.48.07-2
- Adjust conditionals.
- Drop removal of nvidia-drm.modeset=1 from the kernel command line.
- Add nvidia-drm.modeset=1 to the configuration file also on RHEL/CentOS.
* Wed Jun 01 2022 Simone Caronni <[email protected]> - 3:515.48.07-1
- Update to 515.48.07.
* Tue May 31 2022 Simone Caronni <[email protected]> - 3:515.43.04-2
- Blacklist nouveau for modprobe.
* Thu May 12 2022 Simone Caronni <[email protected]> - 3:515.43.04-1
- Update to 515.43.04.
* Mon May 02 2022 Simone Caronni <[email protected]> - 3:510.68.02-1
- Update to 510.68.02.
* Mon Mar 28 2022 Simone Caronni <[email protected]> - 3:510.60.02-1
- Update to 510.60.02.
* Mon Feb 14 2022 Simone Caronni <[email protected]> - 3:510.54-1
- Update to 510.54.
* Wed Feb 02 2022 Simone Caronni <[email protected]> - 3:510.47.03-1
- Update to 510.47.03.
* Tue Dec 14 2021 Simone Caronni <[email protected]> - 3:495.46-1
- Update to 495.46.
* Fri Dec 10 2021 Jamie Nguyen <[email protected]> - 3:495.44-4
- Source grub file before rewriting GRUB_CMDLINE_LINUX in preun. Without this,
we are clearing out GRUB_CMDLINE_LINUX when this package gets removed.
* Sun Nov 07 2021 Simone Caronni <[email protected]> - 3:495.44-3
- Avoid duplication on modprobe configuration file names (second file in
/usr/lib/modprobe.d gets ignored). Thanks Jens Peters.
- Fix issue with missing quotes in /etc/default/grub and multiple parameters.
Thanks Roshan Shariff.
* Sat Nov 06 2021 Simone Caronni <[email protected]> - 3:495.44-2
- Update configuration files and boot options.
* Tue Nov 02 2021 Simone Caronni <[email protected]> - 3:495.44-1
- Update to 495.44.
- Also disable bundling nvidia-peermem in initrd.
* Tue Nov 02 2021 Simone Caronni <[email protected]> - 3:470.82.00-1
- Update to 470.82.00.
* Tue Sep 21 2021 Simone Caronni <[email protected]> - 3:470.74-1
- Update to 470.74.
* Fri Aug 20 2021 Simone Caronni <[email protected]> - 3:470.63.01-3
- SPEC file cleanup.
- Enable modesetting by default for Fedora 35+
* Fri Aug 20 2021 Simone Caronni <[email protected]> - 3:470.63.01-2
- Enable complete power management.
* Wed Aug 11 2021 Simone Caronni <[email protected]> - 3:470.63.01-1
- Update to 470.63.01.
* Tue Jul 20 2021 Simone Caronni <[email protected]> - 3:470.57.02-1
- Update to 470.57.02.
* Wed Jun 30 2021 Simone Caronni <[email protected]> - 3:470.42.01-1
- Update to 470.42.01.
* Wed May 26 2021 Simone Caronni <[email protected]> - 3:465.31-1
- Update to 465.31.
* Sat May 01 2021 Simone Caronni <[email protected]> - 3:465.27-1
- Update to 465.27.
* Sun Apr 18 2021 Simone Caronni <[email protected]> - 3:465.24.02-1
- Update to 465.24.02.
* Fri Apr 09 2021 Simone Caronni <[email protected]> - 3:465.19.01-1
- Update to 465.19.01.
* Fri Mar 19 2021 Simone Caronni <[email protected]> - 3:460.67-1
- Update to 460.67.
* Mon Mar 01 2021 Simone Caronni <[email protected]> - 3:460.56-1
- Update to 460.56.
* Wed Jan 27 2021 Simone Caronni <[email protected]> - 3:460.39-1
- Update to 460.39.
* Thu Jan 7 2021 Simone Caronni <[email protected]> - 3:460.32.03-1
- Update to 460.32.03.
* Sun Dec 20 2020 Simone Caronni <[email protected]> - 3:460.27.04-1
- Update to 460.27.04.
- Update comments in modprobe file.
* Mon Dec 07 2020 Simone Caronni <[email protected]> - 3:455.45.01-2
- Remove CentOS/RHEL 6 support.
* Wed Nov 18 2020 Simone Caronni <[email protected]> - 3:455.45.01-1
- Update to 455.45.01.
* Mon Nov 02 2020 Simone Caronni <[email protected]> - 3:455.38-1
- Update to 455.38.
* Mon Oct 12 2020 Simone Caronni <[email protected]> - 3:455.28-1
- Update to 455.28.
* Tue Oct 06 2020 Simone Caronni <[email protected]> - 3:450.80.02-1
- Update to 450.80.02.
* Thu Aug 20 2020 Simone Caronni <[email protected]> - 3:450.66-1
- Update to 450.66.
* Fri Jul 10 2020 Simone Caronni <[email protected]> - 3:450.57-1
- Update to 450.57.
* Thu Jun 25 2020 Simone Caronni <[email protected]> - 3:440.100-1
- Update to 440.100.
* Thu Apr 09 2020 Simone Caronni <[email protected]> - 3:440.82-1
- Update to 440.82.
* Fri Feb 28 2020 Simone Caronni <[email protected]> - 3:440.64-1
- Update to 440.64.
* Tue Feb 04 2020 Simone Caronni <[email protected]> - 3:440.59-1
- Update to 440.59.
* Sat Dec 14 2019 Simone Caronni <[email protected]> - 3:440.44-1
- Update to 440.44.
* Sat Nov 30 2019 Simone Caronni <[email protected]> - 3:440.36-1
- Update to 440.36.
* Mon Nov 11 2019 Simone Caronni <[email protected]> - 3:440.31-2
- Fix udev rules synax (thanks Leigh)
* Sat Nov 09 2019 Simone Caronni <[email protected]> - 3:440.31-1
- Update to 440.31.
* Thu Oct 17 2019 Simone Caronni <[email protected]> - 3:440.26-1
- Update to 440.26.
* Tue Oct 01 2019 Simone Caronni <[email protected]> - 3:435.21-3
- Remove workaround for onboard GPU devices.
- Fix typo on udev character device rules (thanks tbaederr).
* Tue Oct 01 2019 Simone Caronni <[email protected]> - 3:435.21-2
- Fix build on CentOS/RHEL 8
* Tue Sep 03 2019 Simone Caronni <[email protected]> - 3:435.21-1
- Update to 435.21.
* Thu Aug 22 2019 Simone Caronni <[email protected]> - 3:435.17-1
- Update to 435.17.
- Add power management functions as per documentation.
- Require systemd-rpm-macros instead of systemd on Fedora/RHEL 8+.
* Wed Jul 31 2019 Simone Caronni <[email protected]> - 3:430.40-1
- Update to 430.40.
* Fri Jul 12 2019 Simone Caronni <[email protected]> - 3:430.34-1
- Update to 430.34.
* Wed Jun 12 2019 Simone Caronni <[email protected]> - 3:430.26-1
- Update to 430.26.
* Thu Jun 06 2019 Simone Caronni <[email protected]> - 3:430.14-2
- Do not run post/preun scriptlets on Atomic/Silverblue.
* Sat May 18 2019 Simone Caronni <[email protected]> - 3:430.14-1
- Update to 430.14.
* Thu May 09 2019 Simone Caronni <[email protected]> - 3:418.74-1
- Update to 418.74.
- Remove fallback scenario (thanks Karol Herbst).
* Thu Apr 18 2019 Simone Caronni <[email protected]> - 3:418.56-2
- Obsoletes cuda-nvidia-kmod-common (thanks Timm).
* Sun Mar 24 2019 Simone Caronni <[email protected]> - 3:418.56-1
- Update to 418.56.
* Fri Feb 22 2019 Simone Caronni <[email protected]> - 3:418.43-1
- Update to 418.43.
* Wed Feb 06 2019 Simone Caronni <[email protected]> - 3:418.30-1
- Update to 418.30.
* Sun Feb 03 2019 Simone Caronni <[email protected]> - 3:415.27-1
- First build.