# PCIe Link Training LTSSM & Lane Margining Eye Decoder

Decode a PCIe link training log (LTSSM state sequence plus TS1/TS2 ordered sets) into the full Gen1-Gen6 state timeline: negotiated speed and width, rate identifier bits, lane reversal, polarity inversion, equalization phases and Detect/Recovery restart diagnostics. Also grades a lane margining report (pcilmr CSV or key=value) against the PCIe Base Spec Rev 5.0 §8.4.2 eye minimums per generation and renders a per-lane eye-margin heatmap SVG.

> Canonical page: https://elysiatools.com/en/tools/pcie-link-training-linkstate-and-lane-margining-eye-decode

- **Category:** Network

- **Keywords:** pcie, ltssm, link training, lane margining, eye diagram

## Overview

Decode PCIe Link Training and Status State Machine (LTSSM) logs and lane margining reports into structured diagnostic summaries. This tool parses state sequences, TS1 and TS2 ordered sets, rate identifiers, and equalization phases across Gen1 through Gen6, while grading receiver eye margins from pcilmr CSV outputs against PCIe Base Specification thresholds with generated SVG heatmaps.

## Inputs

- **LTSSM Log / Margining Report** (textarea): t=0.00ms Detect.Quiet t=0.90ms Polling.Active TS1 link=PAD lane=PAD rate=0x01 t=6.40ms Configuration.Lanenum.Accept TS1 link=0 lane=3 t=7.40ms L0 …or pcilmr CSV: Lane,EW Min,EW Rec,EW,…
- **PCIe Generation (for margining)** (select)
- **Render eye-margin heatmap (SVG)** (checkbox)

## When to use

- When troubleshooting PCIe link training failures, down-training, or speed fallback loops across Detect, Polling, Configuration, and Recovery states.
- When evaluating receiver eye-margin compliance and signal integrity using Linux pcilmr CSV or key-value data.
- When inspecting equalization Phase 1 through Phase 3 progression, lane reversal, and polarity inversion during board bring-up.

## How it works

- Paste raw LTSSM state sequences, TS1/TS2 ordered set traces, or pcilmr CSV output into the log text area.
- Select the target PCIe generation or leave it on auto-detection to apply the relevant PCIe Base Specification §8.4.2 eye limits.
- Optionally check the SVG heatmap option to generate visual per-lane eye-width and eye-height margin charts.
- Inspect the decoded state timeline, negotiated speed and width badges, equalization diagnostics, and per-lane margin grades.

## Use cases

- Link Bring-Up Analysis: Inspect high-speed negotiation and Phase 1 to Phase 3 equalization transitions on prototype boards.
- Receiver Margin Qualification: Grade pcilmr margining results across all lanes to verify hardware compliance before production release.
- Hardware Fault Isolation: Pinpoint whether link degradation stems from physical polarity issues, lane numbering mismatches, or Recovery timeouts.

## Frequently asked questions

### What input formats are supported by the decoder?

The decoder accepts LTSSM state trace lines, TS1/TS2 ordered set strings, Linux pcilmr -o 22-column CSV data, and key-value margin lines.

### How is the PCIe generation determined for margining?

It automatically infers the generation from the minimum eye width (EW Min) column or uses the manual Gen4, Gen5, or Gen6 dropdown selection.

### What standard is used to grade lane margins?

Margins are graded as Perfect, Pass, or Fail against PCIe Base Specification Rev 5.0 §8.4.2 minimums and PHY Test Specification recommendations.

### Can the tool detect lane reversal and polarity inversion?

Yes, it parses link and lane identifiers, PAD flags, and polarity inversion markers present in the TS1/TS2 ordered set records.

### Is data processed locally?

Yes, all LTSSM timeline decoding, specification margin grading, and SVG heatmap generation run directly inside the browser.

## Related tools

- [CSV Histogram, Scatter and Box Plot Chart Studio](https://elysiatools.com/en/tools/csv-histogram-scatter-box-plot-chart-studio): Upload or paste a CSV and chart it instantly: histograms with Sturges / Freedman-Diaconis / Scott binning, scatter plots with Pearson r and a least-squares fit, and Tukey box plots — every chart downloadable as PNG and SVG.
- [Train/Test Split with Stratification](https://elysiatools.com/en/tools/train-test-split-with-stratification): Class-stratified train/validation/test split or stratified k-fold for CSV/JSON datasets — seeded, reproducible, with distribution reports, leakage checks, SMOTE preview and CSV export.
- [Data URI Generator](https://elysiatools.com/en/tools/data-uri-generator): Convert files into Data URIs (Base64 or percent-encoded) for inlining images, fonts, and assets directly into HTML, CSS, or Markdown
- [X.509 Certificate Decoder](https://elysiatools.com/en/tools/certificate-decoder): Parse an X.509 SSL/TLS certificate (paste PEM or upload .pem/.crt) and inspect subject, issuer, validity period with expiry status, public key, signature algorithm, serial, SANs, key usage and fingerprint. Like openssl x509 -text, visualised. Runs locally.
- [Correlation Analyzer](https://elysiatools.com/en/tools/correlation-analyzer): Advanced correlation analysis tool that calculates correlation coefficients between variables to measure the strength and direction of their linear relationships. Perfect for statistical analysis, financial modeling, scientific research, and data exploration. Features: - Multiple correlation methods (Pearson, Spearman, Kendall) - Correlation matrix generation - Statistical significance testing (p-values) - Confidence intervals calculation - Heatmap visualization - Scatter plot matrix generation - Missing value handling strategies - Outlier detection and handling - Group analysis capabilities - Detailed statistical reports Common Use Cases: - Financial market analysis and risk assessment - Scientific research and hypothesis testing - Customer behavior and marketing analysis - Healthcare and medical data analysis - Quality control and process optimization - Educational performance evaluation
- [SVG Chart to Data Extractor](https://elysiatools.com/en/tools/svg-chart-to-data-extractor): Reverse engineer SVG charts into data points for line, bar, scatter, and pie-style SVG structures
- [JavaScript Deobfuscator](https://elysiatools.com/en/tools/javascript-deobfuscator): Deobfuscate and analyze obfuscated JavaScript code to improve readability and understanding
- [Data Boundary Processor](https://elysiatools.com/en/tools/data-boundary-processor): Advanced boundary value processing tool that identifies and handles minimum/maximum values in numerical data. Perfect for data validation, range checking, statistical analysis, and data preprocessing. Features: - Multiple boundary detection methods (absolute, percentile, standard deviation) - Flexible handling strategies (clip, remove, replace, transform) - Custom range validation - Asymmetric boundary handling - Batch processing capabilities - Comprehensive boundary statistics - Data quality assessment - Visual boundary reports Common Use Cases: - Data validation and quality control - Sensor data range checking - Financial data limit enforcement - Statistical data preprocessing - Machine learning feature engineering - Database constraint validation

## Samples

- [SVG Viewer Samples](https://elysiatools.com/en/samples/svg-viewer-samples): Sample SVG vector graphics (scene, icon set, diagram) for the in-browser SVG Viewer
- [SVG Samples](https://elysiatools.com/en/samples/svg-samples): Scalable Vector Graphics (SVG) samples demonstrating various SVG features and techniques
- [XML Samples](https://elysiatools.com/en/samples/xml-samples): XML (eXtensible Markup Language) format examples from simple to complex structures
- [XML Viewer Samples](https://elysiatools.com/en/samples/xml-viewer-samples): Sample XML files (bookstore, RSS feed, SVG) for the in-browser XML Viewer
