Re: [PATCH v4 05/12] scsi: ufs: core: Add debugfs entries for TX Equalization params

From: Bean Huo

Date: Mon Mar 23 2026 - 05:22:45 EST


On Fri, 2026-03-20 at 20:10 -0700, Can Guo wrote:
> Add debugfs support for UFS TX Equalization and UFS TX Equalization
> Training (EQTR) to facilitate runtime inspection of link quality. These
> entries allow developers to monitor and optimize TX Equalization
> parameters and EQTR records during live operation.
>
> The debugfs entries are organized on a per-gear basis under the HBA's
> debugfs root. Since TX EQTR is only defined for High Speed Gear 4 (HS-G4)
> and above, EQTR-related entries are explicitly excluded for HS-G1
> through HS-G3 to avoid exposing unsupported attributes.
>
> The ufshcd's debugfs folder structure will look like below:
>
> /sys/kernel/debug/ufshcd/*ufs*/
> > --tx_eq_hs_gear1/
> >   |--device_tx_eq_params
> >   |--host_tx_eq_params
> > --tx_eq_hs_gear2/
> > --tx_eq_hs_gear3/
> > --tx_eq_hs_gear4/
> > --tx_eq_hs_gear5/
> > --tx_eq_hs_gear6/
>    |--device_tx_eq_params
>    |--device_tx_eqtr_record
>    |--host_tx_eq_params
>    |--host_tx_eqtr_record
>
> Reviewed-by: Bart Van Assche <bvanassche@xxxxxxx>
> Signed-off-by: Can Guo <can.guo@xxxxxxxxxxxxxxxx>

Reviewed-by: Bean Huo <beanhuo@xxxxxxxxxx>