[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4f287a32-d24f-47dc-bec5-a4b94895e135@oracle.com>
Date: Wed, 26 Feb 2025 08:57:17 +0000
From: John Garry <john.g.garry@...cle.com>
To: yangxingui <yangxingui@...wei.com>, liyihang9@...wei.com,
yanaijie@...wei.com
Cc: jejb@...ux.ibm.com, martin.petersen@...cle.com, linux-scsi@...r.kernel.org,
linux-kernel@...r.kernel.org, linuxarm@...wei.com,
prime.zeng@...wei.com, liuyonglong@...wei.com, kangfenglong@...wei.com,
liyangyang20@...wei.com, f.fangjian@...wei.com,
xiabing14@...artners.com
Subject: Re: [PATCH v3 1/3] scsi: hisi_sas: Enable force phy when SATA disk
directly connected
On 25/02/2025 09:35, yangxingui wrote:
>>>>
>>>> pm8001 sends sas_notify_port_event(sas_phy, PORTE_LINK_RESET_ERR,)
>>>> link reset errors - can you consider doing that in
>>>> hisi_sas_update_port_id() when you find an inconstant port id?
>>> Currently during phyup, the hw port id may change, and the
>>> corresponding hisi_sas_port.id and the port id in itct are not
>>> updated synchronously. The problem caused is not a link error, so we
>>> don't need deform port, just update the port id when phyup.
>>
>> Sure, but I am just trying to keep this simple. If you deform and
>> reform the port - and so lose and find the disk (which does the itct
>> config) - will that solve the problem?
>
> 1、phyup ->form port -> eh -> ata reset -> found hw port change ->
> deform port -> let dev gone -> refound
>
> 2、controller reset -> phyup -> finish controller reset -> found hw port
> change -> deform port -> let dev gone -> refound
>
> I also thought about the plan you mentioned in the early days. The above
> will make the process more complicated and retriggering phyup may result
> in a new round of port id changes. Lose and find the disk will cause the
> upper layer IO to report error when controller reset. It seems that it
> is better to make the upper layer unaware of the hw port id change when
> phyup in reset, like ata reset or controller reset. ^_^
The lldd_dev_found CB is where you should set the itct, and it is only
possible to do that if you report the device gone first. So that seems
like a simpler solution.
Powered by blists - more mailing lists