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&]refidid4docnamej;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&]jid5jj;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 `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 }(hjhhhNhNubj)}(h`below `_h]hbelow}(hjhhhNhNubah}(h]h ]h"]h$]h&]namebelowj status-attruh1jhjjKubhtarget)}(h h]h}(h]h ]h"]belowah$]h&]jjuh1jindirect_reference_name status_attrhjjKubh).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhK.hjhhubeh}(h]general-informationah ]h"]general informationah$]h&]uh1jGhjIhhhhhKubjH)}(hhh](jM)}(hOperation Modesh]hOperation Modes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhhhhhK7ubj)}(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}(hjhhhNhNubah}(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}(hj%hhhNhNubah}(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&]uh1jhhhK9hjhhubjH)}(hhh](jM)}(h Active Modeh]h Active Mode}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj=hhhhhKBubj)}(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 }(hjNhhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjNubh] for processors with hardware-managed P-states (HWP) support. If it works in this mode, the }(hjNhhhNhNubjS)}(h``scaling_driver``h]hscaling_driver}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjNubh policy attribute in }(hjNhhhNhNubjS)}(h ``sysfs``h]hsysfs}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjNubh for all }(hjNhhhNhNubjS)}(h ``CPUFreq``h]hCPUFreq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjNubh1 policies contains the string “intel_pstate”.}(hjNhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhKDhj=hhubj)}(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&]uh1jhhhKIhj=hhubj)}(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 }(hjhhhNhNubjS)}(h ``powersave``h]h powersave}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh) P-state selection algorithm provided by }(hjhhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh% is not a counterpart of the generic }(hjhhhNhNubjS)}(h ``powersave``h]h powersave}(hj& hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh* governor (roughly, it corresponds to the }(hjhhhNhNubjS)}(h ``schedutil``h]h schedutil}(hj8 hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh and }(hjhhhNhNubjS)}(h ``ondemand``h]hondemand}(hjJ hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh governors).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhKPhj=hhubj)}(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 }(hjb hhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hjj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjb ubh in the active mode: }(hjb hhhNhNubjS)}(h ``powersave``h]h powersave}(hj| hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjb ubh and }(hjb hhhNhNubjS)}(h``performance``h]h performance}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjb 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.}(hjb hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhKWhj=hhubj)}(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\hj=hhubjH)}(hhh](jM)}(hActive Mode With HWPh]hActive Mode With HWP}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hhhhhKbubj)}(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&]uh1jhhhKdhj 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}(hj# 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&]uh1jhhhKihj 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}(hjC 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}(hjU hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj; ubh policy attribute in }(hj; hhhNhNubjS)}(h ``sysfs``h]hsysfs}(hjg hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj; ubh.}(hj; hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhKohj 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 hhhhhKvubj)}(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&]uh1jhhhKxhj hhubj)}(hXThis will override the EPP/EPB setting coming from the ``sysfs`` interface (see `Energy vs 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 hhhNhNubj)}(h`Energy vs Performance Hints`_h]hEnergy vs Performance Hints}(hj hhhNhNubah}(h]h ]h"]h$]h&]nameEnergy vs Performance Hintsjenergy-vs-performance-hintsuh1jhj jKubhk 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&]uh1jhhhK}hj 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).}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj hhubeh}(h]hwp-performanceah ]h"]hwp + performanceah$]h&]uh1jGhj hhhhhKvubjH)}(hhh](jM)}(hHWP + ``powersave``h](hHWP + }(hj hhhNhNubjS)}(h ``powersave``h]h powersave}(hj& hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubeh}(h]h ]h"]h$]h&]uh1jLhj 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 }(hj: hhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hjB hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj: 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 }(hj: hhhNhNubjS)}(h ``sysfs``h]hsysfs}(hjT hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj: 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.}(hj: hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhKhj hhubeh}(h] hwp-powersaveah ]h"]hwp + powersaveah$]h&]uh1jGhj hhhhhKubeh}(h]active-mode-with-hwpah ]h"]active mode with hwpah$]h&]uh1jGhj=hhhhhKb referencedKubjH)}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubh or }(hj hhhNhNubjS)}(h``performance``h]h performance}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubh, depending on the }(hj hhhNhNubjS)}(h``scaling_governor``h]hscaling_governor}(hj" hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubh policy setting in }(hj hhhNhNubjS)}(h ``sysfs``h]hsysfs}(hj4 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}(hjF hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubh policy attribute in }(hj hhhNhNubjS)}(h ``sysfs``h]hsysfs}(hjX 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)}(hju h]h performance}(hjw hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjs ubah}(h]h ]h"]h$]h&]uh1jLhjp 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&]uh1jhhhKhjp 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&]uh1jhhhKhjp 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&]uh1jhhhKhjp 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&]uh1jLhj 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 }(hj hhhNhNubjS)}(h ``schedutil``h]h schedutil}(hj% hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj 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.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhKhj 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 }(hj= hhhNhNubjS)}(h``performance``h]h performance}(hjE hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj= ubhp case, the hardware configuration is not touched if the new P-state turns out to be the same as the current one.}(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 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)}(hjg h]h'CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE}(hji hhhNhNubah}(h]h ](j.j c-macroeh"]h$]h&]uh1jRhje 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&]uh1jhhhKhj hhubeh}(h] powersaveah ]h"] powersaveah$]h&]uh1jGhj} hhhhhKubeh}(h]active-mode-without-hwpah ]h"]active mode without hwpah$]h&]uh1jGhj=hhhhhKubeh}(h] active-modeah ]h"] active modeah$]h&]uh1jGhjhhhhhKBj| KubjH)}(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}(hj hhhNhNubah}(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}(hj hhhNhNubah}(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}(hj hhhNhNubah}(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}(hjhhhNhNubah}(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 }(hjhhhNhNubjS)}(h``scaling_driver``h]hscaling_driver}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh policy attribute in }(hjhhhNhNubjS)}(h ``sysfs``h]hsysfs}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh for all }(hjhhhNhNubjS)}(h ``CPUFreq``h]hCPUFreq}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh[ policies contains the string “intel_cpufreq”. Then, the driver behaves like a regular }(hjhhhNhNubjS)}(h ``CPUFreq``h]hCPUFreq}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh 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 }(hjhhhNhNubjS)}(h ``schedutil``h]h schedutil}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh9 governor can invoke it directly from scheduler context).}(hjhhhNhNubeh}(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}(hjhhhNhNubah}(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}(hjhhhNhNubah}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh information comes from the }(hjhhhNhNubjS)}(h ``CPUFreq``h]hCPUFreq}(hj hhhNhNubah}(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&]jturbouh1jhM<hj hhhhj| Kubeh}(h] passive-modeah ]h"] passive modeah$]h&]uh1jGhjhhhhhKj| Kubeh}(h]operation-modesah ]h"]operation modesah$]h&]uh1jGhjIhhhhhK7j| KubjH)}(hhh](jM)}(hTurbo P-states Supporth]hTurbo P-states Support}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj@hhhhhKubj)}(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 }(hjQhhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjQubh 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.}(hjQhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhKhj@hhubj)}(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.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj@hhubj)}(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&]uh1jhhhKhj@hhubj)}(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&]uh1jhhhMhj@hhubj)}(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&]uh1jhhhM hj@hhubj)}(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&]uh1jhhhMhj@hhubj)}(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&]uh1jhhhMhj@hhubj)}(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 `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}(hjhhhNhNubah}(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}(hjhhhNhNubah}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh= is used relative to ACPI-based CPU performance scaling (see }(hjhhhNhNubj)}(h`below `_h]hbelow}(hjhhhNhNubah}(h]h ]h"]h$]h&]namebelowj acpi-cpufrequh1jhjjKubj)}(h h]h}(h]h ]h"]belowah$]h&]jj%uh1jj acpi-cpufreqhjjKubh for more information).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhM hj@hhubj)}(hXmMoreover, 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 `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 }(hj<hhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj<ubhw always knows what the real turbo threshold is (even if the Configurable TDP feature is enabled in the processor), its }(hj<hhhNhNubjS)}(h ``no_turbo``h]hno_turbo}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj<ubh attribute in }(hj<hhhNhNubjS)}(h ``sysfs``h]hsysfs}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj<ubh (described }(hj<hhhNhNubj)}(h`below `_h]hbelow}(hjzhhhNhNubah}(h]h ]h"]h$]h&]namebelowj no-turbo-attruh1jhj<jKubj)}(h h]h}(h]h ]h"]belowah$]h&]jjuh1jj no_turbo_attrhj<jKubhl) should work as expected in all cases (that is, if set to disable turbo P-states, it always should prevent }(hj<hhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj<ubh from using them).}(hj<hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhM'hj@hhubeh}(h](turbo-p-states-supportj/eh ]h"](turbo p-states supportturboeh$]h&]uh1jGhjIhhhhhKexpect_referenced_by_name}jj%sexpect_referenced_by_id}j/j%sj| KubjH)}(hhh](jM)}(hProcessor Supporth]hProcessor Support}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhhhhhM/ubj)}(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}(hjhhhNhNubah}(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&]uh1jhhhM1hjhhubh block_quote)}(hXs* The minimum supported P-state. * The maximum supported `non-turbo P-state `_. * Whether or not turbo P-states are supported at all. * The maximum supported `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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM4hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h5The maximum supported `non-turbo P-state `_. h]j)}(h4The maximum supported `non-turbo P-state `_.h](hThe maximum supported }(hjhhhNhNubj)}(h`non-turbo P-state `_h]hnon-turbo P-state}(hj"hhhNhNubah}(h]h ]h"]h$]h&]namenon-turbo P-statejj/uh1jhjjKubj)}(h h]h}(h]h ]h"]non-turbo p-stateah$]h&]jj/uh1jjturbohjjKubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhM6hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(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.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM8hjNubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h\The maximum supported `one-core turbo P-state `_ (if turbo P-states are supported). h]j)}(h[The maximum supported `one-core turbo P-state `_ (if turbo P-states are supported).h](hThe maximum supported }(hjjhhhNhNubj)}(h"`one-core turbo P-state `_h]hone-core turbo P-state}(hjrhhhNhNubah}(h]h ]h"]h$]h&]nameone-core turbo P-statejj/uh1jhjjjKubj)}(h h]h}(h]h ]h"]one-core turbo p-stateah$]h&]jj/uh1jjturbohjjjKubh# (if turbo P-states are supported).}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhM:hjfubah}(h]h ]h"]h$]h&]uh1jhjubj)}(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&]uh1jhhhM=hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]bullet*uh1jhhhM4hjubah}(h]h ]h"]h$]h&]uh1jhhhM4hjhhubj)}(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&]uh1jhhhM@hjhhubj)}(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](h`_). 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&]uh1jhhhM`hjubh definition)}(hhh](j)}(hMaximum P-state the driver is allowed to set in percent of the maximum supported performance level (the highest supported `turbo P-state `_).h](hzMaximum P-state the driver is allowed to set in percent of the maximum supported performance level (the highest supported }(hjhhhNhNubj)}(h`turbo P-state `_h]h turbo P-state}(hjhhhNhNubah}(h]h ]h"]h$]h&]name turbo P-statejj/uh1jhjjKubj)}(h h]h}(h]h ]h"] turbo p-stateah$]h&]jj/uh1jjturbohjjKubh).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMZhjubj)}(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&]uh1jhhhM^hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhM`hjubj)}(hX'``min_perf_pct`` Minimum P-state the driver is allowed to set in percent of the maximum supported performance level (the highest supported `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)}(hj%h]h min_perf_pct}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj#ubah}(h]h ]h"]h$]h&]uh1jhhhMihjubj)}(hhh](j)}(hMinimum P-state the driver is allowed to set in percent of the maximum supported performance level (the highest supported `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=hhhNhNubj)}(h`turbo P-state `_h]h turbo P-state}(hjEhhhNhNubah}(h]h ]h"]h$]h&]name turbo P-statejj/uh1jhj=jKubj)}(h h]h}(h]h ]h"] turbo p-stateah$]h&]jj/uh1jjturbohj=jKubh).}(hj=hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMchj: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 }(hjkhhhNhNubjS)}(h$``intel_pstate=per_cpu_perf_limits``h]h intel_pstate=per_cpu_perf_limits}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjkubh0 argument is present in the kernel command line.}(hjkhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMghj:ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMihjhhubj)}(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 `Turbo P-states Support`_). 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 `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&]uh1jhhhMvhjubj)}(hhh](j)}(hNumber of P-states supported by the processor (between 0 and 255 inclusive) including both turbo and non-turbo P-states (see `Turbo P-states Support`_).h](h}Number of P-states supported by the processor (between 0 and 255 inclusive) including both turbo and non-turbo P-states (see }(hjhhhNhNubj)}(h`Turbo P-states Support`_h]hTurbo P-states Support}(hjhhhNhNubah}(h]h ]h"]h$]h&]nameTurbo P-states Supportjjuh1jhjjKubh).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMlhjubj)}(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&]uh1jhhhMphjubj)}(hlThe value of this attribute is not affected by the ``no_turbo`` setting described `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 }(hjhhhNhNubj)}(h`below `_h]hbelow}(hjhhhNhNubah}(h]h ]h"]h$]h&]namebelowjjuh1jhjjKubj)}(h h]h}(h]h ]h"]belowah$]h&]jjuh1jj no_turbo_attrhjjKubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMshjubj)}(hThis attribute is read-only.h]hThis attribute is read-only.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMvhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMvhjhhubj)}(hX``turbo_pct`` Ratio of the `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)}(hjEh]h turbo_pct}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjCubah}(h]h ]h"]h$]h&]uh1jhhhMhj?ubj)}(hhh](j)}(hlRatio of the `turbo range `_ size to the size of the entire range of supported P-states, in percent.h](h Ratio of the }(hj]hhhNhNubj)}(h`turbo range `_h]h turbo range}(hjehhhNhNubah}(h]h ]h"]h$]h&]name turbo rangejj/uh1jhj]jKubj)}(h h]h}(h]h ]h"] turbo rangeah$]h&]jj/uh1jjturbohj]jKubhH size to the size of the entire range of supported P-states, in percent.}(hj]hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMyhjZubj)}(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&]uh1jhhhM|hjZubj)}(hThis attribute is read-only.h]hThis attribute is read-only.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjZubeh}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhhhMhjhhubeh}(h]h ]h"]h$]h&]uh1jhj+hhhhhNubj)}(h.. _no_turbo_attr:h]h}(h]h ]h"]h$]h&]jjuh1jhMhj+hhhhj| Kubj)}(hhh](j)}(hXy``no_turbo`` If set (equal to 1), the driver is not allowed to set any turbo P-states (see `Turbo P-states Support`_). 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 `Interpretation of Policy Attributes`_ 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)}(hXWIf set (equal to 1), the driver is not allowed to set any turbo P-states (see `Turbo P-states Support`_). 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 }(hjhhhNhNubj)}(h`Turbo P-states Support`_h]hTurbo P-states Support}(hjhhhNhNubah}(h]h ]h"]h$]h&]nameTurbo P-states Supportjjuh1jhjjKubhe). 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}(hjhhhNhNubah}(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 `Interpretation of Policy Attributes`_ below for details).h](hUThis attribute does not affect the maximum supported frequency value supplied to the }(hj*hhhNhNubjS)}(h ``CPUFreq``h]hCPUFreq}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj*ubhx core and exposed via the policy interface, but it affects the maximum possible value of per-policy P-state limits (see }(hj*hhhNhNubj)}(h&`Interpretation of Policy Attributes`_h]h#Interpretation of Policy Attributes}(hjDhhhNhNubah}(h]h ]h"]h$]h&]name#Interpretation of Policy Attributesj#interpretation-of-policy-attributesuh1jhj*jKubh below for details).}(hj*hhhNhNubeh}(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 `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)}(hjqh]hhwp_dynamic_boost}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjoubah}(h]h ]h"]h$]h&]uh1jhhhMhjkubj)}(hhh](j)}(hXThis attribute is only present if ``intel_pstate`` works in the `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 }(hjhhhNhNubj)}(hC`active mode with the HWP feature enabled `_h]h(active mode with the HWP feature enabled}(hjhhhNhNubah}(h]h ]h"]h$]h&]name(active mode with the HWP feature enabledjjv uh1jhjjKubj)}(h h]h}(h]h ]h"](active mode with the hwp feature enabledah$]h&]jjv uh1jjActive Mode With HWPhjjKubhX 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&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhhhMhjhhubeh}(h]jah ]h"] no_turbo_attrah$]h&]uh1jhj+hhhhhNj}jjsj}jjsj| Kubj)}(h.. _status_attr:h]h}(h]h ]h"]h$]h&]jjuh1jhMhj+hhhhj| Kubj)}(hhh](j)}(hX``status`` Operation mode of the driver: "active", "passive" or "off". "active" The driver is functional and in the `active mode `_. "passive" The driver is functional and in the `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)}(hjh]hstatus}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hhh](j)}(h;Operation mode of the driver: "active", "passive" or "off".h]hGOperation mode of the driver: “active”, “passive” or “off”.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hhh](j)}(hL"active" The driver is functional and in the `active mode `_. h](j)}(h"active"h]h “active”}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj(ubj)}(hhh]j)}(hBThe driver is functional and in the `active mode `_.h](h$The driver is functional and in the }(hj=hhhNhNubj)}(h`active mode `_h]h active mode}(hjEhhhNhNubah}(h]h ]h"]h$]h&]name active modejj uh1jhj=jKubj)}(h h]h}(h]h ]h"] active modeah$]h&]jj uh1jj Active Modehj=jKj| Kubh.}(hj=hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhj:ubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhhhMhj%ubj)}(hO"passive" The driver is functional and in the `passive mode `_. h](j)}(h "passive"h]h “passive”}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjwubj)}(hhh]j)}(hDThe driver is functional and in the `passive mode `_.h](h$The driver is functional and in the }(hjhhhNhNubj)}(h`passive mode `_h]h passive mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]name passive modejj2uh1jhjjKubj)}(h h]h}(h]h ]h"] passive modeah$]h&]jj2uh1jj Passive ModehjjKj| Kubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhhhMhj%ubj)}(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&]uh1jhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMhj%ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(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.]}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(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)}(hj-h]henergy_efficiency}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj+ubah}(h]h ]h"]h$]h&]uh1jhhhMhj'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.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjBubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhhhMhjhhubeh}(h]jah ]h"] status_attrah$]h&]uh1jhj+hhhhhNj}jcjsj}jjsj| Kubeh}(h]global-attributesah ]h"]global attributesah$]h&]uh1jGhj hhhhhMPj| KubjH)}(hhh](jM)}(h#Interpretation of Policy Attributesh]h#Interpretation of Policy Attributes}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjphhhhhMubj)}(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 `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 }(hjhhhNhNubj)}(h$`operation mode `_h]hoperation mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]nameoperation modejj:uh1jhjjKubj)}(h h]h}(h]h ]h"]operation modeah$]h&]jj:uh1jjOperation ModeshjjKubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhjphhubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh, }(hjhhhNhNubjS)}(h``cpuinfo_min_freq``h]hcpuinfo_min_freq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh and }(hjhhhNhNubjS)}(h``scaling_cur_freq``h]hscaling_cur_freq}(hjhhhNhNubah}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh. Also, the values of the }(hjhhhNhNubjS)}(h``scaling_max_freq``h]hscaling_max_freq}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh and }(hjhhhNhNubjS)}(h``scaling_min_freq``h]hscaling_min_freq}(hj5hhhNhNubah}(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&]uh1jhhhMhjphhubj)}(hX=If the ``no_turbo`` `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 }(hjMhhhNhNubjS)}(h ``no_turbo``h]hno_turbo}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjMubh }(hjMhhhNhNubj)}(h$`global attribute `_h]hglobal attribute}(hjghhhNhNubah}(h]h ]h"]h$]h&]nameglobal attributejjuh1jhjMjKubj)}(h h]h}(h]h ]h"]global attributeah$]h&]jjuh1jj no_turbo_attrhjMjKubhR is set, the driver is not allowed to use turbo P-states, so the maximum value of }(hjMhhhNhNubjS)}(h``scaling_max_freq``h]hscaling_max_freq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjMubh and }(hjMhhhNhNubjS)}(h``scaling_min_freq``h]hscaling_min_freq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjMubhM is limited to the maximum non-turbo P-state frequency. Accordingly, setting }(hjMhhhNhNubjS)}(h ``no_turbo``h]hno_turbo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjMubh causes }(hjMhhhNhNubjS)}(h``scaling_max_freq``h]hscaling_max_freq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjMubh and }(hjMhhhNhNubjS)}(h``scaling_min_freq``h]hscaling_min_freq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjMubhS to go down to that value if they were above it before. However, the old values of }(hjMhhhNhNubjS)}(h``scaling_max_freq``h]hscaling_max_freq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjMubh and }(hjMhhhNhNubjS)}(h``scaling_min_freq``h]hscaling_min_freq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjMubh" will be restored after unsetting }(hjMhhhNhNubjS)}(h ``no_turbo``h]hno_turbo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjMubh5, unless these attributes have been written to after }(hjMhhhNhNubjS)}(h ``no_turbo``h]hno_turbo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjMubh was set.}(hjMhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhjphhubj)}(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 }(hj/hhhNhNubjS)}(h ``no_turbo``h]hno_turbo}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj/ubh+ is not set, the maximum possible value of }(hj/hhhNhNubjS)}(h``scaling_max_freq``h]hscaling_max_freq}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj/ubh and }(hj/hhhNhNubjS)}(h``scaling_min_freq``h]hscaling_min_freq}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj/ubhP corresponds to the maximum supported turbo P-state, which also is the value of }(hj/hhhNhNubjS)}(h``cpuinfo_max_freq``h]hcpuinfo_max_freq}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj/ubh in either case.}(hj/hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhjphhubj)}(hzNext, the following policy attributes have special meaning if ``intel_pstate`` works in the `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 }(hjhhhNhNubj)}(h`active mode `_h]h active mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]name active modejj uh1jhjjKubj)}(h h]h}(h]h ]h"] active modeah$]h&]jj uh1jj Active ModehjjKj| Kubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhjphhubj)}(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&]uh1jhhhMhjubj)}(hhh]j)}(hBList of P-state selection algorithms provided by ``intel_pstate``.h](h1List of P-state selection algorithms provided by }(hjhhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(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)}(hjh]hscaling_governor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(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 }(hj0hhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj0ubh( currently in use with the given policy.}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMhjhhubj)}(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)}(hjbh]hscaling_cur_freq}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj`ubah}(h]h ]h"]h$]h&]uh1jhhhMhj\ubj)}(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.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjwubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhhhMhjhhubeh}(h]h ]h"]h$]h&]uh1jhjphhhhhNubj)}(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&]uh1jhhhMhjphhubj)}(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&]uh1jhhhMhjubj)}(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&]uh1jhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjphhhhhNubj)}(hpThe meaning of these attributes in the `passive mode `_ is the same as for other scaling drivers.h](h'The meaning of these attributes in the }(hjhhhNhNubj)}(h`passive mode `_h]h passive mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]name passive modejj2uh1jhjjKubj)}(h h]h}(h]h ]h"] passive modeah$]h&]jj2uh1jj Passive ModehjjKj| Kubh* is the same as for other scaling drivers.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhjphhubj)}(hXAdditionally, 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 `active mode `_) or "intel_cpufreq" (in the `passive mode `_).h](hAdditionally, the value of the }(hjhhhNhNubjS)}(h``scaling_driver``h]hscaling_driver}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh attribute for }(hjhhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh_ depends on the operation mode of the driver. Namely, it is either “intel_pstate” (in the }(hjhhhNhNubj)}(h`active mode `_h]h active mode}(hjChhhNhNubah}(h]h ]h"]h$]h&]name active modejj uh1jhjjKubj)}(h h]h}(h]h ]h"] active modeah$]h&]jj uh1jj Active ModehjjKj| Kubh!) or “intel_cpufreq” (in the }(hjhhhNhNubj)}(h`passive mode `_h]h passive mode}(hjchhhNhNubah}(h]h ]h"]h$]h&]name passive modejj2uh1jhjjKubj)}(h h]h}(h]h ]h"] passive modeah$]h&]jj2uh1jj Passive ModehjjKj| Kubh).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhjphhubeh}(h]jTah ]h"]#interpretation of policy attributesah$]h&]uh1jGhj hhhhhMj| KubjH)}(hhh](jM)}(hCoordination of P-State Limitsh]hCoordination of P-State Limits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhhhhhMubj)}(hXz``intel_pstate`` allows P-state limits to be set in two ways: with the help of the ``max_perf_pct`` and ``min_perf_pct`` `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&]uh1jRhjubhC allows P-state limits to be set in two ways: with the help of the }(hjhhhNhNubjS)}(h``max_perf_pct``h]h max_perf_pct}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh and }(hjhhhNhNubjS)}(h``min_perf_pct``h]h min_perf_pct}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh }(hjhhhNhNubj)}(h)`global attributes `_h]hglobal attributes}(hjhhhNhNubah}(h]h ]h"]h$]h&]nameglobal attributesjjjuh1jhjjKubj)}(h h]h}(h]h ]h"]global attributesah$]h&]jjjuh1jjGlobal AttributeshjjKj| Kubh or via the }(hjhhhNhNubjS)}(h``scaling_max_freq``h]hscaling_max_freq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh and }hjsbjS)}(h``scaling_min_freq``h]hscaling_min_freq}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh }(hjhhhNhNubjS)}(h ``CPUFreq``h]hCPUFreq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh policy attributes. The coordination between those limits is based on the following rules, regardless of the current operation mode of the driver:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhjhhubj)}(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](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]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).}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj@ubah}(h]h ]h"]h$]h&]uh1jhj=ubj)}(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.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM hjXubah}(h]h ]h"]h$]h&]uh1jhj=ubj)}(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.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjpubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]enumtypearabicprefixhsuffix.uh1j;hj7ubah}(h]h ]h"]h$]h&]uh1jhhhMhjhhubj)}(hXIn the `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 `passive mode `_) and by the driver every time before setting a new P-state for a CPU.h](hIn the }(hjhhhNhNubj)}(hC`active mode with the HWP feature enabled `_h]h(active mode with the HWP feature enabled}(hjhhhNhNubah}(h]h ]h"]h$]h&]name(active mode with the HWP feature enabledjjv uh1jhjjKubj)}(h h]h}(h]h ]h"](active mode with the hwp feature enabledah$]h&]jjv uh1jjActive Mode With HWPhjjKubhX, 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 }(hjhhhNhNubj)}(h`passive mode `_h]h passive mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]name passive modejj2uh1jhjjKubj)}(h h]h}(h]h ]h"] passive modeah$]h&]jj2uh1jj Passive ModehjjKj| KubhF) and by the driver every time before setting a new P-state for a CPU.}(hjhhhNhNubeh}(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 }(hjhhhNhNubjS)}(h$``intel_pstate=per_cpu_perf_limits``h]h intel_pstate=per_cpu_perf_limits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh0 command line argument is passed to the kernel, }(hjhhhNhNubjS)}(h``max_perf_pct``h]h max_perf_pct}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh and }(hjhhhNhNubjS)}(h``min_perf_pct``h]h min_perf_pct}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh] are not exposed at all and the only way to set the limits is by using the policy attributes.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhjhhubeh}(h]coordination-of-p-state-limitsah ]h"]coordination of p-state limitsah$]h&]uh1jGhj hhhhhMj| KubjH)}(hhh](jM)}(hEnergy vs Performance Hintsh]hEnergy vs Performance Hints}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj3hhhhhM$ubj)}(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 }(hjDhhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjDubh 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 }(hjDhhhNhNubjS)}(h ``CPUFreq``h]hCPUFreq}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjDubh policy directory in }(hjDhhhNhNubjS)}(h ``sysfs``h]hsysfs}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjDubh . They are :}(hjDhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhM&hj3hhubj)}(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)}(hjh]henergy_performance_preference}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhhhM0hjubj)}(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).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM-hjubj)}(h5The hint can be changed by writing to this attribute.h]h5The hint can be changed by writing to this attribute.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM0hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhM0hjubj)}(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)}(hjh]h(energy_performance_available_preferences}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubah}(h]h ]h"]h$]h&]uh1jhhhM8hjubj)}(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 }(hjhhhNhNubjS)}(h!``energy_performance_preference``h]henergy_performance_preference}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh attribute.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhM3hjubj)}(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 }(hjhhhNhNubjS)}(h ``default``h]hdefault}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubhA represents whatever hint value was set by the platform firmware.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhM6hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhM8hjhhubeh}(h]h ]h"]h$]h&]uh1jhj3hhhhhNubj)}(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 }(hjAhhhNhNubjS)}(h!``energy_performance_preference``h]henergy_performance_preference}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjAubhX 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.}(hjAhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhM:hj3hhubj)}(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.]}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMChj3hhubj)}(h.. _acpi-cpufreq:h]h}(h]h ]h"]h$]h&]jj%uh1jhMhj3hhhhj| Kubeh}(h]j ah ]h"]energy vs performance hintsah$]h&]uh1jGhj hhhhhM$j| Kubeh}(h]user-space-interface-in-sysfsah ]h"]user space interface in sysfsah$]h&]uh1jGhjIhhhhhMMubjH)}(hhh](jM)}(h$``intel_pstate`` vs ``acpi-cpufreq``h](jS)}(h``intel_pstate``h]h intel_pstate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh vs }(hjhhhNhNubjS)}(h``acpi-cpufreq``h]h acpi-cpufreq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubeh}(h]h ]h"]h$]h&]uh1jLhjhhhhhMLubj)}(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 }(hjhhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh<, the ACPI tables provided by the platform firmware contain }(hjhhhNhNubjS)}(h``_PSS``h]h_PSS}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubhm objects returning information that can be used for CPU performance scaling (refer to the ACPI specification }(hjhhhNhNubj)}(h[3]_h]h3}(hjhhhNhNubah}(h]id3ah ]h"]h$]h&]jid6jj;uh1jhjjKubh for details on the }(hjhhhNhNubjS)}(h``_PSS``h]h_PSS}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh= objects and the format of the information returned by them).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMNhjhhubj)}(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 }(ahj hhhNhNubjS)}(h``_PSS``h]h_PSS}(hjhhhNhNubah}(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}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubh the }(hj hhhNhNubjS)}(h``acpi-cpufreq``h]h acpi-cpufreq}(hjKhhhNhNubah}(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&]uh1jhhhMThjhhubj)}(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 `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 }(hjuhhhNhNubjS)}(h``_PSS``h]h_PSS}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjuubh 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 }(hjuhhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjuubh3 on the same system, with one exception: the whole }(hjuhhhNhNubj)}(h`turbo range `_h]h turbo range}(hjhhhNhNubah}(h]h ]h"]h$]h&]name turbo rangejj/uh1jhjujKubj)}(h h]h}(h]h ]h"] turbo rangeah$]h&]jj/uh1jjturbohjujKubh_ is represented by one item in it (the topmost one). By convention, the frequency returned by }(hjuhhhNhNubjS)}(h``_PSS``h]h_PSS}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjuubhXG 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”).}(hjuhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMZhjhhubj)}(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 }(hjhhhNhNubjS)}(h``_PSS``h]h_PSS}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh@ is reflected by the table of available frequencies supplied by }(hjhhhNhNubjS)}(h``acpi-cpufreq``h]h acpi-cpufreq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh to the }(hjhhhNhNubjS)}(h ``CPUFreq``h]hCPUFreq}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubhX  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 }(hjhhhNhNubjS)}(h``acpi-cpufreq``h]h acpi-cpufreq}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh\ is higher by 1 MHz than the frequency of the highest supported non-turbo P-state listed by }(hjhhhNhNubjS)}(h``_PSS``h]h_PSS}(hj) hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubhO which, of course, affects decisions made by the scaling governors, except for }(hjhhhNhNubjS)}(h ``powersave``h]h powersave}(hj; hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh and }(hjhhhNhNubjS)}(h``performance``h]h performance}(hjM hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMdhjhhubj)}(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 }(hje hhhNhNubjS)}(h``acpi-cpufreq``h]h acpi-cpufreq}(hjm hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhje 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.}(hje hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMnhjhhubj)}(hX~One more issue related to that may appear on systems supporting the `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 hhhNhNubj)}(h$`Configurable TDP feature `_h]hConfigurable TDP feature}(hj hhhNhNubah}(h]h ]h"]h$]h&]nameConfigurable TDP featurejj/uh1jhj jKubj)}(h h]h}(h]h ]h"]configurable tdp featureah$]h&]jj/uh1jjturbohj jKubh 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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubh1 simply avoids using the topmost state listed by }(hj hhhNhNubjS)}(h``_PSS``h]h_PSS}(hj 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&]uh1jhhhMxhjhhubj)}(hApart from the above, ``acpi-cpufreq`` works like ``intel_pstate`` in the `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, }(hj hhhNhNubjS)}(h``acpi-cpufreq``h]h acpi-cpufreq}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubh works like }(hj hhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubh in the }(hj hhhNhNubj)}(h`passive mode `_h]h passive mode}(hj!hhhNhNubah}(h]h ]h"]h$]h&]name passive modejj2uh1jhj jKubj)}(h h]h}(h]h ]h"] passive modeah$]h&]jj2uh1jj Passive Modehj jKj| KubhZ, except that the number of P-states it can set is limited to the ones listed by the ACPI }(hj hhhNhNubjS)}(h``_PSS``h]h_PSS}(hj5!hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj ubh objects.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhjhhubeh}(h](intel-pstate-vs-acpi-cpufreqj%eh ]h"](intel_pstate vs acpi-cpufreq acpi-cpufreqeh$]h&]uh1jGhjIhhhhhMLj}jS!josj}j%josj| KubjH)}(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}(hjc!hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj[!ubeh}(h]h ]h"]h$]h&]uh1jLhjX!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 }(hjw!hhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjw!ubhY in order to enforce specific behavior of it. All of them have to be prepended with the }(hjw!hhhNhNubjS)}(h``intel_pstate=``h]h intel_pstate=}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjw!ubh prefix.}(hjw!hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhjX!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)}(hj!h]hdisable}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj!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}(hj!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)}(hY``active`` Register ``intel_pstate`` in the `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)}(hMRegister ``intel_pstate`` in the `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"hhhNhNubj)}(h`active mode `_h]h active mode}(hj."hhhNhNubah}(h]h ]h"]h$]h&]name active modejj uh1jhj"jKubj)}(h h]h}(h]h ]h"] active modeah$]h&]jj uh1jj Active Modehj"jKj| Kubh 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 `passive mode `_ to start with. h](j)}(h ``passive``h]jS)}(hjf"h]hpassive}(hjh"hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjd"ubah}(h]h ]h"]h$]h&]uh1jhhhMhj`"ubj)}(hhh]j)}(hORegister ``intel_pstate`` in the `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~"hhhNhNubj)}(h`passive mode `_h]h passive mode}(hj"hhhNhNubah}(h]h ]h"]h$]h&]name passive modejj2uh1jhj~"jKubj)}(h h]h}(h]h ]h"] passive modeah$]h&]jj2uh1jj Passive Modehj~"jKj| Kubh 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)}(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)}(hj"h]hforce}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj"ubah}(h]h ]h"]h$]h&]uh1jhhhMhj"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}(hj0#hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj(#ubh and on platforms where the }(hj(#hhhNhNubjS)}(h``pcc-cpufreq``h]h pcc-cpufreq}(hjB#hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj(#ubh# scaling driver is used instead of }(hj(#hhhNhNubjS)}(h``acpi-cpufreq``h]h acpi-cpufreq}(hjT#hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj(#ubh.}(hj(#hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhj"ubeh}(h]h ]h"]h$]h&]uh1jhj"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&]uh1jhhhMhjx#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.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj#ubah}(h]h ]h"]h$]h&]uh1jhjx#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)}(hj#h]hhwp_only}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj#ubah}(h]h ]h"]h$]h&]uh1jhhhMhj#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 }(hj#hhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj#ubhi as the scaling driver only if the hardware-managed P-states (HWP) feature is supported by the processor.}(hj#hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhj#ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhhhMhj!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&]uh1jhhhMhj#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&]uh1jhhhMhj$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 }(hj8$hhhNhNubjS)}(h``_PPC``h]h_PPC}(hj@$hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj8$ubhH limits are taken into account by default and this option has no effect.}(hj8$hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhj$ubeh}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhhhMhj!hhubj)}(hp``per_cpu_perf_limits`` Use per-logical-CPU P-State limits (see `Coordination of P-state Limits`_ for details). h](j)}(h``per_cpu_perf_limits``h]jS)}(hjj$h]hper_cpu_perf_limits}(hjl$hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjh$ubah}(h]h ]h"]h$]h&]uh1jhhhMhjd$ubj)}(hhh]j)}(hWUse per-logical-CPU P-State limits (see `Coordination of P-state Limits`_ for details).h](h(Use per-logical-CPU P-State limits (see }(hj$hhhNhNubj)}(h!`Coordination of P-state Limits`_h]hCoordination of P-state Limits}(hj$hhhNhNubah}(h]h ]h"]h$]h&]nameCoordination of P-state Limitsjj-uh1jhj$jKubh for details).}(hj$hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhj$ubah}(h]h ]h"]h$]h&]uh1jhjd$ubeh}(h]h ]h"]h$]h&]uh1jhhhMhj!hhubj)}(hh``no_cas`` Do not enable capacity-aware scheduling (CAS) which is enabled by default on hybrid systems. h](j)}(h ``no_cas``h]jS)}(hj$h]hno_cas}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj$ubah}(h]h ]h"]h$]h&]uh1jhhhMhj$ubj)}(hhh]j)}(h\Do not enable capacity-aware scheduling (CAS) which is enabled by default on hybrid systems.h]h\Do not enable capacity-aware scheduling (CAS) which is enabled by default on hybrid systems.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj$ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhhhMhj!hhubeh}(h]h ]h"]h$]h&]uh1jhjX!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$hhhhhMubjH)}(hhh](jM)}(h Trace Eventsh]h Trace Events}(hj %hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj%hhhhhMubj)}(hXaThere 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 `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}(hj2%hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj%ubh trace event generally used by }(hj%hhhNhNubjS)}(h ``CPUFreq``h]hCPUFreq}(hjD%hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj%ubh, and the other one is the }(hj%hhhNhNubjS)}(h``pstate_sample``h]h pstate_sample}(hjV%hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj%ubh trace event specific to }(hj%hhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hjh%hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj%ubh!. Both of them are triggered by }(hj%hhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hjz%hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhj%ubh only if it works in the }(hj%hhhNhNubj)}(h`active mode `_h]h active mode}(hj%hhhNhNubah}(h]h ]h"]h$]h&]name active modejj uh1jhj%jKubj)}(h h]h}(h]h ]h"] active modeah$]h&]jj uh1jj Active Modehj%jKj| Kubh.}(hj%hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhj%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&]uh1jhhhMhj%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%hhhMhj%hhubj)}(hXIf ``intel_pstate`` works in the `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%hhhNhNubj)}(h`passive mode `_h]h passive mode}(hj%hhhNhNubah}(h]h ]h"]h$]h&]name passive modejj2uh1jhj%jKubj)}(h h]h}(h]h ]h"] passive modeah$]h&]jj2uh1jj Passive Modehj%jKj| Kubh, 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&]uh1jhhhMhj%hhubeh}(h] trace-eventsah ]h"] trace eventsah$]h&]uh1jGhj$hhhhhMubjH)}(hhh](jM)}(h ``ftrace``h]jS)}(hjS&h]hftrace}(hjU&hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjQ&ubah}(h]h ]h"]h$]h&]uh1jLhjN&hhhhhMubj)}(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 }(hjh&hhhNhNubjS)}(h ``ftrace``h]hftrace}(hjp&hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjh&ubh4 interface can be used for low-level diagnostics of }(hjh&hhhNhNubjS)}(h``intel_pstate``h]h intel_pstate}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjh&ubhP. For example, to check how often the function to set a P-state is called, the }(hjh&hhhNhNubjS)}(h ``ftrace``h]hftrace}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jRhjh&ubh filter can be set to }(hjh&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_pstateuh1hhhhMhjh&ubh:}(hjh&hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhjN&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%hhhMhjN&hhubeh}(h]ftraceah ]h"]ftraceah$]h&]uh1jGhj$hhhhhMubeh}(h]diagnostics-and-tuningah ]h"]diagnostics and tuningah$]h&]uh1jGhjIhhhhhMubjH)}(hhh](jM)}(h Referencesh]h References}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj&hhhhhMubhfootnote)}(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}(hj0'hhhNhNubah}(h]h ]h"]h$]h&]refurij2'uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhhhMhj'ubeh}(h]jah ]h"]1ah$]h&]jajj;uh1j&hhhMhj&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}(hjP'hhhNhNubah}(h]h ]h"]h$]h&]uh1j'hjL'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}(hjb'hhhNhNubah}(h]h ]h"]h$]h&]uh1j'hj^'ubh, }(hj^'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}(hjt'hhhNhNubah}(h]h ]h"]h$]h&]refurijv'uh1jhj^'ubeh}(h]h ]h"]h$]h&]uh1jhhhMhjL'ubeh}(h]jah ]h"]2ah$]h&]jajj;uh1j&hhhMhj&hhjKubj&)}(h*Advanced Configuration and Power Interface Specification*, https://uefi.org/sites/default/files/resources/ACPI_6_3_final_Jan30.pdfh](j')}(h3h]h3}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j'hj'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'hj'ubh, }(hj'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'uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhhhMhj'ubeh}(h]jah ]h"]3ah$]h&]jajj;uh1j&hhhMhj&hhjKubeh}(h] referencesah ]h"] referencesah$]h&]uh1jGhjIhhhhhMubeh}(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](jj&jj2jjjUjjujjUjjjwjjjSjsjjjjj j%!j>"j"j%j%esubstitution_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]ja status_attr](jjeenergy vs performance hints]j a acpi-cpufreq](j&je no_turbo_attr](jjzjjjwjgeturbo](j2j"jjrjjjUjEjujejjj j eturbo p-states support](jje#interpretation of policy attributes]jDaactive mode with hwp](jjjje active mode](jUjEjjjSjCj>"j."j%j%e passive mode](jjjjjsjcjjj%!j!j"j"j%j%eoperation modes](jjeglobal attributes](jje3]jacoordination of p-state limits]j$aurefids}(j/](j%j2jjjUjujj ej](jjjjwej](jjej%](joj&ejv ](jjej ](jUjEjjjSjCj>"j."j%j%ej2](jjjjjsjcjjj%!j!j"j"j%j%ej:]jajj](jjeunameids}(j'j'jjj=j:j j jy jv j j jq jn j j j j j j j5j2jj/jjj jjjjmjjjjjcjjjTj0j-j}j jS!j%jR!jO!j$j$j&j&jK&jH&j&j&j'j'jI'jj'jj'ju nametypes}(j'jj=j jy j jq j j j j5jjj jjmjjcjj0j}jS!jR!j$j&jK&j&j'jI'j'j'uh}(j'jIjjjjjjj:jj j=jv j j j jn j j j} j jp j j j2j j/j@jj@jjjj jjj+jjjjjTjpj-jj j3j%jjO!jjjj$jX!j&j$jH&j%j&jN&j'j&jj'jjL'jj'u footnote_refs}(j(]jaj(]jaj(]jau citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes](j'jL'j'e citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}j(KsRparse_messages]transform_messages](hsystem_message)}(hhh]j)}(hhh]h+Hyperlink target "below" is not referenced.}hj(sbah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]levelKtypeINFOsourcehlineK.uh1j(ubj()}(hhh]j)}(hhh]h+Hyperlink target "below" is not referenced.}hj)sbah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]levelKtypej(sourcehlineM uh1j(ubj()}(hhh]j)}(hhh]h+Hyperlink target "below" is not referenced.}hj)sbah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]levelKtypej(sourcehlineM'uh1j(ubj()}(hhh]j)}(hhh]h7Hyperlink target "non-turbo p-state" is not referenced.}hj7)sbah}(h]h ]h"]h$]h&]uh1jhj4)ubah}(h]h ]h"]h$]h&]levelKtypej(sourcehlineM6uh1j(ubj()}(hhh]j)}(hhh]hHyperlink target "configurable tdp feature" is not referenced.}hjU*sbah}(h]h ]h"]h$]h&]uh1jhjR*ubah}(h]h ]h"]h$]h&]levelKtypej(sourcehlineMxuh1j(ube transformerN include_log]-Documentation/admin-guide/pm/intel_pstate.rst(NNNNta decorationNhhub.