Skip to content

Commit 02ec19c

Browse files
Stephen M. CameronJames Bottomley
authored andcommitted
[SCSI] hpsa: allow driver to put controller in either simple or performant mode
Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
1 parent 6eaf46f commit 02ec19c

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

‎Documentation/scsi/hpsa.txt‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ boot parameter "hpsa_allow_any=1" is specified, however these are not tested
2828
nor supported by HP with this driver. For older Smart Arrays, the cciss
2929
driver should still be used.
3030

31+
The "hpsa_simple_mode=1" boot parameter may be used to prevent the driver from
32+
putting the controller into "performant" mode. The difference is that with simple
33+
mode, each command completion requires an interrupt, while with "performant mode"
34+
(the default, and ordinarily better performing) it is possible to have multiple
35+
command completions indicated by a single interrupt.
36+
3137
HPSA specific entries in /sys
3238
-----------------------------
3339

‎drivers/scsi/hpsa.c‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ static int hpsa_allow_any;
7474
module_param(hpsa_allow_any, int, S_IRUGO|S_IWUSR);
7575
MODULE_PARM_DESC(hpsa_allow_any,
7676
"Allow hpsa driver to access unknown HP Smart Array hardware");
77+
static int hpsa_simple_mode;
78+
module_param(hpsa_simple_mode, int, S_IRUGO|S_IWUSR);
79+
MODULE_PARM_DESC(hpsa_simple_mode,
80+
"Use 'simple mode' rather than 'performant mode'");
7781

7882
/* define the PCI info for the cards we can control */
7983
static const struct pci_device_id hpsa_pci_device_id[] = {
@@ -4038,6 +4042,9 @@ static __devinit void hpsa_put_ctlr_into_performant_mode(struct ctlr_info *h)
40384042
{
40394043
u32 trans_support;
40404044

4045+
if (hpsa_simple_mode)
4046+
return;
4047+
40414048
trans_support = readl(&(h->cfgtable->TransportSupport));
40424049
if (!(trans_support & PERFORMANT_MODE))
40434050
return;

0 commit comments

Comments
 (0)