* Re: [PATCH 1/5] scsi: hisi_sas: Add host_tagset_enable module param for v3 hw
[not found] ` <e5ab4e5a-33d0-6102-1c5c-f1f83a752346@huawei.com>
@ 2025-03-31 7:43 ` John Garry
2025-04-01 1:12 ` yangxingui
0 siblings, 1 reply; 2+ messages in thread
From: John Garry @ 2025-03-31 7:43 UTC (permalink / raw)
To: yangxingui, Yihang Li, martin.petersen, James.Bottomley
Cc: linux-scsi, linux-kernel, linuxarm, liuyonglong, prime.zeng,
linux-ide
On 29/03/2025 09:49, yangxingui wrote:
> Hi,John
>
> On 2025/3/29 16:50, John Garry wrote:
>> On 29/03/2025 07:32, Yihang Li wrote:
>>
>> +
>>
>>> From: Xingui Yang<yangxingui@huawei.com>
>>>
>>> After driver exposes all HW queues and application submits IO to
>>> multiple
>>> queues in parallel, if NCQ and non-NCQ commands are mixed to sata disk,
>>> ata_qc_defer() causes non-NCQ commands to be requeued and possibly
>>> repeated
>>> forever.
>>
>> I don't think that it is a good idea to mask out bugs with module
>> parameters.
>>
>> Was this the same libata/libsas issue reported some time ago?
>
> Yeah,related to this issue: https://lore.kernel.org/linux-block/
> eef1e927-c9b2-c61d-7f48-92e65d8b0418@huawei.com/
>
> And, Niklas tried to help fix this problem: https://lore.kernel.org/
> linux-scsi/ZynmfyDA9R-lrW71@ryzen/
>
> Considering that there is no formal solution yet. And our users rarely
> use SATA disks and SAS disks together on a single machine. For this
> reason, they can flexibly turn off the exposure of multiple queues in
> the scenario of using only SATA disks. In addition, it is also
> convenient to conduct performance comparison tests to expose multiple
> hardware queues and single queues.
>
The change in this series does not even solve the issues, as:
- you do not guarantee no SAS/SATA mix without that module param enabled
- the driver still uses managed interrupts in both cases, so with
disabling host_tagset you are now exposed to CPU hotplug issue of IO
being in-flight when HW queue interrupt is shutdown
And pm8001 driver will have the same issue, so we need to find a proper fix.
Let me consider this issue more.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 1/5] scsi: hisi_sas: Add host_tagset_enable module param for v3 hw
2025-03-31 7:43 ` [PATCH 1/5] scsi: hisi_sas: Add host_tagset_enable module param for v3 hw John Garry
@ 2025-04-01 1:12 ` yangxingui
0 siblings, 0 replies; 2+ messages in thread
From: yangxingui @ 2025-04-01 1:12 UTC (permalink / raw)
To: John Garry, Yihang Li, martin.petersen, James.Bottomley
Cc: linux-scsi, linux-kernel, linuxarm, liuyonglong, prime.zeng,
linux-ide
On 2025/3/31 15:43, John Garry wrote:
> On 29/03/2025 09:49, yangxingui wrote:
>> Hi,John
>>
>> On 2025/3/29 16:50, John Garry wrote:
>>> On 29/03/2025 07:32, Yihang Li wrote:
>>>
>>> +
>>>
>>>> From: Xingui Yang<yangxingui@huawei.com>
>>>>
>>>> After driver exposes all HW queues and application submits IO to
>>>> multiple
>>>> queues in parallel, if NCQ and non-NCQ commands are mixed to sata disk,
>>>> ata_qc_defer() causes non-NCQ commands to be requeued and possibly
>>>> repeated
>>>> forever.
>>>
>>> I don't think that it is a good idea to mask out bugs with module
>>> parameters.
>>>
>>> Was this the same libata/libsas issue reported some time ago?
>>
>> Yeah,related to this issue: https://lore.kernel.org/linux-block/
>> eef1e927-c9b2-c61d-7f48-92e65d8b0418@huawei.com/
>>
>> And, Niklas tried to help fix this problem: https://lore.kernel.org/
>> linux-scsi/ZynmfyDA9R-lrW71@ryzen/
>>
>> Considering that there is no formal solution yet. And our users rarely
>> use SATA disks and SAS disks together on a single machine. For this
>> reason, they can flexibly turn off the exposure of multiple queues in
>> the scenario of using only SATA disks. In addition, it is also
>> convenient to conduct performance comparison tests to expose multiple
>> hardware queues and single queues.
>>
>
> The change in this series does not even solve the issues, as:
> - you do not guarantee no SAS/SATA mix without that module param enabled
> - the driver still uses managed interrupts in both cases, so with
> disabling host_tagset you are now exposed to CPU hotplug issue of IO
> being in-flight when HW queue interrupt is shutdown
Yes, there will be such problems.
>
> And pm8001 driver will have the same issue, so we need to find a proper
> fix.
>
> Let me consider this issue more.
OK.
Thanks,
Xingui
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-04-01 1:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20250329073236.2300582-1-liyihang9@huawei.com>
[not found] ` <20250329073236.2300582-2-liyihang9@huawei.com>
[not found] ` <f53505e6-9bfa-4553-91cc-497512a6977f@oracle.com>
[not found] ` <e5ab4e5a-33d0-6102-1c5c-f1f83a752346@huawei.com>
2025-03-31 7:43 ` [PATCH 1/5] scsi: hisi_sas: Add host_tagset_enable module param for v3 hw John Garry
2025-04-01 1:12 ` yangxingui
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox