From ddb7010a0e1202efe0781a72c3109b9ee30eb88f Mon Sep 17 00:00:00 2001 From: Pinghao Wu Date: Sat, 7 Dec 2024 10:03:58 +0800 Subject: [PATCH] tg3: reverse 57766 dma patch dma_set_coherent_mask fails on my build, but not on alpine linux-lts, no idea why --- APKBUILD | 4 +++- tg3-57766-dma.patch | 13 +++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 tg3-57766-dma.patch diff --git a/APKBUILD b/APKBUILD index c55f1cf..e2dde91 100644 --- a/APKBUILD +++ b/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: xdavidwu pkgname=linux-xdavidwu-xps pkgver=6.12.3 -pkgrel=0 +pkgrel=1 pkgdesc="Linux kernel customized for xps" url="https://www.kernel.org/" arch="all" @@ -14,6 +14,7 @@ install="" subpackages="" source="https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-${pkgver}.tar.xz config + tg3-57766-dma.patch fast_skylake.patch openwrt-402-ath_regd_optional.patch 0101-i8042-decrease-debug-message-level-to-info.patch @@ -53,6 +54,7 @@ package() { sha512sums=" a87aadeec3d65d7e9aaa63affdd74e31bc94e84fb153e633a2e6bb2be62e0c6d5b195dc7a1db8666216308b640db577a75e05bb7aeb91db646f3fdfdec51f1aa linux-6.12.3.tar.xz 07978212ce5aa9dc97d312d6aa21b092e858751d188ca1a322cb9e2205dca0cc7c889555b44390b0acc7aca59cae0fc9f43d1c5da1534e0c1ad90544a147f282 config +b3691656d7191c80bdc10b2f520cad3503e3dd4ff3d03801fe65a77881d38ab45bb4d829c2109fe97423e8bb963edf16cea0d8b914f04e9d78e8c49f5c821a6a tg3-57766-dma.patch 0691f5970ccdb2e297541f2436821738d3b215d5dfc3f388f903694e4f912139f41df69ccc3bf8a867241c7c8f8080870729c5d51cc30831f3eca1b6f5266dba fast_skylake.patch c0c5d023cac625dfe3086b37b5abb4be8981db301a468e93d495c08b7650debbf47b7a24c39293731951315658164e36783e5a46fb26fc51ed6fc72e3716307c openwrt-402-ath_regd_optional.patch b2de23b9f86fc670537f432cd0b141e28d6da1b879a3a6457b8597699ed8e55df5f44df014df3d6cef4efbc7f14685bf4720033ba94276e18c2aef825107ccc3 0101-i8042-decrease-debug-message-level-to-info.patch diff --git a/tg3-57766-dma.patch b/tg3-57766-dma.patch new file mode 100644 index 0000000..0070fca --- /dev/null +++ b/tg3-57766-dma.patch @@ -0,0 +1,13 @@ +--- b/drivers/net/ethernet/broadcom/tg3.c ++++ a/drivers/net/ethernet/broadcom/tg3.c +@@ -17839,9 +17839,6 @@ + } else + persist_dma_mask = dma_mask = DMA_BIT_MASK(64); + +- if (tg3_asic_rev(tp) == ASIC_REV_57766) +- persist_dma_mask = DMA_BIT_MASK(31); +- + /* Configure DMA attributes. */ + if (dma_mask > DMA_BIT_MASK(32)) { + err = dma_set_mask(&pdev->dev, dma_mask); + -- 2.45.2