Re: [PATCH V8 1/3] powernv: powercap: Add support for powercap framework

From: Stewart Smith
Date: Fri Jul 28 2017 - 03:19:13 EST


Cyril Bur <cyrilbur@xxxxxxxxx> writes:
> This is more for MPE and Stewart:
> If there is some mutual exclusion that needs to happen, it should be
> done in skiboot. We've had problems in the past with double entering
> skiboot and hard to interpret errors ending up in userspace, this
> solves that but it seems more like a coverup than an actual solution.

Yeah, I'd like us to be in a position where we don't force mutual
exclusion on such things out to the OS.

The real issue this papers over is the async token stuff you're
reworking. There's that, plus for this specific thing, you *could* go
and set a differnt powercap 180 times concurrently and we should do the
right thing in skiboot... but then you're sitting in skiboot rather than
sitting in linux being able to go run some other task on the thread.

--
Stewart Smith
OPAL Architect, IBM.