From: Hannes Reinecke <hare@suse.de>
To: Don Brace <don.brace@microsemi.com>,
jejb@linux.vnet.ibm.com, Viswas.G@microsemi.com,
Mahesh.Rajashekhara@microsemi.com, hch@infradead.org,
scott.teel@microsemi.com, Kevin.Barnett@microsemi.com,
Justin.Lindley@microsemi.com, scott.benesh@microsemi.com,
elliott@hpe.com
Cc: linux-scsi@vger.kernel.org
Subject: Re: [PATCH V2 0/2] initial submit of Microsemi smartpqi driver
Date: Fri, 10 Jun 2016 11:56:45 +0200 [thread overview]
Message-ID: <575A8EDD.5040803@suse.de> (raw)
In-Reply-To: <146549801043.16211.9235237852162154026.stgit@brunhilda>
On 06/09/2016 08:50 PM, Don Brace wrote:
> These patches are based on Linus's tree
>
> - add smartpqi to kernel.org
> - remove PCI IDs from aacraid driver
> - Depends on adoption of smartpqi driver
>
> Changes since initial upload
> - Forgot to give correct ownership to the author.
> Changes since V1
> - Corrected make ARCH=i386 kbuild test robot issue.
>
> ---
>
> Don Brace (1):
> aacraid: remove wildcard for series 9 controllers
>
> Kevin Barnett (1):
> smartpqi: initial commit of Microsemi smartpqi driver
>
>
> drivers/scsi/smartpqi/Kconfig | 50
> drivers/scsi/smartpqi/Makefile | 3
> drivers/scsi/smartpqi/smartpqi.h | 1135 ++++
> drivers/scsi/smartpqi/smartpqi_init.c | 6817 ++++++++++++++++++++++++
> drivers/scsi/smartpqi/smartpqi_sas_transport.c | 350 +
> drivers/scsi/smartpqi/smartpqi_sis.c | 394 +
> drivers/scsi/smartpqi/smartpqi_sis.h | 32
> 7 files changed, 8781 insertions(+)
> create mode 100644 drivers/scsi/smartpqi/Kconfig
> create mode 100644 drivers/scsi/smartpqi/Makefile
> create mode 100644 drivers/scsi/smartpqi/smartpqi.h
> create mode 100644 drivers/scsi/smartpqi/smartpqi_init.c
> create mode 100644 drivers/scsi/smartpqi/smartpqi_sas_transport.c
> create mode 100644 drivers/scsi/smartpqi/smartpqi_sis.c
> create mode 100644 drivers/scsi/smartpqi/smartpqi_sis.h
>
Some general comments:
- Wouldn't it be better to split off CISS specific definitions from
smartpqi.h into a separate header file? I guess this even could be
shared with hpsa, right?
- In the same vein: Maybe it's worth considering splitting off the PQI
specific ones into a separate header file, too, and just keeping the
smartpqi.h file for the driver specific definitions.
- The device rescan / device mapping functionality is positively
horrible. I still think it was a mistake having that in hpsa, but I'd be
loath to see this one repeated in smartpqi. Why can't you use the LUN
numbers directly? It's _quite_ easy to have the RAID and passthrough
devices on a separate SCSI bus, so that shouldn't be an issue.
- The 'devices' sysfs attribute is a sysfs abuse. As per definition each
sysfs attribute should be a single entry. If you want/need to have a
listing consider adding a sysfs directory for the devices.
But then again, if you drop the device rescan/mapping functionality and
use the LUN numbers directly none of these would matter and the
'devices' attribute could be dropped, too.
- Statistics. Using atomics for each variable and enabling them by
default is not a good idea. I'd prefer to have it optional; have you
checked using debugfs for this?
- 'host_wellness' is cute. Do we get a Spa to go with it?
- pqi_alloc_io_request() has this weird 'while' loop. I was under the
impression that the block layer would guarantee tag uniqueness, so why
don't you use the request tag to identify the command from the request
pool (and split the number of tags per hardware queue)?
Cheers,
Hannes
--
Dr. Hannes Reinecke Teamlead Storage & Networking
hare@suse.de +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton
HRB 21284 (AG Nürnberg)
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2016-06-10 9:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-09 18:50 [PATCH V2 0/2] initial submit of Microsemi smartpqi driver Don Brace
2016-06-09 18:51 ` [PATCH V2 1/2] smartpqi: initial commit " Don Brace
2016-06-10 8:34 ` kbuild test robot
2016-06-09 18:51 ` [PATCH V2 2/2] aacraid: remove wildcard for series 9 controllers Don Brace
2016-06-10 9:56 ` Hannes Reinecke [this message]
2016-06-16 20:44 ` [PATCH V2 0/2] initial submit of Microsemi smartpqi driver Don Brace
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=575A8EDD.5040803@suse.de \
--to=hare@suse.de \
--cc=Justin.Lindley@microsemi.com \
--cc=Kevin.Barnett@microsemi.com \
--cc=Mahesh.Rajashekhara@microsemi.com \
--cc=Viswas.G@microsemi.com \
--cc=don.brace@microsemi.com \
--cc=elliott@hpe.com \
--cc=hch@infradead.org \
--cc=jejb@linux.vnet.ibm.com \
--cc=linux-scsi@vger.kernel.org \
--cc=scott.benesh@microsemi.com \
--cc=scott.teel@microsemi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).