<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nvidia-tegra-modules.git/drivers/cpuidle, branch gpu-paging</title>
<subtitle>NVIDIA's kernel modules to support tegra chips (used in Jetson boards)</subtitle>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvidia-tegra-modules.git/'/>
<entry>
<title>cpuidle: t19x: remove unused debugfs nodes</title>
<updated>2019-09-27T18:39:56+00:00</updated>
<author>
<name>Aaron Tian</name>
<email>atian@nvidia.com</email>
</author>
<published>2019-09-25T08:28:09+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvidia-tegra-modules.git/commit/?id=89a07773a0a61edad1c0d2b55be754788d2310d7'/>
<id>89a07773a0a61edad1c0d2b55be754788d2310d7</id>
<content type='text'>
Remove unused debugfs nodes
- deepest_cg_state
- crossover_cc1_cg7

Bug 200525107

Change-Id: I6b4cac0ae2c8b9fd3f3300294a47900ada815c3c
Signed-off-by: Aaron Tian &lt;atian@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/2205329
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Sitaraman &lt;ksitaraman@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu &lt;bbasu@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove unused debugfs nodes
- deepest_cg_state
- crossover_cc1_cg7

Bug 200525107

Change-Id: I6b4cac0ae2c8b9fd3f3300294a47900ada815c3c
Signed-off-by: Aaron Tian &lt;atian@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/2205329
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Sitaraman &lt;ksitaraman@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu &lt;bbasu@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>cpuidle: obtain wake_time properly for k4.14</title>
<updated>2018-08-26T14:26:10+00:00</updated>
<author>
<name>Bo Yan</name>
<email>byan@nvidia.com</email>
</author>
<published>2018-08-20T23:47:48+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvidia-tegra-modules.git/commit/?id=66790ae185fbe424952639d0af3133719a49912c'/>
<id>66790ae185fbe424952639d0af3133719a49912c</id>
<content type='text'>
tick_nohz_get_sleep_length recomputes ts-&gt;timers_expired
and ts-&gt;timer_expires_base and ts-&gt;timer_expires.

To fix this, just pass target_residency plus a fixed offset.
There is no need for precise sleep time, as long as a
reasonable estimate is sent over.

In addition, remove some other dead code.

Bug 200412723
Bug 2337810

Change-Id: Ia015422e0ffd876ade124eea5a99f6e38bb9128b
Signed-off-by: Bo Yan &lt;byan@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1803435
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sanjay Chandrashekara &lt;sanjayc@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
tick_nohz_get_sleep_length recomputes ts-&gt;timers_expired
and ts-&gt;timer_expires_base and ts-&gt;timer_expires.

To fix this, just pass target_residency plus a fixed offset.
There is no need for precise sleep time, as long as a
reasonable estimate is sent over.

In addition, remove some other dead code.

Bug 200412723
Bug 2337810

Change-Id: Ia015422e0ffd876ade124eea5a99f6e38bb9128b
Signed-off-by: Bo Yan &lt;byan@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1803435
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sanjay Chandrashekara &lt;sanjayc@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>t19x: cpuidle: fix static code warnings</title>
<updated>2018-08-23T19:04:39+00:00</updated>
<author>
<name>Sanjay Chandrashekara</name>
<email>sanjayc@nvidia.com</email>
</author>
<published>2018-08-20T23:02:38+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvidia-tegra-modules.git/commit/?id=cd37552113386637796f6ef825ee319dcff92836'/>
<id>cd37552113386637796f6ef825ee319dcff92836</id>
<content type='text'>
The atomic variable entered_c6_cpu_count is declared and used in
the same file and hence should be static. This fixes the kernel sparse
warning 
warning: symbol 'entered_c6_cpu_count' was not declared; should it made
static?

Bug 200408168

Change-Id: Ib4d7bcc76da6e2ec799d4b29b87b15b189cbf961
Signed-off-by: Sanjay Chandrashekara &lt;sanjayc@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1803421
Reviewed-by: Alexander Van Brunt &lt;avanbrunt@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The atomic variable entered_c6_cpu_count is declared and used in
the same file and hence should be static. This fixes the kernel sparse
warning 
warning: symbol 'entered_c6_cpu_count' was not declared; should it made
static?

Bug 200408168

Change-Id: Ib4d7bcc76da6e2ec799d4b29b87b15b189cbf961
Signed-off-by: Sanjay Chandrashekara &lt;sanjayc@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1803421
Reviewed-by: Alexander Van Brunt &lt;avanbrunt@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>cpuidle: t186: remove dead code</title>
<updated>2018-08-21T21:55:17+00:00</updated>
<author>
<name>Bo Yan</name>
<email>byan@nvidia.com</email>
</author>
<published>2018-08-20T22:08:22+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvidia-tegra-modules.git/commit/?id=3987f881c2431852b84bbbd12bc09f45ba35b1f9'/>
<id>3987f881c2431852b84bbbd12bc09f45ba35b1f9</id>
<content type='text'>
The wake time is only used in MCE and MTS interface. Remove its
references in other places. In addition, remove the unnecessary kernel
version check when printing ktime_t variables by converting ktime_t to
ns first.

Bug 200412723
Bug 2337810

Change-Id: I72a96e03bd2e57483461b0c533353844f08ad959
Signed-off-by: Bo Yan &lt;byan@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1803384
GVS: Gerrit_Virtual_Submit
Reviewed-by: Rohit Khanna &lt;rokhanna@nvidia.com&gt;
Reviewed-by: Vignesh Radhakrishnan &lt;vigneshr@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The wake time is only used in MCE and MTS interface. Remove its
references in other places. In addition, remove the unnecessary kernel
version check when printing ktime_t variables by converting ktime_t to
ns first.

Bug 200412723
Bug 2337810

Change-Id: I72a96e03bd2e57483461b0c533353844f08ad959
Signed-off-by: Bo Yan &lt;byan@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1803384
GVS: Gerrit_Virtual_Submit
Reviewed-by: Rohit Khanna &lt;rokhanna@nvidia.com&gt;
Reviewed-by: Vignesh Radhakrishnan &lt;vigneshr@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>cpuidle: t19x: remove dead code</title>
<updated>2018-08-20T19:01:32+00:00</updated>
<author>
<name>Bo Yan</name>
<email>byan@nvidia.com</email>
</author>
<published>2018-08-18T00:23:04+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvidia-tegra-modules.git/commit/?id=3554fbe953f465d92efb41260818efc0a9d3a73a'/>
<id>3554fbe953f465d92efb41260818efc0a9d3a73a</id>
<content type='text'>
The tick_nohz_get_sleep_length can not be called from cpuidle
driver in newer kernel, because it will update timer_expires_base
and timer_expires variables in tick_sched. This is causing problems
in tick handling code.

Bug 200412723

Change-Id: I51269256ed70e07a82818f48fb332da51939e2c4
Signed-off-by: Bo Yan &lt;byan@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1802165
Reviewed-by: Rohit Khanna &lt;rokhanna@nvidia.com&gt;
Reviewed-by: Vignesh Radhakrishnan &lt;vigneshr@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The tick_nohz_get_sleep_length can not be called from cpuidle
driver in newer kernel, because it will update timer_expires_base
and timer_expires variables in tick_sched. This is causing problems
in tick handling code.

Bug 200412723

Change-Id: I51269256ed70e07a82818f48fb332da51939e2c4
Signed-off-by: Bo Yan &lt;byan@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1802165
Reviewed-by: Rohit Khanna &lt;rokhanna@nvidia.com&gt;
Reviewed-by: Vignesh Radhakrishnan &lt;vigneshr@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>nvidia: cpuidle: fix tick_nohz_get_sleep_length for K4.14</title>
<updated>2018-08-16T12:44:23+00:00</updated>
<author>
<name>Sachin Nikam</name>
<email>snikam@nvidia.com</email>
</author>
<published>2018-08-02T09:42:40+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvidia-tegra-modules.git/commit/?id=ce1e92d1c8f43645d862c074b89a873696dd25f7'/>
<id>ce1e92d1c8f43645d862c074b89a873696dd25f7</id>
<content type='text'>
In K4.14 tick_nohz_get_sleep_length() added a parameter.
Fixed the compilation error with putting kernel version check.

Bug 200412723

Change-Id: I6b38789c0b2d50421e8d1e354ae1f0e084c18354
Signed-off-by: Sachin Nikam &lt;snikam@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1791060
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas &lt;bbiswas@nvidia.com&gt;
Reviewed-by: Bharat Nihalani &lt;bnihalani@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In K4.14 tick_nohz_get_sleep_length() added a parameter.
Fixed the compilation error with putting kernel version check.

Bug 200412723

Change-Id: I6b38789c0b2d50421e8d1e354ae1f0e084c18354
Signed-off-by: Sachin Nikam &lt;snikam@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1791060
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas &lt;bbiswas@nvidia.com&gt;
Reviewed-by: Bharat Nihalani &lt;bnihalani@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>t19x: cpuidle: c6 exit latency measurement</title>
<updated>2018-07-24T07:54:38+00:00</updated>
<author>
<name>Sanjay Chandrashekara</name>
<email>sanjayc@nvidia.com</email>
</author>
<published>2018-06-21T23:15:49+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvidia-tegra-modules.git/commit/?id=27c214726d8d5e76cece3deda271003090ad2c03'/>
<id>27c214726d8d5e76cece3deda271003090ad2c03</id>
<content type='text'>
Add support to measure C6 exit latency. This patch implements some
of the helper functions required for this functionality.
Measurement technique
1. Force cores 1 to 7 to enter C6 state.
2. Send an IPI from core 0 to wake all other cores
3. Measure exit latency based on trace printks
4. Check C6 entry count before and after "wfi" to make sure C6 was
   entered.
   
JIRA: TPM-1217

Change-Id: I1d9943b09cf880631ad17f915bbf84959b899d2f
Signed-off-by: Sanjay Chandrashekara &lt;sanjayc@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1757458
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add support to measure C6 exit latency. This patch implements some
of the helper functions required for this functionality.
Measurement technique
1. Force cores 1 to 7 to enter C6 state.
2. Send an IPI from core 0 to wake all other cores
3. Measure exit latency based on trace printks
4. Check C6 entry count before and after "wfi" to make sure C6 was
   entered.
   
JIRA: TPM-1217

Change-Id: I1d9943b09cf880631ad17f915bbf84959b899d2f
Signed-off-by: Sanjay Chandrashekara &lt;sanjayc@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1757458
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>drivers: cpuidle: fix read permission for cpuidle</title>
<updated>2018-07-20T09:33:49+00:00</updated>
<author>
<name>Jeetesh Burman</name>
<email>jburman@nvidia.com</email>
</author>
<published>2018-07-19T11:27:18+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvidia-tegra-modules.git/commit/?id=95f02a2990dd4a7c9e76a235ab30550ab3382429'/>
<id>95f02a2990dd4a7c9e76a235ab30550ab3382429</id>
<content type='text'>
While running "sudo nvidia-bug-report-tegra.sh" on Galen, below errors
observed and similar issue observed in T186:

cat: /sys/kernel/debug/tegra_cpuidle/crossover_c1_c6: Permission denied
cat: /sys/kernel/debug/tegra_cpuidle/crossover_cc1_cc6: Permission denied
cat: /sys/kernel/debug/tegra_cpuidle/crossover_cc1_cg7: Permission denied
cat: /sys/kernel/debug/tegra_cpuidle/forced_idle_duration_us: Permission denied
cat: /sys/kernel/debug/tegra_cpuidle/testmode: Permission denied

To fix make above attributes, change permission to WRITE permission only
and remove READ permission for above file for T194 and similar file for
T186.

Bug 200431878

Change-Id: I0233e8805d7a2706f9d1dc77a4a35fc60ba946ba
Signed-off-by: Jeetesh Burman &lt;jburman@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1781667
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
While running "sudo nvidia-bug-report-tegra.sh" on Galen, below errors
observed and similar issue observed in T186:

cat: /sys/kernel/debug/tegra_cpuidle/crossover_c1_c6: Permission denied
cat: /sys/kernel/debug/tegra_cpuidle/crossover_cc1_cc6: Permission denied
cat: /sys/kernel/debug/tegra_cpuidle/crossover_cc1_cg7: Permission denied
cat: /sys/kernel/debug/tegra_cpuidle/forced_idle_duration_us: Permission denied
cat: /sys/kernel/debug/tegra_cpuidle/testmode: Permission denied

To fix make above attributes, change permission to WRITE permission only
and remove READ permission for above file for T194 and similar file for
T186.

Bug 200431878

Change-Id: I0233e8805d7a2706f9d1dc77a4a35fc60ba946ba
Signed-off-by: Jeetesh Burman &lt;jburman@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1781667
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>cpuidle: Add config for t186</title>
<updated>2018-07-10T21:27:22+00:00</updated>
<author>
<name>Timo Alho</name>
<email>talho@nvidia.com</email>
</author>
<published>2018-07-06T06:21:43+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvidia-tegra-modules.git/commit/?id=2a23885bed6d87fd8d1ee7d853c2811d3b706d51'/>
<id>2a23885bed6d87fd8d1ee7d853c2811d3b706d51</id>
<content type='text'>
Add Kconfig support for t186 cpuidle

Bug 2196214

Change-Id: I36c7f335f1c7d21903fbb78eb06b47c750806aaf
Signed-off-by: Timo Alho &lt;talho@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1772374
GVS: Gerrit_Virtual_Submit
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add Kconfig support for t186 cpuidle

Bug 2196214

Change-Id: I36c7f335f1c7d21903fbb78eb06b47c750806aaf
Signed-off-by: Timo Alho &lt;talho@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1772374
GVS: Gerrit_Virtual_Submit
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>cpuidle: tegra: use hotplug state callbacks</title>
<updated>2018-07-10T21:27:18+00:00</updated>
<author>
<name>Timo Alho</name>
<email>talho@nvidia.com</email>
</author>
<published>2018-07-06T06:18:05+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvidia-tegra-modules.git/commit/?id=3baee09fc4638332bc23de1513f83e44c513de15'/>
<id>3baee09fc4638332bc23de1513f83e44c513de15</id>
<content type='text'>
Recent kernel versions deprecated CPU hotplug notifier chains in favor
of hotplug state callbacks. Adapt t18x cpuidle driver to this new
interface.

While at it, update some ktime_t related prints to work on kernel
version &gt; 4.9.

Bug 2196214

Change-Id: I57ccd531840cb2d1599f6c0b5067811160732727
Signed-off-by: Timo Alho &lt;talho@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1772373
Reviewed-by: svc-mobile-coverity &lt;svc-mobile-coverity@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas &lt;bbiswas@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Recent kernel versions deprecated CPU hotplug notifier chains in favor
of hotplug state callbacks. Adapt t18x cpuidle driver to this new
interface.

While at it, update some ktime_t related prints to work on kernel
version &gt; 4.9.

Bug 2196214

Change-Id: I57ccd531840cb2d1599f6c0b5067811160732727
Signed-off-by: Timo Alho &lt;talho@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1772373
Reviewed-by: svc-mobile-coverity &lt;svc-mobile-coverity@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas &lt;bbiswas@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
