Re: [PATCH] tee: optee: replace might_sleep with cond_resched

2021-01-04 Thread Jens Wiklander
On Tue, Jan 5, 2021 at 6:42 AM Sumit Garg wrote: > > On Fri, 25 Sept 2020 at 12:29, Jens Wiklander via OP-TEE > wrote: > > > > On Fri, Sep 18, 2020 at 7:45 PM Rouven Czerwinski > > wrote: > > > > > > On Kernels with CONFIG_PREEMPT_NONE might_sleep() is not enough to force > > > rescheduling,

Re: [PATCH] tee: optee: replace might_sleep with cond_resched

2021-01-04 Thread Sumit Garg
On Fri, 25 Sept 2020 at 12:29, Jens Wiklander via OP-TEE wrote: > > On Fri, Sep 18, 2020 at 7:45 PM Rouven Czerwinski > wrote: > > > > On Kernels with CONFIG_PREEMPT_NONE might_sleep() is not enough to force > > rescheduling, replace it with a resched check and cond_resched. Fixes > > the

Re: [PATCH] tee: optee: replace might_sleep with cond_resched

2020-10-02 Thread Lucas Stach
On Fr, 2020-09-25 at 08:59 +0200, Jens Wiklander wrote: > On Fri, Sep 18, 2020 at 7:45 PM Rouven Czerwinski > wrote: > > On Kernels with CONFIG_PREEMPT_NONE might_sleep() is not enough to force > > rescheduling, replace it with a resched check and cond_resched. Fixes > > the following stall: > >

Re: [PATCH] tee: optee: replace might_sleep with cond_resched

2020-09-25 Thread Jens Wiklander
On Fri, Sep 18, 2020 at 7:45 PM Rouven Czerwinski wrote: > > On Kernels with CONFIG_PREEMPT_NONE might_sleep() is not enough to force > rescheduling, replace it with a resched check and cond_resched. Fixes > the following stall: > > [ 572.945146] rcu: INFO: rcu_sched self-detected stall on CPU

[PATCH] tee: optee: replace might_sleep with cond_resched

2020-09-18 Thread Rouven Czerwinski
On Kernels with CONFIG_PREEMPT_NONE might_sleep() is not enough to force rescheduling, replace it with a resched check and cond_resched. Fixes the following stall: [ 572.945146] rcu: INFO: rcu_sched self-detected stall on CPU [ 572.949275] rcu: 0-: (2099 ticks this GP)