Skip to content

Instantly share code, notes, and snippets.

@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 / 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.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.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 / 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 / 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 / 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 / broadcom-wl-fix-linux-5.10.patch
Last active September 17, 2023 17:06
Tentative patch for broadcom-wl 6.30.223.271 driver for Linux 5.10-rc1
From f3d652840f8dd959395065a1cf67ca40b04ec69b Mon Sep 17 00:00:00 2001
From: Joan Bruguera <joanbrugueram@gmail.com>
Date: Tue, 13 Oct 2020 19:35:55 +0200
Subject: [PATCH] Get rid of get_fs/set_fs calls in Broadcom WL driver.
Tentative patch for broadcom-wl 6.30.223.271 driver for Linux 5.10 (tested -rc1 up to 5.10.1)
Applies on top of all the patches applied to broadcom-wl-dkms 6.30.223.271-23 on Arch Linux.
NB: Some checks in wlc_ioctl_internal are likely superfluous,
@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-fix-linux-5.14.patch
Created July 12, 2021 19:03
Tentative fix for NVIDIA 465.31 driver for Linux 5.14-rc1
From f18c541edc5e122b06b0c1e65d0a422f0b8109e7 Mon Sep 17 00:00:00 2001
From: Joan Bruguera <joanbrugueram@gmail.com>
Date: Fri, 2 Jul 2021 02:09:58 +0200
Subject: [PATCH] Tentative fix for NVIDIA 465.31 driver for Linux 5.14-rc1
---
common/inc/nv-time.h | 6 ++++++
nvidia-drm/nvidia-drm-drv.c | 4 ++++
2 files changed, 10 insertions(+)