linux/drivers/gpu/drm/amd/display/dc
Harry Wentland 6131538b49 drm/amd/display: Only define DP 2.0 symbols if not already defined
[Why]
For some reason we're defining DP 2.0 definitions inside our
driver. Now that patches to introduce relevant definitions
are slated to be merged into drm-next this is causing conflicts.

In file included from drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c:33:
In file included from ./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:70:
In file included from ./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu_mode.h:36:
./include/drm/drm_dp_helper.h:1322:9: error: 'DP_MAIN_LINK_CHANNEL_CODING_PHY_REPEATER' macro redefined [-Werror,-Wmacro-redefined]
        ^
./drivers/gpu/drm/amd/amdgpu/../display/dc/dc_dp_types.h:881:9: note: previous definition is here
        ^
1 error generated.

[How]
Guard all display driver defines with #ifndef for now. Once we pull
in the new definitions into amd-staging-drm-next we will follow
up and drop definitions from our driver and provide follow-up
header updates for any addition DP 2.0 definitions required
by our driver.

We also ensure drm_dp_helper.h is included before dc_dp_types.h.

v3: Ensure drm_dp_helper.h is included before dc_dp_types.h

v2: Add one missing endif

Reviewed-by: Manasi Navare <manasi.d.navare@intel.com>
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Fangzhi Zuo <Jerry.Zuo@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2021-10-04 15:22:57 -04:00
..
basics
bios drm/amd/display: add cyan_skillfish display support 2021-10-04 15:22:57 -04:00
calcs drm/amd/display: Allocate structs needed by dcn_bw_calc_rq_dlg_ttu in pipe_ctx 2021-09-23 15:17:30 -04:00
clk_mgr drm/amd/display: add cyan_skillfish display support 2021-10-04 15:22:57 -04:00
core drm/amd/display: add cyan_skillfish display support 2021-10-04 15:22:57 -04:00
dce drm/amd/display: add cyan_skillfish display support 2021-10-04 15:22:57 -04:00
dce60
dce80 drm/amd/display: Return last used DRR VTOTAL from DC 2021-06-08 12:20:12 -04:00
dce100
dce110 drm/amd/display: Fix dynamic encoder reassignment 2021-09-23 15:17:30 -04:00
dce112
dce120 drm/amd/display: Return last used DRR VTOTAL from DC 2021-06-08 12:20:12 -04:00
dcn10 drm/amd/display: add cyan_skillfish display support 2021-10-04 15:22:57 -04:00
dcn20 drm/amd/display: add cyan_skillfish display support 2021-10-04 15:22:57 -04:00
dcn21 drm/amd/display: Move specific DCN2x code that uses FPU to DML 2021-08-05 21:17:59 -04:00
dcn30 drm/amd/display: Defer LUT memory powerdown until LUT bypass latches 2021-09-29 17:29:59 -04:00
dcn31 drm/amd/display: Defer LUT memory powerdown until LUT bypass latches 2021-09-29 17:29:59 -04:00
dcn201 drm/amd/display: add cyan_skillfish display support 2021-10-04 15:22:57 -04:00
dcn301 drm/amd/display: Use adjusted DCN301 watermarks 2021-09-23 15:17:30 -04:00
dcn302 drm/amd/display: Fix multiple memory leaks reported by coverity 2021-09-14 15:57:10 -04:00
dcn303 drm/amd/display: add missing ABM register offsets 2021-09-01 16:55:10 -04:00
dml drm/amd/display: add cyan_skillfish display support 2021-10-04 15:22:57 -04:00
dsc drm/amd/display: move bpp range decision in decide dsc bw range function 2021-09-14 15:57:09 -04:00
gpio drm/amd/display: add cyan_skillfish display support 2021-10-04 15:22:57 -04:00
hdcp drm/amd/display: Enforce DPCD Address ranges 2021-06-15 17:25:41 -04:00
inc drm/amd/display: add cyan_skillfish display support 2021-10-04 15:22:57 -04:00
irq drm/amd/display: add cyan_skillfish display support 2021-10-04 15:22:57 -04:00
virtual drm/amd/display: Fix issue with dynamic bpp change for DCN3x 2021-09-23 15:17:30 -04:00
dc_bios_types.h drm/amd/display: Interface for LTTPR interop 2021-04-09 16:48:25 -04:00
dc_ddc_types.h drm/amd/display: Support for DMUB AUX 2021-03-02 14:05:41 -05:00
dc_dmub_srv.c drm/amdgpu/display: fold DRM_AMD_DC_DCN3_1 into DRM_AMD_DC_DCN 2021-06-22 16:51:45 -04:00
dc_dmub_srv.h drm/amdgpu/display: fold DRM_AMD_DC_DCN3_1 into DRM_AMD_DC_DCN 2021-06-22 16:51:45 -04:00
dc_dp_types.h drm/amd/display: Only define DP 2.0 symbols if not already defined 2021-10-04 15:22:57 -04:00
dc_dsc.h drm/amd/display: move bpp range decision in decide dsc bw range function 2021-09-14 15:57:09 -04:00
dc_edid_parser.c
dc_edid_parser.h
dc_helper.c isystem: ship and use stdarg.h 2021-08-19 09:02:55 +09:00
dc_hw_types.h drm/amd/display: Add support for SURFACE_PIXEL_FORMAT_GRPH_ABGR16161616. 2021-05-27 15:00:47 -04:00
dc_link.h drm/amd/display: update cur_lane_setting to an array one for each lane 2021-09-28 09:30:10 -04:00
dc_stat.h drm/amd/display: DMUB Outbound Interrupt Process-X86 2021-07-08 15:14:36 -04:00
dc_stream.h drm/amd/display: Return last used DRR VTOTAL from DC 2021-06-08 12:20:12 -04:00
dc_trace.h drm/amd/display: Add control mechanism for FPU utilization 2021-08-05 21:17:59 -04:00
dc_types.h drm/amd/display: Add DP 2.0 SST DC Support 2021-09-01 16:55:10 -04:00
dc.h drm/amd/display: 3.2.155 2021-09-28 09:30:13 -04:00
dm_cp_psp.h drm/amd/display: Add DP 2.0 SST DC Support 2021-09-01 16:55:10 -04:00
dm_event_log.h
dm_helpers.h drm/amd/display: Add periodic detection when zstate is enabled 2021-09-14 15:57:10 -04:00
dm_pp_smu.h drm/amdgpu/pm: display vcn pp dpm (v4) 2021-05-21 10:31:55 -04:00
dm_services_types.h
dm_services.h
irq_types.h drm/amd/display: DMUB Outbound Interrupt Process-X86 2021-07-08 15:14:36 -04:00
Makefile drm/amd/display: add cyan_skillfish display support 2021-10-04 15:22:57 -04:00
os_types.h drm/amd/display: Only define DP 2.0 symbols if not already defined 2021-10-04 15:22:57 -04:00