NVIDIA Tegra
DRIVE 5.0 Linux Open Source Software

Development Guide
5.0.10.3 Release


 
Voltage Scaling
 
GPU Voltage Scaling
GPU Settings
GPU Frequency Settings and Calibration Issues
CPU Voltage Scaling
CPU Settings
The NVIDIA DRIVE™ 5.0 platforms support dynamic voltage scaling for CPU and GPU. The BPMP sets CPU and GPU voltage settings based on the chip process, current frequency, and current temperature. It also dynamically updates target voltage, based on the current frequency and current temperature.
GPU Voltage Scaling
The BPMP determines the target voltage, based on GPU frequency. You can view GPU voltage scaling table with the following command:
cat /sys/kernel/debug/bpmp/debug/clk/nafll_gpu/swlut
The following is example result from that command:
 
V/mV
-40C- 30C
25C- 50C
45C- 75C
70C-105C
-40C-105C
 
 
NDIV/ MHz
NDIV/ MHz
NDIV/ MHz
NDIV/ MHz
NDIV/ MHz
0
502
0/ 0
0/ 0
0/ 0
0/ 0
9/ 229
1
511
0/ 0
0/ 0
0/ 0
0/ 0
9/ 229
2
520
0/ 0
0/ 0
0/ 0
0/ 0
10/ 255
3
529
0/ 0
0/ 0
0/ 0
0/ 0
13/ 331
4
538
0/ 0
0/ 0
0/ 0
0/ 0
16/ 408
5
547
0/ 0
0/ 0
0/ 0
0/ 0
19/ 484
6
556
0/ 0
0/ 0
0/ 0
0/ 0
22/ 561
7
565
0/ 0
0/ 0
0/ 0
0/ 0
25/ 637
8
574
0/ 0
0/ 0
0/ 0
0/ 0
28/ 714
9
583
0/ 0
0/ 0
0/ 0
0/ 0
31/ 790
10
592
0/ 0
0/ 0
0/ 0
0/ 0
33/ 841
11
601
0/ 0
0/ 0
0/ 0
0/ 0
36/ 918
12
610
0/ 0
0/ 0
0/ 0
0/ 0
39/ 994
13
619
0/ 0
0/ 0
0/ 0
0/ 0
41/1045
14
628
0/ 0
0/ 0
0/ 0
0/ 0
44/1122
15
637
0/ 0
0/ 0
0/ 0
0/ 0
46/1173
16
646
0/ 0
0/ 0
0/ 0
0/ 0
49/1249
17
655
0/ 0
0/ 0
0/ 0
0/ 0
51/1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
0/ 0
0/ 0
0/ 0
106/2703
The column index specifies frequency in MHz and NDIV value for chip temperature. The row index specifies voltage in mV. The current GPU frequency is the half of the nafll_gpu clock output. For example, if the current GPU frequency is 1275 MHz, then the BPMP sets the GPU voltage setting to 934 mV. The BPMP dynamically changes voltages based on frequency.
GPU Settings
The following commands show how to locate GPU settings information:
GPU voltage scaling table (Read only)
cat /sys/kernel/debug/bpmp/debug/clk/nafll_gpu/swlut
Current chip temperature in milliDegrees Celsius (Read only)
cat /sys/bus/i2c/devices/0-004c/temperature
Current GPU frequency rate (Read/Write)
cat /sys/devices/18000000.vgpu/devfreq/18000000.vgpu/cur_freq
Current GPU voltage set in milliVolts:
cat /sys/kernel/debug/bpmp/debug/regulator/vdd_gpu/voltage
List of possible GPU frequency rates (Read only)
cat /sys/devices/18000000.vgpu/devfreq/18000000.vgpu/available_frequencies
GPU Frequency Settings and Calibration Issues
Due to analog-to-digital converter (ADC) calibration issues on the A01 board, GPU frequency may be less than 1 GHz. You can query for both the software-requested GPU frequency and the current GPU frequency.
To get the software-requested GPU frequency
Enter the following command:
cat /sys/class/devfreq/18000000.vgpu/userspace/set_freq
To get the current GPU frequency
Enter the following command:
cat /sys/class/devfreq/18000000.vgpu/cur_freq
CPU Voltage Scaling
The BPMP determines the target voltage, based on CPU frequency. The VDD_CPU is shared with BCPU(A57) and MCPU(Denver).
BCPU(A57) voltage scaling can be viewed with the following command:
cat /sys/kernel/debug/bpmp/debug/clk/nafll_bcpu/swlut
 
V/mV
-40C- 30C
25C- 50C
45C- 75C
70C-105C
-40C-105C
 
 
NDIV/ MHz
NDIV/ MHz
NDIV/ MHz
NDIV/ MHz
NDIV/ MHz
0
471
9/ 345
9/ 345
9/ 345
9/ 345
9/ 345
1
480
9/ 345
9/ 345
9/ 345
9/ 345
9/ 345
2
489
9/ 345
9/ 345
9/ 345
9/ 345
9/ 345
3
498
9/ 345
9/ 345
9/ 345
9/ 345
9/ 345
4
507
9/ 345
9/ 345
9/ 345
9/ 345
9/ 345
5
516
9/ 345
9/ 345
9/ 345
9/ 345
9/ 345
6
525
9/ 345
9/ 345
9/ 345
9/ 345
9/ 345
7
534
9/ 345
9/ 345
9/ 345
9/ 345
9/ 345
8
543
9/ 345
9/ 345
9/ 345
9/ 345
9/ 345
9
552
11/ 422
11/ 422
11/ 422
11/ 422
11/ 422
10
561
13/ 499
13/ 499
13/ 499
13/ 499
13/ 499
11
570
14/ 537
14/ 537
14/ 537
14/ 537
14/ 537
12
579
15/ 576
15/ 576
15/ 576
15/ 576
15/ 576
13
588
17/ 652
17/ 652
17/ 652
17/ 652
17/ 652
14
597
18/ 691
18/ 691
18/ 691
18/ 691
18/ 691
15
606
20/ 768
20/ 768
20/ 768
20/ 768
20/ 768
16
615
21/ 806
21/ 806
21/ 806
21/ 806
21/ 806
17
624
22/ 844
22/ 844
22/ 844
22/ 844
22/ 844
18
633
24/ 921
24/ 921
24/ 921
24/ 921
24/ 921
19
642
25/ 960
25/ 960
25/ 960
25/ 960
25/ 960
20
651
26/ 998
26/ 998
26/ 998
26/ 998
26/ 998
21
660
27/1036
27/1036
27/1036
27/1036
27/1036
22
669
29/1113
29/1113
29/1113
29/1113
29/1113
23
678
30/1152
30/1152
30/1152
30/1152
30/1152
24
687
31/1190
31/1190
31/1190
31/1190
31/1190
25
696
32/1228
32/1228
32/1228
32/1228
32/1228
26
705
33/1267
33/1267
33/1267
33/1267
33/1267
27
714
34/1305
34/1305
34/1305
34/1305
34/1305
28
723
35/1344
35/1344
35/1344
35/1344
35/1344
29
732
36/1382
36/1382
36/1382
36/1382
36/1382
30
741
37/1420
37/1420
37/1420
37/1420
37/1420
31
750
38/1459
38/1459
38/1459
38/1459
38/1459
32
759
39/1497
39/1497
39/1497
39/1497
39/1497
33
768
40/1536
40/1536
40/1536
40/1536
40/1536
34
777
41/1574
41/1574
41/1574
41/1574
41/1574
35
786
42/1612
42/1612
42/1612
42/1612
42/1612
36
795
42/1612
42/1612
42/1612
42/1612
42/1612
37
804
43/1651
43/1651
43/1651
43/1651
43/1651
38
813
44/1689
44/1689
44/1689
44/1689
44/1689
39
822
45/1728
45/1728
45/1728
45/1728
45/1728
40
831
45/1728
45/1728
45/1728
45/1728
45/1728
41
840
46/1766
46/1766
46/1766
46/1766
46/1766
42
849
47/1804
47/1804
47/1804
47/1804
47/1804
43
858
47/1804
47/1804
47/1804
47/1804
47/1804
44
867
48/1843
48/1843
48/1843
48/1843
48/1843
45
876
48/1843
48/1843
48/1843
48/1843
48/1843
46
885
49/1881
49/1881
49/1881
49/1881
49/1881
47
894
49/1881
49/1881
49/1881
49/1881
49/1881
48
903
50/1920
50/1920
50/1920
50/1920
50/1920
49
912
50/1920
50/1920
50/1920
50/1920
50/1920
50
921
51/1958
51/1958
51/1958
51/1958
51/1958
51
930
51/1958
51/1958
51/1958
51/1958
51/1958
52
939
51/1958
51/1958
51/1958
51/1958
51/1958
53
948
52/1996
52/1996
52/1996
52/1996
52/1996
54
957
52/1996
52/1996
52/1996
52/1996
52/1996
55
966
52/1996
52/1996
52/1996
52/1996
52/1996
56
975
52/1996
52/1996
52/1996
52/1996
52/1996
57
984
53/2035
53/2035
53/2035
53/2035
53/2035
58
993
53/2035
53/2035
53/2035
53/2035
53/2035
59
1002
53/2035
53/2035
53/2035
53/2035
53/2035
60
1011
53/2035
53/2035
53/2035
53/2035
53/2035
61
1020
53/2035
53/2035
53/2035
53/2035
53/2035
62
1029
53/2035
53/2035
53/2035
53/2035
53/2035
63
1038
53/2035
53/2035
53/2035
53/2035
53/2035
64
1047
53/2035
53/2035
53/2035
53/2035
53/2035
65
1056
53/2035
53/2035
53/2035
53/2035
53/2035
66
1065
53/2035
53/2035
53/2035
53/2035
53/2035
67
1074
53/2035
53/2035
53/2035
53/2035
53/2035
68
1083
53/2035
53/2035
53/2035
53/2035
53/2035
69
1092
53/2035
53/2035
53/2035
53/2035
53/2035
70
1101
53/2035
53/2035
53/2035
53/2035
53/2035
71
1110
53/2035
53/2035
53/2035
53/2035
53/2035
72
1119
53/2035
53/2035
53/2035
53/2035
53/2035
73
1128
53/2035
53/2035
53/2035
53/2035
53/2035
74
1137
53/2035
53/2035
53/2035
53/2035
53/2035
75
1146
53/2035
53/2035
53/2035
53/2035
53/2035
76
1155
53/2035
53/2035
53/2035
53/2035
53/2035
77
1164
53/2035
53/2035
53/2035
53/2035
53/2035
78
1173
53/2035
53/2035
53/2035
53/2035
53/2035
79
1182
53/2035
53/2035
53/2035
53/2035
53/2035
MCPU(Denver) voltage scaling can be viewed with the following command:
cat /sys/kernel/debug/bpmp/debug/clk/nafll_mcpu/swlut
 
V/mV
-40C- 30C
25C- 50C
45C- 75C
70C-105C
-40C-105C
 
 
NDIV/ MHz
NDIV/ MHz
NDIV/ MHz
NDIV/ MHz
NDIV/ MHz
0
476
9/ 345
9/ 345
9/ 345
9/ 345
9/ 345
1
485
9/ 345
9/ 345
9/ 345
9/ 345
9/ 345
2
494
9/ 345
9/ 345
9/ 345
9/ 345
9/ 345
3
502
11/ 422
11/ 422
11/ 422
11/ 422
11/ 422
4
511
12/ 460
12/ 460
12/ 460
12/ 460
12/ 460
5
520
13/ 499
13/ 499
13/ 499
13/ 499
13/ 499
6
529
14/ 537
14/ 537
14/ 537
14/ 537
14/ 537
7
538
16/ 614
16/ 614
16/ 614
16/ 614
16/ 614
8
547
17/ 652
17/ 652
17/ 652
17/ 652
17/ 652
9
556
18/ 691
18/ 691
18/ 691
18/ 691
18/ 691
10
564
19/ 729
19/ 729
19/ 729
19/ 729
19/ 729
11
573
20/ 768
20/ 768
20/ 768
20/ 768
20/ 768
12
582
21/ 806
21/ 806
21/ 806
21/ 806
21/ 806
13
591
23/ 883
23/ 883
23/ 883
23/ 883
23/ 883
14
600
24/ 921
24/ 921
24/ 921
24/ 921
24/ 921
15
609
25/ 960
25/ 960
25/ 960
25/ 960
25/ 960
16
618
26/ 998
26/ 998
26/ 998
26/ 998
26/ 998
17
626
27/1036
27/1036
27/1036
27/1036
27/1036
18
635
28/1075
28/1075
28/1075
28/1075
28/1075
19
644
29/1113
29/1113
29/1113
29/1113
29/1113
20
653
30/1152
30/1152
30/1152
30/1152
30/1152
21
662
31/1190
31/1190
31/1190
31/1190
31/1190
22
671
32/1228
32/1228
32/1228
32/1228
32/1228
23
680
33/1267
33/1267
33/1267
33/1267
33/1267
24
688
34/1305
34/1305
34/1305
34/1305
34/1305
25
697
34/1305
34/1305
34/1305
34/1305
34/1305
26
706
35/1344
35/1344
35/1344
35/1344
35/1344
27
715
36/1382
36/1382
36/1382
36/1382
36/1382
28
724
37/1420
37/1420
37/1420
37/1420
37/1420
29
733
38/1459
38/1459
38/1459
38/1459
38/1459
30
742
39/1497
39/1497
39/1497
39/1497
39/1497
31
750
40/1536
40/1536
40/1536
40/1536
40/1536
32
759
40/1536
40/1536
40/1536
40/1536
40/1536
33
768
41/1574
41/1574
41/1574
41/1574
41/1574
34
777
42/1612
42/1612
42/1612
42/1612
42/1612
35
786
43/1651
43/1651
43/1651
43/1651
43/1651
36
795
43/1651
43/1651
43/1651
43/1651
43/1651
37
804
44/1689
44/1689
44/1689
44/1689
44/1689
38
812
45/1728
45/1728
45/1728
45/1728
45/1728
39
821
45/1728
45/1728
45/1728
45/1728
45/1728
40
830
46/1766
46/1766
46/1766
46/1766
46/1766
41
839
47/1804
47/1804
47/1804
47/1804
47/1804
42
848
47/1804
47/1804
47/1804
47/1804
47/1804
43
857
48/1843
48/1843
48/1843
48/1843
48/1843
44
866
49/1881
49/1881
49/1881
49/1881
49/1881
45
875
49/1881
49/1881
49/1881
49/1881
49/1881
46
883
50/1920
50/1920
50/1920
50/1920
50/1920
47
892
50/1920
50/1920
50/1920
50/1920
50/1920
48
901
51/1958
51/1958
51/1958
51/1958
51/1958
49
910
51/1958
51/1958
51/1958
51/1958
51/1958
50
919
52/1996
52/1996
52/1996
52/1996
52/1996
51
928
52/1996
52/1996
52/1996
52/1996
52/1996
52
937
53/2035
53/2035
53/2035
53/2035
53/2035
53
945
53/2035
53/2035
53/2035
53/2035
53/2035
54
954
54/2073
54/2073
54/2073
54/2073
54/2073
55
963
54/2073
54/2073
54/2073
54/2073
54/2073
56
972
54/2073
54/2073
54/2073
54/2073
54/2073
57
981
55/2112
55/2112
55/2112
55/2112
55/2112
58
990
55/2112
55/2112
55/2112
55/2112
55/2112
59
999
55/2112
55/2112
55/2112
55/2112
55/2112
60
1007
56/2150
56/2150
56/2150
56/2150
56/2150
61
1016
56/2150
56/2150
56/2150
56/2150
56/2150
62
1025
56/2150
56/2150
56/2150
56/2150
56/2150
63
1034
57/2188
57/2188
57/2188
57/2188
57/2188
64
1043
57/2188
57/2188
57/2188
57/2188
57/2188
65
1052
57/2188
57/2188
57/2188
57/2188
57/2188
66
1061
57/2188
57/2188
57/2188
57/2188
57/2188
67
1069
57/2188
57/2188
57/2188
57/2188
57/2188
68
1078
58/2227
58/2227
58/2227
58/2227
58/2227
69
1087
58/2227
58/2227
58/2227
58/2227
58/2227
70
1096
58/2227
58/2227
58/2227
58/2227
58/2227
71
1105
58/2227
58/2227
58/2227
58/2227
58/2227
72
1114
58/2227
58/2227
58/2227
58/2227
58/2227
73
1123
58/2227
58/2227
58/2227
58/2227
58/2227
74
1131
58/2227
58/2227
58/2227
58/2227
58/2227
75
1140
59/2265
59/2265
59/2265
59/2265
59/2265
76
1149
59/2265
59/2265
59/2265
59/2265
59/2265
77
1158
59/2265
59/2265
59/2265
59/2265
59/2265
78
1167
59/2265
59/2265
59/2265
59/2265
59/2265
79
1176
59/2265
59/2265
59/2265
59/2265
59/2265
The column index specifies frequency in MHz and NDIV value for chip temperature. The row index specifies voltage in mV. The VDD_CPU is shared with BCPU(A57) and MCPU(Denver). So the actual voltage is set to higher one of the two required voltages. For example, if the current BCPU(A57) frequency is 1920 MHz and MCPU(Denver) frequency is 2035 MHz, then the BPMP sets the CPU voltage setting to 945 mV. Because BCPU 1920 MHz requires 903 mV and MCPU 2035 MHz requires 945 mV. The BPMP dynamically changes voltages based on frequency.
CPU Settings
The following ways describe how to locate CPU settings information:
Current BCPU(A57) frequency (Read only)
cat /sys/kernel/debug/cpu_topology/a57/cpu0/cpufreq/cpuinfo_cur_freq
Current MCPU(Denver) frequency (Read only)
cat /sys/kernel/debug/cpu_topology/denver/cpu0/cpufreq/cpuinfo_cur_freq
Current CPU voltage set milliVolts (Read only)
cat /sys/kernel/debug/bpmp/debug/regulator/vdd_cpu/voltage