All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wayne Lin <Wayne.Lin@amd.com>
To: igt-dev@lists.freedesktop.org
Cc: Wayne Lin <Wayne.Lin@amd.com>
Subject: [igt-dev] [PATCH i-g-t 1/2] lib/igt_amd: correct the link_settings bug
Date: Thu, 20 Jan 2022 15:49:30 +0800	[thread overview]
Message-ID: <20220120074931.22880-2-Wayne.Lin@amd.com> (raw)
In-Reply-To: <20220120074931.22880-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

  reply	other threads:[~2022-01-20  7:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-20  7:49 [igt-dev] [PATCH i-g-t 0/2] Add new test for Intermediate Link Rate feature Wayne Lin
2022-01-20  7:49 ` Wayne Lin [this message]
2022-01-20  7:49 ` [igt-dev] [PATCH i-g-t 2/2] test/amdgpu: Add ilr test Wayne Lin
2022-01-27 14:50   ` Rodrigo Siqueira Jordao
2022-01-20  9:06 ` [igt-dev] ✗ GitLab.Pipeline: warning for Add new test for Intermediate Link Rate feature Patchwork
2022-01-20  9:35 ` [igt-dev] ✓ Fi.CI.BAT: success " Patchwork
2022-01-20 10:49 ` [igt-dev] ✗ Fi.CI.IGT: failure " 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=20220120074931.22880-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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.