sphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget//translations/zh_CN/admin-guide/pm/intel_pstatemodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget//translations/zh_TW/admin-guide/pm/intel_pstatemodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget//translations/it_IT/admin-guide/pm/intel_pstatemodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget//translations/ja_JP/admin-guide/pm/intel_pstatemodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget//translations/ko_KR/admin-guide/pm/intel_pstatemodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget//translations/sp_SP/admin-guide/pm/intel_pstatemodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhcomment)}(h SPDX-License-Identifier: GPL-2.0h]h SPDX-License-Identifier: GPL-2.0}hhsbah}(h]h ]h"]h$]h&] xml:spacepreserveuh1hhhhhhI/var/lib/git/docbuild/linux/Documentation/admin-guide/pm/intel_pstate.rsthKubh)}(h4This data file has been placed in the public domain.h]h4This data file has been placed in the public domain.}hhsbah}(h]h ]h"]h$]h&]hhuh1hhhhhho/srv/docbuild/lib/venvs/build-kernel-docs/lib64/python3.9/site-packages/docutils/parsers/rst/include/isonum.txthKubh)}(hDerived from the Unicode character mappings available from . Processed by unicode2rstsubs.py, part of Docutils: .h]hDerived from the Unicode character mappings available from . Processed by unicode2rstsubs.py, part of Docutils: .}hhsbah}(h]h ]h"]h$]h&]hhuh1hhhhhhhhKubhsubstitution_definition)}(h*.. |amp| unicode:: U+00026 .. AMPERSANDh]h&}hhsbah}(h]h ]h"]ampah$]h&]uh1hhhhKhhhhubh)}(h+.. |apos| unicode:: U+00027 .. APOSTROPHEh]h'}hhsbah}(h]h ]h"]aposah$]h&]uh1hhhhKhhhhubh)}(h).. |ast| unicode:: U+0002A .. ASTERISKh]h*}hhsbah}(h]h ]h"]astah$]h&]uh1hhhhK hhhhubh)}(h+.. |brvbar| unicode:: U+000A6 .. BROKEN BARh]h¦}hjsbah}(h]h ]h"]brvbarah$]h&]uh1hhhhK hhhhubh)}(h0.. |bsol| unicode:: U+0005C .. REVERSE SOLIDUSh]h\}hjsbah}(h]h ]h"]bsolah$]h&]uh1hhhhK hhhhubh)}(h*.. |cent| unicode:: U+000A2 .. CENT SIGNh]h¢}hjsbah}(h]h ]h"]centah$]h&]uh1hhhhK hhhhubh)}(h&.. |colon| unicode:: U+0003A .. COLONh]h:}hj-sbah}(h]h ]h"]colonah$]h&]uh1hhhhK hhhhubh)}(h&.. |comma| unicode:: U+0002C .. COMMAh]h,}hj<sbah}(h]h ]h"]commaah$]h&]uh1hhhhKhhhhubh)}(h... |commat| unicode:: U+00040 .. COMMERCIAL ATh]h@}hjKsbah}(h]h ]h"]commatah$]h&]uh1hhhhKhhhhubh)}(h/.. |copy| unicode:: U+000A9 .. COPYRIGHT SIGNh]h©}hjZsbah}(h]h ]h"]copyah$]h&]uh1hhhhKhhhhubh)}(h... |curren| unicode:: U+000A4 .. CURRENCY SIGNh]h¤}hjisbah}(h]h ]h"]currenah$]h&]uh1hhhhKhhhhubh)}(h0.. |darr| unicode:: U+02193 .. DOWNWARDS ARROWh]h↓}hjxsbah}(h]h ]h"]darrah$]h&]uh1hhhhKhhhhubh)}(h,.. |deg| unicode:: U+000B0 .. DEGREE SIGNh]h°}hjsbah}(h]h ]h"]degah$]h&]uh1hhhhKhhhhubh)}(h... |divide| unicode:: U+000F7 .. DIVISION SIGNh]h÷}hjsbah}(h]h ]h"]divideah$]h&]uh1hhhhKhhhhubh)}(h,.. |dollar| unicode:: U+00024 .. DOLLAR SIGNh]h$}hjsbah}(h]h ]h"]dollarah$]h&]uh1hhhhKhhhhubh)}(h,.. |equals| unicode:: U+0003D .. EQUALS SIGNh]h=}hjsbah}(h]h ]h"]equalsah$]h&]uh1hhhhKhhhhubh)}(h1.. |excl| unicode:: U+00021 .. EXCLAMATION MARKh]h!}hjsbah}(h]h ]h"]exclah$]h&]uh1hhhhKhhhhubh)}(h9.. |frac12| unicode:: U+000BD .. VULGAR FRACTION ONE HALFh]h½}hjsbah}(h]h ]h"]frac12ah$]h&]uh1hhhhKhhhhubh)}(h<.. |frac14| unicode:: U+000BC .. VULGAR FRACTION ONE QUARTERh]h¼}hjsbah}(h]h ]h"]frac14ah$]h&]uh1hhhhKhhhhubh)}(h;.. |frac18| unicode:: U+0215B .. VULGAR FRACTION ONE EIGHTHh]h⅛}hjsbah}(h]h ]h"]frac18ah$]h&]uh1hhhhKhhhhubh)}(h?.. |frac34| unicode:: U+000BE .. VULGAR FRACTION THREE QUARTERSh]h¾}hjsbah}(h]h ]h"]frac34ah$]h&]uh1hhhhKhhhhubh)}(h>.. |frac38| unicode:: U+0215C .. VULGAR FRACTION THREE EIGHTHSh]h⅜}hjsbah}(h]h ]h"]frac38ah$]h&]uh1hhhhKhhhhubh)}(h=.. |frac58| unicode:: U+0215D .. VULGAR FRACTION FIVE EIGHTHSh]h⅝}hjsbah}(h]h ]h"]frac58ah$]h&]uh1hhhhKhhhhubh)}(h>.. |frac78| unicode:: U+0215E .. VULGAR FRACTION SEVEN EIGHTHSh]h⅞}hj,sbah}(h]h ]h"]frac78ah$]h&]uh1hhhhKhhhhubh)}(h2.. |gt| unicode:: U+0003E .. GREATER-THAN SIGNh]h>}hj;sbah}(h]h ]h"]gtah$]h&]uh1hhhhKhhhhubh)}(h9.. |half| unicode:: U+000BD .. VULGAR FRACTION ONE HALFh]h½}hjJsbah}(h]h ]h"]halfah$]h&]uh1hhhhK hhhhubh)}(h/.. |horbar| unicode:: U+02015 .. HORIZONTAL BARh]h―}hjYsbah}(h]h ]h"]horbarah$]h&]uh1hhhhK!hhhhubh)}(h'.. |hyphen| unicode:: U+02010 .. HYPHENh]h‐}hjhsbah}(h]h ]h"]hyphenah$]h&]uh1hhhhK"hhhhubh)}(h:.. |iexcl| unicode:: U+000A1 .. INVERTED EXCLAMATION MARKh]h¡}hjwsbah}(h]h ]h"]iexclah$]h&]uh1hhhhK#hhhhubh)}(h7.. |iquest| unicode:: U+000BF .. INVERTED QUESTION MARKh]h¿}hjsbah}(h]h ]h"]iquestah$]h&]uh1hhhhK$hhhhubh)}(hJ.. |laquo| unicode:: U+000AB .. LEFT-POINTING DOUBLE ANGLE QUOTATION MARKh]h«}hjsbah}(h]h ]h"]laquoah$]h&]uh1hhhhK%hhhhubh)}(h0.. |larr| unicode:: U+02190 .. LEFTWARDS ARROWh]h←}hjsbah}(h]h ]h"]larrah$]h&]uh1hhhhK&hhhhubh)}(h3.. |lcub| unicode:: U+0007B .. LEFT CURLY BRACKETh]h{}hjsbah}(h]h ]h"]lcubah$]h&]uh1hhhhK'hhhhubh)}(h;.. |ldquo| unicode:: U+0201C .. LEFT DOUBLE QUOTATION MARKh]h“}hjsbah}(h]h ]h"]ldquoah$]h&]uh1hhhhK(hhhhubh)}(h).. |lowbar| unicode:: U+0005F .. LOW LINEh]h_}hjsbah}(h]h ]h"]lowbarah$]h&]uh1hhhhK)hhhhubh)}(h1.. |lpar| unicode:: U+00028 .. LEFT PARENTHESISh]h(}hjsbah}(h]h ]h"]lparah$]h&]uh1hhhhK*hhhhubh)}(h4.. |lsqb| unicode:: U+0005B .. LEFT SQUARE BRACKETh]h[}hjsbah}(h]h ]h"]lsqbah$]h&]uh1hhhhK+hhhhubh)}(h;.. |lsquo| unicode:: U+02018 .. LEFT SINGLE QUOTATION MARKh]h‘}hjsbah}(h]h ]h"]lsquoah$]h&]uh1hhhhK,hhhhubh)}(h/.. |lt| unicode:: U+0003C .. LESS-THAN SIGNh]h<}hj sbah}(h]h ]h"]ltah$]h&]uh1hhhhK-hhhhubh)}(h+.. |micro| unicode:: U+000B5 .. MICRO SIGNh]hµ}hjsbah}(h]h ]h"]microah$]h&]uh1hhhhK.hhhhubh)}(h+.. |middot| unicode:: U+000B7 .. MIDDLE DOTh]h·}hj+sbah}(h]h ]h"]middotah$]h&]uh1hhhhK/hhhhubh)}(h/.. |nbsp| unicode:: U+000A0 .. NO-BREAK SPACEh]h }hj:sbah}(h]h ]h"]nbspah$]h&]uh1hhhhK0hhhhubh)}(h).. |not| unicode:: U+000AC .. NOT SIGNh]h¬}hjIsbah}(h]h ]h"]notah$]h&]uh1hhhhK1hhhhubh)}(h,.. |num| unicode:: U+00023 .. NUMBER SIGNh]h#}hjXsbah}(h]h ]h"]numah$]h&]uh1hhhhK2hhhhubh)}(h).. |ohm| unicode:: U+02126 .. OHM SIGNh]hΩ}hjgsbah}(h]h ]h"]ohmah$]h&]uh1hhhhK3hhhhubh)}(h;.. |ordf| unicode:: U+000AA .. FEMININE ORDINAL INDICATORh]hª}hjvsbah}(h]h ]h"]ordfah$]h&]uh1hhhhK4hhhhubh)}(h<.. |ordm| unicode:: U+000BA .. MASCULINE ORDINAL INDICATORh]hº}hjsbah}(h]h ]h"]ordmah$]h&]uh1hhhhK5hhhhubh)}(h-.. |para| unicode:: U+000B6 .. PILCROW SIGNh]h¶}hjsbah}(h]h ]h"]paraah$]h&]uh1hhhhK6hhhhubh)}(h-.. |percnt| unicode:: U+00025 .. PERCENT SIGNh]h%}hjsbah}(h]h ]h"]percntah$]h&]uh1hhhhK7hhhhubh)}(h*.. |period| unicode:: U+0002E .. FULL STOPh]h.}hjsbah}(h]h ]h"]periodah$]h&]uh1hhhhK8hhhhubh)}(h*.. |plus| unicode:: U+0002B .. PLUS SIGNh]h+}hjsbah}(h]h ]h"]plusah$]h&]uh1hhhhK9hhhhubh)}(h0.. |plusmn| unicode:: U+000B1 .. PLUS-MINUS SIGNh]h±}hjsbah}(h]h ]h"]plusmnah$]h&]uh1hhhhK:hhhhubh)}(h+.. |pound| unicode:: U+000A3 .. POUND SIGNh]h£}hjsbah}(h]h ]h"]poundah$]h&]uh1hhhhK;hhhhubh)}(h... |quest| unicode:: U+0003F .. QUESTION MARKh]h?}hjsbah}(h]h ]h"]questah$]h&]uh1hhhhKhhhhubh)}(h1.. |rarr| unicode:: U+02192 .. RIGHTWARDS ARROWh]h→}hjsbah}(h]h ]h"]rarrah$]h&]uh1hhhhK?hhhhubh)}(h4.. |rcub| unicode:: U+0007D .. RIGHT CURLY BRACKETh]h}}hj*sbah}(h]h ]h"]rcubah$]h&]uh1hhhhK@hhhhubh)}(h<.. |rdquo| unicode:: U+0201D .. RIGHT DOUBLE QUOTATION MARKh]h”}hj9sbah}(h]h ]h"]rdquoah$]h&]uh1hhhhKAhhhhubh)}(h0.. |reg| unicode:: U+000AE .. REGISTERED SIGNh]h®}hjHsbah}(h]h ]h"]regah$]h&]uh1hhhhKBhhhhubh)}(h2.. |rpar| unicode:: U+00029 .. RIGHT PARENTHESISh]h)}hjWsbah}(h]h ]h"]rparah$]h&]uh1hhhhKChhhhubh)}(h5.. |rsqb| unicode:: U+0005D .. RIGHT SQUARE BRACKETh]h]}hjfsbah}(h]h ]h"]rsqbah$]h&]uh1hhhhKDhhhhubh)}(h<.. |rsquo| unicode:: U+02019 .. RIGHT SINGLE QUOTATION MARKh]h’}hjusbah}(h]h ]h"]rsquoah$]h&]uh1hhhhKEhhhhubh)}(h-.. |sect| unicode:: U+000A7 .. SECTION SIGNh]h§}hjsbah}(h]h ]h"]sectah$]h&]uh1hhhhKFhhhhubh)}(h*.. |semi| unicode:: U+0003B .. SEMICOLONh]h;}hjsbah}(h]h ]h"]semiah$]h&]uh1hhhhKGhhhhubh)}(h,.. |shy| unicode:: U+000AD .. SOFT HYPHENh]h­}hjsbah}(h]h ]h"]shyah$]h&]uh1hhhhKHhhhhubh)}(h(.. |sol| unicode:: U+0002F .. SOLIDUSh]h/}hjsbah}(h]h ]h"]solah$]h&]uh1hhhhKIhhhhubh)}(h,.. |sung| unicode:: U+0266A .. EIGHTH NOTEh]h♪}hjsbah}(h]h ]h"]sungah$]h&]uh1hhhhKJhhhhubh)}(h0.. |sup1| unicode:: U+000B9 .. SUPERSCRIPT ONEh]h¹}hjsbah}(h]h ]h"]sup1ah$]h&]uh1hhhhKKhhhhubh)}(h0.. |sup2| unicode:: U+000B2 .. SUPERSCRIPT TWOh]h²}hjsbah}(h]h ]h"]sup2ah$]h&]uh1hhhhKLhhhhubh)}(h2.. |sup3| unicode:: U+000B3 .. SUPERSCRIPT THREEh]h³}hjsbah}(h]h ]h"]sup3ah$]h&]uh1hhhhKMhhhhubh)}(h4.. |times| unicode:: U+000D7 .. MULTIPLICATION SIGNh]h×}hjsbah}(h]h ]h"]timesah$]h&]uh1hhhhKNhhhhubh)}(h0.. |trade| unicode:: U+02122 .. TRADE MARK SIGNh]h™}hj sbah}(h]h ]h"]tradeah$]h&]uh1hhhhKOhhhhubh)}(h... |uarr| unicode:: U+02191 .. UPWARDS ARROWh]h↑}hjsbah}(h]h ]h"]uarrah$]h&]uh1hhhhKPhhhhubh)}(h... |verbar| unicode:: U+0007C .. VERTICAL LINEh]h|}hj)sbah}(h]h ]h"]verbarah$]h&]uh1hhhhKQhhhhubh)}(h*.. |yen| unicode:: U+000A5 .. YEN SIGN h]h¥}hj8sbah}(h]h ]h"]yenah$]h&]uh1hhhhKRhhhhubhsection)}(hhh](htitle)}(h/``intel_pstate`` CPU Performance Scaling Driverh](hliteral)}(h``intel_pstate``h]h intel_pstate}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjNubh CPU Performance Scaling Driver}(hjNhhhNhNubeh}(h]h ]h"]h$]h&]uh1jLhjIhhhhhKubh field_list)}(hhh](hfield)}(hhh](h field_name)}(h Copyrighth]h Copyright}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jvhjshhhKubh field_body)}(h|copy| 2017 Intel Corporation h]h paragraph)}(h|copy| 2017 Intel Corporationh](h©}(hjhhhNhNubh 2017 Intel Corporation}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jqhhhKhjnhhubjr)}(hhh](jw)}(hAuthorh]hAuthor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jvhjhhhKubj)}(h0Rafael J. Wysocki h]j)}(h.Rafael J. Wysocki h](hRafael J. Wysocki <}(hjhhhNhNubh reference)}(hrafael.j.wysocki@intel.comh]hrafael.j.wysocki@intel.com}(hjhhhNhNubah}(h]h ]h"]h$]h&]refuri!mailto:rafael.j.wysocki@intel.comuh1jhjubh>}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhK hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jqhhhK hjnhhubeh}(h]h ]h"]h$]h&]uh1jlhjIhhhhhKubjH)}(hhh](jM)}(hGeneral Informationh]hGeneral Information}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhhhhhKubj)}(hX``intel_pstate`` is a part of the :doc:`CPU performance scaling subsystem ` in the Linux kernel (``CPUFreq``). It is a scaling driver for the Sandy Bridge and later generations of Intel processors. Note, however, that some of those processors may not be supported. [To understand ``intel_pstate`` it is necessary to know how ``CPUFreq`` works in general, so this is the time to read Documentation/admin-guide/pm/cpufreq.rst if you have not done that yet.]h](jS)}(h``intel_pstate``h]h intel_pstate}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh is a part of the }(hjhhhNhNubh)}(h2:doc:`CPU performance scaling subsystem `h]hinline)}(hj h]h!CPU performance scaling subsystem}(hj$hhhNhNubah}(h]h ](xrefstdstd-doceh"]h$]h&]uh1j"hjubah}(h]h ]h"]h$]h&]refdocadmin-guide/pm/intel_pstate refdomainj/reftypedoc refexplicitrefwarn reftargetcpufrequh1hhhhKhjubh in the Linux kernel (}(hjhhhNhNubjS)}(h ``CPUFreq``h]hCPUFreq}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh). It is a scaling driver for the Sandy Bridge and later generations of Intel processors. Note, however, that some of those processors may not be supported. [To understand }(hjhhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh it is necessary to know how }(hjhhhNhNubjS)}(h ``CPUFreq``h]hCPUFreq}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubhw works in general, so this is the time to read Documentation/admin-guide/pm/cpufreq.rst if you have not done that yet.]}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhKhjhhubj)}(hXFor the processors supported by ``intel_pstate``, the P-state concept is broader than just an operating frequency or an operating performance point (see the LinuxCon Europe 2015 presentation by Kristen Accardi [1]_ for more information about that). For this reason, the representation of P-states used by ``intel_pstate`` internally follows the hardware specification (for details refer to Intel Software Developer’s Manual [2]_). However, the ``CPUFreq`` core uses frequencies for identifying operating performance points of CPUs and frequencies are involved in the user space interface exposed by it, so ``intel_pstate`` maps its internal representation of P-states to frequencies too (fortunately, that mapping is unambiguous). At the same time, it would not be practical for ``intel_pstate`` to supply the ``CPUFreq`` core with a table of available frequencies due to the possible size of it, so the driver does not do that. Some functionality of the core is limited by that.h](h For the processors supported by }(hjhhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh, the P-state concept is broader than just an operating frequency or an operating performance point (see the LinuxCon Europe 2015 presentation by Kristen Accardi }(hjhhhNhNubhfootnote_reference)}(h[1]_h]h1}(hjhhhNhNubah}(h]id1ah ]h"]h$]h&]refidid8docnamej;uh1jhjresolvedKubh\ for more information about that). For this reason, the representation of P-states used by }(hjhhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubhi internally follows the hardware specification (for details refer to Intel Software Developer’s Manual }(hjhhhNhNubj)}(h[2]_h]h2}(hjhhhNhNubah}(h]id2ah ]h"]h$]h&]jid9jj;uh1jhjjKubh). However, the }(hjhhhNhNubjS)}(h ``CPUFreq``h]hCPUFreq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh core uses frequencies for identifying operating performance points of CPUs and frequencies are involved in the user space interface exposed by it, so }(hjhhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh maps its internal representation of P-states to frequencies too (fortunately, that mapping is unambiguous). At the same time, it would not be practical for }(hjhhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh to supply the }(hjhhhNhNubjS)}(h ``CPUFreq``h]hCPUFreq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh core with a table of available frequencies due to the possible size of it, so the driver does not do that. Some functionality of the core is limited by that.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhKhjhhubj)}(hXSince the hardware P-state selection interface used by ``intel_pstate`` is available at the logical CPU level, the driver always works with individual CPUs. Consequently, if ``intel_pstate`` is in use, every ``CPUFreq`` policy object corresponds to one logical CPU and ``CPUFreq`` policies are effectively equivalent to CPUs. In particular, this means that they become "inactive" every time the corresponding CPU is taken offline and need to be re-initialized when it goes back online.h](h7Since the hardware P-state selection interface used by }(hj*hhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj*ubhh is available at the logical CPU level, the driver always works with individual CPUs. Consequently, if }(hj*hhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj*ubh is in use, every }(hj*hhhNhNubjS)}(h ``CPUFreq``h]hCPUFreq}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj*ubh2 policy object corresponds to one logical CPU and }(hj*hhhNhNubjS)}(h ``CPUFreq``h]hCPUFreq}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj*ubh policies are effectively equivalent to CPUs. In particular, this means that they become “inactive” every time the corresponding CPU is taken offline and need to be re-initialized when it goes back online.}(hj*hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhK&hjhhubj)}(hX``intel_pstate`` is not modular, so it cannot be unloaded, which means that the only way to pass early-configuration-time parameters to it is via the kernel command line. However, its configuration can be adjusted via ``sysfs`` to a great extent. In some configurations it even is possible to unregister it via ``sysfs`` which allows another ``CPUFreq`` scaling driver to be loaded and registered (see :ref:`below `).h](jS)}(h``intel_pstate``h]h intel_pstate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh is not modular, so it cannot be unloaded, which means that the only way to pass early-configuration-time parameters to it is via the kernel command line. However, its configuration can be adjusted via }(hjhhhNhNubjS)}(h ``sysfs``h]hsysfs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubhU to a great extent. In some configurations it even is possible to unregister it via }(hjhhhNhNubjS)}(h ``sysfs``h]hsysfs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh which allows another }(hjhhhNhNubjS)}(h ``CPUFreq``h]hCPUFreq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh1 scaling driver to be loaded and registered (see }(hjhhhNhNubh)}(h:ref:`below `h]j#)}(hjh]hbelow}(hjhhhNhNubah}(h]h ](j.stdstd-refeh"]h$]h&]uh1j"hjubah}(h]h ]h"]h$]h&]refdocj; refdomainjreftyperef refexplicitrefwarnjA status_attruh1hhhhK.hjubh).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhK.hjhhubhtarget)}(h.. _operation_modes:h]h}(h]h ]h"]h$]h&]joperation-modesuh1jhKhjhhhhubeh}(h]general-informationah ]h"]general informationah$]h&]uh1jGhjIhhhhhKubjH)}(hhh](jM)}(hOperation Modesh]hOperation Modes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hhhhhK8ubj)}(hX``intel_pstate`` can operate in two different modes, active or passive. In the active mode, it uses its own internal performance scaling governor algorithm or allows the hardware to do performance scaling by itself, while in the passive mode it responds to requests made by a generic ``CPUFreq`` governor implementing a certain performance scaling algorithm. Which of them will be in effect depends on what kernel command line options are used and on the capabilities of the processor.h](jS)}(h``intel_pstate``h]h intel_pstate}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubhX  can operate in two different modes, active or passive. In the active mode, it uses its own internal performance scaling governor algorithm or allows the hardware to do performance scaling by itself, while in the passive mode it responds to requests made by a generic }(hjhhhNhNubjS)}(h ``CPUFreq``h]hCPUFreq}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh governor implementing a certain performance scaling algorithm. Which of them will be in effect depends on what kernel command line options are used and on the capabilities of the processor.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhK:hj hhubj)}(h.. _active_mode:h]h}(h]h ]h"]h$]h&]j active-modeuh1jhKhj hhhhubjH)}(hhh](jM)}(h Active Modeh]h Active Mode}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjUhhhhhKEubj)}(hXThis is the default operation mode of ``intel_pstate`` for processors with hardware-managed P-states (HWP) support. If it works in this mode, the ``scaling_driver`` policy attribute in ``sysfs`` for all ``CPUFreq`` policies contains the string "intel_pstate".h](h&This is the default operation mode of }(hjfhhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjfubh] for processors with hardware-managed P-states (HWP) support. If it works in this mode, the }(hjfhhhNhNubjS)}(h``scaling_driver``h]hscaling_driver}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjfubh policy attribute in }(hjfhhhNhNubjS)}(h ``sysfs``h]hsysfs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjfubh for all }(hjfhhhNhNubjS)}(h ``CPUFreq``h]hCPUFreq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjfubh1 policies contains the string “intel_pstate”.}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhKGhjUhhubj)}(hXIn this mode the driver bypasses the scaling governors layer of ``CPUFreq`` and provides its own scaling algorithms for P-state selection. Those algorithms can be applied to ``CPUFreq`` policies in the same way as generic scaling governors (that is, through the ``scaling_governor`` policy attribute in ``sysfs``). [Note that different P-state selection algorithms may be chosen for different policies, but that is not recommended.]h](h@In this mode the driver bypasses the scaling governors layer of }(hjhhhNhNubjS)}(h ``CPUFreq``h]hCPUFreq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubhd and provides its own scaling algorithms for P-state selection. Those algorithms can be applied to }(hjhhhNhNubjS)}(h ``CPUFreq``h]hCPUFreq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubhM policies in the same way as generic scaling governors (that is, through the }(hjhhhNhNubjS)}(h``scaling_governor``h]hscaling_governor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh policy attribute in }(hjhhhNhNubjS)}(h ``sysfs``h]hsysfs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubhy). [Note that different P-state selection algorithms may be chosen for different policies, but that is not recommended.]}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhKLhjUhhubj)}(hXThey are not generic scaling governors, but their names are the same as the names of some of those governors. Moreover, confusingly enough, they generally do not work in the same way as the generic governors they share the names with. For example, the ``powersave`` P-state selection algorithm provided by ``intel_pstate`` is not a counterpart of the generic ``powersave`` governor (roughly, it corresponds to the ``schedutil`` and ``ondemand`` governors).h](hThey are not generic scaling governors, but their names are the same as the names of some of those governors. Moreover, confusingly enough, they generally do not work in the same way as the generic governors they share the names with. For example, the }(hj hhhNhNubjS)}(h ``powersave``h]h powersave}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubh) P-state selection algorithm provided by }(hj hhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hj, hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubh% is not a counterpart of the generic }(hj hhhNhNubjS)}(h ``powersave``h]h powersave}(hj> hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubh* governor (roughly, it corresponds to the }(hj hhhNhNubjS)}(h ``schedutil``h]h schedutil}(hjP hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubh and }(hj hhhNhNubjS)}(h ``ondemand``h]hondemand}(hjb hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubh governors).}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhKShjUhhubj)}(hX&There are two P-state selection algorithms provided by ``intel_pstate`` in the active mode: ``powersave`` and ``performance``. The way they both operate depends on whether or not the hardware-managed P-states (HWP) feature has been enabled in the processor and possibly on the processor model.h](h7There are two P-state selection algorithms provided by }(hjz hhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjz ubh in the active mode: }(hjz hhhNhNubjS)}(h ``powersave``h]h powersave}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjz ubh and }(hjz hhhNhNubjS)}(h``performance``h]h performance}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjz ubh. The way they both operate depends on whether or not the hardware-managed P-states (HWP) feature has been enabled in the processor and possibly on the processor model.}(hjz hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhKZhjUhhubj)}(hX-Which of the P-state selection algorithms is used by default depends on the :c:macro:`CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE` kernel configuration option. Namely, if that option is set, the ``performance`` algorithm will be used by default, and the other one will be used by default if it is not set.h](hLWhich of the P-state selection algorithms is used by default depends on the }(hj hhhNhNubh)}(h2:c:macro:`CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE`h]jS)}(hj h]h'CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE}(hj hhhNhNubah}(h]h ](j.cc-macroeh"]h$]h&]uh1jRhj ubah}(h]h ]h"]h$]h&]refdocj; refdomainj reftypemacro refexplicitrefwarnjA'CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCEuh1hhhhK_hj ubhA kernel configuration option. Namely, if that option is set, the }(hj hhhNhNubjS)}(h``performance``h]h performance}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubh_ algorithm will be used by default, and the other one will be used by default if it is not set.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhK_hjUhhubj)}(h.. _active_mode_hwp:h]h}(h]h ]h"]h$]h&]jactive-mode-hwpuh1jhKhjUhhhhubjH)}(hhh](jM)}(hActive Mode With HWPh]hActive Mode With HWP}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hhhhhKgubj)}(hIf the processor supports the HWP feature, it will be enabled during the processor initialization and cannot be disabled after that. It is possible to avoid enabling it by passing the ``intel_pstate=no_hwp`` argument to the kernel in the command line.h](hIf the processor supports the HWP feature, it will be enabled during the processor initialization and cannot be disabled after that. It is possible to avoid enabling it by passing the }(hj hhhNhNubjS)}(h``intel_pstate=no_hwp``h]hintel_pstate=no_hwp}(hj& hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubh, argument to the kernel in the command line.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhKihj hhubj)}(hXGIf the HWP feature has been enabled, ``intel_pstate`` relies on the processor to select P-states by itself, but still it can give hints to the processor's internal P-state selection logic. What those hints are depends on which P-state selection algorithm has been applied to the given policy (or to the CPU it corresponds to).h](h%If the HWP feature has been enabled, }(hj> hhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hjF hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj> ubhX relies on the processor to select P-states by itself, but still it can give hints to the processor’s internal P-state selection logic. What those hints are depends on which P-state selection algorithm has been applied to the given policy (or to the CPU it corresponds to).}(hj> hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhKnhj hhubj)}(hXEven though the P-state selection is carried out by the processor automatically, ``intel_pstate`` registers utilization update callbacks with the CPU scheduler in this mode. However, they are not used for running a P-state selection algorithm, but for periodic updates of the current CPU frequency information to be made available from the ``scaling_cur_freq`` policy attribute in ``sysfs``.h](hQEven though the P-state selection is carried out by the processor automatically, }(hj^ hhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hjf hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj^ ubh registers utilization update callbacks with the CPU scheduler in this mode. However, they are not used for running a P-state selection algorithm, but for periodic updates of the current CPU frequency information to be made available from the }(hj^ hhhNhNubjS)}(h``scaling_cur_freq``h]hscaling_cur_freq}(hjx hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj^ ubh policy attribute in }(hj^ hhhNhNubjS)}(h ``sysfs``h]hsysfs}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj^ ubh.}(hj^ hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhKthj hhubjH)}(hhh](jM)}(hHWP + ``performance``h](hHWP + }(hj hhhNhNubjS)}(h``performance``h]h performance}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubeh}(h]h ]h"]h$]h&]uh1jLhj hhhhhK{ubj)}(hX%In this configuration ``intel_pstate`` will write 0 to the processor's Energy-Performance Preference (EPP) knob (if supported) or its Energy-Performance Bias (EPB) knob (otherwise), which means that the processor's internal P-state selection logic is expected to focus entirely on performance.h](hIn this configuration }(hj hhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubhX will write 0 to the processor’s Energy-Performance Preference (EPP) knob (if supported) or its Energy-Performance Bias (EPB) knob (otherwise), which means that the processor’s internal P-state selection logic is expected to focus entirely on performance.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhK}hj hhubj)}(hXThis will override the EPP/EPB setting coming from the ``sysfs`` interface (see :ref:`energy_performance_hints` below). Moreover, any attempts to change the EPP/EPB to a value different from 0 ("performance") via ``sysfs`` in this configuration will be rejected.h](h7This will override the EPP/EPB setting coming from the }(hj hhhNhNubjS)}(h ``sysfs``h]hsysfs}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubh interface (see }(hj hhhNhNubh)}(h:ref:`energy_performance_hints`h]j#)}(hj h]henergy_performance_hints}(hj hhhNhNubah}(h]h ](j.stdstd-refeh"]h$]h&]uh1j"hj ubah}(h]h ]h"]h$]h&]refdocj; refdomainj reftyperef refexplicitrefwarnjAenergy_performance_hintsuh1hhhhKhj ubhk below). Moreover, any attempts to change the EPP/EPB to a value different from 0 (“performance”) via }(hj hhhNhNubjS)}(h ``sysfs``h]hsysfs}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubh( in this configuration will be rejected.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhKhj hhubj)}(hAlso, in this configuration the range of P-states available to the processor's internal P-state selection logic is always restricted to the upper boundary (that is, the maximum P-state that the driver is allowed to use).h]hAlso, in this configuration the range of P-states available to the processor’s internal P-state selection logic is always restricted to the upper boundary (that is, the maximum P-state that the driver is allowed to use).}(hj7 hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj hhubeh}(h]hwp-performanceah ]h"]hwp + performanceah$]h&]uh1jGhj hhhhhK{ubjH)}(hhh](jM)}(hHWP + ``powersave``h](hHWP + }(hjP hhhNhNubjS)}(h ``powersave``h]h powersave}(hjX hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjP ubeh}(h]h ]h"]h$]h&]uh1jLhjM hhhhhKubj)}(hXIn this configuration ``intel_pstate`` will set the processor's Energy-Performance Preference (EPP) knob (if supported) or its Energy-Performance Bias (EPB) knob (otherwise) to whatever value it was previously set to via ``sysfs`` (or whatever default value it was set to by the platform firmware). This usually causes the processor's internal P-state selection logic to be less performance-focused.h](hIn this configuration }(hjl hhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hjt hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjl ubh will set the processor’s Energy-Performance Preference (EPP) knob (if supported) or its Energy-Performance Bias (EPB) knob (otherwise) to whatever value it was previously set to via }(hjl hhhNhNubjS)}(h ``sysfs``h]hsysfs}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjl ubh (or whatever default value it was set to by the platform firmware). This usually causes the processor’s internal P-state selection logic to be less performance-focused.}(hjl hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhKhjM hhubeh}(h] hwp-powersaveah ]h"]hwp + powersaveah$]h&]uh1jGhj hhhhhKubeh}(h](active-mode-with-hwpj eh ]h"](active mode with hwpactive_mode_hwpeh$]h&]uh1jGhjUhhhhhKgexpect_referenced_by_name}j j sexpect_referenced_by_id}j j subjH)}(hhh](jM)}(hActive Mode Without HWPh]hActive Mode Without HWP}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hhhhhKubj)}(hXThis operation mode is optional for processors that do not support the HWP feature or when the ``intel_pstate=no_hwp`` argument is passed to the kernel in the command line. The active mode is used in those cases if the ``intel_pstate=active`` argument is passed to the kernel in the command line. In this mode ``intel_pstate`` may refuse to work with processors that are not recognized by it. [Note that ``intel_pstate`` will never refuse to work with any processor with the HWP feature enabled.]h](h_This operation mode is optional for processors that do not support the HWP feature or when the }(hj hhhNhNubjS)}(h``intel_pstate=no_hwp``h]hintel_pstate=no_hwp}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubhf argument is passed to the kernel in the command line. The active mode is used in those cases if the }(hj hhhNhNubjS)}(h``intel_pstate=active``h]hintel_pstate=active}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubhD argument is passed to the kernel in the command line. In this mode }(hj hhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubhO may refuse to work with processors that are not recognized by it. [Note that }(hj hhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubhL will never refuse to work with any processor with the HWP feature enabled.]}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhKhj hhubj)}(hXIn this mode ``intel_pstate`` registers utilization update callbacks with the CPU scheduler in order to run a P-state selection algorithm, either ``powersave`` or ``performance``, depending on the ``scaling_governor`` policy setting in ``sysfs``. The current CPU frequency information to be made available from the ``scaling_cur_freq`` policy attribute in ``sysfs`` is periodically updated by those utilization update callbacks too.h](h In this mode }(hj hhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hj" hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubhu registers utilization update callbacks with the CPU scheduler in order to run a P-state selection algorithm, either }(hj hhhNhNubjS)}(h ``powersave``h]h powersave}(hj4 hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubh or }(hj hhhNhNubjS)}(h``performance``h]h performance}(hjF hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubh, depending on the }(hj hhhNhNubjS)}(h``scaling_governor``h]hscaling_governor}(hjX hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubh policy setting in }(hj hhhNhNubjS)}(h ``sysfs``h]hsysfs}(hjj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubhG. The current CPU frequency information to be made available from the }(hj hhhNhNubjS)}(h``scaling_cur_freq``h]hscaling_cur_freq}(hj| hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubh policy attribute in }(hj hhhNhNubjS)}(h ``sysfs``h]hsysfs}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubhC is periodically updated by those utilization update callbacks too.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhKhj hhubjH)}(hhh](jM)}(h``performance``h]jS)}(hj h]h performance}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubah}(h]h ]h"]h$]h&]uh1jLhj hhhhhKubj)}(h~Without HWP, this P-state selection algorithm is always the same regardless of the processor model and platform configuration.h]h~Without HWP, this P-state selection algorithm is always the same regardless of the processor model and platform configuration.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj hhubj)}(hIt selects the maximum P-state it is allowed to use, subject to limits set via ``sysfs``, every time the driver configuration for the given CPU is updated (e.g. via ``sysfs``).h](hOIt selects the maximum P-state it is allowed to use, subject to limits set via }(hj hhhNhNubjS)}(h ``sysfs``h]hsysfs}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubhM, every time the driver configuration for the given CPU is updated (e.g. via }(hj hhhNhNubjS)}(h ``sysfs``h]hsysfs}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubh).}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhKhj hhubj)}(hThis is the default P-state selection algorithm if the :c:macro:`CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE` kernel configuration option is set.h](h7This is the default P-state selection algorithm if the }(hj hhhNhNubh)}(h2:c:macro:`CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE`h]jS)}(hj h]h'CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE}(hj hhhNhNubah}(h]h ](j.j c-macroeh"]h$]h&]uh1jRhj ubah}(h]h ]h"]h$]h&]refdocj; refdomainj reftypemacro refexplicitrefwarnjA'CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCEuh1hhhhKhj ubh$ kernel configuration option is set.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhKhj hhubeh}(h] performanceah ]h"] performanceah$]h&]uh1jGhj hhhhhKubjH)}(hhh](jM)}(h ``powersave``h]jS)}(hj> h]h powersave}(hj@ hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj< ubah}(h]h ]h"]h$]h&]uh1jLhj9 hhhhhKubj)}(hX<Without HWP, this P-state selection algorithm is similar to the algorithm implemented by the generic ``schedutil`` scaling governor except that the utilization metric used by it is based on numbers coming from feedback registers of the CPU. It generally selects P-states proportional to the current CPU utilization.h](heWithout HWP, this P-state selection algorithm is similar to the algorithm implemented by the generic }(hjS hhhNhNubjS)}(h ``schedutil``h]h schedutil}(hj[ hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjS ubh scaling governor except that the utilization metric used by it is based on numbers coming from feedback registers of the CPU. It generally selects P-states proportional to the current CPU utilization.}(hjS hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhKhj9 hhubj)}(hX.This algorithm is run by the driver's utilization update callback for the given CPU when it is invoked by the CPU scheduler, but not more often than every 10 ms. Like in the ``performance`` case, the hardware configuration is not touched if the new P-state turns out to be the same as the current one.h](hThis algorithm is run by the driver’s utilization update callback for the given CPU when it is invoked by the CPU scheduler, but not more often than every 10 ms. Like in the }(hjs hhhNhNubjS)}(h``performance``h]h performance}(hj{ hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjs ubhp case, the hardware configuration is not touched if the new P-state turns out to be the same as the current one.}(hjs hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhKhj9 hhubj)}(hThis is the default P-state selection algorithm if the :c:macro:`CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE` kernel configuration option is not set.h](h7This is the default P-state selection algorithm if the }(hj hhhNhNubh)}(h2:c:macro:`CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE`h]jS)}(hj h]h'CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE}(hj hhhNhNubah}(h]h ](j.j c-macroeh"]h$]h&]uh1jRhj ubah}(h]h ]h"]h$]h&]refdocj; refdomainj reftypemacro refexplicitrefwarnjA'CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCEuh1hhhhKhj ubh( kernel configuration option is not set.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhKhj9 hhubj)}(h.. _passive_mode:h]h}(h]h ]h"]h$]h&]j passive-modeuh1jhMhj9 hhhhubeh}(h] powersaveah ]h"] powersaveah$]h&]uh1jGhj hhhhhKubeh}(h]active-mode-without-hwpah ]h"]active mode without hwpah$]h&]uh1jGhjUhhhhhKubeh}(h](jTid4eh ]h"]( active mode active_modeeh$]h&]uh1jGhj hhhhhKEj }j jJsj }jTjJsubjH)}(hhh](jM)}(h Passive Modeh]h Passive Mode}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hhhhhKubj)}(hXThis is the default operation mode of ``intel_pstate`` for processors without hardware-managed P-states (HWP) support. It is always used if the ``intel_pstate=passive`` argument is passed to the kernel in the command line regardless of whether or not the given processor supports HWP. [Note that the ``intel_pstate=no_hwp`` setting causes the driver to start in the passive mode if it is not combined with ``intel_pstate=active``.] Like in the active mode without HWP support, in this mode ``intel_pstate`` may refuse to work with processors that are not recognized by it if HWP is prevented from being enabled through the kernel command line.h](h&This is the default operation mode of }(hj hhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubh[ for processors without hardware-managed P-states (HWP) support. It is always used if the }(hj hhhNhNubjS)}(h``intel_pstate=passive``h]hintel_pstate=passive}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubh argument is passed to the kernel in the command line regardless of whether or not the given processor supports HWP. [Note that the }(hj hhhNhNubjS)}(h``intel_pstate=no_hwp``h]hintel_pstate=no_hwp}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubhS setting causes the driver to start in the passive mode if it is not combined with }(hj hhhNhNubjS)}(h``intel_pstate=active``h]hintel_pstate=active}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubh>.] Like in the active mode without HWP support, in this mode }(hj hhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubh may refuse to work with processors that are not recognized by it if HWP is prevented from being enabled through the kernel command line.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhKhj hhubj)}(hXIf the driver works in this mode, the ``scaling_driver`` policy attribute in ``sysfs`` for all ``CPUFreq`` policies contains the string "intel_cpufreq". Then, the driver behaves like a regular ``CPUFreq`` scaling driver. That is, it is invoked by generic scaling governors when necessary to talk to the hardware in order to change the P-state of a CPU (in particular, the ``schedutil`` governor can invoke it directly from scheduler context).h](h&If the driver works in this mode, the }(hjchhhNhNubjS)}(h``scaling_driver``h]hscaling_driver}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjcubh policy attribute in }(hjchhhNhNubjS)}(h ``sysfs``h]hsysfs}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjcubh for all }(hjchhhNhNubjS)}(h ``CPUFreq``h]hCPUFreq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjcubh[ policies contains the string “intel_cpufreq”. Then, the driver behaves like a regular }(hjchhhNhNubjS)}(h ``CPUFreq``h]hCPUFreq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjcubh scaling driver. That is, it is invoked by generic scaling governors when necessary to talk to the hardware in order to change the P-state of a CPU (in particular, the }(hjchhhNhNubjS)}(h ``schedutil``h]h schedutil}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjcubh9 governor can invoke it directly from scheduler context).}(hjchhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhKhj hhubj)}(hXWhile in this mode, ``intel_pstate`` can be used with all of the (generic) scaling governors listed by the ``scaling_available_governors`` policy attribute in ``sysfs`` (and the P-state selection algorithms described above are not used). Then, it is responsible for the configuration of policy objects corresponding to CPUs and provides the ``CPUFreq`` core (and the scaling governors attached to the policy objects) with accurate information on the maximum and minimum operating frequencies supported by the hardware (including the so-called "turbo" frequency ranges). In other words, in the passive mode the entire range of available P-states is exposed by ``intel_pstate`` to the ``CPUFreq`` core. However, in this mode the driver does not register utilization update callbacks with the CPU scheduler and the ``scaling_cur_freq`` information comes from the ``CPUFreq`` core (and is the last frequency selected by the current scaling governor for the given policy).h](hWhile in this mode, }(hjhhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubhG can be used with all of the (generic) scaling governors listed by the }(hjhhhNhNubjS)}(h``scaling_available_governors``h]hscaling_available_governors}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh policy attribute in }(hjhhhNhNubjS)}(h ``sysfs``h]hsysfs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh (and the P-state selection algorithms described above are not used). Then, it is responsible for the configuration of policy objects corresponding to CPUs and provides the }(hjhhhNhNubjS)}(h ``CPUFreq``h]hCPUFreq}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubhX8 core (and the scaling governors attached to the policy objects) with accurate information on the maximum and minimum operating frequencies supported by the hardware (including the so-called “turbo” frequency ranges). In other words, in the passive mode the entire range of available P-states is exposed by }(hjhhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh to the }(hjhhhNhNubjS)}(h ``CPUFreq``h]hCPUFreq}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubhw core. However, in this mode the driver does not register utilization update callbacks with the CPU scheduler and the }(hjhhhNhNubjS)}(h``scaling_cur_freq``h]hscaling_cur_freq}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh information comes from the }(hjhhhNhNubjS)}(h ``CPUFreq``h]hCPUFreq}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh` core (and is the last frequency selected by the current scaling governor for the given policy).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhKhj hhubj)}(h .. _turbo:h]h}(h]h ]h"]h$]h&]jturbouh1jhMChj hhhhubeh}(h](j id5eh ]h"]( passive mode passive_modeeh$]h&]uh1jGhj hhhhhKj }jzj sj }j j subeh}(h](jid3eh ]h"](operation modesoperation_modeseh$]h&]uh1jGhjIhhhhhK8j }jjsj }jjsubjH)}(hhh](jM)}(hTurbo P-states Supporth]hTurbo P-states Support}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhhhhhKubj)}(hXIn the majority of cases, the entire range of P-states available to ``intel_pstate`` can be divided into two sub-ranges that correspond to different types of processor behavior, above and below a boundary that will be referred to as the "turbo threshold" in what follows.h](hDIn the majority of cases, the entire range of P-states available to }(hjhhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh can be divided into two sub-ranges that correspond to different types of processor behavior, above and below a boundary that will be referred to as the “turbo threshold” in what follows.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhKhjhhubj)}(hXThe P-states above the turbo threshold are referred to as "turbo P-states" and the whole sub-range of P-states they belong to is referred to as the "turbo range". These names are related to the Turbo Boost technology allowing a multicore processor to opportunistically increase the P-state of one or more cores if there is enough power to do that and if that is not going to cause the thermal envelope of the processor package to be exceeded.h]hXThe P-states above the turbo threshold are referred to as “turbo P-states” and the whole sub-range of P-states they belong to is referred to as the “turbo range”. These names are related to the Turbo Boost technology allowing a multicore processor to opportunistically increase the P-state of one or more cores if there is enough power to do that and if that is not going to cause the thermal envelope of the processor package to be exceeded.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjhhubj)}(hXsSpecifically, if software sets the P-state of a CPU core within the turbo range (that is, above the turbo threshold), the processor is permitted to take over performance scaling control for that core and put it into turbo P-states of its choice going forward. However, that permission is interpreted differently by different processor generations. Namely, the Sandy Bridge generation of processors will never use any P-states above the last one set by software for the given core, even if it is within the turbo range, whereas all of the later processor generations will take it as a license to use any P-states from the turbo range, even above the one set by software. In other words, on those processors setting any P-state from the turbo range will enable the processor to put the given core into all turbo P-states up to and including the maximum supported one as it sees fit.h]hXsSpecifically, if software sets the P-state of a CPU core within the turbo range (that is, above the turbo threshold), the processor is permitted to take over performance scaling control for that core and put it into turbo P-states of its choice going forward. However, that permission is interpreted differently by different processor generations. Namely, the Sandy Bridge generation of processors will never use any P-states above the last one set by software for the given core, even if it is within the turbo range, whereas all of the later processor generations will take it as a license to use any P-states from the turbo range, even above the one set by software. In other words, on those processors setting any P-state from the turbo range will enable the processor to put the given core into all turbo P-states up to and including the maximum supported one as it sees fit.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjhhubj)}(hXsOne important property of turbo P-states is that they are not sustainable. More precisely, there is no guarantee that any CPUs will be able to stay in any of those states indefinitely, because the power distribution within the processor package may change over time or the thermal envelope it was designed for might be exceeded if a turbo P-state was used for too long.h]hXsOne important property of turbo P-states is that they are not sustainable. More precisely, there is no guarantee that any CPUs will be able to stay in any of those states indefinitely, because the power distribution within the processor package may change over time or the thermal envelope it was designed for might be exceeded if a turbo P-state was used for too long.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM hjhhubj)}(hXfIn turn, the P-states below the turbo threshold generally are sustainable. In fact, if one of them is set by software, the processor is not expected to change it to a lower one unless in a thermal stress or a power limit violation situation (a higher P-state may still be used if it is set for another CPU in the same package at the same time, for example).h]hXfIn turn, the P-states below the turbo threshold generally are sustainable. In fact, if one of them is set by software, the processor is not expected to change it to a lower one unless in a thermal stress or a power limit violation situation (a higher P-state may still be used if it is set for another CPU in the same package at the same time, for example).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjhhubj)}(hXSome processors allow multiple cores to be in turbo P-states at the same time, but the maximum P-state that can be set for them generally depends on the number of cores running concurrently. The maximum turbo P-state that can be set for 3 cores at the same time usually is lower than the analogous maximum P-state for 2 cores, which in turn usually is lower than the maximum turbo P-state that can be set for 1 core. The one-core maximum turbo P-state is thus the maximum supported one overall.h]hXSome processors allow multiple cores to be in turbo P-states at the same time, but the maximum P-state that can be set for them generally depends on the number of cores running concurrently. The maximum turbo P-state that can be set for 3 cores at the same time usually is lower than the analogous maximum P-state for 2 cores, which in turn usually is lower than the maximum turbo P-state that can be set for 1 core. The one-core maximum turbo P-state is thus the maximum supported one overall.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjhhubj)}(hXThe maximum supported turbo P-state, the turbo threshold (the maximum supported non-turbo P-state) and the minimum supported P-state are specific to the processor model and can be determined by reading the processor's model-specific registers (MSRs). Moreover, some processors support the Configurable TDP (Thermal Design Power) feature and, when that feature is enabled, the turbo threshold effectively becomes a configurable value that can be set by the platform firmware.h]hXThe maximum supported turbo P-state, the turbo threshold (the maximum supported non-turbo P-state) and the minimum supported P-state are specific to the processor model and can be determined by reading the processor’s model-specific registers (MSRs). Moreover, some processors support the Configurable TDP (Thermal Design Power) feature and, when that feature is enabled, the turbo threshold effectively becomes a configurable value that can be set by the platform firmware.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjhhubj)}(hXUnlike ``_PSS`` objects in the ACPI tables, ``intel_pstate`` always exposes the entire range of available P-states, including the whole turbo range, to the ``CPUFreq`` core and (in the passive mode) to generic scaling governors. This generally causes turbo P-states to be set more often when ``intel_pstate`` is used relative to ACPI-based CPU performance scaling (see :ref:`below ` for more information).h](hUnlike }(hjhhhNhNubjS)}(h``_PSS``h]h_PSS}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh objects in the ACPI tables, }(hjhhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh` always exposes the entire range of available P-states, including the whole turbo range, to the }(hjhhhNhNubjS)}(h ``CPUFreq``h]hCPUFreq}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh~ core and (in the passive mode) to generic scaling governors. This generally causes turbo P-states to be set more often when }(hjhhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh= is used relative to ACPI-based CPU performance scaling (see }(hjhhhNhNubh)}(h:ref:`below `h]j#)}(hjah]hbelow}(hjchhhNhNubah}(h]h ](j.stdstd-refeh"]h$]h&]uh1j"hj_ubah}(h]h ]h"]h$]h&]refdocj; refdomainjmreftyperef refexplicitrefwarnjA acpi-cpufrequh1hhhhM'hjubh for more information).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhM'hjhhubj)}(hXpMoreover, since ``intel_pstate`` always knows what the real turbo threshold is (even if the Configurable TDP feature is enabled in the processor), its ``no_turbo`` attribute in ``sysfs`` (described :ref:`below `) should work as expected in all cases (that is, if set to disable turbo P-states, it always should prevent ``intel_pstate`` from using them).h](hMoreover, since }(hjhhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubhw always knows what the real turbo threshold is (even if the Configurable TDP feature is enabled in the processor), its }(hjhhhNhNubjS)}(h ``no_turbo``h]hno_turbo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh attribute in }(hjhhhNhNubjS)}(h ``sysfs``h]hsysfs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh (described }(hjhhhNhNubh)}(h:ref:`below `h]j#)}(hjh]hbelow}(hjhhhNhNubah}(h]h ](j.stdstd-refeh"]h$]h&]uh1j"hjubah}(h]h ]h"]h$]h&]refdocj; refdomainjreftyperef refexplicitrefwarnjA no_turbo_attruh1hhhhM.hjubhl) should work as expected in all cases (that is, if set to disable turbo P-states, it always should prevent }(hjhhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh from using them).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhM.hjhhubeh}(h](turbo-p-states-supportjseh ]h"](turbo p-states supportturboeh$]h&]uh1jGhjIhhhhhKj }j jisj }jsjisubjH)}(hhh](jM)}(hProcessor Supporth]hProcessor Support}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhhhhhM6ubj)}(hTo handle a given processor ``intel_pstate`` requires a number of different pieces of information on it to be known, including:h](hTo handle a given processor }(hjhhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubhS requires a number of different pieces of information on it to be known, including:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhM8hjhhubh block_quote)}(hXy* The minimum supported P-state. * The maximum supported :ref:`non-turbo P-state `. * Whether or not turbo P-states are supported at all. * The maximum supported :ref:`one-core turbo P-state ` (if turbo P-states are supported). * The scaling formula to translate the driver's internal representation of P-states into frequencies and the other way around. h]h bullet_list)}(hhh](h list_item)}(hThe minimum supported P-state. h]j)}(hThe minimum supported P-state.h]hThe minimum supported P-state.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM;hjLubah}(h]h ]h"]h$]h&]uh1jJhjGubjK)}(h8The maximum supported :ref:`non-turbo P-state `. h]j)}(h7The maximum supported :ref:`non-turbo P-state `.h](hThe maximum supported }(hjhhhhNhNubh)}(h :ref:`non-turbo P-state `h]j#)}(hjrh]hnon-turbo P-state}(hjthhhNhNubah}(h]h ](j.stdstd-refeh"]h$]h&]uh1j"hjpubah}(h]h ]h"]h$]h&]refdocj; refdomainj~reftyperef refexplicitrefwarnjAturbouh1hhhhM=hjhubh.}(hjhhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhM=hjdubah}(h]h ]h"]h$]h&]uh1jJhjGubjK)}(h4Whether or not turbo P-states are supported at all. h]j)}(h3Whether or not turbo P-states are supported at all.h]h3Whether or not turbo P-states are supported at all.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM?hjubah}(h]h ]h"]h$]h&]uh1jJhjGubjK)}(h_The maximum supported :ref:`one-core turbo P-state ` (if turbo P-states are supported). h]j)}(h^The maximum supported :ref:`one-core turbo P-state ` (if turbo P-states are supported).h](hThe maximum supported }(hjhhhNhNubh)}(h%:ref:`one-core turbo P-state `h]j#)}(hjh]hone-core turbo P-state}(hjhhhNhNubah}(h]h ](j.stdstd-refeh"]h$]h&]uh1j"hjubah}(h]h ]h"]h$]h&]refdocj; refdomainjreftyperef refexplicitrefwarnjAturbouh1hhhhMAhjubh# (if turbo P-states are supported).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMAhjubah}(h]h ]h"]h$]h&]uh1jJhjGubjK)}(h}The scaling formula to translate the driver's internal representation of P-states into frequencies and the other way around. h]j)}(h|The scaling formula to translate the driver's internal representation of P-states into frequencies and the other way around.h]h~The scaling formula to translate the driver’s internal representation of P-states into frequencies and the other way around.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMDhjubah}(h]h ]h"]h$]h&]uh1jJhjGubeh}(h]h ]h"]h$]h&]bullet*uh1jEhhhM;hjAubah}(h]h ]h"]h$]h&]uh1j?hhhM;hjhhubj)}(hXGenerally, ways to obtain that information are specific to the processor model or family. Although it often is possible to obtain all of it from the processor itself (using model-specific registers), there are cases in which hardware manuals need to be consulted to get to it too.h]hXGenerally, ways to obtain that information are specific to the processor model or family. Although it often is possible to obtain all of it from the processor itself (using model-specific registers), there are cases in which hardware manuals need to be consulted to get to it too.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMGhjhhubj)}(hX~For this reason, there is a list of supported processors in ``intel_pstate`` and the driver initialization will fail if the detected processor is not in that list, unless it supports the HWP feature. [The interface to obtain all of the information listed above is the same for all of the processors supporting the HWP feature, which is why ``intel_pstate`` works with all of them.]h](hSince CAS takes CPU capacities into account, it does not require CPU prioritization and it allows tasks to be distributed more symmetrically among the more performant and less performant CPUs. Once placed on a CPU with enough capacity to accommodate it, a task may just continue to run there regardless of whether or not the other CPUs are fully loaded, so on average CAS reduces the utilization of the more performant CPUs which causes the energy usage to be more balanced because the more performant CPUs are generally less energy-efficient than the less performant ones.h]hX>Since CAS takes CPU capacities into account, it does not require CPU prioritization and it allows tasks to be distributed more symmetrically among the more performant and less performant CPUs. Once placed on a CPU with enough capacity to accommodate it, a task may just continue to run there regardless of whether or not the other CPUs are fully loaded, so on average CAS reduces the utilization of the more performant CPUs which causes the energy usage to be more balanced because the more performant CPUs are generally less energy-efficient than the less performant ones.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM~hjhhubj)}(hIn order to use CAS, the scheduler needs to know the capacity of each CPU in the system and it needs to be able to compute scale-invariant utilization of CPUs, so ``intel_pstate`` provides it with the requisite information.h](hIn order to use CAS, the scheduler needs to know the capacity of each CPU in the system and it needs to be able to compute scale-invariant utilization of CPUs, so }(hj6hhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj6ubh, provides it with the requisite information.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhjhhubj)}(hXFirst of all, the capacity of each CPU is represented by the ratio of its highest HWP performance level, multiplied by 1024, to the highest HWP performance level of the most performant CPU in the system, which works because the HWP performance units are the same for all CPUs. Second, the frequency-invariance computations, carried out by the scheduler to always express CPU utilization in the same units regardless of the frequency it is currently running at, are adjusted to take the CPU capacity into account. All of this happens when ``intel_pstate`` has registered itself with the ``CPUFreq`` core and it has figured out that it is running on a hybrid processor without SMT.h](hXFirst of all, the capacity of each CPU is represented by the ratio of its highest HWP performance level, multiplied by 1024, to the highest HWP performance level of the most performant CPU in the system, which works because the HWP performance units are the same for all CPUs. Second, the frequency-invariance computations, carried out by the scheduler to always express CPU utilization in the same units regardless of the frequency it is currently running at, are adjusted to take the CPU capacity into account. All of this happens when }(hjVhhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjVubh has registered itself with the }(hjVhhhNhNubjS)}(h ``CPUFreq``h]hCPUFreq}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjVubhR core and it has figured out that it is running on a hybrid processor without SMT.}(hjVhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhjhhubeh}(h](!capacity-aware-scheduling-supportjeh ]h"](!capacity-aware scheduling supportcaseh$]h&]uh1jGhjbhhhhhMvj }jjsj }jjsubjH)}(hhh](jM)}(hEnergy-Aware Scheduling Supporth]hEnergy-Aware Scheduling Support}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhhhhhMubj)}(hXIf ``CONFIG_ENERGY_MODEL`` has been set during kernel configuration and ``intel_pstate`` runs on a hybrid processor without SMT, in addition to enabling :ref:`CAS` it registers an Energy Model for the processor. This allows the Energy-Aware Scheduling (EAS) support to be enabled in the CPU scheduler if ``schedutil`` is used as the ``CPUFreq`` governor which requires ``intel_pstate`` to operate in the :ref:`passive mode `.h](hIf }(hjhhhNhNubjS)}(h``CONFIG_ENERGY_MODEL``h]hCONFIG_ENERGY_MODEL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh. has been set during kernel configuration and }(hjhhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubhA runs on a hybrid processor without SMT, in addition to enabling }(hjhhhNhNubh)}(h :ref:`CAS`h]j#)}(hjh]hCAS}(hjhhhNhNubah}(h]h ](j.stdstd-refeh"]h$]h&]uh1j"hjubah}(h]h ]h"]h$]h&]refdocj; refdomainjreftyperef refexplicitrefwarnjAcasuh1hhhhMhjubh it registers an Energy Model for the processor. This allows the Energy-Aware Scheduling (EAS) support to be enabled in the CPU scheduler if }(hjhhhNhNubjS)}(h ``schedutil``h]h schedutil}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh is used as the }(hjhhhNhNubjS)}(h ``CPUFreq``h]hCPUFreq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh governor which requires }(hjhhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh to operate in the }(hjhhhNhNubh)}(h":ref:`passive mode `h]j#)}(hj,h]h passive mode}(hj.hhhNhNubah}(h]h ](j.stdstd-refeh"]h$]h&]uh1j"hj*ubah}(h]h ]h"]h$]h&]refdocj; refdomainj8reftyperef refexplicitrefwarnjA passive_modeuh1hhhhMhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhjhhubj)}(hXThe Energy Model registered by ``intel_pstate`` is artificial (that is, it is based on abstract cost values and it does not include any real power numbers) and it is relatively simple to avoid unnecessary computations in the scheduler. There is a performance domain in it for every CPU in the system and the cost values for these performance domains have been chosen so that running a task on a less performant (small) CPU appears to be always cheaper than running that task on a more performant (big) CPU. However, for two CPUs of the same type, the cost difference depends on their current utilization, and the CPU whose current utilization is higher generally appears to be a more expensive destination for a given task. This helps to balance the load among CPUs of the same type.h](hThe Energy Model registered by }(hjThhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjTubhX is artificial (that is, it is based on abstract cost values and it does not include any real power numbers) and it is relatively simple to avoid unnecessary computations in the scheduler. There is a performance domain in it for every CPU in the system and the cost values for these performance domains have been chosen so that running a task on a less performant (small) CPU appears to be always cheaper than running that task on a more performant (big) CPU. However, for two CPUs of the same type, the cost difference depends on their current utilization, and the CPU whose current utilization is higher generally appears to be a more expensive destination for a given task. This helps to balance the load among CPUs of the same type.}(hjThhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhjhhubj)}(hXSince EAS works on top of CAS, high-utilization tasks are always migrated to CPUs with enough capacity to accommodate them, but thanks to EAS, low-utilization tasks tend to be placed on the CPUs that look less expensive to the scheduler. Effectively, this causes the less performant and less loaded CPUs to be preferred as long as they have enough spare capacity to run the given task which generally leads to reduced energy usage.h]hXSince EAS works on top of CAS, high-utilization tasks are always migrated to CPUs with enough capacity to accommodate them, but thanks to EAS, low-utilization tasks tend to be placed on the CPUs that look less expensive to the scheduler. Effectively, this causes the less performant and less loaded CPUs to be preferred as long as they have enough spare capacity to run the given task which generally leads to reduced energy usage.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjhhubj)}(hThe Energy Model created by ``intel_pstate`` can be inspected by looking at the ``energy_model`` directory in ``debugfs`` (typlically mounted on ``/sys/kernel/debug/``).h](hThe Energy Model created by }(hjhhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh$ can be inspected by looking at the }(hjhhhNhNubjS)}(h``energy_model``h]h energy_model}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh directory in }(hjhhhNhNubjS)}(h ``debugfs``h]hdebugfs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh (typlically mounted on }(hjhhhNhNubjS)}(h``/sys/kernel/debug/``h]h/sys/kernel/debug/}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhjhhubeh}(h]energy-aware-scheduling-supportah ]h"]energy-aware scheduling supportah$]h&]uh1jGhjbhhhhhMubeh}(h]support-for-hybrid-processorsah ]h"]support for hybrid processorsah$]h&]uh1jGhjIhhhhhMTubjH)}(hhh](jM)}(h!User Space Interface in ``sysfs``h](hUser Space Interface in }(hjhhhNhNubjS)}(h ``sysfs``h]hsysfs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubeh}(h]h ]h"]h$]h&]uh1jLhjhhhhhMubj)}(h.. _global_attributes:h]h}(h]h ]h"]h$]h&]jglobal-attributesuh1jhMhjhhhhubjH)}(hhh](jM)}(hGlobal Attributesh]hGlobal Attributes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhhhhhMubj)}(h``intel_pstate`` exposes several global attributes (files) in ``sysfs`` to control its functionality at the system level. They are located in the ``/sys/devices/system/cpu/intel_pstate/`` directory and affect all CPUs.h](jS)}(h``intel_pstate``h]h intel_pstate}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj#ubh. exposes several global attributes (files) in }(hj#hhhNhNubjS)}(h ``sysfs``h]hsysfs}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj#ubhL to control its functionality at the system level. They are located in the }(hj#hhhNhNubjS)}(h)``/sys/devices/system/cpu/intel_pstate/``h]h%/sys/devices/system/cpu/intel_pstate/}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj#ubh directory and affect all CPUs.}(hj#hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhjhhubj)}(h~Some of them are not present if the ``intel_pstate=per_cpu_perf_limits`` argument is passed to the kernel in the command line.h](h$Some of them are not present if the }(hjchhhNhNubjS)}(h$``intel_pstate=per_cpu_perf_limits``h]h intel_pstate=per_cpu_perf_limits}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjcubh6 argument is passed to the kernel in the command line.}(hjchhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhjhhubhdefinition_list)}(hhh](hdefinition_list_item)}(hX*``max_perf_pct`` Maximum P-state the driver is allowed to set in percent of the maximum supported performance level (the highest supported :ref:`turbo P-state `). This attribute will not be exposed if the ``intel_pstate=per_cpu_perf_limits`` argument is present in the kernel command line. h](hterm)}(h``max_perf_pct``h]jS)}(hjh]h max_perf_pct}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhhhMhjubh definition)}(hhh](j)}(hMaximum P-state the driver is allowed to set in percent of the maximum supported performance level (the highest supported :ref:`turbo P-state `).h](hzMaximum P-state the driver is allowed to set in percent of the maximum supported performance level (the highest supported }(hjhhhNhNubh)}(h:ref:`turbo P-state `h]j#)}(hjh]h turbo P-state}(hjhhhNhNubah}(h]h ](j.stdstd-refeh"]h$]h&]uh1j"hjubah}(h]h ]h"]h$]h&]refdocj; refdomainjreftyperef refexplicitrefwarnjAturbouh1hhhhMhjubh).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(h~This attribute will not be exposed if the ``intel_pstate=per_cpu_perf_limits`` argument is present in the kernel command line.h](h*This attribute will not be exposed if the }(hjhhhNhNubjS)}(h$``intel_pstate=per_cpu_perf_limits``h]h intel_pstate=per_cpu_perf_limits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh0 argument is present in the kernel command line.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hX*``min_perf_pct`` Minimum P-state the driver is allowed to set in percent of the maximum supported performance level (the highest supported :ref:`turbo P-state `). This attribute will not be exposed if the ``intel_pstate=per_cpu_perf_limits`` argument is present in the kernel command line. h](j)}(h``min_perf_pct``h]jS)}(hjh]h min_perf_pct}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhhhMhj ubj)}(hhh](j)}(hMinimum P-state the driver is allowed to set in percent of the maximum supported performance level (the highest supported :ref:`turbo P-state `).h](hzMinimum P-state the driver is allowed to set in percent of the maximum supported performance level (the highest supported }(hj(hhhNhNubh)}(h:ref:`turbo P-state `h]j#)}(hj2h]h turbo P-state}(hj4hhhNhNubah}(h]h ](j.stdstd-refeh"]h$]h&]uh1j"hj0ubah}(h]h ]h"]h$]h&]refdocj; refdomainj>reftyperef refexplicitrefwarnjAturbouh1hhhhMhj(ubh).}(hj(hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhj%ubj)}(h~This attribute will not be exposed if the ``intel_pstate=per_cpu_perf_limits`` argument is present in the kernel command line.h](h*This attribute will not be exposed if the }(hjZhhhNhNubjS)}(h$``intel_pstate=per_cpu_perf_limits``h]h intel_pstate=per_cpu_perf_limits}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjZubh0 argument is present in the kernel command line.}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhj%ubeh}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhhhMhjhhubj)}(hX``num_pstates`` Number of P-states supported by the processor (between 0 and 255 inclusive) including both turbo and non-turbo P-states (see :ref:`turbo`). This attribute is present only if the value exposed by it is the same for all of the CPUs in the system. The value of this attribute is not affected by the ``no_turbo`` setting described :ref:`below `. This attribute is read-only. h](j)}(h``num_pstates``h]jS)}(hjh]h num_pstates}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hhh](j)}(hNumber of P-states supported by the processor (between 0 and 255 inclusive) including both turbo and non-turbo P-states (see :ref:`turbo`).h](h}Number of P-states supported by the processor (between 0 and 255 inclusive) including both turbo and non-turbo P-states (see }(hjhhhNhNubh)}(h :ref:`turbo`h]j#)}(hjh]hturbo}(hjhhhNhNubah}(h]h ](j.stdstd-refeh"]h$]h&]uh1j"hjubah}(h]h ]h"]h$]h&]refdocj; refdomainjreftyperef refexplicitrefwarnjAturbouh1hhhhMhjubh).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hhThis attribute is present only if the value exposed by it is the same for all of the CPUs in the system.h]hhThis attribute is present only if the value exposed by it is the same for all of the CPUs in the system.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hoThe value of this attribute is not affected by the ``no_turbo`` setting described :ref:`below `.h](h3The value of this attribute is not affected by the }(hjhhhNhNubjS)}(h ``no_turbo``h]hno_turbo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh setting described }(hjhhhNhNubh)}(h:ref:`below `h]j#)}(hjh]hbelow}(hjhhhNhNubah}(h]h ](j.stdstd-refeh"]h$]h&]uh1j"hjubah}(h]h ]h"]h$]h&]refdocj; refdomainj reftyperef refexplicitrefwarnjA no_turbo_attruh1hhhhMhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hThis attribute is read-only.h]hThis attribute is read-only.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMhjhhubj)}(hX``turbo_pct`` Ratio of the :ref:`turbo range ` size to the size of the entire range of supported P-states, in percent. This attribute is present only if the value exposed by it is the same for all of the CPUs in the system. This attribute is read-only. h](j)}(h ``turbo_pct``h]jS)}(hjHh]h turbo_pct}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjFubah}(h]h ]h"]h$]h&]uh1jhhhMhjBubj)}(hhh](j)}(hoRatio of the :ref:`turbo range ` size to the size of the entire range of supported P-states, in percent.h](h Ratio of the }(hj`hhhNhNubh)}(h:ref:`turbo range `h]j#)}(hjjh]h turbo range}(hjlhhhNhNubah}(h]h ](j.stdstd-refeh"]h$]h&]uh1j"hjhubah}(h]h ]h"]h$]h&]refdocj; refdomainjvreftyperef refexplicitrefwarnjAturbouh1hhhhMhj`ubhH size to the size of the entire range of supported P-states, in percent.}(hj`hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhj]ubj)}(hhThis attribute is present only if the value exposed by it is the same for all of the CPUs in the system.h]hhThis attribute is present only if the value exposed by it is the same for all of the CPUs in the system.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj]ubj)}(hThis attribute is read-only.h]hThis attribute is read-only.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj]ubeh}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhhhMhjhhubeh}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(h.. _no_turbo_attr:h]h}(h]h ]h"]h$]h&]j no-turbo-attruh1jhMDhjhhhhubj)}(hhh](j)}(hXm``no_turbo`` If set (equal to 1), the driver is not allowed to set any turbo P-states (see :ref:`turbo`). If unset (equal to 0, which is the default), turbo P-states can be set by the driver. [Note that ``intel_pstate`` does not support the general ``boost`` attribute (supported by some other scaling drivers) which is replaced by this one.] This attribute does not affect the maximum supported frequency value supplied to the ``CPUFreq`` core and exposed via the policy interface, but it affects the maximum possible value of per-policy P-state limits (see :ref:`policy_attributes_interpretation` below for details). h](j)}(h ``no_turbo``h]jS)}(hjh]hno_turbo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hhh](j)}(hXJIf set (equal to 1), the driver is not allowed to set any turbo P-states (see :ref:`turbo`). If unset (equal to 0, which is the default), turbo P-states can be set by the driver. [Note that ``intel_pstate`` does not support the general ``boost`` attribute (supported by some other scaling drivers) which is replaced by this one.]h](hNIf set (equal to 1), the driver is not allowed to set any turbo P-states (see }(hjhhhNhNubh)}(h :ref:`turbo`h]j#)}(hjh]hturbo}(hjhhhNhNubah}(h]h ](j.stdstd-refeh"]h$]h&]uh1j"hjubah}(h]h ]h"]h$]h&]refdocj; refdomainjreftyperef refexplicitrefwarnjAturbouh1hhhhMhjubhe). If unset (equal to 0, which is the default), turbo P-states can be set by the driver. [Note that }(hjhhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh does not support the general }(hjhhhNhNubjS)}(h ``boost``h]hboost}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubhT attribute (supported by some other scaling drivers) which is replaced by this one.]}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hXThis attribute does not affect the maximum supported frequency value supplied to the ``CPUFreq`` core and exposed via the policy interface, but it affects the maximum possible value of per-policy P-state limits (see :ref:`policy_attributes_interpretation` below for details).h](hUThis attribute does not affect the maximum supported frequency value supplied to the }(hjBhhhNhNubjS)}(h ``CPUFreq``h]hCPUFreq}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjBubhx core and exposed via the policy interface, but it affects the maximum possible value of per-policy P-state limits (see }(hjBhhhNhNubh)}(h':ref:`policy_attributes_interpretation`h]j#)}(hj^h]h policy_attributes_interpretation}(hj`hhhNhNubah}(h]h ](j.stdstd-refeh"]h$]h&]uh1j"hj\ubah}(h]h ]h"]h$]h&]refdocj; refdomainjjreftyperef refexplicitrefwarnjA policy_attributes_interpretationuh1hhhhMhjBubh below for details).}(hjBhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hX&``hwp_dynamic_boost`` This attribute is only present if ``intel_pstate`` works in the :ref:`active mode with the HWP feature enabled ` in the processor. If set (equal to 1), it causes the minimum P-state limit to be increased dynamically for a short time whenever a task previously waiting on I/O is selected to run on a given logical CPU (the purpose of this mechanism is to improve performance). This setting has no effect on logical CPUs whose minimum P-state limit is directly set to the highest non-turbo P-state or above it. h](j)}(h``hwp_dynamic_boost``h]jS)}(hjh]hhwp_dynamic_boost}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hhh](j)}(hXThis attribute is only present if ``intel_pstate`` works in the :ref:`active mode with the HWP feature enabled ` in the processor. If set (equal to 1), it causes the minimum P-state limit to be increased dynamically for a short time whenever a task previously waiting on I/O is selected to run on a given logical CPU (the purpose of this mechanism is to improve performance).h](h"This attribute is only present if }(hjhhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh works in the }(hjhhhNhNubh)}(hA:ref:`active mode with the HWP feature enabled `h]j#)}(hjh]h(active mode with the HWP feature enabled}(hjhhhNhNubah}(h]h ](j.stdstd-refeh"]h$]h&]uh1j"hjubah}(h]h ]h"]h$]h&]refdocj; refdomainjreftyperef refexplicitrefwarnjAactive_mode_hwpuh1hhhhMhjubhX in the processor. If set (equal to 1), it causes the minimum P-state limit to be increased dynamically for a short time whenever a task previously waiting on I/O is selected to run on a given logical CPU (the purpose of this mechanism is to improve performance).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hThis setting has no effect on logical CPUs whose minimum P-state limit is directly set to the highest non-turbo P-state or above it.h]hThis setting has no effect on logical CPUs whose minimum P-state limit is directly set to the highest non-turbo P-state or above it.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMhjhhubeh}(h]jah ]h"] no_turbo_attrah$]h&]uh1jhjhhhhhNj }jjsj }jjsubj)}(h.. _status_attr:h]h}(h]h ]h"]h$]h&]j status-attruh1jhM^hjhhhhubj)}(hhh](j)}(hX"``status`` Operation mode of the driver: "active", "passive" or "off". "active" The driver is functional and in the :ref:`active mode `. "passive" The driver is functional and in the :ref:`passive mode `. "off" The driver is not functional (it is not registered as a scaling driver with the ``CPUFreq`` core). This attribute can be written to in order to change the driver's operation mode or to unregister it. The string written to it must be one of the possible values of it and, if successful, the write will cause the driver to switch over to the operation mode represented by that string - or to be unregistered in the "off" case. [Actually, switching over from the active mode to the passive mode or the other way around causes the driver to be unregistered and registered again with a different set of callbacks, so all of its settings (the global as well as the per-policy ones) are then reset to their default values, possibly depending on the target operation mode.] h](j)}(h ``status``h]jS)}(hj+h]hstatus}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj)ubah}(h]h ]h"]h$]h&]uh1jhhhM"hj%ubj)}(hhh](j)}(h;Operation mode of the driver: "active", "passive" or "off".h]hGOperation mode of the driver: “active”, “passive” or “off”.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM hj@ubj)}(hhh](j)}(hO"active" The driver is functional and in the :ref:`active mode `. h](j)}(h"active"h]h “active”}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjTubj)}(hhh]j)}(hEThe driver is functional and in the :ref:`active mode `.h](h$The driver is functional and in the }(hjihhhNhNubh)}(h :ref:`active mode `h]j#)}(hjsh]h active mode}(hjuhhhNhNubah}(h]h ](j.stdstd-refeh"]h$]h&]uh1j"hjqubah}(h]h ]h"]h$]h&]refdocj; refdomainjreftyperef refexplicitrefwarnjA active_modeuh1hhhhMhjiubh.}(hjihhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhjfubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhhhMhjQubj)}(hR"passive" The driver is functional and in the :ref:`passive mode `. h](j)}(h "passive"h]h “passive”}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hhh]j)}(hGThe driver is functional and in the :ref:`passive mode `.h](h$The driver is functional and in the }(hjhhhNhNubh)}(h":ref:`passive mode `h]j#)}(hjh]h passive mode}(hjhhhNhNubah}(h]h ](j.stdstd-refeh"]h$]h&]uh1j"hjubah}(h]h ]h"]h$]h&]refdocj; refdomainjreftyperef refexplicitrefwarnjA passive_modeuh1hhhhMhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMhjQubj)}(hi"off" The driver is not functional (it is not registered as a scaling driver with the ``CPUFreq`` core). h](j)}(h"off"h]h “off”}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hhh]j)}(hbThe driver is not functional (it is not registered as a scaling driver with the ``CPUFreq`` core).h](hPThe driver is not functional (it is not registered as a scaling driver with the }(hjhhhNhNubjS)}(h ``CPUFreq``h]hCPUFreq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh core).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMhjQubeh}(h]h ]h"]h$]h&]uh1jhj@ubj)}(hXThis attribute can be written to in order to change the driver's operation mode or to unregister it. The string written to it must be one of the possible values of it and, if successful, the write will cause the driver to switch over to the operation mode represented by that string - or to be unregistered in the "off" case. [Actually, switching over from the active mode to the passive mode or the other way around causes the driver to be unregistered and registered again with a different set of callbacks, so all of its settings (the global as well as the per-policy ones) are then reset to their default values, possibly depending on the target operation mode.]h]hXThis attribute can be written to in order to change the driver’s operation mode or to unregister it. The string written to it must be one of the possible values of it and, if successful, the write will cause the driver to switch over to the operation mode represented by that string - or to be unregistered in the “off” case. [Actually, switching over from the active mode to the passive mode or the other way around causes the driver to be unregistered and registered again with a different set of callbacks, so all of its settings (the global as well as the per-policy ones) are then reset to their default values, possibly depending on the target operation mode.]}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj@ubeh}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhhhM"hj"ubj)}(hXW``energy_efficiency`` This attribute is only present on platforms with CPUs matching the Kaby Lake or Coffee Lake desktop CPU model. By default, energy-efficiency optimizations are disabled on these CPU models if HWP is enabled. Enabling energy-efficiency optimizations may limit maximum operating frequency with or without the HWP feature. With HWP enabled, the optimizations are done only in the turbo frequency range. Without it, they are done in the entire available frequency range. Setting this attribute to "1" enables the energy-efficiency optimizations and setting to "0" disables them. h](j)}(h``energy_efficiency``h]jS)}(hjah]henergy_efficiency}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj_ubah}(h]h ]h"]h$]h&]uh1jhhhM-hj[ubj)}(hhh]j)}(hX@This attribute is only present on platforms with CPUs matching the Kaby Lake or Coffee Lake desktop CPU model. By default, energy-efficiency optimizations are disabled on these CPU models if HWP is enabled. Enabling energy-efficiency optimizations may limit maximum operating frequency with or without the HWP feature. With HWP enabled, the optimizations are done only in the turbo frequency range. Without it, they are done in the entire available frequency range. Setting this attribute to "1" enables the energy-efficiency optimizations and setting to "0" disables them.h]hXHThis attribute is only present on platforms with CPUs matching the Kaby Lake or Coffee Lake desktop CPU model. By default, energy-efficiency optimizations are disabled on these CPU models if HWP is enabled. Enabling energy-efficiency optimizations may limit maximum operating frequency with or without the HWP feature. With HWP enabled, the optimizations are done only in the turbo frequency range. Without it, they are done in the entire available frequency range. Setting this attribute to “1” enables the energy-efficiency optimizations and setting to “0” disables them.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM%hjvubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhhhM-hj"hhubeh}(h]j!ah ]h"] status_attrah$]h&]uh1jhjhhhhhNj }jjsj }j!jsubj)}(h%.. _policy_attributes_interpretation:h]h}(h]h ]h"]h$]h&]j policy-attributes-interpretationuh1jhMhjhhhhubeh}(h](jid6eh ]h"](global attributesglobal_attributeseh$]h&]uh1jGhjhhhhhMj }jjsj }jjsubjH)}(hhh](jM)}(h#Interpretation of Policy Attributesh]h#Interpretation of Policy Attributes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhhhhhM2ubj)}(hThe interpretation of some ``CPUFreq`` policy attributes described in Documentation/admin-guide/pm/cpufreq.rst is special with ``intel_pstate`` as the current scaling driver and it generally depends on the driver's :ref:`operation mode `.h](hThe interpretation of some }(hjhhhNhNubjS)}(h ``CPUFreq``h]hCPUFreq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubhY policy attributes described in Documentation/admin-guide/pm/cpufreq.rst is special with }(hjhhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubhJ as the current scaling driver and it generally depends on the driver’s }(hjhhhNhNubh)}(h':ref:`operation mode `h]j#)}(hjh]hoperation mode}(hjhhhNhNubah}(h]h ](j.stdstd-refeh"]h$]h&]uh1j"hjubah}(h]h ]h"]h$]h&]refdocj; refdomainjreftyperef refexplicitrefwarnjAoperation_modesuh1hhhhM4hjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhM4hjhhubj)}(hXFirst of all, the values of the ``cpuinfo_max_freq``, ``cpuinfo_min_freq`` and ``scaling_cur_freq`` attributes are produced by applying a processor-specific multiplier to the internal P-state representation used by ``intel_pstate``. Also, the values of the ``scaling_max_freq`` and ``scaling_min_freq`` attributes are capped by the frequency corresponding to the maximum P-state that the driver is allowed to set.h](h First of all, the values of the }(hjhhhNhNubjS)}(h``cpuinfo_max_freq``h]hcpuinfo_max_freq}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh, }(hjhhhNhNubjS)}(h``cpuinfo_min_freq``h]hcpuinfo_min_freq}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh and }(hjhhhNhNubjS)}(h``scaling_cur_freq``h]hscaling_cur_freq}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubht attributes are produced by applying a processor-specific multiplier to the internal P-state representation used by }(hjhhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh. Also, the values of the }(hjhhhNhNubjS)}(h``scaling_max_freq``h]hscaling_max_freq}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh and }(hjhhhNhNubjS)}(h``scaling_min_freq``h]hscaling_min_freq}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubho attributes are capped by the frequency corresponding to the maximum P-state that the driver is allowed to set.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhM9hjhhubj)}(hX@If the ``no_turbo`` :ref:`global attribute ` is set, the driver is not allowed to use turbo P-states, so the maximum value of ``scaling_max_freq`` and ``scaling_min_freq`` is limited to the maximum non-turbo P-state frequency. Accordingly, setting ``no_turbo`` causes ``scaling_max_freq`` and ``scaling_min_freq`` to go down to that value if they were above it before. However, the old values of ``scaling_max_freq`` and ``scaling_min_freq`` will be restored after unsetting ``no_turbo``, unless these attributes have been written to after ``no_turbo`` was set.h](hIf the }(hjhhhNhNubjS)}(h ``no_turbo``h]hno_turbo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh }(hjhhhNhNubh)}(h':ref:`global attribute `h]j#)}(hjh]hglobal attribute}(hjhhhNhNubah}(h]h ](j.stdstd-refeh"]h$]h&]uh1j"hjubah}(h]h ]h"]h$]h&]refdocj; refdomainjreftyperef refexplicitrefwarnjA no_turbo_attruh1hhhhM@hjubhR is set, the driver is not allowed to use turbo P-states, so the maximum value of }(hjhhhNhNubjS)}(h``scaling_max_freq``h]hscaling_max_freq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh and }(hjhhhNhNubjS)}(h``scaling_min_freq``h]hscaling_min_freq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubhM is limited to the maximum non-turbo P-state frequency. Accordingly, setting }(hjhhhNhNubjS)}(h ``no_turbo``h]hno_turbo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh causes }(hjhhhNhNubjS)}(h``scaling_max_freq``h]hscaling_max_freq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh and }(hjhhhNhNubjS)}(h``scaling_min_freq``h]hscaling_min_freq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubhS to go down to that value if they were above it before. However, the old values of }(hjhhhNhNubjS)}(h``scaling_max_freq``h]hscaling_max_freq}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh and }hjsbjS)}(h``scaling_min_freq``h]hscaling_min_freq}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh" will be restored after unsetting }(hjhhhNhNubjS)}(h ``no_turbo``h]hno_turbo}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh5, unless these attributes have been written to after }(hjhhhNhNubjS)}(h ``no_turbo``h]hno_turbo}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh was set.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhM@hjhhubj)}(hIf ``no_turbo`` is not set, the maximum possible value of ``scaling_max_freq`` and ``scaling_min_freq`` corresponds to the maximum supported turbo P-state, which also is the value of ``cpuinfo_max_freq`` in either case.h](hIf }(hjyhhhNhNubjS)}(h ``no_turbo``h]hno_turbo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjyubh+ is not set, the maximum possible value of }(hjyhhhNhNubjS)}(h``scaling_max_freq``h]hscaling_max_freq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjyubh and }(hjyhhhNhNubjS)}(h``scaling_min_freq``h]hscaling_min_freq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjyubhP corresponds to the maximum supported turbo P-state, which also is the value of }(hjyhhhNhNubjS)}(h``cpuinfo_max_freq``h]hcpuinfo_max_freq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjyubh in either case.}(hjyhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMJhjhhubj)}(h}Next, the following policy attributes have special meaning if ``intel_pstate`` works in the :ref:`active mode `:h](h>Next, the following policy attributes have special meaning if }(hjhhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh works in the }(hjhhhNhNubh)}(h :ref:`active mode `h]j#)}(hjh]h active mode}(hjhhhNhNubah}(h]h ](j.stdstd-refeh"]h$]h&]uh1j"hjubah}(h]h ]h"]h$]h&]refdocj; refdomainjreftyperef refexplicitrefwarnjA active_modeuh1hhhhMNhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMNhjhhubj)}(hhh](j)}(hc``scaling_available_governors`` List of P-state selection algorithms provided by ``intel_pstate``. h](j)}(h``scaling_available_governors``h]jS)}(hjh]hscaling_available_governors}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhhhMRhjubj)}(hhh]j)}(hBList of P-state selection algorithms provided by ``intel_pstate``.h](h1List of P-state selection algorithms provided by }(hj4hhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj4ubh.}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMRhj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMRhjubj)}(hv``scaling_governor`` P-state selection algorithm provided by ``intel_pstate`` currently in use with the given policy. h](j)}(h``scaling_governor``h]jS)}(hjfh]hscaling_governor}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjdubah}(h]h ]h"]h$]h&]uh1jhhhMVhj`ubj)}(hhh]j)}(h`P-state selection algorithm provided by ``intel_pstate`` currently in use with the given policy.h](h(P-state selection algorithm provided by }(hj~hhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj~ubh( currently in use with the given policy.}(hj~hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMUhj{ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhhhMVhjhhubj)}(h``scaling_cur_freq`` Frequency of the average P-state of the CPU represented by the given policy for the time interval between the last two invocations of the driver's utilization update callback by the CPU scheduler for that CPU. h](j)}(h``scaling_cur_freq``h]jS)}(hjh]hscaling_cur_freq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhhhM[hjubj)}(hhh]j)}(hFrequency of the average P-state of the CPU represented by the given policy for the time interval between the last two invocations of the driver's utilization update callback by the CPU scheduler for that CPU.h]hFrequency of the average P-state of the CPU represented by the given policy for the time interval between the last two invocations of the driver’s utilization update callback by the CPU scheduler for that CPU.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMYhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhM[hjhhubeh}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(hTOne more policy attribute is present if the HWP feature is enabled in the processor:h]hTOne more policy attribute is present if the HWP feature is enabled in the processor:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM]hjhhubj)}(hhh]j)}(hw``base_frequency`` Shows the base frequency of the CPU. Any frequency above this will be in the turbo frequency range. h](j)}(h``base_frequency``h]jS)}(hjh]hbase_frequency}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhhhMbhjubj)}(hhh]j)}(hcShows the base frequency of the CPU. Any frequency above this will be in the turbo frequency range.h]hcShows the base frequency of the CPU. Any frequency above this will be in the turbo frequency range.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMahjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMbhjubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(hsThe meaning of these attributes in the :ref:`passive mode ` is the same as for other scaling drivers.h](h'The meaning of these attributes in the }(hj7hhhNhNubh)}(h":ref:`passive mode `h]j#)}(hjAh]h passive mode}(hjChhhNhNubah}(h]h ](j.stdstd-refeh"]h$]h&]uh1j"hj?ubah}(h]h ]h"]h$]h&]refdocj; refdomainjMreftyperef refexplicitrefwarnjA passive_modeuh1hhhhMdhj7ubh* is the same as for other scaling drivers.}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMdhjhhubj)}(hX Additionally, the value of the ``scaling_driver`` attribute for ``intel_pstate`` depends on the operation mode of the driver. Namely, it is either "intel_pstate" (in the :ref:`active mode `) or "intel_cpufreq" (in the :ref:`passive mode `).h](hAdditionally, the value of the }(hjihhhNhNubjS)}(h``scaling_driver``h]hscaling_driver}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjiubh attribute for }(hjihhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjiubh_ depends on the operation mode of the driver. Namely, it is either “intel_pstate” (in the }(hjihhhNhNubh)}(h :ref:`active mode `h]j#)}(hjh]h active mode}(hjhhhNhNubah}(h]h ](j.stdstd-refeh"]h$]h&]uh1j"hjubah}(h]h ]h"]h$]h&]refdocj; refdomainjreftyperef refexplicitrefwarnjA active_modeuh1hhhhMghjiubh!) or “intel_cpufreq” (in the }(hjihhhNhNubh)}(h":ref:`passive mode `h]j#)}(hjh]h passive mode}(hjhhhNhNubah}(h]h ](j.stdstd-refeh"]h$]h&]uh1j"hjubah}(h]h ]h"]h$]h&]refdocj; refdomainjreftyperef refexplicitrefwarnjA passive_modeuh1hhhhMghjiubh).}(hjihhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMghjhhubj)}(h.. _pstate_limits_coordination:h]h}(h]h ]h"]h$]h&]jpstate-limits-coordinationuh1jhMhjhhhhubeh}(h](#interpretation-of-policy-attributesjeh ]h"](#interpretation of policy attributes policy_attributes_interpretationeh$]h&]uh1jGhjhhhhhM2j }jjsj }jjsubjH)}(hhh](jM)}(hCoordination of P-State Limitsh]hCoordination of P-State Limits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhhhhhMoubj)}(hX}``intel_pstate`` allows P-state limits to be set in two ways: with the help of the ``max_perf_pct`` and ``min_perf_pct`` :ref:`global attributes ` or via the ``scaling_max_freq`` and ``scaling_min_freq`` ``CPUFreq`` policy attributes. The coordination between those limits is based on the following rules, regardless of the current operation mode of the driver:h](jS)}(h``intel_pstate``h]h intel_pstate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubhC allows P-state limits to be set in two ways: with the help of the }(hj hhhNhNubjS)}(h``max_perf_pct``h]h max_perf_pct}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubh and }(hj hhhNhNubjS)}(h``min_perf_pct``h]h min_perf_pct}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubh }(hj hhhNhNubh)}(h,:ref:`global attributes `h]j#)}(hjFh]hglobal attributes}(hjHhhhNhNubah}(h]h ](j.stdstd-refeh"]h$]h&]uh1j"hjDubah}(h]h ]h"]h$]h&]refdocj; refdomainjRreftyperef refexplicitrefwarnjAglobal_attributesuh1hhhhMqhj ubh or via the }(hj hhhNhNubjS)}(h``scaling_max_freq``h]hscaling_max_freq}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubh and }hj sbjS)}(h``scaling_min_freq``h]hscaling_min_freq}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubh }(hj hhhNhNubjS)}(h ``CPUFreq``h]hCPUFreq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubh policy attributes. The coordination between those limits is based on the following rules, regardless of the current operation mode of the driver:}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMqhjhhubj@)}(hX*1. All CPUs are affected by the global limits (that is, none of them can be requested to run faster than the global maximum and none of them can be requested to run slower than the global minimum). 2. Each individual CPU is affected by its own per-policy limits (that is, it cannot be requested to run faster than its own per-policy maximum and it cannot be requested to run slower than its own per-policy minimum). The effective performance depends on whether the platform supports per core P-states, hyper-threading is enabled and on current performance requests from other CPUs. When platform doesn't support per core P-states, the effective performance can be more than the policy limits set on a CPU, if other CPUs are requesting higher performance at that moment. Even with per core P-states support, when hyper-threading is enabled, if the sibling CPU is requesting higher performance, the other siblings will get higher performance than their policy limits. 3. The global and per-policy limits can be set independently. h]henumerated_list)}(hhh](jK)}(hAll CPUs are affected by the global limits (that is, none of them can be requested to run faster than the global maximum and none of them can be requested to run slower than the global minimum). h]j)}(hAll CPUs are affected by the global limits (that is, none of them can be requested to run faster than the global maximum and none of them can be requested to run slower than the global minimum).h]hAll CPUs are affected by the global limits (that is, none of them can be requested to run faster than the global maximum and none of them can be requested to run slower than the global minimum).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMwhjubah}(h]h ]h"]h$]h&]uh1jJhjubjK)}(hXEach individual CPU is affected by its own per-policy limits (that is, it cannot be requested to run faster than its own per-policy maximum and it cannot be requested to run slower than its own per-policy minimum). The effective performance depends on whether the platform supports per core P-states, hyper-threading is enabled and on current performance requests from other CPUs. When platform doesn't support per core P-states, the effective performance can be more than the policy limits set on a CPU, if other CPUs are requesting higher performance at that moment. Even with per core P-states support, when hyper-threading is enabled, if the sibling CPU is requesting higher performance, the other siblings will get higher performance than their policy limits. h]j)}(hXEach individual CPU is affected by its own per-policy limits (that is, it cannot be requested to run faster than its own per-policy maximum and it cannot be requested to run slower than its own per-policy minimum). The effective performance depends on whether the platform supports per core P-states, hyper-threading is enabled and on current performance requests from other CPUs. When platform doesn't support per core P-states, the effective performance can be more than the policy limits set on a CPU, if other CPUs are requesting higher performance at that moment. Even with per core P-states support, when hyper-threading is enabled, if the sibling CPU is requesting higher performance, the other siblings will get higher performance than their policy limits.h]hXEach individual CPU is affected by its own per-policy limits (that is, it cannot be requested to run faster than its own per-policy maximum and it cannot be requested to run slower than its own per-policy minimum). The effective performance depends on whether the platform supports per core P-states, hyper-threading is enabled and on current performance requests from other CPUs. When platform doesn’t support per core P-states, the effective performance can be more than the policy limits set on a CPU, if other CPUs are requesting higher performance at that moment. Even with per core P-states support, when hyper-threading is enabled, if the sibling CPU is requesting higher performance, the other siblings will get higher performance than their policy limits.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM{hjubah}(h]h ]h"]h$]h&]uh1jJhjubjK)}(h;The global and per-policy limits can be set independently. h]j)}(h:The global and per-policy limits can be set independently.h]h:The global and per-policy limits can be set independently.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjubah}(h]h ]h"]h$]h&]uh1jJhjubeh}(h]h ]h"]h$]h&]enumtypearabicprefixhsuffix.uh1jhjubah}(h]h ]h"]h$]h&]uh1j?hhhMwhjhhubj)}(hXIn the :ref:`active mode with the HWP feature enabled `, the resulting effective values are written into hardware registers whenever the limits change in order to request its internal P-state selection logic to always set P-states within these limits. Otherwise, the limits are taken into account by scaling governors (in the :ref:`passive mode `) and by the driver every time before setting a new P-state for a CPU.h](hIn the }(hj hhhNhNubh)}(hA:ref:`active mode with the HWP feature enabled `h]j#)}(hj h]h(active mode with the HWP feature enabled}(hj hhhNhNubah}(h]h ](j.stdstd-refeh"]h$]h&]uh1j"hj ubah}(h]h ]h"]h$]h&]refdocj; refdomainj reftyperef refexplicitrefwarnjAactive_mode_hwpuh1hhhhMhj ubhX, the resulting effective values are written into hardware registers whenever the limits change in order to request its internal P-state selection logic to always set P-states within these limits. Otherwise, the limits are taken into account by scaling governors (in the }(hj hhhNhNubh)}(h":ref:`passive mode `h]j#)}(hj4 h]h passive mode}(hj6 hhhNhNubah}(h]h ](j.stdstd-refeh"]h$]h&]uh1j"hj2 ubah}(h]h ]h"]h$]h&]refdocj; refdomainj@ reftyperef refexplicitrefwarnjA passive_modeuh1hhhhMhj ubhF) and by the driver every time before setting a new P-state for a CPU.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhjhhubj)}(hAdditionally, if the ``intel_pstate=per_cpu_perf_limits`` command line argument is passed to the kernel, ``max_perf_pct`` and ``min_perf_pct`` are not exposed at all and the only way to set the limits is by using the policy attributes.h](hAdditionally, if the }(hj\ hhhNhNubjS)}(h$``intel_pstate=per_cpu_perf_limits``h]h intel_pstate=per_cpu_perf_limits}(hjd hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj\ ubh0 command line argument is passed to the kernel, }(hj\ hhhNhNubjS)}(h``max_perf_pct``h]h max_perf_pct}(hjv hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj\ ubh and }(hj\ hhhNhNubjS)}(h``min_perf_pct``h]h min_perf_pct}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj\ ubh] are not exposed at all and the only way to set the limits is by using the policy attributes.}(hj\ hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhjhhubj)}(h.. _energy_performance_hints:h]h}(h]h ]h"]h$]h&]jenergy-performance-hintsuh1jhMhjhhhhubeh}(h](coordination-of-p-state-limitsjeh ]h"](coordination of p-state limitspstate_limits_coordinationeh$]h&]uh1jGhjhhhhhMoj }j jsj }jjsubjH)}(hhh](jM)}(hEnergy vs Performance Hintsh]hEnergy vs Performance Hints}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hhhhhMubj)}(hXuIf the hardware-managed P-states (HWP) is enabled in the processor, additional attributes, intended to allow user space to help ``intel_pstate`` to adjust the processor's internal P-state selection logic by focusing it on performance or on energy-efficiency, or somewhere between the two extremes, are present in every ``CPUFreq`` policy directory in ``sysfs``. They are :h](hIf the hardware-managed P-states (HWP) is enabled in the processor, additional attributes, intended to allow user space to help }(hj hhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubh to adjust the processor’s internal P-state selection logic by focusing it on performance or on energy-efficiency, or somewhere between the two extremes, are present in every }(hj hhhNhNubjS)}(h ``CPUFreq``h]hCPUFreq}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubh policy directory in }(hj hhhNhNubjS)}(h ``sysfs``h]hsysfs}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubh . They are :}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhj hhubj)}(hhh](j)}(h``energy_performance_preference`` Current value of the energy vs performance hint for the given policy (or the CPU represented by it). The hint can be changed by writing to this attribute. h](j)}(h!``energy_performance_preference``h]jS)}(hj!h]henergy_performance_preference}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj!ubah}(h]h ]h"]h$]h&]uh1jhhhMhj!ubj)}(hhh](j)}(hdCurrent value of the energy vs performance hint for the given policy (or the CPU represented by it).h]hdCurrent value of the energy vs performance hint for the given policy (or the CPU represented by it).}(hj,!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj)!ubj)}(h5The hint can be changed by writing to this attribute.h]h5The hint can be changed by writing to this attribute.}(hj:!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj)!ubeh}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhhhMhj !ubj)}(hX4``energy_performance_available_preferences`` List of strings that can be written to the ``energy_performance_preference`` attribute. They represent different energy vs performance hints and should be self-explanatory, except that ``default`` represents whatever hint value was set by the platform firmware. h](j)}(h,``energy_performance_available_preferences``h]jS)}(hjZ!h]h(energy_performance_available_preferences}(hj\!hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjX!ubah}(h]h ]h"]h$]h&]uh1jhhhMhjT!ubj)}(hhh](j)}(hWList of strings that can be written to the ``energy_performance_preference`` attribute.h](h+List of strings that can be written to the }(hjr!hhhNhNubjS)}(h!``energy_performance_preference``h]henergy_performance_preference}(hjz!hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjr!ubh attribute.}(hjr!hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhjo!ubj)}(hThey represent different energy vs performance hints and should be self-explanatory, except that ``default`` represents whatever hint value was set by the platform firmware.h](haThey represent different energy vs performance hints and should be self-explanatory, except that }(hj!hhhNhNubjS)}(h ``default``h]hdefault}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj!ubhA represents whatever hint value was set by the platform firmware.}(hj!hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhjo!ubeh}(h]h ]h"]h$]h&]uh1jhjT!ubeh}(h]h ]h"]h$]h&]uh1jhhhMhj !hhubeh}(h]h ]h"]h$]h&]uh1jhj hhhhhNubj)}(hXStrings written to the ``energy_performance_preference`` attribute are internally translated to integer values written to the processor's Energy-Performance Preference (EPP) knob (if supported) or its Energy-Performance Bias (EPB) knob. It is also possible to write a positive integer value between 0 to 255, if the EPP feature is present. If the EPP feature is not present, writing integer value to this attribute is not supported. In this case, user can use the "/sys/devices/system/cpu/cpu*/power/energy_perf_bias" interface.h](hStrings written to the }(hj!hhhNhNubjS)}(h!``energy_performance_preference``h]henergy_performance_preference}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj!ubhX attribute are internally translated to integer values written to the processor’s Energy-Performance Preference (EPP) knob (if supported) or its Energy-Performance Bias (EPB) knob. It is also possible to write a positive integer value between 0 to 255, if the EPP feature is present. If the EPP feature is not present, writing integer value to this attribute is not supported. In this case, user can use the “/sys/devices/system/cpu/cpu*/power/energy_perf_bias” interface.}(hj!hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhj hhubj)}(hXr[Note that tasks may by migrated from one CPU to another by the scheduler's load-balancing algorithm and if different energy vs performance hints are set for those CPUs, that may lead to undesirable outcomes. To avoid such issues it is better to set the same energy vs performance hint for all CPUs or to pin every task potentially sensitive to them to a specific CPU.]h]hXt[Note that tasks may by migrated from one CPU to another by the scheduler’s load-balancing algorithm and if different energy vs performance hints are set for those CPUs, that may lead to undesirable outcomes. To avoid such issues it is better to set the same energy vs performance hint for all CPUs or to pin every task potentially sensitive to them to a specific CPU.]}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj hhubj)}(h.. _acpi-cpufreq:h]h}(h]h ]h"]h$]h&]j acpi-cpufrequh1jhMhj hhhhubeh}(h](energy-vs-performance-hintsj eh ]h"](energy vs performance hintsenergy_performance_hintseh$]h&]uh1jGhjhhhhhMj }j"j sj }j j subeh}(h]user-space-interface-in-sysfsah ]h"]user space interface in sysfsah$]h&]uh1jGhjIhhhhhMubjH)}(hhh](jM)}(h$``intel_pstate`` vs ``acpi-cpufreq``h](jS)}(h``intel_pstate``h]h intel_pstate}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj"ubh vs }(hj"hhhNhNubjS)}(h``acpi-cpufreq``h]h acpi-cpufreq}(hj)"hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj"ubeh}(h]h ]h"]h$]h&]uh1jLhj"hhhhhMubj)}(hXFOn the majority of systems supported by ``intel_pstate``, the ACPI tables provided by the platform firmware contain ``_PSS`` objects returning information that can be used for CPU performance scaling (refer to the ACPI specification [3]_ for details on the ``_PSS`` objects and the format of the information returned by them).h](h(On the majority of systems supported by }(hj="hhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hjE"hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj="ubh<, the ACPI tables provided by the platform firmware contain }(hj="hhhNhNubjS)}(h``_PSS``h]h_PSS}(hjW"hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj="ubhm objects returning information that can be used for CPU performance scaling (refer to the ACPI specification }(hj="hhhNhNubj)}(h[3]_h]h3}(hji"hhhNhNubah}(h]id7ah ]h"]h$]h&]jid10jj;uh1jhj="jKubh for details on the }(hj="hhhNhNubjS)}(h``_PSS``h]h_PSS}(hj}"hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj="ubh= objects and the format of the information returned by them).}(hj="hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhj"hhubj)}(hX+The information returned by the ACPI ``_PSS`` objects is used by the ``acpi-cpufreq`` scaling driver. On systems supported by ``intel_pstate`` the ``acpi-cpufreq`` driver uses the same hardware CPU performance scaling interface, but the set of P-states it can use is limited by the ``_PSS`` output.h](h%The information returned by the ACPI }(hj"hhhNhNubjS)}(h``_PSS``h]h_PSS}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj"ubh objects is used by the }(hj"hhhNhNubjS)}(h``acpi-cpufreq``h]h acpi-cpufreq}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj"ubh* scaling driver. On systems supported by }(hj"hhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj"ubh the }(hj"hhhNhNubjS)}(h``acpi-cpufreq``h]h acpi-cpufreq}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj"ubhw driver uses the same hardware CPU performance scaling interface, but the set of P-states it can use is limited by the }(hj"hhhNhNubjS)}(h``_PSS``h]h_PSS}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj"ubh output.}(hj"hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhj"hhubj)}(hXOn those systems each ``_PSS`` object returns a list of P-states supported by the corresponding CPU which basically is a subset of the P-states range that can be used by ``intel_pstate`` on the same system, with one exception: the whole :ref:`turbo range ` is represented by one item in it (the topmost one). By convention, the frequency returned by ``_PSS`` for that item is greater by 1 MHz than the frequency of the highest non-turbo P-state listed by it, but the corresponding P-state representation (following the hardware specification) returned for it matches the maximum supported turbo P-state (or is the special value 255 meaning essentially "go as high as you can get").h](hOn those systems each }(hj"hhhNhNubjS)}(h``_PSS``h]h_PSS}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj"ubh object returns a list of P-states supported by the corresponding CPU which basically is a subset of the P-states range that can be used by }(hj"hhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj"ubh3 on the same system, with one exception: the whole }(hj"hhhNhNubh)}(h:ref:`turbo range `h]j#)}(hj+#h]h turbo range}(hj-#hhhNhNubah}(h]h ](j.stdstd-refeh"]h$]h&]uh1j"hj)#ubah}(h]h ]h"]h$]h&]refdocj; refdomainj7#reftyperef refexplicitrefwarnjAturbouh1hhhhMhj"ubh^ is represented by one item in it (the topmost one). By convention, the frequency returned by }(hj"hhhNhNubjS)}(h``_PSS``h]h_PSS}(hjM#hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj"ubhXG for that item is greater by 1 MHz than the frequency of the highest non-turbo P-state listed by it, but the corresponding P-state representation (following the hardware specification) returned for it matches the maximum supported turbo P-state (or is the special value 255 meaning essentially “go as high as you can get”).}(hj"hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhj"hhubj)}(hX|The list of P-states returned by ``_PSS`` is reflected by the table of available frequencies supplied by ``acpi-cpufreq`` to the ``CPUFreq`` core and scaling governors and the minimum and maximum supported frequencies reported by it come from that list as well. In particular, given the special representation of the turbo range described above, this means that the maximum supported frequency reported by ``acpi-cpufreq`` is higher by 1 MHz than the frequency of the highest supported non-turbo P-state listed by ``_PSS`` which, of course, affects decisions made by the scaling governors, except for ``powersave`` and ``performance``.h](h!The list of P-states returned by }(hje#hhhNhNubjS)}(h``_PSS``h]h_PSS}(hjm#hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhje#ubh@ is reflected by the table of available frequencies supplied by }(hje#hhhNhNubjS)}(h``acpi-cpufreq``h]h acpi-cpufreq}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhje#ubh to the }(hje#hhhNhNubjS)}(h ``CPUFreq``h]hCPUFreq}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhje#ubhX  core and scaling governors and the minimum and maximum supported frequencies reported by it come from that list as well. In particular, given the special representation of the turbo range described above, this means that the maximum supported frequency reported by }(hje#hhhNhNubjS)}(h``acpi-cpufreq``h]h acpi-cpufreq}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhje#ubh\ is higher by 1 MHz than the frequency of the highest supported non-turbo P-state listed by }(hje#hhhNhNubjS)}(h``_PSS``h]h_PSS}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhje#ubhO which, of course, affects decisions made by the scaling governors, except for }(hje#hhhNhNubjS)}(h ``powersave``h]h powersave}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhje#ubh and }(hje#hhhNhNubjS)}(h``performance``h]h performance}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhje#ubh.}(hje#hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhj"hhubj)}(hX}For example, if a given governor attempts to select a frequency proportional to estimated CPU load and maps the load of 100% to the maximum supported frequency (possibly multiplied by a constant), then it will tend to choose P-states below the turbo threshold if ``acpi-cpufreq`` is used as the scaling driver, because in that case the turbo range corresponds to a small fraction of the frequency band it can use (1 MHz vs 1 GHz or more). In consequence, it will only go to the turbo range for the highest loads and the other loads above 50% that might benefit from running at turbo frequencies will be given non-turbo P-states instead.h](hXFor example, if a given governor attempts to select a frequency proportional to estimated CPU load and maps the load of 100% to the maximum supported frequency (possibly multiplied by a constant), then it will tend to choose P-states below the turbo threshold if }(hj#hhhNhNubjS)}(h``acpi-cpufreq``h]h acpi-cpufreq}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj#ubhXf is used as the scaling driver, because in that case the turbo range corresponds to a small fraction of the frequency band it can use (1 MHz vs 1 GHz or more). In consequence, it will only go to the turbo range for the highest loads and the other loads above 50% that might benefit from running at turbo frequencies will be given non-turbo P-states instead.}(hj#hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhj"hhubj)}(hXOne more issue related to that may appear on systems supporting the :ref:`Configurable TDP feature ` allowing the platform firmware to set the turbo threshold. Namely, if that is not coordinated with the lists of P-states returned by ``_PSS`` properly, there may be more than one item corresponding to a turbo P-state in those lists and there may be a problem with avoiding the turbo range (if desirable or necessary). Usually, to avoid using turbo P-states overall, ``acpi-cpufreq`` simply avoids using the topmost state listed by ``_PSS``, but that is not sufficient when there are other turbo P-states in the list returned by it.h](hDOne more issue related to that may appear on systems supporting the }(hj$hhhNhNubh)}(h':ref:`Configurable TDP feature `h]j#)}(hj$h]hConfigurable TDP feature}(hj$hhhNhNubah}(h]h ](j.stdstd-refeh"]h$]h&]uh1j"hj$ubah}(h]h ]h"]h$]h&]refdocj; refdomainj'$reftyperef refexplicitrefwarnjAturbouh1hhhhMhj$ubh allowing the platform firmware to set the turbo threshold. Namely, if that is not coordinated with the lists of P-states returned by }(hj$hhhNhNubjS)}(h``_PSS``h]h_PSS}(hj=$hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj$ubh properly, there may be more than one item corresponding to a turbo P-state in those lists and there may be a problem with avoiding the turbo range (if desirable or necessary). Usually, to avoid using turbo P-states overall, }(hj$hhhNhNubjS)}(h``acpi-cpufreq``h]h acpi-cpufreq}(hjO$hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj$ubh1 simply avoids using the topmost state listed by }(hj$hhhNhNubjS)}(h``_PSS``h]h_PSS}(hja$hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj$ubh\, but that is not sufficient when there are other turbo P-states in the list returned by it.}(hj$hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhj"hhubj)}(hApart from the above, ``acpi-cpufreq`` works like ``intel_pstate`` in the :ref:`passive mode `, except that the number of P-states it can set is limited to the ones listed by the ACPI ``_PSS`` objects.h](hApart from the above, }(hjy$hhhNhNubjS)}(h``acpi-cpufreq``h]h acpi-cpufreq}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjy$ubh works like }(hjy$hhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjy$ubh in the }(hjy$hhhNhNubh)}(h":ref:`passive mode `h]j#)}(hj$h]h passive mode}(hj$hhhNhNubah}(h]h ](j.stdstd-refeh"]h$]h&]uh1j"hj$ubah}(h]h ]h"]h$]h&]refdocj; refdomainj$reftyperef refexplicitrefwarnjA passive_modeuh1hhhhMhjy$ubhZ, except that the number of P-states it can set is limited to the ones listed by the ACPI }(hjy$hhhNhNubjS)}(h``_PSS``h]h_PSS}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjy$ubh objects.}(hjy$hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhj"hhubeh}(h](intel-pstate-vs-acpi-cpufreqj!eh ]h"](intel_pstate vs acpi-cpufreq acpi-cpufreqeh$]h&]uh1jGhjIhhhhhMj }j$j!sj }j!j!subjH)}(hhh](jM)}(h0Kernel Command Line Options for ``intel_pstate``h](h Kernel Command Line Options for }(hj$hhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj$ubeh}(h]h ]h"]h$]h&]uh1jLhj$hhhhhMubj)}(hSeveral kernel command line options can be used to pass early-configuration-time parameters to ``intel_pstate`` in order to enforce specific behavior of it. All of them have to be prepended with the ``intel_pstate=`` prefix.h](h_Several kernel command line options can be used to pass early-configuration-time parameters to }(hj %hhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj %ubhY in order to enforce specific behavior of it. All of them have to be prepended with the }(hj %hhhNhNubjS)}(h``intel_pstate=``h]h intel_pstate=}(hj%%hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj %ubh prefix.}(hj %hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhj$hhubj)}(hhh](j)}(hm``disable`` Do not register ``intel_pstate`` as the scaling driver even if the processor is supported by it. h](j)}(h ``disable``h]jS)}(hjF%h]hdisable}(hjH%hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjD%ubah}(h]h ]h"]h$]h&]uh1jhhhMhj@%ubj)}(hhh]j)}(h`Do not register ``intel_pstate`` as the scaling driver even if the processor is supported by it.h](hDo not register }(hj^%hhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hjf%hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj^%ubh@ as the scaling driver even if the processor is supported by it.}(hj^%hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhj[%ubah}(h]h ]h"]h$]h&]uh1jhj@%ubeh}(h]h ]h"]h$]h&]uh1jhhhMhj=%ubj)}(h\``active`` Register ``intel_pstate`` in the :ref:`active mode ` to start with. h](j)}(h ``active``h]jS)}(hj%h]hactive}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj%ubah}(h]h ]h"]h$]h&]uh1jhhhMhj%ubj)}(hhh]j)}(hPRegister ``intel_pstate`` in the :ref:`active mode ` to start with.h](h Register }(hj%hhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj%ubh in the }(hj%hhhNhNubh)}(h :ref:`active mode `h]j#)}(hj%h]h active mode}(hj%hhhNhNubah}(h]h ](j.stdstd-refeh"]h$]h&]uh1j"hj%ubah}(h]h ]h"]h$]h&]refdocj; refdomainj%reftyperef refexplicitrefwarnjA active_modeuh1hhhhMhj%ubh to start with.}(hj%hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhj%ubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhhhMhj=%hhubj)}(h_``passive`` Register ``intel_pstate`` in the :ref:`passive mode ` to start with. h](j)}(h ``passive``h]jS)}(hj%h]hpassive}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj%ubah}(h]h ]h"]h$]h&]uh1jhhhM hj%ubj)}(hhh]j)}(hRRegister ``intel_pstate`` in the :ref:`passive mode ` to start with.h](h Register }(hj&hhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj&ubh in the }(hj&hhhNhNubh)}(h":ref:`passive mode `h]j#)}(hj2&h]h passive mode}(hj4&hhhNhNubah}(h]h ](j.stdstd-refeh"]h$]h&]uh1j"hj0&ubah}(h]h ]h"]h$]h&]refdocj; refdomainj>&reftyperef refexplicitrefwarnjA passive_modeuh1hhhhM hj&ubh to start with.}(hj&hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhM hj&ubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhhhM hj=%hhubj)}(hX``force`` Register ``intel_pstate`` as the scaling driver instead of ``acpi-cpufreq`` even if the latter is preferred on the given system. This may prevent some platform features (such as thermal controls and power capping) that rely on the availability of ACPI P-states information from functioning as expected, so it should be used with caution. This option does not work with processors that are not supported by ``intel_pstate`` and on platforms where the ``pcc-cpufreq`` scaling driver is used instead of ``acpi-cpufreq``. h](j)}(h ``force``h]jS)}(hjl&h]hforce}(hjn&hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjj&ubah}(h]h ]h"]h$]h&]uh1jhhhMhjf&ubj)}(hhh](j)}(hRegister ``intel_pstate`` as the scaling driver instead of ``acpi-cpufreq`` even if the latter is preferred on the given system.h](h Register }(hj&hhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj&ubh" as the scaling driver instead of }(hj&hhhNhNubjS)}(h``acpi-cpufreq``h]h acpi-cpufreq}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj&ubh5 even if the latter is preferred on the given system.}(hj&hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhj&ubj)}(hThis may prevent some platform features (such as thermal controls and power capping) that rely on the availability of ACPI P-states information from functioning as expected, so it should be used with caution.h]hThis may prevent some platform features (such as thermal controls and power capping) that rely on the availability of ACPI P-states information from functioning as expected, so it should be used with caution.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj&ubj)}(hThis option does not work with processors that are not supported by ``intel_pstate`` and on platforms where the ``pcc-cpufreq`` scaling driver is used instead of ``acpi-cpufreq``.h](hDThis option does not work with processors that are not supported by }(hj&hhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj&ubh and on platforms where the }(hj&hhhNhNubjS)}(h``pcc-cpufreq``h]h pcc-cpufreq}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj&ubh# scaling driver is used instead of }(hj&hhhNhNubjS)}(h``acpi-cpufreq``h]h acpi-cpufreq}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj&ubh.}(hj&hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhj&ubeh}(h]h ]h"]h$]h&]uh1jhjf&ubeh}(h]h ]h"]h$]h&]uh1jhhhMhj=%hhubj)}(ho``no_hwp`` Do not enable the hardware-managed P-states (HWP) feature even if it is supported by the processor. h](j)}(h ``no_hwp``h]jS)}(hj'h]hno_hwp}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj'ubah}(h]h ]h"]h$]h&]uh1jhhhMhj'ubj)}(hhh]j)}(hcDo not enable the hardware-managed P-states (HWP) feature even if it is supported by the processor.h]hcDo not enable the hardware-managed P-states (HWP) feature even if it is supported by the processor.}(hj2'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj/'ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhhhMhj=%hhubj)}(h``hwp_only`` Register ``intel_pstate`` as the scaling driver only if the hardware-managed P-states (HWP) feature is supported by the processor. h](j)}(h ``hwp_only``h]jS)}(hjR'h]hhwp_only}(hjT'hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjP'ubah}(h]h ]h"]h$]h&]uh1jhhhM hjL'ubj)}(hhh]j)}(hRegister ``intel_pstate`` as the scaling driver only if the hardware-managed P-states (HWP) feature is supported by the processor.h](h Register }(hjj'hhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hjr'hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjj'ubhi as the scaling driver only if the hardware-managed P-states (HWP) feature is supported by the processor.}(hjj'hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhjg'ubah}(h]h ]h"]h$]h&]uh1jhjL'ubeh}(h]h ]h"]h$]h&]uh1jhhhM hj=%hhubj)}(hX0``support_acpi_ppc`` Take ACPI ``_PPC`` performance limits into account. If the preferred power management profile in the FADT (Fixed ACPI Description Table) is set to "Enterprise Server" or "Performance Server", the ACPI ``_PPC`` limits are taken into account by default and this option has no effect. h](j)}(h``support_acpi_ppc``h]jS)}(hj'h]hsupport_acpi_ppc}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj'ubah}(h]h ]h"]h$]h&]uh1jhhhM(hj'ubj)}(hhh](j)}(h3Take ACPI ``_PPC`` performance limits into account.h](h Take ACPI }(hj'hhhNhNubjS)}(h``_PPC``h]h_PPC}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj'ubh! performance limits into account.}(hj'hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhM#hj'ubj)}(hIf the preferred power management profile in the FADT (Fixed ACPI Description Table) is set to "Enterprise Server" or "Performance Server", the ACPI ``_PPC`` limits are taken into account by default and this option has no effect.h](hIf the preferred power management profile in the FADT (Fixed ACPI Description Table) is set to “Enterprise Server” or “Performance Server”, the ACPI }(hj'hhhNhNubjS)}(h``_PPC``h]h_PPC}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj'ubhH limits are taken into account by default and this option has no effect.}(hj'hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhM%hj'ubeh}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhhhM(hj=%hhubj)}(hp``per_cpu_perf_limits`` Use per-logical-CPU P-State limits (see :ref:`pstate_limits_coordination` for details). h](j)}(h``per_cpu_perf_limits``h]jS)}(hj(h]hper_cpu_perf_limits}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj(ubah}(h]h ]h"]h$]h&]uh1jhhhM,hj(ubj)}(hhh]j)}(hWUse per-logical-CPU P-State limits (see :ref:`pstate_limits_coordination` for details).h](h(Use per-logical-CPU P-State limits (see }(hj(hhhNhNubh)}(h!:ref:`pstate_limits_coordination`h]j#)}(hj((h]hpstate_limits_coordination}(hj*(hhhNhNubah}(h]h ](j.stdstd-refeh"]h$]h&]uh1j"hj&(ubah}(h]h ]h"]h$]h&]refdocj; refdomainj4(reftyperef refexplicitrefwarnjApstate_limits_coordinationuh1hhhhM+hj(ubh for details).}(hj(hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhM+hj(ubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhhhM,hj=%hhubj)}(h{``no_cas`` Do not enable :ref:`capacity-aware scheduling ` which is enabled by default on hybrid systems without SMT. h](j)}(h ``no_cas``h]jS)}(hjb(h]hno_cas}(hjd(hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj`(ubah}(h]h ]h"]h$]h&]uh1jhhhM0hj\(ubj)}(hhh]j)}(hoDo not enable :ref:`capacity-aware scheduling ` which is enabled by default on hybrid systems without SMT.h](hDo not enable }(hjz(hhhNhNubh)}(h&:ref:`capacity-aware scheduling `h]j#)}(hj(h]hcapacity-aware scheduling}(hj(hhhNhNubah}(h]h ](j.stdstd-refeh"]h$]h&]uh1j"hj(ubah}(h]h ]h"]h$]h&]refdocj; refdomainj(reftyperef refexplicitrefwarnjAcasuh1hhhhM/hjz(ubh; which is enabled by default on hybrid systems without SMT.}(hjz(hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhM/hjw(ubah}(h]h ]h"]h$]h&]uh1jhj\(ubeh}(h]h ]h"]h$]h&]uh1jhhhM0hj=%hhubeh}(h]h ]h"]h$]h&]uh1jhj$hhhhhNubeh}(h],kernel-command-line-options-for-intel-pstateah ]h"],kernel command line options for intel_pstateah$]h&]uh1jGhjIhhhhhMubjH)}(hhh](jM)}(hDiagnostics and Tuningh]hDiagnostics and Tuning}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj(hhhhhM3ubjH)}(hhh](jM)}(h Trace Eventsh]h Trace Events}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj(hhhhhM6ubj)}(hXdThere are two static trace events that can be used for ``intel_pstate`` diagnostics. One of them is the ``cpu_frequency`` trace event generally used by ``CPUFreq``, and the other one is the ``pstate_sample`` trace event specific to ``intel_pstate``. Both of them are triggered by ``intel_pstate`` only if it works in the :ref:`active mode `.h](h7There are two static trace events that can be used for }(hj(hhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj(ubh" diagnostics. One of them is the }(hj(hhhNhNubjS)}(h``cpu_frequency``h]h cpu_frequency}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj(ubh trace event generally used by }(hj(hhhNhNubjS)}(h ``CPUFreq``h]hCPUFreq}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj(ubh, and the other one is the }(hj(hhhNhNubjS)}(h``pstate_sample``h]h pstate_sample}(hj&)hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj(ubh trace event specific to }(hj(hhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hj8)hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj(ubh!. Both of them are triggered by }(hj(hhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hjJ)hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj(ubh only if it works in the }(hj(hhhNhNubh)}(h :ref:`active mode `h]j#)}(hj^)h]h active mode}(hj`)hhhNhNubah}(h]h ](j.stdstd-refeh"]h$]h&]uh1j"hj\)ubah}(h]h ]h"]h$]h&]refdocj; refdomainjj)reftyperef refexplicitrefwarnjA active_modeuh1hhhhM8hj(ubh.}(hj(hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhM8hj(hhubj)}(hThe following sequence of shell commands can be used to enable them and see their output (if the kernel is generally configured to support event tracing)::h]hThe following sequence of shell commands can be used to enable them and see their output (if the kernel is generally configured to support event tracing):}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM>hj(hhubh literal_block)}(hXb# cd /sys/kernel/tracing/ # echo 1 > events/power/pstate_sample/enable # echo 1 > events/power/cpu_frequency/enable # cat trace gnome-terminal--4510 [001] ..s. 1177.680733: pstate_sample: core_busy=107 scaled=94 from=26 to=26 mperf=1143818 aperf=1230607 tsc=29838618 freq=2474476 cat-5235 [002] ..s. 1177.681723: cpu_frequency: state=2900000 cpu_id=2h]hXb# cd /sys/kernel/tracing/ # echo 1 > events/power/pstate_sample/enable # echo 1 > events/power/cpu_frequency/enable # cat trace gnome-terminal--4510 [001] ..s. 1177.680733: pstate_sample: core_busy=107 scaled=94 from=26 to=26 mperf=1143818 aperf=1230607 tsc=29838618 freq=2474476 cat-5235 [002] ..s. 1177.681723: cpu_frequency: state=2900000 cpu_id=2}hj)sbah}(h]h ]h"]h$]h&]hhuh1j)hhhMAhj(hhubj)}(hXIf ``intel_pstate`` works in the :ref:`passive mode `, the ``cpu_frequency`` trace event will be triggered either by the ``schedutil`` scaling governor (for the policies it is attached to), or by the ``CPUFreq`` core (for the policies with other scaling governors).h](hIf }(hj)hhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj)ubh works in the }(hj)hhhNhNubh)}(h":ref:`passive mode `h]j#)}(hj)h]h passive mode}(hj)hhhNhNubah}(h]h ](j.stdstd-refeh"]h$]h&]uh1j"hj)ubah}(h]h ]h"]h$]h&]refdocj; refdomainj)reftyperef refexplicitrefwarnjA passive_modeuh1hhhhMHhj)ubh, the }(hj)hhhNhNubjS)}(h``cpu_frequency``h]h cpu_frequency}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj)ubh- trace event will be triggered either by the }(hj)hhhNhNubjS)}(h ``schedutil``h]h schedutil}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj)ubhB scaling governor (for the policies it is attached to), or by the }(hj)hhhNhNubjS)}(h ``CPUFreq``h]hCPUFreq}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj)ubh6 core (for the policies with other scaling governors).}(hj)hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMHhj(hhubeh}(h] trace-eventsah ]h"] trace eventsah$]h&]uh1jGhj(hhhhhM6ubjH)}(hhh](jM)}(h ``ftrace``h]jS)}(hj+*h]hftrace}(hj-*hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj)*ubah}(h]h ]h"]h$]h&]uh1jLhj&*hhhhhMNubj)}(hThe ``ftrace`` interface can be used for low-level diagnostics of ``intel_pstate``. For example, to check how often the function to set a P-state is called, the ``ftrace`` filter can be set to :c:func:`intel_pstate_set_pstate`::h](hThe }(hj@*hhhNhNubjS)}(h ``ftrace``h]hftrace}(hjH*hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj@*ubh4 interface can be used for low-level diagnostics of }(hj@*hhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hjZ*hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj@*ubhP. For example, to check how often the function to set a P-state is called, the }(hj@*hhhNhNubjS)}(h ``ftrace``h]hftrace}(hjl*hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj@*ubh filter can be set to }(hj@*hhhNhNubh)}(h!:c:func:`intel_pstate_set_pstate`h]jS)}(hj*h]hintel_pstate_set_pstate()}(hj*hhhNhNubah}(h]h ](j.j c-funceh"]h$]h&]uh1jRhj~*ubah}(h]h ]h"]h$]h&]refdocj; refdomainj reftypefunc refexplicitrefwarnjAintel_pstate_set_pstateuh1hhhhMPhj@*ubh:}(hj@*hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMPhj&*hhubj))}(hX'# cd /sys/kernel/tracing/ # cat available_filter_functions | grep -i pstate intel_pstate_set_pstate intel_pstate_cpu_init ... # echo intel_pstate_set_pstate > set_ftrace_filter # echo function > current_tracer # cat trace | head -15 # tracer: function # # entries-in-buffer/entries-written: 80/80 #P:4 # # _-----=> irqs-off # / _----=> need-resched # | / _---=> hardirq/softirq # || / _--=> preempt-depth # ||| / delay # TASK-PID CPU# |||| TIMESTAMP FUNCTION # | | | |||| | | Xorg-3129 [000] ..s. 2537.644844: intel_pstate_set_pstate <-intel_pstate_timer_func gnome-terminal--4510 [002] ..s. 2537.649844: intel_pstate_set_pstate <-intel_pstate_timer_func gnome-shell-3409 [001] ..s. 2537.650850: intel_pstate_set_pstate <-intel_pstate_timer_func -0 [000] ..s. 2537.654843: intel_pstate_set_pstate <-intel_pstate_timer_funch]hX'# cd /sys/kernel/tracing/ # cat available_filter_functions | grep -i pstate intel_pstate_set_pstate intel_pstate_cpu_init ... # echo intel_pstate_set_pstate > set_ftrace_filter # echo function > current_tracer # cat trace | head -15 # tracer: function # # entries-in-buffer/entries-written: 80/80 #P:4 # # _-----=> irqs-off # / _----=> need-resched # | / _---=> hardirq/softirq # || / _--=> preempt-depth # ||| / delay # TASK-PID CPU# |||| TIMESTAMP FUNCTION # | | | |||| | | Xorg-3129 [000] ..s. 2537.644844: intel_pstate_set_pstate <-intel_pstate_timer_func gnome-terminal--4510 [002] ..s. 2537.649844: intel_pstate_set_pstate <-intel_pstate_timer_func gnome-shell-3409 [001] ..s. 2537.650850: intel_pstate_set_pstate <-intel_pstate_timer_func -0 [000] ..s. 2537.654843: intel_pstate_set_pstate <-intel_pstate_timer_func}hj*sbah}(h]h ]h"]h$]h&]hhuh1j)hhhMUhj&*hhubeh}(h]ftraceah ]h"]ftraceah$]h&]uh1jGhj(hhhhhMNubeh}(h]diagnostics-and-tuningah ]h"]diagnostics and tuningah$]h&]uh1jGhjIhhhhhM3ubjH)}(hhh](jM)}(h Referencesh]h References}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj*hhhhhMoubhfootnote)}(hKristen Accardi, *Balancing Power and Performance in the Linux Kernel*, https://events.static.linuxfound.org/sites/events/files/slides/LinuxConEurope_2015.pdf h](hlabel)}(h1h]h1}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j*hj*ubj)}(hKristen Accardi, *Balancing Power and Performance in the Linux Kernel*, https://events.static.linuxfound.org/sites/events/files/slides/LinuxConEurope_2015.pdfh](hKristen Accardi, }(hj*hhhNhNubhemphasis)}(h5*Balancing Power and Performance in the Linux Kernel*h]h3Balancing Power and Performance in the Linux Kernel}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j*hj*ubh, }(hj*hhhNhNubj)}(hVhttps://events.static.linuxfound.org/sites/events/files/slides/LinuxConEurope_2015.pdfh]hVhttps://events.static.linuxfound.org/sites/events/files/slides/LinuxConEurope_2015.pdf}(hj+hhhNhNubah}(h]h ]h"]h$]h&]refurij +uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhhhMqhj*ubeh}(h]jah ]h"]1ah$]h&]jajj;uh1j*hhhMqhj*hhjKubj*)}(h*Intel® 64 and IA-32 Architectures Software Developer’s Manual Volume 3: System Programming Guide*, https://www.intel.com/content/www/us/en/architecture-and-technology/64-ia-32-architectures-software-developer-system-programming-manual-325384.html h](j*)}(h2h]h2}(hj(+hhhNhNubah}(h]h ]h"]h$]h&]uh1j*hj$+ubj)}(h*Intel® 64 and IA-32 Architectures Software Developer’s Manual Volume 3: System Programming Guide*, https://www.intel.com/content/www/us/en/architecture-and-technology/64-ia-32-architectures-software-developer-system-programming-manual-325384.htmlh](j*)}(he*Intel® 64 and IA-32 Architectures Software Developer’s Manual Volume 3: System Programming Guide*h]hcIntel® 64 and IA-32 Architectures Software Developer’s Manual Volume 3: System Programming Guide}(hj:+hhhNhNubah}(h]h ]h"]h$]h&]uh1j*hj6+ubh, }(hj6+hhhNhNubj)}(hhttps://www.intel.com/content/www/us/en/architecture-and-technology/64-ia-32-architectures-software-developer-system-programming-manual-325384.htmlh]hhttps://www.intel.com/content/www/us/en/architecture-and-technology/64-ia-32-architectures-software-developer-system-programming-manual-325384.html}(hjL+hhhNhNubah}(h]h ]h"]h$]h&]refurijN+uh1jhj6+ubeh}(h]h ]h"]h$]h&]uh1jhhhMthj$+ubeh}(h]jah ]h"]2ah$]h&]jajj;uh1j*hhhMthj*hhjKubj*)}(h*Advanced Configuration and Power Interface Specification*, https://uefi.org/sites/default/files/resources/ACPI_6_3_final_Jan30.pdfh](j*)}(h3h]h3}(hjl+hhhNhNubah}(h]h ]h"]h$]h&]uh1j*hjh+ubj)}(h*Advanced Configuration and Power Interface Specification*, https://uefi.org/sites/default/files/resources/ACPI_6_3_final_Jan30.pdfh](j*)}(h:*Advanced Configuration and Power Interface Specification*h]h8Advanced Configuration and Power Interface Specification}(hj~+hhhNhNubah}(h]h ]h"]h$]h&]uh1j*hjz+ubh, }(hjz+hhhNhNubj)}(hGhttps://uefi.org/sites/default/files/resources/ACPI_6_3_final_Jan30.pdfh]hGhttps://uefi.org/sites/default/files/resources/ACPI_6_3_final_Jan30.pdf}(hj+hhhNhNubah}(h]h ]h"]h$]h&]refurij+uh1jhjz+ubeh}(h]h ]h"]h$]h&]uh1jhhhMwhjh+ubeh}(h]jx"ah ]h"]3ah$]h&]js"ajj;uh1j*hhhMwhj*hhjKubeh}(h] referencesah ]h"] referencesah$]h&]uh1jGhjIhhhhhMoubeh}(h]+intel-pstate-cpu-performance-scaling-driverah ]h"]+intel_pstate cpu performance scaling driverah$]h&]uh1jGhhhhhhhKubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(jLN generatorN datestampN source_linkN source_urlN toc_backlinksentryfootnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerj+error_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourceh _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}(hhhhhhj jjjj*jj9j-jHj<jWjKjfjZjujijjxjjjjjjjjjjjjjjjjj jjjj)jj8j,jGj;jVjJjejYjtjhjjwjjjjjjjjjjjjjjjjj jjj j(jj7j+jFj:jUjIjdjXjsjgjjvjjjjjjjjjjjjjjjjj jjj j'jj6j*jEj9jTjHjcjWjrjfjjujjjjjjjjjjjjjjjjjjjj j&jj5j)jDj8usubstitution_names}(amphߌaposhasthbrvbarj bsoljcentj*colonj9commajHcommatjWcopyjfcurrenjudarrjdegjdividejdollarjequalsjexcljfrac12jfrac14jfrac18jfrac34j frac38jfrac58j)frac78j8gtjGhalfjVhorbarjehyphenjtiexcljiquestjlaquojlarrjlcubjldquojlowbarjlparjlsqbjlsquoj ltjmicroj(middotj7nbspjFnotjUnumjdohmjsordfjordmjparajpercntjperiodjplusjplusmnjpoundjquestjquotj raquojrarrj'rcubj6rdquojEregjTrparjcrsqbjrrsquojsectjsemijshyjsoljsungjsup1jsup2jsup3jtimesjtradejuarrj&verbarj5yenjDurefnames}(1]ja2]ja3]ji"aurefids}(j]jajT]jJaj ]j aj ]j ajs]jiaj]jaj]jaj]jaj!]jaj]jaj]jaj ]j aj!]j!aunameids}(j+j+jjjjjjj jTj j j j j j jJ jG j j j j j6 j3 j j jzj jyjvj jsjjj_j\jjjjjjjjjjj "j "jjjjjjjj!jjjjj jj j j"j j"j!j$j!j$j$j(j(j*j*j#*j *j*j*j+j+j!+jje+jj+jx"u nametypes}(j+jjjj j j j jJ j j j6 j jzjyj jj_jjjjjj "jjjjjjj j j"j"j$j$j(j*j#*j*j+j!+je+j+uh}(j+jIjjjjjjjj jj jTjUj jUj j j j jG j j jM j j j3 j j j9 j j jvj jsjjjj\jjjbjjjjjjjjj "jjjjjjjj!j"jjjjjjj jj j j!j j!j"j$j"js"ji"j(j$j*j(j *j(j*j&*j+j*jj*jj$+jx"jh+u footnote_refs}(jk,]jajm,]jajo,]ji"au citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes](j*j$+jh+e citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}j+K sRparse_messages]transform_messages](hsystem_message)}(hhh]j)}(hhh]h5Hyperlink target "operation-modes" is not referenced.}hj,sbah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]levelKtypeINFOsourcehlineKuh1j,ubj,)}(hhh]j)}(hhh]h1Hyperlink target "active-mode" is not referenced.}hj,sbah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]levelKtypej,sourcehlineKuh1j,ubj,)}(hhh]j)}(hhh]h5Hyperlink target "active-mode-hwp" is not referenced.}hj,sbah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]levelKtypej,sourcehlineKuh1j,ubj,)}(hhh]j)}(hhh]h2Hyperlink target "passive-mode" is not referenced.}hj,sbah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]levelKtypej,sourcehlineMuh1j,ubj,)}(hhh]j)}(hhh]h+Hyperlink target "turbo" is not referenced.}hj-sbah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]levelKtypej,sourcehlineMCuh1j,ubj,)}(hhh]j)}(hhh]h)Hyperlink target "cas" is not referenced.}hj--sbah}(h]h ]h"]h$]h&]uh1jhj*-ubah}(h]h ]h"]h$]h&]levelKtypej,sourcehlineMuh1j,ubj,)}(hhh]j)}(hhh]h7Hyperlink target "global-attributes" is not referenced.}hjG-sbah}(h]h ]h"]h$]h&]uh1jhjD-ubah}(h]h ]h"]h$]h&]levelKtypej,sourcehlineMuh1j,ubj,)}(hhh]j)}(hhh]h3Hyperlink target "no-turbo-attr" is not referenced.}hja-sbah}(h]h ]h"]h$]h&]uh1jhj^-ubah}(h]h ]h"]h$]h&]levelKtypej,sourcehlineMDuh1j,ubj,)}(hhh]j)}(hhh]h1Hyperlink target "status-attr" is not referenced.}hj{-sbah}(h]h ]h"]h$]h&]uh1jhjx-ubah}(h]h ]h"]h$]h&]levelKtypej,sourcehlineM^uh1j,ubj,)}(hhh]j)}(hhh]hFHyperlink target "policy-attributes-interpretation" is not referenced.}hj-sbah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]levelKtypej,sourcehlineMuh1j,ubj,)}(hhh]j)}(hhh]h@Hyperlink target "pstate-limits-coordination" is not referenced.}hj-sbah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]levelKtypej,sourcehlineMuh1j,ubj,)}(hhh]j)}(hhh]h>Hyperlink target "energy-performance-hints" is not referenced.}hj-sbah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]levelKtypej,sourcehlineMuh1j,ubj,)}(hhh]j)}(hhh]h2Hyperlink target "acpi-cpufreq" is not referenced.}hj-sbah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]levelKtypej,sourcehlineMuh1j,ube transformerN include_log]-Documentation/admin-guide/pm/intel_pstate.rst(NNNNta decorationNhhub.