Bug 211219 - drm: panel: panel-raydium68200 driver fails to write MIPI DSI init commands
Summary: drm: panel: panel-raydium68200 driver fails to write MIPI DSI init commands
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: Video(Other) (show other bugs)
Hardware: ARM Linux
: P1 normal
Assignee: drivers_video-other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-15 18:28 UTC by Aleksandr Makarov
Modified: 2021-01-19 12:24 UTC (History)
6 users (show)

See Also:
Kernel Version: 5.9.14
Subsystem:
Regression: No
Bisected commit-id:


Attachments
Enabling MIPI DSI panel (2.66 KB, patch)
2021-01-15 18:28 UTC, Aleksandr Makarov
Details | Diff
Complete kernel log (73.47 KB, text/plain)
2021-01-15 18:29 UTC, Aleksandr Makarov
Details

Description Aleksandr Makarov 2021-01-15 18:28:37 UTC
Created attachment 294653 [details]
Enabling MIPI DSI panel

I need to bring up my MIPI DSI 1280x720 EDT ETML0500F3DHA panel on a RockPro64 V2.1 board.

There is no completely suitable in-tree driver for that panel yet, but for the purpose of reproducing the issue that I face, the gpu/drm/panel/panel-raydium-rm68200.c can do just fine.

To reproduce:

- Get the same Linux 5.9.14 as on my RockPro64 board (with Armbian 20.11.6 on it)

- Patch the rk3399-rockpro64.dts to add a panel node that is compatible with "raydium,rm68200" driver on MIPI interface (rockpro64-rm68200.patch attached)

- Compile and put the resulting rk3399-rockpro64.dtb on the target system. The panel driver shall then get probed at next boot.

The kernel log shall contain following errors:

[   10.139957] dw-mipi-dsi-rockchip ff960000.mipi: failed to write command FIFO
[   10.139988] [drm:rm68200_dcs_write_cmd.isra.4 [panel_raydium_rm68200]] *ERROR* MIPI DSI DCS write failed: -110
[   10.160972] dw-mipi-dsi-rockchip ff960000.mipi: failed to write command FIFO
[   10.161000] [drm:rm68200_dcs_write_buf.isra.5 [panel_raydium_rm68200]] *ERROR* MIPI DSI DCS write buffer failed: -110
[   10.181929] dw-mipi-dsi-rockchip ff960000.mipi: failed to write command FIFO
[   10.181953] [drm:rm68200_dcs_write_buf.isra.5 [panel_raydium_rm68200]] *ERROR* MIPI DSI DCS write buffer failed: -110
[   10.202923] dw-mipi-dsi-rockchip ff960000.mipi: failed to write command FIFO
[   10.202947] [drm:rm68200_dcs_write_buf.isra.5 [panel_raydium_rm68200]] *ERROR* MIPI DSI DCS write buffer failed: -110
[   10.223064] dw-mipi-dsi-rockchip ff960000.mipi: failed to write command FIFO
[   10.223094] [drm:rm68200_dcs_write_buf.isra.5 [panel_raydium_rm68200]] *ERROR* MIPI DSI DCS write buffer failed: -110
[   10.226104] zram1: detected capacity change from 0 to 52428800
[   10.244027] dw-mipi-dsi-rockchip ff960000.mipi: failed to write command FIFO
[   10.244073] [drm:rm68200_dcs_write_buf.isra.5 [panel_raydium_rm68200]] *ERROR* MIPI DSI DCS write buffer failed: -110
[   10.265024] dw-mipi-dsi-rockchip ff960000.mipi: failed to write command FIFO
[   10.265064] [drm:rm68200_dcs_write_buf.isra.5 [panel_raydium_rm68200]] *ERROR* MIPI DSI DCS write buffer failed: -110
[   10.285711] dw-mipi-dsi-rockchip ff960000.mipi: failed to write command FIFO
[   10.285746] [drm:rm68200_dcs_write_buf.isra.5 [panel_raydium_rm68200]] *ERROR* MIPI DSI DCS write buffer failed: -110
[   10.305926] dw-mipi-dsi-rockchip ff960000.mipi: failed to write command FIFO
[   10.305955] [drm:rm68200_dcs_write_buf.isra.5 [panel_raydium_rm68200]] *ERROR* MIPI DSI DCS write buffer failed: -110
[   10.326996] dw-mipi-dsi-rockchip ff960000.mipi: failed to write command FIFO
[   10.327039] [drm:rm68200_dcs_write_buf.isra.5 [panel_raydium_rm68200]] *ERROR* MIPI DSI DCS write buffer failed: -110
[   10.348030] dw-mipi-dsi-rockchip ff960000.mipi: failed to write command FIFO
[   10.348074] [drm:rm68200_dcs_write_buf.isra.5 [panel_raydium_rm68200]] *ERROR* MIPI DSI DCS write buffer failed: -110

It's remarkable that if to pull the module panel-rm682000 out and then back in, there are no errors mentioned. I can for sure say that those commands become effective - I start seeing colourful stripes on the display after. That is, if I would send the correct command set to the panel, then it would bring up just fine.
Comment 1 Aleksandr Makarov 2021-01-15 18:29:03 UTC
Created attachment 294655 [details]
Complete kernel log

Note You need to log in before you can comment on or make changes to this bug.