[patch] 378.09 + 4.10.0-rc4 patches
Edit: ubuntu people released a patch that fixes HOTPLUG, use that one instead of mine. See #4. >Based on by previous patch for 375.XX series, [s]CPU_HOTPLUG workaround removed[/s] >https://gist.github.com/tpruzina/c8b06270dc08adb6054df449bebfe7e3 [code]wget 'https://gist.githubusercontent.com/tpruzina/c8b06270dc08adb6054df449bebfe7e3/raw/f83bee07db9fa1f7faedb376a8ff427d2ee7e5a3/nvidia-378.09-kernel-4.10-rc4.patch'[/code] edit: [b]bringing hotplug workaround back[/b], it's still broken - I just haven't noticed since I disabled it in my kernel builds as I don't use it.
Answer Accepted by Original Poster
Edit: ubuntu people released a patch that fixes HOTPLUG, use that one instead of mine. See #4.



>Based on by previous patch for 375.XX series, CPU_HOTPLUG workaround removed

>https://gist.github.com/tpruzina/c8b06270dc08adb6054df449bebfe7e3

wget 'https://gist.githubusercontent.com/tpruzina/c8b06270dc08adb6054df449bebfe7e3/raw/f83bee07db9fa1f7faedb376a8ff427d2ee7e5a3/nvidia-378.09-kernel-4.10-rc4.patch'


edit: bringing hotplug workaround back, it's still broken - I just haven't noticed since I disabled it in my kernel builds as I don't use it.

#1
Posted 01/19/2017 12:09 PM   
this works with 378.09 and 4.10.0-rc2. thanks.
this works with 378.09 and 4.10.0-rc2. thanks.

#2
Posted 02/11/2017 10:59 PM   
Hello, for apply: [b]Infos Patch:[/b] [code]Patch for driver: nvidia-378.09 GIT: https://gist.github.com/tpruzina[/code] [b]Folder: (Very important)[/b] [code]~/Downloads/NVIDIA-Linux-x86_64-378.09/ <= Folder when your Extract (by command) ~/Downloads/NVIDIA-Linux-x86_64-378.09.run ~/Downloads/nvidia-378.09-kernel-4.10-rc4.patch[/code] [b]Downloads + Permission: (French)[/b] [code]cd ~/Downloads wget https://gist.githubusercontent.com/tpruzina/c8b06270dc08adb6054df449bebfe7e3/raw/f83bee07db9fa1f7faedb376a8ff427d2ee7e5a3/nvidia-378.09-kernel-4.10-rc4.patch wget http://fr.download.nvidia.com/XFree86/Linux-x86_64/378.09/NVIDIA-Linux-x86_64-378.09.run sudo chmod +x NVIDIA-Linux-x86_64-378.09.run[/code] [b]Extracted Run: (*.run -x)[/b] [code]./NVIDIA-*.run -x[/code] [b]Apply patch[/b] [code]patch -p0 < ./nvidia-*.patch[/code] [b]My Logs:[/b] [code] patching file NVIDIA-Linux-x86_64-378.09/kernel/common/inc/nv-linux.h patching file NVIDIA-Linux-x86_64-378.09/kernel/nvidia/nv-p2p.c patching file NVIDIA-Linux-x86_64-378.09/kernel/nvidia-drm/nvidia-drm-fence.c patching file NVIDIA-Linux-x86_64-378.09/kernel/nvidia-drm/nvidia-drm-gem.c patching file NVIDIA-Linux-x86_64-378.09/kernel/nvidia-drm/nvidia-drm-gem.h patching file NVIDIA-Linux-x86_64-378.09/kernel/nvidia-drm/nvidia-drm-modeset.c patching file NVIDIA-Linux-x86_64-378.09/kernel/nvidia-drm/nvidia-drm-priv.h patching file NVIDIA-Linux-x86_64-378.09/kernel/nvidia-uvm/uvm8_test.c [/code] [b]Installed:[/b] Press CTRl+ALT+F3 (or F4) [code] sudo service lightdm/gdm stop sudo ./nvidia-installer sudo servcice lightdm/gdm start reboot [/code] [b]Bug:[/b] [code]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[/code] [b] Fix 1:[/b] [code]sudo nano /etc/modprobe.d/blacklist.conf #Add Line blacklist nvidiafb blacklist nouveau blacklist nvidia_rm blacklist nvidia #Terminale: sudo update-initramfs -u [/code] [code]sudo nvidia-xconfig sudo service lightdm restart[/code] [b]Checking:[/b] [code]System: Host: Drthrax-Fixe Kernel: 4.10.0-041000rc8-generic x86_64 (64 bit) Desktop: MATE 1.12.1 Distro: Ubuntu 16.04 xenial Machine: Mobo: ASUSTeK model: M5A99X EVO v: Rev 1.xx Bios: American Megatrends v: 1708 date: 04/10/2013 CPU: Octa core AMD FX-8120 Eight-Core (-MCP-) cache: 16384 KB clock speeds: max: 3100 MHz 1: 1400 MHz 2: 1400 MHz 3: 1400 MHz 4: 1400 MHz 5: 1400 MHz 6: 1400 MHz 7: 1900 MHz 8: 1400 MHz Graphics: Card: NVIDIA Device 1c03 Display Server: X.Org 1.18.4 driver: nvidia Resolution: 1920x1080@60.00hz GLX Renderer: GeForce GTX 1060 6GB/PCIe/SSE2 GLX Version: 4.5.0 NVIDIA 378.13 Audio: Card-1 NVIDIA Device 10f1 driver: snd_hda_intel Sound: ALSA v: k4.10.0-041000rc8-generic Card-2 Advanced Micro Devices [AMD/ATI] SBx00 Azalia (Intel HDA) driver: snd_hda_intel Network: Card: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller driver: r8169 IF: enp2s0 state: up speed: 100 Mbps duplex: full mac: c8:60:00:87:ad:a0 Drives: HDD Total Size: 4240.9GB (64.2% used) ID-1: /dev/sda model: WDC_WD1003FZEX size: 1000.2GB ID-2: /dev/sdb model: KINGSTON_SHFS37A size: 240.1GB ID-3: /dev/sdc model: WDC_WD20EARS size: 2000.4GB ID-4: /dev/sdd model: WDC_WD10EAVS size: 1000.2GB Partition: ID-1: / size: 184G used: 9.9G (6%) fs: ext4 dev: /dev/sdd3 ID-2: /home size: 730G used: 11G (2%) fs: ext4 dev: /dev/sdd4 ID-3: swap-1 size: 4.10GB used: 0.00GB (0%) fs: swap dev: /dev/sdd2 RAID: No RAID devices: /proc/mdstat, md_mod kernel module present Sensors: System Temperatures: cpu: 17.6C mobo: N/A gpu: 38C Fan Speeds (in rpm): cpu: 0 Info: Processes: 239 Uptime: 7 min Memory: 739.1/16007.4MB Client: Shell (bash) inxi: 2.2.35 [/code]
Hello,

for apply:


Infos Patch:
Patch for driver: nvidia-378.09
GIT: https://gist.github.com/tpruzina


Folder: (Very important)
~/Downloads/NVIDIA-Linux-x86_64-378.09/ <= Folder when your Extract (by command)
~/Downloads/NVIDIA-Linux-x86_64-378.09.run
~/Downloads/nvidia-378.09-kernel-4.10-rc4.patch


Downloads + Permission: (French)
cd ~/Downloads
wget https://gist.githubusercontent.com/tpruzina/c8b06270dc08adb6054df449bebfe7e3/raw/f83bee07db9fa1f7faedb376a8ff427d2ee7e5a3/nvidia-378.09-kernel-4.10-rc4.patch
wget http://fr.download.nvidia.com/XFree86/Linux-x86_64/378.09/NVIDIA-Linux-x86_64-378.09.run
sudo chmod +x NVIDIA-Linux-x86_64-378.09.run


Extracted Run: (*.run -x)
./NVIDIA-*.run -x


Apply patch
patch -p0 < ./nvidia-*.patch


My Logs:
patching file NVIDIA-Linux-x86_64-378.09/kernel/common/inc/nv-linux.h
patching file NVIDIA-Linux-x86_64-378.09/kernel/nvidia/nv-p2p.c
patching file NVIDIA-Linux-x86_64-378.09/kernel/nvidia-drm/nvidia-drm-fence.c
patching file NVIDIA-Linux-x86_64-378.09/kernel/nvidia-drm/nvidia-drm-gem.c
patching file NVIDIA-Linux-x86_64-378.09/kernel/nvidia-drm/nvidia-drm-gem.h
patching file NVIDIA-Linux-x86_64-378.09/kernel/nvidia-drm/nvidia-drm-modeset.c
patching file NVIDIA-Linux-x86_64-378.09/kernel/nvidia-drm/nvidia-drm-priv.h
patching file NVIDIA-Linux-x86_64-378.09/kernel/nvidia-uvm/uvm8_test.c


Installed:

Press CTRl+ALT+F3 (or F4)

sudo service lightdm/gdm stop
sudo ./nvidia-installer
sudo servcice lightdm/gdm start
reboot



Bug:
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


Fix 1:

sudo nano /etc/modprobe.d/blacklist.conf

#Add Line
blacklist nvidiafb
blacklist nouveau
blacklist nvidia_rm
blacklist nvidia

#Terminale: sudo update-initramfs -u




sudo nvidia-xconfig
sudo service lightdm restart



Checking:
System:    Host: Drthrax-Fixe Kernel: 4.10.0-041000rc8-generic x86_64 (64 bit) Desktop: MATE 1.12.1
Distro: Ubuntu 16.04 xenial
Machine: Mobo: ASUSTeK model: M5A99X EVO v: Rev 1.xx Bios: American Megatrends v: 1708 date: 04/10/2013
CPU: Octa core AMD FX-8120 Eight-Core (-MCP-) cache: 16384 KB
clock speeds: max: 3100 MHz 1: 1400 MHz 2: 1400 MHz 3: 1400 MHz 4: 1400 MHz 5: 1400 MHz 6: 1400 MHz
7: 1900 MHz 8: 1400 MHz
Graphics: Card: NVIDIA Device 1c03
Display Server: X.Org 1.18.4 driver: nvidia Resolution: 1920x1080@60.00hz
GLX Renderer: GeForce GTX 1060 6GB/PCIe/SSE2 GLX Version: 4.5.0 NVIDIA 378.13
Audio: Card-1 NVIDIA Device 10f1 driver: snd_hda_intel Sound: ALSA v: k4.10.0-041000rc8-generic
Card-2 Advanced Micro Devices [AMD/ATI] SBx00 Azalia (Intel HDA) driver: snd_hda_intel
Network: Card: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller driver: r8169
IF: enp2s0 state: up speed: 100 Mbps duplex: full mac: c8:60:00:87:ad:a0
Drives: HDD Total Size: 4240.9GB (64.2% used) ID-1: /dev/sda model: WDC_WD1003FZEX size: 1000.2GB
ID-2: /dev/sdb model: KINGSTON_SHFS37A size: 240.1GB ID-3: /dev/sdc model: WDC_WD20EARS size: 2000.4GB
ID-4: /dev/sdd model: WDC_WD10EAVS size: 1000.2GB
Partition: ID-1: / size: 184G used: 9.9G (6%) fs: ext4 dev: /dev/sdd3
ID-2: /home size: 730G used: 11G (2%) fs: ext4 dev: /dev/sdd4
ID-3: swap-1 size: 4.10GB used: 0.00GB (0%) fs: swap dev: /dev/sdd2
RAID: No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors: System Temperatures: cpu: 17.6C mobo: N/A gpu: 38C
Fan Speeds (in rpm): cpu: 0
Info: Processes: 239 Uptime: 7 min Memory: 739.1/16007.4MB Client: Shell (bash) inxi: 2.2.35

#3
Posted 02/22/2017 01:36 AM   
The patch on post #1 isn't that good,the ubuntu patch is better https://pkgs.rpmfusion.org/cgit/nonfree/nvidia-kmod.git/plain/kernel_4.10.patch
The patch on post #1 isn't that good,the ubuntu patch is better


https://pkgs.rpmfusion.org/cgit/nonfree/nvidia-kmod.git/plain/kernel_4.10.patch

#4
Posted 02/22/2017 08:03 AM   
Can you make tutorial for apply please !
Can you make tutorial for apply please !

#5
Posted 02/22/2017 11:55 AM   
[quote=""]Can you make tutorial for apply please ! [/quote] [code]patch -p1 < FILE[/code] where FILE is the file containing patch content. for 378.13 currently use https://gist.githubusercontent.com/tpruzina/3e36f7da0673c1bf4b421f53b8d99b02/raw/0c0aaf8bd7e5c8e59d897ec1340d3742174a6f0c/gistfile1.txt
said:Can you make tutorial for apply please !

patch -p1 < FILE

where FILE is the file containing patch content. for 378.13 currently use https://gist.githubusercontent.com/tpruzina/3e36f7da0673c1bf4b421f53b8d99b02/raw/0c0aaf8bd7e5c8e59d897ec1340d3742174a6f0c/gistfile1.txt

#6
Posted 02/22/2017 11:59 AM   
Scroll To Top

Add Reply