projectacrn / acrn-hypervisor

Project ACRN hypervisor
BSD 3-Clause "New" or "Revised" License
1.12k stars 514 forks source link

/dev/rtc0 to wait for clock tick timed out - synchronization failed #5868

Closed ionutnechita closed 2 years ago

ionutnechita commented 3 years ago

Hi ACRN Team,

I observe this issue: demo-acrn-opensuse-labl1:/home/demo # hwclock --systohc demo-acrn-opensuse-labl1:/home/demo # hwclock --hctosys hwclock: select() to /dev/rtc0 to wait for clock tick timed out demo-acrn-opensuse-labl1:/home/demo # hwclock --get hwclock: select() to /dev/rtc0 to wait for clock tick timed out demo-acrn-opensuse-labl1:/home/demo # hwclock --verbose hwclock from util-linux 2.36.2 System Time: 1616596213.178276 Trying to open: /dev/rtc0 Using the rtc interface to the clock. Last drift adjustment done at 1616596006 seconds after 1969 Last calibration done at 1616596006 seconds after 1969 Hardware clock is on UTC time Assuming hardware clock is kept in UTC time. Waiting for clock tick... hwclock: select() to /dev/rtc0 to wait for clock tick timed out ...synchronization failed

acrn-dm --version DM version is: 2.4-unstable-ae659e58a-dirty (daily tag:acrn-2021w06.3-180000p), build by root@2021-03-22 12:36:01

uname -a Linux demo-acrn-opensuse-labl1 5.4.90-PKT-200203T060100Z-00006-g07fb8047e3dc #1 SMP PREEMPT Mon Mar 22 13:00:34 EET 2021 x86_64 x86_64 x86_64 GNU/Linux

hwclock --version hwclock from util-linux 2.36.2

Scenario: Industrial / Industry

Branch: master

fuzhongl commented 3 years ago

@ionutnechita please try hwclock --directisa Thanks!

ionutnechita commented 3 years ago

Hi @fuzhongl,

This command working. Thanks.

gvancuts commented 3 years ago

Is this the expected behaviour (and if so, should this be documented somewhere) or is this a bug?

ionutnechita commented 3 years ago

Hi @gvancuts,

Maybe it's a bug. @fuzhongl, maybe you should explain this behavior here in the ticket so we can all understand it.

fuzhongl commented 3 years ago

@JasonChenCJ Could you please help to comment about this issue? Thanks!