<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nvidia-tegra-modules.git/drivers/firmware/tegra/mail.c, branch rtss22-ae</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: 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: print mrq debug as one-line</title>
<updated>2018-08-21T21:54:54+00:00</updated>
<author>
<name>Timo Alho</name>
<email>talho@nvidia.com</email>
</author>
<published>2018-08-20T09:21: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=0b1fe6aa13c3ef6e87993b2a20d2fb2d0a322f56'/>
<id>0b1fe6aa13c3ef6e87993b2a20d2fb2d0a322f56</id>
<content type='text'>
Use KERN_CONT with printk() to print to one-line.

Change-Id: I42256c0997d284fe0c48a12634da537b90f71b86
Signed-off-by: Timo Alho &lt;talho@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1803012
Reviewed-by: Sivaram Nair &lt;sivaramn@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>
Use KERN_CONT with printk() to print to one-line.

Change-Id: I42256c0997d284fe0c48a12634da537b90f71b86
Signed-off-by: Timo Alho &lt;talho@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1803012
Reviewed-by: Sivaram Nair &lt;sivaramn@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: Add SC7 support for virtualization</title>
<updated>2018-06-19T11:54:10+00:00</updated>
<author>
<name>sreenivasulu velpula</name>
<email>svelpula@nvidia.com</email>
</author>
<published>2018-06-04T14:12:34+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvidia-tegra-modules.git/commit/?id=5bbc6e04e149dbb374445cc3a57bf9e1908779cd'/>
<id>5bbc6e04e149dbb374445cc3a57bf9e1908779cd</id>
<content type='text'>
Guest OS communicates with BPMP-server.
Add suspend/resume support for communication with
BPMP-server.

SSV-1584

Change-Id: Ib98fe1cff19d351205f40208b8d218ab8baef8ea
Signed-off-by: sreenivasulu velpula &lt;svelpula@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1739256
Reviewed-by: svc-mobile-coverity &lt;svc-mobile-coverity@nvidia.com&gt;
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Nitin Sehgal &lt;nsehgal@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sang-Hun Lee &lt;sanlee@nvidia.com&gt;
Reviewed-by: Sandeep Trasi &lt;strasi@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>
Guest OS communicates with BPMP-server.
Add suspend/resume support for communication with
BPMP-server.

SSV-1584

Change-Id: Ib98fe1cff19d351205f40208b8d218ab8baef8ea
Signed-off-by: sreenivasulu velpula &lt;svelpula@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1739256
Reviewed-by: svc-mobile-coverity &lt;svc-mobile-coverity@nvidia.com&gt;
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Nitin Sehgal &lt;nsehgal@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sang-Hun Lee &lt;sanlee@nvidia.com&gt;
Reviewed-by: Sandeep Trasi &lt;strasi@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>
