Unverified Commit 03df122f authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!12234 drm/amd/display: Stop amdgpu_dm initialize when stream nums greater than 6

parents 79083535 24bb620a
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -3344,7 +3344,10 @@ static int amdgpu_dm_initialize_drm_device(struct amdgpu_device *adev)

	/* There is one primary plane per CRTC */
	primary_planes = dm->dc->caps.max_streams;
	ASSERT(primary_planes <= AMDGPU_MAX_PLANES);
	if (primary_planes > AMDGPU_MAX_PLANES) {
		DRM_ERROR("DM: Plane nums out of 6 planes\n");
		return -EINVAL;
	}

	/*
	 * Initialize primary planes, implicit planes for legacy IOCTLS.