linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Yakir Yang <ykk@rock-chips.com>
To: Brian Norris <computersforpeace@gmail.com>
Cc: Inki Dae <inki.dae@samsung.com>,
	Andrzej Hajda <a.hajda@samsung.com>,
	Joonyoung Shim <jy0922.shim@samsung.com>,
	Seung-Woo Kim <sw0312.kim@samsung.com>,
	Kyungmin Park <kyungmin.park@samsung.com>,
	Jingoo Han <jingoohan1@gmail.com>,
	Thierry Reding <treding@nvidia.com>,
	Krzysztof Kozlowski <k.kozlowski@samsung.com>,
	Rob Herring <robh+dt@kernel.org>,
	Heiko Stuebner <heiko@sntech.de>,
	Mark Yao <mark.yao@rock-chips.com>,
	djkurtz@chromium.org, dianders@chromium.org,
	Gustavo Padovan <gustavo.padovan@collabora.co.uk>,
	linux-samsung-soc@vger.kernel.org,
	Russell King <linux@arm.linux.org.uk>,
	linux-rockchip@lists.infradead.org,
	Kishon Vijay Abraham I <kishon@ti.com>,
	javier@osg.samsung.com, Kukjin Kim <kgene@kernel.org>,
	robherring2@gmail.com, devicetree@vger.kernel.org,
	Pawel Moll <pawel.moll@arm.com>,
	Ian Campbell <ijc+devicetree@hellion.org.uk>,
	Sean Paul <seanpaul@chromium.org>,
	dri-devel@lists.freedesktop.org,
	linux-arm-kernel@lists.infradead.org, emil.l.velikov@gmail.com,
	linux-kernel@vger.kernel.org, Kumar Gala <galak@codeaurora.org>,
	ajaynumb@gmail.com, Andy Yan <andy.yan@rock-chips.com>
Subject: Re: [PATCH v9 10/17] phy: Add driver for rockchip Display Port PHY
Date: Tue, 17 Nov 2015 20:58:29 +0800	[thread overview]
Message-ID: <564B2475.4070309@rock-chips.com> (raw)
In-Reply-To: <20151105234534.GA77825@google.com>

Hi Brian,

Thank you for debugging, and fell sorry for the delay reply

On 11/06/2015 07:45 AM, Brian Norris wrote:
> Hi,
>
> A few updates:
>
> On Tue, Nov 03, 2015 at 05:13:48PM -0800, Brian Norris wrote:
>> On Wed, Nov 04, 2015 at 08:48:38AM +0800, Yakir Yang wrote:
>>> On 11/03/2015 12:38 PM, Brian Norris wrote:
>>>> On Thu, Oct 29, 2015 at 09:58:38AM +0800, Yakir Yang wrote:
>>>> (FYI, I came across this by inspection when comparing Heiko's
>>>> 'somewhat-stable' branch [1] with this series. The former brings up eDP
>>>> fine on veyron-jaq, whereas this one doesn't yet, even with the above
>>>> change. Still debugging the issue.)
> Some time after the above comment, I managed to kill the panel on my
> Jaq :( I think the wiring around the hinge was a bit flaky, and it
> finally went out for good.
>
>>> Hmm... I'm not sure whether your eDP screen have the hotplug signal, so I
>> I believe hotplug is hooked up but...
>>
>>> think you can try to add "analogix,force-hpd" flag into
>>> rk3288-veyron-jaq.dts
>>>
>>> &edp {
>>>      analogix,need-force-hpd;
>>> }
>> ...already tried, just in case. No luck.
> However, now when testing a different Jaq device, now this series +
> Heiko's DTS updates + the "analogix,force-hpd" (i.e., [1]) works fine,
> modulo a few log warnings, some of which are probably expected (for
> instance, I believe the EDID is known not-so-helpful). Snippets:
>
> [    3.170176] rockchip-dp ff970000.dp: AUX CH command reply failed!
> [    3.178058] rockchip-dp ff970000.dp: AUX CH command reply failed!
> [    3.184166] rockchip-dp ff970000.dp: unable to handle edid
>
> and later:
>
> [    3.953300] rockchip-dp ff970000.dp: EDID data does not include any extensions.
> [    3.966731] rockchip-dp ff970000.dp: EDID data does not include any extensions.
> [    3.979409] rockchip-dp ff970000.dp: EDID data does not include any extensions.
> [    3.998730] rockchip-dp ff970000.dp: Link Training Clock Recovery success
> [    4.007046] rockchip-dp ff970000.dp: Link Training success!
> [    4.115040] rockchip-dp ff970000.dp: Timeout of video streamclk ok
> [    4.121211] rockchip-dp ff970000.dp: unable to config video
> [    4.127616] rockchip-dp ff970000.dp: EDID data does not include any extensions.
>
>
> So, I'll chalk that earlier failure up to a hardware failure (or
> possibly a still yet-undiagnosed hardware difference; my new Jaq has
> some small differences from the previous unit).

Yeah, I have saw this failed on some chromebook too, but finally it transmit
successfully, so I guess this maybe caused by hardware different.

>
> Also, it's still not real clear why HPD isn't working upstream (and we
> have to use the "force-hpd" property), when it appears to work on our
> downstream Chrome OS tree.

I have tested that driver do receive the hpd interrupt when i 
plugged/unplugged the
eDP screen, and at that time driver would read the HPD connected status 
rightly.

But I haven't fingered out why driver couldn't get the right HPD status 
in the early time,
need debug more...

> Finally, I'll leave you with some small bits I've noticed from exploring
> this issue on Jaq:
>
>   * The Chrome OS driver for this IP has a much longer timeout in (the
>     equivalent of) analogix_dp_detect_hpd; it polls in 10-20 ms intervals
>     (rather than 10-11 us) and takes something around 60 to 120 ms to
>     notice the panel.

Thanks, I have noticed it too, also I try to expand the hotplug timeout, 
but Jingoo
suggested not to do that, cause it would bring external delay on Exynos 
platform.

Besides from what Heiko reply, expand this delay time wouldn't give any help
on those Jaq no display case, delay the panel power up time would be the 
right
way to fix that, so maybe no need to expand the hotpulg timeout.

- Thanks
>   * AFAICT, the Chrome OS driver never actually used the HPD interrupt;
>     it was only polling the HPD status bit. So I can't claim that the
>     functionality that Yakir is supporting here has ever been tested on
>     these platforms. (Now, I'm not sure this is extremely important,
>     since we still can fall back to polled status checks; see
>     drm_kms_helper_poll_init().)
> That's all I've got for now.
>
> Regards,
> Brian
>
> [1] https://github.com/mmind/linux-rockchip/commits/tmp/analogixdp-veyron
>
> plus this diff:
>
> diff --git a/arch/arm/boot/dts/rk3288-veyron-jaq.dts b/arch/arm/boot/dts/rk3288-veyron-jaq.dts
> index 5c97e3153526..e77ae4c5531e 100644
> --- a/arch/arm/boot/dts/rk3288-veyron-jaq.dts
> +++ b/arch/arm/boot/dts/rk3288-veyron-jaq.dts
> @@ -88,6 +88,18 @@
>   	};
>   };
>   
> +&backlight {
> +	power-supply = <&backlight_regulator>;
> +};
> +
> +&panel {
> +	power-supply = <&panel_regulator>;
> +};
> +
> +&edp {
> +	analogix,need-force-hpd;
> +};
> +
>   &rk808 {
>   	pinctrl-names = "default";
>   	pinctrl-0 = <&pmic_int_l &dvs_1 &dvs_2>;
> diff --git a/drivers/phy/phy-rockchip-dp.c b/drivers/phy/phy-rockchip-dp.c
> index c82c22f3d0e1..994189f49db5 100644
> --- a/drivers/phy/phy-rockchip-dp.c
> +++ b/drivers/phy/phy-rockchip-dp.c
> @@ -22,7 +22,7 @@
>   
>   #define GRF_SOC_CON12                           0x0274
>   
> -#define GRF_EDP_REF_CLK_SEL_INTER_HIWORD_MASK   BIT(4)
> +#define GRF_EDP_REF_CLK_SEL_INTER_HIWORD_MASK   BIT(20)
>   #define GRF_EDP_REF_CLK_SEL_INTER               BIT(4)
>   
>   #define GRF_EDP_PHY_SIDDQ_HIWORD_MASK           BIT(21)
>
>
>



  reply	other threads:[~2015-11-17 12:59 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-28  8:15 [PATCH v8 0/17] Add Analogix Core Display Port Driver Yakir Yang
2015-10-28  8:19 ` [PATCH v8 01/17] drm: exynos: dp: convert to drm bridge mode Yakir Yang
2016-03-22 22:22   ` Inki Dae
2015-10-28  8:21 ` [PATCH v8 02/17] drm: bridge: analogix/dp: split exynos dp driver to bridge directory Yakir Yang
2015-11-26 17:30   ` Heiko Stübner
2015-11-27  1:20     ` Yakir Yang
2015-11-27  8:42       ` Heiko Stübner
2015-10-28  8:23 ` [PATCH v8 03/17] drm: bridge: analogix/dp: fix some obvious code style Yakir Yang
2015-10-28  8:24 ` [PATCH v8 04/17] drm: bridge: analogix/dp: remove duplicate configuration of link rate and link count Yakir Yang
2015-10-28  8:25 ` [PATCH v8 05/17] drm: bridge: analogix/dp: dynamic parse sync_pol & interlace & dynamic_range Yakir Yang
2015-10-28  8:26 ` [PATCH v8 06/17] dt-bindings: add document for analogix display port driver Yakir Yang
2015-10-28 20:02   ` Heiko Stuebner
2015-10-29  1:12     ` Yakir Yang
2015-10-29  8:40       ` Heiko Stuebner
2015-10-28  8:27 ` [PATCH v8 07/17] ARM: dts: exynos/dp: remove some properties that deprecated by analogix_dp driver Yakir Yang
2015-10-28  8:27 ` [PATCH v8 08/17] drm: rockchip: dp: add rockchip platform dp driver Yakir Yang
2015-11-27  8:41   ` Heiko Stübner
2015-10-28  8:28 ` [PATCH v8 09/17] dt-bindings: add document for rockchip variant of analogix_dp Yakir Yang
2015-10-30 16:46   ` Rob Herring
2015-10-31  3:15     ` Yakir Yang
2015-10-28  8:30 ` [PATCH v8 10/17] phy: Add driver for rockchip Display Port PHY Yakir Yang
2015-10-28 20:36   ` Heiko Stuebner
2015-10-29  1:14     ` Yakir Yang
2015-11-11 23:23   ` Heiko Stuebner
     [not found]     ` <5643FB43.6090408@rock-chips.com>
2015-11-12  9:21       ` Heiko Stuebner
2015-10-28  8:31 ` [PATCH v8 11/17] dt-bindings: add document for rockchip dp phy Yakir Yang
2015-10-30 16:42   ` Rob Herring
2015-10-31  3:13     ` Yakir Yang
2015-10-28  8:52 ` [PATCH v8 12/17] drm: rockchip: vop: add bpc and color mode setting Yakir Yang
2015-10-28  8:55 ` [PATCH v8 13/17] drm: bridge: analogix/dp: add some rk3288 special registers setting Yakir Yang
2015-10-28  8:56 ` [PATCH v8 14/17] drm: bridge: analogix/dp: add max link rate and lane count limit for RK3288 Yakir Yang
2015-11-27 13:32   ` Heiko Stübner
2015-12-02 10:46     ` Yakir Yang
2015-10-28  9:12 ` [PATCH v8 16/17] drm: bridge: analogix/dp: move hpd detect to connector detect function Yakir Yang
2015-10-28  9:13 ` [PATCH v8 17/17] drm: bridge: analogix/dp: add edid modes parse in get_modes method Yakir Yang
2015-10-29  1:58 ` [PATCH v9 10/17] phy: Add driver for rockchip Display Port PHY Yakir Yang
2015-11-03  4:38   ` Brian Norris
2015-11-04  0:48     ` Yakir Yang
2015-11-04  1:13       ` Brian Norris
2015-11-05 23:45         ` Brian Norris
2015-11-17 12:58           ` Yakir Yang [this message]
2015-10-29 17:49 ` [PATCH v8 0/17] Add Analogix Core Display Port Driver Heiko Stuebner
2015-10-30  1:05   ` Yakir Yang
2015-10-30  1:09 ` [PATCH v9 15/17] drm: bridge: analogix/dp: try force hpd after plug in lookup failed Yakir Yang
2015-11-11 23:10   ` Rob Herring
     [not found]     ` <5643EAF9.9020508@rock-chips.com>
2015-11-12 23:38       ` Rob Herring
2015-10-31  6:30 ` [PATCH v9 09/17] dt-bindings: add document for rockchip variant of analogix_dp Yakir Yang
2015-10-31  6:40   ` Yakir Yang
2015-10-31  6:42 ` [PATCH v10 " Yakir Yang
2015-10-31 18:37   ` Rob Herring
2015-11-02  0:41     ` Yakir Yang
2015-11-17 13:09 ` [PATCH v10 10/17] phy: Add driver for rockchip Display Port PHY Yakir Yang
2015-11-17 13:31 ` [PATCH v8 0/17] Add Analogix Core Display Port Driver Yakir Yang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=564B2475.4070309@rock-chips.com \
    --to=ykk@rock-chips.com \
    --cc=a.hajda@samsung.com \
    --cc=ajaynumb@gmail.com \
    --cc=andy.yan@rock-chips.com \
    --cc=computersforpeace@gmail.com \
    --cc=devicetree@vger.kernel.org \
    --cc=dianders@chromium.org \
    --cc=djkurtz@chromium.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=emil.l.velikov@gmail.com \
    --cc=galak@codeaurora.org \
    --cc=gustavo.padovan@collabora.co.uk \
    --cc=heiko@sntech.de \
    --cc=ijc+devicetree@hellion.org.uk \
    --cc=inki.dae@samsung.com \
    --cc=javier@osg.samsung.com \
    --cc=jingoohan1@gmail.com \
    --cc=jy0922.shim@samsung.com \
    --cc=k.kozlowski@samsung.com \
    --cc=kgene@kernel.org \
    --cc=kishon@ti.com \
    --cc=kyungmin.park@samsung.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rockchip@lists.infradead.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=mark.yao@rock-chips.com \
    --cc=pawel.moll@arm.com \
    --cc=robh+dt@kernel.org \
    --cc=robherring2@gmail.com \
    --cc=seanpaul@chromium.org \
    --cc=sw0312.kim@samsung.com \
    --cc=treding@nvidia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).