<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-dev/drivers/scsi/smartpqi, branch master</title>
<subtitle>Linux kernel development work - see feature branches</subtitle>
<id>https://git.zx2c4.com/linux-dev/atom/drivers/scsi/smartpqi?h=master</id>
<link rel='self' href='https://git.zx2c4.com/linux-dev/atom/drivers/scsi/smartpqi?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/'/>
<updated>2022-08-22T16:07:53Z</updated>
<entry>
<title>block: Change the return type of blk_mq_map_queues() into void</title>
<updated>2022-08-22T16:07:53Z</updated>
<author>
<name>Bart Van Assche</name>
<email>bvanassche@acm.org</email>
</author>
<published>2022-08-15T17:00:43Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=a4e1d0b76e7b32c0839e72679c530445172a2564'/>
<id>urn:sha1:a4e1d0b76e7b32c0839e72679c530445172a2564</id>
<content type='text'>
Since blk_mq_map_queues() and the .map_queues() callbacks always return 0,
change their return type into void. Most callers ignore the returned value
anyway.

Cc: Christoph Hellwig &lt;hch@lst.de&gt;
Cc: Jason Wang &lt;jasowang@redhat.com&gt;
Cc: Keith Busch &lt;kbusch@kernel.org&gt;
Cc: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
Cc: Doug Gilbert &lt;dgilbert@interlog.com&gt;
Cc: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Signed-off-by: Bart Van Assche &lt;bvanassche@acm.org&gt;
Reviewed-by: John Garry &lt;john.garry@huawei.com&gt;
Acked-by: Md Haris Iqbal &lt;haris.iqbal@ionos.com&gt;
Reviewed-by: Sagi Grimberg &lt;sagi@grimberg.me&gt;
Link: https://lore.kernel.org/r/20220815170043.19489-3-bvanassche@acm.org
[axboe: fold in fix from Bart]
Signed-off-by: Jens Axboe &lt;axboe@kernel.dk&gt;
</content>
</entry>
<entry>
<title>scsi: smartpqi: Update version to 2.1.18-045</title>
<updated>2022-07-14T03:42:05Z</updated>
<author>
<name>Don Brace</name>
<email>don.brace@microchip.com</email>
</author>
<published>2022-07-08T18:48:06Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=f54f85dfd757301791be8ce6fccc6f6604d82b40'/>
<id>urn:sha1:f54f85dfd757301791be8ce6fccc6f6604d82b40</id>
<content type='text'>
Link: https://lore.kernel.org/r/165730608687.177165.11815510982277242966.stgit@brunhilda
Reviewed-by: Gerry Morong &lt;gerry.morong@microchip.com&gt;
Reviewed-by: Scott Benesh &lt;scott.benesh@microchip.com&gt;
Reviewed-by: Scott Teel &lt;scott.teel@microchip.com&gt;
Reviewed-by: Kevin Barnett &lt;kevin.barnett@microchip.com&gt;
Signed-off-by: Don Brace &lt;don.brace@microchip.com&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</content>
</entry>
<entry>
<title>scsi: smartpqi: Update copyright to current year</title>
<updated>2022-07-14T03:42:04Z</updated>
<author>
<name>Don Brace</name>
<email>don.brace@microchip.com</email>
</author>
<published>2022-07-08T18:48:01Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=e4b73b3fa2b98187c9cbb1364d6849ca4b7d6c25'/>
<id>urn:sha1:e4b73b3fa2b98187c9cbb1364d6849ca4b7d6c25</id>
<content type='text'>
Update copyright to current year.

Link: https://lore.kernel.org/r/165730608177.177165.13184715486635363193.stgit@brunhilda
Reviewed-by: Scott Benesh &lt;scott.benesh@microchip.com&gt;
Reviewed-by: Scott Teel &lt;scott.teel@microchip.com&gt;
Reviewed-by: Kevin Barnett &lt;kevin.barnett@microchip.com&gt;
Signed-off-by: Don Brace &lt;don.brace@microchip.com&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</content>
</entry>
<entry>
<title>scsi: smartpqi: Add ctrl ready timeout module parameter</title>
<updated>2022-07-14T03:42:04Z</updated>
<author>
<name>Kevin Barnett</name>
<email>kevin.barnett@microchip.com</email>
</author>
<published>2022-07-08T18:47:56Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=6d567dfee0b7b4c66fb1f62d59a2e62e2709b453'/>
<id>urn:sha1:6d567dfee0b7b4c66fb1f62d59a2e62e2709b453</id>
<content type='text'>
Allow user to override the default driver timeout for controller ready.

There are some rare configurations which require the driver to wait longer
than the normal 3 minutes for the controller to complete its bootup
sequence and be ready to accept commands from the driver.

The module parameter is:

ctrl_ready_timeout= { 0 | 30-1800 }

and specifies the timeout in seconds for the driver to wait for controller
ready. The valid range is 0 or 30-1800. The default value is 0, which
causes the driver to use a timeout of 180 seconds (3 minutes).

Link: https://lore.kernel.org/r/165730607666.177165.9221211345284471213.stgit@brunhilda
Reviewed-by: Scott Teel &lt;scott.teel@microchip.com&gt;
Reviewed-by: Mike McGowen &lt;mike.mcgowen@microchip.com&gt;
Signed-off-by: Kevin Barnett &lt;kevin.barnett@microchip.com&gt;
Signed-off-by: Don Brace &lt;don.brace@microchip.com&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</content>
</entry>
<entry>
<title>scsi: smartpqi: Update deleting a LUN via sysfs</title>
<updated>2022-07-14T03:42:04Z</updated>
<author>
<name>Kevin Barnett</name>
<email>kevin.barnett@microchip.com</email>
</author>
<published>2022-07-08T18:47:51Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=2d80f4054f7f901b8ad97358a9069616ac8524c7'/>
<id>urn:sha1:2d80f4054f7f901b8ad97358a9069616ac8524c7</id>
<content type='text'>
Change removing a LUN using sysfs from an internal driver function
pqi_remove_all_scsi_devices() to using the .slave_destroy entry in the
scsi_host_template.

A LUN can be deleted via sysfs using this syntax:

echo 1 &gt; /sys/block/sdX/device/delete

Link: https://lore.kernel.org/r/165730607154.177165.9723066932202995774.stgit@brunhilda
Reviewed-by: Scott Teel &lt;scott.teel@microchip.com&gt;
Reviewed-by: Mike McGowen &lt;mike.mcgowen@microchip.com&gt;
Signed-off-by: Kevin Barnett &lt;kevin.barnett@microchip.com&gt;
Signed-off-by: Don Brace &lt;don.brace@microchip.com&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</content>
</entry>
<entry>
<title>scsi: smartpqi: Add module param to disable managed ints</title>
<updated>2022-07-14T03:42:04Z</updated>
<author>
<name>Mike McGowen</name>
<email>Mike.McGowen@microchip.com</email>
</author>
<published>2022-07-08T18:47:46Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=cf15c3e734e8d25de7b4d9170f5a69ace633a583'/>
<id>urn:sha1:cf15c3e734e8d25de7b4d9170f5a69ace633a583</id>
<content type='text'>
Allow SMP affinity to be changeable by disabling managed interrupts.

On distributions where the driver is enabled for multi-queue support the
driver utilizes kernel managed interrupts, which automatically distributes
interrupts to all available CPUs and assigns SMP affinity.

On most distributions, the affinity can not be changed by the user.

This change will allow managed interrupts to be disabled by the user via a
module parameter while still allowing multi-queue support to function
properly.

Use the module parameter disable_managed_interrupts=1

Link: https://lore.kernel.org/r/165730606638.177165.12846020942931640329.stgit@brunhilda
Reviewed-by: Scott Benesh &lt;scott.benesh@microchip.com&gt;
Reviewed-by: Scott Teel &lt;scott.teel@microchip.com&gt;
Reviewed-by: Kevin Barnett &lt;kevin.barnett@microchip.com&gt;
Signed-off-by: Mike McGowen &lt;Mike.McGowen@microchip.com&gt;
Signed-off-by: Don Brace &lt;don.brace@microchip.com&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</content>
</entry>
<entry>
<title>scsi: smartpqi: Fix RAID map race condition</title>
<updated>2022-07-14T03:42:04Z</updated>
<author>
<name>Kevin Barnett</name>
<email>kevin.barnett@microchip.com</email>
</author>
<published>2022-07-08T18:47:41Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=6ce3cfb365ebb2b93ee547318c6a108e62c740a1'/>
<id>urn:sha1:6ce3cfb365ebb2b93ee547318c6a108e62c740a1</id>
<content type='text'>
Correct a rare stale RAID map access when performing AIO during a RAID
configuration change.

A race condition in the driver could cause it to access a stale RAID map
when a logical volume is reconfigured.

Modify the driver logic to invalidate a RAID map very early when a RAID
configuration change is detected and only switch to a new RAID map after
the driver detects that the RAID map has changed.

Link: https://lore.kernel.org/r/165730606128.177165.7671413443814750829.stgit@brunhilda
Reviewed-by: Scott Benesh &lt;scott.benesh@microchip.com&gt;
Reviewed-by: Scott Teel &lt;scott.teel@microchip.com&gt;
Reviewed-by: Mike McGowen &lt;mike.mcgowen@microchip.com&gt;
Signed-off-by: Kevin Barnett &lt;kevin.barnett@microchip.com&gt;
Signed-off-by: Don Brace &lt;don.brace@microchip.com&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</content>
</entry>
<entry>
<title>scsi: smartpqi: Fix DMA direction for RAID requests</title>
<updated>2022-07-14T03:42:04Z</updated>
<author>
<name>Mahesh Rajashekhara</name>
<email>Mahesh.Rajashekhara@microchip.com</email>
</author>
<published>2022-07-08T18:47:36Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=69695aeaa6621bc49cdd7a8e5a8d1042461e496e'/>
<id>urn:sha1:69695aeaa6621bc49cdd7a8e5a8d1042461e496e</id>
<content type='text'>
Correct a SOP READ and WRITE DMA flags for some requests.

This update corrects DMA direction issues with SCSI commands removed from
the controller's internal lookup table.

Currently, SCSI READ BLOCK LIMITS (0x5) was removed from the controller
lookup table and exposed a DMA direction flag issue.

SCSI READ BLOCK LIMITS was recently removed from our controller lookup
table so the controller uses the respective IU flag field to set the DMA
data direction. Since the DMA direction is incorrect the FW never completes
the request causing a hang.

Some SCSI commands which use SCSI READ BLOCK LIMITS

      * sg_map
      * mt -f /dev/stX status

After updating controller firmware, users may notice their tape units
failing. This patch resolves the issue.

Also, the AIO path DMA direction is correct.

The DMA direction flag is a day-one bug with no reported BZ.

Fixes: 6c223761eb54 ("smartpqi: initial commit of Microsemi smartpqi driver")
Link: https://lore.kernel.org/r/165730605618.177165.9054223644512926624.stgit@brunhilda
Reviewed-by: Scott Benesh &lt;scott.benesh@microchip.com&gt;
Reviewed-by: Scott Teel &lt;scott.teel@microchip.com&gt;
Reviewed-by: Mike McGowen &lt;mike.mcgowen@microchip.com&gt;
Reviewed-by: Kevin Barnett &lt;kevin.barnett@microchip.com&gt;
Signed-off-by: Mahesh Rajashekhara &lt;Mahesh.Rajashekhara@microchip.com&gt;
Signed-off-by: Don Brace &lt;don.brace@microchip.com&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</content>
</entry>
<entry>
<title>scsi: smartpqi: Stop logging spurious PQI reset failures</title>
<updated>2022-07-14T03:42:03Z</updated>
<author>
<name>Kevin Barnett</name>
<email>kevin.barnett@microchip.com</email>
</author>
<published>2022-07-08T18:47:31Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=85b41834b0f43b3e5c079ea9ea9288b2568b8c60'/>
<id>urn:sha1:85b41834b0f43b3e5c079ea9ea9288b2568b8c60</id>
<content type='text'>
Change method used to detect controller firmware crash during PQI reset.

PQI reset can fail with error -6 if firmware takes &gt; 100ms to complete
reset.

Method used by driver to detect controller firmware crash during PQI was
incorrect in some cases.

Link: https://lore.kernel.org/r/165730605108.177165.1132931838384767071.stgit@brunhilda
Reviewed-by: Scott Benesh &lt;scott.benesh@microchip.com&gt;
Reviewed-by: Scott Teel &lt;scott.teel@microchip.com&gt;
Reviewed-by: Mike McGowen &lt;mike.mcgowen@microchip.com&gt;
Signed-off-by: Kevin Barnett &lt;kevin.barnett@microchip.com&gt;
Signed-off-by: Don Brace &lt;don.brace@microchip.com&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</content>
</entry>
<entry>
<title>scsi: smartpqi: Add PCI IDs for Lenovo controllers</title>
<updated>2022-07-14T03:42:03Z</updated>
<author>
<name>Mike McGowen</name>
<email>Mike.McGowen@microchip.com</email>
</author>
<published>2022-07-08T18:47:26Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=2a9c2ba2bc47d2df8791a1e32788c76cafa5584c'/>
<id>urn:sha1:2a9c2ba2bc47d2df8791a1e32788c76cafa5584c</id>
<content type='text'>
Add PCI IDs for Lenovo controllers (values in hex):

                                        VID  / DID  / SVID / SDID
                                        ----   ----   ----   ----
Lenovo 4350-8i HBA                      9005 / 028f / 1d49 / 0220
Lenovo 4350-16i HBA                     9005 / 028f / 1d49 / 0221
Lenovo 5350-8i RAID                     9005 / 028f / 1d49 / 0520
Lenovo 5350-8i Internal RAID            9005 / 028f / 1d49 / 0522
Lenovo 9350-8i RAID                     9005 / 028f / 1d49 / 0620
Lenovo 9350-8i Internal RAID            9005 / 028f / 1d49 / 0621
Lenovo 9350-16i RAID                    9005 / 028f / 1d49 / 0622
Lenovo 9350-16i Internal RAID           9005 / 028f / 1d49 / 0623

Link: https://lore.kernel.org/r/165730604598.177165.9910276232981721083.stgit@brunhilda
Reviewed-by: Scott Benesh &lt;scott.benesh@microchip.com&gt;
Reviewed-by: Scott Teel &lt;scott.teel@microchip.com&gt;
Reviewed-by: Kevin Barnett &lt;kevin.barnett@microchip.com&gt;
Signed-off-by: Mike McGowen &lt;Mike.McGowen@microchip.com&gt;
Signed-off-by: Don Brace &lt;don.brace@microchip.com&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</content>
</entry>
</feed>
