]> 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)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 4 May 2023 03:10:02 +0000 (23:10 -0400)
commit682439fffad9fa9a38d37dd1b1318e9374232213
tree178ddc95eefdeb8550cd843ad8c62a6002f24a81
parent8f586cc16c1fc3c2202c9d54563db8c7ed365f82
drm/amd/display: filter out invalid bits in pipe_fuses

[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
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c
drivers/gpu/drm/amd/display/dc/dcn321/dcn321_resource.c