Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp5152205pxb; Tue, 5 Oct 2021 19:11:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWI8e4/JpIdnuLe9BB6yqxl2spGtMQfPnFWUKMiqEcQAKzxZQ7i4NnqNs+eltmP4f0lYVe X-Received: by 2002:a63:c101:: with SMTP id w1mr18148220pgf.53.1633486307602; Tue, 05 Oct 2021 19:11:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633486307; cv=none; d=google.com; s=arc-20160816; b=Z09owG4CSAuvw+QDGT/xSuIs1Dj2OhPXGWj2ws0nCKB8ZrFv6LbLFZXPEd7OAPGB+S 07WqiE1F2ZTSbbdzpmhTmOWi4jGRQmv8G0BPlHunOEFhuSuqflzf3g2DPsnX3ovF+shZ X3fXD8tiMqqEW8OEjNwyg7+dr8mpc6IGXN+tSRSttu8nRHoWyvvaSivZopMKRKSqhZDi Id/02bUKSU1gSy6zUTMJ4YlPigtWw9HISKeRRcnA4NQJV6lZFHOjYOIKcafG34E/V62l iAKLRtSadoI2VZrmDuug57zUY0X9bm4L+3guMmdHhIXBJdGqWuadODtWVYICcnKfP7Ob T/yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=lYqbd1yY6Vt/MStunvcBDmbeftnynuSmElbE65yJeuI=; b=dfCTDqnZbd7zFhRSMEoatK4U6wQv+KeFYVoVheTayvDZduNleV1NWZgsGaS6H7S7xo 7XEH+CX7YOqO8LUb/Ey3LxK3DY9a8u97BS4llUQyw7TbUMFC3UMdzSaOmRt5Bq7fq9J4 C4HfgX7VbmyaqYuwByh7u2bV2mbxFkyGoAHhprStjcob0Ip7eHNwXg6kfGJkLwE4VtAw MSHTp/7narl2Q7aVviFDTW5rGC6jhPporH7ek+rnQCN6kHAm2jYZ/XrBditXl43KkzZ+ S8ycs/sq/YiHQv8jDLBRzbw7Ud3RDxIyqm/NXgfWQgUNi+VflIocsn258PrvVEOEDT0g UY/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GC6d96YW; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z2si29145656pgu.153.2021.10.05.19.11.34; Tue, 05 Oct 2021 19:11:47 -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; dkim=pass header.i=@linaro.org header.s=google header.b=GC6d96YW; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237200AbhJFCKl (ORCPT + 99 others); Tue, 5 Oct 2021 22:10:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237158AbhJFCKk (ORCPT ); Tue, 5 Oct 2021 22:10:40 -0400 Received: from mail-oi1-x232.google.com (mail-oi1-x232.google.com [IPv6:2607:f8b0:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2ED4AC061749 for ; Tue, 5 Oct 2021 19:08:49 -0700 (PDT) Received: by mail-oi1-x232.google.com with SMTP id z11so1943887oih.1 for ; Tue, 05 Oct 2021 19:08:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=lYqbd1yY6Vt/MStunvcBDmbeftnynuSmElbE65yJeuI=; b=GC6d96YWZxDnlnByKPE8fzKDBgpe+/UipmMF6p4IzkEANqw1A+OhrXdDLSPEZdgDy4 am8AsWG52xoFc6BD1SSQypkjO8/pMZdsimyMa0CTKwTOCVB+58kihH0X4CilBV7FzGrF WX+AM7FGM1t8QjqF2kVBwQD9XAkawVs5tMe1myGfh2X0jlwxR1lHFmp9rcMmyVJus8aw UeUQPVSmfb/2fCUwCtXoCf9AWZy/mAxrPsHgnJXkKS4gxCFRGBQ470PbFnKB6H9COVJd wbYZ9vaA9bqwPHC45Dj+ztPNh5EvwRv0UkZjFKEBmxNs6zXDyVgpTk2NuMug5pg2dXW6 SpEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=lYqbd1yY6Vt/MStunvcBDmbeftnynuSmElbE65yJeuI=; b=pHD8AFy0cSdr6PfJVDYpxlEh6vhcnfUP/3PmFFVxQv9jAg6LQOGKXj2hXewtEf7r0e d9We3BStV/eb8JV8Q4ZYgOnqpliunR+E0YeSbSMHTMJTXt8KqHW/PT5xecMYy9R4i9+S HHcJHZrCBUXUiCcSXEfEhx1LvxBEZyrmCWubnrdxMY9oAusrM2ZeCTJQkJUCV2+v0ytj +taYxxvQhPChpD7leJCTXhVRaBTeBSyr7YWxAJfpdaCLxcvJImC1iVurtoyohnLKy8Hb TwkNd5dJL3wahpfXFa8lwboqhDnQ0LjpEMrtTA3S3KQz5WY5q2q2y8jphV8DVqB6Na6m bUIA== X-Gm-Message-State: AOAM533osmVLfa/H31NKtd34caZZhE+teuqUGz3JmdYw9WcIInIOvsm0 3l3391DAEEM/O1qsYAVcmOO2Kg== X-Received: by 2002:a05:6808:a99:: with SMTP id q25mr5117219oij.162.1633486128519; Tue, 05 Oct 2021 19:08:48 -0700 (PDT) Received: from ripper ([2600:1700:a0:3dc8:205:1bff:fec0:b9b3]) by smtp.gmail.com with ESMTPSA id l23sm3535076otk.21.2021.10.05.19.08.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Oct 2021 19:08:48 -0700 (PDT) Date: Tue, 5 Oct 2021 19:10:29 -0700 From: Bjorn Andersson To: khsieh@codeaurora.org Cc: Stephen Boyd , Abhinav Kumar , Daniel Vetter , David Airlie , Dmitry Baryshkov , Rob Clark , Sean Paul , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, Sankeerth Billakanti Subject: Re: [PATCH] drm/msm/dp: Shorten SETUP timeout Message-ID: References: <20211005023750.2037631-1-bjorn.andersson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 05 Oct 16:04 PDT 2021, khsieh@codeaurora.org wrote: > On 2021-10-05 15:36, Stephen Boyd wrote: > > Quoting Bjorn Andersson (2021-10-05 14:40:38) > > > On Tue 05 Oct 11:45 PDT 2021, Stephen Boyd wrote: > > > > > > > Quoting Bjorn Andersson (2021-10-04 19:37:50) > > > > > Found in the middle of a patch from Sankeerth was the reduction of the > > > > > INIT_SETUP timeout from 10s to 100ms. Upon INIT_SETUP timeout the host > > > > > is initalized and HPD interrupt start to be serviced, so in the case of > > > > > eDP this reduction improves the user experience dramatically - i.e. > > > > > removes 9.9s of bland screen time at boot. > > > > > > > > > > Suggested-by: Sankeerth Billakanti > > > > > Signed-off-by: Bjorn Andersson > > > > > --- > > > > > > > > Any Fixes tag? BTW, the delay design is pretty convoluted. I had to go > > > > re-read the code a couple times to understand that it's waiting 100ms > > > > times the 'delay' number. Whaaaaat? > > > > > > > > > > I assume you're happy with the current 10s delay on the current > > > devices, so I don't think we should push for this to be backported. > > > I have no need for it to be backported on my side at least. > > > > > > > Sure. Fixes tag != backported to stable trees but it is close. > > > > > > Reviewed-by: Stephen Boyd > > > > dp_add_event(dp, EV_HPD_INIT_SETUP, 0, 1); <== to 100ms > > This patch will prevent usb3 from working due to dp driver initialize phy > earlier than usb3 which cause timeout error at power up usb3 phy when both > edp and dp are enabled. Can you please help me understand what you mean here, I use this on my sc8180x with both eDP and USB-C/DP right now. What is it that doesn't work? Or am I just lucky in some race condition? Thanks, Bjorn > I had prepared a patch (drm/msm/dp: do not initialize combo phy until plugin > interrupt) to fix this problem. > Unfortunately, my patch is depend on Bjorn's patch (PATCH v3 3/5] > drm/msm/dp: Support up to 3 DP controllers). > I will submit my patch for review once Bjorn's patches merged in. > Therefore I would think this patch should go after both Bjorn's patches and > my patch. > > >