* [PATCH pciutils] ls-ecaps: Correct IDE link state reporting
@ 2024-04-11 4:28 Alexey Kardashevskiy
2024-04-15 2:22 ` Alexey Kardashevskiy
0 siblings, 1 reply; 2+ messages in thread
From: Alexey Kardashevskiy @ 2024-04-11 4:28 UTC (permalink / raw)
To: linux-pci; +Cc: Martin Mareš, Alexey Kardashevskiy
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.
Fixes: 42fc4263ec0e ("ls-ecaps: Add decode support for IDE Extended Capability")
Signed-off-by: Alexey Kardashevskiy <aik@amd.com>
---
ls-ecaps.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ls-ecaps.c b/ls-ecaps.c
index b40ba72..5c2724e 100644
--- a/ls-ecaps.c
+++ b/ls-ecaps.c
@@ -1512,7 +1512,7 @@ static void
cap_ide(struct device *d, int where)
{
const char *hdr_enc_mode[] = { "no", "17:2", "25:2", "33:2", "41:2" };
- const char *stream_state[] = { "insecure", "secure" };
+ const char *stream_state[] = { "insecure", "reserved", "secure" };
const char *aggr[] = { "-", "=2", "=4", "=8" };
u32 l, l2, linknum = 0, selnum = 0, addrnum, off, i, j;
char buf1[16], buf2[16], offs[16];
--
2.41.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH pciutils] ls-ecaps: Correct IDE link state reporting
2024-04-11 4:28 [PATCH pciutils] ls-ecaps: Correct IDE link state reporting Alexey Kardashevskiy
@ 2024-04-15 2:22 ` Alexey Kardashevskiy
0 siblings, 0 replies; 2+ messages in thread
From: Alexey Kardashevskiy @ 2024-04-15 2:22 UTC (permalink / raw)
To: linux-pci; +Cc: Martin Mareš
I found more inconsistencies so v2 will come soon. Sorry for the noise.
Thanks,
On 11/4/24 14:28, Alexey Kardashevskiy wrote:
> 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.
>
> Fixes: 42fc4263ec0e ("ls-ecaps: Add decode support for IDE Extended Capability")
> Signed-off-by: Alexey Kardashevskiy <aik@amd.com>
> ---
> ls-ecaps.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/ls-ecaps.c b/ls-ecaps.c
> index b40ba72..5c2724e 100644
> --- a/ls-ecaps.c
> +++ b/ls-ecaps.c
> @@ -1512,7 +1512,7 @@ static void
> cap_ide(struct device *d, int where)
> {
> const char *hdr_enc_mode[] = { "no", "17:2", "25:2", "33:2", "41:2" };
> - const char *stream_state[] = { "insecure", "secure" };
> + const char *stream_state[] = { "insecure", "reserved", "secure" };
> const char *aggr[] = { "-", "=2", "=4", "=8" };
> u32 l, l2, linknum = 0, selnum = 0, addrnum, off, i, j;
> char buf1[16], buf2[16], offs[16];
--
Alexey
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-04-15 2:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-11 4:28 [PATCH pciutils] ls-ecaps: Correct IDE link state reporting Alexey Kardashevskiy
2024-04-15 2:22 ` Alexey Kardashevskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox