Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp91763pxk; Tue, 22 Sep 2020 19:59:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/d2HtWXrOZUvCGLhZgSTpDqrtNeUGq9COz+E3dyTFlUeY1yheb3A1zt1ZH2EvjEt9t84f X-Received: by 2002:a17:906:3957:: with SMTP id g23mr8583530eje.24.1600829995335; Tue, 22 Sep 2020 19:59:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600829995; cv=none; d=google.com; s=arc-20160816; b=PRpyPS0nmGPXgs5aupoadQ0b7j0aHrrBS7dOq3W3/fKpcwkXN7YetaDNQyB3gd9Va2 yLzKHY6IUjwOS7uy0+i5xFxZ3SI0To4k9SljtDYb/ILi7elSUWNTN6HysCzyWuTgKS7E eDIB5j1yhu/movQAdKzMkpets7RWT+0mQdi2g+gVomj79D9Ol4td+6CqwScGEgUUfrpA 60Xo1bZgzR5QguFhgsKk/TcFd57zkwM4DaETDRqS+Och+4Zwdbbl4rk0cq1IWa0fU3ck OI7/xMhTOBIDCvUgR07p1raOU9q4KhEDLZYI75p5/VhxItHoaC5hc41HcMXrMbObgutt GU6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=y8KnY5LD0NHhoP43zjX0d7M1I3RNfGZr68FzzWqbIXA=; b=ngp9H6+TSyH1A+r0d8y/K3jwea2/c2K6qSnSE1jWluiCJJxMwGLVuHdAtIEl2unrC1 7F1XtC7GWZ+pfKjBa5Y4SxO/PapAA6Cmz68E/fA2g/xZKMm7Nu0oJPfbNteYmWA+ZEgK JYxYlaAWU60GrVYmB1FLfHbSz3o9oKs9tZ3nbXCuWVSlv/KmpCGSsP52FobF+2E3m1/e UW+uUiNCUVwJQv9KYEyoofmQqsKoCnHUV1qLHNT5SxwbRH0Vw02MQzZtov2VCfvDOIed Jcf7UObsL3evbIe47duyx2648ZBAcLKDEfPjGw3J+RpuKr/Fc2Az3I7zvDCDmdl8diIw SKpQ== 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 ha18si12195667ejb.543.2020.09.22.19.59.32; Tue, 22 Sep 2020 19:59:55 -0700 (PDT) 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 S1726992AbgIWCQs (ORCPT + 99 others); Tue, 22 Sep 2020 22:16:48 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:34176 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726548AbgIWCQs (ORCPT ); Tue, 22 Sep 2020 22:16:48 -0400 Received: from mail-oi1-f198.google.com ([209.85.167.198]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1kKuKr-0007Ju-UE for linux-kernel@vger.kernel.org; Wed, 23 Sep 2020 02:16:46 +0000 Received: by mail-oi1-f198.google.com with SMTP id w200so8572206oie.0 for ; Tue, 22 Sep 2020 19:16:45 -0700 (PDT) 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=y8KnY5LD0NHhoP43zjX0d7M1I3RNfGZr68FzzWqbIXA=; b=VSL17r3xTQI+xk4pu68B5TR776sTw2gD+e9w/vsi/IvBGaAFNEg2jvut2Bk/6RiyOW eK4XrPbbL/VubezJ6J4Hhh33lb3wYCqet3/cy+B2lz31QpZ8VO26T24kCAIqrr66Z+zG 4OeRiIczRsu4v4ZVPoRc9yQB9l2cwTxP0ir8cikQqjfqVLmoFJUqNqLAv4MiRKK0JXFO 6DY2mJuWQQcVnwdxkO3847xyJBZh+qijWHWievC9Z+Sk3OuXt1+KWaIgUk7O5bDofwNI 8PySQ8feTxykPyGgpkSl2ZEUl9n4J+4QwWt0g8YBT/g/8BhBvWSbe3G77k2uS8ijgmt3 em/w== X-Gm-Message-State: AOAM531IKg61k9RIot783uXE8f6pTLCSZGgteftdOiaFulSn/ygboM+B uhtfhONAu1SsIWwxMkZQzNEZR7WyuLgmLTdhmVsYLuf1aCEpy5MSU61j2pW/rM6dAC7YrYt/35x IHwbONjuOAN2NwC7IxKeL8vBpGV3wBsn59LSzI1EbpKqqcB1AiAJksYEMyQ== X-Received: by 2002:a9d:6491:: with SMTP id g17mr4419892otl.326.1600827404800; Tue, 22 Sep 2020 19:16:44 -0700 (PDT) X-Received: by 2002:a9d:6491:: with SMTP id g17mr4419879otl.326.1600827404471; Tue, 22 Sep 2020 19:16:44 -0700 (PDT) MIME-Version: 1.0 References: <20200922065313.4794-1-koba.ko@canonical.com> <7231e2199a19aa6c8ecbecf5e80725e2a1aded73.camel@redhat.com> In-Reply-To: <7231e2199a19aa6c8ecbecf5e80725e2a1aded73.camel@redhat.com> From: Koba Ko Date: Wed, 23 Sep 2020 10:16:33 +0800 Message-ID: Subject: Re: [PATCH V4] drm/dp_mst: Retrieve extended DPCD caps for topology manager To: Lyude Paul Cc: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, Linux Kernel Mailing List , Anthony Wong Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks for the review. Sorry for that I thought the review tag should be appended by myself. One thing to confirm with you, will you or I push this patch to drm-misc-next ? Thanks a lot. On Wed, Sep 23, 2020 at 2:01 AM Lyude Paul wrote: > > One last change I realized we should do is print the name of the AUX adapter > in question. I don't mind just adding that myself before I push it though so > you don't need to send a respin. > > Going to go push this to drm-misc-next, thanks! > > On Tue, 2020-09-22 at 14:53 +0800, Koba Ko wrote: > > As per DP-1.3, First check DP_EXTENDED_RECEIVER_CAP_FIELD_PRESENT. > > If DP_EXTENDED_RECEIVER_CAP_FIELD_PRESENT is 1,read the DP_DP13_DPCD_REV to > > get the faster capability. > > If DP_EXTENDED_RECEIVER_CAP_FIELD_PRESENT is 0,read DP_DPCD_REV. > > > > Signed-off-by: Koba Ko > > Reviewed-by: Lyude Paul > > --- > > drivers/gpu/drm/drm_dp_mst_topology.c | 6 +++--- > > 1 file changed, 3 insertions(+), 3 deletions(-) > > > > diff --git a/drivers/gpu/drm/drm_dp_mst_topology.c > > b/drivers/gpu/drm/drm_dp_mst_topology.c > > index e87542533640..63f8809b9aa4 100644 > > --- a/drivers/gpu/drm/drm_dp_mst_topology.c > > +++ b/drivers/gpu/drm/drm_dp_mst_topology.c > > @@ -3686,9 +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_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"); > > + ret = drm_dp_read_dpcd_caps(mgr->aux, mgr->dpcd); > > + if (ret < 0) { > > + drm_dbg_kms(mgr->dev, "failed to read DPCD, ret %d\n", > > ret); > > goto out_unlock; > > } > > > -- > Cheers, > Lyude Paul (she/her) > Software Engineer at Red Hat >