[Openpvrsgx-devgroup] CI20/JZ4780 HDMI (was Re: Status & HW to bring)
Paul Cercueil
pcercuei at gmail.com
Sat Nov 16 15:49:12 CET 2019
Le jeu., nov. 14, 2019 at 12:08, H. Nikolaus Schaller
<hns at goldelico.com> a écrit :
> Hi Paul,
>
>> Am 14.11.2019 um 11:02 schrieb Paul Cercueil <pcercuei at gmail.com>:
>>
>> Hi,
>>
>>> What I do not see is a /dev/dri or /dev/fb0 or a DRM dmesg, but
>>> otherwise things seem to be
>>> loaded.
>>
>> The ingenic-drm module is not loaded, that's why you don't have a
>> /dev/dri.
>
> Ah, ok. I have found the issue. I have configured by
> CONFIG_DRM_INGENIC=m and there is no
>
> MODULE_DEVICE_TABLE(of, ingenic_drm_of_match);
>
> in the driver. Therefore it was not automatically matched. Should I
> submit a patch to LKML?
Please do.
>
> Now I have /dev/fb0 and /dev/dri - but only after a big timeout and
> flakey.
The timeout occurs because the DRM core expects a VBLANK interrupt to
happen shortly after the LCD controller is enabled.
-Paul
> Same happens when trying to load the SGX driver:
>
> root at letux:~# modprobe pvrsrvkm_jz4780_sgx540_120
> [ 593.478811] pvrsrvkm_jz4780_sgx540_120: module is from the staging
> directory, the quality is unknown, you have been warned.
> root at letux:~# pvrsrvctl --start --no-module
> [ 612.680636] [drm:drm_atomic_helper_wait_for_dependencies
> [drm_kms_helper]] *ERROR* [CRTC:32:crtc-0] flip_done timed out
> [ 622.920194] [drm:drm_atomic_helper_wait_for_dependencies
> [drm_kms_helper]] *ERROR* [CONNECTOR:34:DPI-1] flip_done timed out
> [ 633.159745] [drm:drm_atomic_helper_wait_for_dependencies
> [drm_kms_helper]] *ERROR* [PLANE:31:plane-0] flip_done timed out
> [ 633.299591] ------------[ cut here ]------------
> [ 633.339711] WARNING: CPU: 0 PID: 1542 at
> drivers/gpu/drm/drm_atomic_helper.c:1468
> drm_atomic_helper_wait_for_vblanks+0x220/0x2a8 [drm_kms_helper]
> [ 633.369597] [CRTC:32:crtc-0] vblank wait timed out
> [ 633.365133] Modules linked in: pvrsrvkm_jz4780_sgx540_120(C)
> g_ether usb_f_rndis u_ether libcomposite configfs ingenic_drm
> drm_kms_helper cfbfillrect syscopyarea cfbimgblt sysfillrect
> sysimgblt fb_sys_fops cfbcopyarea panel_simple drm gpio_ir_recv
> dm9000 mii drm_panel_orientation_quirks ipv6 autofs4
> [ 633.376571] CPU: 0 PID: 1542 Comm: pvrsrvctl Tainted: G WC
> 5.4.0-rc7-letux-l400+ #1368
> [ 633.387782] Stack : 00000001 00000009 00000000 00000000 809673b8
> 8ea17b44 809c0000 809bfe77
> [ 633.392946] 8fb75cb8 80907ba0 00000606 80ac34f4 8f9b4000
> 00000001 8ea17af0 9ca159a5
> [ 633.417739] 00000000 00000000 809c0000 ffff00fe 8ea17fe0
> 00000400 00000089 00000000
> [ 633.422374] 40002710 00000000 00000018 00004c4b 809c0000
> 80000000 c025c790 c0268a30
> [ 633.426680] 00000009 000005bc 8f9b4000 00000000 809bd240
> 9ca159a5 00000000 80ac0000
> [ 633.437755] ...
> [ 633.445927] Call Trace:
> [ 633.477736] [<8001c548>] show_stack+0x6c/0x12c
> [ 633.472144] [<8003275c>] __warn+0xdc/0x10c
> [ 633.487307] [<80032814>] warn_slowpath_fmt+0x88/0xc4
> [ 633.482691] [<c025c790>]
> drm_atomic_helper_wait_for_vblanks+0x220/0x2a8 [drm_kms_helper]
> [ 633.485730] [<c025e398>] drm_atomic_helper_commit_tail+0x8c/0xb0
> [drm_kms_helper]
> [ 633.496120] [<c025ea48>] commit_tail+0xec/0x218 [drm_kms_helper]
> [ 633.492482] [<c025ece4>] drm_atomic_helper_commit+0x160/0x19c
> [drm_kms_helper]
> [ 633.495877] [<c124f704>]
> drm_client_modeset_commit_atomic+0x188/0x268 [drm]
> [ 633.492983] [<c124f854>]
> drm_client_modeset_commit_force+0x70/0x1c0 [drm]
> [ 633.524431] [<c026523c>]
> drm_fb_helper_restore_fbdev_mode_unlocked+0x68/0xc0 [drm_kms_helper]
> [ 633.529039] [<c0265330>] drm_fbdev_client_restore+0x18/0x28
> [drm_kms_helper]
> [ 633.526568] [<c124edc8>] drm_client_dev_restore+0x9c/0x108 [drm]
> [ 633.545113] [<c1222cdc>] drm_release+0x88/0xcc [drm]
> [ 633.564331] [<80179884>] __fput+0x108/0x22c
> [ 633.560083] [<80051a80>] task_work_run+0xcc/0xfc
> [ 633.592211] [<8001b868>] do_notify_resume+0x274/0x2cc
> [ 633.622207] [<80016264>] work_notifysig+0x10/0x18
> [ 633.662209] ---[ end trace 6909f232ae0d1440 ]---
> pvrsrvctl: SrvInit failed (already initialized?)
> (err=PVRSRV_ERROR_INIT_FAILURE)
> root at letux:~#
> root at letux:~# uname -a
> Linux letux 5.4.0-rc7-letux-l400+ #1368 PREEMPT Thu Nov 14 11:20:12
> CET 2019 mips GNU/Linux
> root at letux:~# ls -l /dev/fb*
> crw-rw---- 1 root video 29, 0 Nov 3 17:17 /dev/fb0
> root at letux:~# ls -l /dev/dri
> total 0
> crw-rw---- 1 root video 226, 0 Nov 3 17:17 card0
> root at letux:~#
>
> All this means that the kernel driver is somehow communicating with
> the DRM subsystem.
>
> BR and thanks,
> Nikolaus
>
> During boot:
>
> [ 8.982546] ------------[ cut here ]------------
> [ 8.982714] WARNING: CPU: 0 PID: 846 at
> drivers/gpu/drm/drm_atomic_helper.c:1468
> drm_atomic_helper_wait_for_vblanks+0x220/0x2a8 [drm_kms_helper]
> [ 8.982720] [CRTC:32:crtc-0] vblank wait timed out
> [ 8.982722] Modules linked in: ingenic_drm(+) drm_kms_helper
> cfbfillrect syscopyarea cfbimgblt sysfillrect sysimgblt fb_sys_fops
> cfbcopyarea panel_simple drm gpio_ir_recv dm9000 mii
> drm_panel_orientation_quirks ipv6 autofs4
> [ 8.982767] CPU: 0 PID: 846 Comm: systemd-udevd Tainted: G
> W 5.4.0-rc7-letux-l400+ #1368
> [ 8.982771] Stack : ffffffff 00000009 00000000 00000000 809673b8
> 8e81f65c 809c0000 809bfe77
> [ 8.982787] 8e817038 80907ba0 0000034e 80ac34f4 8f9b4000
> 00000000 8e81f608 1a3522c0
> [ 8.982803] 00000000 00000000 809c0000 00000000 00000004
> 80756818 00000000 2d787574
> [ 8.982818] 20202020 80788f80 0000000f 20572020 809c0000
> 80000000 c025c790 c0268a30
> [ 8.982834] 00000009 000005bc 8f9b4000 00000000 00000018
> 8049ffdc 017ad99f 017ad9df
> [ 8.982849] ...
> [ 8.982855] Call Trace:
> [ 8.982867] [<8001c548>] show_stack+0x6c/0x12c
> [ 8.982880] [<8003275c>] __warn+0xdc/0x10c
> [ 8.982889] [<80032814>] warn_slowpath_fmt+0x88/0xc4
> [ 8.982987] [<c025c790>]
> drm_atomic_helper_wait_for_vblanks+0x220/0x2a8 [drm_kms_helper]
> [ 8.983169] [<c025e398>] drm_atomic_helper_commit_tail+0x8c/0xb0
> [drm_kms_helper]
> [ 8.983351] [<c025ea48>] commit_tail+0xec/0x218 [drm_kms_helper]
> [ 8.983533] [<c025ece4>] drm_atomic_helper_commit+0x160/0x19c
> [drm_kms_helper]
> [ 8.983919] [<c124f704>]
> drm_client_modeset_commit_atomic+0x188/0x268 [drm]
> [ 8.984331] [<c124f854>]
> drm_client_modeset_commit_force+0x70/0x1c0 [drm]
> [ 8.984631] [<c026523c>]
> drm_fb_helper_restore_fbdev_mode_unlocked+0x68/0xc0 [drm_kms_helper]
> [ 8.984814] [<c02652e8>] drm_fb_helper_set_par+0x54/0x74
> [drm_kms_helper]
> [ 8.984911] [<8041e658>] fbcon_init+0x3f8/0x530
> [ 8.984923] [<8045e5cc>] visual_init+0xc4/0x11c
> [ 8.984934] [<804608f8>] do_bind_con_driver+0x22c/0x384
> [ 8.984944] [<80460e88>] do_take_over_console+0x1ac/0x1fc
> [ 8.984957] [<8041ad34>] do_fbcon_takeover+0x90/0xf8
> [ 8.984965] [<804133c8>] register_framebuffer+0x1f4/0x304
> [ 8.985062] [<c0264ddc>]
> __drm_fb_helper_initial_config_and_unlock+0x454/0x558 [drm_kms_helper]
> [ 8.985245] [<c0265454>] drm_fbdev_client_hotplug+0x104/0x164
> [drm_kms_helper]
> [ 8.985428] [<c02655bc>] drm_fbdev_generic_setup+0x108/0x160
> [drm_kms_helper]
> [ 8.985538] [<c007bd28>] ingenic_drm_probe+0x670/0x6d8
> [ingenic_drm]
> [ 8.985559] [<804823d4>] platform_drv_probe+0x58/0xb4
> [ 8.985568] [<80480140>] really_probe+0x19c/0x348
> [ 8.985577] [<804805e8>] driver_probe_device+0x194/0x1e4
> [ 8.985586] [<8048082c>] device_driver_attach+0x50/0x78
> [ 8.985595] [<80480910>] __driver_attach+0xbc/0xd8
> [ 8.985604] [<8047e0d8>] bus_for_each_dev+0x70/0xc0
> [ 8.985613] [<8047f3a4>] bus_add_driver+0x110/0x1f0
> [ 8.988830] [<804813a0>] driver_register+0xcc/0x120
> [ 8.988841] [<80010da4>] do_one_initcall+0xa4/0x220
> [ 8.988850] [<800b0034>] do_init_module+0x74/0x210
> [ 8.988863] [<800aec0c>] load_module+0x1264/0x17e4
> [ 8.988873] [<800af390>] sys_finit_module+0xb0/0xe0
> [ 8.988884] [<800209cc>] syscall_common+0x34/0x58
> [ 8.988897] ---[ end trace 6909f232ae0d143d ]---
> [ 8.988940] Console: switching to colour frame buffer device 40x30
> [ 19.512583] [drm:drm_atomic_helper_wait_for_dependencies
> [drm_kms_helper]] *ERROR* [CRTC:32:crtc-0] flip_done timed out
> [ 29.752578] [drm:drm_atomic_helper_wait_for_dependencies
> [drm_kms_helper]] *ERROR* [CONNECTOR:34:DPI-1] flip_done timed out
> [ 39.992583] [drm:drm_atomic_helper_wait_for_dependencies
> [drm_kms_helper]] *ERROR* [PLANE:31:plane-0] flip_done timed out
> [ 40.102419] ------------[ cut here ]------------
> [ 40.102558] WARNING: CPU: 0 PID: 846 at
> drivers/gpu/drm/drm_atomic_helper.c:1468
> drm_atomic_helper_wait_for_vblanks+0x220/0x2a8 [drm_kms_helper]
> [ 40.102563] [CRTC:32:crtc-0] vblank wait timed out
> [ 40.102567] Modules linked in: ingenic_drm(+) drm_kms_helper
> cfbfillrect syscopyarea cfbimgblt sysfillrect sysimgblt fb_sys_fops
> cfbcopyarea panel_simple drm gpio_ir_recv dm9000 mii
> drm_panel_orientation_quirks ipv6 autofs4
> [ 40.102611] CPU: 0 PID: 846 Comm: systemd-udevd Tainted: G
> W 5.4.0-rc7-letux-l400+ #1368
> [ 40.102615] Stack : ffffffff 00000009 00000000 00000000 809673b8
> 8e81f58c 809c0000 809bfe77
> [ 40.102631] 8e817038 80907ba0 0000034e 80ac34f4 8f9b4000
> 00000000 8e81f538 1a3522c0
> [ 40.102647] 00000000 00000000 809c0000 00000000 00000004
> 80756818 00000000 2d787574
> [ 40.102662] 20202020 80788f80 0000000f 20572020 809c0000
> 80000000 c025c790 c0268a30
> [ 40.102678] 00000009 000005bc 8f9b4000 00000000 00000018
> 8049ffdc 017ad99f 017ad9df
> [ 40.102693] ...
> [ 40.102699] Call Trace:
> [ 40.102711] [<8001c548>] show_stack+0x6c/0x12c
> [ 40.102723] [<8003275c>] __warn+0xdc/0x10c
> [ 40.102732] [<80032814>] warn_slowpath_fmt+0x88/0xc4
> [ 40.102830] [<c025c790>]
> drm_atomic_helper_wait_for_vblanks+0x220/0x2a8 [drm_kms_helper]
> [ 40.103013] [<c025e398>] drm_atomic_helper_commit_tail+0x8c/0xb0
> [drm_kms_helper]
> [ 40.103195] [<c025ea48>] commit_tail+0xec/0x218 [drm_kms_helper]
> [ 40.103377] [<c025ece4>] drm_atomic_helper_commit+0x160/0x19c
> [drm_kms_helper]
> [ 40.103762] [<c124f704>]
> drm_client_modeset_commit_atomic+0x188/0x268 [drm]
> [ 40.104173] [<c124f854>]
> drm_client_modeset_commit_force+0x70/0x1c0 [drm]
> [ 40.104471] [<c0265e04>] drm_fb_helper_pan_display+0xe4/0x230
> [drm_kms_helper]
> [ 40.104570] [<80412084>] fb_pan_display+0xe4/0x140
> [ 40.104579] [<80420654>] bit_update_start+0x20/0x4c
> [ 40.104587] [<8041d0d8>] fbcon_switch+0x3e0/0x4a0
> [ 40.104599] [<80460088>] redraw_screen+0x11c/0x210
> [ 40.104609] [<804609d4>] do_bind_con_driver+0x308/0x384
> [ 40.104619] [<80460e88>] do_take_over_console+0x1ac/0x1fc
> [ 40.104631] [<8041ad34>] do_fbcon_takeover+0x90/0xf8
> [ 40.104639] [<804133c8>] register_framebuffer+0x1f4/0x304
> [ 40.104736] [<c0264ddc>]
> __drm_fb_helper_initial_config_and_unlock+0x454/0x558 [drm_kms_helper]
> [ 40.104919] [<c0265454>] drm_fbdev_client_hotplug+0x104/0x164
> [drm_kms_helper]
> [ 40.105102] [<c02655bc>] drm_fbdev_generic_setup+0x108/0x160
> [drm_kms_helper]
> [ 40.105212] [<c007bd28>] ingenic_drm_probe+0x670/0x6d8
> [ingenic_drm]
> [ 40.105232] [<804823d4>] platform_drv_probe+0x58/0xb4
> [ 40.105241] [<80480140>] really_probe+0x19c/0x348
> [ 40.105250] [<804805e8>] driver_probe_device+0x194/0x1e4
> [ 40.105260] [<8048082c>] device_driver_attach+0x50/0x78
> [ 40.105269] [<80480910>] __driver_attach+0xbc/0xd8
> [ 40.105277] [<8047e0d8>] bus_for_each_dev+0x70/0xc0
> [ 40.105286] [<8047f3a4>] bus_add_driver+0x110/0x1f0
> [ 40.105295] [<804813a0>] driver_register+0xcc/0x120
> [ 40.105304] [<80010da4>] do_one_initcall+0xa4/0x220
> [ 40.105313] [<800b0034>] do_init_module+0x74/0x210
> [ 40.105325] [<800aec0c>] load_module+0x1264/0x17e4
> [ 40.105335] [<800af390>] sys_finit_module+0xb0/0xe0
> [ 40.105346] [<800209cc>] syscall_common+0x34/0x58
> [ 40.105356] ---[ end trace 6909f232ae0d143e ]---
> [ 40.494101] ingenic-drm 13050000.lcd-controller: fb0:
> ingenic-drmdrmf frame buffer device
>
>
>
More information about the openpvrsgx-devgroup
mailing list