]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Fix new stream count check in dc_add_stream_to_ctx
authorKen Chalmers <ken.chalmers@amd.com>
Wed, 27 Jun 2018 16:48:21 +0000 (12:48 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Jul 2018 19:52:00 +0000 (14:52 -0500)
commit986b2749317d76db7564c56ad14bf2f37011586d
tree8fbc3f6628f581b2c3da8058c8b9da5fe4334dfd
parent3e14b5fbf24190d44e05b5b2e54e6537c32ad730
drm/amd/display: Fix new stream count check in dc_add_stream_to_ctx

[Why]
The previous code could allow through attempts to enable more streams
than there are timing generators, in designs where the number of pipes
is greater than the number of timing generators.

[How]
Compare the new stream count to the resource pool's timing generator
count, instead of its pipe count.  Also correct a typo in the error
message.

Signed-off-by: Ken Chalmers <ken.chalmers@amd.com>
Reviewed-by: Charlene Liu <Charlene.Liu@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_resource.c