OSDN Git Service

drm/amd/display: Improvements in secure display
authorAlan Liu <HaoPing.Liu@amd.com>
Fri, 2 Dec 2022 11:10:34 +0000 (19:10 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 3 Jan 2023 21:51:12 +0000 (16:51 -0500)
commitcbd8f20b4833f90ee5721e7f1f3a65cd93c622d8
treeb647ae623cbbba76dcf9cf32fc8171aeefd62303
parent878a3c004c0e49bb2d4e552899aaa98f9fad309e
drm/amd/display: Improvements in secure display

[Why]
- Need error message when failing to allocating secure_display_ctx.
- Need to check if secure display context in psp is initialized or not
before using it.

[How]
- Add error message when memory allocation fail.
- Add check before accessing psp secure display context.

Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alan Liu <HaoPing.Liu@amd.com>
Reviewed-by: Wayne Lin <Wayne.Lin@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c