]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/amd/display: Allow planes on all crtcs
authorHarry Wentland <harry.wentland@amd.com>
Mon, 10 Apr 2017 19:37:32 +0000 (15:37 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 21:22:44 +0000 (17:22 -0400)
4.9 kernel will always add the assigned crtc to possible_crtcs on a
plane. This is no longer the case on newer kernels. Make sure we allow
any plane on any crtc.

Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index a9b4eb0099ac193dbae37477c172a2d60a6b8cef..1b39bf9b42781c564d21912dcc196f240fccea21 100644 (file)
@@ -1090,7 +1090,7 @@ int amdgpu_dm_initialize_drm_device(struct amdgpu_device *adev)
                        goto fail_free_planes;
                }
                mode_info->planes[i]->plane_type = mode_info->plane_type[i];
-               if (amdgpu_dm_plane_init(dm, mode_info->planes[i], 1)) {
+               if (amdgpu_dm_plane_init(dm, mode_info->planes[i], 0xff)) {
                        DRM_ERROR("KMS: Failed to initialize plane\n");
                        goto fail_free_planes;
                }