v0.5.1
What's Changed
Kernel maintainers (Lukas Wunner, Bjorn Helgaas) requested automatic
Flit Mode detection so users don't need to pass --flit manually when
parsing AER logs or lspci output from mixed flit/non-flit topologies.
AER auto-detection: kernel v6.15+ (commit 7e077e6707b3) appends
"(Flit)" to TLP Header log lines when the link is in Flit Mode.
extract_tlp_from_line() now detects this suffix and tags the TLP
for flit-mode parsing automatically.
lspci auto-detection: scan_lspci_lines() now tracks per-device flit
state from "LnkSta2: ... Flit+" in lspci -vv output. HeaderLog entries
under a Flit+ device are parsed in flit mode without --flit.
The key architectural change is moving from a global Config.flit flag
to per-TLP mode resolution. Config.inputs is extended from
(bytes, source) to (bytes, source, detected_flit). TlpTool::run()
resolves each TLP as: if --flit || detected_flit → Flit, else NonFlit.
The --flit flag remains as a global force-override for raw hex input.
Bumps version to 0.5.1.
Reference:
https://lore.kernel.org/linux-pci/20260323165038.GA830530@bhelgaas/T/#t
Full Changelog: v0.5.0...v0.5.1