Skip to contentSkip to conversation

Rcar Gen2: DU: Bootlogs Error and show image error

DISCUSSION Cao Minh Hiep 2 participants 8 messages Nov 20, 2015 – Jun 29, 2016 SuperH

lore
Share & tools
lore
#0 lore raw

Hi Laurent-san

Thanks for your kindness support!
I don't mean to bother you!
But as you know, we have reported to you before, have some problems related to DU driver.
We couldn't show a image on the display. We found the messages as showed below:
-----
Boot logs on Rcar-H2:
rcar-du feb00000.display: failed to initialize encoder /i2c@e6520000/hdmi@39 (-38), skipping
rcar-du feb00000.display: fb0: frame buffer device
-----
Boot logs on Rcar-M2:
rcar-du feb00000.display: failed to initialize encoder /i2c@e6530000/hdmi@39 (-g
rcar-du feb00000.display: error: no encoder could be initialized rcar-du feb00000.display: failed to initialize DRM/KMS (-22)
rcar-du: probe of feb00000.display failed with error -22
-----

This is tested on linux stable v4.3.
Please have a look when you have time.

Best Regards,
Jinso/Cao Minh Hiep.

#1 lore raw

Hello, and sorry for the late reply.

Quoted 4 lines · On Friday 20 November 2015 16:39:28 Cao Minh Hiep wrote:

Hi Laurent-san

Thanks for your kindness support!
I don't mean to bother you!

You're not bothering me at all :-)

Quoted 18 lines

But as you know, we have reported to you before, have some problems related to DU driver.
We couldn't show a image on the display. We found the messages as showed below:
-----
Boot logs on Rcar-H2:
rcar-du feb00000.display: failed to initialize encoder /i2c@e6520000/hdmi@39 (-38), skipping
rcar-du feb00000.display: fb0: frame buffer device
-----
Boot logs on Rcar-M2:
rcar-du feb00000.display: failed to initialize encoder /i2c@e6530000/hdmi@39 (-g
rcar-du feb00000.display: error: no encoder could be initialized rcar-du feb00000.display: failed to initialize DRM/KMS (-22)
rcar-du: probe of feb00000.display failed with error -22
-----

Quoted 2 lines

This is tested on linux stable v4.3.
Please have a look when you have time.

Have you enabled CONFIG_DRM_RCAR_HDMI ?

Signature · 3 lines
Regards,

Laurent Pinchart
#2 lore raw
In reply to Cao Minh Hiep

Hi Laurent-san

Thanks for your reply!

Quoted 1 line · Laurent Pinchart

Hello, and sorry for the late reply.

No, problems!

Quoted 25 lines · On Friday 20 November 2015 16:39:28 Cao Minh Hiep wrote:
Quoted 4 lines

Hi Laurent-san

Thanks for your kindness support!
I don't mean to bother you!

You're not bothering me at all :-)

Quoted 18 lines

But as you know, we have reported to you before, have some problems related to DU driver.
We couldn't show a image on the display. We found the messages as showed below:
-----
Boot logs on Rcar-H2:
rcar-du feb00000.display: failed to initialize encoder /i2c@e6520000/hdmi@39 (-38), skipping
rcar-du feb00000.display: fb0: frame buffer device
-----
Boot logs on Rcar-M2:
rcar-du feb00000.display: failed to initialize encoder /i2c@e6530000/hdmi@39 (-g
rcar-du feb00000.display: error: no encoder could be initialized rcar-du feb00000.display: failed to initialize DRM/KMS (-22)
rcar-du: probe of feb00000.display failed with error -22
-----

Quoted 4 lines
Quoted 2 lines

This is tested on linux stable v4.3.
Please have a look when you have time.

Have you enabled CONFIG_DRM_RCAR_HDMI ?

Yes, These initialize logs are taken with default config that CONFIG_DRM_RCAR_HDMI disabled at v4.3.
But when we enabled CONFIG_DRM_RCAR_HDMI, then we still could not show any images on HDMI or RGB Screen.

I found that, CONFIG_DRM_RCAR_HDMI have already enabled in default config at v4.4-rc2.
But have a error message as below and DU is still not improved(still can not show images on screen).

On Rcar-H2(Lager):

[drm] Initialized drm 1.1.0 20060810
[drm] Supports vblank timestamp caching Rev 2 (21.10.2013). [drm] No driver support for vblank timestamp query. rcar-du feb00000.display: failed to initialize DRM/KMS (-517) rcar-du feb00000.display: fb0: frame buffer device [drm] Initialized rcar-du 1.0.0 20130110 on minor 0

On Rcar-M2(Koelsch):

[drm] Initialized drm 1.1.0 20060810
[drm] Supports vblank timestamp caching Rev 2 (21.10.2013). [drm] No driver support for vblank timestamp query. rcar-du feb00000.display: failed to initialize DRM/KMS (-517) rcar-du feb00000.display: fb0: frame buffer device [drm] Initialized rcar-du 1.0.0 20130110 on minor 0

Thank you!
Jinso/Hiep

#3 lore raw
In reply to Cao Minh Hiep

Hello,

Quoted 52 lines · On Thursday 26 November 2015 11:48:22 Cao Minh Hiep wrote:
Quoted 26 lines · Laurent Pinchart
Quoted 4 lines · On Friday 20 November 2015 16:39:28 Cao Minh Hiep wrote:

Hi Laurent-san

Thanks for your kindness support!
I don't mean to bother you!

You're not bothering me at all :-)

Quoted 18 lines

But as you know, we have reported to you before, have some problems related to DU driver.
We couldn't show a image on the display. We found the messages as showed below:
-----
Boot logs on Rcar-H2:
rcar-du feb00000.display: failed to initialize encoder /i2c@e6520000/hdmi@39 (-38), skipping
rcar-du feb00000.display: fb0: frame buffer device
-----
Boot logs on Rcar-M2:
rcar-du feb00000.display: failed to initialize encoder /i2c@e6530000/hdmi@39 (-g
rcar-du feb00000.display: error: no encoder could be initialized rcar-du feb00000.display: failed to initialize DRM/KMS (-22)
rcar-du: probe of feb00000.display failed with error -22
-----

Quoted 4 lines
Quoted 2 lines

This is tested on linux stable v4.3.
Please have a look when you have time.

Have you enabled CONFIG_DRM_RCAR_HDMI ?

Yes, These initialize logs are taken with default config that CONFIG_DRM_RCAR_HDMI disabled at v4.3.
But when we enabled CONFIG_DRM_RCAR_HDMI, then we still could not show any images on HDMI or RGB Screen.

I found that, CONFIG_DRM_RCAR_HDMI have already enabled in default config at v4.4-rc2.
But have a error message as below and DU is still not improved(still can not show images on screen).

On Rcar-H2(Lager):

[drm] Initialized drm 1.1.0 20060810
[drm] Supports vblank timestamp caching Rev 2 (21.10.2013). [drm] No driver support for vblank timestamp query. rcar-du feb00000.display: failed to initialize DRM/KMS (-517) rcar-du feb00000.display: fb0: frame buffer device [drm] Initialized rcar-du 1.0.0 20130110 on minor 0

Quoted 8 lines

On Rcar-M2(Koelsch):

[drm] Initialized drm 1.1.0 20060810
[drm] Supports vblank timestamp caching Rev 2 (21.10.2013). [drm] No driver support for vblank timestamp query. rcar-du feb00000.display: failed to initialize DRM/KMS (-517) rcar-du feb00000.display: fb0: frame buffer device [drm] Initialized rcar-du 1.0.0 20130110 on minor 0

-517 (-EPROBE_DEFER) means that probe deferral is requested because a required dependency is not present. Have you compiled and loaded the adv7511 driver (CONFIG_DRM_I2C_ADV7511) ?

Signature · 3 lines
Regards,

Laurent Pinchart
#4 lore raw
In reply to Cao Minh Hiep

Hello Laurent-san,

Quoted 49 lines
Quoted 41 lines
Quoted 18 lines
Quoted 18 lines

But as you know, we have reported to you before, have some problems related to DU driver.
We couldn't show a image on the display. We found the messages as showed below:
-----
Boot logs on Rcar-H2:
rcar-du feb00000.display: failed to initialize encoder /i2c@e6520000/hdmi@39 (-38), skipping
rcar-du feb00000.display: fb0: frame buffer device
-----
Boot logs on Rcar-M2:
rcar-du feb00000.display: failed to initialize encoder /i2c@e6530000/hdmi@39 (-g
rcar-du feb00000.display: error: no encoder could be initialized rcar-du feb00000.display: failed to initialize DRM/KMS (-22)
rcar-du: probe of feb00000.display failed with error -22
-----

Quoted 3 lines
Quoted 2 lines

This is tested on linux stable v4.3.
Please have a look when you have time.

Have you enabled CONFIG_DRM_RCAR_HDMI ?

Yes, These initialize logs are taken with default config that CONFIG_DRM_RCAR_HDMI disabled at v4.3.
But when we enabled CONFIG_DRM_RCAR_HDMI, then we still could not show any images on HDMI or RGB Screen.

I found that, CONFIG_DRM_RCAR_HDMI have already enabled in default config at v4.4-rc2.
But have a error message as below and DU is still not improved(still can not show images on screen).

On Rcar-H2(Lager):

[drm] Initialized drm 1.1.0 20060810
[drm] Supports vblank timestamp caching Rev 2 (21.10.2013). [drm] No driver support for vblank timestamp query. rcar-du feb00000.display: failed to initialize DRM/KMS (-517) rcar-du feb00000.display: fb0: frame buffer device [drm] Initialized rcar-du 1.0.0 20130110 on minor 0

Quoted 8 lines

On Rcar-M2(Koelsch):

[drm] Initialized drm 1.1.0 20060810
[drm] Supports vblank timestamp caching Rev 2 (21.10.2013). [drm] No driver support for vblank timestamp query. rcar-du feb00000.display: failed to initialize DRM/KMS (-517) rcar-du feb00000.display: fb0: frame buffer device [drm] Initialized rcar-du 1.0.0 20130110 on minor 0

Quoted 4 lines

-517 (-EPROBE_DEFER) means that probe deferral is requested because a required dependency is not present. Have you compiled and loaded the adv7511 driver (CONFIG_DRM_I2C_ADV7511) ?

Yes, CONFIG_DRM_I2C_ADV7511=y has already enabled in default config at v4.4-rc2.
I also have enabled CONFIG_DRM_SHMOBILE and CONFIG_FB_SH_MOBILE_HDMI then test.
But It has nothing change.
Is there other configuration or reason could we think?

we usually use Morimoto-san's the bmap tool to show a image as below:
./bmap /dev/fb0 ./hdmi.bmp
It is good for showing a image in bsp version ltsi-v3.10.31-rcar/gen2-1.9.5.

Thank you!
Jinso/Hiep

#5 lore raw
In reply to Cao Minh Hiep

Hi Laurent-san

Sorry to bother you again!

Quoted 60 lines · Cao Minh Hiep

Hello Laurent-san,

Quoted 51 lines
Quoted 43 lines
Quoted 19 lines
Quoted 19 lines

But as you know, we have reported to you before, have some problems related to DU driver.
We couldn't show a image on the display. We found the messages as showed
below:
-----
Boot logs on Rcar-H2:
rcar-du feb00000.display: failed to initialize encoder /i2c@e6520000/hdmi@39 (-38), skipping
rcar-du feb00000.display: fb0: frame buffer device
-----
Boot logs on Rcar-M2:
rcar-du feb00000.display: failed to initialize encoder /i2c@e6530000/hdmi@39 (-g
rcar-du feb00000.display: error: no encoder could be initialized rcar-du feb00000.display: failed to initialize DRM/KMS (-22)
rcar-du: probe of feb00000.display failed with error -22
-----

Quoted 3 lines
Quoted 2 lines

This is tested on linux stable v4.3.
Please have a look when you have time.

Have you enabled CONFIG_DRM_RCAR_HDMI ?

Yes, These initialize logs are taken with default config that CONFIG_DRM_RCAR_HDMI disabled at v4.3.
But when we enabled CONFIG_DRM_RCAR_HDMI, then we still could not show any images on HDMI or RGB Screen.

I found that, CONFIG_DRM_RCAR_HDMI have already enabled in default config at v4.4-rc2.
But have a error message as below and DU is still not improved(still can
not show images on screen).

On Rcar-H2(Lager):

[drm] Initialized drm 1.1.0 20060810
[drm] Supports vblank timestamp caching Rev 2 (21.10.2013). [drm] No driver support for vblank timestamp query. rcar-du feb00000.display: failed to initialize DRM/KMS (-517) rcar-du feb00000.display: fb0: frame buffer device [drm] Initialized rcar-du 1.0.0 20130110 on minor 0

Quoted 8 lines

On Rcar-M2(Koelsch):

[drm] Initialized drm 1.1.0 20060810
[drm] Supports vblank timestamp caching Rev 2 (21.10.2013). [drm] No driver support for vblank timestamp query. rcar-du feb00000.display: failed to initialize DRM/KMS (-517) rcar-du feb00000.display: fb0: frame buffer device [drm] Initialized rcar-du 1.0.0 20130110 on minor 0

Quoted 6 lines

-517 (-EPROBE_DEFER) means that probe deferral is requested because a required
dependency is not present. Have you compiled and loaded the adv7511 driver
(CONFIG_DRM_I2C_ADV7511) ?

Quoted 7 lines

Yes, CONFIG_DRM_I2C_ADV7511=y has already enabled in default config at v4.4-rc2.
I also have enabled CONFIG_DRM_SHMOBILE and CONFIG_FB_SH_MOBILE_HDMI then test.
But It has nothing change.
Is there other configuration or reason could we think?

Does this problem happen on your board?
If not, Could you please send me your config file?.

Thank you!
Jinso/Hiep

#6 lore raw
In reply to Cao Minh Hiep

Hello Cao Minh-san,

(this is a bit of a stupid question, and I apologize for that, but what is the proper way to address you, Cao-san, Cao Minh-san, Hiep-san, or something else ?)

Quoted 33 lines · On Thursday 10 December 2015 10:43:18 Cao Minh Hiep wrote:
Quoted 18 lines
Quoted 10 lines
Quoted 7 lines

Yes, CONFIG_DRM_I2C_ADV7511=y has already enabled in default config at v4.4-rc2.
I also have enabled CONFIG_DRM_SHMOBILE and CONFIG_FB_SH_MOBILE_HDMI then test.
But It has nothing change.
Is there other configuration or reason could we think?

Does this problem happen on your board?
If not, Could you please send me your config file?.

Sorry for the delay, I wanted to retry on my Koelsch board before replying.

The probe deferral error (-517) you're seeing is normal, it comes from the DU being probed before its dependencies. Probe is deferred and retried, and finally succeeds as shown by

Quoted 6 lines

[drm] Initialized rcar-du 1.0.0 20130110 on minor 0

With a stock v4.4-rc2 kernel I get the same result, and I can then use the HDMI output without any issue with the modetest application.

I've attached the kernel configuration I used for testing, just in case.

Thanks, I have changed our HDMI display device(Old one -> other newer one), and then I could show a image on the display successfully. This test is on Koelsch board.
But I found that, before showing the image on HDMI display,
I have to enable CONFIG_FRAMEBUFFER_CONSOLE =y or
run a command something like "fbset -xres 640 -yres 480 -laced 0", in order to clear the first screen.

Quoted 7 lines

On Lager, with the same test method, I could show a image on RGB display very well,
but when I showed image on HDMI display, The image showed on display looks bad as attached picture.
The attached picture: HDMI-Display-image-showed-from-Lager.jpg

Please have a look and show me what i have to do!

I'll try to reproduce that. Could you please send me the image file and the exact test procedure ?

Signature · 3 lines
Regards,

Laurent Pinchart
#7 lore raw
In reply to Cao Minh Hiep

Hello Hiep-san,

Quoted 9 lines · On Tuesday 28 Jun 2016 10:19:20 Hiep Cao Minh wrote:

Hi Laurent-san

Sorry to bother you again!
I would like to confirm the fixed patch for this issue on Lager. I have retested it on Lager(Rcar-H2), The issue still happens at the Linux upstream version v4.7-rc2
Have you released the fixed patch?
Please tell me the version and test method if you have already released it. I resent the damage image when displaying it on the HDMI screen.

I'm currently traveling and have only taken my H3 board with me, so I don't have access to Lager. I'll be back home on the 5th of July and then test this. Sorry for the delay.

Quoted 80 lines · Cao Minh Hiep
Quoted 79 lines

Hello Laurent-san

Quoted 7 lines · Laurent Pinchart

Hello Cao Minh-san,

(this is a bit of a stupid question, and I apologize for that, but what is the
proper way to address you, Cao-san, Cao Minh-san, Hiep-san, or something else
?)

No problems! :) , Hiep is my name! Every one calls me Hiep,

Quoted 46 lines · On Thursday 10 December 2015 10:43:18 Cao Minh Hiep wrote:
Quoted 45 lines
Quoted 20 lines
Quoted 10 lines
Quoted 7 lines

Yes, CONFIG_DRM_I2C_ADV7511=y has already enabled in default config at
v4.4-rc2.
I also have enabled CONFIG_DRM_SHMOBILE and CONFIG_FB_SH_MOBILE_HDMI then test.
But It has nothing change.
Is there other configuration or reason could we think?

Does this problem happen on your board?
If not, Could you please send me your config file?.

Sorry for the delay, I wanted to retry on my Koelsch board before replying.

The probe deferral error (-517) you're seeing is normal, it comes from the
DU being probed before its dependencies. Probe is deferred and retried,
and finally succeeds as shown by

Quoted 8 lines

[drm] Initialized rcar-du 1.0.0 20130110 on minor 0

With a stock v4.4-rc2 kernel I get the same result, and I can then use the
HDMI output without any issue with the modetest application.

I've attached the kernel configuration I used for testing, just in case.

Thanks, I have changed our HDMI display device(Old one -> other newer one),
and then I could show a image on the display successfully. This test is on Koelsch board.
But I found that, before showing the image on HDMI display, I have to enable CONFIG_FRAMEBUFFER_CONSOLE =y or
run a command something like "fbset -xres 640 -yres 480 -laced 0", in order to clear the first screen.

On Lager, with the same test method, I could show a image on RGB display
very well,
but when I showed image on HDMI display, The image showed on display looks bad as attached picture.
The attached picture: HDMI-Display-image-showed-from-Lager.jpg

Quoted 5 lines
Quoted 1 line

Please have a look and show me what i have to do!

I'll try to reproduce that. Could you please send me the image file and the
exact test procedure ?

I tested on v4.4-rc2 on Lager board.

CONFIG_DRM_RCAR_HDMI=y
CONFIG_DRM_I2C_ADV7511=y
VIDEO_ADV7511=y
CONFIG_FRAMEBUFFER_CONSOLE =y

I used the Morimoto-san's bmap tool to show image file. ./bmap /dev/fb0 ./picture.bmp

I attach bmap file and the image file "picture.bmp".

Regards,
Jinso/Hiep.

Signature · 3 lines
Regards,

Laurent Pinchart