Received: by 10.223.185.116 with SMTP id b49csp189996wrg; Thu, 8 Mar 2018 15:27:51 -0800 (PST) X-Google-Smtp-Source: AG47ELsD2QvCM2l/ymOgAOUGBLL41rhNmr9WHlcoIRrhVwsPi8oyaUCycChMNBEIT443HNm63tuj X-Received: by 10.98.202.138 with SMTP id y10mr27795588pfk.184.1520551671077; Thu, 08 Mar 2018 15:27:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520551671; cv=none; d=google.com; s=arc-20160816; b=kd39AycHSdSAz/qdt80Kp2erTLhcEj+dMR0rs49yZPth+86gc1TTjWm6ANzcn/vz7R kT6lVT9N0VRP4X4N54P086VfK3bf98OAbxCX0JR3zANPOG6med8Czr0rP/WXrp0JMno+ Ww0WOxsCAiD+N1wrKMPEpxJpSDpAwM82LUcNiFO7Urelo6+WCUj96Etv1ztFtXE1RsXe sJfs1W6e6EtjWauw4XSRrel8NXrAsYa+Numjru14uayxwGhlNQm4OOR/Cbzn9TKclc6d OJTIXzllbzPg6zq0DXHKv+ReMx/cvFUCRI8CKYTO6g9bjA/yZXWJbaenhsUfvGoXdcHL DNVQ== 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:arc-authentication-results; bh=KbyG9uYz63e4Q0y4RHyaJqztJAgXhoUusW1Jjo0ryIE=; b=pashQ+jUIbZAC5OwmLKmHXU5QcLlQ403uxp3+pbJU1TRPscDML/yRwj6qZCNg/z5tc oZHXmmD66Uy//YMG1abQl6ucFg/zzQQVXu5GdBN2ROn6SZtmMgsSU6E4ZJXEJM9hM5nr 0gRZPFsrTuJWcLwQzpC24pHB3RdPhmqBHNtD7W5kE0Mi5HU5z9C2gveqwhMyhKgVSbDm 56ZIc3DA1A12EDZ4M1LoybvXtJPnZglC706Dm+QL5e+Enx7gBPaKvWtWIqsw1O/ZCcNI /I5KOjqx3LdZZ+p7odrFldlAgJbFbcKMam8t1vu74TNs2W/jY+o/+6/WdRDY6gtg+Ub5 GkJw== 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 l4-v6si15880153plk.510.2018.03.08.15.27.36; Thu, 08 Mar 2018 15:27:51 -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 S1751218AbeCHXY3 (ORCPT + 99 others); Thu, 8 Mar 2018 18:24:29 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:43040 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751173AbeCHXY2 (ORCPT ); Thu, 8 Mar 2018 18:24:28 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 07EFABD9E; Thu, 8 Mar 2018 23:24:28 +0000 (UTC) Received: from malachite.bss.redhat.com (dhcp-10-20-1-75.bss.redhat.com [10.20.1.75]) by smtp.corp.redhat.com (Postfix) with ESMTP id 372CB202322A; Thu, 8 Mar 2018 23:24:27 +0000 (UTC) From: Lyude Paul To: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Cc: Manasi Navare , =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= , "David Airlie" , "Rodrigo Vivi" , linux-kernel@vger.kernel.org, "Jani Nikula" , "Joonas Lahtinen" , "Sean Paul" , "Maarten Lankhorst" , "Gustavo Padovan" Subject: [PATCH 0/6] Implement proper MST fallback retraining in i915 Date: Thu, 8 Mar 2018 18:24:14 -0500 Message-Id: <20180308232421.14049-1-lyude@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Thu, 08 Mar 2018 23:24:28 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Thu, 08 Mar 2018 23:24:28 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'lyude@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is the first version of my patch series to implement MST fallback retraining in i915, along with improving the stability of i915's mst retraining in general. Additionally, it also introduces helpers into DRM to help with correctly handling MST fallback retraining so that other drivers may also implement it. If your driver has a homegrown implementation of this, you should convert it to these helpers to ensure that the behavior of atomic commits and connector's link status properties in the event of requiring retraining on an MST topology remains consistent between DRM drivers. Additionally, this lets me use the DisplayPort on my dock so I can finally free up the thunderbolt 3 connector on it for more useful things. At long last :). Cc: Manasi Navare Cc: Ville Syrjälä Lyude Paul (6): drm/i915: Remove unused DP_LINK_CHECK_TIMEOUT drm/i915: Move DP modeset retry work into intel_dp drm/i915: Only use one link bw config for MST topologies drm/dp_mst: Add drm_dp_mst_topology_mgr_lower_link_rate() drm/dp_mst: Add drm_atomic_dp_mst_retrain_topology() drm/i915: Implement proper fallback training for MST drivers/gpu/drm/drm_dp_mst_topology.c | 296 ++++++++++++++++++++- drivers/gpu/drm/i915/intel_display.c | 23 +- drivers/gpu/drm/i915/intel_dp.c | 360 +++++++++++++++++++------- drivers/gpu/drm/i915/intel_dp_link_training.c | 2 +- drivers/gpu/drm/i915/intel_dp_mst.c | 64 +++-- drivers/gpu/drm/i915/intel_drv.h | 23 +- include/drm/drm_dp_mst_helper.h | 5 + 7 files changed, 662 insertions(+), 111 deletions(-) -- 2.14.3