From: Ziqi Chen <ziqi.chen@oss.qualcomm.com>
To: Can Guo <can.guo@oss.qualcomm.com>,
bvanassche@acm.org, beanhuo@micron.com, peter.wang@mediatek.com,
martin.petersen@oracle.com, mani@kernel.org
Cc: linux-scsi@vger.kernel.org
Subject: Re: [PATCH v2 0/3] scsi: ufs: Harden TX EQTR error handling paths
Date: Thu, 2 Jul 2026 15:49:52 +0800 [thread overview]
Message-ID: <763e75d3-b603-4e90-8877-e602fa6168a5@oss.qualcomm.com> (raw)
In-Reply-To: <20260625121306.1655467-1-can.guo@oss.qualcomm.com>
On 6/25/2026 8:13 PM, Can Guo wrote:
> TX Equalization training currently has a few error-path gaps that can
> make the flow brittle and can leave variant/device cleanup incomplete.
>
> This series hardens TX EQTR in three places:
>
> 1. ufs-qcom: route SW FOM setup failures through the shared cleanup path
> so temporary device TX EQ settings are restored and link recovery is
> always attempted before exit.
> 2. core: treat RX_FOM DME read failures as best effort so TX EQTR can
> continue, and force failed lanes to deterministic 0 FOM.
> 3. core: always run tx_eqtr POST_CHANGE notify once PRE_CHANGE succeeds,
> even when TX EQTR fails, so variant cleanup is not skipped.
>
> Together these changes improve TX EQTR robustness without changing the
> normal success path.
>
> Dependency note:
> PATCH 3/3 depends on the patch below, which is still under review:
> https://lore.kernel.org/all/c71af930-c7b4-4480-b125-f35cbe35a16f@oss.qualcomm.com/
>
> Please apply this series on top of that patch (or a tree containing it).
>
> v1 -> v2:
> - Adopted Peter's comment (Patch 2)
>
> Can Guo (3):
> scsi: ufs: ufs-qcom: Restore TX Equalization settings on FOM failure
> scsi: ufs: core: Tolerate RX_FOM read failures in TX EQTR
> scsi: ufs: core: Always run tx_eqtr POST_CHANGE notify
>
> drivers/ufs/core/ufs-txeq.c | 33 ++++++++++++++++++++++++---------
> drivers/ufs/host/ufs-qcom.c | 9 ++++-----
> 2 files changed, 28 insertions(+), 14 deletions(-)
Reviewed-by: Ziqi Chen <ziqi.chen@oss.qualcomm.com>
prev parent reply other threads:[~2026-07-02 7:50 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-25 12:13 [PATCH v2 0/3] scsi: ufs: Harden TX EQTR error handling paths Can Guo
2026-06-25 12:13 ` [PATCH v2 1/3] scsi: ufs: ufs-qcom: Restore TX Equalization settings on FOM failure Can Guo
2026-07-01 20:32 ` Bean Huo
2026-06-25 12:13 ` [PATCH v2 2/3] scsi: ufs: core: Tolerate RX_FOM read failures in TX EQTR Can Guo
2026-06-26 9:04 ` Peter Wang (王信友)
2026-07-01 20:46 ` Bean Huo
2026-06-25 12:13 ` [PATCH v2 3/3] scsi: ufs: core: Always run tx_eqtr POST_CHANGE notify Can Guo
2026-07-01 20:49 ` Bean Huo
2026-07-02 7:49 ` Ziqi Chen [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=763e75d3-b603-4e90-8877-e602fa6168a5@oss.qualcomm.com \
--to=ziqi.chen@oss.qualcomm.com \
--cc=beanhuo@micron.com \
--cc=bvanassche@acm.org \
--cc=can.guo@oss.qualcomm.com \
--cc=linux-scsi@vger.kernel.org \
--cc=mani@kernel.org \
--cc=martin.petersen@oracle.com \
--cc=peter.wang@mediatek.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