SlideShare a Scribd company logo
Tegra3 Thermal Management cont.
Thermal
Sensor
CPU PMU
Get data from CPU (D+/D-)
Feedback external temperature
Monitoring if temperature is greater
than Throttle threshold
Change power control to reduce
CPU clock and low frequency
Feedback external temperature
Update DVFS table
Get data from CPU (D+/D-)
Notify to start Throttling task
Tegra3 Thermal Management cont.
Thermal
Sensor
CPU PMU
Get data from CPU (D+/D-)
Feedback external temperature
Clear DEV_ON bit to prepare to
shutdown power for CPU
Disable peripheral driver
Monitoring if temperature is greater
than Shutdown threshold
 Configure IRQ as Low-level trigger.
 HW sends interrupt according to initial threshold stored
in thermal sensor register (FW).
 Acer-specific initial value were set as follow:
 Implementation was done in file:
 nct1008.c (Driver layer configuration)
 board-acer-t30.c (NV default value for vendor customization)
 board-acer-t30-sensors.c (set into nct1008 non-violate flash)
Pin Function Threshold
TEMP_ALERT Throttling 85 ℃
AP_OVERHEAT Shutdown 90 ℃
 Verification for specific value by commands as follow,
 cat /sys/class/i2c-dev/i2c-4/device/4-004c/tempaerature_alert
 cat /sys/class/i2c-dev/i2c-4/device/4-004c/tempaerature_overheat
The ALERT output deasserts only when:
1. Temperature has fallen below the
high temperature limit.
2. Master has read the device address.
3. Cleared the status register.
Thermal Sensor
T30
Throttle
node
Monitor
DVFS
Adjust
DVFS
Cooling device N
.
.
.
Cooling device 1
Update
Update
CPU EDP Table
1400/1300/1200/1100
Switch
ALERT
Update
Bind
Monitor
Bind
UpdateUpdate Update
nct1008.c
configure_sensor ()
configure_irq ()
get_temp ()
show_temp ()
set alert ()
show alert ()
work_func ()
SW Code Flow cont.
tegra3_thermal.c
tegra_thermal_alert_unlocked ()
tegra_edp_update_thermal_zone ()
cpu_tegra.c edp.c
tegra3_throttle.c
thermal_sys.c
edp_update_limit ()
tegra_cpu_set_speed
show_throttle
tegra_system_edp
_map[]
SW Code Flow cont.
 Thermal threshold initialization
board-acer-t30.c
board-acer-t30-sensors.c
SW Code Flow cont.
 HW interrupt triggers work_func to proceed throttling task!
Master has read the
device address
Cleared the
status register
SW Code Flow cont.
 Stop charging if throttling starts.
 After finish each throttling call, update temperature to T30.
SW Code Flow cont.
 Check if temperature is over
limit stored in EDP table.
 Update index for new
temperature to mapping EDP
table.
 Update CPU rate according to
the temperature which was
reported by nct1008 work
function.
 Adjust and update DVFS
latest setting for CPU clock.
SW Code Flow cont.
 Throttle sysfs node is the “answer” for CPU to know when
throttling process ends.
 Sysfs node stores in path:
sys/devices/system/cpu/cpu0/cpufreq/throttle
SW Code Flow cont.
 tegra3_throttle.c will report the latest status of throttling process.
SW Code Flow cont.
 thermal_sys.c (cooling device) write TRUE/FALSE TO sysfs node
“throttle” to update for tegra3_throttle.c and cpu-tegra.c
SW Code Flow cont.
 CPU frequency adjustment mapping table with throttling stage.
 Interrupt will be send to notify when temperature isn’t within limit,
 45~60: 1.3GHz
 60~75: 1.3GHz
 75~85: 1.2GHz
 over 85: 1.1GHz
Stage
Core On (cpu0 to 3)
SW Code Flow cont.
 CPU frequency adjustment mapping table
 SW verification step
 HW verification step
Throttling
Shutdown

More Related Content

Viewers also liked

Printing Evolution for Business Transformation
Printing Evolution for Business TransformationPrinting Evolution for Business Transformation
Printing Evolution for Business Transformation
IDC Italy
 
Str 581 guide 3 87) One study found that manufacturing labor costs about ___ ...
Str 581 guide 3 87) One study found that manufacturing labor costs about ___ ...Str 581 guide 3 87) One study found that manufacturing labor costs about ___ ...
Str 581 guide 3 87) One study found that manufacturing labor costs about ___ ...
sankarananthcj
 
Restaurante moulin de paris lanzarote
Restaurante moulin de paris   lanzaroteRestaurante moulin de paris   lanzarote
Restaurante moulin de paris lanzaroteGONZALO CASADO
 
Jolly bouy island
Jolly bouy islandJolly bouy island
Jolly bouy island
Sonali Dudhane
 
Application Form Booklet MC 14-15
Application Form Booklet MC 14-15Application Form Booklet MC 14-15
Application Form Booklet MC 14-15
Andrada Falcoi
 
Sap hana documentation @ TL Technologies
Sap hana documentation @ TL TechnologiesSap hana documentation @ TL Technologies
Sap hana documentation @ TL Technologies
TL Technologies - Thoughts Become Things
 
FotosintesisREAKSI GELAP DAN TERANG
FotosintesisREAKSI GELAP DAN TERANGFotosintesisREAKSI GELAP DAN TERANG
FotosintesisREAKSI GELAP DAN TERANG
Merry-ta Bintang
 
Little Angel
Little AngelLittle Angel
Little Angel
Jay Wang
 
Advanced Mathematics Program 8
Advanced Mathematics Program 8Advanced Mathematics Program 8
Advanced Mathematics Program 8
Lade Asrah Carim
 
итоговый урок в 11 классе
итоговый урок в 11 классеитоговый урок в 11 классе
итоговый урок в 11 классеkazanina-pk
 
Fractures - general view
Fractures - general view Fractures - general view
Fractures - general view
Shanta Peter
 
Chủ đề 2 nhóm 11
Chủ đề 2 nhóm 11Chủ đề 2 nhóm 11
Chủ đề 2 nhóm 11
Anh Truong
 
Untitled Presentation
Untitled PresentationUntitled Presentation
Untitled Presentation
Chuyen Vu Dinh
 

Viewers also liked (13)

Printing Evolution for Business Transformation
Printing Evolution for Business TransformationPrinting Evolution for Business Transformation
Printing Evolution for Business Transformation
 
Str 581 guide 3 87) One study found that manufacturing labor costs about ___ ...
Str 581 guide 3 87) One study found that manufacturing labor costs about ___ ...Str 581 guide 3 87) One study found that manufacturing labor costs about ___ ...
Str 581 guide 3 87) One study found that manufacturing labor costs about ___ ...
 
Restaurante moulin de paris lanzarote
Restaurante moulin de paris   lanzaroteRestaurante moulin de paris   lanzarote
Restaurante moulin de paris lanzarote
 
Jolly bouy island
Jolly bouy islandJolly bouy island
Jolly bouy island
 
Application Form Booklet MC 14-15
Application Form Booklet MC 14-15Application Form Booklet MC 14-15
Application Form Booklet MC 14-15
 
Sap hana documentation @ TL Technologies
Sap hana documentation @ TL TechnologiesSap hana documentation @ TL Technologies
Sap hana documentation @ TL Technologies
 
FotosintesisREAKSI GELAP DAN TERANG
FotosintesisREAKSI GELAP DAN TERANGFotosintesisREAKSI GELAP DAN TERANG
FotosintesisREAKSI GELAP DAN TERANG
 
Little Angel
Little AngelLittle Angel
Little Angel
 
Advanced Mathematics Program 8
Advanced Mathematics Program 8Advanced Mathematics Program 8
Advanced Mathematics Program 8
 
итоговый урок в 11 классе
итоговый урок в 11 классеитоговый урок в 11 классе
итоговый урок в 11 классе
 
Fractures - general view
Fractures - general view Fractures - general view
Fractures - general view
 
Chủ đề 2 nhóm 11
Chủ đề 2 nhóm 11Chủ đề 2 nhóm 11
Chủ đề 2 nhóm 11
 
Untitled Presentation
Untitled PresentationUntitled Presentation
Untitled Presentation
 

Similar to Android jb thermal sw flow

04 2 new smart csu r00
04 2 new smart csu r0004 2 new smart csu r00
04 2 new smart csu r00
Đinh Công Thiện Taydo University
 
The Consultants Role
The Consultants RoleThe Consultants Role
The Consultants Role
ASHRAE Region VI
 
Tegra Throttling Monitor
Tegra Throttling MonitorTegra Throttling Monitor
Tegra Throttling Monitor
Stanley Chang
 
Showcase
ShowcaseShowcase
Showcase
Steve Carter
 
Temperature Monitoring System with remote calibration capability
Temperature Monitoring System with remote calibration capabilityTemperature Monitoring System with remote calibration capability
Temperature Monitoring System with remote calibration capability
kashyap velpuru
 
Electical Power Subsystem _CDR.pptx
Electical Power Subsystem _CDR.pptxElectical Power Subsystem _CDR.pptx
Electical Power Subsystem _CDR.pptx
Aldi Walai
 
C programming of an ARM microcontroller and writing UART serial communication...
C programming of an ARM microcontroller and writing UART serial communication...C programming of an ARM microcontroller and writing UART serial communication...
C programming of an ARM microcontroller and writing UART serial communication...
nipunkrn
 
Manuale Instatore User Manual
Manuale Instatore User ManualManuale Instatore User Manual
Manuale Instatore User Manual
conwaychris
 
Automatic temp controller
Automatic temp controllerAutomatic temp controller
Automatic temp controller
simmy89
 
TPS2492/93 – High Voltage Hotswap Controller
TPS2492/93 – High Voltage Hotswap ControllerTPS2492/93 – High Voltage Hotswap Controller
TPS2492/93 – High Voltage Hotswap Controller
Premier Farnell
 
Em s7 plc
Em s7 plcEm s7 plc
Em s7 plc
chethanraj
 
Improving energy efficiency in the data center: Endure higher temperatures wi...
Improving energy efficiency in the data center: Endure higher temperatures wi...Improving energy efficiency in the data center: Endure higher temperatures wi...
Improving energy efficiency in the data center: Endure higher temperatures wi...
Principled Technologies
 
Improving energy efficiency in the data center: Endure higher temperatures wi...
Improving energy efficiency in the data center: Endure higher temperatures wi...Improving energy efficiency in the data center: Endure higher temperatures wi...
Improving energy efficiency in the data center: Endure higher temperatures wi...
Principled Technologies
 
Project (K.Grigoryev)
Project  (K.Grigoryev)Project  (K.Grigoryev)
Project (K.Grigoryev)
Konstantin1959
 
06 troubleshooting maintenance
06 troubleshooting maintenance06 troubleshooting maintenance
06 troubleshooting maintenance
Đinh Công Thiện Taydo University
 
Temperature based speed control of fan
Temperature based speed control of fanTemperature based speed control of fan
Temperature based speed control of fan
Çdh Suman
 
Heat sink
Heat sinkHeat sink
Heat sink
Sv Anand
 
Ds1307 datasheet
Ds1307 datasheetDs1307 datasheet
Arduino HVAC Temperature Controller
Arduino HVAC Temperature ControllerArduino HVAC Temperature Controller
Arduino HVAC Temperature Controller
Michael Clarke
 
Xbee Wireless Throttle Position Sensor And Control
Xbee Wireless Throttle Position Sensor  And ControlXbee Wireless Throttle Position Sensor  And Control
Xbee Wireless Throttle Position Sensor And Control
kians64
 

Similar to Android jb thermal sw flow (20)

04 2 new smart csu r00
04 2 new smart csu r0004 2 new smart csu r00
04 2 new smart csu r00
 
The Consultants Role
The Consultants RoleThe Consultants Role
The Consultants Role
 
Tegra Throttling Monitor
Tegra Throttling MonitorTegra Throttling Monitor
Tegra Throttling Monitor
 
Showcase
ShowcaseShowcase
Showcase
 
Temperature Monitoring System with remote calibration capability
Temperature Monitoring System with remote calibration capabilityTemperature Monitoring System with remote calibration capability
Temperature Monitoring System with remote calibration capability
 
Electical Power Subsystem _CDR.pptx
Electical Power Subsystem _CDR.pptxElectical Power Subsystem _CDR.pptx
Electical Power Subsystem _CDR.pptx
 
C programming of an ARM microcontroller and writing UART serial communication...
C programming of an ARM microcontroller and writing UART serial communication...C programming of an ARM microcontroller and writing UART serial communication...
C programming of an ARM microcontroller and writing UART serial communication...
 
Manuale Instatore User Manual
Manuale Instatore User ManualManuale Instatore User Manual
Manuale Instatore User Manual
 
Automatic temp controller
Automatic temp controllerAutomatic temp controller
Automatic temp controller
 
TPS2492/93 – High Voltage Hotswap Controller
TPS2492/93 – High Voltage Hotswap ControllerTPS2492/93 – High Voltage Hotswap Controller
TPS2492/93 – High Voltage Hotswap Controller
 
Em s7 plc
Em s7 plcEm s7 plc
Em s7 plc
 
Improving energy efficiency in the data center: Endure higher temperatures wi...
Improving energy efficiency in the data center: Endure higher temperatures wi...Improving energy efficiency in the data center: Endure higher temperatures wi...
Improving energy efficiency in the data center: Endure higher temperatures wi...
 
Improving energy efficiency in the data center: Endure higher temperatures wi...
Improving energy efficiency in the data center: Endure higher temperatures wi...Improving energy efficiency in the data center: Endure higher temperatures wi...
Improving energy efficiency in the data center: Endure higher temperatures wi...
 
Project (K.Grigoryev)
Project  (K.Grigoryev)Project  (K.Grigoryev)
Project (K.Grigoryev)
 
06 troubleshooting maintenance
06 troubleshooting maintenance06 troubleshooting maintenance
06 troubleshooting maintenance
 
Temperature based speed control of fan
Temperature based speed control of fanTemperature based speed control of fan
Temperature based speed control of fan
 
Heat sink
Heat sinkHeat sink
Heat sink
 
Ds1307 datasheet
Ds1307 datasheetDs1307 datasheet
Ds1307 datasheet
 
Arduino HVAC Temperature Controller
Arduino HVAC Temperature ControllerArduino HVAC Temperature Controller
Arduino HVAC Temperature Controller
 
Xbee Wireless Throttle Position Sensor And Control
Xbee Wireless Throttle Position Sensor  And ControlXbee Wireless Throttle Position Sensor  And Control
Xbee Wireless Throttle Position Sensor And Control
 

Recently uploaded

Photoshop Tutorial for Beginners (2024 Edition)
Photoshop Tutorial for Beginners (2024 Edition)Photoshop Tutorial for Beginners (2024 Edition)
Photoshop Tutorial for Beginners (2024 Edition)
alowpalsadig
 
The Comprehensive Guide to Validating Audio-Visual Performances.pdf
The Comprehensive Guide to Validating Audio-Visual Performances.pdfThe Comprehensive Guide to Validating Audio-Visual Performances.pdf
The Comprehensive Guide to Validating Audio-Visual Performances.pdf
kalichargn70th171
 
Malibou Pitch Deck For Its €3M Seed Round
Malibou Pitch Deck For Its €3M Seed RoundMalibou Pitch Deck For Its €3M Seed Round
Malibou Pitch Deck For Its €3M Seed Round
sjcobrien
 
Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...
Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...
Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...
Paul Brebner
 
Measures in SQL (SIGMOD 2024, Santiago, Chile)
Measures in SQL (SIGMOD 2024, Santiago, Chile)Measures in SQL (SIGMOD 2024, Santiago, Chile)
Measures in SQL (SIGMOD 2024, Santiago, Chile)
Julian Hyde
 
🏎️Tech Transformation: DevOps Insights from the Experts 👩‍💻
🏎️Tech Transformation: DevOps Insights from the Experts 👩‍💻🏎️Tech Transformation: DevOps Insights from the Experts 👩‍💻
🏎️Tech Transformation: DevOps Insights from the Experts 👩‍💻
campbellclarkson
 
Kubernetes at Scale: Going Multi-Cluster with Istio
Kubernetes at Scale:  Going Multi-Cluster  with IstioKubernetes at Scale:  Going Multi-Cluster  with Istio
Kubernetes at Scale: Going Multi-Cluster with Istio
Severalnines
 
The Rising Future of CPaaS in the Middle East 2024
The Rising Future of CPaaS in the Middle East 2024The Rising Future of CPaaS in the Middle East 2024
The Rising Future of CPaaS in the Middle East 2024
Yara Milbes
 
All you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVMAll you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVM
Alina Yurenko
 
14 th Edition of International conference on computer vision
14 th Edition of International conference on computer vision14 th Edition of International conference on computer vision
14 th Edition of International conference on computer vision
ShulagnaSarkar2
 
Alluxio Webinar | 10x Faster Trino Queries on Your Data Platform
Alluxio Webinar | 10x Faster Trino Queries on Your Data PlatformAlluxio Webinar | 10x Faster Trino Queries on Your Data Platform
Alluxio Webinar | 10x Faster Trino Queries on Your Data Platform
Alluxio, Inc.
 
Manyata Tech Park Bangalore_ Infrastructure, Facilities and More
Manyata Tech Park Bangalore_ Infrastructure, Facilities and MoreManyata Tech Park Bangalore_ Infrastructure, Facilities and More
Manyata Tech Park Bangalore_ Infrastructure, Facilities and More
narinav14
 
一比一原版(USF毕业证)旧金山大学毕业证如何办理
一比一原版(USF毕业证)旧金山大学毕业证如何办理一比一原版(USF毕业证)旧金山大学毕业证如何办理
一比一原版(USF毕业证)旧金山大学毕业证如何办理
dakas1
 
一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理
一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理
一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理
dakas1
 
一比一原版(sdsu毕业证书)圣地亚哥州立大学毕业证如何办理
一比一原版(sdsu毕业证书)圣地亚哥州立大学毕业证如何办理一比一原版(sdsu毕业证书)圣地亚哥州立大学毕业证如何办理
一比一原版(sdsu毕业证书)圣地亚哥州立大学毕业证如何办理
kgyxske
 
Superpower Your Apache Kafka Applications Development with Complementary Open...
Superpower Your Apache Kafka Applications Development with Complementary Open...Superpower Your Apache Kafka Applications Development with Complementary Open...
Superpower Your Apache Kafka Applications Development with Complementary Open...
Paul Brebner
 
Boost Your Savings with These Money Management Apps
Boost Your Savings with These Money Management AppsBoost Your Savings with These Money Management Apps
Boost Your Savings with These Money Management Apps
Jhone kinadey
 
DevOps Consulting Company | Hire DevOps Services
DevOps Consulting Company | Hire DevOps ServicesDevOps Consulting Company | Hire DevOps Services
DevOps Consulting Company | Hire DevOps Services
seospiralmantra
 
Unveiling the Advantages of Agile Software Development.pdf
Unveiling the Advantages of Agile Software Development.pdfUnveiling the Advantages of Agile Software Development.pdf
Unveiling the Advantages of Agile Software Development.pdf
brainerhub1
 
A Comprehensive Guide on Implementing Real-World Mobile Testing Strategies fo...
A Comprehensive Guide on Implementing Real-World Mobile Testing Strategies fo...A Comprehensive Guide on Implementing Real-World Mobile Testing Strategies fo...
A Comprehensive Guide on Implementing Real-World Mobile Testing Strategies fo...
kalichargn70th171
 

Recently uploaded (20)

Photoshop Tutorial for Beginners (2024 Edition)
Photoshop Tutorial for Beginners (2024 Edition)Photoshop Tutorial for Beginners (2024 Edition)
Photoshop Tutorial for Beginners (2024 Edition)
 
The Comprehensive Guide to Validating Audio-Visual Performances.pdf
The Comprehensive Guide to Validating Audio-Visual Performances.pdfThe Comprehensive Guide to Validating Audio-Visual Performances.pdf
The Comprehensive Guide to Validating Audio-Visual Performances.pdf
 
Malibou Pitch Deck For Its €3M Seed Round
Malibou Pitch Deck For Its €3M Seed RoundMalibou Pitch Deck For Its €3M Seed Round
Malibou Pitch Deck For Its €3M Seed Round
 
Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...
Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...
Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...
 
Measures in SQL (SIGMOD 2024, Santiago, Chile)
Measures in SQL (SIGMOD 2024, Santiago, Chile)Measures in SQL (SIGMOD 2024, Santiago, Chile)
Measures in SQL (SIGMOD 2024, Santiago, Chile)
 
🏎️Tech Transformation: DevOps Insights from the Experts 👩‍💻
🏎️Tech Transformation: DevOps Insights from the Experts 👩‍💻🏎️Tech Transformation: DevOps Insights from the Experts 👩‍💻
🏎️Tech Transformation: DevOps Insights from the Experts 👩‍💻
 
Kubernetes at Scale: Going Multi-Cluster with Istio
Kubernetes at Scale:  Going Multi-Cluster  with IstioKubernetes at Scale:  Going Multi-Cluster  with Istio
Kubernetes at Scale: Going Multi-Cluster with Istio
 
The Rising Future of CPaaS in the Middle East 2024
The Rising Future of CPaaS in the Middle East 2024The Rising Future of CPaaS in the Middle East 2024
The Rising Future of CPaaS in the Middle East 2024
 
All you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVMAll you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVM
 
14 th Edition of International conference on computer vision
14 th Edition of International conference on computer vision14 th Edition of International conference on computer vision
14 th Edition of International conference on computer vision
 
Alluxio Webinar | 10x Faster Trino Queries on Your Data Platform
Alluxio Webinar | 10x Faster Trino Queries on Your Data PlatformAlluxio Webinar | 10x Faster Trino Queries on Your Data Platform
Alluxio Webinar | 10x Faster Trino Queries on Your Data Platform
 
Manyata Tech Park Bangalore_ Infrastructure, Facilities and More
Manyata Tech Park Bangalore_ Infrastructure, Facilities and MoreManyata Tech Park Bangalore_ Infrastructure, Facilities and More
Manyata Tech Park Bangalore_ Infrastructure, Facilities and More
 
一比一原版(USF毕业证)旧金山大学毕业证如何办理
一比一原版(USF毕业证)旧金山大学毕业证如何办理一比一原版(USF毕业证)旧金山大学毕业证如何办理
一比一原版(USF毕业证)旧金山大学毕业证如何办理
 
一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理
一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理
一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理
 
一比一原版(sdsu毕业证书)圣地亚哥州立大学毕业证如何办理
一比一原版(sdsu毕业证书)圣地亚哥州立大学毕业证如何办理一比一原版(sdsu毕业证书)圣地亚哥州立大学毕业证如何办理
一比一原版(sdsu毕业证书)圣地亚哥州立大学毕业证如何办理
 
Superpower Your Apache Kafka Applications Development with Complementary Open...
Superpower Your Apache Kafka Applications Development with Complementary Open...Superpower Your Apache Kafka Applications Development with Complementary Open...
Superpower Your Apache Kafka Applications Development with Complementary Open...
 
Boost Your Savings with These Money Management Apps
Boost Your Savings with These Money Management AppsBoost Your Savings with These Money Management Apps
Boost Your Savings with These Money Management Apps
 
DevOps Consulting Company | Hire DevOps Services
DevOps Consulting Company | Hire DevOps ServicesDevOps Consulting Company | Hire DevOps Services
DevOps Consulting Company | Hire DevOps Services
 
Unveiling the Advantages of Agile Software Development.pdf
Unveiling the Advantages of Agile Software Development.pdfUnveiling the Advantages of Agile Software Development.pdf
Unveiling the Advantages of Agile Software Development.pdf
 
A Comprehensive Guide on Implementing Real-World Mobile Testing Strategies fo...
A Comprehensive Guide on Implementing Real-World Mobile Testing Strategies fo...A Comprehensive Guide on Implementing Real-World Mobile Testing Strategies fo...
A Comprehensive Guide on Implementing Real-World Mobile Testing Strategies fo...
 

Android jb thermal sw flow

  • 1.
  • 2.
  • 3.
  • 4. Tegra3 Thermal Management cont. Thermal Sensor CPU PMU Get data from CPU (D+/D-) Feedback external temperature Monitoring if temperature is greater than Throttle threshold Change power control to reduce CPU clock and low frequency Feedback external temperature Update DVFS table Get data from CPU (D+/D-) Notify to start Throttling task
  • 5. Tegra3 Thermal Management cont. Thermal Sensor CPU PMU Get data from CPU (D+/D-) Feedback external temperature Clear DEV_ON bit to prepare to shutdown power for CPU Disable peripheral driver Monitoring if temperature is greater than Shutdown threshold
  • 6.  Configure IRQ as Low-level trigger.  HW sends interrupt according to initial threshold stored in thermal sensor register (FW).
  • 7.  Acer-specific initial value were set as follow:  Implementation was done in file:  nct1008.c (Driver layer configuration)  board-acer-t30.c (NV default value for vendor customization)  board-acer-t30-sensors.c (set into nct1008 non-violate flash) Pin Function Threshold TEMP_ALERT Throttling 85 ℃ AP_OVERHEAT Shutdown 90 ℃
  • 8.  Verification for specific value by commands as follow,  cat /sys/class/i2c-dev/i2c-4/device/4-004c/tempaerature_alert  cat /sys/class/i2c-dev/i2c-4/device/4-004c/tempaerature_overheat
  • 9. The ALERT output deasserts only when: 1. Temperature has fallen below the high temperature limit. 2. Master has read the device address. 3. Cleared the status register.
  • 10. Thermal Sensor T30 Throttle node Monitor DVFS Adjust DVFS Cooling device N . . . Cooling device 1 Update Update CPU EDP Table 1400/1300/1200/1100 Switch ALERT Update Bind Monitor Bind UpdateUpdate Update
  • 11. nct1008.c configure_sensor () configure_irq () get_temp () show_temp () set alert () show alert () work_func () SW Code Flow cont. tegra3_thermal.c tegra_thermal_alert_unlocked () tegra_edp_update_thermal_zone () cpu_tegra.c edp.c tegra3_throttle.c thermal_sys.c edp_update_limit () tegra_cpu_set_speed show_throttle tegra_system_edp _map[]
  • 12. SW Code Flow cont.  Thermal threshold initialization board-acer-t30.c board-acer-t30-sensors.c
  • 13. SW Code Flow cont.  HW interrupt triggers work_func to proceed throttling task! Master has read the device address Cleared the status register
  • 14. SW Code Flow cont.  Stop charging if throttling starts.  After finish each throttling call, update temperature to T30.
  • 15. SW Code Flow cont.  Check if temperature is over limit stored in EDP table.  Update index for new temperature to mapping EDP table.  Update CPU rate according to the temperature which was reported by nct1008 work function.  Adjust and update DVFS latest setting for CPU clock.
  • 16. SW Code Flow cont.  Throttle sysfs node is the “answer” for CPU to know when throttling process ends.  Sysfs node stores in path: sys/devices/system/cpu/cpu0/cpufreq/throttle
  • 17. SW Code Flow cont.  tegra3_throttle.c will report the latest status of throttling process.
  • 18. SW Code Flow cont.  thermal_sys.c (cooling device) write TRUE/FALSE TO sysfs node “throttle” to update for tegra3_throttle.c and cpu-tegra.c
  • 19. SW Code Flow cont.  CPU frequency adjustment mapping table with throttling stage.  Interrupt will be send to notify when temperature isn’t within limit,  45~60: 1.3GHz  60~75: 1.3GHz  75~85: 1.2GHz  over 85: 1.1GHz Stage Core On (cpu0 to 3)
  • 20. SW Code Flow cont.  CPU frequency adjustment mapping table
  • 22.  HW verification step Throttling Shutdown