Skip to content

Instantly share code, notes, and snippets.

@joanbm
joanbm / nvidia-470xx-fix-linux-6.8.patch
Last active March 12, 2024 20:56
Tentative fix for NVIDIA 470.223.02 driver for Linux 6.8-rc3
From a23d8d2c592028bc49570a6d3dcf75ee4aa0dde0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joan=20Bruguera=20Mic=C3=B3?= <joanbrugueram@gmail.com>
Date: Fri, 2 Feb 2024 19:19:04 +0000
Subject: [PATCH] Tentative fix for NVIDIA 470.223.02 driver for Linux 6.8-rc3
---
nvidia-drm/nvidia-drm-drv.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/nvidia-drm/nvidia-drm-drv.c b/nvidia-drm/nvidia-drm-drv.c
@joanbm
joanbm / nvidia-470xx-fix-linux-6.6.patch
Last active January 10, 2024 16:57
Tentative fix for NVIDIA 470.199.02 driver for Linux 6.6-rc1
From a1879549b0bf049de790c0775c25971c82da8638 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joan=20Bruguera=20Mic=C3=B3?= <joanbrugueram@gmail.com>
Date: Sat, 15 Jul 2023 22:26:18 +0000
Subject: [PATCH] Tentative fix for NVIDIA 470.199.02 driver for Linux 6.6-rc1
You will also need to apply this patch for Linux 6.5 support:
https://gist.github.com/joanbm/dfe8dc59af1c83e2530a1376b77be8ba
---
nvidia-drm/nvidia-drm-drv.c | 4 ++++
@joanbm
joanbm / broadcom-wl-fix-linux-6.5.patch
Created August 5, 2023 21:59
Tentative patch for broadcom-wl 6.30.223.271 driver for Linux 6.5-rc1
From 706489688523d4af9ce4422137e4bfdb2f70aab9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joan=20Bruguera=20Mic=C3=B3?= <joanbrugueram@gmail.com>
Date: Sat, 5 Aug 2023 20:54:12 +0000
Subject: [PATCH] Tentative patch for broadcom-wl 6.30.223.271 driver for Linux 6.5-rc1
Applies on top of all the patches applied to broadcom-wl-dkms 6.30.223.271-36 on Arch Linux
On Linux 6.5, due to commit 2d47c6956ab3 ("ubsan: Tighten UBSAN_BOUNDS
on GCC"), flexible trailing arrays declared like `whatever_t foo[1];`
will generate warnings when CONFIG_UBSAN & co. is enabled, such as:
@joanbm
joanbm / nvidia-470xx-fix-linux-6.5.patch
Created July 9, 2023 21:09
Tentative fix for NVIDIA 470.182.03 driver for Linux 6.5-rc1
From 0ca9614e5b074d3dd01e95f47b3555f48e74f622 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joan=20Bruguera=20Mic=C3=B3?= <joanbrugueram@gmail.com>
Date: Wed, 17 May 2023 21:54:08 +0000
Subject: [PATCH] Tentative fix for NVIDIA 470.182.03 driver for Linux 6.5-rc1
---
common/inc/nv-mm.h | 45 +++++++++++++++++++++++++++++++++++++++++++--
1 file changed, 43 insertions(+), 2 deletions(-)
diff --git a/common/inc/nv-mm.h b/common/inc/nv-mm.h
@joanbm
joanbm / nvidia-470xx-fix-linux-6.4.patch
Created May 7, 2023 21:14
Tentative fix for NVIDIA 470.182.03 driver for Linux 6.4-rc1
From 4981428cda825b415eea60313f71bf386cc9f7e1 Mon Sep 17 00:00:00 2001
From: Joan Bruguera <joanbrugueram@gmail.com>
Date: Sat, 25 Feb 2023 10:57:26 +0000
Subject: [PATCH] Tentative fix for NVIDIA 470.182.03 driver for Linux 6.4-rc1
---
nvidia-drm/nvidia-drm-drv.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/nvidia-drm/nvidia-drm-drv.c b/nvidia-drm/nvidia-drm-drv.c
@joanbm
joanbm / linux-6.3-fix-broadcom-wl.patch
Last active August 5, 2023 21:03
linux 6.3-rc1: Fix broadcom-wl connection to encrypted WiFi
From bda0e35daa904eb3df1ac5896b0403c7522d5aef Mon Sep 17 00:00:00 2001
From: Joan Bruguera <joanbrugueram@gmail.com>
Date: Thu, 23 Feb 2023 00:47:28 +0000
Subject: [PATCH] linux 6.3-rc1: Fix broadcom-wl connection to encrypted WiFi
Partial revert of commit 015b8cc5e7c4d7bb671f1984d7b7338c310b185b
"wifi: cfg80211: Fix use after free for wext"
This kernel patch fixes / works around broadcom-wl not being able to connect to
encrypted (e.g. WPA2) networks. I believe this is a regression not specific to
@joanbm
joanbm / nvidia-470xx-fix-linux-6.3.patch
Created March 5, 2023 23:14
Tentative fix for NVIDIA 470.161.03 driver for Linux 6.3-rc1
From a77f2da778f4a62695a6c7d26bba674d59ad9170 Mon Sep 17 00:00:00 2001
From: Joan Bruguera <joanbrugueram@gmail.com>
Date: Sat, 25 Feb 2023 10:57:09 +0000
Subject: [PATCH] Tentative fix for NVIDIA 470.161.03 driver for Linux 6.3-rc1
---
common/inc/nv-linux.h | 13 +++++++++++++
nvidia-drm/nvidia-drm-gem-user-memory.c | 7 ++++---
nvidia-uvm/uvm.c | 2 +-
nvidia/nv-mmap.c | 12 ++++++------
@joanbm
joanbm / nvidia-470xx-fix-linux-6.2.patch
Created December 25, 2022 23:03
Tentative fix for NVIDIA 470.161.03 driver for Linux 6.2-rc1
From 5db7eb5a62003bbe04f3f07d089fcf5445b34a29 Mon Sep 17 00:00:00 2001
From: Joan Bruguera <joanbrugueram@gmail.com>
Date: Sun, 25 Dec 2022 22:05:14 +0000
Subject: [PATCH] Tentative fix for NVIDIA 470.161.03 driver for Linux 6.2-rc1
---
nvidia-drm/nvidia-drm-connector.c | 22 ++++++++++++++++++++++
nvidia-drm/nvidia-drm-drv.c | 4 ++++
nvidia/nv-acpi.c | 19 ++++++++++++++++---
3 files changed, 42 insertions(+), 3 deletions(-)
@joanbm
joanbm / broadcom-wl-fix-linux-6.1.patch
Created October 18, 2022 06:45
Tentative patch for broadcom-wl 6.30.223.271 driver for Linux 6.1-rc1
From a63a5f70e5cf05f6bce4cda2e0dd67462e1d76a5 Mon Sep 17 00:00:00 2001
From: Joan Bruguera <joanbrugueram@gmail.com>
Date: Mon, 29 Aug 2022 00:06:53 +0200
Subject: [PATCH] Tentative patch for broadcom-wl 6.30.223.271 driver for Linux 6.1-rc1
Applies on top of all the patches applied to broadcom-wl-dkms 6.30.223.271-35 on Arch Linux
---
src/wl/sys/wl_cfg80211_hybrid.c | 21 +++++++++++++--------
1 file changed, 13 insertions(+), 8 deletions(-)
@joanbm
joanbm / nvidia-470xx-fix-linux-6.1.patch
Last active July 24, 2023 11:46
Tentative fix for NVIDIA 470.141.03 driver for Linux 6.1-rc1
From 5cadf6866eaf76a87aa4fe39bb7821655d5280f2 Mon Sep 17 00:00:00 2001
From: Joan Bruguera <joanbrugueram@gmail.com>
Date: Mon, 29 Aug 2022 15:01:53 +0200
Subject: [PATCH] Tentative fix for NVIDIA 470.141.03 driver for Linux 6.1-rc1
---
nvidia/os-interface.c | 35 ++++++++++++++++++++++++++++++++++-
1 file changed, 34 insertions(+), 1 deletion(-)
diff --git a/nvidia/os-interface.c b/nvidia/os-interface.c