From: Heiko Stuebner <heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>
To: Ezequiel Garcia <ezequiel-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
Cc: Robert Foss <robert.foss-ZGY8ohtN/8qB+jHODAdFcQ@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: Thu, 21 Feb 2019 23:07:14 +0100 [thread overview]
Message-ID: <2359558.xDfqIedSRi@phil> (raw)
In-Reply-To: <2aa6011a4bd85573c659fd960d0071718b73e39c.camel-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
Am Donnerstag, 21. Februar 2019, 22:52:39 CET schrieb Ezequiel Garcia:
> On Thu, 2019-02-21 at 22:48 +0100, Heiko Stuebner wrote:
> > Am Donnerstag, 21. Februar 2019, 17:38:25 CET schrieb Robert Foss:
> > > On 2/21/19 4:53 PM, Heiko Stuebner wrote:
> > > > Am Donnerstag, 21. Februar 2019, 16:46:19 CET schrieb Robert Foss:
> > > > > On 2/21/19 2:26 PM, Heiko Stuebner wrote:
> > > > > > Hi Robert,
> > > > > >
> > > > > > Am Donnerstag, 21. Februar 2019, 11:27:15 CET schrieb Robert Foss:
> > > > > > > Hey Heiko,
> > > > > > >
> > > > > > > I've just started booting the RK3399 based Radxa Rock Pi 4 on the mainline
> > > > > > > kernel. Specifically on linux-rockchip/for-next, with an additional patch
> > > > > > > adding the GPU DT node[1].
> > > > > > >
> > > > > > > Unfortunately I'm seeing an artifact on all display output[2].
> > > > > > > It, from the VT to 3D content.
> > > > > > >
> > > > > > > Is this an issue that has been encountered before?
> > > > > >
> > > > > > I haven't seen something like this before. I do test graphics
> > > > > > on most Rockchip socs regularly (right now dw-hdmi only
> > > > > > on non-rk3399 socs though).
> > > > > >
> > > > > > Did you try full linux-next as well? My for-next branch obviously
> > > > > > only carries dt/soc-driver stuff but not things like drm-misc.
> > > > > >
> > > > > > One possible issue might be the generated clocks. You could check
> > > > > > $debug/clk/clk_summary for the dclk_vopX to see if that matches
> > > > > > the suggested clock for the mode. (For example check the requested
> > > > > > rate in rockchip_vop.c against what it actually gets).
> > > > > >
> > > > >
> > > > > I had a look using the current linux-next/master, and I'm seeing the same results.
> > > > > Commit: 550f4769c7c4 - Add linux-next specific files for 20190221
> > > > >
> > > > >
> > > > > I had also look at the debugfs output:
> > > > > # cat /sys/kernel/debug/clk/clk_summary | grep dclk_vop
> > > > > dclk_vop0_div 0 1 0 27000000 0 0 50000
> > > > > dclk_vop0 0 2 0 27000000 0 0 50000
> > > > > dclk_vop0_frac 0 0 0 1350000 0 0 50000
> > > > > dclk_vop1_div 1 1 0 59400000 0 0 50000
> > > > > dclk_vop1 2 2 0 59400000 0 0 50000
> > > > > dclk_vop1_frac 0 0 0 2970000 0 0 50000
> > > > >
> > > > > But I can't find a file named rockchip_vop.c exactly. And I'm not entirely sure
> > > > > about how to decipher the expected values from the driver.
> > > >
> > > > drivers/gpu/drm/rockchip_drm_vop.c (my memory of the filename was faulty
> > > > it seems). As for comparing to the expected rate, I guess the easiest
> > > > way would be to just insert a printk into vop_crtc_mode_fixup()
> > > > after the clk_round_rate call, outputting both the requested and
> > > > calculated rate and then looking that up in the dmesg.
> > >
> > > dmesg:
> > > vop_crtc_mode_fixup() mode->clock=65000000 adjusted_mode->clock=61538000
> > >
> > > Is the adjusted clock withing the reasonable range?
> >
> > sadly, I have no real clue. I can cope with the hardware-centric parts like
> > making encoders somehow work, but I'm way out of my depth when it comes
> > to all this display-mode-voodoo.
> >
> > >
> > > 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.
> > >
> > > As an added note, I have this board+monitor working using proprietary drivers,
> > > and up to 4k resolutions.
> >
> > non-standard resolutions are still a bit of a problem I think.
> > The vendor kernel (and also the CrOS kernel) does contain quite a number
> > of hacks to make that work. (hacking up plls and the clock-tree, making
> > it quite non-generic).
> >
> > But yes, it seems that you only get 3 modes? That are way to few I think.
> > My display at least manages to get its 1080p native resolution, but I'm
> > also in the bind of having only this one display, so cannot really test
> > the more non-standard (or higher resolution) stuff.
> >
> > Do you happen to have any other display you could attach to just compare
> > what happens?
> >
> >
>
> FWIW, I have a Samsung (old?) TV, and on the same board as Robert's,
> with the same kernel and rootfs, I don't have any issues.
could you also take a look at the timing both requested and real
clock rate?
next prev parent reply other threads:[~2019-02-21 22:07 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
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 [this message]
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=2359558.xDfqIedSRi@phil \
--to=heiko-4mtyjxux2i+zqb+pc5nmwq@public.gmane.org \
--cc=ezequiel-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org \
--cc=linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=robert.foss-ZGY8ohtN/8qB+jHODAdFcQ@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