What does kernel thermal zone mean in dts file?










2















In the dts file of my kernel, I have:



thermal-zones 
cpu0_thermal: cpu0-thermal
thermal-sensors = <&tmuctrl_0>;
polling-delay-passive = <1000>;
polling-delay = <1000>;
trips
cpu_alert0: cpu-alert-0
temperature = <100000>;
hysteresis = <1000>;
type = "active";
;
cpu_alert1: cpu-alert-1
temperature = <110000>;
hysteresis = <1000>;
type = "passive";
;
cpu_alert2: cpu-alert-2
temperature = <120000>;
hysteresis = <1000>;
type = "passive";
;
cpu-crit-0
temperature = <130000>;
hysteresis = <1000>;
type = "critical";
;
;

cooling-maps
map0
trip = <&cpu_alert0>;
cooling-device = <&cpu0 1 1>;
;
map1
trip = <&cpu_alert1>;
cooling-device = <&cpu0 4 4>;
;
map2
trip = <&cpu_alert2>;
cooling-device = <&cpu0 10 10>;
;
;
;
;


It seems that passive means only CPU is used, active means any FAN cooling-device is used.



My question: what do the two figures represent in the cooling-device of the CPU?



https://www.kernel.org/doc/Documentation/devicetree/bindings/thermal/thermal.txt says: "Cooling states are referred to by single unsigned integers, where larger numbers mean greater heat dissipation."



But what is 1, 4 and 10? Would this apply only if cpufreq is ondemand? How are the "cooling" frequencies calculated? is there another part of the DTS that is linked to those values?










share|improve this question




























    2















    In the dts file of my kernel, I have:



    thermal-zones 
    cpu0_thermal: cpu0-thermal
    thermal-sensors = <&tmuctrl_0>;
    polling-delay-passive = <1000>;
    polling-delay = <1000>;
    trips
    cpu_alert0: cpu-alert-0
    temperature = <100000>;
    hysteresis = <1000>;
    type = "active";
    ;
    cpu_alert1: cpu-alert-1
    temperature = <110000>;
    hysteresis = <1000>;
    type = "passive";
    ;
    cpu_alert2: cpu-alert-2
    temperature = <120000>;
    hysteresis = <1000>;
    type = "passive";
    ;
    cpu-crit-0
    temperature = <130000>;
    hysteresis = <1000>;
    type = "critical";
    ;
    ;

    cooling-maps
    map0
    trip = <&cpu_alert0>;
    cooling-device = <&cpu0 1 1>;
    ;
    map1
    trip = <&cpu_alert1>;
    cooling-device = <&cpu0 4 4>;
    ;
    map2
    trip = <&cpu_alert2>;
    cooling-device = <&cpu0 10 10>;
    ;
    ;
    ;
    ;


    It seems that passive means only CPU is used, active means any FAN cooling-device is used.



    My question: what do the two figures represent in the cooling-device of the CPU?



    https://www.kernel.org/doc/Documentation/devicetree/bindings/thermal/thermal.txt says: "Cooling states are referred to by single unsigned integers, where larger numbers mean greater heat dissipation."



    But what is 1, 4 and 10? Would this apply only if cpufreq is ondemand? How are the "cooling" frequencies calculated? is there another part of the DTS that is linked to those values?










    share|improve this question


























      2












      2








      2








      In the dts file of my kernel, I have:



      thermal-zones 
      cpu0_thermal: cpu0-thermal
      thermal-sensors = <&tmuctrl_0>;
      polling-delay-passive = <1000>;
      polling-delay = <1000>;
      trips
      cpu_alert0: cpu-alert-0
      temperature = <100000>;
      hysteresis = <1000>;
      type = "active";
      ;
      cpu_alert1: cpu-alert-1
      temperature = <110000>;
      hysteresis = <1000>;
      type = "passive";
      ;
      cpu_alert2: cpu-alert-2
      temperature = <120000>;
      hysteresis = <1000>;
      type = "passive";
      ;
      cpu-crit-0
      temperature = <130000>;
      hysteresis = <1000>;
      type = "critical";
      ;
      ;

      cooling-maps
      map0
      trip = <&cpu_alert0>;
      cooling-device = <&cpu0 1 1>;
      ;
      map1
      trip = <&cpu_alert1>;
      cooling-device = <&cpu0 4 4>;
      ;
      map2
      trip = <&cpu_alert2>;
      cooling-device = <&cpu0 10 10>;
      ;
      ;
      ;
      ;


      It seems that passive means only CPU is used, active means any FAN cooling-device is used.



      My question: what do the two figures represent in the cooling-device of the CPU?



      https://www.kernel.org/doc/Documentation/devicetree/bindings/thermal/thermal.txt says: "Cooling states are referred to by single unsigned integers, where larger numbers mean greater heat dissipation."



      But what is 1, 4 and 10? Would this apply only if cpufreq is ondemand? How are the "cooling" frequencies calculated? is there another part of the DTS that is linked to those values?










      share|improve this question
















      In the dts file of my kernel, I have:



      thermal-zones 
      cpu0_thermal: cpu0-thermal
      thermal-sensors = <&tmuctrl_0>;
      polling-delay-passive = <1000>;
      polling-delay = <1000>;
      trips
      cpu_alert0: cpu-alert-0
      temperature = <100000>;
      hysteresis = <1000>;
      type = "active";
      ;
      cpu_alert1: cpu-alert-1
      temperature = <110000>;
      hysteresis = <1000>;
      type = "passive";
      ;
      cpu_alert2: cpu-alert-2
      temperature = <120000>;
      hysteresis = <1000>;
      type = "passive";
      ;
      cpu-crit-0
      temperature = <130000>;
      hysteresis = <1000>;
      type = "critical";
      ;
      ;

      cooling-maps
      map0
      trip = <&cpu_alert0>;
      cooling-device = <&cpu0 1 1>;
      ;
      map1
      trip = <&cpu_alert1>;
      cooling-device = <&cpu0 4 4>;
      ;
      map2
      trip = <&cpu_alert2>;
      cooling-device = <&cpu0 10 10>;
      ;
      ;
      ;
      ;


      It seems that passive means only CPU is used, active means any FAN cooling-device is used.



      My question: what do the two figures represent in the cooling-device of the CPU?



      https://www.kernel.org/doc/Documentation/devicetree/bindings/thermal/thermal.txt says: "Cooling states are referred to by single unsigned integers, where larger numbers mean greater heat dissipation."



      But what is 1, 4 and 10? Would this apply only if cpufreq is ondemand? How are the "cooling" frequencies calculated? is there another part of the DTS that is linked to those values?







      linux-kernel dts heat






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 1 '18 at 16:48







      gregoiregentil

















      asked Nov 1 '18 at 3:21









      gregoiregentilgregoiregentil

      7921340




      7921340






















          1 Answer
          1






          active

          oldest

          votes


















          0














          I'm not totally sure if it's generic or specific to my ARM device, but I figured out by reading commit comments that the number (1, 4, 10) correspond to throttle of the CPU only in ondemand mode. In my particular case, those numbers represent a measure of throttle in 100MHz. Therefore, 10 means that the CPU is throttle at 1GHz less than its maximum frequency.






          share|improve this answer























            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53094799%2fwhat-does-kernel-thermal-zone-mean-in-dts-file%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            I'm not totally sure if it's generic or specific to my ARM device, but I figured out by reading commit comments that the number (1, 4, 10) correspond to throttle of the CPU only in ondemand mode. In my particular case, those numbers represent a measure of throttle in 100MHz. Therefore, 10 means that the CPU is throttle at 1GHz less than its maximum frequency.






            share|improve this answer



























              0














              I'm not totally sure if it's generic or specific to my ARM device, but I figured out by reading commit comments that the number (1, 4, 10) correspond to throttle of the CPU only in ondemand mode. In my particular case, those numbers represent a measure of throttle in 100MHz. Therefore, 10 means that the CPU is throttle at 1GHz less than its maximum frequency.






              share|improve this answer

























                0












                0








                0







                I'm not totally sure if it's generic or specific to my ARM device, but I figured out by reading commit comments that the number (1, 4, 10) correspond to throttle of the CPU only in ondemand mode. In my particular case, those numbers represent a measure of throttle in 100MHz. Therefore, 10 means that the CPU is throttle at 1GHz less than its maximum frequency.






                share|improve this answer













                I'm not totally sure if it's generic or specific to my ARM device, but I figured out by reading commit comments that the number (1, 4, 10) correspond to throttle of the CPU only in ondemand mode. In my particular case, those numbers represent a measure of throttle in 100MHz. Therefore, 10 means that the CPU is throttle at 1GHz less than its maximum frequency.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 15 '18 at 19:17









                gregoiregentilgregoiregentil

                7921340




                7921340





























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53094799%2fwhat-does-kernel-thermal-zone-mean-in-dts-file%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    這個網誌中的熱門文章

                    What does pagestruct do in Eviews?

                    Dutch intervention in Lombok and Karangasem

                    Channel Islands