<superprower>
Greetings! I'm trying to debug one issue on A64-based board - I am unable to use CLOCK_REALTIME_ALARM clockid as an argument for clock_gettime syscall (return value is -1, EINVAL). There was a guess that it may be due to missing hardware RTC, but it is present, configured in device tree and I am able to see /dev/rtc0 device and there is valid /proc/driver/rtc entry and there is entry is /sys. Where should I look? I tried adding some printk's to
<superprower>
SYSCALL_DEFINE at kernel/time/posix-timers.c, but it doesn't print in dmesg. How should I debug this? Thanks in advance.
TheSeven has quit [Ping timeout: 264 seconds]
<superprower>
Kernel version 5.1-rc7, by the way. I've read some mailing lists, but they mostly discussed return value, not the condition that enabled this clockid.
TheSeven has joined #linux-sunxi
RichardG867 has quit [Read error: Connection reset by peer]
RichardG867 has joined #linux-sunxi
RichardG867 has joined #linux-sunxi
RichardG867 has quit [Changing host]
TheSeven has quit [Ping timeout: 252 seconds]
TheSeven has joined #linux-sunxi
jaganteki has quit [Remote host closed the connection]
pmpp has joined #linux-sunxi
pmp-p has quit [Ping timeout: 245 seconds]
msevo has joined #linux-sunxi
selfbg has joined #linux-sunxi
Perlovka has joined #linux-sunxi
matthias_bgg has joined #linux-sunxi
kaspter has quit [Remote host closed the connection]
AneoX has joined #linux-sunxi
kaspter has joined #linux-sunxi
ldevulder has joined #linux-sunxi
kaspter has quit [Quit: kaspter]
kaspter has joined #linux-sunxi
<superprower>
Maybe anyone can point me to the place where clock_gettime is implemented for aarch64? There is a arch/arm64/kernel/vdso/gettimeofday.S that has a jumptable, and if I understand correctly for CLOCK_REALTIME_ALARM it fallback's to __NR_clock_gettime which is supposedly made into __arm64_sys_clock_gettime by the macro, but that's the end of the trail for me, I can only grep this in System.map and object files. Don't know what exactly is executed.
gaston_ has joined #linux-sunxi
Gerwin_J has joined #linux-sunxi
rodicio_ has joined #linux-sunxi
rodicio has quit [Ping timeout: 244 seconds]
karlp has joined #linux-sunxi
Mangy_Dog has joined #linux-sunxi
tnovotny has joined #linux-sunxi
jstefanop has joined #linux-sunxi
jstefanop has quit [Ping timeout: 244 seconds]
CC0422 has joined #linux-sunxi
quark__ has quit [Ping timeout: 264 seconds]
suprothunderbolt has quit [Ping timeout: 272 seconds]
megi has joined #linux-sunxi
<MoeIcenowy>
superprower: I referred to man page
<MoeIcenowy>
does your process have the necessary capability
gnarface has quit [Ping timeout: 258 seconds]
gnarface has joined #linux-sunxi
jaganteki has joined #linux-sunxi
<superprower>
MoeIcenowy: I'll double check that, but I just checked on another aarch64 device with 'getcap' and binary that makes that sytem call doesn't have any capabilities whatsoever, yet it works.
gnarface has quit [Read error: Connection reset by peer]
gnarface has joined #linux-sunxi
CC0422 has quit [Quit: -a- IRC for Android 2.1.52]
afaerber has quit [Quit: Leaving]
<z3ntu>
jaganteki: did you try dsi on the A64 yet with an 5.2-rc kernel?
<jaganteki>
zentu: yes I have rebased.
<jaganteki>
what is the issue?
lurchi_ is now known as lurchi__
yann has quit [Ping timeout: 272 seconds]
cnxsoft has quit [Quit: cnxsoft]
tnovotny has quit [Quit: Leaving]
tnovotny has joined #linux-sunxi
popolon has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
yann has joined #linux-sunxi
afaerber has joined #linux-sunxi
lmcloughlin has joined #linux-sunxi
quark_ has joined #linux-sunxi
ldevulder has quit [Quit: Leaving]
dddddd has joined #linux-sunxi
<z3ntu>
jaganteki: The "display blinking" thing I wrote about yesterday
selfbg has quit [Remote host closed the connection]
Putti has quit [Remote host closed the connection]