Sheetal Tigadoli
ef2e125868
drivers:nvpps:optimize TSC align trigger freq
...
- use TSC lock trigger interval param from dt to optimize
As per HW suggestion we should not trigger sync on every
PPS edge. TSC needs atleast 2 PPS edges to align with the
PTP clock.
- save platform specific register offset during drv init time
instead of checking plat id everytime in monitoring thread
Bug 5042311
Bug 4899241
Bug 5082436
Signed-off-by: Sheetal Tigadoli <stigadoli@nvidia.com >
Change-Id: I22befbc2a52c22ace1a8573b9a34a544ed1ae8f9
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3294329
(cherry picked from commit 209dc26eddd2cd5e9d88ea8c6eb603706cd3c3f0)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3292322
Reviewed-by: Amlan Kundu <akundu@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-07-24 10:19:14 +00:00
Sheetal Tigadoli
61ba5d28d0
drivers:nvpps:add upper limit check for lock threshold
...
add upper limit check for lock threshold for thor based platforms
Bug 5082436
Signed-off-by: Sheetal Tigadoli <stigadoli@nvidia.com >
Change-Id: Iabebef89c87f261baa54e5d616101bf82e15b515
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3293987
(cherry picked from commit 1a7135106db544831404bb7eba658f5d31e68491)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3293844
Reviewed-by: Amlan Kundu <akundu@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-07-24 10:19:14 +00:00
Mikko Perttunen
92ed8780d2
drm/tegra: Add new syncpoint increment IOCTL
...
Add new syncpoint increment IOCTL in line with the new channel/
syncpoint IOCTLs, that only allows incrementing owned syncpoints.
Change-Id: Ieed11e1ba840da31ecfe7029051bfa61b88cd2b5
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3284407
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Santosh BS <santoshb@nvidia.com >
2025-07-24 10:19:14 +00:00
Mikko Perttunen
5362309e7f
gpu: host1x: Add option for disabling context stealing
...
Add kernel module parameter to allow disabling context stealing in
cases where reliability and consistency is preferred.
Change-Id: Iffa3f098814bcdd3ae760a05cb013c3c0c804ad5
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3284406
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Santosh BS <santoshb@nvidia.com >
2025-07-24 10:19:14 +00:00
Mikko Perttunen
48e383a1b9
drm/tegra: Add option for explicit syncpoint free
...
Add kernel module parameter to enable a mode where syncpoints
must be freed explicitly (using the free IOCTL) or they will be
left dangling. This ensures that, for particularly locked down
configurations, a syncpoint will be forever left in an expected
state even if the process owning it dies -- for example another
process will not be able to allocate it.
Change-Id: I2f350c710775a296c70910df21e95737a36c6a45
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3284405
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Santosh BS <santoshb@nvidia.com >
2025-07-24 10:19:14 +00:00
Ketan Patil
9feb2a4347
video: tegra: nvmap: Add multithreaded cache flush support
...
On TOT, NvMap does page by page cache flush i.e. it takes virtual
address of each page present in the buffer and then perform cache
flush on it using dcache_by_line_op. This result in very poor
performance for larger buffers. ~70% of the time taken by
NvRmMemHandleAllocAttr is consumed in cache flush.
Address this perf issue using multithreaded cache flush
- Use a threshold value of 32768 pages which is derived from perf
experiments and as per discussion with cuda as per usecases.
- When the cache flush request of >= 32768 pages is made, then vmap
pages to map them in contiguous VA space and create n number of kernel
threads; where n indicate the number of online CPUs.
- Divide the above VA range among the threads and each thread would do
cache flush on the VA range assigned to it.
This logic in resulting into following % improvement for alloc tests.
-----------------------------------
Buffer Size in MB | % improvement |
----------------------------------|
128 | 52 |
256 | 56 |
512 | 57 |
1024 | 58 |
1536 | 57 |
2048 | 58 |
2560 | 57 |
3072 | 58 |
3584 | 58 |
4096 | 58 |
4608 | 58 |
5120 | 58 |
-----------------------------------
Bug 4628529
Change-Id: I803ef5245ff9283fdc3afc497a6b642c97e89c06
Signed-off-by: Ketan Patil <ketanp@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3187871
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-07-24 10:19:14 +00:00
Ketan Patil
a57d56284d
video: tegra: nvmap: Don't allow executable memory
...
Don't allow executable memory in alloc from VA code path to avoid any
security risks.
JIRA TMM-5962
Change-Id: Id32684a09f4a9a64d8e8774e993d6c1be8aaeaf0
Signed-off-by: Ketan Patil <ketanp@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3295143
Reviewed-by: Sachin Nikam <snikam@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Pritesh Raithatha <praithatha@nvidia.com >
2025-07-24 10:19:14 +00:00
N V S Abhishek
f4cd590333
video: tegra: nvmap: Correct value of nvmap_total_page_allocs
...
Rectify overflow check for nvmap_total_page_allocs. Also, move
the value update of nvmap_total_page_allocs outside the else
block to update it for when contiguous is both true and false.
Bug 4479044
Change-Id: I9e06b7903c44f05a55d7d9aef98a04c920e102ae
Signed-off-by: N V S Abhishek <nabhishek@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3291713
Reviewed-by: Sachin Nikam <snikam@nvidia.com >
Reviewed-by: Pritesh Raithatha <praithatha@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Ketan Patil <ketanp@nvidia.com >
2025-07-24 10:19:14 +00:00
anupamg
2f69bee627
DCE-KMD: Update shared files licenses
...
- Updates licenses for DCE-KMD files that are shared with HVRTOS.
- Update from GPL-2.0 to MIT as we use these files in both
open source and closed source context.
JIRA TDS-16741
Change-Id: Icf7aeb737f2f3b294bb9ff9c36d5ed7220c13dea
Signed-off-by: anupamg <anupamg@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3293404
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com >
2025-07-24 10:19:14 +00:00
yangxu
2a4976233f
kernel: nvidia-oot: Fix KMD coverity defects(6)
...
Fix coverity defects
NULL_RETURNS
INT08-C
INT30-C
EXP34-C
Jira CAMERASW-30853
Change-Id: If9617a18367830eaa3fa3eed102c4a2214d869d2
Signed-off-by: yangxu <yangxu@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3285360
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Praveen AC <pac@nvidia.com >
Tested-by: Patrick Young <payoung@nvidia.com >
Reviewed-by: Sudhir Vyas <svyas@nvidia.com >
Reviewed-by: Semi Malinen <smalinen@nvidia.com >
2025-07-24 10:19:14 +00:00
Bob Zhang
d1c50209ba
kernel: nvidia-oot: Fix Linux KMD coverity defects
...
Fix INT30-C and INT08-C coverity defects for
tegra-rtcpu-trace.c.
Fix MISSING_LOCK coverity defects for cdi_mgr.c.
Fix NULL_RETURNS coverity defects for cam_fsync.c.
JIRA CAMERASW-30844
Change-Id: If000ed4459479ba0bc9f06477b25efa65e896fc7
Signed-off-by: Bob Zhang <bozhang@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3283172
Reviewed-by: Semi Malinen <smalinen@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
Tested-by: Patrick Young <payoung@nvidia.com >
Reviewed-by: Xiaoming Xiang <xxiang@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: Sudhir Vyas <svyas@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Anubhav Rai <arai@nvidia.com >
2025-07-24 10:19:14 +00:00
Mainak Sen
aa3decfdb8
gpu: host1x: Add plausibility check on Host1x calibration data
...
When syncpoint and channel property are read from device-tree,
add plausibility check to validate against reference data.
Jira HOSTX-5843
Change-Id: I66dd9a5f18200aa8baaeecd36499dfb0ca24ba01
Signed-off-by: Mainak Sen <msen@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3293524
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
2025-07-24 10:19:14 +00:00
Santosh BS
2e59ef0253
gpu: host1x: move disply related code under CONFIG_DRM_TEGRA_HAVE_DISPLAY
...
As display support is not needed for recent chips,
move the related codes under CONFIG_DRM_TEGRA_HAVE_DISPLAY configs accordingly.
Jira HOSTX-5833
Change-Id: Ie1cfd730a69fcb7d9e26600487a11f720fc509ba
Signed-off-by: Santosh BS <santoshb@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3292240
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-07-24 10:19:14 +00:00
Santosh BS
91751dfb74
drm/tegra: move disply related code under CONFIG_DRM_TEGRA_HAVE_DISPLAY
...
As Tegra DRM driver display support is not needed for recent chips,
move the related codes under CONFIG_DRM_TEGRA_HAVE_DISPLAY and enable
that flag based on legacy chip configs accordingly.
Jira HOSTX-5833
Change-Id: Iddf884f5abdfe2500e7195778bc77f9423acc2d3
Signed-off-by: Santosh BS <santoshb@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3292246
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-07-24 10:19:14 +00:00
Santosh BS
b5acbd1bfc
drm/tegra: syncpoint base support for chips <= t186
...
As syncpoint base feature is not supported from T194 onwards,
moving the related ioctl handling under CONFIG_HOST1X_HAVE_SYNCPT_BASE
accordingly.
Jira HOSTX-5833
Change-Id: Idb5188039ef22e8d27e0a5ddf06a1c447fb323d3
Signed-off-by: Santosh BS <santoshb@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3292251
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-07-24 10:19:14 +00:00
Santosh BS
8bfe83d4ee
gpu: host1x: syncpoint base support for chips <= t186
...
As syncpoint base feature is not supported from T194 onwards,
moving the related driver code under CONFIG_HOST1X_HAVE_SYNCPT_BASE
accordingly.
Jira HOSTX-5833
Change-Id: I388dea16527acd0153331710312efc477aa2bbde
Signed-off-by: Santosh BS <santoshb@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3292180
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-07-24 10:19:14 +00:00
Khushi
69055dd639
vse:copy from/to user buffer only once in drivers
...
Directly copy user buffer to/from IOVA buffer instead
of coping user buffer to kernel buffer in
Cryptodev driver and then copy the kernel
buffer to IOVA buffer in VSE driver
Bug 5058383
JIRA ESSS-1496
Change-Id: I5bc7fc209687052811c330893a272f558e6a122c
Signed-off-by: Khushi <khushi@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3242512
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: Sandeep Trasi <strasi@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Nagaraj P N <nagarajp@nvidia.com >
2025-07-24 10:19:14 +00:00
Manish Bhardwaj
b9ba6056f0
nvidia-oot: remove dependency from I2C config
...
- remove dependency of all gpu driver from I2C config.
- builld host1x driver
- move drm driver dependency on DRM config
bug 5070220
Change-Id: I24322224d0cc705c25b11453534ca556c2e29bbc
Signed-off-by: Manish Bhardwaj <mbhardwaj@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3293057
Reviewed-by: Amlan Kundu <akundu@nvidia.com >
Tested-by: Bharath H S <bhs@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Bharath H S <bhs@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
2025-07-24 10:19:14 +00:00
Khushi
f148b0cc15
Bug Fix: Memory leak for HMAC_SHA_SIGN_VERIFY
...
Free hmac_sha_sv_ctl before releasing the lock
Bug 4881474
Change-Id: I8272ccb841e2cc156650bbfcecbddbdbc54c7f4a
Signed-off-by: Khushi <khushi@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3292556
Reviewed-by: Nagaraj P N <nagarajp@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Sandeep Trasi <strasi@nvidia.com >
2025-07-24 10:19:14 +00:00
Martin Radev
bbf4752022
host1x_emu: fix syncpoint 0 WAR
...
This patch fixes the existing WAR to not allocate
syncpoint id 0. The bug was that indexing starts
from 1, but syncpoint array starts from 0. The fix
is to start syncpoint array iteration from 1 as
well.
Bug 5064819
Change-Id: I4120d83dd33ef134d80417dcf9e1c75b55b99719
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3287523
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Raghavendra Vishnu Kumar <rvk@nvidia.com >
Tested-by: Martin Radev <mradev@nvidia.com >
Reviewed-by: Amitabh Dutta <amitabhd@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2025-07-24 10:19:14 +00:00
Jon Hunter
123c86d0b1
block: vblk: Correct license
...
The license of the Tegra virtual block driver was incorrectly updated.
This is a GPL licensed driver and so correct the SPDX header to that
this is GPL.
Bug 5065840
Change-Id: I8d6ef106a30727b75ed5240d50b57313b73f3061
Signed-off-by: Jon Hunter <jonathanh@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3292278
Reviewed-by: Gokul Vasan L J <gokull@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-07-24 10:19:14 +00:00
amitabhd
d31f4870be
host1x_emu: Fix symbol-emu header.
...
If the flag "CONFIG_TEGRA_HOST1X_EMU_DBG_SYMBL" is
disabled it cause build failure.
Jira HOSTX-5527
Change-Id: I540a1d4e658fac065880d55974d00cd9c3df7b00
Signed-off-by: amitabhd <amitabhd@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3289217
Reviewed-by: Santosh BS <santoshb@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Raghavendra Vishnu Kumar <rvk@nvidia.com >
2025-07-24 10:19:14 +00:00
Shobek Attupurath
2bec5892d2
rtl8852ce: Add Nvidia changes to driver v126
...
- Update paths for sourcetree
- Reduce log level
- Update roam parameters
Bug 5023692
Bug 4957055
Change-Id: I9b6eed09790bc94d6976d4d680a2aa080085130a
Signed-off-by: Shobek Attupurath <sattupurath@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3246722
Reviewed-by: Revanth Kumar Uppala <ruppala@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Ashutosh Jha <ajha@nvidia.com >
2025-07-24 10:19:14 +00:00
Shobek Attupurath
4383fee5c2
rtl8852ce: Update driver to version v1.19.16_nv-126
...
Update driver version to v1.19.16_nv-126-g455ab52c9.20241107_Certified_Module
to enable roaming and fix issues with roaming
Bug 5023692
Bug 4957055
Change-Id: I7d021f599c6483e15828a564a016e4037b238c90
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3246715
Tested-by: Shobek Attupurath <sattupurath@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Ashutosh Jha <ajha@nvidia.com >
Reviewed-by: Shobek Attupurath <sattupurath@nvidia.com >
Reviewed-by: Revanth Kumar Uppala <ruppala@nvidia.com >
2025-07-24 10:19:14 +00:00
Arvind M
29ec18d2bc
nvdla: kmd: fix copyright header license to GPL v2
...
Bug 5065840
Change-Id: I2012645108457974e24d3c8799ee9412393408e1
Signed-off-by: Arvind M <am@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3291589
Reviewed-by: Jon Hunter <jonathanh@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Vishal Thoke <vthoke@nvidia.com >
Reviewed-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com >
Reviewed-by: Ken Adams <kadams@nvidia.com >
2025-07-24 10:19:14 +00:00
Ankur Pawar
4b3dddc90a
camera: vi5: scheduling while atomic bug fix
...
"scheduling while atomic" bug is causing
v4l2-test-app Latency*StreamMmap test to fail.
This is seen because wait_event_interruptible
is called inside spin_lock.
This was introduced in below gerrit.
https://git-master.nvidia.com/r/3262275
Bug 4449673
Jira L4T-6439
Change-Id: I9ffc65c95bbfce0907d1174639d0ec4a6cbd691a
Signed-off-by: Ankur Pawar <ankurp@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3291319
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-07-24 10:19:14 +00:00
mhulagabal
580ec7794c
dce: Update copyright in the errors header file
...
- Added MIT and GPL licensing details
- Bug 5065840
- JIRA TDS-15862
Change-Id: I438ea8c9d52c3cfaae76fe616e09bb18692c3bd4
Signed-off-by: mhulagabal <mhulagabal@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3288450
Reviewed-by: svcacv <svcacv@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Bernd Weber <bweber@nvidia.com >
Reviewed-by: Jon Hunter <jonathanh@nvidia.com >
2025-07-24 10:19:14 +00:00
Sheetal Tigadoli
7aae5929cb
drivers:nvpps:nvpps: support use of higher PPS freq
...
- support use of higher PPS freq in nvpps. The freq value
is read from primary mac interface's "nvidia,pps_op_ctrl"
field and vetted for valid values(0,1,2,4,5 & 8).
- To use higher PPS freq, nvpps needs to update K_INT and
REF_FREQ.INC value and also increase the freq of monitoring
thread.
Bug 5042311
Bug 4899241
Signed-off-by: Sheetal Tigadoli <stigadoli@nvidia.com >
Change-Id: I87e9be5a0ba2156054aea380c730b087d274c223
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3286820
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Vijay Mishra <vijaym@nvidia.com >
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com >
2025-07-24 10:19:14 +00:00
Ankur Pawar
c581e5211d
media: i2c: IMX390: modify mode table
...
-Add gain, exposure and short exposure functions.
-Modify WDR and SDR mode table as per the settings
provided by Sony in their camera SDK.
-Analog gain is fixed in mode table. Driver will only
update digital gain.
Bug 4774547
Change-Id: Ia04f42062d6f1e56f16c7fbcc6e671529cb714b6
Signed-off-by: Ankur Pawar <ankurp@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3189759
(cherry picked from commit 3ff44d5400 )
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3283633
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com >
Reviewed-by: Praveen AC <pac@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
2025-07-24 10:19:14 +00:00
yangxu
ca53993417
kernel: nvidia-oot: Static Analysis MISSING_LOCK
...
Fix Static Analysis MISSING_LOCK for channel.c
Jira CAMERASW-30853
Change-Id: I691b5440d007f3eb68c998bea74c411540d87665
Signed-off-by: yangxu <yangxu@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3285323
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Sudhir Vyas <svyas@nvidia.com >
Reviewed-by: Ankur Pawar <ankurp@nvidia.com >
Reviewed-by: Praveen AC <pac@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Xiaoming Xiang <xxiang@nvidia.com >
2025-07-24 10:19:14 +00:00
yangxu
a972eca4b6
kernel: nvidia-oot: Fix KMD coverity defects
...
Fix coverity defects
ARR38-C
STR07-C
INT30-C
INT08-C
ARR30-C
Jira CAMERASW-30853
Change-Id: I2e98db911238dca46f142f108f6563321e25b588
Signed-off-by: yangxu <yangxu@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3281801
Reviewed-by: Sudhir Vyas <svyas@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Xiaoming Xiang <xxiang@nvidia.com >
Reviewed-by: Ankur Pawar <ankurp@nvidia.com >
Reviewed-by: Praveen AC <pac@nvidia.com >
2025-07-24 10:19:14 +00:00
Illia Ragozin
4f3230c142
v4l2loopback: Update default max buffers
...
CameraHAL, which is the only client to v4l2loopback always requests
four buffers from the driver.
JIRA SHLD2-370
Change-Id: If3e9dbed6d5d901f3d16954c1388d7e0c7432934
Signed-off-by: Illia Ragozin <iragozin@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3281574
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com >
Reviewed-by: Kevin (Wu-Hsiu) Kuo <kevkuo@nvidia.com >
Reviewed-by: Tuomas Kulve <tkulve@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-07-24 10:19:13 +00:00
fraunak
559e45be51
nvidia-oot: hwpm: add VI and ISP support
...
This change does the following:
- adds hwpm register and unregister APIs.
- adds hwpm registration during probe for VI and ISP.
Jira CT26X-1854
Change-Id: Id5d074f26fd69236c249b7baf32a6db4737a9623
Signed-off-by: fraunak <fraunak@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3282218
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Akihiro Mizusawa <amizusawa@nvidia.com >
Reviewed-by: Chinniah Poosapadi <cpoosapadi@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Frank Chen <frankc@nvidia.com >
Reviewed-by: Aki Niemi <aniemi@nvidia.com >
2025-07-24 10:19:13 +00:00
Ketan Patil
cd0e863f07
video: tegra: nvmap: Cleanup NVMAP_IOC_SET_TAG_LABEL ioctl
...
NvRmMemSetAllocationTagLabel is not being used by any of clients. Also,
this API does not have any SHR or JAMA requirement. Hence we are
removing support for this API on linux to have a cleaner and uniform
ICD. Remove the corresponding ioctl code from nvmap.
Bug 4980808
Change-Id: I74676e07b2c617ad6554b4538ce27ab52176e5b9
Signed-off-by: Ketan Patil <ketanp@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3288404
Reviewed-by: N V S Abhishek <nabhishek@nvidia.com >
Reviewed-by: Pritesh Raithatha <praithatha@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-07-24 10:19:13 +00:00
Bob Zhang
3aa403fa33
kernel: nvidia-oot: Fix Linux KMD coverity defects
...
Fix INT30-C and INT08-C coverity defects for
capture-vi.c and tegracam_ctrls.c.
Fix MISSING_LOCK coverity defects for channel.c.
JIRA CAMERASW-30788
Change-Id: I6ad218cb9184f09d04d862a4c8f3f6db35db65cf
Signed-off-by: Bob Zhang <bozhang@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3275901
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Xiaoming Xiang <xxiang@nvidia.com >
Reviewed-by: Anubhav Rai <arai@nvidia.com >
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Ankur Pawar <ankurp@nvidia.com >
2025-07-24 10:19:13 +00:00
Manish Bhardwaj
9f909306a0
kernel-oot: update driver license to GPL
...
Bug 5065840
Change-Id: If5f1783d8168af51c8964ff5605e8a04993973d6
Signed-off-by: Manish Bhardwaj <mbhardwaj@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3289957
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Jon Hunter <jonathanh@nvidia.com >
2025-07-24 10:19:13 +00:00
Ankit patel
65f35b07e0
tty: wch: update copyright headers
...
Update copyright header to GPLv2, removed proprietary copyright headers
Bug 5065840
Change-Id: Ib0b8be01f3c0a4fc963244d7b49489960420dc27
Signed-off-by: Ankit patel <anpatel@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3288499
Tested-by: Bibek Basu <bbasu@nvidia.com >
Reviewed-by: Bibek Basu <bbasu@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-07-24 10:19:13 +00:00
Manish Bhardwaj
b6c2cf9a34
nvidia-oot: check dependency of pci driver on host1x
...
Bug 4936618
Change-Id: I9c8d98b43cffa6cff4ea06d7bb38acf0b42819fb
Signed-off-by: Manish Bhardwaj <mbhardwaj@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3257441
Reviewed-by: Bharath H S <bhs@nvidia.com >
Tested-by: Hyong Bin Kim <hyongbink@nvidia.com >
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com >
Reviewed-by: Hyong Bin Kim <hyongbink@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-07-24 10:19:13 +00:00
Jon Hunter
005cbe4462
virt: hvc_sysfs: Another build fix for Linux v6.13
...
In Linux v6.13, commit 94a20fb9af16 ("sysfs: treewide: constify
attribute callback of bin_attribute::mmap()") changed the type of
the 'struct bin_attribute' argument of the bin_attribute:mmap function
pointer to const.
One instance of this change has already been fixed in the hvc_sysfs
driver but another case was recently introduced breaking the build for
Linux v6.13. Fix this in the same way as the previous instance.
Bug 4985113
Bug 4991705
Change-Id: I7f68138f3b484ebfe7a4ff5032c7b4365865f248
Signed-off-by: Jon Hunter <jonathanh@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3287044
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Manish Bhardwaj <mbhardwaj@nvidia.com >
2025-07-24 10:19:13 +00:00
Shubhi Garg
c3fdf73467
Revert "Revert "rtc: fix year calculation in max77851 pmic rtc""
...
This reverts commit 40b9876e2f277472677c22b947da7260cf39626e.
Reason for revert:
Initial change to fix year calculation is correct.
We do not need to blindly add +100 in year value. RTC_YEAR
register can accomodate values from 0..199. Being year base 1900
and valid rtc time being 1970, valid year values are 1970..2099.
Bug 4911320
Change-Id: Ic4183f4d85e4612b6a5a7ab53baf0483b7b6acad
Signed-off-by: Shubhi Garg <shgarg@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3283957
Reviewed-by: Evan Wei <evwei@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Bibek Basu <bbasu@nvidia.com >
2025-07-24 10:19:13 +00:00
Jon Hunter
ee357025ee
ufs: Fix Tegra UFS for Linux v6.13
...
In Linux v6.13, the quirk definition 'UFSHCD_QUIRK_BROKEN_64BIT_ADDRESS'
was removed and replaced with a function pointer than can be used to set
the DMA mask as needed for a given device. Update the Tegra UFS driver
to fix support for Linux v6.13. Note that prior to Linux v6.13, the flag
'UFSHCD_QUIRK_BROKEN_64BIT_ADDRESS' would set the DMA mask to 32-bits
and so this change is equivalent to the configuration of prior kernels.
Bug 4991705
Change-Id: I859331e9eea918d2438d68b871642fee5e4148e0
Signed-off-by: Jon Hunter <jonathanh@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3283447
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: Thierry Reding <treding@nvidia.com >
2025-07-24 10:19:13 +00:00
Zhiyuan Wang
82af289c71
kernel: nvidia-oot: Fix Linux KMD coverity defect
...
Fix STR31-C ad STR07-C for
- drivers/media/platform/tegra/cdi/cdi_gpio.c
- drivers/media/platform/tegra/cdi/cdi_mgr.c
Jira CAMERASW-30856
Change-Id: I40d2c1b47b83d2dbc6102229dd67225e1a9156ab
Signed-off-by: Zhiyuan Wang <zhiwang@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3281931
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Frank Chen <frankc@nvidia.com >
Reviewed-by: Ajith Kumar <ajithk@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Semi Malinen <smalinen@nvidia.com >
2025-07-24 10:19:13 +00:00
Junsheng Chen
6fb5af66eb
linux: kmd: static analysis S01/08 part 4
...
Under the following path:
- drivers/media/platform/tegra/camera/fusa-capture/capture-isp.c
- drivers/media/platform/tegra/camera/camera_common.c
- drivers/media/platform/tegra/camera/csi/csi.c
Jira CAMERASW-30848
Change-Id: If9d04481371f28d6fe962291f1f950f6b31aa635
Signed-off-by: Junsheng Chen <junshengc@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3281688
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Zhiyuan Wang <zhiwang@nvidia.com >
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com >
Reviewed-by: Frank Chen <frankc@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: Ankur Pawar <ankurp@nvidia.com >
2025-07-24 10:19:13 +00:00
yongtaos
2b06fe0a29
kernel: nvidia-oot: Fix Top-25 coverity defects
...
Fix INT08-C, INT30-C and STR07-C coverity defects for rtcpu-debug.c.
Jira CAMERASW-30854
Change-Id: I0b516587b72bf631974f5f6ee99a55821744bf85
Signed-off-by: yongtaos <yongtaos@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3278378
Reviewed-by: Ankur Pawar <ankurp@nvidia.com >
Reviewed-by: Frank Chen <frankc@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com >
Reviewed-by: Zhiyuan Wang <zhiwang@nvidia.com >
2025-07-24 10:19:13 +00:00
harsukhwinde
1a3fed7006
nvethernet:change osd_usleep_range with osd_usleep
...
osd_usleep function using fsleep internally instead of usleep.
usleep has backward compatibility issue with andriod in gvs
Bug 4921002
Change-Id: Id3a1b5593decf9efbe175ed4490c851072437e71
Signed-off-by: Harsukhwinder Singh <harsukhwinde@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3268621
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Bhadram Varka <vbhadram@nvidia.com >
Reviewed-by: Srinivas Ramachandran <srinivasra@nvidia.com >
2025-07-24 10:19:13 +00:00
Illia Ragozin
54f1c2665d
v4l2loopback: set input name to maxine
...
Set input name to "maxine" so the HAL knows that the particular device
provides a maxine camera.
Change-Id: If3c2b1ee245011df71ad77f65e5d92306a22b501
Signed-off-by: Illia Ragozin <iragozin@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3273094
Reviewed-by: Bogdan Marian Dumitrescu <bdumitrescu@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Tuomas Kulve <tkulve@nvidia.com >
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Ankita Garg <ankitag@nvidia.com >
2025-07-24 10:19:13 +00:00
Illia Ragozin
b67ddab632
v4l2loopback: Set default capabilities
...
Set default capabilities for virtual camera:
Resolution: 1280x720@30
Format BGR32
JIRA SHLD2-370
Change-Id: I42541804847ab6473b5797cca2ad0275436494cb
Signed-off-by: Illia Ragozin <iragozin@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3267280
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Bogdan Marian Dumitrescu <bdumitrescu@nvidia.com >
2025-07-24 10:19:13 +00:00
Illia Ragozin
2e69020353
v4l2loopback: Allow unmapped buffers
...
Allow dequeuing buffers that are not mapped. It is not uncommon
for clients to map the buffer only when they are ready to read it.
JIRA SHLD2-370
Change-Id: I6d815c6bbfd0a640a2e575d6da26d5019dd7f756
Signed-off-by: Illia Ragozin <iragozin@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3267279
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
2025-07-24 10:19:13 +00:00
Yuyuan Chen
ff7cf02ef2
kernel: nvidia-oot: Fix Static issues S12/11
...
Jira CAMERASW-30258
Change-Id: I5fd26611f6bac71ec186458a583622b55ba8735e
Signed-off-by: Yuyuan Chen <yuyuanc@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3262275
Reviewed-by: Ankur Pawar <ankurp@nvidia.com >
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com >
Reviewed-by: Frank Chen <frankc@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Ryan Li <ryanli@nvidia.com >
2025-07-24 10:19:13 +00:00
Rakesh Goyal
84e2727119
nvethernet: support high pps
...
Issue: Ask for support PPS cmd feature for fast TSC-PTP lock
Fix: Extended the possible values for more pulse per sec
Bug 4585654
Bug 5042311
Change-Id: I8a2066cd39fdbacee3e8543712b449694aad9f6b
Signed-off-by: Rakesh Goyal <rgoyal@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3215592
Tested-by: Sheetal Tigadoli <stigadoli@nvidia.com >
Reviewed-by: Sheetal Tigadoli <stigadoli@nvidia.com >
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-07-24 10:19:13 +00:00