]> git.ipfire.org Git - thirdparty/pciutils.git/commit
ls-ecaps: Correct the link state reporting master
authorAlexey Kardashevskiy <aik@amd.com>
Wed, 24 Apr 2024 10:20:11 +0000 (20:20 +1000)
committerMartin Mares <mj@ucw.cz>
Wed, 24 Apr 2024 12:31:55 +0000 (14:31 +0200)
commit8c140bee33de2b5f5102e98a2768a22891855ef0
treed5d8a76d1970befd17172c6c7c0f46eb7b91f6e5
parent582289c2ba4f5a48d5a88a5e3deedb9c6f4d51d1
ls-ecaps: Correct the link state reporting

PCIe r6.0, sec 7.9.26.4.2 "Link IDE Stream Status Register defines"
the link state as:

0000b Insecure
0010b Secure

The same definition applies to selective streams as well.
The existing code wrongly assumes "secure" is 0001b, fix that for both
link and selective streams.

While at this, add missing "Selective IDE for Configuration Requests Enable".
Also fix the base and limit parsing for the memory and RID ranges.

Fixes: 42fc4263ec0e ("ls-ecaps: Add decode support for IDE Extended Capability")
Signed-off-by: Alexey Kardashevskiy <aik@amd.com>
lib/header.h
ls-ecaps.c
tests/cap-ide