From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.198 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796384573; b=4zhxnmrQ3CHXh/NHSPH+YicQarzRnopPzSm5vQnrZW8WzFwOCynjWXjfSmM1N9a5M1Dg cuNUkfDAcyH+wxol0bEDa0QsWNiqouCuYQEbT9ZFEn4NMDfA8peiyl2e+GxT8IV6kmrJP 0QWDdCxKdP4e5gBvR7423CGVLjxNlExfPeHc8sb54a9LLnyPLiQ9SGnt3Ccs4/vYsNiat mV3pfsaDJOZodefmyGv53PTURikmGT6/6c2Bv3bEZ/FGEJzZaWar35HAnqArPDf0MDXQ4 dHt6XSbkwOqvo52wFgW8nBclr9GxQpztAxjZZpcqS8xXNJTXH3V7OgyEXM4t0qRgzkQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796384573; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Received:Date:Mime-Version: X-Mailer:Message-ID:Subject:From:To:Cc:Content-Type; bh=IuC2mdF7LSjbL8lZ7v/GKeUviyaZU8rm17VKP/Slc2U=; b=2MJlZ+lNC3+KtBLbeSfFQBwCe/79AtuuN601vBNrS40UixGzncaTUg0kN++t+DzI/nMw aKzjg4SijdXr5gTKLd5yxKVwK3cSt7kvCdaut3ma4j84Q2or7383youcxSg+1qzddPAFg LdWiJbY1B7xLiXJddc+gzTGTQkHEZB5tHRCJTl+VnzwCt4uYCX69dqsRzPe9ofm7mdn1X lqxq3D8AXsM2bxtWnoI4bI7R7u9+ooDpuEuEJc0I+fyzMg9tDYduExdEytQ3rMO7/vW5E IuZLbQkl3XhNGiBoOwiVvvv4my3cz05tJkLJdSrFOzVFe6Uc/ecynAZXUDRWo2IbN6Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=google.com; spf=pass smtp.mailfrom=flex--powenkao.bounces.google.com; dkim=pass header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=D7K7PJyc; arc=none smtp.remote-ip=74.125.82.198 Received: from mail-dy1-f198.google.com (mail-dy1-f198.google.com [74.125.82.198]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1623C606A32D for ; Fri, 4 Dec 2026 11:42:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 1623C606A32D Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--powenkao.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=D7K7PJyc Received: by mail-dy1-f198.google.com with SMTP id 5a478bee46e88-3869865a304so2526864eec.0 for ; Fri, 04 Dec 2026 03:42:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796384572; x=1796989372; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:mime-version:date:from :to:cc:subject:date:message-id:reply-to:content-type; bh=IuC2mdF7LSjbL8lZ7v/GKeUviyaZU8rm17VKP/Slc2U=; b=D7K7PJycYy/fs15SbDx7cLpE1jFrd2mc9R1MWgLDxro4nBooLPWJOaqA9YCaI+eGnq v87zvYYKBrQpS3GT0yTSOwhb3Zv8FR+fbOiAhiZQbUvjWeIAwtHBKCcRLFYTkvrnvXWF B0YEOjcuJRoRLOWuEI9kiscq9ZoyeimcRIfNwG6QRaAIrAscZv8ADLdOjRY3YWXHtrss RqpqjkThi9lSzXUCA8Zj9VgdPcHVN6dqS9Riq+PTDCQWXwdND2ogBvw/PlnSvrzLl1In yGzNmnpD9wU6NAioXXT2SDve2V3YG/uYLRDbML+HWd0VV3MqABaQ1OAOMGy0ob6rqLNW sUmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796384572; x=1796989372; h=content-type:cc:to:from:subject:message-id:mime-version:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=IuC2mdF7LSjbL8lZ7v/GKeUviyaZU8rm17VKP/Slc2U=; b=shQsd4e8/hmW7VTdos5uNGNSZV8axAEfrYZZOnwYZ03DWf5ZqWfJmcJKXMEt0Pwc7m 4Z6/BqXsvumdPolTdqBBszOIaGdBol1J7FVAza+JVy6Z5KNUgKdiQyMmhXx+HQDShZwL yPCREA/OwgLSjlgPVnQ7T2L+khbnYHlzwRwkS1ecYSSBowwvAQcAjEkZsK3r3jw1qF0b GNwP3aWrMx/79t7aiixeZP7saUwIWqqwjmNX9uznpD+ETu7e4s3/nm/I5m2duY9RzcEg xX/BIbHy27IXL1U1/OBCXLQvIXPyz2efbQ670Jqx3LGINl5YsSyOnjZ92cHb5Xs241bs HqYQ== X-Forwarded-Encrypted: i=1; AL+hErH9h6jLvT/f4eg+8hFtFeQuKrYoVaydmR+7baNrmnx4aOP3PfYldj36zPJ4eeCwvPwfmKOP+dombq2vFA4=@vger.kernel.org X-Gm-Message-State: APuU4Z+I64a61uBErkthIxp8je5SFN4QvO1r1F9fvklJJLHUi19UZHsv tAueFJQTSIV2y6/i165YVW+o1BXNGbz9OKVhi2F8GVW2Um+5ZxkCx14++UKKNazoIW4FWK7MxXa Vf/WPGWJA0vBNeA== X-Received: from dydd11.prod.google.com ([2002:a05:693c:61cb:b0:36a:209:2e4]) (user=powenkao job=prod-delivery.src-stubby-dispatcher) by 2002:a05:693c:2a16:b0:386:a520:1029 with SMTP id 5a478bee46e88-387520d02cdmr1876987eec.9.1796384571850; Fri, 04 Dec 2026 03:42:51 -0800 (PST) Date: Fri, 4 Dec 2026 19:42:47 +0800 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 X-Mailer: git-send-email 2.56.1.987.g2ec0ab4260-goog Message-ID: <20261204114249.2115343-1-powenkao@google.com> Subject: [PATCH 0/2] scsi: ufs: core: Support multi-run FOM averaging during TX EQTR From: Po-Wen Kao To: linux-scsi@vger.kernel.org Cc: Konstantin Vyshetsky , Randall Huang , Brian Kao , Alim Akhtar , Bart Van Assche , Bean Huo , Stanley Jhu , "James E.J. Bottomley" , "Martin K. Petersen" , Can Guo , Peter Wang , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" From: Brian Kao 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