mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Po-Wen Kao <powenkao@google.com>
To: linux-scsi@vger.kernel.org
Cc: Konstantin Vyshetsky <vkon@google.com>,
	Randall Huang <huangrandall@google.com>,
	 Brian Kao <powenkao@google.com>,
	Alim Akhtar <alim.akhtar@samsung.com>,
	 Bart Van Assche <bvanassche@acm.org>,
	Bean Huo <beanhuo@micron.com>,
	 Stanley Jhu <stanleyjhu@google.com>,
	 "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>,
	 "Martin K. Petersen" <mkp@kernel.org>,
	Can Guo <can.guo@oss.qualcomm.com>,
	 Peter Wang <peter.wang@mediatek.com>,
	linux-kernel@vger.kernel.org
Subject: [PATCH 0/2] scsi: ufs: core: Support multi-run FOM averaging during TX EQTR
Date: Fri,  4 Dec 2026 19:42:47 +0800	[thread overview]
Message-ID: <20261204114249.2115343-1-powenkao@google.com> (raw)

From: Brian Kao <powenkao@google.com>

Single-shot RX FOM measurements during UFS TX EQTR can exhibit
run-to-run jitter, causing suboptimal preset selection when nearby
presets have similar eye margins. This series adds configurable
multi-run FOM averaging and full-precision FOM sum ranking to TX EQTR.

Patch 1 factors the per-preset measurement steps out of
__ufshcd_tx_eqtr() into ufshcd_measure_tx_eqtr_fom() with no
functional change.

Patch 2 adds the txeq_meas_loops module parameter (default: 1, range:
1-100), repeats per-preset measurements with FOM sum ranking and
majority-vote pre-coding, counts failed RX_FOM reads as 0 against the
fixed meas_loops divisor while storing the averaged RX_FOM byte for
debugfs, and leaves preset selection unchanged at the default setting.

Brian Kao (2):
  scsi: ufs: core: Factor out TX EQTR preset measurement helper
  scsi: ufs: core: Support multi-run FOM averaging during TX EQTR

 drivers/ufs/core/ufs-txeq.c | 207 ++++++++++++++++++++++++++++++------
 1 file changed, 172 insertions(+), 35 deletions(-)


base-commit: 4ff20abe28d65a0c52f0b280008fcfb93c3ee2b2
-- 
2.56.1.987.g2ec0ab4260-goog


             reply	other threads:[~2026-12-04 11:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04 11:42 Po-Wen Kao [this message]
2026-12-04 11:42 ` [PATCH 1/2] scsi: ufs: core: Factor out TX EQTR preset measurement helper Po-Wen Kao
2026-12-04 11:42 ` [PATCH 2/2] scsi: ufs: core: Support multi-run FOM averaging during TX EQTR Po-Wen Kao

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=20261204114249.2115343-1-powenkao@google.com \
    --to=powenkao@google.com \
    --cc=James.Bottomley@HansenPartnership.com \
    --cc=alim.akhtar@samsung.com \
    --cc=beanhuo@micron.com \
    --cc=bvanassche@acm.org \
    --cc=can.guo@oss.qualcomm.com \
    --cc=huangrandall@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=mkp@kernel.org \
    --cc=peter.wang@mediatek.com \
    --cc=stanleyjhu@google.com \
    --cc=vkon@google.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

all inboxes | Powered by JetHome®