Re: powerpc/opal: Wake up kopald polling thread before waiting for events

2016-07-11 Thread Michael Ellerman
On Mon, 2016-04-07 at 04:51:44 UTC, Benjamin Herrenschmidt wrote: > On some environments (prototype machines, some simulators, etc...) > there is no functional interrupt source to signal completion, so > we rely on the fairly slow OPAL heartbeat. > > In a number of cases, the calls complete very

Re: [PATCH] powerpc/opal: Wake up kopald polling thread before waiting for events

2016-07-04 Thread Michael Neuling
On Mon, 2016-07-04 at 14:51 +1000, Benjamin Herrenschmidt wrote: > On some environments (prototype machines, some simulators, etc...) > there is no functional interrupt source to signal completion, so > we rely on the fairly slow OPAL heartbeat. > > In a number of cases, the calls complete very

Re: powerpc/opal: Wake up kopald polling thread before waiting for events

2016-07-04 Thread Benjamin Herrenschmidt
On Mon, 2016-07-04 at 16:11 +1000, Michael Ellerman wrote: > On Mon, 2016-04-07 at 04:51:44 UTC, Benjamin Herrenschmidt wrote: > > On some environments (prototype machines, some simulators, etc...) > > there is no functional interrupt source to signal completion, so > > we rely on the fairly slow

Re: powerpc/opal: Wake up kopald polling thread before waiting for events

2016-07-04 Thread Michael Ellerman
On Mon, 2016-04-07 at 04:51:44 UTC, Benjamin Herrenschmidt wrote: > On some environments (prototype machines, some simulators, etc...) > there is no functional interrupt source to signal completion, so > we rely on the fairly slow OPAL heartbeat. > > In a number of cases, the calls complete very

[PATCH] powerpc/opal: Wake up kopald polling thread before waiting for events

2016-07-03 Thread Benjamin Herrenschmidt
On some environments (prototype machines, some simulators, etc...) there is no functional interrupt source to signal completion, so we rely on the fairly slow OPAL heartbeat. In a number of cases, the calls complete very quickly or even immediately. We've observed that it helps a lot to wakeup