Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3653674ybb; Mon, 6 Apr 2020 12:52:13 -0700 (PDT) X-Google-Smtp-Source: APiQypI21Awf2D0pBPt35iwluU/k6YgOCp5lYWXajkYP/ubVgWgy6w8fwcm9O754PQjvvKGDlN1H X-Received: by 2002:a9d:75d4:: with SMTP id c20mr3498589otl.329.1586202733333; Mon, 06 Apr 2020 12:52:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586202733; cv=none; d=google.com; s=arc-20160816; b=Qj3oE/FvHbh1wBDaLKXZ0+dq+jkkGJ68PSVNbbUewEnv2TpnxqrFM6EkRA4zjZ+N9A oSyS2cLqabY3qWHtf2PyPW4I1ol4TpGR3b//+h/AehD8EyalipvfhwU3rLphdf7KgK01 8SESExQx3e/fSoSGgk61/1LeYzykcU7+gHS7D+jtIUxItqCF4TOS1L9xOlhqUwI0/99j 7GYhw3Vx2vB4jpOqs/hRn7XGZzCl8HE3ph9AZK0sIV5PNEQypbDQgJwhw295mNKUB1y0 GdhMVNbq+aLhbKocMMBq+GpGmh+zYNBH7fN+YQW0qip7zb7gxSb50Ih9Apip6Q1Hb0Jd lHHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=HN+8QL60vvL9kCpBSbE9fq49Mcbwf74LPWCucZYc7mA=; b=uiAVv7u6YKUhdN3s4gX6GF8iujLr7JPYSNSq4O5lZIMmIBaqXEwGWFP8u/CWSNgbFn ZTkzaXNLqjbApkyXASXdzCTEKSRKVYb1Xie5ZlNYn75kb3koe3MqDa9sOE4/Kau/TVZ2 a7NTzaJM7xjE0L2bau+unVLz2PYCpWFDgkRDit/3S4Gwz+1AjlHNsIQ2rkBbQJe2wK83 spM0/0aF1VRF88RmK4i1Km4oeCKaW8qKxSLcS8jlw03D0x2FHDqdkN/LSbiUDcyRtjCb 0cMRP3ki+DJvnVNH3vBCQLjyK+XuEogvgDtlWf6VlnA399vclDDPsBxC+JHqQpuOYrt4 XVaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@poorly.run header.s=google header.b=B9FOaVqT; 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 i124si7601130oib.172.2020.04.06.12.52.00; Mon, 06 Apr 2020 12:52:13 -0700 (PDT) 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=@poorly.run header.s=google header.b=B9FOaVqT; 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 S1726272AbgDFTuv (ORCPT + 99 others); Mon, 6 Apr 2020 15:50:51 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:45335 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725928AbgDFTuv (ORCPT ); Mon, 6 Apr 2020 15:50:51 -0400 Received: by mail-io1-f65.google.com with SMTP id y14so743791iol.12 for ; Mon, 06 Apr 2020 12:50:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=poorly.run; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HN+8QL60vvL9kCpBSbE9fq49Mcbwf74LPWCucZYc7mA=; b=B9FOaVqTO+t9lnVPfMPMz/Adln3AhSPXYXjuqMVQ3reEdfCxDmmY6uzxlRmDiPH9pJ y/bpog3PifuFFOX1unxdC+wSgxSAxj56kYkUzESy4/YbG15eX8wy0tDhPr8aGNZ267T5 xLOAP7aJ2agnjB1jHBkT5gtS5jn/nhEoQ4gm4Vlaw+9f90W8wWKSoi4smRo/G2bEi0b0 Lux6rfQfgad3pDJdYjW2GkRY02XLUJ0C1qjB+XS2zSOILjL5oSDth0o5H/zihn5p4vXv jKWUP0X6U1RFeKResnizqbp70IAmVah6nnucDuP0dDgJP6xHiqKZdcFxxhj121UYu7DT x26Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HN+8QL60vvL9kCpBSbE9fq49Mcbwf74LPWCucZYc7mA=; b=RH95urrFBbWrucyvcJi17tZ7S6KkQvxdl7MgF741Sq8NxIIOG86tVLdyn6E74/T1/6 Xr//SWpmXD1XPECPnT+ZBHnWafO9PlhARpr3bCRDYTj4MhBeqWduKoVwgPNR+CH3VFHy zDRZ+JdqTmesmQZ23ca9BRdizorN/auhufs23WwndekXbcTMZTnLALV8wsbiWoclGVdq /7sWLb4LJndMbFp2CtSQNIKR649BloiGKtTrmZP38uIj1Jt9Yp/bStNDXaHlSV4fUMTW iACVQC6T5WLaKSQEgmmlFOqLzPPKhflArkclD0lG4rClyQDEq3+qbA8+ua+359TgVtpq Am3A== X-Gm-Message-State: AGi0PuYJWNrF3BEcNdk5E6x/U3owC194J0J15Ie8W6LM8NomBMrxpkm0 iK+E1D+WPZsZOND06QPwa0adtnZ9Q4u9L9+l3mrF1Q== X-Received: by 2002:a02:cce2:: with SMTP id l2mr960339jaq.83.1586202650623; Mon, 06 Apr 2020 12:50:50 -0700 (PDT) MIME-Version: 1.0 References: <20200403200325.885628-1-lyude@redhat.com> In-Reply-To: <20200403200325.885628-1-lyude@redhat.com> From: Sean Paul Date: Mon, 6 Apr 2020 15:50:14 -0400 Message-ID: Subject: Re: [PATCH] drm/dp_mst: Don't drop NAKs for down responses To: Lyude Paul Cc: dri-devel , Wayne Lin , Wayne Lin , Sean Paul , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 3, 2020 at 4:03 PM Lyude Paul wrote: > > It looks like that when we introduced the ability to handle multiple > down requests at once, we accidentally started dropping NAK replies - > causing sideband messages which got NAK'd to seemingly timeout and cause > all sorts of weirdness. > > So, fix this by making sure we don't return from > drm_dp_mst_handle_down_rep() early, but instead treat NAKs like any > other message. > > Signed-off-by: Lyude Paul > Fixes: fbc821c4a506 ("drm/mst: Support simultaneous down replies") > Cc: Wayne Lin > Cc: Wayne Lin > Cc: Sean Paul Thank you for fixing this Reviewed-by: Sean Paul > --- > drivers/gpu/drm/drm_dp_mst_topology.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/gpu/drm/drm_dp_mst_topology.c b/drivers/gpu/drm/drm_dp_mst_topology.c > index 10d0315af513..5449ada3e019 100644 > --- a/drivers/gpu/drm/drm_dp_mst_topology.c > +++ b/drivers/gpu/drm/drm_dp_mst_topology.c > @@ -3813,7 +3813,6 @@ static int drm_dp_mst_handle_down_rep(struct drm_dp_mst_topology_mgr *mgr) > txmsg->reply.u.nak.reason, > drm_dp_mst_nak_reason_str(txmsg->reply.u.nak.reason), > txmsg->reply.u.nak.nak_data); > - goto out_clear_reply; > } > > memset(msg, 0, sizeof(struct drm_dp_sideband_msg_rx)); > -- > 2.25.1 >