Re: [PATCH v3 04/12] scsi: ufs: core: Add support for TX Equalization

From: Peter Wang (王信友)

Date: Tue Mar 17 2026 - 09:10:52 EST


On Tue, 2026-03-17 at 15:35 +0800, Can Guo wrote:
> The main data struct which is costing memory is the TX EQTR record
> arrays, I can optimize
> in next very by dynamically allocating memory ONLY for the Gears
> which
> actually
> need TX EQTR.
>
> Thanks,
> Can Guo.
> >

Hi Can,

It's not just Gear that needs to be considered, lane count does
as well. Only allocate the Gear and lane numbers that actually
require EQTR. Also, please optimize the structure, for variables
that only need UINT8, don't use UINT32, since memory usage is four
times greater.

Thanks
Peter