public inbox for linux-rockchip@lists.infradead.org
 help / color / mirror / Atom feed
From: Robert Foss <robert.foss-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
To: Jonas Karlman <jonas-uIzNG4q0ceqzQB+pC5nmwQ@public.gmane.org>,
	Ezequiel Garcia
	<ezequiel-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>,
	Heiko Stuebner <heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>
Cc: "linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org"
	<linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org>,
	Tom Cubie <tom-ZvE2cuBqvIQAvxtiuMwx3w@public.gmane.org>,
	Tomeu Vizoso
	<tomeu.vizoso-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
Subject: Re: rk3399: Graphical artifacts when running for-next
Date: Fri, 22 Feb 2019 11:56:45 +0100	[thread overview]
Message-ID: <50696da7-bda6-b626-d2fa-432321a73681@collabora.com> (raw)
In-Reply-To: <AM3PR03MB096678395D7722EDCF81E775AC7F0-XQTXrJX/giFAc9da7WRX18eAHadYHfrlvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>



On 2/22/19 10:30 AM, Jonas Karlman wrote:
> On 2019-02-22 09:45, Robert Foss wrote:
>>
>> On 2/22/19 9:41 AM, Robert Foss wrote:
>>> Hey Jonas,
>>>
>>> On 2/21/19 9:29 PM, Jonas Karlman wrote:
>>>> On 2019-02-21 20:42, Robert Foss wrote:
>>>>> On 2/21/19 8:15 PM, Ezequiel Garcia wrote:
>>>>>> Folks,
>>>>>>
>>>>>> On Thu, 2019-02-21 at 20:08 +0100, Robert Foss wrote:
>>>>>> [..]
>>>>>>
>>>>>> The clock debugging is obviously good research.
>>>>>>
>>>>>>>> Additionally I've had a look at the libdrm modetest util, and it is reporting
>>>>>>>> far fewer modes than what I would expect on my 4k monitor.
>>>>>>>>
>>>>>> That said, this is also worth looking into.
>>>>>> I'm curious, is the EDID the kernel getting OK?
>>>>>>
>>>>> Given that modetest lists way too few modes, I would think
>>>>> there could be some EDID related issues.
>>>> It is more likely the issue is in dw_hdmi_rockchip_mode_valid(), it currently
>>>> filters out
>>>> any mode not defined in rockchip_mpll_cfg.
>>>> That method needs some changes to allow for 4k modes and fractal refresh rates.
>>>> E.g. for RK3328 it should probably check the inno-hdmi-phy clock rates.
>>>
>>> This seemed like a good suggetions, so I disabled the rockchip_mpll_cfg in
>>> dw_hdmi_rockchip_mode_valid(), and ran libdrm/modetest. I now have 5 modes.
>>> But no higher resolution ones, only low resolution ones that don't seem
>> s/, only low resolution ones that don't seem/./g
>>
>>> $ modetest
>>> [..]
>>> trying to open device 'rockchip'...done
>>> Encoders:
>>> id      crtc    type    possible crtcs  possible clones
>>> 44      34      TMDS    0x00000003      0x00000000
>>>
>>> Connectors:
>>> id      encoder status          name            size (mm)       modes   encoders
>>> 45      44      connected       HDMI-A-1        0x0             5       44
>>>     modes:
>>>           name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot)
>>>     1024x768 60 1024 1048 1184 1344 768 771 777 806 65000 flags: [..]
>>>     800x600 60 800 840 968 1056 600 601 605 628 40000 flags: [..]
>>>     800x600 56 800 824 896 1024 600 601 603 625 36000 flags: [..]
>>>     848x480 60 848 864 976 1088 480 486 494 517 33750 flags: [..]
>>>     640x480 60 640 656 752 800 480 490 492 525 25175 flags: [...]
> 
> If you only get up to 1024x768 there is probably some issue with reading EDID.
> Does the EDID property in modetest show any content?
> 
> I have some code at [1] that will update EDID more often (work in progress for CEC and audio improvements),
> it will only affect the EDID property and won't add new modes from the detect callback.
> This has mainly been tested on RK3288/RK3328 and Allwinner H3 so far.
> 
> [1] https://github.com/Kwiboo/linux-rockchip/compare/8874c206d613dc575f5cb6e385e7a866020138d0...21b7ba23c14661f85f82b068af9a9510f7d5fb0a

You are entirely correct. A patch already submitted, but not merged yet fixes
this EDID issues for the RockPi4.

https://www.spinics.net/lists/arm-kernel/msg708359.html

> 
> Regards,
> Jonas
> 
> 

  parent reply	other threads:[~2019-02-22 10:56 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-21 10:27 rk3399: Graphical artifacts when running for-next Robert Foss
     [not found] ` <69ddf17a-232d-fc1f-f6a7-59dbde220395-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2019-02-21 13:26   ` Heiko Stuebner
2019-02-21 15:30     ` Michael Röding
2019-02-21 15:46     ` Robert Foss
     [not found]       ` <48fe80bd-92bf-41fa-f508-941765e4354b-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2019-02-21 15:53         ` Heiko Stuebner
2019-02-21 16:38           ` Robert Foss
     [not found]             ` <ec6768e8-c6ce-b4e6-10b6-2880dbbdff4d-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2019-02-21 19:08               ` Robert Foss
     [not found]                 ` <8d5e0ce1-b1c5-1f4b-fd81-f18f376fc756-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2019-02-21 19:15                   ` Ezequiel Garcia
     [not found]                     ` <eaec0319d2a79a49a39fc29bfe2473f2cec15b52.camel-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2019-02-21 19:42                       ` Robert Foss
     [not found]                         ` <905cfe71-c98d-f73d-8870-623129b5e470-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2019-02-21 20:29                           ` Jonas Karlman
     [not found]                             ` <AM3PR03MB096698953B17A52CA58EF251AC7E0-XQTXrJX/giFAc9da7WRX18eAHadYHfrlvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2019-02-22  8:41                               ` Robert Foss
     [not found]                                 ` <cc5be462-6684-f945-bee9-5b583aee6f37-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2019-02-22  8:45                                   ` Robert Foss
     [not found]                                     ` <d0d37ca1-4afb-8ee2-f648-5a42879900de-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2019-02-22  9:30                                       ` Jonas Karlman
     [not found]                                         ` <AM3PR03MB096678395D7722EDCF81E775AC7F0-XQTXrJX/giFAc9da7WRX18eAHadYHfrlvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2019-02-22 10:56                                           ` Robert Foss [this message]
2019-02-22  9:32                                   ` Robert Foss
     [not found]                                     ` <ea326f10-51ea-f673-b3fc-8dcc403249ba-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2019-02-22  9:38                                       ` Heiko Stuebner
2019-02-22 11:02                                         ` Robert Foss
     [not found]                                           ` <9c26c9bb-19e0-9d91-8466-8a7480f1ea13-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2019-02-22 11:14                                             ` Heiko Stuebner
2019-02-22 12:24                                             ` Ezequiel Garcia
2019-02-21 21:48               ` Heiko Stuebner
2019-02-21 21:52                 ` Ezequiel Garcia
     [not found]                   ` <2aa6011a4bd85573c659fd960d0071718b73e39c.camel-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2019-02-21 22:07                     ` Heiko Stuebner
2019-02-25 18:00                 ` Doug Anderson

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=50696da7-bda6-b626-d2fa-432321a73681@collabora.com \
    --to=robert.foss-zgy8ohtn/8qb+jhodadfcq@public.gmane.org \
    --cc=ezequiel-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org \
    --cc=heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org \
    --cc=jonas-uIzNG4q0ceqzQB+pC5nmwQ@public.gmane.org \
    --cc=linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=tom-ZvE2cuBqvIQAvxtiuMwx3w@public.gmane.org \
    --cc=tomeu.vizoso-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org \
    /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