<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nvidia-tegra-modules.git/drivers/firmware, 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>firmware: tegra: fix channel reclaim feature</title>
<updated>2020-09-02T13:24:43+00:00</updated>
<author>
<name>Timo Alho</name>
<email>talho@nvidia.com</email>
</author>
<published>2020-02-19T11:09: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=0626681ac8f0b309b1b8b248fa715b4bc22b741e'/>
<id>0626681ac8f0b309b1b8b248fa715b4bc22b741e</id>
<content type='text'>
Commit 4710a191d45f9889d204bc06d40ee4cec077eef4 (firmware: tegra:
reclaim timedout channels) introduced a feature to reclaim channels
that timed out. The implementation has a logical bug that upon
receiving a message, and if there was any channel to be reclaimed
(regardless of the current channel), the channel was freed forcefully.

Fix the issue by correcting the boolean statement to use bit-wise-and
of bit-masks.

Bug 200588424
Bug 200644486

Change-Id: Ifcca42e1d1a8a9ef534af1e421d8340e93eea878
Signed-off-by: Timo Alho &lt;talho@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2299496
(cherry picked from commit a4943add3e4c119b09b65f6c727586c0b7ba4e60)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2394660
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Reviewed-by: automaticguardword &lt;automaticguardword@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>
Commit 4710a191d45f9889d204bc06d40ee4cec077eef4 (firmware: tegra:
reclaim timedout channels) introduced a feature to reclaim channels
that timed out. The implementation has a logical bug that upon
receiving a message, and if there was any channel to be reclaimed
(regardless of the current channel), the channel was freed forcefully.

Fix the issue by correcting the boolean statement to use bit-wise-and
of bit-masks.

Bug 200588424
Bug 200644486

Change-Id: Ifcca42e1d1a8a9ef534af1e421d8340e93eea878
Signed-off-by: Timo Alho &lt;talho@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2299496
(cherry picked from commit a4943add3e4c119b09b65f6c727586c0b7ba4e60)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2394660
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Reviewed-by: automaticguardword &lt;automaticguardword@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
</pre>
</div>
</content>
</entry>
<entry>
<title>tegra/mail: fix 'out of bound access'</title>
<updated>2020-03-20T16:47:48+00:00</updated>
<author>
<name>Achal Verma</name>
<email>achalv@nvidia.com</email>
</author>
<published>2020-03-18T11:30:08+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvidia-tegra-modules.git/commit/?id=44eb35c1842bc2ec2709819eb38c8f2ef00ece7e'/>
<id>44eb35c1842bc2ec2709819eb38c8f2ef00ece7e</id>
<content type='text'>
correct range in for loop as per the
channel_area array size.

This fixes coverity issue: 7043029

Bug 2028892

Change-Id: Ia6cd74f50f4cf954f408b61d09e2434b30d57d7f
Signed-off-by: Achal Verma &lt;achalv@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2314674
Reviewed-by: automaticguardword &lt;automaticguardword@nvidia.com&gt;
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Dmitry Pervushin &lt;dpervushin@nvidia.com&gt;
Reviewed-by: Phoenix Jung &lt;pjung@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Tested-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>
correct range in for loop as per the
channel_area array size.

This fixes coverity issue: 7043029

Bug 2028892

Change-Id: Ia6cd74f50f4cf954f408b61d09e2434b30d57d7f
Signed-off-by: Achal Verma &lt;achalv@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2314674
Reviewed-by: automaticguardword &lt;automaticguardword@nvidia.com&gt;
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Dmitry Pervushin &lt;dpervushin@nvidia.com&gt;
Reviewed-by: Phoenix Jung &lt;pjung@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
</pre>
</div>
</content>
</entry>
<entry>
<title>firmware: tegra: reclaim timedout channels</title>
<updated>2018-09-14T00:55:18+00:00</updated>
<author>
<name>Sivaram Nair</name>
<email>sivaramn@nvidia.com</email>
</author>
<published>2018-09-10T22:52:07+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvidia-tegra-modules.git/commit/?id=4710a191d45f9889d204bc06d40ee4cec077eef4'/>
<id>4710a191d45f9889d204bc06d40ee4cec077eef4</id>
<content type='text'>
Rather than loosing IPC channels on a timeout, reclaim them for future
use.

Bug 200446874

Change-Id: I4b2f3c95822f0418ced21fb073f3f10f4c38b04b
Signed-off-by: Sivaram Nair &lt;sivaramn@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1818472
Reviewed-by: Stefan Kristiansson &lt;stefank@nvidia.com&gt;
Reviewed-by: Vishruth Jain &lt;vishruthj@nvidia.com&gt;
Reviewed-by: Timo Alho &lt;talho@nvidia.com&gt;
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>
Rather than loosing IPC channels on a timeout, reclaim them for future
use.

Bug 200446874

Change-Id: I4b2f3c95822f0418ced21fb073f3f10f4c38b04b
Signed-off-by: Sivaram Nair &lt;sivaramn@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1818472
Reviewed-by: Stefan Kristiansson &lt;stefank@nvidia.com&gt;
Reviewed-by: Vishruth Jain &lt;vishruthj@nvidia.com&gt;
Reviewed-by: Timo Alho &lt;talho@nvidia.com&gt;
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>firmware: tegra: increase IPC wait time</title>
<updated>2018-09-14T00:55:14+00:00</updated>
<author>
<name>Sivaram Nair</name>
<email>sivaramn@nvidia.com</email>
</author>
<published>2018-09-10T22:44:13+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvidia-tegra-modules.git/commit/?id=6930c4e303afceb820b09d3121b1d2f0804cf1d2'/>
<id>6930c4e303afceb820b09d3121b1d2f0804cf1d2</id>
<content type='text'>
Due to combined UART contention, we can sometime take longer than the
current timeout period (of one second) to complete a IPC transaction.
Quadruple the deadline, but show a warning message when turnaround time
is longer than one-fourth of it.

Bug 200446874

Change-Id: I88d9f8d337c389f378e4778ebd856ca142bd40c2
Signed-off-by: Sivaram Nair &lt;sivaramn@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1818471
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Timo Alho &lt;talho@nvidia.com&gt;
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>
Due to combined UART contention, we can sometime take longer than the
current timeout period (of one second) to complete a IPC transaction.
Quadruple the deadline, but show a warning message when turnaround time
is longer than one-fourth of it.

Bug 200446874

Change-Id: I88d9f8d337c389f378e4778ebd856ca142bd40c2
Signed-off-by: Sivaram Nair &lt;sivaramn@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1818471
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Timo Alho &lt;talho@nvidia.com&gt;
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>firmware: tegra: enhance mrq data output</title>
<updated>2018-09-14T00:55:11+00:00</updated>
<author>
<name>Sivaram Nair</name>
<email>sivaramn@nvidia.com</email>
</author>
<published>2018-09-10T22:37:17+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvidia-tegra-modules.git/commit/?id=7e3a430b3e5d64308abf9cab161d36392c00e453'/>
<id>7e3a430b3e5d64308abf9cab161d36392c00e453</id>
<content type='text'>
Show IPC failure message and MRQ data with a single pr_err() so that
this does not get broken up and/or mangled (as they do today in some
platforms).

Bug 200446874

Change-Id: I2969fd8aa677e2ed32d86201fcb83cf26266413e
Signed-off-by: Sivaram Nair &lt;sivaramn@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1818470
Reviewed-by: Srikar Srimath Tirumala &lt;srikars@nvidia.com&gt;
Reviewed-by: Automatic_Commit_Validation_User
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>
Show IPC failure message and MRQ data with a single pr_err() so that
this does not get broken up and/or mangled (as they do today in some
platforms).

Bug 200446874

Change-Id: I2969fd8aa677e2ed32d86201fcb83cf26266413e
Signed-off-by: Sivaram Nair &lt;sivaramn@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1818470
Reviewed-by: Srikar Srimath Tirumala &lt;srikars@nvidia.com&gt;
Reviewed-by: Automatic_Commit_Validation_User
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>firmware: tegra: cleanup channel indexing</title>
<updated>2018-09-14T00:55:07+00:00</updated>
<author>
<name>Sivaram Nair</name>
<email>sivaramn@nvidia.com</email>
</author>
<published>2018-09-10T22:31:50+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvidia-tegra-modules.git/commit/?id=41be4438c2f21ac2c96f9a3ef6f352c6e1edcf36'/>
<id>41be4438c2f21ac2c96f9a3ef6f352c6e1edcf36</id>
<content type='text'>
Get rid of the confusing bpmp_thread_ch_index() and bpmp_thread_ch()
functions and use channel number directly in tch_free, so that it also
aligns with to_complete.

Bug 200446874

Change-Id: I35ce9fd650af348b3760c38b3b6635e0d62126ed
Signed-off-by: Sivaram Nair &lt;sivaramn@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1818469
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Stefan Kristiansson &lt;stefank@nvidia.com&gt;
Reviewed-by: Vishruth Jain &lt;vishruthj@nvidia.com&gt;
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>
Get rid of the confusing bpmp_thread_ch_index() and bpmp_thread_ch()
functions and use channel number directly in tch_free, so that it also
aligns with to_complete.

Bug 200446874

Change-Id: I35ce9fd650af348b3760c38b3b6635e0d62126ed
Signed-off-by: Sivaram Nair &lt;sivaramn@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1818469
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Stefan Kristiansson &lt;stefank@nvidia.com&gt;
Reviewed-by: Vishruth Jain &lt;vishruthj@nvidia.com&gt;
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>firmware: tegra: fix type error with memcpy_*io()</title>
<updated>2018-09-10T00:22:53+00:00</updated>
<author>
<name>Sivaram Nair</name>
<email>sivaramn@nvidia.com</email>
</author>
<published>2018-09-04T22:58: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=517525c1f0edcb9764716c8c0d216eb3cdc23f77'/>
<id>517525c1f0edcb9764716c8c0d216eb3cdc23f77</id>
<content type='text'>
Bug 200434802

Change-Id: I549b6ef0b4accfcc265e4d17eea7ffa6a55a2b3c
Signed-off-by: Sivaram Nair &lt;sivaramn@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1812810
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>
Bug 200434802

Change-Id: I549b6ef0b4accfcc265e4d17eea7ffa6a55a2b3c
Signed-off-by: Sivaram Nair &lt;sivaramn@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1812810
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>firmware: tegra: explicilty cast little-endians to uint32_t</title>
<updated>2018-09-04T23:17:15+00:00</updated>
<author>
<name>Timo Alho</name>
<email>talho@nvidia.com</email>
</author>
<published>2018-09-03T12:47:13+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvidia-tegra-modules.git/commit/?id=233d8c34db47629c78f863ad29320dc4d404d005'/>
<id>233d8c34db47629c78f863ad29320dc4d404d005</id>
<content type='text'>
The BPMP-FW firmware header uses little endian byte order in the
command structs. However, the struct members are declared as uint32_t
and sparse emits warnings as cpu_to_le32() return type is __le32.

To avoid these warnings, cast the return value of cpu_to_le32()
explicitly to uint32_t. It is arguable that more correct way to
resolve the warnings would be to change the ABI header data
types. However, this is unfavorable as the same header is shared
across multiple operating systems and __le32 is not standard data
type.

Bug 200434802

Change-Id: I3b27b0086a7b6aeb9707e72c21e08bbf89fe8a7b
Signed-off-by: Timo Alho &lt;talho@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1811967
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sivaram Nair &lt;sivaramn@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 BPMP-FW firmware header uses little endian byte order in the
command structs. However, the struct members are declared as uint32_t
and sparse emits warnings as cpu_to_le32() return type is __le32.

To avoid these warnings, cast the return value of cpu_to_le32()
explicitly to uint32_t. It is arguable that more correct way to
resolve the warnings would be to change the ABI header data
types. However, this is unfavorable as the same header is shared
across multiple operating systems and __le32 is not standard data
type.

Bug 200434802

Change-Id: I3b27b0086a7b6aeb9707e72c21e08bbf89fe8a7b
Signed-off-by: Timo Alho &lt;talho@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1811967
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sivaram Nair &lt;sivaramn@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>firmware: tegra: dump pending messages upon SC7 entry</title>
<updated>2018-08-31T20:23:43+00:00</updated>
<author>
<name>Timo Alho</name>
<email>talho@nvidia.com</email>
</author>
<published>2018-08-20T09:58: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=e921157ed6c7851ea5bc0008c1ee3a125968e576'/>
<id>e921157ed6c7851ea5bc0008c1ee3a125968e576</id>
<content type='text'>
Bug 200441330

Change-Id: I36ceaf6bd927f56abe0904f0a61d5c1c6038d1ab
Signed-off-by: Timo Alho &lt;talho@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1803049
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sivaram Nair &lt;sivaramn@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>
Bug 200441330

Change-Id: I36ceaf6bd927f56abe0904f0a61d5c1c6038d1ab
Signed-off-by: Timo Alho &lt;talho@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1803049
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sivaram Nair &lt;sivaramn@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>firmware: tegra: Make tegra_hv_ivc_disconnect a static</title>
<updated>2018-08-27T11:53:14+00:00</updated>
<author>
<name>sreenivasulu velpula</name>
<email>svelpula@nvidia.com</email>
</author>
<published>2018-08-16T17:47:30+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvidia-tegra-modules.git/commit/?id=98c6b535a26596400995b513cb8cda9967528e93'/>
<id>98c6b535a26596400995b513cb8cda9967528e93</id>
<content type='text'>
Fix Sparse static code analysis warning.

Bug 200408168

Change-Id: I46943fd906df2a015a0248c747b36ff09d911240
Signed-off-by: sreenivasulu velpula &lt;svelpula@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1801262
Reviewed-by: Sachin Nikam &lt;snikam@nvidia.com&gt;
Tested-by: Sachin Nikam &lt;snikam@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>
Fix Sparse static code analysis warning.

Bug 200408168

Change-Id: I46943fd906df2a015a0248c747b36ff09d911240
Signed-off-by: sreenivasulu velpula &lt;svelpula@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1801262
Reviewed-by: Sachin Nikam &lt;snikam@nvidia.com&gt;
Tested-by: Sachin Nikam &lt;snikam@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>
