summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Robinson <pbrobinson@gmail.com>2018-04-21 15:34:26 +0100
committerJeremy Cline <jeremy@jcline.org>2018-04-24 18:14:57 -0400
commitfbb329452ab3a3931309858909101c98294e9c9f (patch)
treedd36846df29f62ccba485d96331403907b96add9
parentedca09d1c11074f4b857c1988b672b9927028e90 (diff)
downloadkernel-fbb329452ab3a3931309858909101c98294e9c9f.tar.gz
kernel-fbb329452ab3a3931309858909101c98294e9c9f.tar.xz
kernel-fbb329452ab3a3931309858909101c98294e9c9f.zip
Add quirk patch to fix X-Gene 1 console on HP m400/Mustang (RHBZ 1531140)
-rw-r--r--ACPI-scan-Fix-regression-related-to-X-Gene-UARTs.patch44
-rw-r--r--kernel.spec46
2 files changed, 70 insertions, 20 deletions
diff --git a/ACPI-scan-Fix-regression-related-to-X-Gene-UARTs.patch b/ACPI-scan-Fix-regression-related-to-X-Gene-UARTs.patch
new file mode 100644
index 000000000..56baf5ec6
--- /dev/null
+++ b/ACPI-scan-Fix-regression-related-to-X-Gene-UARTs.patch
@@ -0,0 +1,44 @@
+From patchwork Fri Apr 20 03:29:47 2018
+Content-Type: text/plain; charset="utf-8"
+MIME-Version: 1.0
+Content-Transfer-Encoding: 7bit
+Subject: ACPI / scan: Fix regression related to X-Gene UARTs
+From: Mark Salter <msalter@redhat.com>
+X-Patchwork-Id: 10351797
+Message-Id: <20180420032947.23023-1-msalter@redhat.com>
+To: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Danis?= <frederic.danis.oss@gmail.com>
+Cc: "Rafael J . Wysocki" <rjw@rjwysocki.net>,
+ linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org
+Date: Thu, 19 Apr 2018 23:29:47 -0400
+
+Commit e361d1f85855 ("ACPI / scan: Fix enumeration for special UART
+devices") caused a regression with some X-Gene based platforms (Mustang
+and M400) with invalid DSDT. The DSDT makes it appear that the UART
+device is also a slave device attached to itself. With the above commit
+the UART won't be enumerated by ACPI scan (slave serial devices shouldn't
+be). So check for X-Gene UART device and skip slace device check on it.
+
+Signed-off-by: Mark Salter <msalter@redhat.com>
+---
+ drivers/acpi/scan.c | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c
+index cc234e6a6297..1dcdd0122862 100644
+--- a/drivers/acpi/scan.c
++++ b/drivers/acpi/scan.c
+@@ -1551,6 +1551,14 @@ static bool acpi_device_enumeration_by_parent(struct acpi_device *device)
+ fwnode_property_present(&device->fwnode, "baud")))
+ return true;
+
++ /*
++ * Firmware on some arm64 X-Gene platforms will make the UART
++ * device appear as both a UART and a slave of that UART. Just
++ * bail out here for X-Gene UARTs.
++ */
++ if (!strcmp(acpi_device_hid(device), "APMC0D08"))
++ return false;
++
+ INIT_LIST_HEAD(&resource_list);
+ acpi_dev_get_resources(device, &resource_list,
+ acpi_check_serial_bus_slave,
diff --git a/kernel.spec b/kernel.spec
index 897a932dd..a70970041 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -579,56 +579,59 @@ Patch302: ARM-tegra-usb-no-reset.patch
# https://patchwork.kernel.org/patch/9820417/
Patch303: qcom-msm89xx-fixes.patch
+# https://patchwork.kernel.org/patch/10351797/
+Patch304: ACPI-scan-Fix-regression-related-to-X-Gene-UARTs.patch
+
# https://patchwork.kernel.org/patch/10173115/
-Patch304: arm-dts-imx6qdl-udoo-Disable-usbh1-to-avoid-kernel-hang.patch
+Patch305: arm-dts-imx6qdl-udoo-Disable-usbh1-to-avoid-kernel-hang.patch
# http://patches.linaro.org/patch/131764/
-Patch305: wcn36xx-Fix-firmware-crash-due-to-corrupted-buffer-address.patch
+Patch306: wcn36xx-Fix-firmware-crash-due-to-corrupted-buffer-address.patch
# https://patchwork.kernel.org/patch/10245303/
-Patch306: wcn36xx-reduce-verbosity-of-drivers-messages.patch
+Patch307: wcn36xx-reduce-verbosity-of-drivers-messages.patch
# https://www.spinics.net/lists/arm-kernel/msg632925.html
-Patch307: arm-crypto-sunxi-ss-Add-MODULE_ALIAS-to-sun4i-ss.patch
+Patch308: arm-crypto-sunxi-ss-Add-MODULE_ALIAS-to-sun4i-ss.patch
# Fix USB on the RPi https://patchwork.kernel.org/patch/9879371/
-Patch308: bcm283x-dma-mapping-skip-USB-devices-when-configuring-DMA-during-probe.patch
+Patch309: bcm283x-dma-mapping-skip-USB-devices-when-configuring-DMA-during-probe.patch
# https://www.spinics.net/lists/arm-kernel/msg621982.html
-Patch309: bcm283x-Fix-probing-of-bcm2835-i2s.patch
+Patch310: bcm283x-Fix-probing-of-bcm2835-i2s.patch
# https://www.spinics.net/lists/arm-kernel/msg633942.html
-Patch310: mmc-sdhci-iproc-Disable-preset-values-for-BCM2835.patch
+Patch311: mmc-sdhci-iproc-Disable-preset-values-for-BCM2835.patch
# https://www.spinics.net/lists/arm-kernel/msg633945.html
-Patch311: bcm2835-hwrng-Handle-deferred-clock-properly.patch
+Patch312: bcm2835-hwrng-Handle-deferred-clock-properly.patch
-Patch312: bcm283x-clk-audio-fixes.patch
+Patch313: bcm283x-clk-audio-fixes.patch
# https://marc.info/?l=linux-kernel&m=152328880417846&w=2
-Patch313: arm64-thunderx-crypto-zip-fixes.patch
+Patch314: arm64-thunderx-crypto-zip-fixes.patch
# https://www.spinics.net/lists/linux-crypto/msg32725.html
-Patch314: crypto-testmgr-Allow-different-compression-results.patch
+Patch315: crypto-testmgr-Allow-different-compression-results.patch
-Patch315: arm-tegra-fix-nouveau-crash.patch
+Patch316: arm-tegra-fix-nouveau-crash.patch
# https://www.spinics.net/lists/arm-kernel/msg630629.html
-Patch316: arm-sunxi-nvmem-fixH3.patch
+Patch317: arm-sunxi-nvmem-fixH3.patch
# Upstream 4.17 back port
-Patch317: of-i2c-fix-module-aliases.patch
+Patch318: of-i2c-fix-module-aliases.patch
# https://patchwork.kernel.org/patch/10311335/
-Patch318: clk-ti-fix-flag-space-conflict-with-clkctrl-clocks.patch
+Patch319: clk-ti-fix-flag-space-conflict-with-clkctrl-clocks.patch
-Patch319: arm-dts-Add-am335x-pocketbeagle.patch
+Patch320: arm-dts-Add-am335x-pocketbeagle.patch
# Enabling Patches for the RPi3+
-Patch320: bcm2837-rpi-initial-support-for-the-3.patch
-Patch321: bcm2837-gpio-expander.patch
-Patch322: bcm2837-enable-pmu.patch
-Patch323: bcm2837-lan78xx-fixes.patch
+Patch330: bcm2837-rpi-initial-support-for-the-3.patch
+Patch331: bcm2837-gpio-expander.patch
+Patch332: bcm2837-enable-pmu.patch
+Patch333: bcm2837-lan78xx-fixes.patch
# 400 - IBM (ppc/s390x) patches
@@ -1902,6 +1905,9 @@ fi
#
#
%changelog
+* Sun Apr 22 2018 Peter Robinson <pbrobinson@fedoraproject.org>
+- Add quirk patch to fix X-Gene 1 console on HP m400/Mustang (RHBZ 1531140)
+
* Thu Apr 19 2018 Jeremy Cline <jeremy@jcline.org> - 4.16.3-200
- Linux v4.16.3