summaryrefslogtreecommitdiffstats
path: root/drivers/iommu/amd_iommu.h
diff options
context:
space:
mode:
authorKai-Heng Feng <kai.heng.feng@canonical.com>2019-08-21 13:10:04 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-10-05 13:09:59 +0200
commit2aeeb0a4b44059ad652a470efd8cdad49f72a0c9 (patch)
treecbd5ff90f189e591244219e36391280feeac59f0 /drivers/iommu/amd_iommu.h
parent291da335040c61cd85e164f207723a2915e72149 (diff)
downloadlinux-stable-2aeeb0a4b44059ad652a470efd8cdad49f72a0c9.tar.gz
linux-stable-2aeeb0a4b44059ad652a470efd8cdad49f72a0c9.tar.bz2
linux-stable-2aeeb0a4b44059ad652a470efd8cdad49f72a0c9.zip
iommu/amd: Override wrong IVRS IOAPIC on Raven Ridge systems
[ Upstream commit 93d051550ee02eaff9a2541d825605a7bd778027 ] Raven Ridge systems may have malfunction touchpad or hang at boot if incorrect IVRS IOAPIC is provided by BIOS. Users already found correct "ivrs_ioapic=" values, let's put them inside kernel to workaround buggy BIOS. BugLink: https://bugs.launchpad.net/bugs/1795292 BugLink: https://bugs.launchpad.net/bugs/1837688 Reported-by: kbuild test robot <lkp@intel.com> Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com> Signed-off-by: Joerg Roedel <jroedel@suse.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/iommu/amd_iommu.h')
-rw-r--r--drivers/iommu/amd_iommu.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/iommu/amd_iommu.h b/drivers/iommu/amd_iommu.h
new file mode 100644
index 000000000000..12d540d9b59b
--- /dev/null
+++ b/drivers/iommu/amd_iommu.h
@@ -0,0 +1,14 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#ifndef AMD_IOMMU_H
+#define AMD_IOMMU_H
+
+int __init add_special_device(u8 type, u8 id, u16 *devid, bool cmd_line);
+
+#ifdef CONFIG_DMI
+void amd_iommu_apply_ivrs_quirks(void);
+#else
+static void amd_iommu_apply_ivrs_quirks(void) { }
+#endif
+
+#endif