]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Initialize num_pkrs on VANGOGH.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 20 Oct 2020 22:31:13 +0000 (00:31 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 21 Oct 2020 20:14:47 +0000 (16:14 -0400)
commit8eaaaa551dbad8c5f9c870834992b5b4972b8a94
treed699adc77386f6d3a3563a020c9deb79ec07e766
parent824f63eceb9f1a0807568914ef740c1be7d0b1f2
drm/amd/display: Initialize num_pkrs on VANGOGH.

As far a I can tell uses a variant of DCN3xx which uses num_pkrs.

If we do not initialize the variable we will set the register field
to ilog2(0) = -1, though the mask will reduce that to 7. Pretty sure
7 is not the value we want here.

Signed-off-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-and-Tested-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c