Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp852248ybb; Fri, 3 Apr 2020 13:05:45 -0700 (PDT) X-Google-Smtp-Source: APiQypKjmJ8HKCaAPkdrfW2Cu75TGnP+TfqbTb79XJ+apjQDq1IuRq8G1W4VuacSytT2r4K4n+J6 X-Received: by 2002:a9d:171a:: with SMTP id i26mr8152637ota.170.1585944345357; Fri, 03 Apr 2020 13:05:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585944345; cv=none; d=google.com; s=arc-20160816; b=BX0PZhij+OgjjiHv/U9WH6lXJ90CCJAFon79pFpvqWbWaad5ZBSTXMFdm7K+25jlEE Re2D+CfJ7kCAsPrpVkRQrzGfy2Jgz8y0uE6pGjMPfhqoQYeFfzxYc5rln5kPZ9nWykMM m8AbC/AcBPqBLS/cD90Fdz7ibnHzzbO6laLELZnRvHeB3J5cMSQwYUaA9I62vTacQ/hV koNAHTGCWS5vgbBhaNVJgdFIbAy8DDkfrijbcsvr3Ztuuc7GMLW5IOROfmcDf1QuKhPe jFPJLQUWezs5RgrBefj5TQRW0ArGek4yMIZUU2va/ABBbaKfltuy28hrOuEd9cURmWGk TxOA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=u8hLZsj2YqQxSgV0Txi9THZdrIA9G0FOv6QX9kTj3Dc=; b=po9ZZ1SJbyN7ts7s8wL4oA8mhZDlR+y8+76Jo/bLYc4tTsgbIKHS06qknOxq3jRJtq uWSjN7SFbOkXZvmChL3YDQBIeIqw02vHjUn3QqIcpks8Nion5n6dGtcL4RV0IX9wYnUj HSuYMV3ZWpw8SGQHIzXp3MPF8XP8rFqub0YWJagkqSYPOMLX43/Yqp8CnnRPsayvMAat cQCQnaSsYvu/OcSzS8B+2DMiC3zBhILJimh36WtgIPR7dSOPrCDe+QIRwWdTxjfdDV0n reo0ufG5M1TqRRQsOn/ih5NjNeuF77zBz0p8GeKbhubmshhnL7r3i18nKFPVkzHFqL9R CXVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Nnzx9I2d; 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=pass (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 q196si4262826oic.143.2020.04.03.13.05.27; Fri, 03 Apr 2020 13:05:45 -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=@redhat.com header.s=mimecast20190719 header.b=Nnzx9I2d; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727829AbgDCUDt (ORCPT + 99 others); Fri, 3 Apr 2020 16:03:49 -0400 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:30234 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726460AbgDCUDt (ORCPT ); Fri, 3 Apr 2020 16:03:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585944228; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=u8hLZsj2YqQxSgV0Txi9THZdrIA9G0FOv6QX9kTj3Dc=; b=Nnzx9I2dA149QEL8+qUq+hzw0BKFEXpv62hwYoaB/mc4QIlJDfPfcc5Kt6LG79hPcvMnZ+ B+LUnX5Co1jKVGHthlUCpHgoEL52Sal170d8hL5ach/foQBCZC3SXny4EPUWYqxnH9mTeg aQbqlowNSbgtBRKf9ZVwFMbo90tBrxE= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-83-RaBLvtOdN-WS7Iz132o6gQ-1; Fri, 03 Apr 2020 16:03:46 -0400 X-MC-Unique: RaBLvtOdN-WS7Iz132o6gQ-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6614E1005516; Fri, 3 Apr 2020 20:03:44 +0000 (UTC) Received: from Ruby.redhat.com (ovpn-117-203.rdu2.redhat.com [10.10.117.203]) by smtp.corp.redhat.com (Postfix) with ESMTP id CFE7C96F83; Fri, 3 Apr 2020 20:03:41 +0000 (UTC) From: Lyude Paul To: dri-devel@lists.freedesktop.org Cc: Wayne Lin , Wayne Lin , Sean Paul , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , linux-kernel@vger.kernel.org Subject: [PATCH] drm/dp_mst: Don't drop NAKs for down responses Date: Fri, 3 Apr 2020 16:03:25 -0400 Message-Id: <20200403200325.885628-1-lyude@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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; } =20 memset(msg, 0, sizeof(struct drm_dp_sideband_msg_rx)); --=20 2.25.1