Hi, > No, the special hack you just described above could keep the progress continue. But in fact it does not. If you pick sim:ostest config and enable priority inheritance it will end up with a system hang.
Best regards, Petro сб, 15 квіт. 2023 р. о 08:33 Xiang Xiao <xiaoxiang781...@gmail.com> пише: > On Sat, Apr 15, 2023 at 5:07 AM Petro Karashchenko < > petro.karashche...@gmail.com> wrote: > > > Hello team, > > > > I want to ask a question regarding running the ostest with priority > > inheritance on the sim target. The priority inheritance test uses a > special > > routine for "hog_cpu" on the sim target by calling "up_idle()". I > > understand that it is due to the simulator not having any mechanism to do > > asynchronous pre-emption and we simulate a "fake" timer interrupt by > > calling "up_idle()" (that is usually called in the idle task). The > question > > is that I can pass priority inheritance ostest only if > > "CONFIG_SIM_WALLTIME_SIGNAL=y" > > > Yes, but up_idle in hog_cpu would be removed safely since the host timer > signal is used to interrupt the busy loop. > > > > and ostest run hangs in case of > > "CONFIG_SIM_WALLTIME_SLEEP=y". > > > No, the special hack you just described above could keep the progress > continue. > > > > Maybe this is something known so please > > point me to a place where it is described. > > > > Best regards, > > Petro > > >