Re: [PATCH] scsi: ufs: spacemit: k3: change to FASTAUTO before the FAST power mode
From: Thomas Roos
Date: Fri Dec 04 2026 - 05:30:52 EST
(Resending as plain text, the lists rejected the HTML version. Sorry for
the duplicate.)
Hi Yixun,
On Sat, Nov 28, 2026, Yixun Lan wrote:
> I actually do get report of this issue on YMTC UFS chip, but haven't seen
> problem with Kingston UFS chip
Good to know, that matches what I see. I only have the YMTC part here, so
I can't tell whether the FASTAUTO step is harmless on other devices.
> Vendor provide similar patch for this, but I'm rather skeptical on it
> as a proper fix and ask them to clarify with IP/UFS chip vendor..
Fair enough. I'd be glad to hear what they say. Could you keep me on Cc,
or forward their explanation? If it turns out to be a PHY setting rather
than the sequence, I'm happy to test that instead.
> FYI, I'd expect to see basic UFS patch merged first, then we can address
> this issue separately. Besides, I do have several boards on hand, but none
> of them shipped with YMTC UFS, so need someone to help reviewing and
> testing the patch.
Agreed. I can test anything on the CoM260 IFX with the YMTC
YMUS8B5TH1A1C1, both your series and later versions of this patch.
> I'd prefer it iterated as a separate patch on top of mine, thanks
OK, I'll keep it separate and rebase it on top of your series.
> Just curious, is "HS-G1 rate A" mode stable without this patch?
> or any specific change needed to change to this mode?
No. I re-tested today with plain v8 on 7.3.4, without this patch, and
limited the mode by editing the UFS_SPACEMIT_K3_LIMIT_* defines in
ufs-spacemit.h:
HS-G3B x2 (default): link lost, PA_ERR 0x80000001 and DL_ERR
0x80004000/0x80001800/0x80005800 in a storm
HS-G1A x2: link lost, DL_ERR 0x80000002/0x80000001/0x80002000,
PA_ERR 0x80000010
HS-G1A x1: same as G1A x2
In all three cases the error handler does not recover the link and the
rootfs on UFS is never found. My statement in the commit message that
HS-G1A works came from an early bring-up with additional driver changes;
it does not hold for plain v8, and I'll fix the commit message in v2.
With this patch on top of v8 the link runs at HS-G3B x2 FAST with no UFS
errors, raw sequential reads at about 1 GiB/s, and a 256 MiB write and
read-back matches.
For what it's worth, the SpacemiT U-Boot on this board already brings the
link to HS-G3B x2 FAST before Linux starts, so the device itself is fine
at that mode.
Thanks,
Thomas