]> 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 11:59:05 +0000 (13:59 +0200)
commiteddbddae750e54d6197f732bbca94d2c57c69efc
treeb38064eb0489fffa1f9b89045d88401edd6cd585
parentfc9559f1adb30de26fbd9b2b2261243fb684369d
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