<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nvidia-tegra-modules.git/drivers/platform/tegra/rtcpu/vi-notify.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>camera: Check for pending ivc frames</title>
<updated>2021-05-05T16:11:16+00:00</updated>
<author>
<name>Aniket Bahadarpurkar</name>
<email>aniketb@nvidia.com</email>
</author>
<published>2021-04-26T10:56:41+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvidia-tegra-modules.git/commit/?id=f88bbd4a1e4921a209c55b88dc0e82d61ec61a19'/>
<id>f88bbd4a1e4921a209c55b88dc0e82d61ec61a19</id>
<content type='text'>
If ivc message handler workqueue is not scheduled, driver
will report no reply from camera processor error. This gives
impression that rtcpu is in bad state. However, it is possible
that some IVC frames are pending read. Hence, before reporting
no reply from camera processor we check for pending IVC frames.

Bug 3293029
Bug 3291799

Change-Id: I653add5d363a81af816d81e1197868cc289249a2
Signed-off-by: Aniket Bahadarpurkar &lt;aniketb@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2520521
(cherry picked from commit d3a7408c12cf1e51288cd1ee56f54668d8fdae1a)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2524157
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If ivc message handler workqueue is not scheduled, driver
will report no reply from camera processor error. This gives
impression that rtcpu is in bad state. However, it is possible
that some IVC frames are pending read. Hence, before reporting
no reply from camera processor we check for pending IVC frames.

Bug 3293029
Bug 3291799

Change-Id: I653add5d363a81af816d81e1197868cc289249a2
Signed-off-by: Aniket Bahadarpurkar &lt;aniketb@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2520521
(cherry picked from commit d3a7408c12cf1e51288cd1ee56f54668d8fdae1a)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2524157
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>vi-notify: disable preemption for timestamp adjustment</title>
<updated>2021-02-18T18:10:25+00:00</updated>
<author>
<name>Mika Liljeberg</name>
<email>mliljeberg@nvidia.com</email>
</author>
<published>2021-02-09T10:15: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=c430f511cb780a63a5bce4092f59f9588668a923'/>
<id>c430f511cb780a63a5bce4092f59f9588668a923</id>
<content type='text'>
It has been shown that the kernel warning in
get_ts_adjustment() may be triggered under heavy
load despite the five retry attempts to calculate
the adjustment value for VI timestmaps.

Disable kernel preemption while calculating the
timestamp adjustment value.

Bug 200698271

Change-Id: I697d3dd10ae095b11ce751323db856909157e4c0
Signed-off-by: Mika Liljeberg &lt;mliljeberg@nvidia.com&gt;
(cherry picked from commit 69c45588fb3d733bc53887fe81acb5c930721c9e)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2482517
Tested-by: Martin Chi &lt;mchi@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Reviewed-by: Pekka Pessi &lt;ppessi@nvidia.com&gt;
Reviewed-by: Martin Chi &lt;mchi@nvidia.com&gt;
Reviewed-by: Semi Malinen &lt;smalinen@nvidia.com&gt;
Reviewed-by: Kalle Jokiniemi &lt;kjokiniemi@nvidia.com&gt;
Reviewed-by: Bibek Basu &lt;bbasu@nvidia.com&gt;
Reviewed-by: svc-mobile-coverity &lt;svc-mobile-coverity@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>
It has been shown that the kernel warning in
get_ts_adjustment() may be triggered under heavy
load despite the five retry attempts to calculate
the adjustment value for VI timestmaps.

Disable kernel preemption while calculating the
timestamp adjustment value.

Bug 200698271

Change-Id: I697d3dd10ae095b11ce751323db856909157e4c0
Signed-off-by: Mika Liljeberg &lt;mliljeberg@nvidia.com&gt;
(cherry picked from commit 69c45588fb3d733bc53887fe81acb5c930721c9e)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2482517
Tested-by: Martin Chi &lt;mchi@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Reviewed-by: Pekka Pessi &lt;ppessi@nvidia.com&gt;
Reviewed-by: Martin Chi &lt;mchi@nvidia.com&gt;
Reviewed-by: Semi Malinen &lt;smalinen@nvidia.com&gt;
Reviewed-by: Kalle Jokiniemi &lt;kjokiniemi@nvidia.com&gt;
Reviewed-by: Bibek Basu &lt;bbasu@nvidia.com&gt;
Reviewed-by: svc-mobile-coverity &lt;svc-mobile-coverity@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
</pre>
</div>
</content>
</entry>
<entry>
<title>tegra: camera: include signal and clock header</title>
<updated>2018-06-28T12:14:33+00:00</updated>
<author>
<name>Sachin Nikam</name>
<email>snikam@nvidia.com</email>
</author>
<published>2018-06-27T10:19:11+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvidia-tegra-modules.git/commit/?id=e294b0039145ce8ba6ec7e36ba129208179c4af4'/>
<id>e294b0039145ce8ba6ec7e36ba129208179c4af4</id>
<content type='text'>
To fix build errors for some sched_* functions
include signal.h and clock.h

Bug 200417030

Change-Id: I2bd63f43ebae2fc759d77e68d405172cfc42ead9
Signed-off-by: Sachin Nikam &lt;snikam@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1762858
Reviewed-by: svc-mobile-coverity &lt;svc-mobile-coverity@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sudhir Vyas &lt;svyas@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>
To fix build errors for some sched_* functions
include signal.h and clock.h

Bug 200417030

Change-Id: I2bd63f43ebae2fc759d77e68d405172cfc42ead9
Signed-off-by: Sachin Nikam &lt;snikam@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1762858
Reviewed-by: svc-mobile-coverity &lt;svc-mobile-coverity@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sudhir Vyas &lt;svyas@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>tegra: rtcpu: vi-notify: use PM with open/close</title>
<updated>2017-05-04T08:54:44+00:00</updated>
<author>
<name>Pekka Pessi</name>
<email>ppessi@nvidia.com</email>
</author>
<published>2017-03-09T22:06: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=0a837660a1c5278af06bc5732667d52cc3054464'/>
<id>0a837660a1c5278af06bc5732667d52cc3054464</id>
<content type='text'>
Make sure the RTCPU and VI are up and running before using the
vi-notify device.

Jira CRTC-910
Bug 1857548
Jira CRTC-966
Bug 1864505
Bug 200269632

Change-Id: Ia2d7de093996807680ae03890da38ec916fc6d54
Reviewed-on: http://git-master/r/1318265
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jihoon Bang &lt;jbang@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mika Liljeberg &lt;mliljeberg@nvidia.com&gt;
Tested-by: Pekka Pessi &lt;ppessi@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Make sure the RTCPU and VI are up and running before using the
vi-notify device.

Jira CRTC-910
Bug 1857548
Jira CRTC-966
Bug 1864505
Bug 200269632

Change-Id: Ia2d7de093996807680ae03890da38ec916fc6d54
Reviewed-on: http://git-master/r/1318265
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jihoon Bang &lt;jbang@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mika Liljeberg &lt;mliljeberg@nvidia.com&gt;
Tested-by: Pekka Pessi &lt;ppessi@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>platform: tegra: rtcpu: send up/down to all channels</title>
<updated>2017-05-04T08:54:44+00:00</updated>
<author>
<name>Pekka Pessi</name>
<email>ppessi@nvidia.com</email>
</author>
<published>2017-02-02T01:33:26+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvidia-tegra-modules.git/commit/?id=d3ab9755583a4354f49a29d8c95a777b602a3e0d'/>
<id>d3ab9755583a4354f49a29d8c95a777b602a3e0d</id>
<content type='text'>
Send the RTCPU up/down events to all IVC channels, not just VI notifier
clients.

Jira CRTC-911
Jira CRTC-726
Bug 1819170

Change-Id: Ia2a2fc941b157cd54a34e78da4e12cd3c7038d5a
Signed-off-by: Pekka Pessi &lt;ppessi@nvidia.com&gt;
Reviewed-on: http://git-master/r/1298058
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mika Liljeberg &lt;mliljeberg@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Send the RTCPU up/down events to all IVC channels, not just VI notifier
clients.

Jira CRTC-911
Jira CRTC-726
Bug 1819170

Change-Id: Ia2a2fc941b157cd54a34e78da4e12cd3c7038d5a
Signed-off-by: Pekka Pessi &lt;ppessi@nvidia.com&gt;
Reviewed-on: http://git-master/r/1298058
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mika Liljeberg &lt;mliljeberg@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>platform: tegra: rtcpu: ivc subsys init</title>
<updated>2017-04-07T02:24:20+00:00</updated>
<author>
<name>Ashish Singh</name>
<email>assingh@nvidia.com</email>
</author>
<published>2017-03-22T17:37:46+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvidia-tegra-modules.git/commit/?id=b316d927fcb8eecac3287d1d633c3561cb162a94'/>
<id>b316d927fcb8eecac3287d1d633c3561cb162a94</id>
<content type='text'>
Making all ivc channel driver as subsys level init, so that
drivers are registered when ivc bus is created and ivc channel
devices are added. Which will make sure that ready call is made
to all ivc channel drivers for them to know when RTCPU is online
or offline.

Also adding ready func ops to all ivc channel drivers and test if
it was called by is_ready flag.

CRTC-925

Change-Id: I0d91624fe3dc23cb894d59cba0a7bdcb4626d2ac
Signed-off-by: Ashish Singh &lt;assingh@nvidia.com&gt;
Reviewed-on: http://git-master/r/1326220
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svccoveritychecker &lt;svccoveritychecker@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang &lt;jbang@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Making all ivc channel driver as subsys level init, so that
drivers are registered when ivc bus is created and ivc channel
devices are added. Which will make sure that ready call is made
to all ivc channel drivers for them to know when RTCPU is online
or offline.

Also adding ready func ops to all ivc channel drivers and test if
it was called by is_ready flag.

CRTC-925

Change-Id: I0d91624fe3dc23cb894d59cba0a7bdcb4626d2ac
Signed-off-by: Ashish Singh &lt;assingh@nvidia.com&gt;
Reviewed-on: http://git-master/r/1326220
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svccoveritychecker &lt;svccoveritychecker@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang &lt;jbang@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tegra: camera: rtcpu: vi-notify: fix __iomem</title>
<updated>2017-03-24T16:35:52+00:00</updated>
<author>
<name>Pekka Pessi</name>
<email>ppessi@nvidia.com</email>
</author>
<published>2017-03-09T19:22: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=d4f28e0553365792a8fb818c5ea4e71b002a5711'/>
<id>d4f28e0553365792a8fb818c5ea4e71b002a5711</id>
<content type='text'>
Fix status_mem __iomem handling.

Bug 200088648

Change-Id: Id06bcd40075cc86ae9205485eef98b4c806f2372
Signed-off-by: Pekka Pessi &lt;ppessi@nvidia.com&gt;
Reviewed-on: http://git-master/r/1318213
Reviewed-by: svccoveritychecker &lt;svccoveritychecker@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang &lt;jbang@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix status_mem __iomem handling.

Bug 200088648

Change-Id: Id06bcd40075cc86ae9205485eef98b4c806f2372
Signed-off-by: Pekka Pessi &lt;ppessi@nvidia.com&gt;
Reviewed-on: http://git-master/r/1318213
Reviewed-by: svccoveritychecker &lt;svccoveritychecker@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang &lt;jbang@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>krenel-t18x: adjust time stamp</title>
<updated>2017-03-17T05:37:12+00:00</updated>
<author>
<name>Ashish Singh</name>
<email>assingh@nvidia.com</email>
</author>
<published>2017-02-17T21:28:12+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvidia-tegra-modules.git/commit/?id=72bd448f4cfde55cd70fc57d3d2657dd003667c5'/>
<id>72bd448f4cfde55cd70fc57d3d2657dd003667c5</id>
<content type='text'>
In this change sof and eof timestamps are adjusted for bootup
time difference between TSC and ktime.

CRTC-637
Bug 1842995

Change-Id: I1b1f6c1b47e6f93633a2b27118882eee0b4cef57
Signed-off-by: Ashish Singh &lt;assingh@nvidia.com&gt;
Reviewed-on: http://git-master/r/1307251
Reviewed-by: svccoveritychecker &lt;svccoveritychecker@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang &lt;jbang@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In this change sof and eof timestamps are adjusted for bootup
time difference between TSC and ktime.

CRTC-637
Bug 1842995

Change-Id: I1b1f6c1b47e6f93633a2b27118882eee0b4cef57
Signed-off-by: Ashish Singh &lt;assingh@nvidia.com&gt;
Reviewed-on: http://git-master/r/1307251
Reviewed-by: svccoveritychecker &lt;svccoveritychecker@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang &lt;jbang@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>platform: tegra: rtcpu: vi-notify: schedule notify</title>
<updated>2017-03-06T21:25:46+00:00</updated>
<author>
<name>Pekka Pessi</name>
<email>ppessi@nvidia.com</email>
</author>
<published>2017-02-27T14:34:29+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvidia-tegra-modules.git/commit/?id=ed4b8917f935a1861d5fc293f986c606a947f62f'/>
<id>ed4b8917f935a1861d5fc293f986c606a947f62f</id>
<content type='text'>
The shared mailbox is emptied when the HSP notify function returns. The
mailbox should be emptied before starting to process the IVC
channels. This way we get a new interrupt if new messages are sent to
the channel after old ones have been processed.

Schedule the IVC handling as bottom-half work instead of trying to drain
the IVC channel in the interrupt handler.

Bug 200239989
Bug 1854467
Bug 1883764

Change-Id: I4c30867cc0540231ead442eb50cd9a9a2a12ebee
Reviewed-on: http://git-master/r/1313938
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svccoveritychecker &lt;svccoveritychecker@nvidia.com&gt;
Tested-by: Pekka Pessi &lt;ppessi@nvidia.com&gt;
Reviewed-by: Ashish Singh &lt;assingh@nvidia.com&gt;
Reviewed-by: Mika Liljeberg &lt;mliljeberg@nvidia.com&gt;
Tested-by: Mika Liljeberg &lt;mliljeberg@nvidia.com&gt;
Reviewed-by: Aki Niemi &lt;aniemi@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang &lt;jbang@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The shared mailbox is emptied when the HSP notify function returns. The
mailbox should be emptied before starting to process the IVC
channels. This way we get a new interrupt if new messages are sent to
the channel after old ones have been processed.

Schedule the IVC handling as bottom-half work instead of trying to drain
the IVC channel in the interrupt handler.

Bug 200239989
Bug 1854467
Bug 1883764

Change-Id: I4c30867cc0540231ead442eb50cd9a9a2a12ebee
Reviewed-on: http://git-master/r/1313938
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svccoveritychecker &lt;svccoveritychecker@nvidia.com&gt;
Tested-by: Pekka Pessi &lt;ppessi@nvidia.com&gt;
Reviewed-by: Ashish Singh &lt;assingh@nvidia.com&gt;
Reviewed-by: Mika Liljeberg &lt;mliljeberg@nvidia.com&gt;
Tested-by: Mika Liljeberg &lt;mliljeberg@nvidia.com&gt;
Reviewed-by: Aki Niemi &lt;aniemi@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang &lt;jbang@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>platform: tegra: rtcpu: fix RTCPU PM issues</title>
<updated>2017-02-16T11:33:33+00:00</updated>
<author>
<name>Mika Liljeberg</name>
<email>mliljeberg@nvidia.com</email>
</author>
<published>2017-02-09T12:03:44+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvidia-tegra-modules.git/commit/?id=0f38ddabcb908b7c92d303730323342033c12882'/>
<id>0f38ddabcb908b7c92d303730323342033c12882</id>
<content type='text'>
Change http://git-master/r/1296040 caused a regression on SCE,
with the symptom that certain IVC operations would sometimes
time out. This patch fixes the regression as well as some PM
related error handling paths in vi-notify:

* Call PM function on the current device rather than parent's
  parent in order to keep the power tree consistent.
* Do not try poweroff if poweron failed.

Jira CRTC-910
Bug 1857548

Change-Id: I88ff55689acad9f7d94ed6392a954a876caf00d9
Reviewed-on: http://git-master/r/1302111
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Mika Liljeberg &lt;mliljeberg@nvidia.com&gt;
Reviewed-by: Jihoon Bang &lt;jbang@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mika Liljeberg &lt;mliljeberg@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change http://git-master/r/1296040 caused a regression on SCE,
with the symptom that certain IVC operations would sometimes
time out. This patch fixes the regression as well as some PM
related error handling paths in vi-notify:

* Call PM function on the current device rather than parent's
  parent in order to keep the power tree consistent.
* Do not try poweroff if poweron failed.

Jira CRTC-910
Bug 1857548

Change-Id: I88ff55689acad9f7d94ed6392a954a876caf00d9
Reviewed-on: http://git-master/r/1302111
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Mika Liljeberg &lt;mliljeberg@nvidia.com&gt;
Reviewed-by: Jihoon Bang &lt;jbang@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mika Liljeberg &lt;mliljeberg@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
