Closed marcust closed 7 years ago
I am not sure what exactly is going wrong here. But even if the Kernel is to blame i am not planning to do anything about it in the BSP Kernel. Please try to reproduce with mainline Kernel 4.9 or higher. If its an issue still, it should be fixed there.
@longsleep I would guess it has something to do with A64 arch timer bug https://irclog.whitequark.org/linux-sunxi/2016-11-04#18097090 http://lists.denx.de/pipermail/u-boot/2016-November/271836.html
Oh my, reopening this - i am open for patches or links to patches :)
So, I'm not totally sure where to put this, but I think it might be a Pine64/Kernel related issue.
I have a problem with random crashes of the rust compiler (1.13) on my Pine64:
As the message "other was less than the current instant" struck me as quite odd I had a look at the source code there and apparently they make sure that two subsequent calls to
clock_gettime(CLOCK_MONOTONIC...
always have a positive delta (https://github.com/rust-lang/rust/blame/master/src/libstd/sys/unix/time.rs#L276, commit is https://github.com/rust-lang/rust/commit/c6eb8527e09bed702f30ffdc8d6e54acf9b867ca)According to the Linux docs that should be the case:
So this made me take out my rusty C knowledge to test that out:
Having some load I can reproduce that:
So my question is: is this a bug? Should that always be monotonic increasing? I have OpenNTPd running, but as this clock should not be settable this should not be an issue (plus NTP log messages in syslog do not correlate with my tests)
I'm running