]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Code change for DML isolation
authorJun Lei <jun.lei@amd.com>
Mon, 14 Jun 2021 14:18:59 +0000 (10:18 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 22 Nov 2021 19:45:01 +0000 (14:45 -0500)
commit755ee32d78620124c82f1344b7ab816049460016
tree20d5033ecd94aab6acdbd2f0d599fffc6859f2bb
parent959dcf330724ccf5e3a2ceca0568c4098690657d
drm/amd/display: Code change for DML isolation

[why]
DML itself is SW only, putting the logic as part of resource makes it
hw dependent and thus impossible to compile separately from dc.
Separate compilation is critical for unit testing as well as bbox tool
development

[how]
create new dml wrapper.
Copy logic from the validation functions into dml wrapper as base
implementation. Dml wrapper has internal/static implementations
for all helpers, and does not reference other functions.
It may reference dc structures/types for convenience.

This change now has all the changes for DML isolation squashed into
one.

Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Wayne Lin <wayne.lin@amd.com>
Signed-off-by: Jun Lei <jun.lei@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml/display_mode_lib.h
drivers/gpu/drm/amd/display/dc/dml/dml_wrapper.c [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dml/dml_wrapper_translation.c [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/inc/dml_wrapper.h [new file with mode: 0644]