<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nvidia-tegra-modules.git/drivers/video/tegra/nvmap/nvmap_dev.c, 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>gpu-paging: Functions to support initial working version</title>
<updated>2022-05-25T01:16:30+00:00</updated>
<author>
<name>Joshua Bakita</name>
<email>jbakita@cs.unc.edu</email>
</author>
<published>2022-05-25T01:16: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=2c076a01e5bd0949032ef81cd0e2d37bdecafba5'/>
<id>2c076a01e5bd0949032ef81cd0e2d37bdecafba5</id>
<content type='text'>
- Buffer deallocation (+IOCTL)
- Buffer reallocation
- Private dmabuf user list and accessor
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Buffer deallocation (+IOCTL)
- Buffer reallocation
- Private dmabuf user list and accessor
</pre>
</div>
</content>
</entry>
<entry>
<title>tegra: nvmap: Address few inappropriate mixes of integer types</title>
<updated>2021-07-09T23:54:44+00:00</updated>
<author>
<name>Martin Radev</name>
<email>mradev@nvidia.com</email>
</author>
<published>2021-06-01T12:16: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=1b1628709790f71ebb4bcf024164f5ff3da54201'/>
<id>1b1628709790f71ebb4bcf024164f5ff3da54201</id>
<content type='text'>
There are possible value truncations when mixing types of different
width, e.g. s32 (int), u32, u64. This patch attempts to address
such issues in two ways:
1) Manually find and fix error-prone mixing.
2) Prevent creating a handle from an exuberantly large size.

The maximum selected size is set to maximum of system memory. This
is expected to be small enough that the number of pages fits even
in s32. This should offer some future protection in case nvmap starts
mixing int and u64 again.

Bug 3315168

Change-Id: Icb83d745a7b1955ec473bec46f12a3ae25ad73af
Signed-off-by: Martin Radev &lt;mradev@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2537851
(cherry picked from commit 5fa42e9d5f73a937995f87ba28b99d3b891d8f3a)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2547360
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>
There are possible value truncations when mixing types of different
width, e.g. s32 (int), u32, u64. This patch attempts to address
such issues in two ways:
1) Manually find and fix error-prone mixing.
2) Prevent creating a handle from an exuberantly large size.

The maximum selected size is set to maximum of system memory. This
is expected to be small enough that the number of pages fits even
in s32. This should offer some future protection in case nvmap starts
mixing int and u64 again.

Bug 3315168

Change-Id: Icb83d745a7b1955ec473bec46f12a3ae25ad73af
Signed-off-by: Martin Radev &lt;mradev@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2537851
(cherry picked from commit 5fa42e9d5f73a937995f87ba28b99d3b891d8f3a)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2547360
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>drivers: tegra: nvmap: Add NVMAP_IOC_PARAMETERS ioctl</title>
<updated>2020-07-06T16:10:33+00:00</updated>
<author>
<name>puneet saxena</name>
<email>puneets@nvidia.com</email>
</author>
<published>2020-06-29T14:30:37+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvidia-tegra-modules.git/commit/?id=66d34be2111cbce34f5b50ff6d353481caf82c3c'/>
<id>66d34be2111cbce34f5b50ff6d353481caf82c3c</id>
<content type='text'>
Add NVMAP_IOC_PARAMETERS to return nvmap handle's

contig; Phys_Contig
import_id; NA
handle;
heap_number; Only valid for IVM carveout
access_flags; NA
heap; Heap Type
align; Alignement
coherency; Coherency flag
size; Handle Size

Bug 3038325

Change-Id: I6fcfce7c3808e21084b543fa87ff8e48431b19f5
Signed-off-by: puneet saxena &lt;puneets@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2368252
Reviewed-by: automaticguardword &lt;automaticguardword@nvidia.com&gt;
Reviewed-by: Kai Zhang (SW-TEGRA) &lt;kazhang@nvidia.com&gt;
Reviewed-by: Tuomas Kulve &lt;tkulve@nvidia.com&gt;
Reviewed-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;
GVS: Gerrit_Virtual_Submit
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add NVMAP_IOC_PARAMETERS to return nvmap handle's

contig; Phys_Contig
import_id; NA
handle;
heap_number; Only valid for IVM carveout
access_flags; NA
heap; Heap Type
align; Alignement
coherency; Coherency flag
size; Handle Size

Bug 3038325

Change-Id: I6fcfce7c3808e21084b543fa87ff8e48431b19f5
Signed-off-by: puneet saxena &lt;puneets@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2368252
Reviewed-by: automaticguardword &lt;automaticguardword@nvidia.com&gt;
Reviewed-by: Kai Zhang (SW-TEGRA) &lt;kazhang@nvidia.com&gt;
Reviewed-by: Tuomas Kulve &lt;tkulve@nvidia.com&gt;
Reviewed-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;
GVS: Gerrit_Virtual_Submit
</pre>
</div>
</content>
</entry>
<entry>
<title>video: tegra: nvmap: add NvRmMemQueryHeapParams</title>
<updated>2019-12-12T23:09:32+00:00</updated>
<author>
<name>Puneet Saxena</name>
<email>puneets@nvidia.com</email>
</author>
<published>2019-10-01T17:10: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=c9d1a165ed2470e8988cff8284b055bacacb620f'/>
<id>c9d1a165ed2470e8988cff8284b055bacacb620f</id>
<content type='text'>
Add NvRmMemQueryHeapParams to return Heap params
such as total size, free size..

Bug 200555794
Bug 200565027
Bug 200564460

Change-Id: I7e002a3264ffe2df8c95a037f157482dbd78bbff
Signed-off-by: Puneet Saxena &lt;puneets@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/2209555
(cherry picked from commit e5039360df4e5695fb388f7302b8d8670094190d)
Reviewed-on: https://git-master.nvidia.com/r/2232110
Reviewed-by: Sandipan Patra &lt;spatra@nvidia.com&gt;
Reviewed-by: Sachin Nikam &lt;snikam@nvidia.com&gt;
Tested-by: Sandipan Patra &lt;spatra@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>
Add NvRmMemQueryHeapParams to return Heap params
such as total size, free size..

Bug 200555794
Bug 200565027
Bug 200564460

Change-Id: I7e002a3264ffe2df8c95a037f157482dbd78bbff
Signed-off-by: Puneet Saxena &lt;puneets@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/2209555
(cherry picked from commit e5039360df4e5695fb388f7302b8d8670094190d)
Reviewed-on: https://git-master.nvidia.com/r/2232110
Reviewed-by: Sandipan Patra &lt;spatra@nvidia.com&gt;
Reviewed-by: Sachin Nikam &lt;snikam@nvidia.com&gt;
Tested-by: Sandipan Patra &lt;spatra@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>video: tegra: nvmap: sparse: Make fops static</title>
<updated>2018-07-27T18:05:03+00:00</updated>
<author>
<name>David Gilhooley</name>
<email>dgilhooley@nvidia.com</email>
</author>
<published>2018-07-24T21:27: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=eb60df8ca31cca1150583f7cb7cc2eba9b99a536'/>
<id>eb60df8ca31cca1150583f7cb7cc2eba9b99a536</id>
<content type='text'>
Make some the file operations in nvmap_dev.c
static to fix sparse errors.

Bug 200408168

Change-Id: Ic1ce4e220b66b04ac93496902c9c535f7f5317ee
Signed-off-by: David Gilhooley &lt;dgilhooley@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1785032
GVS: Gerrit_Virtual_Submit
Reviewed-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>
Make some the file operations in nvmap_dev.c
static to fix sparse errors.

Bug 200408168

Change-Id: Ic1ce4e220b66b04ac93496902c9c535f7f5317ee
Signed-off-by: David Gilhooley &lt;dgilhooley@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1785032
GVS: Gerrit_Virtual_Submit
Reviewed-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>
<entry>
<title>video: tegra: nvmap: Seperate dmabuf functions from dev</title>
<updated>2018-06-07T23:23:35+00:00</updated>
<author>
<name>David Gilhooley</name>
<email>dgilhooley@nvidia.com</email>
</author>
<published>2018-05-23T17:23: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=1653b916075e6bd8a25bcf6e4ba1d50a84ef28bf'/>
<id>1653b916075e6bd8a25bcf6e4ba1d50a84ef28bf</id>
<content type='text'>
Seperate dmabuf functions for better code
cohesion.

JIRA: TMM-114

Change-Id: Ia70e224e6b11feea38e41bc78302735925f0131b
Signed-off-by: David Gilhooley &lt;dgilhooley@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1728413
Reviewed-by: svc-mobile-coverity &lt;svc-mobile-coverity@nvidia.com&gt;
Reviewed-by: Sachin Nikam &lt;snikam@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy &lt;vdumpa@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>
Seperate dmabuf functions for better code
cohesion.

JIRA: TMM-114

Change-Id: Ia70e224e6b11feea38e41bc78302735925f0131b
Signed-off-by: David Gilhooley &lt;dgilhooley@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1728413
Reviewed-by: svc-mobile-coverity &lt;svc-mobile-coverity@nvidia.com&gt;
Reviewed-by: Sachin Nikam &lt;snikam@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy &lt;vdumpa@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>video: tegra: nvmap: Seperate handle functions from dev</title>
<updated>2018-06-07T23:23:31+00:00</updated>
<author>
<name>David Gilhooley</name>
<email>dgilhooley@nvidia.com</email>
</author>
<published>2018-05-23T17:20:27+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvidia-tegra-modules.git/commit/?id=8cbb036509dfcfcb227b35ef87764062b2ea6714'/>
<id>8cbb036509dfcfcb227b35ef87764062b2ea6714</id>
<content type='text'>
Seperate the handle functions for better
code cohesion.

JIRA: TMM-114

Change-Id: Ic608d14a479cbe951c0b0233260628497952820d
Signed-off-by: David Gilhooley &lt;dgilhooley@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1728412
Reviewed-by: svc-mobile-coverity &lt;svc-mobile-coverity@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy &lt;vdumpa@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>
Seperate the handle functions for better
code cohesion.

JIRA: TMM-114

Change-Id: Ic608d14a479cbe951c0b0233260628497952820d
Signed-off-by: David Gilhooley &lt;dgilhooley@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1728412
Reviewed-by: svc-mobile-coverity &lt;svc-mobile-coverity@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy &lt;vdumpa@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>video: tegra: nvmap: Seperate heap functions from dev</title>
<updated>2018-06-07T23:23:28+00:00</updated>
<author>
<name>David Gilhooley</name>
<email>dgilhooley@nvidia.com</email>
</author>
<published>2018-05-23T17:15: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=d5a2088c581acf73b1f2c9117737fa08bd36f7dd'/>
<id>d5a2088c581acf73b1f2c9117737fa08bd36f7dd</id>
<content type='text'>
Seperate heap functions from dev for
better code cohesion.

JIRA: TMM-114

Change-Id: Ib3e7a093d5b4bb977ef94a43c02e195d7ba58599
Signed-off-by: David Gilhooley &lt;dgilhooley@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1728410
Reviewed-by: svc-mobile-coverity &lt;svc-mobile-coverity@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy &lt;vdumpa@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>
Seperate heap functions from dev for
better code cohesion.

JIRA: TMM-114

Change-Id: Ib3e7a093d5b4bb977ef94a43c02e195d7ba58599
Signed-off-by: David Gilhooley &lt;dgilhooley@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1728410
Reviewed-by: svc-mobile-coverity &lt;svc-mobile-coverity@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy &lt;vdumpa@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>video: tegra: nvmap: Seperate carveout functions from dev</title>
<updated>2018-06-07T23:23:24+00:00</updated>
<author>
<name>David Gilhooley</name>
<email>dgilhooley@nvidia.com</email>
</author>
<published>2018-05-23T17:13:15+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvidia-tegra-modules.git/commit/?id=ca7c5d4bf66b245fc3821640256a39115bb6abf4'/>
<id>ca7c5d4bf66b245fc3821640256a39115bb6abf4</id>
<content type='text'>
Move carveout functions into a seperate file
for better code cohesion.

JIRA: TMM-114

Change-Id: Iad34c90616063bdac42f549218bfe412299fc354
Signed-off-by: David Gilhooley &lt;dgilhooley@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1728409
Reviewed-by: svc-mobile-coverity &lt;svc-mobile-coverity@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy &lt;vdumpa@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>
Move carveout functions into a seperate file
for better code cohesion.

JIRA: TMM-114

Change-Id: Iad34c90616063bdac42f549218bfe412299fc354
Signed-off-by: David Gilhooley &lt;dgilhooley@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1728409
Reviewed-by: svc-mobile-coverity &lt;svc-mobile-coverity@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy &lt;vdumpa@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>video: tegra: nvmap: Create stats files</title>
<updated>2018-06-07T23:23:21+00:00</updated>
<author>
<name>David Gilhooley</name>
<email>dgilhooley@nvidia.com</email>
</author>
<published>2018-05-23T17:02: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=99f5166af5eb515c63d03488c1b1a4cf822178a8'/>
<id>99f5166af5eb515c63d03488c1b1a4cf822178a8</id>
<content type='text'>
Pull the nvmap stats functions out of nvmap_dev.c
so the code becomes cleaner.

JIRA: TMM-114

Change-Id: If3b57a2fa450dd5d5cf7eddca6bab99d4985e115
Signed-off-by: David Gilhooley &lt;dgilhooley@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1728408
Reviewed-by: svc-mobile-coverity &lt;svc-mobile-coverity@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy &lt;vdumpa@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>
Pull the nvmap stats functions out of nvmap_dev.c
so the code becomes cleaner.

JIRA: TMM-114

Change-Id: If3b57a2fa450dd5d5cf7eddca6bab99d4985e115
Signed-off-by: David Gilhooley &lt;dgilhooley@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1728408
Reviewed-by: svc-mobile-coverity &lt;svc-mobile-coverity@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy &lt;vdumpa@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>
