Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp431404pxb; Thu, 14 Jan 2021 09:16:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJziyYJOQdlwzDmUYto1ECDinxP+NFmYN3d496LptcTpchTcIZjr+xqZe+6QF9y9mOvFZR2S X-Received: by 2002:aa7:c698:: with SMTP id n24mr6340952edq.277.1610644569660; Thu, 14 Jan 2021 09:16:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610644569; cv=none; d=google.com; s=arc-20160816; b=1GFY73rpiR+keB1sk/mVXR8y82JUtJlGOi3j5YBHvB3RwDAQ1G3ziy0SFkWDgrgnQ8 w4tou82ckpDCzJ9AM7Q+cQnMm1Rz+X1k6KMrpmJiD7HQEtysaH/5ZJOhZQwOZDYMstRJ yze/HfOIhuj9oIGbse175EmNL9J6OxxFOKuOo+el4vBx3aFSZlWebX47/fK+F/wk5ao4 T+cknhFmGYbIRgcuAb7uzlB7aBnT73W+KS4xU5cVQonkmPRPjPwshSOby2JMuHX6hgNE Df13210ZvGRQi2UzRY30pYOS39n5vJ6bqs5J3T5C9fM1KRGtPS3evETDka3OBwbocAop twOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :sender:dkim-signature; bh=qnsx3daK0QJOaPx77SAmwXpHyqM3YCWxidh/gbfT0KI=; b=zifExhOxyNteCnArieinprSu+/Lrj78V6THAtEmvNWZLguT5FE+s22tQ4dme0cgnSq eJvIVtrOkjBBbO7gOjSHMrhpiKC3K0sPdYftl2VcbTJC+mYJIcCg7iSkAFKiwmXy8ACy eBip9eDFl2kZN8nGWVstWKn6yEG7K9wX5bqHz1EdE9dV8veVxp5SOhBEX8u/IhiNeMxl LLPDpk6S1+IRIHrkTR/1Yc7bqWGTAVKSeUIqyJc8E+tlKNEB87OahFaedI+JIdkB9W48 dNl0YVH92dlJKJ6QshXwr5Ie5M5pNAT+AEtSn0jHbKRH6CpdnPvdrF9NCjbjrJ2UB8O1 rl3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=AIXaT+2h; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q6si2795201edn.416.2021.01.14.09.15.45; Thu, 14 Jan 2021 09:16:09 -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; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=AIXaT+2h; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728526AbhANRO1 (ORCPT + 99 others); Thu, 14 Jan 2021 12:14:27 -0500 Received: from m43-15.mailgun.net ([69.72.43.15]:41204 "EHLO m43-15.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728541AbhANROS (ORCPT ); Thu, 14 Jan 2021 12:14:18 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1610644440; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=qnsx3daK0QJOaPx77SAmwXpHyqM3YCWxidh/gbfT0KI=; b=AIXaT+2hD1BsKKjODIhGCenOcX3jg19v1uFe3OYykhCrJ8zGHlFiHDsYP9mMpeH+ny7xxCzi xw2vtcr0MJoau8/+NGNgTgcEH/MmCc5/9eBBOarzLESTBuDGUr/M/WaxmzxnWaJvwWGNxsWL sBXCZHQ38MWSzV+ZnEswIOZY+8s= X-Mailgun-Sending-Ip: 69.72.43.15 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n05.prod.us-east-1.postgun.com with SMTP id 60007bba8fb3cda82f98191b (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 14 Jan 2021 17:13:30 GMT Sender: khsieh=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id BC9C8C433C6; Thu, 14 Jan 2021 17:13:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: khsieh) by smtp.codeaurora.org (Postfix) with ESMTPSA id 50867C433CA; Thu, 14 Jan 2021 17:13:28 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 14 Jan 2021 09:13:28 -0800 From: khsieh@codeaurora.org To: Stephen Boyd Cc: dri-devel@lists.freedesktop.org, robdclark@gmail.com, sean@poorly.run, tanmay@codeaurora.org, abhinavk@codeaurora.org, aravindh@codeaurora.org, airlied@linux.ie, daniel@ffwll.ch, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] drm/msm/dp: postpone irq_hpd event during connection pending state In-Reply-To: <161058243505.3661239.4173340912311093207@swboyd.mtv.corp.google.com> References: <1610051425-20632-1-git-send-email-khsieh@codeaurora.org> <1610051425-20632-2-git-send-email-khsieh@codeaurora.org> <161039491877.3661239.1387205899512360969@swboyd.mtv.corp.google.com> <17a116011ae60194834210a4a0c877b3@codeaurora.org> <161056933099.3661239.9450322359293035316@swboyd.mtv.corp.google.com> <161058243505.3661239.4173340912311093207@swboyd.mtv.corp.google.com> Message-ID: <7093b80b9304d161259f5f3f4b12d3c1@codeaurora.org> X-Sender: khsieh@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-01-13 16:00, Stephen Boyd wrote: > Quoting khsieh@codeaurora.org (2021-01-13 15:44:32) >> On 2021-01-13 12:22, Stephen Boyd wrote: >> > Quoting khsieh@codeaurora.org (2021-01-13 09:44:24) >> >> On 2021-01-11 11:55, Stephen Boyd wrote: >> >> > Quoting Kuogee Hsieh (2021-01-07 12:30:24) >> >> >> irq_hpd event can only be executed at connected state. Therefore >> >> >> irq_hpd event should be postponed if it happened at connection >> >> >> pending state. This patch also make sure both link rate and lane >> >> > >> >> > Why does it happen at connection pending state? >> >> plug in need two state to complete it. >> >> advance to connection pending state once link training completed and >> >> sent uevent notification to frame work. >> >> transition to connected state after frame work provided resolution >> >> timing and start transmit video panel. >> >> Therefore irq_hpd should not be handled if it occurred before >> >> connected >> >> state. >> > >> > Sure that's what's going on in the patch but you didn't answer my >> > question. Why does irq_hpd happen before connected state? >> >> I have no idea why it happen this way. >> during debug >> https://partnerissuetracker.corp.google.com/issues/170598152 >> I saw two different scenario >> 1) irq_hpd followed by unplug with less than 20 ms in between. this >> one >> fixed by this patch set. >> 2) plug followed by irq_hpd around 300ms in between. it does not cause >> problem. but it should be handled in order (after connected state). > > Ok. So nobody understands why the hardware is acting this way and we're > papering over the problem by forcing the HPD state to be what we think > it should be? That's not great. irq_hpd is issued from dongle. it then go through EC ps8805 driver and reach DP driver finally. Again, to duplicate problem #1 this at my set up, i have to intentionally wiggling type-c connector of dongle. But I can not duplicate problem #2 and only saw it one time from Quantan provide logs.