[Openpvrsgx-devgroup] About the gettimeofday syscall problem.

H. Nikolaus Schaller hns at goldelico.com
Fri Dec 20 17:52:24 CET 2019


> Am 19.12.2019 um 13:57 schrieb H. Nikolaus Schaller <hns at goldelico.com>:
> 
> Hello to both,
> 
>> Am 19.12.2019 um 13:39 schrieb Paul Boddie <paul at boddie.org.uk>:
>> 
>> Hello again!
>> 
>> On Thursday 19. December 2019 17.24.31 Zhou Yanjie wrote:
>>> Sorry, forgot to add my new mailbox.
>> 
>> I've used both of your addresses in this message, but we can switch over 
>> completely to the new one whenever you tell us to.
>> 
>>> On 2019年12月19日 17:22, Zhou Yanjie wrote:
>>>> Hi Paul and Nikolaus,
>>>> 
>>>> A friend working at MIPS China is also very interested in the
>>>> openpvrsgx project. I have added him to cc.
>>>> Now he wants to ask you if
>>>> "https://github.com/openpvrsgx-devgroup/linux_openpvrsgx" already can
>>>> run on ci20?
>> 
>> Nikolaus knows more about the GPU stuff,
> 
> Well, I can compile the v5.4 pvrsrvkm and load it but then the kernel panics.

Here is the log I currently get:

root at letux:~# modprobe pvrsrvkm_jz4780_sgx540_120
[  264.615114] pvrsrvkm 13040000.gpu: Enabling quirks 00000000
[  264.635208] CPU 0 Unable to handle kernel paging request at virtual address 00000148, epc == 8008a184, ra == c08164cc
[  264.650177] Oops[#1]:
[  264.652467] CPU: 0 PID: 2000 Comm: modprobe Tainted: G        W         5.5.0-rc2-letux-l400+ #1714
[  264.661509] $ 0   : 00000000 00000001 00000001 00000001
[  264.666735] $ 4   : 00000000 c0292000 00001000 00000002
[  264.650116] $ 8   : 00000000 ffffffbf 8e81a580 08800000
[  264.655343] $12   : 0e800000 00000000 ffffffff ffffffff
[  264.660570] $16   : c0292000 00001000 8fb82070 8fb82070
[  264.665796] $20   : c0830000 00000000 c0819c78 c0820000
[  264.649178] $24   : 00000000 8008a180                  
[  264.654404] $28   : 8eb50000 8eb51930 8fe0bd00 c08164cc
[  264.659631] Hi    : 00000000
[  264.662507] Lo    : 00d79130
[  264.665399] epc   : 8008a184 dma_cache_sync+0x4/0x38
[  264.648784] ra    : c08164cc CheckExecuteCacheOp+0xec/0x284 [pvrsrvkm_jz4780_sgx540_120]
[  264.656872] Status: 10000403 KERNEL EXL IE 
[  264.661055] Cause : 00800008 (ExcCode 02)
[  264.665059] BadVA : 00000148
[  264.667962] PrId  : 3ee1024f (Ingenic JZRISC)
[  264.650491] Modules linked in: pvrsrvkm_jz4780_sgx540_120(+) g_ether usb_f_rndis u_ether libcomposite configfs dw_hdmi_jz4780 ingenic_drm dw_hdmi drm_kms_helper cfbfillrect syscopyarea cfbimgblt sysfillrect sysimgblt fb_sys_fops cfbcopyarea drm gpio_ir_recv dm9000 mii drm_panel_orientation_quirks ipv6 autofs4
[  264.656158] Process modprobe (pid: 2000, threadinfo=e52aaad9, task=3d314198, tls=77e53610)
[  264.664463] Stack : 8eb51968 d9d3ea35 00000cc2 000003cf 00000000 ffffffff c0812f1c 8fae9f00
[  264.651023]         8fb82070 00004000 8fb82070 00001000 8eb51ac8 8fffe380 c0819c78 c0820000
[  264.659427]         8fe0bd00 c08183d8 c0819c78 0000c000 8eb51a34 00001000 c0815ac4 8fffe380
[  264.667831]         c0819c78 c0812ff0 00000000 d9d3ea35 00000000 8f801000 00002cc0 8ea84a00
[  264.654390]         8f801000 c0819c78 0000c000 8eb51a34 8eb51a2c c0815d38 8fffe380 8eb51ac8
[  264.662796]         ...
[  264.665262] Call Trace:
[  264.667733] [<8008a184>] dma_cache_sync+0x4/0x38
[  264.650527] Code: 03e00008  27bd0020  2ce20003 <8c830148> 38420001  00020336  54600003  8c790038  0800a427 
[  264.660328] 
[  264.678081] ---[ end trace c63dd202ab2e4c86 ]---
[  264.682799] Kernel panic - not syncing: Fatal exception
[  264.688053] Rebooting in 10 seconds..


> Most likely clocks or something else are not properly initialized and
> there could also be a problem with address translation. Or there may also
> be a bug in the device tree entry.

Having unuseable dma mapping looks like an address setup problem...

How can I debug this?

> 
> I just had too much trouble running the latest kernels on CI20 so that
> I could not research for GPU issues.
> 
>> but currently the HDMI and DRM 
>> peripherals are not producing output, although I think they do get initialised 
>> correctly.
> 
> Working HDMI and DRM is needed to make the pvrsrvctl and demo programs
> work. At least on OMAP they just complain that there is no display and
> refuse to work. So you don't know if it could work at all.
> 
> Unfortunately I did not find time to pick up this work and try to make it
> work.
> 
> Generally we have an openpvrsgx mailing list which also is for jz4780/CI20.
> 
> BR and thanks,
> Nikolaus
> 
> _______________________________________________
> https://github.com/openpvrsgx-devgroup/linux_openpvrsgx
> openpvrsgx-devgroup mailing list
> openpvrsgx-devgroup at letux.org
> http://lists.goldelico.com/mailman/listinfo.cgi/openpvrsgx-devgroup



More information about the openpvrsgx-devgroup mailing list