]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Mark DSC resource as unused after copying to the secondary ODM pipe
authorNikola Cornij <nikola.cornij@amd.com>
Wed, 3 Apr 2019 16:17:34 +0000 (12:17 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 22 Jun 2019 14:34:10 +0000 (09:34 -0500)
commit2ac18a590446aa01857668dae66c4334089e0d7c
treecf25baff9679a5ca67d180dbd559404592ba60b8
parent953f4d1e31d846bee9b9b24fdd2c1e6a79935ee9
drm/amd/display: Mark DSC resource as unused after copying to the secondary ODM pipe

[why]
DSC resource has to be acquired before it can be used and simply copying
a reference to it is very likely to cause problems when accessing DSC.

[how]
Set DSC resource pointer to NULL to mark it as unused after primary pipe
resources were copied to the secondary ODM pipe.

Signed-off-by: Nikola Cornij <nikola.cornij@amd.com>
Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c