]> mj.ucw.cz Git - pciutils.git/commit
pcilmr: Add margining process functions
authorNikita Proshkin <n.proshkin@yadro.com>
Wed, 27 Dec 2023 09:44:55 +0000 (14:44 +0500)
committerMartin Mares <mj@ucw.cz>
Sat, 17 Feb 2024 22:44:43 +0000 (23:44 +0100)
commit73289e137d6a500007930c694f3584763748abce
tree5b058faa1fc19dc14ffd9e46a995c51d83d9d799
parent3d9ad790e6fdefb98fac4ec232a79d54a475d43a
pcilmr: Add margining process functions

* Implement the margining flow as described in the section "Example
  Software Flow for Lane Margining at Receiver"
  of the PCIe Base Spec Rev 5.0;
* Implement margining commands formation and response parsing according
  to the PCIe Base Spec Rev 5.0 table 4-26;
* Use Receiver margining parameters as described in the
  PCIe Base Spec Rev 5.0 table 8-11;
* Support lane reversal and simultaneous margining of several link lanes.

Reviewed-by: Sergei Miroshnichenko <s.miroshnichenko@yadro.com>
Signed-off-by: Nikita Proshkin <n.proshkin@yadro.com>
lmr/lmr.h
lmr/margin.c [new file with mode: 0644]