]> git.itanic.dy.fi Git - linux-stable/commit
drm/amd/display: filter out invalid bits in pipe_fuses
authorSamson Tam <Samson.Tam@amd.com>
Wed, 19 Apr 2023 22:17:14 +0000 (18:17 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 12:02:01 +0000 (14:02 +0200)
commite23a3c3e574318e8d99b54b8702d749fe19f8ee0
tree51c7b7bddbee1a5fde330814dfec70b5c3dc5bfa
parentb52ca48c30f224c8d996223652c1b15e9d41b981
drm/amd/display: filter out invalid bits in pipe_fuses

commit 682439fffad9fa9a38d37dd1b1318e9374232213 upstream.

[Why]
Reading pipe_fuses from register may have invalid bits set, which may
 affect the num_pipes erroneously.

[How]
Add read_pipes_fuses() call and filter bits based on expected number
 of pipes.

Reviewed-by: Alvin Lee <Alvin.Lee2@amd.com>
Acked-by: Alan Liu <HaoPing.Liu@amd.com>
Signed-off-by: Samson Tam <Samson.Tam@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org # 6.1.x
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c
drivers/gpu/drm/amd/display/dc/dcn321/dcn321_resource.c