Merge tag '4.4-scsi-mkp' into misc
SCSI queue for 4.4. Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
@@ -106,9 +106,9 @@ MODULE_LICENSE("GPL");
|
||||
MODULE_VERSION(IBMVSCSI_VERSION);
|
||||
|
||||
module_param_named(max_id, max_id, int, S_IRUGO | S_IWUSR);
|
||||
MODULE_PARM_DESC(max_id, "Largest ID value for each channel");
|
||||
MODULE_PARM_DESC(max_id, "Largest ID value for each channel [Default=64]");
|
||||
module_param_named(max_channel, max_channel, int, S_IRUGO | S_IWUSR);
|
||||
MODULE_PARM_DESC(max_channel, "Largest channel value");
|
||||
MODULE_PARM_DESC(max_channel, "Largest channel value [Default=3]");
|
||||
module_param_named(init_timeout, init_timeout, int, S_IRUGO | S_IWUSR);
|
||||
MODULE_PARM_DESC(init_timeout, "Initialization timeout in seconds");
|
||||
module_param_named(max_requests, max_requests, int, S_IRUGO);
|
||||
@@ -2289,11 +2289,15 @@ static int ibmvscsi_probe(struct vio_dev *vdev, const struct vio_device_id *id)
|
||||
goto init_pool_failed;
|
||||
}
|
||||
|
||||
host->max_lun = 8;
|
||||
host->max_lun = IBMVSCSI_MAX_LUN;
|
||||
host->max_id = max_id;
|
||||
host->max_channel = max_channel;
|
||||
host->max_cmd_len = 16;
|
||||
|
||||
dev_info(dev,
|
||||
"Maximum ID: %d Maximum LUN: %llu Maximum Channel: %d\n",
|
||||
host->max_id, host->max_lun, host->max_channel);
|
||||
|
||||
if (scsi_add_host(hostdata->host, hostdata->dev))
|
||||
goto add_host_failed;
|
||||
|
||||
|
@@ -48,6 +48,7 @@ struct Scsi_Host;
|
||||
#define IBMVSCSI_CMDS_PER_LUN_DEFAULT 16
|
||||
#define IBMVSCSI_MAX_SECTORS_DEFAULT 256 /* 32 * 8 = default max I/O 32 pages */
|
||||
#define IBMVSCSI_MAX_CMDS_PER_LUN 64
|
||||
#define IBMVSCSI_MAX_LUN 32
|
||||
|
||||
/* ------------------------------------------------------------
|
||||
* Data Structures
|
||||
|
Reference in New Issue
Block a user