Giter Site home page Giter Site logo

meowice / nvidia-legacy Goto Github PK

View Code? Open in Web Editor NEW
109.0 2.0 37.0 782.56 MB

This repository includes patched legacy nVIDIA drivers for newer Linux kernels (5.8 - 6.8). Works on all Linux distros.

Shell 100.00%
nvidia nvidia-gpu nvidia-340 nvidia-390 nvidia-legacy driver drivers graphics-driver nvidia-driver nvidia-driver-packages

nvidia-legacy's Introduction

Patched legacy nVIDIA drivers to work with newer Linux kernels.

This repository includes patched legacy/dropped support nVIDIA drivers for newer Linux kernels.

If you found this repo helpful and saved you on a rainy day then give it a ⭐.

Downloads: SourceForge | Github Releases

Which versions and kernels are supported ?

  • 340.108 (5.8^, 5.10, 5.15, 5.17^, 5.18/5.19, 6.0, 6.2, 6.3, 6.5, 6.6, 6.8.x)
  • 390.151 (5.18+)^
  • 418.113 (5.8, 5.10, 5.11)^
  • 435.21 (5.4, 5.11)^
  • 515.65.01 (6.0+)^

Bold: latest patch for that kernel

^: Removed, you may want to look at forked to see previous versions.

How to use:

  1. Select your driver version from the branch menu: For example, I'll use 340.108:

image

  1. Browse for your current kernel: In this case, I'm running 5.17 kernel:

image

  1. Download the blacklist file and the patched .run file then install it:

image

Press Ctrl + Alt + F1 (any from 1 - 6).

Login with your account.

cd to your patched nVIDIA driver.

$ sudo su
# systemctl stop lightdm
# chmod +x blacklist.sh && ./blacklist.sh
# chmod +x <nvidia_filename>
# ./<nvidia_filename>

Reboot after installation.

Replace lightdm with your window manager (GDM, LightDM, etc.).

Don't know if your GPU is out of date ?

See nVIDIA Legacy GPU/Drivers list

Known issues

Kernel panic during installation

  • Newer kernels might spam kernel panic while installing Unified Memory Modules. This is alright and will not affect to the installation progress. If you cannot see the message box content, try pressing arrow left/right keys and it will refresh :)

For Ubuntu 22.04+:

  • The default kernel must be 5.15.
  • Try with 5.15 patch first. If you booted into Oh no screen or at low resolution, continue reading.

Oh no screen:

# apt update && apt upgrade -y

Reboot and re-install. If not working, try the Low Resolution method and replace gdm with lightdm.

Low resolution:

  • Install 5.18 patch although you're on 5.15 (it should work).
  • Delete the old xorg.conf and generate a new one with nvidia-xconfig.

No TTY

After installing the driver. The screen will turn off and you won't be able to see anything in TTY mode, thus TTY still working and recognizes keyboard input. (login with username and password in blind then you will see HDD light blinking). To fix this:

  • Open your grub file as root (/etc/default/grub). Remove the # in
#GRUB_TERMINAL=console
#GRUB_GFXMODE=640x480
  • You can change 640x480 to your screen resolution.
  • Save the file then update grub (sudo update-grub).

Graphics issues after suspend (sleep)

  • This is a well-known issue for nvidia drivers. You can try to suspend via power menu instead of closing the lid. If it does not fix, restart the desktop via the command r (Alt F2).

nvidia-legacy's People

Contributors

meowice avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nvidia-legacy's Issues

Your a hero

So just installed your version of 340.108 for kernal 5.10 all installed perfect no errors rebooted and everything seems to be working perfect Nvidia X server loaded shows all the right temps and specs

Laptop GPU is Quadro FX 570M
Debian verson 11 bullseye
Kernal Linux 5 10.0-18-amd x84_64
MATE 1.24.1

a massive thank you my poor old laptop is now free from very bloated windows and running very slim Debian with its nice little gpu now working again.
20221208_022631

Issue installing new 340 driver on 6.8 kernel

Hello I have tried to install your driver but so far I haven't been able to succed.

Please find below the logs and commands used to install the driver.

root@proxmox2:# chmod +x NVIDIA-Linux-x86_64-340.108-patched-6.8.run
root@proxmox2:
# ./NVIDIA-Linux-x86_64-340.108-patched-6.8.run
Verifying archive integrity... OK
Uncompressing NVIDIA 340.108 Linux v6.8 by github.com/MeowIce/nvidia-legacy.......................................................................................................................................................................................................................................
root@proxmox2:~# cat /var/log/nvidia-installer.log
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Wed May 15 21:17:02 2024
installer version: 340.108

PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

nvidia-installer command line:
./nvidia-installer

Using: nvidia-installer ncurses v6 user interface
-> License accepted.
-> Installing NVIDIA driver version 340.108.
-> Performing CC sanity check with CC="/usr/bin/cc".
-> Kernel source path: '/lib/modules/6.8.4-3-pve/build'
-> Kernel output path: '/lib/modules/6.8.4-3-pve/build'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Performing Xen check.
-> Performing PREEMPT_RT check.
-> Cleaning kernel module build directory.
executing: 'cd ./kernel; /usr/bin/make clean'...
-> Building NVIDIA kernel module:
executing: 'cd ./kernel; /usr/bin/make module SYSSRC=/lib/modules/6.8.4-3-pve/build SYSOUT=/lib/modules/6.8.4-3-pve/build NV_BUILD_MODULE_INSTANCES='...
NVIDIA: calling KBUILD...
make[1]: Entering directory '/usr/src/linux-headers-6.8.4-3-pve'
/usr/bin/make --no-print-directory -C /usr/src/linux-headers-6.8.4-3-pve
-f /usr/src/linux-headers-6.8.4-3-pve/Makefile modules
warning: the compiler differs from the one used to build the kernel
The kernel was built by: gcc (Debian 12.2.0-14) 12.2.0
You are using: cc (Debian 12.2.0-14) 12.2.0
/usr/bin/make -f ./scripts/Makefile.build obj=/tmp/selfgz2281/kernel need-builtin=1 need-modorder=1

cmd_mod /tmp/selfgz2281/kernel/nvidia.mod

 printf '%s

' nv-kernel.o nv.o nv-acpi.o nv-chrdev.o nv-cray.o nv-dma.o nv-drm.o nv-gvi.o nv-i2c.o nv-mempool.o nv-mmap.o nv-p2p.o nv-pat.o nv-procfs.o nv-usermap.o nv-vm.o nv-vtophys.o os-interface.o os-mlock.o os-pci.o os-registry.o os-smp.o os-usermap.o nv_uvm_interface.o nv-frontend.o | awk '!x[$0]++ { print("/tmp/selfgz2281/kernel/"$0) }' > /tmp/selfgz2281/kernel/nvidia.mod

CC [M] /tmp/selfgz2281/kernel/nv.o

 cc -Wp,-MMD,/tmp/selfgz2281/kernel/.nv.o.d -nostdinc -I./arch/x86/include -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -I./ubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -std=gnu11 -fshort-wchar -funsigned-char -fno-common -fno-PIE -fno-strict-aliasing -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -mfunction-return=thunk-extern -fno-jump-tables -mharden-sls=all -fpatchable-function-entry=16,16 -fno-delete-null-pointer-checks -O2 -fno-allow-store-data-races -fstack-protector-strong -fno-omit-frame-pointer -fno-optimize-sibl

ing-calls -ftrivial-auto-var-init=zero -fno-stack-clash-protection -fzero-call-used-regs=used-gpr -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -falign-functions=16 -fno-strict-overflow -fno-stack-check -fconserve-stack -Wall -Wundef -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Werror=strict-prototypes -Wno-format-security -Wno-trigraphs -Wno-frame-address -Wno-address-of-packed-member -Wmissing-declarations -Wmissing-prototypes -Wframe-larger-than=1024 -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-dangling-pointer -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-overflow -Wno-array-bounds -Wno-alloc-size-larger-than -Wimplicit-fallthrough=5 -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wenum-conversion -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-restrict -Wno-packed-not-aligned -Wno-format-overflow -Wno-format-truncation -Wno-stringop-truncation -Wno-missing-field-initializers -Wno-type-lim
its -Wno-shift-negative-value -Wno-maybe-uninitialized -Wno-sign-compare -g -gdwarf-5 -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/tmp/selfgz2281/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING="340.108" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME="nvidia" -fsanitize=shift -fsanitize=bool -fsanitize=enum -DMODULE -DKBUILD_BASENAME='"nv"' -DKBUILD_MODNAME='"nvidia"' -D__KBUILD_MODNAME=kmod_nvidia -c -o /tmp/selfgz2281/kernel/nv.o /tmp/selfgz2281/kernel/nv.c ; ./tools/objtool/objtool --hacks=jump_label --hacks=noinstr --hacks=skylake --retpoline --rethunk --sls --stackval --static-call --uaccess --prefix=16 --module /tmp/selfgz2281/kernel/nv.o
In file included from ./include/linux/build_bug.h:5,
from ./arch/x86/include/asm/current.h:5,
from ./include/linux/sched.h:12,
from ./include/linux/utsname.h:6,
from /tmp/selfgz2281/kernel/nv-linux.h:44,
from /tmp/selfgz2281/kernel/nv.c:13:
./include/linux/thread_info.h: In function 'check_copy_size':
./include/linux/thread_info.h:240:36: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
240 | if (unlikely(sz >= 0 && sz < bytes)) {
| ^
./include/linux/compiler.h:77:45: note: in definition of macro 'unlikely'
77 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
In file included from ./include/linux/mmzone.h:22,
from ./include/linux/gfp.h:7,
from ./include/linux/umh.h:4,
from ./include/linux/kmod.h:9,
from ./include/linux/module.h:17,
from /tmp/selfgz2281/kernel/nv-linux.h:65:
./include/linux/mm_types.h: In function 'mm_cid_is_unset':
./include/linux/mm_types.h:1098:20: warning: comparison of integer expressions of different signedness: 'int' and 'enum mm_cid_state' [-Wsign-compare]
1098 | return cid == MM_CID_UNSET;
| ^~
In file included from ./include/linux/bitmap.h:10,
from ./include/linux/cpumask.h:12,
from ./arch/x86/include/asm/paravirt.h:21,
from ./arch/x86/include/asm/cpuid.h:62,
from ./arch/x86/include/asm/processor.h:19,
from ./include/linux/sched.h:13:
./include/linux/mm_types.h: In function 'mm_init_cid':
./include/linux/find.h:559:77: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
559 | for ((bit) = 0; (bit) = find_next_bit((addr), (size), (bit)), (bit) < (size); (bit)++)
| ^
./include/linux/cpumask.h:282:9: note: in expansion of macro 'for_each_set_bit'
282 | for_each_set_bit(cpu, cpumask_bits(mask), small_cpumask_bits)
| ^~~~~~~~~~~~~~~~
./include/linux/cpumask.h:994:36: note: in expansion of macro 'for_each_cpu'
994 | #define for_each_possible_cpu(cpu) for_each_cpu((cpu), cpu_possible_mask)
| ^~~~~~~~~~~~
./include/linux/mm_types.h:1136:9: note: in expansion of macro 'for_each_possible_cpu'
1136 | for_each_possible_cpu(i) {
| ^~~~~~~~~~~~~~~~~~~~~
In file included from ./include/linux/mmzone.h:23:
./include/linux/page-flags.h: In function 'PagePoisoned':
./include/linux/page-flags.h:298:39: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'long int' [-Wsign-compare]
298 | return READ_ONCE(page->flags) == PAGE_POISON_PATTERN;
| ^~
./include/linux/mmzone.h: In function 'next_zones_zonelist':
./include/linux/mmzone.h:1638:51: warning: comparison of integer expressions of different signedness: 'int' and 'enum zone_type' [-Wsign-compare]
1638 | if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx))
| ^~
./include/linux/compiler.h:76:45: note: in definition of macro 'likely'
76 | # define likely(x) __builtin_expect(!!(x), 1)
| ^
In file included from ./arch/x86/include/asm/current.h:11:
./include/linux/percpu-rwsem.h: In function 'percpu_up_read':
./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare]
127 | ((val) == 1 || (val) == -1)) ?
| ^~
./arch/x86/include/asm/percpu.h:417:41: note: in expansion of macro 'percpu_add_op'
417 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, volatile, (pcp), val)
| ^~~~~~~~~~~~~
./include/linux/percpu-defs.h:365:25: note: in expansion of macro 'this_cpu_add_1'
365 | case 1: stem##1(variable, VA_ARGS);break;
| ^~~~
./include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call'
491 | #define this_cpu_add(pcp, val) _pcpu_size_call(this_cpu_add, pcp, val)
| ^~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:500:41: note: in expansion of macro 'this_cpu_add'
500 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val))
| ^~~~~~~~~~~~
./include/linux/percpu-defs.h:502:41: note: in expansion of macro 'this_cpu_sub'
502 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1)
| ^~~~~~~~~~~~
./include/linux/percpu-rwsem.h:106:17: note: in expansion of macro 'this_cpu_dec'
106 | this_cpu_dec(*sem->read_count);
| ^~~~~~~~~~~~
./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare]
127 | ((val) == 1 || (val) == -1)) ?
| ^~
./arch/x86/include/asm/percpu.h:418:41: note: in expansion of macro 'percpu_add_op'
418 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, volatile, (pcp), val)
| ^~~~~~~~~~~~~
./include/linux/percpu-defs.h:366:25: note: in expansion of macro 'this_cpu_add_2'
366 | case 2: stem##2(variable, VA_ARGS);break;
| ^~~~
./include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call'
491 | #define this_cpu_add(pcp, val) _pcpu_size_call(this_cpu_add, pcp, val)
| ^~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:500:41: note: in expansion of macro 'this_cpu_add'
500 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val))
| ^~~~~~~~~~~~
./include/linux/percpu-defs.h:502:41: note: in expansion of macro 'this_cpu_sub'
502 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1)
| ^~~~~~~~~~~~
./include/linux/percpu-rwsem.h:106:17: note: in expansion of macro 'this_cpu_dec'
106 | this_cpu_dec(*sem->read_count);
| ^~~~~~~~~~~~
./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare]
127 | ((val) == 1 || (val) == -1)) ?
| ^~
./arch/x86/include/asm/percpu.h:419:41: note: in expansion of macro 'percpu_add_op'
419 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, volatile, (pcp), val)
| ^~~~~~~~~~~~~
./include/linux/percpu-defs.h:367:25: note: in expansion of macro 'this_cpu_add_4'
367 | case 4: stem##4(variable, VA_ARGS);break;
| ^~~~
./include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call'
491 | #define this_cpu_add(pcp, val) _pcpu_size_call(this_cpu_add, pcp, val)
| ^~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:500:41: note: in expansion of macro 'this_cpu_add'
500 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val))
| ^~~~~~~~~~~~
./include/linux/percpu-defs.h:502:41: note: in expansion of macro 'this_cpu_sub'
502 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1)
| ^~~~~~~~~~~~
./include/linux/percpu-rwsem.h:106:17: note: in expansion of macro 'this_cpu_dec'
106 | this_cpu_dec(*sem->read_count);
| ^~~~~~~~~~~~
./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare]
127 | ((val) == 1 || (val) == -1)) ?
| ^~
./arch/x86/include/asm/percpu.h:467:49: note: in expansion of macro 'percpu_add_op'
467 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, volatile, (pcp), val)
| ^~~~~~~~~~~~~
./include/linux/percpu-defs.h:368:25: note: in expansion of macro 'this_cpu_add_8'
368 | case 8: stem##8(variable, VA_ARGS);break;
| ^~~~
./include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call'
491 | #define this_cpu_add(pcp, val) _pcpu_size_call(this_cpu_add, pcp, val)
| ^~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:500:41: note: in expansion of macro 'this_cpu_add'
500 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val))
| ^~~~~~~~~~~~
./include/linux/percpu-defs.h:502:41: note: in expansion of macro 'this_cpu_sub'
502 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1)
| ^~~~~~~~~~~~
./include/linux/percpu-rwsem.h:106:17: note: in expansion of macro 'this_cpu_dec'
106 | this_cpu_dec(*sem->read_count);
| ^~~~~~~~~~~~
./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare]
127 | ((val) == 1 || (val) == -1)) ?
| ^~
./arch/x86/include/asm/percpu.h:417:41: note: in expansion of macro 'percpu_add_op'
417 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, volatile, (pcp), val)
| ^~~~~~~~~~~~~
./include/linux/percpu-defs.h:365:25: note: in expansion of macro 'this_cpu_add_1'
365 | case 1: stem##1(variable, VA_ARGS);break;
| ^~~~
./include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call'
491 | #define this_cpu_add(pcp, val) _pcpu_size_call(this_cpu_add, pcp, val)
| ^~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:500:41: note: in expansion of macro 'this_cpu_add'
500 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val))
| ^~~~~~~~~~~~
./include/linux/percpu-defs.h:502:41: note: in expansion of macro 'this_cpu_sub'
502 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1)
| ^~~~~~~~~~~~
./include/linux/percpu-rwsem.h:118:17: note: in expansion of macro 'this_cpu_dec'
118 | this_cpu_dec(*sem->read_count);
| ^~~~~~~~~~~~
./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare]
127 | ((val) == 1 || (val) == -1)) ?
| ^~
./arch/x86/include/asm/percpu.h:418:41: note: in expansion of macro 'percpu_add_op'
418 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, volatile, (pcp), val)
| ^~~~~~~~~~~~~
./include/linux/percpu-defs.h:366:25: note: in expansion of macro 'this_cpu_add_2'
366 | case 2: stem##2(variable, VA_ARGS);break;
| ^~~~
./include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call'
491 | #define this_cpu_add(pcp, val) _pcpu_size_call(this_cpu_add, pcp, val)
| ^~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:500:41: note: in expansion of macro 'this_cpu_add'
500 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val))
| ^~~~~~~~~~~~
./include/linux/percpu-defs.h:502:41: note: in expansion of macro 'this_cpu_sub'
502 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1)
| ^~~~~~~~~~~~
./include/linux/percpu-rwsem.h:118:17: note: in expansion of macro 'this_cpu_dec'
118 | this_cpu_dec(*sem->read_count);
| ^~~~~~~~~~~~
./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare]
127 | ((val) == 1 || (val) == -1)) ?
| ^~
./arch/x86/include/asm/percpu.h:419:41: note: in expansion of macro 'percpu_add_op'
419 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, volatile, (pcp), val)
| ^~~~~~~~~~~~~
./include/linux/percpu-defs.h:367:25: note: in expansion of macro 'this_cpu_add_4'
367 | case 4: stem##4(variable, VA_ARGS);break;
| ^~~~
./include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call'
491 | #define this_cpu_add(pcp, val) _pcpu_size_call(this_cpu_add, pcp, val)
| ^~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:500:41: note: in expansion of macro 'this_cpu_add'
500 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val))
| ^~~~~~~~~~~~
./include/linux/percpu-defs.h:502:41: note: in expansion of macro 'this_cpu_sub'
502 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1)
| ^~~~~~~~~~~~
./include/linux/percpu-rwsem.h:118:17: note: in expansion of macro 'this_cpu_dec'
118 | this_cpu_dec(*sem->read_count);
| ^~~~~~~~~~~~
./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare]
127 | ((val) == 1 || (val) == -1)) ?
| ^~
./arch/x86/include/asm/percpu.h:467:49: note: in expansion of macro 'percpu_add_op'
467 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, volatile, (pcp), val)
| ^~~~~~~~~~~~~
./include/linux/percpu-defs.h:368:25: note: in expansion of macro 'this_cpu_add_8'
368 | case 8: stem##8(variable, VA_ARGS);break;
| ^~~~
./include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call'
491 | #define this_cpu_add(pcp, val) _pcpu_size_call(this_cpu_add, pcp, val)
| ^~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:500:41: note: in expansion of macro 'this_cpu_add'
500 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val))
| ^~~~~~~~~~~~
./include/linux/percpu-defs.h:502:41: note: in expansion of macro 'this_cpu_sub'
502 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1)
| ^~~~~~~~~~~~
./include/linux/percpu-rwsem.h:118:17: note: in expansion of macro 'this_cpu_dec'
118 | this_cpu_dec(*sem->read_count);
| ^~~~~~~~~~~~
./include/linux/percpu-refcount.h: In function 'percpu_ref_get_many':
./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare]
127 | ((val) == 1 || (val) == -1)) ?
| ^~
./arch/x86/include/asm/percpu.h:417:41: note: in expansion of macro 'percpu_add_op'
417 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, volatile, (pcp), val)
| ^~~~~~~~~~~~~
./include/linux/percpu-defs.h:365:25: note: in expansion of macro 'this_cpu_add_1'
365 | case 1: stem##1(variable, VA_ARGS);break;
| ^~~~
./include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call'
491 | #define this_cpu_add(pcp, val) _pcpu_size_call(this_cpu_add, pcp, val)
| ^~~~~~~~~~~~~~~~
./include/linux/percpu-refcount.h:205:17: note: in expansion of macro 'this_cpu_add'
205 | this_cpu_add(*percpu_count, nr);
| ^~~~~~~~~~~~
./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare]
127 | ((val) == 1 || (val) == -1)) ?
| ^~
./arch/x86/include/asm/percpu.h:418:41: note: in expansion of macro 'percpu_add_op'
418 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, volatile, (pcp), val)
| ^~~~~~~~~~~~~
./include/linux/percpu-defs.h:366:25: note: in expansion of macro 'this_cpu_add_2'
366 | case 2: stem##2(variable, VA_ARGS);break;
| ^~~~
./include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call'
491 | #define this_cpu_add(pcp, val) _pcpu_size_call(this_cpu_add, pcp, val)
| ^~~~~~~~~~~~~~~~
./include/linux/percpu-refcount.h:205:17: note: in expansion of macro 'this_cpu_add'
205 | this_cpu_add(*percpu_count, nr);
| ^~~~~~~~~~~~
./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare]
127 | ((val) == 1 || (val) == -1)) ?
| ^~
./arch/x86/include/asm/percpu.h:419:41: note: in expansion of macro 'percpu_add_op'
419 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, volatile, (pcp), val)
| ^~~~~~~~~~~~~
./include/linux/percpu-defs.h:367:25: note: in expansion of macro 'this_cpu_add_4'
367 | case 4: stem##4(variable, VA_ARGS);break;
| ^~~~
./include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call'
491 | #define this_cpu_add(pcp, val) _pcpu_size_call(this_cpu_add, pcp, val)
| ^~~~~~~~~~~~~~~~
./include/linux/percpu-refcount.h:205:17: note: in expansion of macro 'this_cpu_add'
205 | this_cpu_add(*percpu_count, nr);
| ^~~~~~~~~~~~
./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare]
127 | ((val) == 1 || (val) == -1)) ?
| ^~
./arch/x86/include/asm/percpu.h:467:49: note: in expansion of macro 'percpu_add_op'
467 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, volatile, (pcp), val)
| ^~~~~~~~~~~~~
./include/linux/percpu-defs.h:368:25: note: in expansion of macro 'this_cpu_add_8'
368 | case 8: stem##8(variable, VA_ARGS);break;
| ^~~~
./include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call'
491 | #define this_cpu_add(pcp, val) _pcpu_size_call(this_cpu_add, pcp, val)
| ^~~~~~~~~~~~~~~~
./include/linux/percpu-refcount.h:205:17: note: in expansion of macro 'this_cpu_add'
205 | this_cpu_add(*percpu_count, nr);
| ^~~~~~~~~~~~
./include/linux/percpu-refcount.h: In function 'percpu_ref_tryget_many':
./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare]
127 | ((val) == 1 || (val) == -1)) ?
| ^~
./arch/x86/include/asm/percpu.h:417:41: note: in expansion of macro 'percpu_add_op'
417 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, volatile, (pcp), val)
| ^~~~~~~~~~~~~
./include/linux/percpu-defs.h:365:25: note: in expansion of macro 'this_cpu_add_1'
365 | case 1: stem##1(variable, VA_ARGS);break;
| ^~~~
./include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call'
491 | #define this_cpu_add(pcp, val) _pcpu_size_call(this_cpu_add, pcp, val)
| ^~~~~~~~~~~~~~~~
./include/linux/percpu-refcount.h:244:17: note: in expansion of macro 'this_cpu_add'
244 | this_cpu_add(*percpu_count, nr);
| ^~~~~~~~~~~~
./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare]
127 | ((val) == 1 || (val) == -1)) ?
| ^~
./arch/x86/include/asm/percpu.h:418:41: note: in expansion of macro 'percpu_add_op'
418 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, volatile, (pcp), val)
| ^~~~~~~~~~~~~
./include/linux/percpu-defs.h:366:25: note: in expansion of macro 'this_cpu_add_2'
366 | case 2: stem##2(variable, VA_ARGS);break;
| ^~~~
./include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call'
491 | #define this_cpu_add(pcp, val) _pcpu_size_call(this_cpu_add, pcp, val)
| ^~~~~~~~~~~~~~~~
./include/linux/percpu-refcount.h:244:17: note: in expansion of macro 'this_cpu_add'
244 | this_cpu_add(*percpu_count, nr);
| ^~~~~~~~~~~~
./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare]
127 | ((val) == 1 || (val) == -1)) ?
| ^~
./arch/x86/include/asm/percpu.h:419:41: note: in expansion of macro 'percpu_add_op'
419 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, volatile, (pcp), val)
| ^~~~~~~~~~~~~
./include/linux/percpu-defs.h:367:25: note: in expansion of macro 'this_cpu_add_4'
367 | case 4: stem##4(variable, VA_ARGS);break;
| ^~~~
./include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call'
491 | #define this_cpu_add(pcp, val) _pcpu_size_call(this_cpu_add, pcp, val)
| ^~~~~~~~~~~~~~~~
./include/linux/percpu-refcount.h:244:17: note: in expansion of macro 'this_cpu_add'
244 | this_cpu_add(*percpu_count, nr);
| ^~~~~~~~~~~~
./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare]
127 | ((val) == 1 || (val) == -1)) ?
| ^~
./arch/x86/include/asm/percpu.h:467:49: note: in expansion of macro 'percpu_add_op'
467 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, volatile, (pcp), val)
| ^~~~~~~~~~~~~
./include/linux/percpu-defs.h:368:25: note: in expansion of macro 'this_cpu_add_8'
368 | case 8: stem##8(variable, VA_ARGS);break;
| ^~~~
./include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call'
491 | #define this_cpu_add(pcp, val) _pcpu_size_call(this_cpu_add, pcp, val)
| ^~~~~~~~~~~~~~~~
./include/linux/percpu-refcount.h:244:17: note: in expansion of macro 'this_cpu_add'
244 | this_cpu_add(*percpu_count, nr);
| ^~~~~~~~~~~~
./include/linux/percpu-refcount.h: In function 'percpu_ref_put_many':
./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare]
127 | ((val) == 1 || (val) == -1)) ?
| ^~
./arch/x86/include/asm/percpu.h:417:41: note: in expansion of macro 'percpu_add_op'
417 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, volatile, (pcp), val)
| ^~~~~~~~~~~~~
./include/linux/percpu-defs.h:365:25: note: in expansion of macro 'this_cpu_add_1'
365 | case 1: stem##1(variable, VA_ARGS);break;
| ^~~~
./include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call'
491 | #define this_cpu_add(pcp, val) _pcpu_size_call(this_cpu_add, pcp, val)
| ^~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:500:41: note: in expansion of macro 'this_cpu_add'
500 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val))
| ^~~~~~~~~~~~
./include/linux/percpu-refcount.h:333:17: note: in expansion of macro 'this_cpu_sub'
333 | this_cpu_sub(*percpu_count, nr);
| ^~~~~~~~~~~~
./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare]
127 | ((val) == 1 || (val) == -1)) ?
| ^~
./arch/x86/include/asm/percpu.h:418:41: note: in expansion of macro 'percpu_add_op'
418 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, volatile, (pcp), val)
| ^~~~~~~~~~~~~
./include/linux/percpu-defs.h:366:25: note: in expansion of macro 'this_cpu_add_2'
366 | case 2: stem##2(variable, VA_ARGS);break;
| ^~~~
./include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call'
491 | #define this_cpu_add(pcp, val) _pcpu_size_call(this_cpu_add, pcp, val)
| ^~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:500:41: note: in expansion of macro 'this_cpu_add'
500 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val))
| ^~~~~~~~~~~~
./include/linux/percpu-refcount.h:333:17: note: in expansion of macro 'this_cpu_sub'
333 | this_cpu_sub(*percpu_count, nr);
| ^~~~~~~~~~~~
./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare]
127 | ((val) == 1 || (val) == -1)) ?
| ^~
./arch/x86/include/asm/percpu.h:419:41: note: in expansion of macro 'percpu_add_op'
419 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, volatile, (pcp), val)
| ^~~~~~~~~~~~~
./include/linux/percpu-defs.h:367:25: note: in expansion of macro 'this_cpu_add_4'
367 | case 4: stem##4(variable, VA_ARGS);break;
| ^~~~
./include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call'
491 | #define this_cpu_add(pcp, val) _pcpu_size_call(this_cpu_add, pcp, val)
| ^~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:500:41: note: in expansion of macro 'this_cpu_add'
500 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val))
| ^~~~~~~~~~~~
./include/linux/percpu-refcount.h:333:17: note: in expansion of macro 'this_cpu_sub'
333 | this_cpu_sub(*percpu_count, nr);
| ^~~~~~~~~~~~
./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare]
127 | ((val) == 1 || (val) == -1)) ?
| ^~
./arch/x86/include/asm/percpu.h:467:49: note: in expansion of macro 'percpu_add_op'
467 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, volatile, (pcp), val)
| ^~~~~~~~~~~~~
./include/linux/percpu-defs.h:368:25: note: in expansion of macro 'this_cpu_add_8'
368 | case 8: stem##8(variable, VA_ARGS);break;
| ^~~~
./include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call'
491 | #define this_cpu_add(pcp, val) _pcpu_size_call(this_cpu_add, pcp, val)
| ^~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:500:41: note: in expansion of macro 'this_cpu_add'
500 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val))
| ^~~~~~~~~~~~
./include/linux/percpu-refcount.h:333:17: note: in expansion of macro 'this_cpu_sub'
333 | this_cpu_sub(*percpu_count, nr);
| ^~~~~~~~~~~~
./include/linux/vmstat.h: In function 'zone_page_state_snapshot':
./include/linux/find.h:559:77: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
559 | for ((bit) = 0; (bit) = find_next_bit((addr), (size), (bit)), (bit) < (size); (bit)++)
| ^
./include/linux/cpumask.h:282:9: note: in expansion of macro 'for_each_set_bit'
282 | for_each_set_bit(cpu, cpumask_bits(mask), small_cpumask_bits)
| ^~~~~~~~~~~~~~~~
./include/linux/cpumask.h:995:36: note: in expansion of macro 'for_each_cpu'
995 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask)
| ^~~~~~~~~~~~
./include/linux/vmstat.h:231:9: note: in expansion of macro 'for_each_online_cpu'
231 | for_each_online_cpu(cpu)
| ^~~~~~~~~~~~~~~~~~~
./include/linux/cpufreq.h: In function 'of_perf_domain_get_sharing_cpumask':
./include/linux/find.h:559:77: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
559 | for ((bit) = 0; (bit) = find_next_bit((addr), (size), (bit)), (bit) < (size); (bit)++)
| ^
./include/linux/cpumask.h:282:9: note: in expansion of macro 'for_each_set_bit'
282 | for_each_set_bit(cpu, cpumask_bits(mask), small_cpumask_bits)
| ^~~~~~~~~~~~~~~~
./include/linux/cpumask.h:994:36: note: in expansion of macro 'for_each_cpu'
994 | #define for_each_possible_cpu(cpu) for_each_cpu((cpu), cpu_possible_mask)
| ^~~~~~~~~~~~
./include/linux/cpufreq.h:1157:9: note: in expansion of macro 'for_each_possible_cpu'
1157 | for_each_possible_cpu(cpu) {
| ^~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/selfgz2281/kernel/nv-linux.h:156:
./include/linux/pagemap.h: In function 'folio_contains':
./include/linux/pagemap.h:841:43: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'long int' [-Wsign-compare]
841 | return index - folio_index(folio) < folio_nr_pages(folio);
| ^
In file included from ./include/linux/efi.h:20,
from /tmp/selfgz2281/kernel/nv-linux.h:177:
./include/linux/rtc.h: In function 'rtc_bound_alarmtime':
./include/linux/rtc.h:239:50: warning: comparison of integer expressions of different signedness: 'long long unsigned int' and 's64' {aka 'long long int'} [-Wsign-compare]
239 | rtc->alarm_offset_max * MSEC_PER_SEC < ktime_to_ms(requested))
| ^
./arch/x86/include/asm/xen/hypervisor.h: In function 'leave_lazy':
./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare]
127 | ((val) == 1 || (val) == -1)) ?
| ^~
./arch/x86/include/asm/percpu.h:417:41: note: in expansion of macro 'percpu_add_op'
417 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, volatile, (pcp), val)
| ^~~~~~~~~~~~~
./include/linux/percpu-defs.h:365:25: note: in expansion of macro 'this_cpu_add_1'
365 | case 1: stem##1(variable, VA_ARGS);break;
| ^~~~
./include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call'
491 | #define this_cpu_add(pcp, val) _pcpu_size_call(this_cpu_add, pcp, val)
| ^~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:500:41: note: in expansion of macro 'this_cpu_add'
500 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val))
| ^~~~~~~~~~~~
./include/linux/percpu-defs.h:502:41: note: in expansion of macro 'this_cpu_sub'
502 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1)
| ^~~~~~~~~~~~
./arch/x86/include/asm/xen/hypervisor.h:98:17: note: in expansion of macro 'this_cpu_dec'
98 | this_cpu_dec(xen_lazy_nesting);
| ^~~~~~~~~~~~
./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare]
127 | ((val) == 1 || (val) == -1)) ?
| ^~
./arch/x86/include/asm/percpu.h:418:41: note: in expansion of macro 'percpu_add_op'
418 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, volatile, (pcp), val)
| ^~~~~~~~~~~~~
./include/linux/percpu-defs.h:366:25: note: in expansion of macro 'this_cpu_add_2'
366 | case 2: stem##2(variable, VA_ARGS);break;
| ^~~~
./include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call'
491 | #define this_cpu_add(pcp, val) _pcpu_size_call(this_cpu_add, pcp, val)
| ^~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:500:41: note: in expansion of macro 'this_cpu_add'
500 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val))
| ^~~~~~~~~~~~
./include/linux/percpu-defs.h:502:41: note: in expansion of macro 'this_cpu_sub'
502 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1)
| ^~~~~~~~~~~~
./arch/x86/include/asm/xen/hypervisor.h:98:17: note: in expansion of macro 'this_cpu_dec'
98 | this_cpu_dec(xen_lazy_nesting);
| ^~~~~~~~~~~~
./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare]
127 | ((val) == 1 || (val) == -1)) ?
| ^~
./arch/x86/include/asm/percpu.h:419:41: note: in expansion of macro 'percpu_add_op'
419 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, volatile, (pcp), val)
| ^~~~~~~~~~~~~
./include/linux/percpu-defs.h:367:25: note: in expansion of macro 'this_cpu_add_4'
367 | case 4: stem##4(variable, VA_ARGS);break;
| ^~~~
./include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call'
491 | #define this_cpu_add(pcp, val) _pcpu_size_call(this_cpu_add, pcp, val)
| ^~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:500:41: note: in expansion of macro 'this_cpu_add'
500 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val))
| ^~~~~~~~~~~~
./include/linux/percpu-defs.h:502:41: note: in expansion of macro 'this_cpu_sub'
502 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1)
| ^~~~~~~~~~~~
./arch/x86/include/asm/xen/hypervisor.h:98:17: note: in expansion of macro 'this_cpu_dec'
98 | this_cpu_dec(xen_lazy_nesting);
| ^~~~~~~~~~~~
./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare]
127 | ((val) == 1 || (val) == -1)) ?
| ^~
./arch/x86/include/asm/percpu.h:467:49: note: in expansion of macro 'percpu_add_op'
467 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, volatile, (pcp), val)
| ^~~~~~~~~~~~~
./include/linux/percpu-defs.h:368:25: note: in expansion of macro 'this_cpu_add_8'
368 | case 8: stem##8(variable, VA_ARGS);break;
| ^~~~
./include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call'
491 | #define this_cpu_add(pcp, val) _pcpu_size_call(this_cpu_add, pcp, val)
| ^~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:500:41: note: in expansion of macro 'this_cpu_add'
500 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val))
| ^~~~~~~~~~~~
./include/linux/percpu-defs.h:502:41: note: in expansion of macro 'this_cpu_sub'
502 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1)
| ^~~~~~~~~~~~
./arch/x86/include/asm/xen/hypervisor.h:98:17: note: in expansion of macro 'this_cpu_dec'
98 | this_cpu_dec(xen_lazy_nesting);
| ^~~~~~~~~~~~
In file included from ./include/linux/writeback.h:202,
from ./include/linux/memcontrol.h:22,
from ./include/linux/swap.h:9,
from ./include/linux/suspend.h:5,
from ./include/linux/regulator/consumer.h:35,
from ./include/linux/i2c.h:19,
from /tmp/selfgz2281/kernel/nv-linux.h:305:
./include/linux/bio.h: In function 'bio_next_split':
./include/linux/bio.h:406:21: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
406 | if (sectors >= bio_sectors(bio))
| ^~
/tmp/selfgz2281/kernel/nv-linux.h: In function 'NV_GET_USER_PAGES_REMOTE':
/tmp/selfgz2281/kernel/nv-linux.h:2262:52: error: passing argument 6 of 'get_user_pages_remote' from incompatible pointer type [-Werror=incompatible-pointer-types]
2262 | pages, vmas, NULL);
| ^~~~
| |
| struct vm_area_struct **
In file included from /tmp/selfgz2281/kernel/nv-linux.h:68:
./include/linux/mm.h:2443:33: note: expected 'int *' but argument is of type 'struct vm_area_struct **'
2443 | int *locked);
| ~~~~~^~~~~~
/tmp/selfgz2281/kernel/nv-linux.h:2261:23: error: too many arguments to function 'get_user_pages_remote'
2261 | return get_user_pages_remote(mm, start, nr_pages, flags,
| ^~~~~~~~~~~~~~~~~~~~~
./include/linux/mm.h:2440:6: note: declared here
2440 | long get_user_pages_remote(struct mm_struct *mm,
| ^~~~~~~~~~~~~~~~~~~~~
/tmp/selfgz2281/kernel/nv.c: At top level:
/tmp/selfgz2281/kernel/nv.c:709:12: warning: no previous prototype for 'nvidia_init_module' [-Wmissing-prototypes]
709 | int __init nvidia_init_module(void)
| ^~~~~~~~~~~~~~~~~~
/tmp/selfgz2281/kernel/nv.c:1054:6: warning: no previous prototype for 'nvidia_exit_module' [-Wmissing-prototypes]
1054 | void nvidia_exit_module(void)
| ^~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:243: /tmp/selfgz2281/kernel/nv.o] Error 1
make[2]: *** [/usr/src/linux-headers-6.8.4-3-pve/Makefile:1926: /tmp/selfgz2281/kernel] Error 2
make[1]: *** [Makefile:240: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.8.4-3-pve'
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make: *** [Makefile:202: nvidia.ko] Error 1
-> Error.
ERROR: Unable to build the NVIDIA kernel module.
ERROR: Installation has failed. Please see the file '/var/log/nvidia-installer.log' for details. You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com

version for kernel 5.18

Is there a mismatch? Where a version for kernel 5.18 , written as "5.8" in here. or, still in development? (For kernel 5.18)

Getting 418.113 driver to work with 6.0+ Kernels

Can you update this particular driver. Its the last driver to support the Quadro K3100 with optimus that works correctly on my Dell M6800. I can use the 470+ drivers however I cannot make it the primary output adapter and requires DRI_PRIME=1 to run titles. This does not work all the time either.

340.108 Causes 'Oh no, something has gone wrong'

I followed the directions to install driver 340.108 for kernel 5.15 and afterwards I get the screen 'Oh no, something has gone wrong'. I was unable to get it to install with TTY, because I couldn't shut stop gdm3 service (it would go to a black screen with the blinking line cursor thing in the top left corner; then I had to hard boot). So I installed the driver outside the OS with command line. It gives me cc warning (which I ignore), then I get this warning:

WARNING: nvidia-installer was forced to guess the X library path 'usr/lib' and X module path '/usr/lib/xorg/modules'; these path were not queryable from the system. If X fails to find the NVIDIA X driver module, please install the 'pkg-config' utility and the X.Org SDK/development package for your distribution and reinstall the driver.

It still seems to successfully install. Upon booting up, I get the error and cannot get into the OS.

Button download

I can't find the file download button, HELP ME)) (driver version 390.151)

Error when try to download 390.151 (5.18+)

When I try to download the 390.151 (5.18+) patched version, the file (121MB) cant download and just appear the message below on browser:

version https://git-lfs.github.com/spec/v1
oid sha256:c6b0e5011ca60ddc4e64932450971d9dd04aa31cd34bf8fa95b2c450e7742519
size 126767217

Or the content of the file NVIDIA-Linux-x86_64-390.151-5.18.run downloaded is the same above.

Cant access to nvidia settings

thank you so much for this gift!

however I'm having some difficulty using it on my hardware.
I will be very grateful for the solution of the problem

Questions:

  1. How to get full access to nvidia-settings
  2. How to make GPU`s work now as they should
  3. I don’t understand whether to keep two GPU`s or remove one

nvidia-settings

"You do not appear to be using the NVIDIA X driver. Please edit your X configuration file (just run nvidia-xconfig as root), and restart the X _server."

inxi -Fx

Kernel: 5.15.0-67-generic x86_64 bits: 64
Compiler: gcc v: 11.3.0 Desktop: MATE 1.26.0 Distro: Linux Mint 21.1 Vera
Base: Ubuntu 22.04 jammy
Machine: MacBookPro5,2 v: 1.0
  
CPU: Intel Core2 Duo T9600 bits: 64 type: MCP

Graphics:
  Device-1: NVIDIA G96CM [GeForce 9600M GT] vendor: Apple driver: nvidia
    v: 340.108 bus-ID: 02:00.0
  Device-2: NVIDIA C79 [GeForce 9400M] vendor: Apple driver: nvidia
    v: 340.108 bus-ID: 03:00.0
  Device-3: Apple Built-in iSight type: USB driver: uvcvideo bus-ID: 1-4:2
  Display: x11 server: X.Org v: 1.21.1.3 driver: X: loaded: nouveau,vesa
    unloaded: fbdev,modesetting failed: nvidia gpu: nvidia,nvidia
    resolution: 1920x1200~77Hz
  OpenGL: renderer: N/A v: N/A direct render: N/A

xorg.conf

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 340.108  (buildmeister@swio-display-x64-rhel04-01)  Wed Dec 11 15:13:33 PST 2019


Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Will 6.5 work on kali linux 6.4 ?

A week ago, i tried to install nvidia driver 340xx (6.3) on kali linux (6.4) but lightdm failed to start, so i was forced to reinstall kali, now i am afraid that if i installed 6.5 driver will make my system stop working!

Last kernel version in kali linux is 6.4!

What should i do?

LFS download error

Downloading 5.18/NVIDIA-Linux-x86_64-390.151-5.18.run (127 MB)
Error downloading object: 5.18/NVIDIA-Linux-x86_64-390.151-5.18.run (c6b0e50): Smudge error: Error downloading 5.18/NVIDIA-Linux-x86_64-390.151-5.18.run (c6b0e5011ca60ddc4e64932450971d9dd04aa31cd34bf8fa95b2c450e7742519): batch response: This repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs to restore access.

kernel 6.6 + patched nvidia 340 + 8600gt card = no luck

Unfortunately no luck with this combination.

I've been struggling to make a fresh Debian 12.4 (upgraded to kernel 6.6) working with my old nvidia 8600gt for a day. But no luck.

After a successful compilation I ran into ignoreABI flag problem. I put this flag into the ServerFlags section of my Xorg.conf but Xorg still doesn't start. IgnoreABI option is taken in account and ignores ABI but server shows just black screen.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.