From 754ba827c19e55ff17da682f069b9e5fcf85b8d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Thu, 14 Sep 2017 11:05:56 +0200 Subject: [PATCH] update ACS override patch for 4.12+ using 330e834488d035e490fdda0b3242118411727bed from https://aur.archlinux.org/linux-vfio.git --- override_for_missing_acs_capabilities.patch | 29 ++++++++++----------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/override_for_missing_acs_capabilities.patch b/override_for_missing_acs_capabilities.patch index 36e58e1..1d79568 100644 --- a/override_for_missing_acs_capabilities.patch +++ b/override_for_missing_acs_capabilities.patch @@ -1,7 +1,7 @@ -From 866f4c5de45ae13aa590de0d40819a0c38f3f682 Mon Sep 17 00:00:00 2001 +From 14fa9884ba1082e0280e8d477e22df917326fca5 Mon Sep 17 00:00:00 2001 From: Mark Weiman -Date: Sun, 23 Oct 2016 12:57:37 -0400 -Subject: [PATCH] pci: Enable overrides for missing ACS capabilities (4.8+) +Date: Sat, 29 Jul 2017 09:15:32 -0400 +Subject: [PATCH] pci: Enable overrides for missing ACS capabilities (4.12+) This an updated version of Alex Williamson's patch from: https://lkml.org/lkml/2013/5/30/513 @@ -44,18 +44,16 @@ Note to hardware vendors, we have facilities to permanently quirk specific devices which enforce isolation but not provide an ACS capability. Please contact me to have your devices added and save your customers the hassle of this boot option. - -Signed-off-by: Mark Weiman --- - Documentation/admin-guide/kernel-parameters.txt | 9 ++++ - drivers/pci/quirks.c | 101 ++++++++++++++++++++++++++++++++++++ - 2 files changed, 110 insertions(+) + Documentation/admin-guide/kernel-parameters.txt | 9 +++ + drivers/pci/quirks.c | 102 ++++++++++++++++++++++++ + 2 files changed, 111 insertions(+) diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt -index a4f4d69..d68cfab 100644 +index 7737ab5d04b2..e7353191fa5c 100644 --- a/Documentation/admin-guide/kernel-parameters.txt +++ b/Documentation/admin-guide/kernel-parameters.txt -@@ -2928,6 +2928,15 @@ bytes respectively. Such letter suffixes can also be entirely omitted. +@@ -2866,6 +2866,15 @@ nomsi [MSI] If the PCI_MSI kernel config parameter is enabled, this kernel boot option can be used to disable the use of MSI interrupts system-wide. @@ -72,10 +70,10 @@ index a4f4d69..d68cfab 100644 Safety option to keep boot IRQs enabled. This should never be necessary. diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c -index 44e0ff3..32016cb 100644 +index 085fb787aa9e..73a2b4cb61a0 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c -@@ -3487,6 +3487,106 @@ static int __init pci_apply_final_quirks(void) +@@ -3654,6 +3654,107 @@ static int __init pci_apply_final_quirks(void) fs_initcall_sync(pci_apply_final_quirks); @@ -179,10 +177,11 @@ index 44e0ff3..32016cb 100644 + + return -ENOTTY; +} ++ /* - * Followings are device-specific reset methods which can be used to + * Following are device-specific reset methods which can be used to * reset a single function if other methods (e.g. FLR, PM D0->D3) are -@@ -4160,6 +4260,7 @@ static const struct pci_dev_acs_enabled { +@@ -4368,6 +4469,7 @@ static const struct pci_dev_acs_enabled { { 0x10df, 0x720, pci_quirk_mf_endpoint_acs }, /* Emulex Skyhawk-R */ /* Cavium ThunderX */ { PCI_VENDOR_ID_CAVIUM, PCI_ANY_ID, pci_quirk_cavium_acs }, @@ -191,5 +190,5 @@ index 44e0ff3..32016cb 100644 }; -- -2.10.1 +2.13.3