Commit 8dea4960 authored by Jun Lei's avatar Jun Lei Committed by Alex Deucher
Browse files

drm/amd/display: add support for disconnected eDP panels



[why]
On some configurations, eDP from GPU is muxed with another GPU.  DC does
not know state of mux, but DM has this knowledge.  This flag allows DC to ignore
creating EDP link when DM informs DC that EDP mux is not connected.

[how]
Add flag to dc, populate flag in DM

Signed-off-by: default avatarJun Lei <Jun.Lei@amd.com>
Reviewed-by: default avatarTony Cheng <Tony.Cheng@amd.com>
Acked-by: default avatarBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 21e471f0
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -169,11 +169,16 @@ static bool create_links(
		link = link_create(&link_init_params);

		if (link) {
			if (dc->config.edp_not_connected &&
					link->connector_signal == SIGNAL_TYPE_EDP) {
				link_destroy(&link);
			} else {
				dc->links[dc->link_count] = link;
				link->dc = dc;
				++dc->link_count;
			}
		}
	}

	for (i = 0; i < num_virtual_links; i++) {
		struct dc_link *link = kzalloc(sizeof(*link), GFP_KERNEL);
+1 −0
Original line number Diff line number Diff line
@@ -205,6 +205,7 @@ struct dc_config {
	bool disable_fractional_pwm;
	bool allow_seamless_boot_optimization;
	bool power_down_display_on_boot;
	bool edp_not_connected;
};

enum visual_confirm {