Yocto Thermal Setting

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Yocto Thermal Setting

5,453 Views
kikimorisato
Contributor II

BSP: fsl-community-bsp (fido branch)

Kernel Version: 3.14.28

Board: SabreSD (mx6q)

LCD: Innolux 1024x600 LVDS

no X11 (frame buffer use)

--------------------------------------------------------------------------------------------------------------------

In LITB have changed the settings with the command below.

- threshold points for temperature – critical, hot and active

echo 100 > /sys/devices/virtual/thermal/thermal_zone0/trip_point_0_temp

echo 95 > /sys/devices/virtual/thermal/thermal_zone0/trip_point_1_temp

echo 90 > /sys/devices/virtual/thermal/thermal_zone0/trip_point_2_temp


- galcore min clock


echo 32 > /sys/module/galcore/parameters/gpu3DMinClock


--------------------------------------------------------------------------------------------------------------------


but in yocto


trip_point_temp0: Permission denied

and trip_point_temp3 is not available.


root@imx6qsabresd:/sys/devices/virtual/thermal/thermal_zone0# ls

cdev0                         mode           temp                                trip_point_1_type

cdev0_trip_point          policy          trip_point_0_temp              type

cdev1                         power          trip_point_0_type               uevent

cdev1_trip_point          subsystem   trip_point_1_temp

and gpu3DMinClock is not available.


root@imx6qsabresd:/sys/module/galcore/parameters# ls -al

drwxr-xr-x    2 root     root             0 Apr 21 08:20 .

drwxr-xr-x    3 root     root             0 Apr 21 08:20 ..

-rw-r--r--    1 root     root          4096 Apr 21 08:20 bankSize

-rw-r--r--    1 root     root          4096 Apr 21 08:20 baseAddress

-rw-r--r--    1 root     root          4096 Apr 21 08:20 compression

-rw-r--r--    1 root     root          4096 Apr 21 08:20 contiguousBase

-rw-r--r--    1 root     root          4096 Apr 21 08:20 contiguousSize

-rw-r--r--    1 root     root          4096 Apr 21 08:20 fastClear

-rw-r--r--    1 root     root          4096 Apr 21 08:20 gpuProfiler

-rw-r--r--    1 root     root          4096 Apr 21 08:20 initgpu3DMinClock

-rw-r--r--    1 root     root          4096 Apr 21 08:20 irqLine

-rw-r--r--    1 root     root          4096 Apr 21 08:20 irqLine2D

-rw-r--r--    1 root     root          4096 Apr 21 08:20 irqLineVG

-rw-r--r--    1 root     root          4096 Apr 21 08:20 logFileSize

-rw-r--r--    1 root     root          4096 Apr 21 08:20 major

-rw-r--r--    1 root     root          4096 Apr 21 08:20 mmu

-rw-r--r--    1 root     root          4096 Apr 21 08:20 physSize

-rw-r--r--    1 root     root          4096 Apr 21 08:20 powerManagement

-rw-r--r--    1 root     root          4096 Apr 21 08:20 recovery

-rw-r--r--    1 root     root          4096 Apr 21 08:20 registerMemBase

-rw-r--r--    1 root     root          4096 Apr 21 08:20 registerMemBase2D

-rw-r--r--    1 root     root          4096 Apr 21 08:20 registerMemBaseVG

-rw-r--r--    1 root     root          4096 Apr 21 08:20 registerMemSize

-rw-r--r--    1 root     root          4096 Apr 21 08:20 registerMemSize2D

-rw-r--r--    1 root     root          4096 Apr 21 08:20 registerMemSizeVG

-rw-r--r--    1 root     root          4096 Apr 21 08:20 showArgs

-rw-r--r--    1 root     root          4096 Apr 21 08:20 signal

-rw-r--r--    1 root     root          4096 Apr 21 08:20 stuckDump

--------------------------------------------------------------------------------------------------------------------


how can i change thermal and galcore 3D Min clock

Labels (2)
Tags (2)
0 Kudos
6 Replies

2,877 Views
igorpadykov
NXP Employee
NXP Employee

Hi KiKi

for thermal settings I would suggest to look at sect.26.4 Unit Test

attached Linux Manual and check with FSL BSP L3.14.28_1.0.0_iMX6QDLS_BUNDLE

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos

2,877 Views
kikimorisato
Contributor II

Hi igorpadykov~

Thank you for answers.

echo 100000 > /sys/class/thermal/thermal_zone0/cat trip_point_1_temp

-sh: /sys/class/thermal/thermal_zone0/cat: Permission denied

echo 90000 > /sys/class/thermal/thermal_zone0/cat trip_point_0_temp

-sh: /sys/class/thermal/thermal_zone0/cat: Permission denied

For the same reason i can not change the settings.

and i want change value of gpu3DMinClock. (where is it ?)

0 Kudos

2,877 Views
igorpadykov
NXP Employee
NXP Employee

Hi KiKi

what bsp are you using, please try FSL BSP.

~igor

0 Kudos

2,877 Views
kikimorisato
Contributor II

As the first sentence:

BSP: fsl-community-bsp (fido branch)

Kernel Version: 3.14.28

Board: SabreSD (mx6q)

LCD: Innolux 1024x600 LVDS

no X11 (frame buffer use)

here is my command list

echo 100000 > /sys/class/thermal/thermal_zone0/trip_point_1_temp

--> it's OK

echo 90000 > /sys/class/thermal/thermal_zone0/trip_point_0_temp

--> -sh: echo: write error: Invalid argument

going to be using the "fsl-release-bsp"?

and i want change value of gpu3DMinClock. (where is it ?)

0 Kudos

2,877 Views
igorpadykov
NXP Employee
NXP Employee

FSL BSP is different from "BSP: fsl-community-bsp (fido branch)",

please check with FSL BSP L3.14.28_1.0.0_iMX6QDLS_BUNDLE

2,877 Views
kikimorisato
Contributor II

Change the "imx_thermal.c" setting has been changed in the end.

i create patch file

like this...

---------------------------------------------------------------------------------------------------------------

diff -uprN a/drivers/thermal/imx_thermal.c b/drivers/thermal/imx_thermal.c

--- a/drivers/thermal/imx_thermal.c 2015-04-28 09:30:53.599347000 +0900

+++ b/drivers/thermal/imx_thermal.c 2015-04-29 09:36:34.078180235 +0900

@@ -68,7 +68,7 @@ enum imx_thermal_trip {

  * It defines the temperature in millicelsius for passive trip point

  * that will trigger cooling action when crossed.

  */

-#define IMX_TEMP_PASSIVE 85000

+#define IMX_TEMP_PASSIVE 110000

#define IMX_TEMP_PASSIVE_COOL_DELTA     10000

#define IMX_POLLING_DELAY 2000 /* millisecond */

@@ -438,10 +438,10 @@ static int imx_get_sensor_data(struct pl

  data->temp_passive = IMX_TEMP_PASSIVE;

  /*

- * Set the default critical trip point to 20 C higher

+ * Set the default critical trip point to 20 C higher (change 10 C by kimjh)

  * than passive trip point. Can be changed from userspace.

  */

- data->temp_critical = IMX_TEMP_PASSIVE + 20 * 1000;

+ data->temp_critical = IMX_TEMP_PASSIVE + 10 * 1000;

  return 0;

}

---------------------------------------------------------------------------------------------------------------


thank you

0 Kudos