summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/signal/current_stack_pointer.h
diff options
context:
space:
mode:
authorJoseph Jang <jjang@nvidia.com>2024-10-21 06:22:13 +0300
committerShuah Khan <skhan@linuxfoundation.org>2024-10-23 23:13:00 +0300
commit2a027d6bb66002c8e50e974676f932b33c5fce10 (patch)
tree414a8856e6110c780efe51efca951455dd3297c4 /tools/testing/selftests/signal/current_stack_pointer.h
parentecfe6870abac400036d802e28dde4822ec153ffd (diff)
downloadlinux-2a027d6bb66002c8e50e974676f932b33c5fce10.tar.xz
selftest: rtc: Add to check rtc alarm status for alarm related test
In alarm_wkalm_set and alarm_wkalm_set_minute test, they use different ioctl (RTC_ALM_SET/RTC_WKALM_SET) for alarm feature detection. They will skip testing if RTC_ALM_SET/RTC_WKALM_SET ioctl returns an EINVAL error code. This design may miss detecting real problems when the efi.set_wakeup_time() return errors and then RTC_ALM_SET/RTC_WKALM_SET ioctl returns an EINVAL error code with RTC_FEATURE_ALARM enabled. In order to make rtctest more explicit and robust, we propose to use RTC_PARAM_GET ioctl interface to check rtc alarm feature state before running alarm related tests. If the kernel does not support RTC_PARAM_GET ioctl interface, we will fallback to check the error number of (RTC_ALM_SET/RTC_WKALM_SET) ioctl call for alarm feature detection. Requires commit 101ca8d05913b ("rtc: efi: Enable SET/GET WAKEUP services as optional") Reviewed-by: Koba Ko <kobak@nvidia.com> Reviewed-by: Matthew R. Ochs <mochs@nvidia.com> Signed-off-by: Joseph Jang <jjang@nvidia.com> Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/signal/current_stack_pointer.h')
0 files changed, 0 insertions, 0 deletions