From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754127AbbI1VjM (ORCPT ); Mon, 28 Sep 2015 17:39:12 -0400 Received: from e18.ny.us.ibm.com ([129.33.205.208]:47746 "EHLO e18.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751956AbbI1VjI (ORCPT ); Mon, 28 Sep 2015 17:39:08 -0400 X-IBM-Helo: d01dlp03.pok.ibm.com X-IBM-MailFrom: tyreld@linux.vnet.ibm.com X-IBM-RcptTo: linux-kernel@vger.kernel.org;linux-scsi@vger.kernel.org Subject: Re: [PATCH 2/3] ibmvcsci: display default value for max_id, max_lun and max_channel. To: Laurent Vivier , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, "James E.J. Bottomley" References: <1441876994-16821-1-git-send-email-lvivier@redhat.com> <1441876994-16821-2-git-send-email-lvivier@redhat.com> Cc: dgibson@redhat.com, thuth@redhat.com, pbonzini@redhat.com From: Tyrel Datwyler Message-ID: <5609B375.7080506@linux.vnet.ibm.com> Date: Mon, 28 Sep 2015 14:39:01 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <1441876994-16821-2-git-send-email-lvivier@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15092821-0045-0000-0000-0000019F9820 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/10/2015 02:23 AM, Laurent Vivier wrote: > As devices with values greater than that are silently ignored, > this gives some hints to the sys admin to know why he doesn't see > his devices... > > Signed-off-by: Laurent Vivier Acked-by: Tyrel Datwyler > --- > drivers/scsi/ibmvscsi/ibmvscsi.c | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > > diff --git a/drivers/scsi/ibmvscsi/ibmvscsi.c b/drivers/scsi/ibmvscsi/ibmvscsi.c > index 3e76490..f9d7ec4 100644 > --- a/drivers/scsi/ibmvscsi/ibmvscsi.c > +++ b/drivers/scsi/ibmvscsi/ibmvscsi.c > @@ -106,9 +106,9 @@ MODULE_LICENSE("GPL"); > MODULE_VERSION(IBMVSCSI_VERSION); > > module_param_named(max_id, max_id, int, S_IRUGO); > -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); > -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); > @@ -2294,6 +2294,10 @@ static int ibmvscsi_probe(struct vio_dev *vdev, const struct vio_device_id *id) > host->max_channel = max_channel; > host->max_cmd_len = 16; > > + dev_info(dev, > + "Maximum ID: %d Maximum LUN: %d 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; >