Skip to content

Commit d098272

Browse files
hfreudeVasily Gorbik
authored andcommitted
s390/ap: new module option ap.useirq
This patch introduces a new AP module option to be able to control if the ap bus code is using interrupts or not. By default if the interrupt support is available it is used. This option makes it possible to disable interrupt use even when interrupt support is available. It should be obvious that this option can't magically enable interrupt support when the hardware or hypervisor layer does not support AP interrupts. On the kernel command line use ap.useirq=0 or ap.useirq=1 to disable or enable (that's the default) interrupt use. Signed-off-by: Harald Freudenberger <[email protected]> Signed-off-by: Vasily Gorbik <[email protected]>
1 parent 4533803 commit d098272

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

drivers/s390/crypto/ap_bus.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ static char *aqm_str;
6161
module_param_named(aqmask, aqm_str, charp, 0440);
6262
MODULE_PARM_DESC(aqmask, "AP bus domain mask.");
6363

64+
static int ap_useirq = 1;
65+
module_param_named(useirq, ap_useirq, int, 0440);
66+
MODULE_PARM_DESC(useirq, "Use interrupt if available, default is 1 (on).");
67+
6468
atomic_t ap_max_msg_size = ATOMIC_INIT(AP_DEFAULT_MAX_MSG_SIZE);
6569
EXPORT_SYMBOL(ap_max_msg_size);
6670

@@ -1899,7 +1903,7 @@ static int __init ap_module_init(void)
18991903
}
19001904

19011905
/* enable interrupts if available */
1902-
if (ap_interrupts_available()) {
1906+
if (ap_interrupts_available() && ap_useirq) {
19031907
rc = register_adapter_interrupt(&ap_airq);
19041908
ap_irq_flag = (rc == 0);
19051909
}

0 commit comments

Comments
 (0)