drm/amdgpu: add more cases to DCE11 possible crtc mask setup
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 10 Feb 2017 05:00:52 +0000 (00:00 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Mar 2017 01:57:14 +0000 (09:57 +0800)
commit 4ce3bd45b351633f2a0512c587f7fcba2ce044e8 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/dce_v11_0.c

index c161eeda417bdf9aeb7559b1860b1349b985c48d..267749a94c5aacd055e8ea31e43b85cbff2f7935 100644 (file)
@@ -3704,9 +3704,15 @@ static void dce_v11_0_encoder_add(struct amdgpu_device *adev,
        default:
                encoder->possible_crtcs = 0x3;
                break;
+       case 3:
+               encoder->possible_crtcs = 0x7;
+               break;
        case 4:
                encoder->possible_crtcs = 0xf;
                break;
+       case 5:
+               encoder->possible_crtcs = 0x1f;
+               break;
        case 6:
                encoder->possible_crtcs = 0x3f;
                break;