s390/pci: add parameter to force floating irqs
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>
This commit is contained in:

committed by
Martin Schwidefsky

parent
07e3ec3acb
commit
fbfe07d440
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user