]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
s390/pci: add parameter to force floating irqs
authorSebastian Ott <sebott@linux.ibm.com>
Tue, 26 Feb 2019 15:07:32 +0000 (16:07 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 29 Apr 2019 08:47:01 +0000 (10:47 +0200)
Provide a kernel parameter to force the usage of floating interrupts.

Signed-off-by: Sebastian Ott <sebott@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Documentation/admin-guide/kernel-parameters.txt
arch/s390/include/asm/pci.h
arch/s390/pci/pci.c
arch/s390/pci/pci_irq.c

index 2b8ee90bb64470d0d6d6ccadccf8b8fbbf86509d..abc1b6e305c4a3aafff13ea9ae42ff4a9dbe9cdc 100644 (file)
                                bridges without forcing it upstream. Note:
                                this removes isolation between devices and
                                may put more devices in an IOMMU group.
+               force_floating  [S390] Force usage of floating interrupts.
 
        pcie_aspm=      [PCIE] Forcibly enable or disable PCIe Active State Power
                        Management.
index a285754d07426e8daed025e243278890a73b0a7f..328013219aec56c883ce575bca851505b5bad22a 100644 (file)
@@ -163,6 +163,7 @@ static inline bool zdev_enabled(struct zpci_dev *zdev)
 }
 
 extern const struct attribute_group *zpci_attr_groups[];
+extern unsigned int s390_pci_force_floating __initdata;
 
 /* -----------------------------------------------------------------------------
   Prototypes
index 716e773af7880b7067f6091288e4e12d41e62622..db096fd16f46431fd8db97e489ae3710138e4523 100644 (file)
@@ -741,6 +741,7 @@ static void zpci_mem_exit(void)
 }
 
 static unsigned int s390_pci_probe __initdata = 1;
+unsigned int s390_pci_force_floating __initdata;
 static unsigned int s390_pci_initialized;
 
 char * __init pcibios_setup(char *str)
@@ -749,6 +750,10 @@ char * __init pcibios_setup(char *str)
                s390_pci_probe = 0;
                return NULL;
        }
+       if (!strcmp(str, "force_floating")) {
+               s390_pci_force_floating = 1;
+               return NULL;
+       }
        return str;
 }
 
index c73ab855a2ca34ab7364c9ccce1273353d807461..d80616ae8dd8ade256beae5268cab2924a379deb 100644 (file)
@@ -433,6 +433,9 @@ int __init zpci_irq_init(void)
        int rc;
 
        irq_delivery = sclp.has_dirq ? DIRECTED : FLOATING;
+       if (s390_pci_force_floating)
+               irq_delivery = FLOATING;
+
        if (irq_delivery == DIRECTED)
                zpci_airq.handler = zpci_directed_irq_handler;