Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3648091ybb; Mon, 6 Apr 2020 12:44:31 -0700 (PDT) X-Google-Smtp-Source: APiQypKeiygHeNa2KdyM9GqKnz4n+3II0GcfeRviiWIzPldS2aG3/xBUAX6JM422fP7atP9nRyty X-Received: by 2002:aca:6184:: with SMTP id v126mr804428oib.168.1586202271688; Mon, 06 Apr 2020 12:44:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586202271; cv=none; d=google.com; s=arc-20160816; b=CT3w04n+1TzE911UHUpyhTITjcjON6l6FjeU4H3JvV9lolqYTx7aa8Wcrut3Fk4kVG vkryOabuxiLwW5E9J9E2XSNs74l/cbNoGz+fyquD5oTlPvI/Nt94hvG5sozNMLAhwuZP Wgm0uNDbjqf3riWaTxSsCqL8qDveMwvdaRQULHMy0731xd4URE62cCIf8uZ1VMc9HT7f FFjvrb6oQ8qo0FCwvvztJzfqxXOlPulj86qYImlSRjkQbiyMiDPSuMnyOmGuzV+6qn6k QeiePNOYpQr4vg1c6s+9oAXSTs9ZbYv8icOeHFAW0t5haMHC7ejLt1GtqUp8+h8bUmi5 DXoA== 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=abwTcU3NPLB9ZnkU0lkxt+NZ4BdMbKcPpC7Ll2Lyoj8=; b=nF/LKzKUObYLrXJqJ26MLHjCHwB7DSRkY3TPWxeAWfKw9cTxIqYxAe6J43YmgwsvJs 3+2zKMjqMeqRw/nF0Ieb5dNKqMOADxW+sTmHFxc55GkESG3lnSUu8KK+p2/tzhEuwyr+ XN0ESnIecoZ3OWA6UIkp34G4+d2y4lIrPqt3X4dSiGEnDwNXKB6hdsXQZoo1qP6kl+HE Br43p4JIRdYd5+13Yejm08wTrxv9/eVzQMOnP9gX5LfbA5vbUj6SzedE+I8GFuuumoqO xIntfjQlZl7tqBxeVfZ/RG0UpUfCm3pZXP1lrbNFGgBNv5MKT6vspPQXrzgJAXz7Odtx 2BWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@poorly.run header.s=google header.b="QuGm95H/"; 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 e16si258079ote.190.2020.04.06.12.44.19; Mon, 06 Apr 2020 12:44:31 -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="QuGm95H/"; 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 S1726396AbgDFTno (ORCPT + 99 others); Mon, 6 Apr 2020 15:43:44 -0400 Received: from mail-io1-f66.google.com ([209.85.166.66]:44615 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725957AbgDFTnn (ORCPT ); Mon, 6 Apr 2020 15:43:43 -0400 Received: by mail-io1-f66.google.com with SMTP id h6so727667iok.11 for ; Mon, 06 Apr 2020 12:43:43 -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=abwTcU3NPLB9ZnkU0lkxt+NZ4BdMbKcPpC7Ll2Lyoj8=; b=QuGm95H/LilnuJBVmVnYx0H7LMduoXK1eUUubT4UBJaC+N68X41iFuZPPIL/qJvwQd h4G6ju6hnHbddVb0RuUkYDuVMdezs+invBSiSoOMIbxIChuZqsWIDUpiUxqJKs4gQoOg n7E5NwCaO8If0SlL+U/0bhgS4HOPazzvYzPyAxK1IGqwWBD7H0R31WaE853O5cgKoNT+ cFRrmKFGfNzVeEXky8pX8Bz1mBOdRP15EAtc7GFWOj1VGJI47Po6klHBFnRsMb5szO9X k2uJkx9KxgbF9hLJOhotAOxW3WVprGYUxZa8ddaEJlkIfFRkKYjaz36CCeoBBvfULPOx tobA== 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=abwTcU3NPLB9ZnkU0lkxt+NZ4BdMbKcPpC7Ll2Lyoj8=; b=hUz46CS4VAMR2Gm1GIW+I2RwihHXwHDtFFzDj376JBaYYsIk7cnuS52Aiy1pMF8xtX 5nk5jKQJw51X/Hyj9p5zdjjif7rjVwlwcXfgeGTLl8xVPPczbXGNtjuiLZnSwJZCInH2 ON+HqlPNo9cgfLzcxLHqhJt3hrQ3KAMSvxnJAafXw43/DaZcD1p8DAUkfCyISp5Djb92 YuP416wGos8SbsPIozwqC1iFwWVkHO2wnzv9JS2b67BAiGKB536zBm9imrhX/83kdVFZ dzso5Mx9t8bNvqM273vBWLUtrNlk1PioyAI/DRSyjw6EEMIc+yBm4OB/gb1WPZclcYro okWA== X-Gm-Message-State: AGi0PuZhHtC4WAIzydPkj88NTCaMYKJqpn3DcuCQ/czo4J/lEUNT2Y8Z u4DyYB9hbgO/WTkZXNJmqO3psBRBDTNHmoFTyyl0H8jC X-Received: by 2002:a6b:b3c3:: with SMTP id c186mr5093685iof.85.1586202222502; Mon, 06 Apr 2020 12:43:42 -0700 (PDT) MIME-Version: 1.0 References: <20200403200757.886443-1-lyude@redhat.com> <20200403200757.886443-5-lyude@redhat.com> In-Reply-To: <20200403200757.886443-5-lyude@redhat.com> From: Sean Paul Date: Mon, 6 Apr 2020 15:43:06 -0400 Message-ID: Subject: Re: [PATCH 4/4] drm/dp_mst: Print errors on ACT timeouts To: Lyude Paul Cc: dri-devel , 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:08 PM Lyude Paul wrote: > > Although it's not unexpected for drm_dp_check_act_status() to fail due > to DPCD read failures (as the hub may have just been unplugged > suddenly), timeouts are a bit more worrying as they either mean we need > a longer timeout value, or we aren't setting up payload allocations > properly. So, let's start printing errors on timeouts. > > Signed-off-by: Lyude Paul > Cc: Sean Paul Reviewed-by: Sean Paul > --- > drivers/gpu/drm/drm_dp_mst_topology.c | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/drm_dp_mst_topology.c b/drivers/gpu/drm/drm_dp_mst_topology.c > index f313407374ed..3d0d373f6f91 100644 > --- a/drivers/gpu/drm/drm_dp_mst_topology.c > +++ b/drivers/gpu/drm/drm_dp_mst_topology.c > @@ -4494,6 +4494,10 @@ int drm_dp_check_act_status(struct drm_dp_mst_topology_mgr *mgr) > DP_PAYLOAD_TABLE_UPDATE_STATUS, > &status); > if (ret < 0) { > + /* > + * Failure here isn't unexpected - the hub may have > + * just been unplugged > + */ > DRM_DEBUG_KMS("failed to read payload table status %d\n", > ret); > return ret; > @@ -4505,8 +4509,8 @@ int drm_dp_check_act_status(struct drm_dp_mst_topology_mgr *mgr) > } while (jiffies < timeout); > > if (!(status & DP_PAYLOAD_ACT_HANDLED)) { > - DRM_DEBUG_KMS("failed to get ACT bit %d after %dms\n", > - status, timeout_ms); > + DRM_ERROR("Failed to get ACT after %dms, last status: %02x\n", > + timeout_ms, status); > return -EINVAL; > } > return 0; > -- > 2.25.1 >