<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nvidia-tegra-modules.git/drivers/virt/tegra/ivc-cdev.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>tegra: ivc: Fix IRQ sync issue with IVC cdev</title>
<updated>2018-08-27T23:55:04+00:00</updated>
<author>
<name>Faisal Zaghloul</name>
<email>fzaghloul@nvidia.com</email>
</author>
<published>2018-04-24T21:29:19+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvidia-tegra-modules.git/commit/?id=c1ea65bfa06ae75db0f9c29f788ccd84585567e8'/>
<id>c1ea65bfa06ae75db0f9c29f788ccd84585567e8</id>
<content type='text'>
devm_request_irq should be paired with devm_free_irq.
Shared state should only be modified AFTER freeing the IRQ, since
free_irq services any pending IRQs first before actually freeing.

Bug 200331923

Change-Id: Id2af45dd364da5a8c8f49dd6d333908f059c5280
Signed-off-by: Faisal Zaghloul &lt;fzaghloul@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1701854
Reviewed-by: Peter Newman &lt;pnewman@nvidia.com&gt;
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vladislav Buzov &lt;vbuzov@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>
devm_request_irq should be paired with devm_free_irq.
Shared state should only be modified AFTER freeing the IRQ, since
free_irq services any pending IRQs first before actually freeing.

Bug 200331923

Change-Id: Id2af45dd364da5a8c8f49dd6d333908f059c5280
Signed-off-by: Faisal Zaghloul &lt;fzaghloul@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1701854
Reviewed-by: Peter Newman &lt;pnewman@nvidia.com&gt;
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vladislav Buzov &lt;vbuzov@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: ivc cdev: Fix incorrect irq registration</title>
<updated>2018-08-27T23:55:04+00:00</updated>
<author>
<name>John Moser</name>
<email>jmoser@nvidia.com</email>
</author>
<published>2017-06-05T21:10:28+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvidia-tegra-modules.git/commit/?id=9f8d12e246c78c87c8a00be5004fbc27690779a5'/>
<id>9f8d12e246c78c87c8a00be5004fbc27690779a5</id>
<content type='text'>
The ivc cdev driver incorrectly uses the hypervisor ivc queue
hwirq number when registering its interrupt handler (vs.
the associated hv device logical irq line number).  Due to this
incorrect registration the device does not receive any interrupts
resulting in it not being able to establish the ivc channel.
This change modifies the code to use the hv device logical
irq number associated with the ivc channel during irq handler
registration.

Bug 200308411
JIRA VFND-4214

Change-Id: I400863eb285046cae3c068c58d8fbf1aedb0bac9
Signed-off-by: John Moser &lt;jmoser@nvidia.com&gt;
Reviewed-on: http://git-master/r/1496247
Reviewed-on: http://git-master/r/1498656
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dennis Kou &lt;dkou@nvidia.com&gt;
Reviewed-by: Vladislav Buzov &lt;vbuzov@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The ivc cdev driver incorrectly uses the hypervisor ivc queue
hwirq number when registering its interrupt handler (vs.
the associated hv device logical irq line number).  Due to this
incorrect registration the device does not receive any interrupts
resulting in it not being able to establish the ivc channel.
This change modifies the code to use the hv device logical
irq number associated with the ivc channel during irq handler
registration.

Bug 200308411
JIRA VFND-4214

Change-Id: I400863eb285046cae3c068c58d8fbf1aedb0bac9
Signed-off-by: John Moser &lt;jmoser@nvidia.com&gt;
Reviewed-on: http://git-master/r/1496247
Reviewed-on: http://git-master/r/1498656
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dennis Kou &lt;dkou@nvidia.com&gt;
Reviewed-by: Vladislav Buzov &lt;vbuzov@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tegra: ivc: allow build without CONFIG_COMPAT</title>
<updated>2018-08-27T23:55:04+00:00</updated>
<author>
<name>dmitry pervushin</name>
<email>dpervushin@nvidia.com</email>
</author>
<published>2016-04-18T15:37: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=68297899f67de6faed1937ca26102b51be8c2244'/>
<id>68297899f67de6faed1937ca26102b51be8c2244</id>
<content type='text'>
linux/sched.h should be included explicitly

Bug 200187990
ESSL-1335

Change-Id: I964a1272ce2abd95219d5080eb6d3414cd4cfa5f
Signed-off-by: dmitry pervushin &lt;dpervushin@nvidia.com&gt;
Reviewed-on: http://git-master/r/1128275
Reviewed-on: http://git-master/r/1198262
Reviewed-on: http://git-master/r/1314825
Reviewed-by: Aniruddha Banerjee &lt;aniruddhab@nvidia.com&gt;
Tested-by: Aniruddha Banerjee &lt;aniruddhab@nvidia.com&gt;
Reviewed-by: Bahadir Balban &lt;bbalban@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Timo Alho &lt;talho@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
linux/sched.h should be included explicitly

Bug 200187990
ESSL-1335

Change-Id: I964a1272ce2abd95219d5080eb6d3414cd4cfa5f
Signed-off-by: dmitry pervushin &lt;dpervushin@nvidia.com&gt;
Reviewed-on: http://git-master/r/1128275
Reviewed-on: http://git-master/r/1198262
Reviewed-on: http://git-master/r/1314825
Reviewed-by: Aniruddha Banerjee &lt;aniruddhab@nvidia.com&gt;
Tested-by: Aniruddha Banerjee &lt;aniruddhab@nvidia.com&gt;
Reviewed-by: Bahadir Balban &lt;bbalban@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Timo Alho &lt;talho@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tegra: ivc: remove double-assignment</title>
<updated>2018-08-27T23:55:04+00:00</updated>
<author>
<name>Peter Newman</name>
<email>pnewman@nvidia.com</email>
</author>
<published>2016-02-09T17:31: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=fcd69c50baf6bba1d474ca322b7709a8dc46ca68'/>
<id>fcd69c50baf6bba1d474ca322b7709a8dc46ca68</id>
<content type='text'>
Remove the second assignment of the struct ivc pointer in the IVC
character device polling function, which, depending on which assignment
the compiler keeps, could potentially circumvent the BUG_ON() verifying
that the device pointer is valid.

Bug 200116059
CID 20417

Change-Id: I397ca6efe4ce4ab6f6b97a9bac67d713f893910a
Signed-off-by: Peter Newman &lt;pnewman@nvidia.com&gt;
Reviewed-on: http://git-master/r/1009995
Reviewed-on: http://git-master/r/1198255
Reviewed-on: http://git-master/r/1314813
Reviewed-by: Aniruddha Banerjee &lt;aniruddhab@nvidia.com&gt;
Tested-by: Aniruddha Banerjee &lt;aniruddhab@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Timo Alho &lt;talho@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove the second assignment of the struct ivc pointer in the IVC
character device polling function, which, depending on which assignment
the compiler keeps, could potentially circumvent the BUG_ON() verifying
that the device pointer is valid.

Bug 200116059
CID 20417

Change-Id: I397ca6efe4ce4ab6f6b97a9bac67d713f893910a
Signed-off-by: Peter Newman &lt;pnewman@nvidia.com&gt;
Reviewed-on: http://git-master/r/1009995
Reviewed-on: http://git-master/r/1198255
Reviewed-on: http://git-master/r/1314813
Reviewed-by: Aniruddha Banerjee &lt;aniruddhab@nvidia.com&gt;
Tested-by: Aniruddha Banerjee &lt;aniruddhab@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Timo Alho &lt;talho@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tegra: ivc: Fix memory corruption issue</title>
<updated>2018-08-27T23:55:04+00:00</updated>
<author>
<name>Peter Daifuku</name>
<email>pdaifuku@nvidia.com</email>
</author>
<published>2015-08-22T02:43: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=6d1eb466c4eccfb02d4516a802949c738d59420c'/>
<id>6d1eb466c4eccfb02d4516a802949c738d59420c</id>
<content type='text'>
Fix memory corruption issue when IVC queues have gaps in
their numbering: don't use queue number to index into ivc_dev_array

VFND-557

Change-Id: Ib962fc74fab39a882a7822bca226db29ba0fb9c8
Signed-off-by: Peter Daifuku &lt;pdaifuku@nvidia.com&gt;
(cherry picked from commit 7f45a5842c3dfec5f897e8619023f32c4e38f639)
Reviewed-on: http://git-master/r/789689
Reviewed-on: http://git-master/r/1198246
Reviewed-on: http://git-master/r/1314810
Reviewed-by: Aniruddha Banerjee &lt;aniruddhab@nvidia.com&gt;
Tested-by: Aniruddha Banerjee &lt;aniruddhab@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Timo Alho &lt;talho@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix memory corruption issue when IVC queues have gaps in
their numbering: don't use queue number to index into ivc_dev_array

VFND-557

Change-Id: Ib962fc74fab39a882a7822bca226db29ba0fb9c8
Signed-off-by: Peter Daifuku &lt;pdaifuku@nvidia.com&gt;
(cherry picked from commit 7f45a5842c3dfec5f897e8619023f32c4e38f639)
Reviewed-on: http://git-master/r/789689
Reviewed-on: http://git-master/r/1198246
Reviewed-on: http://git-master/r/1314810
Reviewed-by: Aniruddha Banerjee &lt;aniruddhab@nvidia.com&gt;
Tested-by: Aniruddha Banerjee &lt;aniruddhab@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Timo Alho &lt;talho@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tegra: ivc: fix crash during native boot</title>
<updated>2018-08-27T23:55:04+00:00</updated>
<author>
<name>Peter Newman</name>
<email>pnewman@nvidia.com</email>
</author>
<published>2015-08-18T23:47: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=e12ca8a26a79733276526dae34eb3dd429866991'/>
<id>e12ca8a26a79733276526dae34eb3dd429866991</id>
<content type='text'>
tegra_hv_get_ivc_info() returns an ERR_PTR, not NULL when it fails.

VFND-557

Change-Id: Iaf38a59fc033560c9cab31fdabc7f9bc474e0763
Signed-off-by: Peter Newman &lt;pnewman@nvidia.com&gt;
Reviewed-on: http://git-master/r/785650
Reviewed-on: http://git-master/r/1198244
Reviewed-on: http://git-master/r/1314808
Reviewed-by: Aniruddha Banerjee &lt;aniruddhab@nvidia.com&gt;
Tested-by: Aniruddha Banerjee &lt;aniruddhab@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Timo Alho &lt;talho@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
tegra_hv_get_ivc_info() returns an ERR_PTR, not NULL when it fails.

VFND-557

Change-Id: Iaf38a59fc033560c9cab31fdabc7f9bc474e0763
Signed-off-by: Peter Newman &lt;pnewman@nvidia.com&gt;
Reviewed-on: http://git-master/r/785650
Reviewed-on: http://git-master/r/1198244
Reviewed-on: http://git-master/r/1314808
Reviewed-by: Aniruddha Banerjee &lt;aniruddhab@nvidia.com&gt;
Tested-by: Aniruddha Banerjee &lt;aniruddhab@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Timo Alho &lt;talho@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tegra: ivc: split ivc cdev driver from hv manager</title>
<updated>2018-08-27T23:55:04+00:00</updated>
<author>
<name>Peter Newman</name>
<email>pnewman@nvidia.com</email>
</author>
<published>2015-08-11T17:58:02+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvidia-tegra-modules.git/commit/?id=5ed5db37b7c5ff55a37817b5d8946884624d5ce9'/>
<id>5ed5db37b7c5ff55a37817b5d8946884624d5ce9</id>
<content type='text'>
To support users of the in-kernel IVC API that run before platform
devices are initialized, move initialization of IVC to the coreinit
phase. Split the IVC character device interface into a separate driver
that initializes much later.

 - Remove the option for building the tegra_hv driver as a loadable
   module, as this functionality is never tested, and IVC is needed far
   too early on Tegra platforms for this ever to be an option.
 - Add a tegra_hv_ivc_convert_cookie(), which is a temporary API for
   converting the cookie pointer returned by tegra_hv_ivc_reserve() to a
   struct ivc *, which is needed for writing code that is compatible
   with multiple IVC backends.

Bug VFND-557

Change-Id: I74eae3d495eff1173d08b2d11a313c9f0abde4f7
Signed-off-by: Peter Newman &lt;pnewman@nvidia.com&gt;
Signed-off-by: Arnab Basu &lt;abasu@nvidia.com&gt;
Reviewed-on: http://git-master/r/776251
Reviewed-on: http://git-master/r/1198243
Reviewed-on: http://git-master/r/1314807
Reviewed-by: Aniruddha Banerjee &lt;aniruddhab@nvidia.com&gt;
Tested-by: Aniruddha Banerjee &lt;aniruddhab@nvidia.com&gt;
Reviewed-by: Bahadir Balban &lt;bbalban@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Timo Alho &lt;talho@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
To support users of the in-kernel IVC API that run before platform
devices are initialized, move initialization of IVC to the coreinit
phase. Split the IVC character device interface into a separate driver
that initializes much later.

 - Remove the option for building the tegra_hv driver as a loadable
   module, as this functionality is never tested, and IVC is needed far
   too early on Tegra platforms for this ever to be an option.
 - Add a tegra_hv_ivc_convert_cookie(), which is a temporary API for
   converting the cookie pointer returned by tegra_hv_ivc_reserve() to a
   struct ivc *, which is needed for writing code that is compatible
   with multiple IVC backends.

Bug VFND-557

Change-Id: I74eae3d495eff1173d08b2d11a313c9f0abde4f7
Signed-off-by: Peter Newman &lt;pnewman@nvidia.com&gt;
Signed-off-by: Arnab Basu &lt;abasu@nvidia.com&gt;
Reviewed-on: http://git-master/r/776251
Reviewed-on: http://git-master/r/1198243
Reviewed-on: http://git-master/r/1314807
Reviewed-by: Aniruddha Banerjee &lt;aniruddhab@nvidia.com&gt;
Tested-by: Aniruddha Banerjee &lt;aniruddhab@nvidia.com&gt;
Reviewed-by: Bahadir Balban &lt;bbalban@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Timo Alho &lt;talho@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
