lkml.org 
[lkml]   [2019]   [Nov]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: MIPS: bug: gettimeofday syscall broken on CI20 board
From
Date
Hi Nikolaus,

On 27/11/2019 14:29, H. Nikolaus Schaller wrote:
> Hi Vincenco,
>
[...]

>>
>> a) with 5.4 kernel
>>

Could you please report the hash of your top commit?

[...]

>
> root@letux:~# ./gettime
> r = -1 errno=1
> tv.sec = 1
> tv.usec = 1
> rt = 1478193516 errno=1
> t = 1478193516
> root@letux:~#
>

On arm64 the output of your application is what follows:

r = 0 errno=0
tv.sec = 1574942449
tv.usec = 348684
rt = 1574942449 errno=0
t = 1574942449

Which seems what it is expected.

On a previous email you mentioned what follows:

root@letux:~# cat /proc/cpuinfo
system type : JZ4780
machine : img,ci20
processor : 0
cpu model : Ingenic JZRISC V4.15 FPU V0.0
BogoMIPS : 1196.85
wait instruction : yes
microsecond timers : no
tlb_entries : 32
extra interrupt vector : yes
hardware watchpoint : yes, count: 1, address/irw mask: [0x0fff]
isa : mips1 mips2 mips32r1 mips32r2
ASEs implemented :
shadow register sets : 1
kscratch registers : 0
package : 0
core : 0
VCED exceptions : not available
VCEI exceptions : not available

I am not familiar with JZ4780, which HW clock is it using? (R4K, GIC or NONE)?

--
Regards,
Vincenzo
[unhandled content-type:application/pgp-keys]
\
 
 \ /
  Last update: 2019-11-28 13:06    [W:0.096 / U:0.544 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site