Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clock_settime03 #712

Closed
rasibley opened this issue Aug 17, 2020 · 6 comments
Closed

clock_settime03 #712

rasibley opened this issue Aug 17, 2020 · 6 comments

Comments

@rasibley
Copy link
Contributor

While we updated to a recent commit for CKI, newly onboarded clock_settime03 test is failing with BROK: timer_create() failed: EOPNOTSUPP (95) error for all non x86_64 arches, see below:

>>> 80:clock_settime03 BROK <<<
###############################################################################
# Test Num    : 80                                                            #
# Test Case   : clock_settime03                                               #
# Test Result : BROK                                                          #
###############################################################################

     1	<<<test_start>>>
     2	tag=clock_settime03 stime=1596809785
     3	cmdline="clock_settime03"
     4	contacts=""
     5	analysis=exit
     6	<<<test_output>>>
     7	tst_test.c:1245: INFO: Timeout per run is 0h 05m 00s
     8	clock_settime03.c:41: INFO: Testing variant: syscall with old kernel spec
     9	clock_settime03.c:70: BROK: timer_create() failed: EOPNOTSUPP (95)
    10	
    11	Summary:
    12	passed   0
    13	failed   0
    14	skipped  0
    15	warnings 0
    16	<<<execution_status>>>
    17	initiation_status="ok"
    18	duration=0 termination_type=exited termination_id=2 corefile=no
    19	cutime=0 cstime=0
    20	<<<test_end>>>
@metan-ucw
Copy link
Member

That is a bit strange, the syscall that fails is timer_create() with CLOCK_REALTIME_ALARM. I guess that there may be missing support for RTC wakeup either in kernel or hardware.

Does the test work if you change the CLOCK_REALTIME_ALARM into just CLOCK_REALTIME?

@jstancek
Copy link
Contributor

@jstancek
Copy link
Contributor

From what I recall, the report was from ppc kvm guest.

@metan-ucw
Copy link
Member

Well yes, but I do not see anything that would actually require the _ALARM clock, we do not suspend the OS in the middle, so it may be better to just change to plain CLOCK_REALTIME.

@Cypresslin
Copy link
Contributor

For the record, we're seeing this failures on the following kernels as well (not fully tested on various releases yet):
Ubuntu Bionic 4.15 KVM kernel on KVM nodes (4.15.0-1072.73)
Ubuntu Xenial 4.4 kernel on P8 / s390x (4.4.0-189.219)

metan-ucw pushed a commit that referenced this issue Aug 19, 2020
CLOCK_REALTIME_ALARM requires an RTC with alarm support, which may not be
present on a system. In that case, the kernel will return EOPNOTSUPP, which
is defined as ENOTSUP in userspace.

Here use CLOCK_REALTIME instead of the CLOCK_REALTIME_ALARM because we do
NOT need suspend the SUT during test.

For issue #712:
  #712

Signed-off-by: Li Wang <liwang@redhat.com>
Cc: Viresh Kumar<viresh.kumar@linaro.org>
Cc: Cyril Hrubis <chrubis@suse.cz>
Cc: Jan Stancek <jstancek@redhat.com>
Tested-by: Li Wang <liwang@redhat.com>
Reviewed-by: Cyril Hrubis <chrubis@suse.cz>
@wangli5665
Copy link
Member

this has been solved in 21721a3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants