Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp223921pxb; Mon, 2 Nov 2020 19:51:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJw6XI6zMuDYYE8h3zdqXqBy3myJdyniAWSNlEfIWM2SReUvTtloRoFILkchuOG8QT4/5JWt X-Received: by 2002:a17:906:12c1:: with SMTP id l1mr17589649ejb.528.1604375514741; Mon, 02 Nov 2020 19:51:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604375514; cv=none; d=google.com; s=arc-20160816; b=U2r+KGw0sNgcij+DITXSoPbvUYTdivNK6bcG1jm/g55oF1sfuHKXzwjw9Gl6f/9pWQ RzWTYq4McM1u8qHyXUcBS5dot/RWJOWIOr8VLEIb15sSWUCzRwe+SdfZEZJBU2nqKiCU oAPtkPEpx58Ibk0niC4/NPz6LbtKFBL1IUmlLEty+3/SBRnDLpkTgXNH3uWPhltowluU JZAwR0uwGw2sG2qvqlyOf8JJmI5PREeawAvLn4SyLte3GaramM49/vEUGfKtry44EJrT C3ATCnhkKbbpv6Ry/Lew71Zm9pI7l31hWeN/LFXHZ7DYp1vH0/h+gD2QinneMSKTjKVm MKdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:to:from; bh=RliCu92b3IQig0c2jWKF3VuVRgf8DqyL8AZCCs07qII=; b=oYf58kqwHWX+JrJiDXjYanrm4tw9c+e2MCHF8SYRhhFS/oqmHWltEeEZ8BEybhIP9S ZCgQR+4atOyFDDqnEc0ijNpcbib0M75fRLkO+6KBWkGDjY3Ano+pm4coCw+6aH0W+DoQ KDVZLxvr1SWMBNUlfBrGteeOKQNX/YzG92rz0Xe1bboXIiua2ZDWKaOwcABduvxiZupt VG9AI7ftBMzv/fMkqADfqKTRk7E/PR0wDpBgcPuw/5rC6ifUmT3hqA0K24E8u3OOXHXO S9XdMCOy/Hs9p9XPUle1+vTiwVZS3eucGZrnDKTsr0/9mpYaUxC/2JO6FyV5d0ixVgcP i1Qw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q19si3253231ejr.425.2020.11.02.19.51.32; Mon, 02 Nov 2020 19:51:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727312AbgKCDtN (ORCPT + 99 others); Mon, 2 Nov 2020 22:49:13 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:42568 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727279AbgKCDtN (ORCPT ); Mon, 2 Nov 2020 22:49:13 -0500 Received: from mail-pl1-f200.google.com ([209.85.214.200]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1kZnJn-0002Sw-0h for linux-kernel@vger.kernel.org; Tue, 03 Nov 2020 03:49:11 +0000 Received: by mail-pl1-f200.google.com with SMTP id n10so9868685plk.14 for ; Mon, 02 Nov 2020 19:49:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=RliCu92b3IQig0c2jWKF3VuVRgf8DqyL8AZCCs07qII=; b=Xm0reo7AGvfYjJnavMFvn6y9zmK/uNijkeyJ8gOvLfVdHDAjvsSiEX2UCZrOFTcGVV qnUqkJFn/qMPJ+Dm60u9VgHsa4ppwG3WUB0tIUVl/SV1V/1oQGoekCGel42y27pkilFz C3PEadez14V4pHOXZIsgC2zbzDftRqLsx8SRWgnMo+9y5sR/sxyG6w1Ir1IlphjOAFqL zKOAB+Lcc9ZQ9OxOL1PSt14yMEuwidvlFesafttZP/dMfLLfjMnEGFK/g6OGEf/kUGkd pIxmf86njRfzSxWz69PTi0k3/ySQ9gsigZV7Oqi5lsydm65OhTGX9AGOSAZVENzPBAr6 8WVA== X-Gm-Message-State: AOAM531GFI2QqMB8b+Hl7W5MTxzg1d1C5YHq7D6eSja264GkpRt+DgRo KDUMtdECp87POoSZIudMe+VGTAtczX6BqGQ7/FXIHQQJ9ygHqfKIm7WEf67HFNdcNRx1HycFCo7 nMpIBWbN7ZPXrbqnrLtnlsE/V1CwsSw19QkyhUrLLIA== X-Received: by 2002:a17:90a:9dcb:: with SMTP id x11mr1573628pjv.132.1604375349510; Mon, 02 Nov 2020 19:49:09 -0800 (PST) X-Received: by 2002:a17:90a:9dcb:: with SMTP id x11mr1573609pjv.132.1604375349231; Mon, 02 Nov 2020 19:49:09 -0800 (PST) Received: from canonical.com (61-220-137-37.HINET-IP.hinet.net. [61.220.137.37]) by smtp.gmail.com with ESMTPSA id jy19sm1072088pjb.9.2020.11.02.19.49.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Nov 2020 19:49:08 -0800 (PST) From: Koba Ko To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Lyude Paul , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] Revert "drm/dp_mst: Retrieve extended DPCD caps for topology manager" Date: Tue, 3 Nov 2020 11:49:07 +0800 Message-Id: <20201103034907.72129-1-koba.ko@canonical.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This reverts commit ad44c03208e46b83e4ae3269e32c9e524aa71cf8. Currently DRM driver assume the source device caps is higher than the MST device caps. With this commit, this statement would be broken. e.g. the source device only support DP1.2 and the mst device support DP1.4. Signed-off-by: Koba Ko --- drivers/gpu/drm/drm_dp_mst_topology.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/drm_dp_mst_topology.c b/drivers/gpu/drm/drm_dp_mst_topology.c index 153b6065ba29..e87542533640 100644 --- a/drivers/gpu/drm/drm_dp_mst_topology.c +++ b/drivers/gpu/drm/drm_dp_mst_topology.c @@ -3686,10 +3686,9 @@ int drm_dp_mst_topology_mgr_set_mst(struct drm_dp_mst_topology_mgr *mgr, bool ms WARN_ON(mgr->mst_primary); /* get dpcd info */ - ret = drm_dp_read_dpcd_caps(mgr->aux, mgr->dpcd); - if (ret < 0) { - drm_dbg_kms(mgr->dev, "%s: failed to read DPCD, ret %d\n", - mgr->aux->name, ret); + ret = drm_dp_dpcd_read(mgr->aux, DP_DPCD_REV, mgr->dpcd, DP_RECEIVER_CAP_SIZE); + if (ret != DP_RECEIVER_CAP_SIZE) { + DRM_DEBUG_KMS("failed to read DPCD\n"); goto out_unlock; } -- 2.17.1