diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2017-02-10 00:00:52 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-02-10 12:07:33 -0500 |
commit | 4ce3bd45b351633f2a0512c587f7fcba2ce044e8 (patch) | |
tree | 2a45a6cc31ff2d47f79364350b6847e8a76b6ace | |
parent | 13f62f54d174d3417c3caaafedf5e22a0a03e442 (diff) |
drm/amdgpu: add more cases to DCE11 possible crtc mask setup
Add cases for asics with 3 and 5 crtcs. Fixes an artificial
limitation on asics with 3 or 5 crtcs.
Fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=99744
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/dce_v11_0.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c b/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c index 1cf1d9d1aec1..5b24e89552ec 100644 --- a/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c +++ b/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c | |||
@@ -3737,9 +3737,15 @@ static void dce_v11_0_encoder_add(struct amdgpu_device *adev, | |||
3737 | default: | 3737 | default: |
3738 | encoder->possible_crtcs = 0x3; | 3738 | encoder->possible_crtcs = 0x3; |
3739 | break; | 3739 | break; |
3740 | case 3: | ||
3741 | encoder->possible_crtcs = 0x7; | ||
3742 | break; | ||
3740 | case 4: | 3743 | case 4: |
3741 | encoder->possible_crtcs = 0xf; | 3744 | encoder->possible_crtcs = 0xf; |
3742 | break; | 3745 | break; |
3746 | case 5: | ||
3747 | encoder->possible_crtcs = 0x1f; | ||
3748 | break; | ||
3743 | case 6: | 3749 | case 6: |
3744 | encoder->possible_crtcs = 0x3f; | 3750 | encoder->possible_crtcs = 0x3f; |
3745 | break; | 3751 | break; |