From: sashiko-bot@kernel.org
To: "Priyank Rathod" <rathodpriyank@google.com>
Cc: linux-pci@vger.kernel.org
Subject: Re: [PATCH v4 1/2] PCI/LMR: Add Lane Margining at the Receiver debugfs interface
Date: Tue, 06 Oct 2026 16:24:28 +0000 [thread overview]
Message-ID: <sashiko-outbox-162253@kernel.org> (raw)
In-Reply-To: <20261006-pcie-link-endpoints-v4-1-ad5398c4260c@google.com>
> Lane Margining at the Receiver moves the sampling point of a receiver
> away from its normal setting, in time or in voltage, while the link
> stays up, and reports the errors the receiver sees. It is available
> on links running at 16.0 GT/s or faster, through the Lane Margining at
> the Receiver Extended Capability.
>
> Add a debugfs directory, pcie_lmr_<device>, for each Downstream Port
> and each Function 0 below a Downstream Port that has the capability.
>
> Writing 1 to 'enable' starts a margining session on the link. ASPM is
> turned off with pci_disable_link_state(), Hardware Autonomous Width
> Disable and Hardware Autonomous Speed Disable are set on both ends,
> both ends are kept runtime resumed, and the port's Margining Ready bit
> is awaited. Writing 0, or removing either end of the link, ends the
> session and undoes these steps. Only one session can be active on a
> link.
>
> During a session, 'receiver' selects the receiver, laneN/margin_timing
> and laneN/margin_voltage issue Step Margin commands, laneN/caps shows
> the parameters the receiver reports, and laneN/status shows the
> response to the last step command, including the error count. Before
> each command, the link is checked against the state the session
> started in: speed, width, Margining Ready, ASPM still off, and no
> system suspend since.
>
> The kernel does not run margining sweeps or interpret the results;
> that is left to user space.
>
> Signed-off-by: Priyank Rathod <rathodpriyank@google.com>
Sashiko has reviewed this patch and found no issues. It looks great!
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261006-pcie-link-endpoints-v4-0-ad5398c4260c@google.com?part=1
next prev parent reply other threads:[~2026-10-06 16:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-06 16:11 [PATCH v4 0/2] PCI: Add Lane Margining at the Receiver debugfs interface Priyank Rathod
2026-10-06 16:11 ` [PATCH v4 1/2] PCI/LMR: " Priyank Rathod
2026-10-06 16:24 ` sashiko-bot [this message]
2026-10-06 16:11 ` [PATCH v4 2/2] selftests/pcie_lmr: Add tests for the Lane Margining " Priyank Rathod
2026-10-06 16:33 ` sashiko-bot
2026-10-06 17:34 ` Priyank Rathod
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=sashiko-outbox-162253@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=rathodpriyank@google.com \
--cc=sashiko-reviews@lists.linux.dev \
/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