linux/drivers/gpu/drm/amd/display/dc/dml
Leo Li 776c1f569f drm/amd/display: Properly guard display_mode_vba with DCN2
[Why]

display_mode_vba is for DCN2 and up. When building for upstream (DCN1
enabled only), there will be a build error, since display_mode_vba.c/h
is stripped out.

Note that building DCN1 only with internal dal-dev is still fine, since
display_mode_vba.h is not stripped out internally - only in upstream.
The make directives therefore stll work, and so will any #include's.

[How]

Since subsequent generations require DCN2 enabled anyways, guard the
makefile directive for display_mode_vba.o with DCN2. Guard any includes
with DCN2. In addition, guard the entire contents of display_mode_vba.h
with DCN2, to simulate the file being stripped out in upstream.

A forward declaration for 'struct display_mode_lib' also needs to be
added in display_mode_lib.h. Previously, display_mode_vba.h contained
the forward declaration, and display_mode_lib.h in turn included it.
This won't work if mode_vba.h is stripped out, requring mode_lib.h to do
so itself.

Signed-off-by: Leo Li <sunpeng.li@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-06-22 09:34:09 -05:00
..
dcn20 drm/amd/display: fix pstate allow handling in dcn2 2019-06-22 09:34:08 -05:00
dc_features.h drm/amd/display: Restructuring and cleaning up DML 2017-10-21 16:45:24 -04:00
display_mode_enums.h drm/amd/display: Guard DML_FAIL_DSC_VALIDATION_FAILURE 2019-06-22 09:34:09 -05:00
display_mode_lib.c drm/amd/display: Add DCN2 changes to DML 2019-06-21 18:59:34 -05:00
display_mode_lib.h drm/amd/display: Properly guard display_mode_vba with DCN2 2019-06-22 09:34:09 -05:00
display_mode_structs.h drm/amd/display: Add writeback_config to VBA vars 2019-06-22 09:34:07 -05:00
display_mode_vba.c drm/amd/display: clean up validation failure log spam 2019-06-22 09:34:08 -05:00
display_mode_vba.h drm/amd/display: Properly guard display_mode_vba with DCN2 2019-06-22 09:34:09 -05:00
display_rq_dlg_helpers.c drm/amd/display: clean up dml_init_instance 2019-03-19 15:36:49 -05:00
display_rq_dlg_helpers.h drm/amd/display: Restructuring and cleaning up DML 2017-10-21 16:45:24 -04:00
dml1_display_rq_dlg_calc.c drm/amd/display: Fix boolean expression in get_surf_rq_param 2019-01-14 15:04:50 -05:00
dml1_display_rq_dlg_calc.h drm/amd/display: dc: Remove unused display_mode_vba.c 2018-02-19 14:18:32 -05:00
dml_common_defs.c amdgpu/dc: inline dml_round_to_multiple 2017-10-21 16:53:03 -04:00
dml_common_defs.h drm/amd/display: Move DTRACE and dml_print defines 2018-03-14 15:08:45 -05:00
dml_inline_defs.h drm/amd/display: add some math functions for dcn_calc_math 2019-06-11 12:49:21 -05:00
dml_logger.h drm/amd/display: Use MACROS instead of dm_logger 2018-03-14 15:08:45 -05:00
Makefile drm/amd/display: Properly guard display_mode_vba with DCN2 2019-06-22 09:34:09 -05:00