Re: [PATCH] x86: intel_epb: Add earlyparam option to keep bias at performance

From: Dave Hansen
Date: Tue Dec 05 2023 - 10:19:52 EST


On 12/5/23 04:12, Rafael J. Wysocki wrote:
>> And yes, we *particularly* care in the kexec case because guests experience it as excessive steal time. But it ain't great in the general case either, surely?
> So IMV it would be perfectly fine to add a command line arg to provide
> the initial value of energy_perf_bias for the ones who know what they
> are doing.

Let's say we're on a system where the default is "normal" and the user
actually decides they want "performance"? Is that rational? Should the
command-line be more general in specifying a desired performance level
instead of just flipping the hack on and off?

We could, for instance just support this pair:

intel_epb=auto (default, will hack performance=>normal)
intel_epb=preserve (leave it alone)

for now. That would give us the existing behavior and the override that
folks want for kexec. But it would also leave open the possibility to
do things like this in the future:

intel_epb=normal (always override to normal)
intel_epb=performance (always override to performance)