]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd/amdgpu: Update debugfs link_settings output link_rate field in hex
authorAnson Jacob <Anson.Jacob@amd.com>
Tue, 20 Jul 2021 15:00:44 +0000 (11:00 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 18 Sep 2021 11:42:03 +0000 (13:42 +0200)
commit56d79872f264527147fad48cdf6e33e63f34674f
tree63b1943555f00e1633bef123c57f56864f8606e0
parentd1ee544dd7e4c47cb45800687ff7225e14c513e8
drm/amd/amdgpu: Update debugfs link_settings output link_rate field in hex

[ Upstream commit 1a394b3c3de2577f200cb623c52a5c2b82805cec ]

link_rate is updated via debugfs using hex values, set it to output
in hex as well.

eg: Resolution: 1920x1080@144Hz
cat /sys/kernel/debug/dri/0/DP-1/link_settings
Current:  4  0x14  0  Verified:  4  0x1e  0  Reported:  4  0x1e  16  Preferred:  0  0x0  0

echo "4 0x1e" > /sys/kernel/debug/dri/0/DP-1/link_settings

cat /sys/kernel/debug/dri/0/DP-1/link_settings
Current:  4  0x1e  0  Verified:  4  0x1e  0  Reported:  4  0x1e  16  Preferred:  4  0x1e  0

Signed-off-by: Anson Jacob <Anson.Jacob@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c