drm/amd/display: Do not set bandwidth on page flips.
authorLeo (Sunpeng) Li <[email protected]>
Wed, 4 Oct 2017 16:47:13 +0000 (12:47 -0400)
committerAlex Deucher <[email protected]>
Sat, 21 Oct 2017 20:49:45 +0000 (16:49 -0400)
commit3df8fcafb7edab79d76c4c76c93446b91eb4916f
tree436223fbf3e39d96b06a253742a7465d3e55a4e5
parentd94585a06b8197a723787c6c5502872abcff0e8e
drm/amd/display: Do not set bandwidth on page flips.

Which removes a lockdep warning for a possible deadlock situation:

While holding the drm event mutex (hard irq safe),
dc_post_update_surfaces_to_stream eventually acquires the atom context
lock, which is hard irq unsafe. We should only be calling it on full
updates anyways.

Also remove a redundant call to dc_post_update_surfaces_to_stream,
dc_commit_updates_for_stream already calls it.

Signed-off-by: Leo (Sunpeng) Li <[email protected]>
Reviewed-by: Harry Wentland <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/display/dc/core/dc.c