intel / thermal_daemon

Thermal daemon for IA
GNU General Public License v2.0
540 stars 117 forks source link

"ppcc limits is less than def PL1 max power :28000000 check thermal-conf.xml.auto" - what does this mean? #322

Closed donquixote closed 2 months ago

donquixote commented 2 years ago

On LG Gram 2021. sudo service thermald status

● thermald.service - Thermal Daemon Service
     Loaded: loaded (/lib/systemd/system/thermald.service; enabled; vendor preset: enabled)
     Active: active (running) since Wed 2021-10-27 12:45:29 CEST; 6min ago
   Main PID: 8530 (thermald)
      Tasks: 4 (limit: 18724)
     Memory: 1.3M
     CGroup: /system.slice/thermald.service
             └─8530 /usr/sbin/thermald --systemd --dbus-enable --adaptive

Oct 27 12:45:29 lemon-gram systemd[1]: Starting Thermal Daemon Service...
Oct 27 12:45:29 lemon-gram systemd[1]: Started Thermal Daemon Service.
Oct 27 12:45:29 lemon-gram thermald[8530]: 27 CPUID levels; family:model:stepping 0x6:8c:1 (6:140:1)
Oct 27 12:45:29 lemon-gram thermald[8530]: 27 CPUID levels; family:model:stepping 0x6:8c:1 (6:140:1)
Oct 27 12:45:29 lemon-gram thermald[8530]: Polling mode is enabled: 4
Oct 27 12:45:29 lemon-gram thermald[8530]: sensor id 9 : No temp sysfs for reading raw temp
Oct 27 12:45:29 lemon-gram thermald[8530]: sensor id 9 : No temp sysfs for reading raw temp
Oct 27 12:45:29 lemon-gram thermald[8530]: sensor id 9 : No temp sysfs for reading raw temp
Oct 27 12:45:29 lemon-gram thermald[8530]: ppcc limits is less than def PL1 max power :28000000 check thermal-conf.xml.auto
Oct 27 12:45:29 lemon-gram thermald[8530]: ppcc limits is less than def PL1 max power :28000000 check thermal-conf.xml.auto

What's the meaning of "ppcc limits is less than def PL1 max power :28000000" here?

/etc/thermald/thermal-conf.xml:

<?xml version="1.0"?>
 <!-- BEGIN -->
 <ThermalConfiguration>
 <Platform>
        <Name> Auto generated </Name>
        <ProductName>17Z90P-G.AA79G</ProductName>
        <Preference>QUIET</Preference>
        <PPCC>
                <PowerLimitIndex>0</PowerLimitIndex>
                <PowerLimitMinimum>12000</PowerLimitMinimum>
                <PowerLimitMaximum>17000</PowerLimitMaximum>
                <TimeWindowMinimum>28000</TimeWindowMinimum>
                <TimeWindowMaximum>32000</TimeWindowMaximum>
                <StepSize>500</StepSize>
        </PPCC>
        <ThermalZones>
                <ThermalZone>
                        <Type>auto_zone_0</Type>
                        <TripPoints>
                                <TripPoint>
                                        <SensorType>SEN2</SensorType>
                                        <Temperature>22000</Temperature>
                                        <Type>Passive</Type>
                                        <CoolingDevice>
                                                <Type>B0D4</Type>
                                                <SamplingPeriod>3</SamplingPeriod>
                                                <TargetState>2147483647</TargetState>
                                        </CoolingDevice>
                                </TripPoint>
                                <TripPoint>
                                        <SensorType>SEN2</SensorType>
                                        <Temperature>23000</Temperature>
                                        <Type>Passive</Type>
                                        <CoolingDevice>
                                                <Type>B0D4</Type>
                                                <SamplingPeriod>3</SamplingPeriod>
                                        </CoolingDevice>
                                </TripPoint>
                        </TripPoints>
                </ThermalZone>
        </ThermalZones>
</Platform>
</ThermalConfiguration>
<!-- END -->

(I lowered the temperatures for testing purpose, but the 28000000 seems to be from TimeWindowMinimum)

spandruvada commented 2 months ago

This means what the register value contains is more than the thermal table max power limit,