Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3119251imu; Mon, 19 Nov 2018 10:55:12 -0800 (PST) X-Google-Smtp-Source: AJdET5ehADkYxSYDDqzdRZtzXFr3HUadZOMlREqifFwUqJph7GElGwY0c7sE+k4H3q9+cfDwjS/6 X-Received: by 2002:a63:2109:: with SMTP id h9mr20891226pgh.277.1542653712751; Mon, 19 Nov 2018 10:55:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542653712; cv=none; d=google.com; s=arc-20160816; b=xdNbbL1T+YmLY7OnDPE5tJUMqsvhNOyqBaA4C6ycTUj1vhQU2lJLtuMicNT8gBdVVD magKy6SkFPNvr7SJFOwnoZvJplR0zoPf/Fq/8r8885GHOOlumWb+TpF/5w0jh9PMiAmV 7cNVhnQrp8PSv/Pn1QfOeAnvyeW77cDi9q8hk3rpKc5O8KfY+BQmKCkxM0rTSiGtfx+C XFg6J0doX5YPA52Gy2MPFEP055BcfK53osh2POIOqBS1x3ian4MGMHt3z6yBWwtxjEzj H9WmTGFK6hj1ewLpnaZJNhu48jbXpk5MnpMowMTFKW7EuXZNoz6lvb+POhuVb6L3bxhN s7jA== 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:organization:references:in-reply-to:date:cc:to:from :subject:message-id; bh=+bYoVh0A8+aWuarnNnm9+V3LNM1aQlROIP9n4VygBS8=; b=ULeuDe6MjGV5oESG0fnp3yhzZZXZPzAYZUKmhO7Sjy/z/i1tLfyzF0tk0MCXPUXr1f QaY0WEukK70yfAYKYvr20YU/sKI4neHdxPhllk776oyWW0XoZtU7VihIF4EukKvCOK0q kzprzLC8Up1a0b7NjvDmQAudXSxOAsVZaxLpTz/MDAlVQ9kmolhqaiOK7e82kfeUc+S0 +ft1v+IZYmiWZKGgOvYhw3mWQOFvWWjkajdjpclMgtMtEQY1Zp998XJx0z7TouwV9RP9 rDq7g+e2un6OpbGwjfiolvxgQhWg7bujFvXsrgHqup7qqxH71CRWXCcR3Sv3eTC/UIUB o62w== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v6si554473pfv.181.2018.11.19.10.54.58; Mon, 19 Nov 2018 10:55:12 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730428AbeKTFQr (ORCPT + 99 others); Tue, 20 Nov 2018 00:16:47 -0500 Received: from mail-qk1-f193.google.com ([209.85.222.193]:46268 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729608AbeKTFQr (ORCPT ); Tue, 20 Nov 2018 00:16:47 -0500 Received: by mail-qk1-f193.google.com with SMTP id q1so50357950qkf.13 for ; Mon, 19 Nov 2018 10:51:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:organization:user-agent:mime-version :content-transfer-encoding; bh=+bYoVh0A8+aWuarnNnm9+V3LNM1aQlROIP9n4VygBS8=; b=PQpQev1n3u9XQLJwbhfQ+pIxoIzDeNf597NFZC/6Syx9X7lp/OAFo+FZV6WsuyMA8E iBNkKfBx4hbdAqh4IOr46vHcgmhR9RWspHfD5cdnat0OOE99axoVViaQzjai6GN4ZMuj AEUsPI24OJNkyi/U3YP9bIh+qAqDECG/y12fUZ9YQqEK4NZPzqUwe+RL6qLrMw4BpOmb sorX+bFELUbJYg6quthgam2OWyQR4aJ89F4nujS+Vu/hYjKfqUbkns5iwgot6lyGVU4z 0jvNQw/qYjTS0KExLCpAA3bbHhZhlZm+1BJLl6EYDqrx8IofMpSyhn40Kn8HAweaXqPW UxLA== X-Gm-Message-State: AGRZ1gKz2DkOMrEgnMcDP8FIryiw1DpVZ3iJhnN5H7PpX+gg0REtNk9Q U3Ub2KCwRX4n3lo08u+pIVClxA== X-Received: by 2002:a0c:d792:: with SMTP id z18mr23094403qvi.183.1542653515286; Mon, 19 Nov 2018 10:51:55 -0800 (PST) Received: from dhcp-10-20-1-11.bss.redhat.com ([144.121.20.162]) by smtp.gmail.com with ESMTPSA id e17sm22982420qte.12.2018.11.19.10.51.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 19 Nov 2018 10:51:54 -0800 (PST) Message-ID: <6033a16ccbc6e1286b4bfd082f0de9f0d60594b7.camel@redhat.com> Subject: Re: [PATCH 1/2] drm/amd/dm: Don't forget to attach MST encoders From: Lyude Paul To: "Zuo, Jerry" , "amd-gfx@lists.freedesktop.org" Cc: "Wentland, Harry" , "Li, Sun peng (Leo)" , "Deucher, Alexander" , "Koenig, Christian" , "Zhou, David(ChunMing)" , David Airlie , "Li, Roman" , "S, Shirish" , Daniel Vetter , "dri-devel@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" Date: Mon, 19 Nov 2018 13:51:53 -0500 In-Reply-To: References: <20181116232443.1709-1-lyude@redhat.com> <20181116232443.1709-2-lyude@redhat.com> Organization: Red Hat Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.2 (3.30.2-2.fc29) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Cool! If it did actually fix those problems, would you mind making sure this gets Cc'd to stable when it gets pushed upstream? On Mon, 2018-11-19 at 15:00 +0000, Zuo, Jerry wrote: > Reviewed-by: Jerry (Fangzhi) Zuo > > The change fixed MST + SST daisy chain and S3 scenarios. The issue shows > huge delay in MST + SST daisy chain, and soft hang in S3 resume. > > The aux sequence is changed by failed iteration search in > drm_connector_for_each_possible_encoder(). > The failure of searching for the best encoder for the connector due to the > miss of attached encoder in the process of adding MST connector. The > iteration search takes time to push drm_dp_send_enum_path_resources() aux > transaction after the mode probe, and causes conflict to > drm_dp_mst_i2c_xfer(), leading to the aux transaction timeout. > > -----Original Message----- > From: Lyude Paul > Sent: November 16, 2018 6:25 PM > To: amd-gfx@lists.freedesktop.org > Cc: Zuo, Jerry ; Wentland, Harry > ; Li, Sun peng (Leo) ; Deucher, Alexander < > Alexander.Deucher@amd.com>; Koenig, Christian ; > Zhou, David(ChunMing) ; David Airlie > ; Li, Roman ; S, Shirish ; Daniel > Vetter ; dri-devel@lists.freedesktop.org; > linux-kernel@vger.kernel.org > Subject: [PATCH 1/2] drm/amd/dm: Don't forget to attach MST encoders > > Drive-by fix, this is bound to cause problems somewhere. > > Signed-off-by: Lyude Paul > Cc: Jerry Zuo > --- > drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c > b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c > index d02c32a1039c..0cca1809fdcd 100644 > --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c > +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c > @@ -342,6 +342,8 @@ dm_dp_add_mst_connector(struct drm_dp_mst_topology_mgr > *mgr, > master->connector_id); > > aconnector->mst_encoder = dm_dp_create_fake_mst_encoder(master); > + drm_connector_attach_encoder(&aconnector->base, > + &aconnector->mst_encoder->base); > > /* > * TODO: understand why this one is needed -- Cheers, Lyude Paul