Skip to content

Instantly share code, notes, and snippets.

@joanbm
joanbm / broadcom-wl-fix-linux-6.13.patch
Created December 2, 2024 22:39
Tentative patch for broadcom-wl 6.30.223.271 driver for Linux 6.13-rc1
From 5788a19e88aac78e6b2ec8bef7cb094fc14cfbf0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joan=20Bruguera=20Mic=C3=B3?= <joanbrugueram@gmail.com>
Date: Sat, 12 Oct 2024 11:54:40 +0000
Subject: [PATCH] Tentative patch for broadcom-wl 6.30.223.271 driver for Linux
6.13-rc1
The net/lib80211.h header has been removed by commit
"wifi: ipw2x00/lib80211: move remaining lib80211 into libipw"
(Johannes Berg, 7 Oct 2024).
The header does not appear to be actually used anywhere, so remove it.
@joanbm
joanbm / nvidia-470xx-fix-linux-6.13.patch
Last active January 26, 2026 00:52
Tentative fix for NVIDIA 470.256.02 driver for Linux 6.13-rc1
From 9f91b171f680648647580c163bbc9cc1641e3920 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joan=20Bruguera=20Mic=C3=B3?= <joanbrugueram@gmail.com>
Date: Sat, 16 Nov 2024 22:45:21 +0000
Subject: [PATCH] Tentative fix for NVIDIA 470.256.02 driver for Linux 6.13-rc1
---
nvidia-modeset/nvidia-modeset.Kbuild | 8 +++++---
nvidia/nvidia.Kbuild | 8 +++++---
2 files changed, 10 insertions(+), 6 deletions(-)
@joanbm
joanbm / broadcom-wl-fix-linux-6.12.patch
Created October 6, 2024 12:16
Tentative patch for broadcom-wl 6.30.223.271 driver for Linux 6.12-rc2
From 5575c6342f62f56b361480c97367b09c011bcc65 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joan=20Bruguera=20Mic=C3=B3?= <joanbrugueram@gmail.com>
Date: Thu, 3 Oct 2024 22:21:36 +0000
Subject: [PATCH] Tentative patch for broadcom-wl 6.30.223.271 driver for Linux
6.12-rc2
Just a trivial fix for 5f60d5f6bbc1 ("move asm/unaligned.h to
linux/unaligned.h").
---
src/wl/sys/wl_linux.c | 4 ++++
@joanbm
joanbm / nvidia-470xx-fix-linux-6.12.patch
Last active March 22, 2026 16:01
Tentative fix for NVIDIA 470.256.02 driver for Linux 6.12-rc1
From 839b964bd5be20275a4d1add020e68e407380adb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joan=20Bruguera=20Mic=C3=B3?= <joanbrugueram@gmail.com>
Date: Sat, 17 Aug 2024 14:26:04 +0000
Subject: [PATCH] Tentative fix for NVIDIA 470.256.02 driver for Linux 6.12-rc1
Note that the fix requires enabling DRM kernel mode setting
(add the `nvidia-drm.modeset=1` parameter to the kernel command line).
(Thanks xtexChooser for the memory management fixes!)
---
@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