Commit ab9f5adb authored by Tomas Henzl's avatar Tomas Henzl Committed by Martin K. Petersen

scsi: mpt3sas: make driver options visible in sys

Support is easier with all driver parameters visible in sysfs.  Also I've
replaced a constant with an octal permission.
Signed-off-by: default avatarTomas Henzl <thenzl@redhat.com>
Acked-by: default avatarSuganath Prabu <suganath-prabu.subramani@broadcom.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent e1a7752c
...@@ -74,28 +74,28 @@ static MPT_CALLBACK mpt_callbacks[MPT_MAX_CALLBACKS]; ...@@ -74,28 +74,28 @@ static MPT_CALLBACK mpt_callbacks[MPT_MAX_CALLBACKS];
#define MAX_HBA_QUEUE_DEPTH 30000 #define MAX_HBA_QUEUE_DEPTH 30000
#define MAX_CHAIN_DEPTH 100000 #define MAX_CHAIN_DEPTH 100000
static int max_queue_depth = -1; static int max_queue_depth = -1;
module_param(max_queue_depth, int, 0); module_param(max_queue_depth, int, 0444);
MODULE_PARM_DESC(max_queue_depth, " max controller queue depth "); MODULE_PARM_DESC(max_queue_depth, " max controller queue depth ");
static int max_sgl_entries = -1; static int max_sgl_entries = -1;
module_param(max_sgl_entries, int, 0); module_param(max_sgl_entries, int, 0444);
MODULE_PARM_DESC(max_sgl_entries, " max sg entries "); MODULE_PARM_DESC(max_sgl_entries, " max sg entries ");
static int msix_disable = -1; static int msix_disable = -1;
module_param(msix_disable, int, 0); module_param(msix_disable, int, 0444);
MODULE_PARM_DESC(msix_disable, " disable msix routed interrupts (default=0)"); MODULE_PARM_DESC(msix_disable, " disable msix routed interrupts (default=0)");
static int smp_affinity_enable = 1; static int smp_affinity_enable = 1;
module_param(smp_affinity_enable, int, S_IRUGO); module_param(smp_affinity_enable, int, 0444);
MODULE_PARM_DESC(smp_affinity_enable, "SMP affinity feature enable/disable Default: enable(1)"); MODULE_PARM_DESC(smp_affinity_enable, "SMP affinity feature enable/disable Default: enable(1)");
static int max_msix_vectors = -1; static int max_msix_vectors = -1;
module_param(max_msix_vectors, int, 0); module_param(max_msix_vectors, int, 0444);
MODULE_PARM_DESC(max_msix_vectors, MODULE_PARM_DESC(max_msix_vectors,
" max msix vectors"); " max msix vectors");
static int irqpoll_weight = -1; static int irqpoll_weight = -1;
module_param(irqpoll_weight, int, 0); module_param(irqpoll_weight, int, 0444);
MODULE_PARM_DESC(irqpoll_weight, MODULE_PARM_DESC(irqpoll_weight,
"irq poll weight (default= one fourth of HBA queue depth)"); "irq poll weight (default= one fourth of HBA queue depth)");
...@@ -104,7 +104,7 @@ MODULE_PARM_DESC(mpt3sas_fwfault_debug, ...@@ -104,7 +104,7 @@ MODULE_PARM_DESC(mpt3sas_fwfault_debug,
" enable detection of firmware fault and halt firmware - (default=0)"); " enable detection of firmware fault and halt firmware - (default=0)");
static int perf_mode = -1; static int perf_mode = -1;
module_param(perf_mode, int, 0); module_param(perf_mode, int, 0444);
MODULE_PARM_DESC(perf_mode, MODULE_PARM_DESC(perf_mode,
"Performance mode (only for Aero/Sea Generation), options:\n\t\t" "Performance mode (only for Aero/Sea Generation), options:\n\t\t"
"0 - balanced: high iops mode is enabled &\n\t\t" "0 - balanced: high iops mode is enabled &\n\t\t"
......
...@@ -113,22 +113,22 @@ MODULE_PARM_DESC(logging_level, ...@@ -113,22 +113,22 @@ MODULE_PARM_DESC(logging_level,
static ushort max_sectors = 0xFFFF; static ushort max_sectors = 0xFFFF;
module_param(max_sectors, ushort, 0); module_param(max_sectors, ushort, 0444);
MODULE_PARM_DESC(max_sectors, "max sectors, range 64 to 32767 default=32767"); MODULE_PARM_DESC(max_sectors, "max sectors, range 64 to 32767 default=32767");
static int missing_delay[2] = {-1, -1}; static int missing_delay[2] = {-1, -1};
module_param_array(missing_delay, int, NULL, 0); module_param_array(missing_delay, int, NULL, 0444);
MODULE_PARM_DESC(missing_delay, " device missing delay , io missing delay"); MODULE_PARM_DESC(missing_delay, " device missing delay , io missing delay");
/* scsi-mid layer global parmeter is max_report_luns, which is 511 */ /* scsi-mid layer global parmeter is max_report_luns, which is 511 */
#define MPT3SAS_MAX_LUN (16895) #define MPT3SAS_MAX_LUN (16895)
static u64 max_lun = MPT3SAS_MAX_LUN; static u64 max_lun = MPT3SAS_MAX_LUN;
module_param(max_lun, ullong, 0); module_param(max_lun, ullong, 0444);
MODULE_PARM_DESC(max_lun, " max lun, default=16895 "); MODULE_PARM_DESC(max_lun, " max lun, default=16895 ");
static ushort hbas_to_enumerate; static ushort hbas_to_enumerate;
module_param(hbas_to_enumerate, ushort, 0); module_param(hbas_to_enumerate, ushort, 0444);
MODULE_PARM_DESC(hbas_to_enumerate, MODULE_PARM_DESC(hbas_to_enumerate,
" 0 - enumerates both SAS 2.0 & SAS 3.0 generation HBAs\n \ " 0 - enumerates both SAS 2.0 & SAS 3.0 generation HBAs\n \
1 - enumerates only SAS 2.0 generation HBAs\n \ 1 - enumerates only SAS 2.0 generation HBAs\n \
...@@ -142,17 +142,17 @@ MODULE_PARM_DESC(hbas_to_enumerate, ...@@ -142,17 +142,17 @@ MODULE_PARM_DESC(hbas_to_enumerate,
* Either bit can be set, or both * Either bit can be set, or both
*/ */
static int diag_buffer_enable = -1; static int diag_buffer_enable = -1;
module_param(diag_buffer_enable, int, 0); module_param(diag_buffer_enable, int, 0444);
MODULE_PARM_DESC(diag_buffer_enable, MODULE_PARM_DESC(diag_buffer_enable,
" post diag buffers (TRACE=1/SNAPSHOT=2/EXTENDED=4/default=0)"); " post diag buffers (TRACE=1/SNAPSHOT=2/EXTENDED=4/default=0)");
static int disable_discovery = -1; static int disable_discovery = -1;
module_param(disable_discovery, int, 0); module_param(disable_discovery, int, 0444);
MODULE_PARM_DESC(disable_discovery, " disable discovery "); MODULE_PARM_DESC(disable_discovery, " disable discovery ");
/* permit overriding the host protection capabilities mask (EEDP/T10 PI) */ /* permit overriding the host protection capabilities mask (EEDP/T10 PI) */
static int prot_mask = -1; static int prot_mask = -1;
module_param(prot_mask, int, 0); module_param(prot_mask, int, 0444);
MODULE_PARM_DESC(prot_mask, " host protection capabilities mask, def=7 "); MODULE_PARM_DESC(prot_mask, " host protection capabilities mask, def=7 ");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment