[packages/kernel] fix for pcie regression on mvebu

atler atler at pld-linux.org
Fri Feb 4 17:05:03 CET 2022


commit 9848ab7c15bdda2ca722bfc9e2116c404c98dabf
Author: Jan Palus <atler at pld-linux.org>
Date:   Fri Feb 4 17:01:57 2022 +0100

    fix for pcie regression on mvebu
    
    see https://lore.kernel.org/linux-pci/20220203154728.GA96160@bhelgaas/T/#m1e9498ed2ebeaabf39c1b714c88f23812a88c279

 kernel.spec      |  2 ++
 mvebu-pcie.patch | 12 ++++++++++++
 2 files changed, 14 insertions(+)
---
diff --git a/kernel.spec b/kernel.spec
index 2e0f80bf..d3f3a73f 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -215,6 +215,7 @@ Patch7000:	kernel-inittmpfs.patch
 Patch8000:	rpi-sound.patch
 Patch8001:	kernel-pinebook-pro.patch
 Patch8002:	atheros-disallow-retrain-nongen1-pcie.patch
+Patch8003:	mvebu-pcie.patch
 
 # Do not remove this line, please. It is easier for me to uncomment two lines, then patch
 # kernel.spec every time.
@@ -666,6 +667,7 @@ cd linux-%{basever}
 %patch8000 -p1
 %patch8001 -p1
 %patch8002 -p1
+%patch8003 -p1
 %endif
 
 %if %{with rt}
diff --git a/mvebu-pcie.patch b/mvebu-pcie.patch
new file mode 100644
index 00000000..9b9e0d68
--- /dev/null
+++ b/mvebu-pcie.patch
@@ -0,0 +1,12 @@
+--- linux-5.16/drivers/pci/controller/pci-mvebu.c.orig	2022-02-04 16:52:46.089869659 +0100
++++ linux-5.16/drivers/pci/controller/pci-mvebu.c	2022-02-04 17:00:31.993825135 +0100
+@@ -1288,7 +1288,8 @@
+ 		 * indirectly via kernel emulated PCI bridge driver.
+ 		 */
+ 		mvebu_pcie_setup_hw(port);
+-		mvebu_pcie_set_local_dev_nr(port, 0);
++		mvebu_pcie_set_local_dev_nr(port, 1);
++		mvebu_pcie_set_local_bus_nr(port, 0);
+ 	}
+ 
+ 	pcie->nports = i;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/kernel.git/commitdiff/9848ab7c15bdda2ca722bfc9e2116c404c98dabf



More information about the pld-cvs-commit mailing list