From: yangxingui <yangxingui@huawei.com>
To: John Garry <john.g.garry@oracle.com>, <yanaijie@huawei.com>,
<jejb@linux.ibm.com>, <martin.petersen@oracle.com>
Cc: <linux-scsi@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<linuxarm@huawei.com>, <liuyonglong@huawei.com>,
<kangfenglong@huawei.com>
Subject: Re: [PATCH v3 0/2] scsi: libsas: Support spinup notification for SAS devices
Date: Thu, 6 Aug 2026 09:45:49 +0800 [thread overview]
Message-ID: <eebb9aec-0a77-b609-ff87-9e8be88cf4e5@huawei.com> (raw)
In-Reply-To: <9e4c4aab-81d2-4f5b-bbcf-087eb92feb6d@oracle.com>
On 2026/8/5 19:43, John Garry wrote:
> On 04/08/2026 10:30, yangxingui wrote:
>>>
>>> How would other SAS HBAs which use libsas handle this scenario? Since
>>> they have FW, would the FW automatically issue this NOTIFY(ENABLE
>>> SPINUP)?
>>>
>>> I just wonder why hisi_sas seems to be only driver which would need
>>> this.
>>
>> Thanks for the question. This affects only SAS HDDs. I checked pm8001,
>> isci, and aic94xx — all handle NOTIFY(ENABLE SPINUP) at the driver level:
>>
>> - pm8001: sends once at phy-up, then mdelay(200) — comment: "delay a
>> moment to wait disk to spinup" — before notifying libsas.
>>
>> - isci: enables hardware periodic insertion during link idle (ENABLE
>> bit in notify_enable_spinup_control), cleared at phy stop.
>>
>> - aic94xx: enables microcode periodic insertion during link idle
>> (NOTIFY_TIMER_TIMEOUT = 500ms interval), stops at phy down.
>>
>> hisi_sas also calls sl_notify_ssp() at phy-up, but the NOTIFY_EN bit
>> is held for only 1ms — msleep(1) between setting and clearing — before
>> immediately notifying libsas.
>>
>> The root cause appears to be that 1ms is insufficient compared to
>> pm8001's 200ms. An alternative to hisi_sas would be to simply increase
>> the hold time in sl_notify_ssp() to match pm8001's approach, keeping
>> the fix within hisi_sas.
>>
>> Would you prefer this simpler approach, or do you still see value in
>> the libsas-level sense detection and callback from hisi_sas? ^-^
>
> I think that if you can resolve this in the LL driver then that would be
> better.
Okay, thanks a lot.
Xingui
prev parent reply other threads:[~2026-08-06 1:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-03 2:05 [PATCH v3 0/2] scsi: libsas: Support spinup notification for SAS devices Xingui Yang
2026-08-03 2:05 ` [PATCH v3 1/2] scsi: libsas: Add PHYE_NOTIFY_ENABLE_SPINUP phy event for ASC/ASCQ=0x04/0x11 Xingui Yang
2026-08-03 2:05 ` [PATCH v3 2/2] scsi: hisi_sas: Add lldd_notify_enable_spinup callback for SAS devices Xingui Yang
2026-08-04 7:35 ` [PATCH v3 0/2] scsi: libsas: Support spinup notification " John Garry
2026-08-04 9:30 ` yangxingui
2026-08-05 11:43 ` John Garry
2026-08-06 1:45 ` yangxingui [this message]
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=eebb9aec-0a77-b609-ff87-9e8be88cf4e5@huawei.com \
--to=yangxingui@huawei.com \
--cc=jejb@linux.ibm.com \
--cc=john.g.garry@oracle.com \
--cc=kangfenglong@huawei.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=linuxarm@huawei.com \
--cc=liuyonglong@huawei.com \
--cc=martin.petersen@oracle.com \
--cc=yanaijie@huawei.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