]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/amd/display: Fix stale buffer object (bo) use
authorPratik Vishwakarma <Pratik.Vishwakarma@amd.com>
Thu, 7 Jun 2018 06:18:40 +0000 (11:48 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 13 Jun 2018 18:45:23 +0000 (13:45 -0500)
commit4b3c641b5f3a1d67c7bec60fb033233504e636ee
treeb1be7b61e45ab8a50f5751429b1f8ed7818e0419
parentc4ff91dd40e2253ab6dd028011469c2c694e1e19
drm/amd/display: Fix stale buffer object (bo) use

Fixes stale buffer object (bo) usage for cursor plane

Cursor plane's bo operations are handled in DC code.
Currently, atomic_commit() does not handle bo operations
for cursor plane, as a result the bo assigned for cursor
plane in dm_plane_helper_prepare_fb() is not coherent
with the updates to the same made in dc code.This mismatch
leads to "bo" corruption and hence crashes during S3 entry.

This patch cleans up the code which was added as a hack
for 4.9 version only.

Reviewed-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Signed-off-by: Pratik Vishwakarma <Pratik.Vishwakarma@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c