NXP BSP Version: is4.14.98_2.0.0_ga
U-Boot and kernel completes @ 3.7sec.
systemd started galcore module.
and in parallel weston started.
Weston takes 1.2sec to complete initialization.
But if we delay weston startup around 1sec in systemd then weston comepleted init in ~250ms.
find below strace.....
1344 18:22:33.206979 openat(AT_FDCWD, "/dev/galcore", O_RDWR) = -1 ENOENT (No such file or directory)
1344 18:22:33.207208 openat(AT_FDCWD, "/dev/graphics/galcore", O_RDWR) = -1 ENOENT (No such file or directory)
1344 18:22:33.207409 nanosleep({tv_sec=1, tv_nsec=0}, NULL) = 0
1344 18:22:34.212621 write(2, "[ 1] Failed to open device: "..., 72) = 72
1344 18:22:34.212954 openat(AT_FDCWD, "/dev/galcore", O_RDWR) = 13
1344 18:22:34.214095 ioctl(13, _IOC(0, 0x75, 0x30, 0), 0xffffffca22e0) = 0
1344 18:22:34.215424 ioctl(13, _IOC(0, 0x75, 0x30, 0), 0xffffffca22e0) = 0
So why dev/galcore taking more time to be available?
Can we move this galcore module insertion to kernel? what is the NXP recommandation?
Why nanosleep configured to 1sec sleep? can we reduce it?
danweiluo
Thanks,
Arunkumar R