[Skiboot] Qestions about skiboot timer

yanqin.zhang at shingroup.cn yanqin.zhang at shingroup.cn
Mon Aug 7 19:09:42 AEST 2023


 

Hi skiboot experts, 

 

Here are some questions on skiboot timer module, please help to answer:

 

1.     On skiboot boot phase, OS not setup, so there is no OPAL_POLL_EVENTS
or hardware interrupt that can trigger check_timer().

How can we trigger check_timer() in this phase? APPs like PCIe/I2C can only
actively call check_timer() to trigger?

 

2.     Some events can be added in opal poller list, some can be added in
timer(TIMER_POLL),

They can all be executed in OPAL_POLL_EVENTS ¨C> opal_run_pollers(), Is
there some criterion to add which one?

 

3.     timer(TIMER_POLL) has overhead lock in __check_poll_timers, but there
is no lock in opal poller process. 

Besides, __check_poll_timers remove the timer that processed, so
timer(TIMER_POLL) Is a one-time timer, not like opal poller which is period
timer.

It seem opal poller is more advantage than timer(TIMER_POLL)?

 

   

 

Best Regards

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/skiboot/attachments/20230807/f9152b5d/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 23574 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/skiboot/attachments/20230807/f9152b5d/attachment-0001.jpg>


More information about the Skiboot mailing list