[igt-dev] [PATCH i-g-t 1/2] lib/igt_amd: correct the link_settings bug
Wayne Lin
Wayne.Lin at amd.com
Thu Jan 20 07:49:30 UTC 2022
[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 at 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
More information about the igt-dev
mailing list