<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/scsi/isci/request.c, branch linux-5.0.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.0.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.0.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2018-12-21T01:03:56Z</updated>
<entry>
<title>scsi: isci: request: mark expected switch fall-through</title>
<updated>2018-12-21T01:03:56Z</updated>
<author>
<name>Gustavo A. R. Silva</name>
</author>
<published>2018-11-28T04:30:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=da7903092b880b25971ca9103cb0b934a44ace2b'/>
<id>urn:sha1:da7903092b880b25971ca9103cb0b934a44ace2b</id>
<content type='text'>
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where
we are expecting to fall through.

Notice that, in this particular case, a dash is added as a token in order
to separate the "Fall through" annotation from the rest of the comment on
the same line, which is what GCC is expecting to find.

Signed-off-by: Gustavo A. R. Silva &lt;gustavo@embeddedor.com&gt;
Acked-by: Artur Paszkiewicz &lt;artur.paszkiewicz@intel.com&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</content>
</entry>
<entry>
<title>scsi: isci: Use proper enumerated type in atapi_d2h_reg_frame_handler</title>
<updated>2018-10-17T01:37:43Z</updated>
<author>
<name>Nathan Chancellor</name>
</author>
<published>2018-09-27T00:11:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e9e9a103528c7e199ead6e5374c9c52cf16b5802'/>
<id>urn:sha1:e9e9a103528c7e199ead6e5374c9c52cf16b5802</id>
<content type='text'>
Clang warns when one enumerated type is implicitly converted to another.

drivers/scsi/isci/request.c:1629:13: warning: implicit conversion from
enumeration type 'enum sci_io_status' to different enumeration type
'enum sci_status' [-Wenum-conversion]
                        status = SCI_IO_FAILURE_RESPONSE_VALID;
                               ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/scsi/isci/request.c:1631:12: warning: implicit conversion from
enumeration type 'enum sci_io_status' to different enumeration type
'enum sci_status' [-Wenum-conversion]
                status = SCI_IO_FAILURE_RESPONSE_VALID;
                       ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

status is of type sci_status but SCI_IO_FAILURE_RESPONSE_VALID is of
type sci_io_status. Use SCI_FAILURE_IO_RESPONSE_VALID, which is from
sci_status and has SCI_IO_FAILURE_RESPONSE_VALID's exact value since
that is what SCI_IO_FAILURE_RESPONSE_VALID is mapped to in the isci.h
file.

Link: https://github.com/ClangBuiltLinux/linux/issues/153
Signed-off-by: Nathan Chancellor &lt;natechancellor@gmail.com&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</content>
</entry>
<entry>
<title>scsi: isci: fix typo in function names</title>
<updated>2017-07-12T21:09:57Z</updated>
<author>
<name>Colin Ian King</name>
</author>
<published>2017-07-03T10:17:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f5f44c6ffe0b39ee37e1d2963ee0d48cbc1ec038'/>
<id>urn:sha1:f5f44c6ffe0b39ee37e1d2963ee0d48cbc1ec038</id>
<content type='text'>
There are a couple of typos in function names and spelling of request
where the letters u and e are swapped:

scu_ssp_reqeust_construct_task_context
scu_sata_reqeust_construct_task_context

Fix the spelling of request.

Signed-off-by: Colin Ian King &lt;colin.king@canonical.com&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</content>
</entry>
<entry>
<title>scsi: isci: fix typo in deg_dbg message</title>
<updated>2016-11-14T23:34:02Z</updated>
<author>
<name>Colin Ian King</name>
</author>
<published>2016-11-12T18:30:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=63eb7b6bc7a35ce66dbf829850ad9b46fb3ecf5e'/>
<id>urn:sha1:63eb7b6bc7a35ce66dbf829850ad9b46fb3ecf5e</id>
<content type='text'>
Trivial fix to typo "repsonse" to "response" in dev_dbg message.

Signed-off-by: Colin Ian King &lt;colin.king@canonical.com&gt;
Reviewed-by: Bart Van Assche &lt;bart.vanassche@sandisk.com&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</content>
</entry>
<entry>
<title>libata/libsas: Define ATA_CMD_NCQ_NON_DATA</title>
<updated>2016-05-09T16:36:44Z</updated>
<author>
<name>Hannes Reinecke</name>
</author>
<published>2016-04-25T10:45:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=661ce1f0c4a69f92ad781d8d2c205c90dd9c5833'/>
<id>urn:sha1:661ce1f0c4a69f92ad781d8d2c205c90dd9c5833</id>
<content type='text'>
Define the NCQ NON DATA command and update libsas to handle it
correctly.

Signed-off-by: Hannes Reinecke &lt;hare@suse.com&gt;
Signed-off-by: Tejun Heo &lt;tj@kernel.org&gt;
</content>
</entry>
<entry>
<title>libsas: enable FPDMA SEND/RECEIVE</title>
<updated>2016-05-09T16:36:44Z</updated>
<author>
<name>Hannes Reinecke</name>
</author>
<published>2016-04-25T10:45:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ef026b18bb8260e21b4a61685eac46ecdc490d00'/>
<id>urn:sha1:ef026b18bb8260e21b4a61685eac46ecdc490d00</id>
<content type='text'>
Update libsas and dependent drivers to handle FPDMA
SEND/RECEIVE correctly.

Signed-off-by: Hannes Reinecke &lt;hare@suse.com&gt;
Signed-off-by: Tejun Heo &lt;tj@kernel.org&gt;
</content>
</entry>
<entry>
<title>libsas: use ata_dev_classify()</title>
<updated>2014-11-05T16:22:06Z</updated>
<author>
<name>Hannes Reinecke</name>
</author>
<published>2014-11-05T12:08:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1cbd772d9aaf6c697935cb855860b66cebacf950'/>
<id>urn:sha1:1cbd772d9aaf6c697935cb855860b66cebacf950</id>
<content type='text'>
Use the ata device class from libata in libsas instead of checking
the supported command set and switch to using ata_dev_classify()
instead of our own method.

Cc: Tejun Heo &lt;tj@kernel.org&gt;
Cc: Dan Williams &lt;dan.j.williams@intel.com&gt;
Acked-by: Christoph Hellwig &lt;hch@lst.de&gt;
Signed-off-by: Hannes Reinecke &lt;hare@suse.de&gt;
Signed-off-by: Tejun Heo &lt;tj@kernel.org&gt;
</content>
</entry>
<entry>
<title>[SCSI] isci: fix needless ata reset escalations</title>
<updated>2014-03-15T17:18:53Z</updated>
<author>
<name>Dan Williams</name>
</author>
<published>2014-02-06T20:23:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2193b1b16cc7c690f74f917c50004dd00c99088e'/>
<id>urn:sha1:2193b1b16cc7c690f74f917c50004dd00c99088e</id>
<content type='text'>
isci is needlessly tying libata's hands by returning
SAM_STAT_CHECK_CONDITION to some ata errors.  Instead, prefer
SAS_PROTO_RESPONSE to let libata (via sas_ata_task_done()) disposition
the device-to-host fis.

For example isci is triggering an HSM Violation where AHCI is showing a
simple media error for the same bus condition:

isci:
ata7.00: failed command: READ VERIFY SECTOR(S)
ata7.00: cmd 40/00:01:00:00:00/00:00:00:00:00/e0 tag 0
         res 01/04:00:00:00:00/00:00:00:00:00/e0 Emask 0x3 (HSM violation)

ahci:
ata6.00: failed command: READ VERIFY SECTOR(S)
ata6.00: cmd 40/00:01:00:00:00/00:00:00:00:00/e0 tag 0
         res 51/40:01:00:00:00/00:00:00:00:00/e0 Emask 0x9 (media error)

Note that the isci response matches this from sas_ata_task_done():
	/* We saw a SAS error. Send a vague error. */
	[..]
	dev-&gt;sata_dev.fis[3] = 0x04; /* status err */
	dev-&gt;sata_dev.fis[2] = ATA_ERR;

The end effect is that isci is needlessly triggering hard resets when
they are not necessary.

Reported-by: Xun Ni &lt;xun.ni@intel.com&gt;
Tested-by: Nelson Cheng &lt;nelson.cheng@intel.com&gt;
Acked-by: Lukasz Dorau &lt;lukasz.dorau@intel.com&gt;
Signed-off-by: Dan Williams &lt;dan.j.williams@intel.com&gt;
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;
</content>
</entry>
<entry>
<title>[SCSI] isci: fix breakage caused by &gt;16byte CDB patch</title>
<updated>2013-07-24T21:18:12Z</updated>
<author>
<name>James Bottomley</name>
</author>
<published>2013-07-24T19:43:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e1be09808e030d57bb743618eb41e2bc31dd464c'/>
<id>urn:sha1:e1be09808e030d57bb743618eb41e2bc31dd464c</id>
<content type='text'>
Oops, apparently no-one I cc'd at intel actually bothered to check this
patch for the isci driver:

commit e73823f7a2c921dcf068d34ea03bd682498d9e42
Author: James Bottomley &lt;JBottomley@Parallels.com&gt;
Date:   Tue May 7 15:38:18 2013 -0700

    [SCSI] libsas: implement &gt; 16 byte CDB support

sci_swab32_cpy needs multiples of four, so for commands that aren't that, it's
rounding the wrong way.  fix by doing (len+3)/4 instead of len/4.

Reported-by: Tony Luck &lt;tony.luck@intel.com&gt;
Tested-by: Tony Luck &lt;tony.luck@intel.com&gt;
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;
</content>
</entry>
<entry>
<title>[SCSI] libsas: implement &gt; 16 byte CDB support</title>
<updated>2013-06-04T18:15:59Z</updated>
<author>
<name>James Bottomley</name>
</author>
<published>2013-05-07T22:38:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e73823f7a2c921dcf068d34ea03bd682498d9e42'/>
<id>urn:sha1:e73823f7a2c921dcf068d34ea03bd682498d9e42</id>
<content type='text'>
Remove the arbitrary expectation in libsas that all SCSI commands are 16 bytes
or less.  Instead do all copies via cmd-&gt;cmd_len (and use a pointer to this in
the libsas task instead of a copy).  Note that this still doesn't enable &gt; 16
byte CDB support in the underlying drivers because their internal format has
to be fixed and the wire format of &gt; 16 byte CDBs according to the SAS spec is
different.  the libsas drivers (isci, aic94xx, mvsas and pm8xxx are all
updated for this change.

Cc: Lukasz Dorau &lt;lukasz.dorau@intel.com&gt;
Cc: Maciej Patelczyk &lt;maciej.patelczyk@intel.com&gt;
Cc: Dave Jiang &lt;dave.jiang@intel.com&gt;
Cc: Jack Wang &lt;xjtuwjp@gmail.com&gt;
Cc: Lindar Liu &lt;lindar_liu@usish.com&gt;
Cc: Xiangliang Yu &lt;yuxiangl@marvell.com&gt;
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;
</content>
</entry>
</feed>
