From: Wayne Lin <Wayne.Lin@amd.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t v2 1/2] lib/igt_amd: correct the link_settings bug
Date: Tue, 8 Feb 2022 18:37:53 +0800 [thread overview]
Message-ID: <20220208103754.7559-2-Wayne.Lin@amd.com> (raw)
In-Reply-To: <20220208103754.7559-1-Wayne.Lin@amd.com>
[Why & How]
Link rate is shown as hexadecimal not decimal by the debugfs entry.
Correct the parameter from 10 to 16.
Signed-off-by: Wayne Lin <Wayne.Lin@amd.com>
---
lib/igt_amd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/igt_amd.c b/lib/igt_amd.c
index 4bcfd594..92766a30 100644
--- a/lib/igt_amd.c
+++ b/lib/igt_amd.c
@@ -817,7 +817,7 @@ void igt_amd_read_link_settings(
{
strtok_r(token, ": ", &val_token);
lane_count[i] = strtol(val_token, &val_token, 10);
- link_rate[i] = strtol(val_token, &val_token, 10);
+ link_rate[i] = strtol(val_token, &val_token, 16);
link_spread[i] = strtol(val_token, &val_token, 10);
i++;
--
2.25.1
next prev parent reply other threads:[~2022-02-08 10:38 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-08 10:37 [igt-dev] [PATCH i-g-t v2 0/2] Add new test for Intermediate Link Rate feature Wayne Lin
2022-02-08 10:37 ` Wayne Lin [this message]
2022-02-08 10:37 ` [igt-dev] [PATCH i-g-t v2 2/2] test/amdgpu: Add ilr test Wayne Lin
2022-02-14 13:36 ` Rodrigo Siqueira Jordao
2022-02-14 13:43 ` Rodrigo Siqueira Jordao
2022-02-14 14:16 ` Sai Nandan, YedireswarapuX
2022-02-08 11:12 ` [igt-dev] ✓ Fi.CI.BAT: success for Add new test for Intermediate Link Rate feature (rev2) Patchwork
2022-02-08 12:11 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2022-02-14 14:11 ` [igt-dev] ✓ Fi.CI.IGT: success " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220208103754.7559-2-Wayne.Lin@amd.com \
--to=wayne.lin@amd.com \
--cc=igt-dev@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox