<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/include/scsi/sas_ata.h, branch linux-rolling-stable</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-rolling-stable</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-rolling-stable'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2025-07-25T13:03:57Z</updated>
<entry>
<title>scsi: libsas: Move declarations of internal functions to sas_internal.h</title>
<updated>2025-07-25T13:03:57Z</updated>
<author>
<name>Damien Le Moal</name>
</author>
<published>2025-07-25T01:58:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=704ed03abf6b1c2752a8b16446a5ebf18694fefe'/>
<id>urn:sha1:704ed03abf6b1c2752a8b16446a5ebf18694fefe</id>
<content type='text'>
Move the declaration of all functions used only within libsas from
include/scsi/sas_ata.h to drivers/scsi/libsas/sas_internal.h.

No functional changes.

Signed-off-by: Damien Le Moal &lt;dlemoal@kernel.org&gt;
Link: https://lore.kernel.org/r/20250725015818.171252-5-dlemoal@kernel.org
Reviewed-by: Johannes Thumshirn &lt;johannes.thumshirn@wdc.com&gt;
Reviewed-by: John Garry &lt;john.g.garry@oracle.com&gt;
Reviewed-by: Jason Yan &lt;yanaijie@huawei.com&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</content>
</entry>
<entry>
<title>scsi: libsas: Make sas_get_ata_info() static</title>
<updated>2025-07-25T13:03:56Z</updated>
<author>
<name>Damien Le Moal</name>
</author>
<published>2025-07-25T01:58:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bd31394aabf36ee18781c6371e02d789484ffda3'/>
<id>urn:sha1:bd31394aabf36ee18781c6371e02d789484ffda3</id>
<content type='text'>
The function sas_get_ata_info() is used only in
drivers/scsi/libsas/sas_ata.c. Remove its definition from
include/scsi/sas_ata.h and make this function static.

No functional changes.

Signed-off-by: Damien Le Moal &lt;dlemoal@kernel.org&gt;
Link: https://lore.kernel.org/r/20250725015818.171252-4-dlemoal@kernel.org
Reviewed-by: Johannes Thumshirn &lt;johannes.thumshirn@wdc.com&gt;
Reviewed-by: John Garry &lt;john.g.garry@oracle.com&gt;
Reviewed-by: Jason Yan &lt;yanaijie@huawei.com&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</content>
</entry>
<entry>
<title>scsi: libsas: Refactor dev_is_sata()</title>
<updated>2025-07-25T13:03:56Z</updated>
<author>
<name>Damien Le Moal</name>
</author>
<published>2025-07-25T01:58:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=54091eee08acebfb5e971611c3f189e7577a1058'/>
<id>urn:sha1:54091eee08acebfb5e971611c3f189e7577a1058</id>
<content type='text'>
Use a switch statement in dev_is_sata() to make the code more readable
(and probably slightly better than a series of or conditions). Also have
this inline function return a boolean instead of an integer.

No functional changes.

Signed-off-by: Damien Le Moal &lt;dlemoal@kernel.org&gt;
Link: https://lore.kernel.org/r/20250725015818.171252-2-dlemoal@kernel.org
Reviewed-by: John Garry &lt;john.g.garry@oracle.com&gt;
Reviewed-by: Jason Yan &lt;yanaijie@huawei.com&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</content>
</entry>
<entry>
<title>scsi: libsas: Define NCQ Priority sysfs attributes for SATA devices</title>
<updated>2024-03-25T20:00:06Z</updated>
<author>
<name>Igor Pylypiv</name>
</author>
<published>2024-03-07T21:44:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b4d3ddd2df7531e35c5f4e0b048d0999851747ae'/>
<id>urn:sha1:b4d3ddd2df7531e35c5f4e0b048d0999851747ae</id>
<content type='text'>
libata sysfs attributes cannot be used for libsas-managed SATA devices
because the ata_port location is different for libsas.

Defined sysfs attributes (visible for SATA devices only):

 - /sys/block/sda/device/ncq_prio_enable
 - /sys/block/sda/device/ncq_prio_supported

The newly defined attributes will pass the correct ata_port to libata
helper functions.

Reviewed-by: John Garry &lt;john.g.garry@oracle.com&gt;
Reviewed-by: Damien Le Moal &lt;dlemoal@kernel.org&gt;
Reviewed-by: Jason Yan &lt;yanaijie@huawei.com&gt;
Signed-off-by: Igor Pylypiv &lt;ipylypiv@google.com&gt;
Link: https://lore.kernel.org/r/20240307214418.3812290-3-ipylypiv@google.com
Reviewed-by: Niklas Cassel &lt;cassel@kernel.org&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</content>
</entry>
<entry>
<title>scsi: libsas: Factor out sas_ata_add_dev()</title>
<updated>2022-12-30T16:59:11Z</updated>
<author>
<name>Jason Yan</name>
</author>
<published>2022-12-14T13:38:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7cc7646b4b24430437e0cff104fadeafd470a7ce'/>
<id>urn:sha1:7cc7646b4b24430437e0cff104fadeafd470a7ce</id>
<content type='text'>
Factor out sas_ata_add_dev() and put it in sas_ata.c since it is a SATA
related interface. Also follow the standard coding style to define an
inline empty function when CONFIG_SCSI_SAS_ATA is not enabled.

Cc: John Garry &lt;john.g.garry@oracle.com&gt;
Signed-off-by: Jason Yan &lt;yanaijie@huawei.com&gt;
Reviewed-by: John Garry &lt;john.g.garry@oracle.com&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</content>
</entry>
<entry>
<title>scsi: libsas: Change the coding style of sas_discover_sata()</title>
<updated>2022-12-30T16:59:10Z</updated>
<author>
<name>Jason Yan</name>
</author>
<published>2022-12-14T13:38:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ffebb38efee3e6bbcccd0b7babf0ede8890794cd'/>
<id>urn:sha1:ffebb38efee3e6bbcccd0b7babf0ede8890794cd</id>
<content type='text'>
The coding style where calling this interface is inconsistent with other
interfaces for SATA devices. The standard style for other SATA interfaces
is like:

    #ifdefine CONFIG_SCSI_SAS_ATA
    void sas_ata_task_abort(struct sas_task *task);
    #else
    static inline void sas_ata_task_abort(struct sas_task *task)
    {
    }
    #endif

And the callers does not have to do things like "#ifdefine CONFIG_SCSI_SAS_ATA"
and may call the interface directly. So follow the standard style here.

Cc: John Garry &lt;john.g.garry@oracle.com&gt;
Signed-off-by: Jason Yan &lt;yanaijie@huawei.com&gt;
Reviewed-by: Jack Wang &lt;jinpu.wang@ionos.com&gt;
Reviewed-by: John Garry &lt;john.g.garry@oracle.com&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</content>
</entry>
<entry>
<title>scsi: libsas: Do not export sas_ata_wait_after_reset()</title>
<updated>2022-11-26T02:26:02Z</updated>
<author>
<name>Jie Zhan</name>
</author>
<published>2022-11-18T08:37:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4d450cf2b00d34b53f52d93216dd23af57bdca73'/>
<id>urn:sha1:4d450cf2b00d34b53f52d93216dd23af57bdca73</id>
<content type='text'>
sas_ata_wait_after_reset() does not need to be exported since it is no
longer referenced outside libsas.

Signed-off-by: Jie Zhan &lt;zhanjie9@hisilicon.com&gt;
Link: https://lore.kernel.org/r/20221118083714.4034612-6-zhanjie9@hisilicon.com
Reviewed-by: John Garry &lt;john.garry@huawei.com&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</content>
</entry>
<entry>
<title>scsi: libsas: Add smp_ata_check_ready_type()</title>
<updated>2022-11-26T02:26:02Z</updated>
<author>
<name>Jie Zhan</name>
</author>
<published>2022-11-18T08:37:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9181ce3cb5d96f0ee28246a857ca651830fa3746'/>
<id>urn:sha1:9181ce3cb5d96f0ee28246a857ca651830fa3746</id>
<content type='text'>
Create function smp_ata_check_ready_type() for LLDDs to wait for SATA
devices to come up after a link reset.

Signed-off-by: Jie Zhan &lt;zhanjie9@hisilicon.com&gt;
Link: https://lore.kernel.org/r/20221118083714.4034612-4-zhanjie9@hisilicon.com
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</content>
</entry>
<entry>
<title>scsi: libsas: Add sas_ata_device_link_abort()</title>
<updated>2022-10-18T02:37:45Z</updated>
<author>
<name>John Garry</name>
</author>
<published>2022-10-17T09:20:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=44112922674b94a7d699dfff6307fc830018df7c'/>
<id>urn:sha1:44112922674b94a7d699dfff6307fc830018df7c</id>
<content type='text'>
Similar to how AHCI handles NCQ errors in ahci_error_intr() -&gt;
ata_port_abort() -&gt; ata_do_link_abort(), add an NCQ error handler for LLDDs
to call to initiate a link abort.

This will mark all outstanding QCs as failed and kick-off EH.

Note:

A "force reset" argument is added for drivers which require the ATA error
handling to always reset the device.

A driver may require this feature for when SATA device per-SCSI cmnd
resources are only released during reset for ATA EH. As such, we need an
option to force reset to be done, regardless of what any EH autopsy
decides.

The SATA device FIS fields are set to indicate a device error from
ata_eh_analyze_tf().

Suggested-by: Damien Le Moal &lt;damien.lemoal@opensource.wdc.com&gt;
Suggested-by: Niklas Cassel &lt;niklas.cassel@wdc.com&gt;
Signed-off-by: John Garry &lt;john.garry@huawei.com&gt;
Link: https://lore.kernel.org/r/1665998435-199946-2-git-send-email-john.garry@huawei.com
Tested-by: Damien Le Moal &lt;damien.lemoal@opensource.wdc.com&gt;
Tested-by: Niklas Cassel &lt;niklas.cassel@wdc.com&gt; # pm80xx
Reviewed-by: Jason Yan &lt;yanaijie@huawei.com&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</content>
</entry>
<entry>
<title>scsi: libsas: Refactor sas_ata_hard_reset()</title>
<updated>2022-05-20T00:16:25Z</updated>
<author>
<name>John Garry</name>
</author>
<published>2022-05-12T11:15:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=057e5fc03369f8f2ed9b2ca884754b1d80b83620'/>
<id>urn:sha1:057e5fc03369f8f2ed9b2ca884754b1d80b83620</id>
<content type='text'>
Create function sas_ata_wait_after_reset() from sas_ata_hard_reset() as
some LLDDs may want to check for a remote ATA phy is up after reset.

Link: https://lore.kernel.org/r/1652354134-171343-2-git-send-email-john.garry@huawei.com
Tested-by: Yihang Li &lt;liyihang6@hisilicon.com&gt;
Reviewed-by: Xiang Chen &lt;chenxiang66@hisilicon.com&gt;
Signed-off-by: John Garry &lt;john.garry@huawei.com&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</content>
</entry>
</feed>
