From 0da17b899979f1d09d310e9f43ba0c5a3979ae13 Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Apr 12 2017 19:11:29 +0000 Subject: Add upstream patches needed for ARMv7/aarch64 fixes --- diff --git a/0176-modules-kernel-add-phy-and-power-modules-to-generic-.patch b/0176-modules-kernel-add-phy-and-power-modules-to-generic-.patch new file mode 100644 index 0000000..dee7583 --- /dev/null +++ b/0176-modules-kernel-add-phy-and-power-modules-to-generic-.patch @@ -0,0 +1,30 @@ +From e752d42de9c37dd9906a802a5cdf528fbd360453 Mon Sep 17 00:00:00 2001 +From: Peter Robinson +Date: Mon, 4 Jul 2016 16:57:39 +0100 +Subject: [PATCH 126/159] modules: kernel: add phy and power modules to generic + initrd + +The phy and power modules are needed by some of the recent ARM +devices that have appeared like CHIP and some exynos devices. + +Signed-off-by: Peter Robinson +--- + modules.d/90kernel-modules/module-setup.sh | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/modules.d/90kernel-modules/module-setup.sh b/modules.d/90kernel-modules/module-setup.sh +index 868341cb..ae65de8a 100755 +--- a/modules.d/90kernel-modules/module-setup.sh ++++ b/modules.d/90kernel-modules/module-setup.sh +@@ -28,6 +28,8 @@ installkernel() { + instmods \ + "=drivers/clk" \ + "=drivers/i2c/busses" \ ++ "=drivers/phy" \ ++ "=drivers/power" \ + "=drivers/regulator" \ + "=drivers/rtc" \ + "=drivers/usb/host" \ +-- +2.12.2 + diff --git a/0177-modules-kernel-add-more-usb-controller-modules.patch b/0177-modules-kernel-add-more-usb-controller-modules.patch new file mode 100644 index 0000000..c181260 --- /dev/null +++ b/0177-modules-kernel-add-more-usb-controller-modules.patch @@ -0,0 +1,32 @@ +From 0c5e5f271be8cb99e4f65fd6cb37ed70dd63754d Mon Sep 17 00:00:00 2001 +From: Peter Robinson +Date: Fri, 3 Feb 2017 10:29:12 +0000 +Subject: [PATCH 127/159] modules: kernel: add more usb controller modules + +There's a number of usb controllers that are common yet aren't +contained in the host directory. Include these for generic host. + +Signed-off-by: Peter Robinson +--- + modules.d/90kernel-modules/module-setup.sh | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/modules.d/90kernel-modules/module-setup.sh b/modules.d/90kernel-modules/module-setup.sh +index ae65de8a..deb3709c 100755 +--- a/modules.d/90kernel-modules/module-setup.sh ++++ b/modules.d/90kernel-modules/module-setup.sh +@@ -32,7 +32,11 @@ installkernel() { + "=drivers/power" \ + "=drivers/regulator" \ + "=drivers/rtc" \ ++ "=drivers/usb/chipidea" \ ++ "=drivers/usb/dwc2" \ ++ "=drivers/usb/dwc3" \ + "=drivers/usb/host" \ ++ "=drivers/usb/musb" \ + "=drivers/usb/phy" \ + ${NULL} + fi +-- +2.12.2 + diff --git a/0178-Add-aarch64-to-drm-modules-along-side-ARM.patch b/0178-Add-aarch64-to-drm-modules-along-side-ARM.patch new file mode 100644 index 0000000..c00c27e --- /dev/null +++ b/0178-Add-aarch64-to-drm-modules-along-side-ARM.patch @@ -0,0 +1,38 @@ +From eec49634d4fd5b2d9535a99e184c2450f6026903 Mon Sep 17 00:00:00 2001 +From: Peter Robinson +Date: Thu, 23 Mar 2017 14:51:48 +0000 +Subject: [PATCH 137/159] Add aarch64 to drm modules along side ARM + +Add aarch64 to modules, also update the drivers checked for latest +kernel changes. + +Signed-off-by: Peter Robinson +--- + modules.d/50drm/module-setup.sh | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/modules.d/50drm/module-setup.sh b/modules.d/50drm/module-setup.sh +index 6106d8c6..42a5e7bc 100755 +--- a/modules.d/50drm/module-setup.sh ++++ b/modules.d/50drm/module-setup.sh +@@ -15,14 +15,14 @@ installkernel() { + local _modname + # Include KMS capable drm drivers + +- if [[ "$(uname -p)" == arm* ]]; then +- # arm specific modules needed by drm ++ if [[ "$(uname -m)" == arm* || "$(uname -m)" == aarch64 ]]; then ++ # arm/aarch64 specific modules needed by drm + instmods \ + "=drivers/gpu/drm/i2c" \ + "=drivers/gpu/drm/panel" \ ++ "=drivers/gpu/drm/bridge" \ + "=drivers/pwm" \ + "=drivers/video/backlight" \ +- "=drivers/video/fbdev/omap2/displays-new" \ + ${NULL} + fi + +-- +2.12.2 + diff --git a/0179-Add-check-for-aarch64-to-the-arm-kernel-module-list.patch b/0179-Add-check-for-aarch64-to-the-arm-kernel-module-list.patch new file mode 100644 index 0000000..9db4d62 --- /dev/null +++ b/0179-Add-check-for-aarch64-to-the-arm-kernel-module-list.patch @@ -0,0 +1,36 @@ +From 917e1b6b5b2669a30bce69061686adbb6abc5e35 Mon Sep 17 00:00:00 2001 +From: Peter Robinson +Date: Thu, 23 Mar 2017 14:59:15 +0000 +Subject: [PATCH 138/159] Add check for aarch64 to the arm kernel module list + +This adds the same list of drivers we use for arm platforms for +aarch64 too, also add the DMA drivers there too as they can add +sigficant performance for some storage/usb and often need to be +present when the storage drivers load. + +Signed-off-by: Peter Robinson +--- + modules.d/90kernel-modules/module-setup.sh | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/modules.d/90kernel-modules/module-setup.sh b/modules.d/90kernel-modules/module-setup.sh +index deb3709c..b1bced69 100755 +--- a/modules.d/90kernel-modules/module-setup.sh ++++ b/modules.d/90kernel-modules/module-setup.sh +@@ -23,10 +23,11 @@ installkernel() { + virtio virtio_blk virtio_ring virtio_pci virtio_scsi \ + "=drivers/pcmcia" =ide nvme + +- if [[ "$(uname -p)" == arm* ]]; then +- # arm specific modules ++ if [[ "$(uname -m)" == arm* || "$(uname -m)" == aarch64 ]]; then ++ # arm/aarch64 specific modules + instmods \ + "=drivers/clk" \ ++ "=drivers/dma" \ + "=drivers/i2c/busses" \ + "=drivers/phy" \ + "=drivers/power" \ +-- +2.12.2 + diff --git a/dracut.spec b/dracut.spec index e67ce88..85b0435 100644 --- a/dracut.spec +++ b/dracut.spec @@ -16,7 +16,7 @@ Name: dracut Version: 044 -Release: 177%{?dist} +Release: 178%{?dist} Summary: Initramfs generator using udev %if 0%{?fedora} || 0%{?rhel} @@ -210,6 +210,10 @@ Patch172: 0172-TEST-99-RPM-retry-dnf-5-times-in-case-http-fails.patch Patch173: 0173-test-Makefile-proper-return-code-for-make-check.patch Patch174: 0174-.dir-locals.el-changed-to-sane-style.patch Patch175: 0175-dracut.sh-add-default-path-for-uefi.patch +Patch176: 0176-modules-kernel-add-phy-and-power-modules-to-generic-.patch +Patch177: 0177-modules-kernel-add-more-usb-controller-modules.patch +Patch178: 0178-Add-aarch64-to-drm-modules-along-side-ARM.patch +Patch179: 0179-Add-check-for-aarch64-to-the-arm-kernel-module-list.patch Source1: https://www.gnu.org/licenses/lgpl-2.1.txt @@ -674,6 +678,9 @@ rm -rf -- $RPM_BUILD_ROOT %endif %changelog +* Wed Apr 12 2017 Peter Robinson 044-178 +- Add upstream patches needed for ARMv7/aarch64 fixes + * Fri Feb 10 2017 Fedora Release Engineering - 044-177 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild