RK3399 display flickering after kexec
Hi Enric, Douglas, Sean,
there is an issue on RK3399-based platforms with display flickering. I have searched mailing list and found you have mentioned or were involved in related issues, so, you may be able to help.
The issue has been observed on the Sapphire board and on google kevin, both are based on the RK3399. The display on Sapphire is connected through HDMI and on google kevin it's the built-in eDP panel.
On the Sapphire board i have two bootloaders available: u-boot and an adaptation of
https://gitlab.com/vicencb/kevinboot
which is a linux-based bootloader by means of kexec.
On google kevin i only have one bootloader: kevinboot with kexec.
When running the first kernel (before kexec) or when booting with u-boot the display works fine.
The issue appears when running the second kernel (after kexec). I have observed two kinds of flickering, sometimes it is just bursts of horizontal dark lines and sometimes it is the whole screen becoming black for less than a second.
It happens very often, each time there is a big portion of the screen being updated, like, e.g. scrolling a text file or a web page in full screen mode.
Do you have any ideas on what the root cause of the issue could be?
Regards,
Vicenç.
_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip
A message that is not in the archive (sent off-list or not yet received): 934ab507-6501-455d-b3d6-3585d94d81f6-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Hi Vicenç,
Quoted 27 lines · Vicente Bergas
Hi Enric, Douglas, Sean,
there is an issue on RK3399-based platforms with display flickering. I have searched mailing list and found you have mentioned or were involved in related issues, so, you may be able to help.The issue has been observed on the Sapphire board and on google kevin, both are based on the RK3399. The display on Sapphire is connected through HDMI and on google kevin it's the built-in eDP panel.
On the Sapphire board i have two bootloaders available: u-boot and an adaptation of
https://gitlab.com/vicencb/kevinboot
which is a linux-based bootloader by means of kexec.On google kevin i only have one bootloader: kevinboot with kexec.
When running the first kernel (before kexec) or when booting with u-boot the display works fine.
The issue appears when running the second kernel (after kexec). I have observed two kinds of flickering, sometimes it is just bursts of horizontal dark lines and sometimes it is the whole screen becoming black for less than a second.
It happens very often, each time there is a big portion of the screen being updated, like, e.g. scrolling a text file or a web page in full screen mode.
Quoted 2 lines
Do you have any ideas on what the root cause of the issue could be?
To be honest, I don't have idea, looks like some clock configuration issue? Did you check the clock after and before? I might be interested to look a bit more into the issue if this is reproducible using the coreboot bootloader. Do you know if this happens with stock bootloader?
Thanks,
Enric
Quoted 3 lines
Regards,
Vicenç.
_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip
A message that is not in the archive (sent off-list or not yet received): 61cd89ec-e505-6a2b-d43f-da74850d1b95-ZGY8ohtN/[email protected]
Quoted 8 lines · Enric Balletbo i Serra
Hi Vicenç,
Quoted 5 lines · Vicente Bergas
Hi Enric, Douglas, Sean,
there is an issue on RK3399-based platforms with display flickering. I have searched mailing list and found you have mentioned or were involved in related issues, so, you may be able to help.
Quoted 6 lines
Quoted 1 line
The issue has been observed on the Sapphire board and on google kevin, ...
To be honest, I don't have idea, looks like some clock configuration issue? Did you check the clock after and before? I might be interested to look a bit more into the issue if this is reproducible using the coreboot bootloader. Do you know if this happens with stock bootloader?
Hi Enric,
thanks for replying.
I never tested kexec with the stock bootloader.
Coreboot from branch firmware-gru-8785.B at
https://chromium.googlesource.com/chromiumos/third_party/coreboot
which is (if i am not wrong) the version that matches the stock bootloader, did not boot, display off all the time from power on. This was tested long time ago and i did not insist much.
The bootloader i am currently using configures power supplies, clocks and dram based off firmware-gru-8785.B
Are all kevin-specific changes to coreboot upstreamed? Should i use upstream coreboot as reference?
Anyways, i think that the early bootloader stage is not the cause because the issue does not show up in linux before kexec. My idea is that the first linux, while kexec'ing shuts down something it shouldn't, like a clock, and the the second linux after kexec has the issue becase it can't reinitizlize it.
So, when you say "Did you check the clock after and before?", how do i check it? which clock?
I think the misbehaving block here is the VOP, maybe because of a misconfigured clock as you say, but i am lost here because there is no documentation about it. The TRM available on the Internet does not mention (or just briefly) a lot of blocks potentially related to this issue like VOP or GPU.
Thanks,
Vicenç.
Quoted 5 lines
Thanks,
EnricQuoted 2 lines
Regards,
Vicenç.
_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip