]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Indicate use of TMZ buffers to DC
authorHarry Wentland <harry.wentland@amd.com>
Wed, 22 Apr 2020 21:54:55 +0000 (17:54 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Apr 2020 20:20:29 +0000 (16:20 -0400)
commitb00566ba839d33f99c0055e180e85fffc6dadf4c
tree3c05411c18e6ea87ff72f467eda1ad1f2872bb0a
parent2f455500ea7fd6f9b96a76a320d4d8bceec82f70
drm/amd/display: Indicate use of TMZ buffers to DC

[Why]
Hubp needs to know whether a buffer is being scanned out from the trusted
memory zone or not.

[How]
Check for the TMZ flag on the amdgpu_bo and set the tmz_surface flag in
dc_plane_address accordingly.

Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c