Skip to contentSkip to conversation

smartpqi: add module parameter disable_managed_interrupts

PATCH In review Don Brace 2 participants 4 messages Sep 27, 2023 – Sep 29, 2023 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore

Don Brace

author
#0 lore raw

PATCH v4 1/1 smartpqi: add module parameter disable_managed_interrupts

Add in a description for module parameter disable_managed_interrupts.

This module parameter allows users to disable automatic irq affinity setting by turning off the PCI_IRQ_AFFINITY flag when requesting interrupts.

When the flag PCI_IRQ_AFFINITY is set, users cannot change the interrupt affinity through /proc/irq/<irq#>/*affinity*

Some customers would like to change interrupt affinity based on their requirements.

---
 man4/smartpqi.4 | 7 +++++++
 1 file changed, 7 insertions(+)
man4/smartpqi.4 +7 -0
index 428d79a19840..613ef330aef1 100644
@@ -16,6 +16,7 @@ smartpqi \- Microchip Smart Storage SCSI driver
 .RB [ lockup_action= { none | reboot | panic }]
 .RB [ expose_ld_first= { 0 | 1 }]
 .RB [ hide_vsep= { 0 | 1 }]
+.RB [ disable_managed_interrupts= { 0 | 1 }]
 .YS
 .SH DESCRIPTION
 .B smartpqi
@@ -100,6 +101,12 @@ The default value is 0 (physical devices exposed first).
 .BR hide_vsep= { 0 | 1 }
 This option disables exposure of the virtual SEP to the OS.
 The default value is 0 (virtual SEP is exposed).
+.TP
+.BR disable_managed_interrupts= { 0 | 1 }
+Disables driver utilization of Linux kernel managed interrupts for
+controllers. The managed interrupts feature automatically distributes
+interrupts to all available CPUs and assigns SMP affinity.
+The default value is 0 (managed interrupts enabled).
 .SH FILES
 .SS Device nodes
 Logical drives are accessed via the SCSI disk driver
Signature · 1 line
2.42.0.158.g94e83dcf5b
author
#1 lore raw

PATCH 1/1 smartpqi: add sg entry to see_also

The sg driver can interface with smartpqi. Add this into the SEE ALSO section of the man page.

---
 man4/smartpqi.4 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
man4/smartpqi.4 +2 -1
index 3de8b0c97423..7c1da3c80d57 100644
@@ -462,7 +462,8 @@ which can be found by searching for the specific controller at
 .BR cciss (4),
 .BR hpsa (4),
 .BR sd (4),
-.BR st (4)
+.BR st (4),
+.BR sg (4)
 .PP
 .I Documentation/ABI/testing/sysfs\-bus\-pci\-devices\-cciss
 in the Linux kernel source tree.
Signature · 1 line
2.42.0.158.g94e83dcf5b
#2 lore raw

Re: [PATCH] smartpqi: add sg entry to see_also

Hi Don,

Quoted 8 lines · Don Brace

The sg driver can interface with smartpqi. Add this into the SEE ALSO section of the man page.

Patch applied.

Thanks,
Alex

Quoted 21 lines
---
 man4/smartpqi.4 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
man4/smartpqi.4 +2 -1
index 3de8b0c97423..7c1da3c80d57 100644
@@ -462,7 +462,8 @@ which can be found by searching for the specific controller at
 .BR cciss (4),
 .BR hpsa (4),
 .BR sd (4),
-.BR st (4)
+.BR st (4),
+.BR sg (4)
 .PP
 .I Documentation/ABI/testing/sysfs\-bus\-pci\-devices\-cciss
 in the Linux kernel source tree.
Signature · 1 line
2.42.0.158.g94e83dcf5b
#3 lore raw
In reply to Don Brace
Quoted 9 lines · Don Brace

Add in a description for module parameter disable_managed_interrupts.

This module parameter allows users to disable automatic irq affinity setting by turning off the PCI_IRQ_AFFINITY flag when requesting interrupts.

When the flag PCI_IRQ_AFFINITY is set, users cannot change the interrupt affinity through /proc/irq/<irq#>/*affinity*

Quoted 8 lines

Some customers would like to change interrupt affinity based on their requirements.

Patch applied, Don.

Thanks,
Alex

Quoted 32 lines
---
 man4/smartpqi.4 | 7 +++++++
 1 file changed, 7 insertions(+)
man4/smartpqi.4 +7 -0
index 428d79a19840..613ef330aef1 100644
@@ -16,6 +16,7 @@ smartpqi \- Microchip Smart Storage SCSI driver
 .RB [ lockup_action= { none | reboot | panic }]
 .RB [ expose_ld_first= { 0 | 1 }]
 .RB [ hide_vsep= { 0 | 1 }]
+.RB [ disable_managed_interrupts= { 0 | 1 }]
 .YS
 .SH DESCRIPTION
 .B smartpqi
@@ -100,6 +101,12 @@ The default value is 0 (physical devices exposed first).
 .BR hide_vsep= { 0 | 1 }
 This option disables exposure of the virtual SEP to the OS.
 The default value is 0 (virtual SEP is exposed).
+.TP
+.BR disable_managed_interrupts= { 0 | 1 }
+Disables driver utilization of Linux kernel managed interrupts for
+controllers. The managed interrupts feature automatically distributes
+interrupts to all available CPUs and assigns SMP affinity.
+The default value is 0 (managed interrupts enabled).
 .SH FILES
 .SS Device nodes
 Logical drives are accessed via the SCSI disk driver
Signature · 1 line
2.42.0.158.g94e83dcf5b