From: Joel Fernandes <joel@joelfernandes.org>
To: rcu@vger.kernel.org, paulmck@kernel.org, frederic@kernel.org
Cc: len.brown@intel.com
Subject: About dynamic switch to offload/nocb on non-server Intel machines
Date: Fri, 8 Jul 2022 17:19:32 +0000 [thread overview]
Message-ID: <YshnJLAmLtw90y2E@google.com> (raw)
Dear Paul and Frederic,
Len Brown on CC provided a good idea in a meeting on using intel_pstate to
detect if device is a server or a consumer device.
Can we perhaps use this to trigger the offload/nocb mechanisms on consumer
devices / distros? I was thinking the dynamic offload and the "one kernel"
work that Frederic did can be trigger from such detection.
It is true userspace can do the trigger, but maybe it is better to not leave
it to userspace so we'd save power on bad userspaces.
Come to think of it, this can even be done at boot time if we can read the
below state early enough:
> intel_pstate.c demonstrates how to detect a server when ACPI is present:
>
>
>
> #ifdef CONFIG_ACPI
>
>
>
> static bool intel_pstate_acpi_pm_profile_server(void)
>
> {
>
> if (acpi_gbl_FADT.preferred_profile =3D=3D PM_ENTERPRISE_SERVER |=
|
>
> acpi_gbl_FADT.preferred_profile =3D=3D PM_PERFORMANCE_SERVER)
>
> return true;
>
>
>
> return false;
>
> }
>
next reply other threads:[~2022-07-08 17:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-08 17:19 Joel Fernandes [this message]
[not found] ` <CAFzL-7uaWeS6_UR_OYzfkBb34pbLVOeyr3mwWozonqd_ViyV0Q@mail.gmail.com>
2022-07-08 17:40 ` About dynamic switch to offload/nocb on non-server Intel machines Alison Chaiken
2022-07-08 18:16 ` Joel Fernandes
2022-07-08 18:29 ` Paul E. McKenney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YshnJLAmLtw90y2E@google.com \
--to=joel@joelfernandes.org \
--cc=frederic@kernel.org \
--cc=len.brown@intel.com \
--cc=paulmck@kernel.org \
--cc=rcu@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.