Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp13472770ybl; Sun, 29 Dec 2019 12:44:36 -0800 (PST) X-Google-Smtp-Source: APXvYqyHPLHkZNZYetcj6sNGV/I5xvSZexWWmKOh9JG9CWAOCvscBFEYmHcOPP+JuC7pTl4+0aBO X-Received: by 2002:a9d:7357:: with SMTP id l23mr67726130otk.10.1577652276401; Sun, 29 Dec 2019 12:44:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577652276; cv=none; d=google.com; s=arc-20160816; b=Ujz9o3GyKJIo1DbVSuuQ57m7a+0INlyr6qBTB5OyoWk73Xr9zeNdXDGF500QmRUM2i 0ib/EPZ9fiYV7Tji7VnTw3F5W1c8cau6a8jSjg0h+k63JWrOPr2rfieKq3Spj2oc1o+6 +rrCJm7grz08Y4gTe1M/ggWY4z8YpSYdxurmj7aqsGaHnzdhwghx6NIJ8BwKtANKAa+N MRuPxIP+UW+AQHbY1VJIvPfdvXOhD9S7Z082/YNXO+xR70dHWX1TVaFqHI4XSZNTlw7l mTbFS3TuvQwXyZ+CTW3Te7uHeqzdqRMuVH5hUjOYg6TYifvdgnySwutkqA6WwSgQcu9m 1cew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=f9iKbewb2sDQ0fv70c9SYP004sZT1FdCjIJxIkgD/MU=; b=uJw7/Oi+i+NWqJFYeSl6+Wi/ux2de6jfIiXZF5+UbLP/UnErlpg5ruFdo/g1Fi3lW6 DN602IYcrm0exxCnGEuuWDjavlLl/J8xUkhjAfd6xfUzCI+4s1HwWliK4HlTW19KrNJn rwXbj7SfESc1jxTDDpmtCEFFDg4nrt3RpbhOqp3ueNzOLv2Gal7NE3sCwL/s8VdO9xIv v02rjgvO1Uzsh2KrWgG58ufZOv0iSZvA9YvZRVhpjIaaENMjIz0EdJ9OKTXibnYqBkVg VN7n6V9NjnYmDCId7C7JP8gM+bBe2CugmaoK3EvpsacbJlcRzhMEADYk2NCmhaEnM0aE T7qA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=F7Oez4Fv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v21si22347569otj.282.2019.12.29.12.44.24; Sun, 29 Dec 2019 12:44:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=F7Oez4Fv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730614AbfL2RoF (ORCPT + 99 others); Sun, 29 Dec 2019 12:44:05 -0500 Received: from mail.kernel.org ([198.145.29.99]:51906 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730597AbfL2RoD (ORCPT ); Sun, 29 Dec 2019 12:44:03 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 22F3320718; Sun, 29 Dec 2019 17:44:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1577641442; bh=tIVi2pHfOezUp/y8Sz3RUPHHlYUhRouaMh1e4UmHkB8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=F7Oez4FvdOazaH9C2zKRzHNrnbTP5ZP/ixbrfYGm20ukHukrLiSyDK0bfHfV2m+tO xB1w1dR6ugFxyUKxt4EZyxPlvgLdgybBNdkU5sj0ORpSGNtBSmEviCl1t5840mKQSZ Vm1NVym6ZJfGdlq+mWvN2kzCFtL4XtS45k867Py0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Martin Tsai , Charlene Liu , Leo Li , Alex Deucher , Sasha Levin Subject: [PATCH 5.4 060/434] drm/amd/display: Handle virtual signal type in disable_link() Date: Sun, 29 Dec 2019 18:21:53 +0100 Message-Id: <20191229172705.811086209@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191229172702.393141737@linuxfoundation.org> References: <20191229172702.393141737@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Martin Tsai [ Upstream commit 616f5b65f1c02d3d6ae370644670d14c57de2fd8 ] [Why] The new implementation changed the behavior to allow process setMode to DAL when DAL returns empty mode query for unplugged display. This will trigger additional disable_link(). When unplug HDMI from MST dock, driver will update stream->signal to "Virtual". disable_link() will call disable_output() if the signal type is not DP and induce other displays on MST dock show black screen. [How] Don't need to process disable_output() if the signal type is virtual. Signed-off-by: Martin Tsai Reviewed-by: Charlene Liu Acked-by: Leo Li Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/display/dc/core/dc_link.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link.c b/drivers/gpu/drm/amd/display/dc/core/dc_link.c index ca20b150afcc..de1b61595ffb 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_link.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link.c @@ -2169,8 +2169,10 @@ static void disable_link(struct dc_link *link, enum signal_type signal) dp_set_fec_ready(link, false); } #endif - } else - link->link_enc->funcs->disable_output(link->link_enc, signal); + } else { + if (signal != SIGNAL_TYPE_VIRTUAL) + link->link_enc->funcs->disable_output(link->link_enc, signal); + } if (signal == SIGNAL_TYPE_DISPLAY_PORT_MST) { /* MST disable link only when no stream use the link */ -- 2.20.1