drm/amd/display: Don't ASSERT when total_planes == AMDGPU_MAX_PLANES
[Why] Can happen on ASICs with 6 planes, but this isn't a bug since we haven't written outside the array. [How] Use <= instead of <. Cc: Leo Li <sunpeng.li@amd.com> Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com> Reported-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> Tested-by: Michel Dänzer <michel.daenzer@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
c33f533417
commit
b5dcec9c90
1 changed files with 1 additions and 1 deletions
|
@ -1915,7 +1915,7 @@ static int amdgpu_dm_initialize_drm_device(struct amdgpu_device *adev)
|
||||||
primary_planes = dm->dc->caps.max_streams;
|
primary_planes = dm->dc->caps.max_streams;
|
||||||
|
|
||||||
total_planes = primary_planes + overlay_planes;
|
total_planes = primary_planes + overlay_planes;
|
||||||
ASSERT(total_planes < AMDGPU_MAX_PLANES);
|
ASSERT(total_planes <= AMDGPU_MAX_PLANES);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Initialize primary planes, implicit planes for legacy IOCTLS.
|
* Initialize primary planes, implicit planes for legacy IOCTLS.
|
||||||
|
|
Loading…
Reference in a new issue