<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nvidia-tegra-modules.git/Documentation/devicetree/bindings/thermal, 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>pwm: fan: Add support for always on fan</title>
<updated>2020-12-25T17:38:32+00:00</updated>
<author>
<name>Mantravadi Karthik</name>
<email>mkarthik@nvidia.com</email>
</author>
<published>2020-11-20T07:43: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=c3cd2b4417ea8767d35b4e04ba9731fb58a2a477'/>
<id>c3cd2b4417ea8767d35b4e04ba9731fb58a2a477</id>
<content type='text'>
Why?
In case of continuous governor, the fan-poweron pwm
value is assumed to be at index 1 of pwm values.
In case of tmargin the pwm table would be reversed
(high to low) and hence the assumption is invalid.

How?
While calculating the pwm value in the case of
continuous governor, add a check if the cooling device
is always on fan. If true, for all values of temp,
pwm should be calculated instead of assigning 0.

Bug 200646929

Change-Id: Ibed572fa2af9f8bd36a4a4cbb472029e21aeb442
Signed-off-by: Mantravadi Karthik &lt;mkarthik@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2448826
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Reviewed-by: svc-mobile-coverity &lt;svc-mobile-coverity@nvidia.com&gt;
Reviewed-by: Bibek Basu &lt;bbasu@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Why?
In case of continuous governor, the fan-poweron pwm
value is assumed to be at index 1 of pwm values.
In case of tmargin the pwm table would be reversed
(high to low) and hence the assumption is invalid.

How?
While calculating the pwm value in the case of
continuous governor, add a check if the cooling device
is always on fan. If true, for all values of temp,
pwm should be calculated instead of assigning 0.

Bug 200646929

Change-Id: Ibed572fa2af9f8bd36a4a4cbb472029e21aeb442
Signed-off-by: Mantravadi Karthik &lt;mkarthik@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2448826
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Reviewed-by: svc-mobile-coverity &lt;svc-mobile-coverity@nvidia.com&gt;
Reviewed-by: Bibek Basu &lt;bbasu@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
</pre>
</div>
</content>
</entry>
<entry>
<title>thermal: pwm-fan: Add support for tmargin</title>
<updated>2020-12-17T19:40:05+00:00</updated>
<author>
<name>Mantravadi Karthik</name>
<email>mkarthik@nvidia.com</email>
</author>
<published>2020-12-16T18:09:53+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvidia-tegra-modules.git/commit/?id=22fd87123c4a31566d621efd4ab007e481a0e937'/>
<id>22fd87123c4a31566d621efd4ab007e481a0e937</id>
<content type='text'>
Why?
Tmargin feature uses reverse pwm mapping in DT. The current
rru/rrd calculation logic assumes that the pwm table is in
ascending order. In the case of tmargin, the pwm table is
given in descending order.

How?
pwm fan dt node should have a "use_tmargin" identifier similar
to therm_fan_est dt node. This dt entry switches the logic in
rru/rrd calculation

Bug 200646929

Change-Id: I2042aaff5347553202212c6b69f707511bb9b7dd
Signed-off-by: Mantravadi Karthik &lt;mkarthik@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2460881
Tested-by: Rajkumar Kasirajan &lt;rkasirajan@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Reviewed-by: svc-mobile-coverity &lt;svc-mobile-coverity@nvidia.com&gt;
Reviewed-by: Rajkumar Kasirajan &lt;rkasirajan@nvidia.com&gt;
Reviewed-by: Bibek Basu &lt;bbasu@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Why?
Tmargin feature uses reverse pwm mapping in DT. The current
rru/rrd calculation logic assumes that the pwm table is in
ascending order. In the case of tmargin, the pwm table is
given in descending order.

How?
pwm fan dt node should have a "use_tmargin" identifier similar
to therm_fan_est dt node. This dt entry switches the logic in
rru/rrd calculation

Bug 200646929

Change-Id: I2042aaff5347553202212c6b69f707511bb9b7dd
Signed-off-by: Mantravadi Karthik &lt;mkarthik@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2460881
Tested-by: Rajkumar Kasirajan &lt;rkasirajan@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Reviewed-by: svc-mobile-coverity &lt;svc-mobile-coverity@nvidia.com&gt;
Reviewed-by: Rajkumar Kasirajan &lt;rkasirajan@nvidia.com&gt;
Reviewed-by: Bibek Basu &lt;bbasu@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
</pre>
</div>
</content>
</entry>
<entry>
<title>thermal: pwm-fan: Add tach feedback support</title>
<updated>2020-09-02T13:24:37+00:00</updated>
<author>
<name>mkarthik</name>
<email>mkarthik@nvidia.com</email>
</author>
<published>2020-07-01T13:26:10+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvidia-tegra-modules.git/commit/?id=d489e9eab5e854ca996753f7fe314f1337e1308c'/>
<id>d489e9eab5e854ca996753f7fe314f1337e1308c</id>
<content type='text'>
Why?
The current implementation of the pwm-fan driver only writes
a pwm value to the HW when requested. There is no tachometer
rpm read back to check if the thermal performance is as
expected. This change aims to add the rpm offsets necessary
to maintain the desired fan rpm.

How?
A new work queue is added which gets the pwm fan rpm and checks
the same for a rpm diff tolerance value. In case the tolerance
value is exceeded, the next pwm corresponding to the next rpm
ramp index is written to the pwm controller.

Bug 200646929

Change-Id: Iff780a7edf98ca457ace10079149925adf06189d
Signed-off-by: Mantravadi Karthik &lt;mkarthik@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2369412
Tested-by: Rajkumar Kasirajan &lt;rkasirajan@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Reviewed-by: Rajkumar Kasirajan &lt;rkasirajan@nvidia.com&gt;
Reviewed-by: Bibek Basu &lt;bbasu@nvidia.com&gt;
Reviewed-by: Sandipan Patra &lt;spatra@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Why?
The current implementation of the pwm-fan driver only writes
a pwm value to the HW when requested. There is no tachometer
rpm read back to check if the thermal performance is as
expected. This change aims to add the rpm offsets necessary
to maintain the desired fan rpm.

How?
A new work queue is added which gets the pwm fan rpm and checks
the same for a rpm diff tolerance value. In case the tolerance
value is exceeded, the next pwm corresponding to the next rpm
ramp index is written to the pwm controller.

Bug 200646929

Change-Id: Iff780a7edf98ca457ace10079149925adf06189d
Signed-off-by: Mantravadi Karthik &lt;mkarthik@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2369412
Tested-by: Rajkumar Kasirajan &lt;rkasirajan@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Reviewed-by: Rajkumar Kasirajan &lt;rkasirajan@nvidia.com&gt;
Reviewed-by: Bibek Basu &lt;bbasu@nvidia.com&gt;
Reviewed-by: Sandipan Patra &lt;spatra@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
</pre>
</div>
</content>
</entry>
<entry>
<title>dt: bindings: Add documentation for pwm-fan</title>
<updated>2019-11-18T16:23:51+00:00</updated>
<author>
<name>Sandipan patra</name>
<email>spatra@nvidia.com</email>
</author>
<published>2019-11-15T05:18:57+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvidia-tegra-modules.git/commit/?id=79f1494dbef612d9f3f648bdf179a67aed4509b1'/>
<id>79f1494dbef612d9f3f648bdf179a67aed4509b1</id>
<content type='text'>
Device tree properties used in pwm-fan is Documented in
Documentation/devicetree/bindings to understand how are
the properties used in driver.

Bug 200563459

Change-Id: I08bd23fc6c19410924c7007c2cc2a6542c0f5499
Signed-off-by: Sandipan patra &lt;spatra@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/2239766
Reviewed-by: Bibek Basu &lt;bbasu@nvidia.com&gt;
Tested-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>
Device tree properties used in pwm-fan is Documented in
Documentation/devicetree/bindings to understand how are
the properties used in driver.

Bug 200563459

Change-Id: I08bd23fc6c19410924c7007c2cc2a6542c0f5499
Signed-off-by: Sandipan patra &lt;spatra@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/2239766
Reviewed-by: Bibek Basu &lt;bbasu@nvidia.com&gt;
Tested-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>[thermal] tegra-skin kernel module</title>
<updated>2017-10-10T15:05:18+00:00</updated>
<author>
<name>Cyril Raju</name>
<email>craju@nvidia.com</email>
</author>
<published>2017-09-06T00:08:24+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvidia-tegra-modules.git/commit/?id=d220ad0eb4703a43d2288093d9a1d13700b585e5'/>
<id>d220ad0eb4703a43d2288093d9a1d13700b585e5</id>
<content type='text'>
tegra-skin driver is a kernel module that estimates
skin temperature of tegra devices. The driver uses
IIO subsystem and Backlight drivers to extract state
of the system to intelligently estimate skin (surface)
temperature. The estimator has ability to configure
multiple hotspots.

Bug 1943511

Change-Id: I8c6feccac8f66d962f85b692e17eeca35a35f2f9
Signed-off-by: Cyril Raju &lt;craju@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1552290
Reviewed-by: svccoveritychecker &lt;svccoveritychecker@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Navneet Kumar &lt;navneetk@nvidia.com&gt;
Reviewed-by: Yu-Huan Hsu &lt;yhsu@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
tegra-skin driver is a kernel module that estimates
skin temperature of tegra devices. The driver uses
IIO subsystem and Backlight drivers to extract state
of the system to intelligently estimate skin (surface)
temperature. The estimator has ability to configure
multiple hotspots.

Bug 1943511

Change-Id: I8c6feccac8f66d962f85b692e17eeca35a35f2f9
Signed-off-by: Cyril Raju &lt;craju@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1552290
Reviewed-by: svccoveritychecker &lt;svccoveritychecker@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Navneet Kumar &lt;navneetk@nvidia.com&gt;
Reviewed-by: Yu-Huan Hsu &lt;yhsu@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
