Sanjith T D
a86effcc71
vblk: Fix mapping of SECURE_ERASE to ERASE
...
In 6.1+ kernel, blk_queue_max_secure_erase_sectors()
has to be used to tell block layer that vblk supports
SECURE_ERASE operation.
Bug 5011844
Bug 4311184
Change-Id: Id61edee27f4ae0db9a92a4e2d331bb3f209fdd85
Signed-off-by: Sanjith T D <std@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3300237
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Sreenivas Velpula <svelpula@nvidia.com >
Reviewed-by: Vipin Kumar <vipink@nvidia.com >
2025-07-24 10:19:15 +00:00
Hongming Dong
ede67c712a
kernel: nvidia-oot: Fix Linux KMD coverity defects
...
Fix INT30-C, INT08-C, and EXP34-C coverity defects for
cam_fsync.c and cam_cdi_tsc.c.
Jira CAMERASW-30847
Change-Id: I525ed2e0986c3987d062a9baeaefad048715c6c1
Signed-off-by: Hongming Dong <hongmingd@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3280943
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Ankur Pawar <ankurp@nvidia.com >
Reviewed-by: Semi Malinen <smalinen@nvidia.com >
2025-07-24 10:19:15 +00:00
Vishal Thoke
c5fe909fd6
nvdla: kmd: add stub debugfs nodes for DVFS/LPWR
...
[1] add debugfs nodes for ctrl (clk, power, rail).
and for dvfs as well.
[2] these nodes are stubbed and will be implemented
along with features.
Jira DLA-7681
Jira DLA-7797
Signed-off-by: Vishal Thoke <vthoke@nvidia.com >
Change-Id: I534382e78548cde838a28b2a888a8231b5b16ff1
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3296913
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com >
Reviewed-by: Arvind M <am@nvidia.com >
2025-07-24 10:19:15 +00:00
Ketan Patil
afd5300c2b
video: tegra: nvmap: Don't allow executable mapping
...
Don't allow executable mapping during mmap on the fd corresponding to
memory buffer to prevent security risks of code injection and execution
in kernel space.
JIRA TMM-5962
Change-Id: I3d756afdd1b51c8d651230f1a634ef0909d17cc7
Signed-off-by: Ketan Patil <ketanp@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3298639
Reviewed-by: Ajay Nandakumar Mannargudi <anandakumarm@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Pritesh Raithatha <praithatha@nvidia.com >
Reviewed-by: Sachin Nikam <snikam@nvidia.com >
2025-07-24 10:19:15 +00:00
Suneel Kumar Pemmineti
63a1d3e6e0
nvsciipc: Add nvsciipc_ioctl_get_db_by_idx
...
- Added nvsciipc_ioctl_get_db_by_idx to retrieve
the endpoint DB entry using index
JIRA: NVIPC-2818
Change-Id: I5651cf29b11dad0ff505f5f497a896572b893e94
Signed-off-by: Suneel Kumar Pemmineti <spemmineti@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3297838
Reviewed-by: Simon Je <sje@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-07-24 10:19:15 +00:00
Nagarjuna Kristam
789e70d35e
pci: tegra264: Add EP driver ICD documentation
...
JIRA NET-2663
Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com >
Change-Id: I5855c28c7834fe6ca8f0571321b04a4997dc6185
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3293557
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com >
2025-07-24 10:19:15 +00:00
Bob Zhang
9297cd7cfd
kernel: nvidia-oot: Fix Linux KMD coverity defects
...
Fix INT32-C and INT08-C coverity defects for tegra-rtcpu-trace.c.
JIRA CAMERASW-31291
Change-Id: I2b80963663df440a38e39bdc3b15d240270f99a5
Signed-off-by: Bob Zhang <bozhang@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3297723
Reviewed-by: Xiaoming Xiang <xxiang@nvidia.com >
Reviewed-by: Sudhir Vyas <svyas@nvidia.com >
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com >
Reviewed-by: Anubhav Rai <arai@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-07-24 10:19:15 +00:00
Santosh BS
71c53e0ff0
drm/tegra: set CONFIG_TEGRA_DRM_NATIVE_DIS for emb-linux
...
Set export variable and build config flag, CONFIG_TEGRA_DRM_NATIVE_DIS,
based on emb-linux platform identifier flag NV_OOT_NVHOST_NATIVE_DIS.
Jira HOSTX-5885
Change-Id: I43d3c08a8494fb25524e4b4a91eb2eb68b3526f2
Signed-off-by: Santosh BS <santoshb@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3297034
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com >
2025-07-24 10:19:15 +00:00
Santosh BS
00a807416b
nvidia-oot: enable NV_OOT_NVHOST_NATIVE_DIS for emb-linux
...
Export NV_OOT_NVHOST_NATIVE_DIS variable for emb-linux
configuration.
Jira HOSTX-5885
Change-Id: I1d40274faac1c45f93014fe180366de91a899625
Signed-off-by: Santosh BS <santoshb@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3297021
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-07-24 10:19:15 +00:00
ryanli
7c4412a765
kernel: nvidia-oot: Static Analysis for S01/08 P11
...
Fix CERT STR07-C coverity defects for cdi_mgr.c tegra_rtcpu.h
Jira CAMERASW-30850
Change-Id: I86c4cec8cdda2a1f16d5ca7ea7fbeed3a0318ad1
Signed-off-by: ryanli <ryanli@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3282774
Reviewed-by: Semi Malinen <smalinen@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Ankur Pawar <ankurp@nvidia.com >
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com >
2025-07-24 10:19:15 +00:00
Santosh BS
b577e6d0e9
gpu: host1x: form u64 address for shim address
...
Store u64 shim address from u32 array fetched from DT.
Jira HOSTX-5885
Change-Id: Icf332585c095f81fadfc05b35cc77b16e6ab3a88
Signed-off-by: Santosh BS <santoshb@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3298399
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
Tested-by: Akihiro Mizusawa <amizusawa@nvidia.com >
2025-07-24 10:19:15 +00:00
omar
8c01fe4f87
drivers: pva: fix recovery
...
When pva recovery is initiated due to command or
task submit timeout or initiated by pva-fw, queues
are cleared and tasks returned with error among other
cleanup activities and pva reset and fw reboot.
There could be multiple concurrent attempts to recover
the PVA engine. Additionally, task and command submit
may be at varying stages of execution.
- Skip recovery requests while recovery work is pending.
- Skip task removal in case of timeout or invalidated task
during task submit.
- Skip task submit to CCQ if task was removed during abort.
- Guard against concurrency during recovery
- Re-attempt pva reboot on fail during boot except in recovery.
- Reset driver PM state if module busy fails and PM error is set.
- Set default FW trace mask to WARN+ERROR+BOOT
- Set default driver log mask to FW TRACING
- ccq polling routine exits with timeout if abort is active
Bug 4944591
Change-Id: Id3a7388700ccada135b568c978176bb9f2c5f8a0
Signed-off-by: omar <onemri@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3284303
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Amruta Sai Anusha Bhamidipati <abhamidipati@nvidia.com >
2025-07-24 10:19:15 +00:00
omar
4cf0090819
drivers: pva: robustness under severe system load
...
In order to test hypothesis that severe system loads are causing
erroneous timeouts on command submit and task submit, polling
loop and event wait functions are changed to check for true timeout.
-- dump out FW traces on abort outside ISR.
-- add debug fs node to override driver timeout in mailbox wait event
and ccq wait event.
-- add device info dump on abort.
-- dump queues
Bug 4944591
Change-Id: Iea78131016e0913d909f504272a6370bb37c35db
Signed-off-by: omar <onemri@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3259651
Reviewed-by: Amruta Sai Anusha Bhamidipati <abhamidipati@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-07-24 10:19:15 +00:00
Vishnu Mandalapu
09bf300e40
drivers: tegra: virt: runtime frequency
...
- Add support to change VM profiler frequency in rumtime.
Jira HYP-19279
Signed-off-by: Vishnu Reddy Mandalapu <vmandalapu@nvidia.com >
Change-Id: I2b260fff61addbd5e2bd53d9b16e441506bdf2d6
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3222316
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3252176
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Daniel Kudrow <dkudrow@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Alexey Lugovskoy <alugovskoy@nvidia.com >
2025-07-24 10:19:15 +00:00
Nagarjuna Kristam
8237e3463b
pci: private-soc: dma: Update ICD documentation
...
- Add Direction and Usage info.
- Add links for API's and data fields.
- Correct info for API's and data structure comments.
JIRA NET-2663
Change-Id: I541157713070372a0487ae7879a165436be4fe26
Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3292839
Reviewed-by: Manikanta Maddireddy <mmaddireddy@nvidia.com >
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-07-24 10:19:15 +00:00
Santosh BS
aa7bcad3cf
gpu: host1x: move actmon specific code under CONFIG_PM_DEVFREQ
...
Move actmon.c file under CONFIG_PM_DEVFREQ and
stub the functions when it is not enabled.
Jira HOSTX-5885
Change-Id: I8e6f86c617061587e4034a184f9a7d82a41a4a03
Signed-off-by: Santosh BS <santoshb@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3297630
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-07-24 10:19:15 +00:00
Jon Hunter
2a4ac9e68f
drm/tegra: Fix build for Linux v6.14
...
In Linux v6.14, the 'date' field was removed from the 'drm_driver'
structure. Add a test to conftest to detect this and update the Tegra
DRM driver accordingly.
Jira LINQPJ14-6
Change-Id: Ia3024321f12f8448d382deba996407f9d3232567
Signed-off-by: Jon Hunter <jonathanh@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3297069
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-07-24 10:19:15 +00:00
Jon Hunter
cc09c0267d
nvmap: Fix build for Linux v6.14
...
In Linux v6.14, the 'page_list' argument was dropped from the
__alloc_pages_bulk() function. Add a test to conftest to check for this
and update the NVMAP driver accordlingly to fix the build.
Jira LINQPJ14-6
Change-Id: Id3513890a9d948cb42abf7449d9fb3aa95edcf96
Signed-off-by: Jon Hunter <jonathanh@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3297065
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: Ketan Patil <ketanp@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-07-24 10:19:15 +00:00
Surbhi Singh
ab4ebfc4f7
video: tegra: nvmap: Make function static.
...
Fix for: Sparse defects
Sparse stated that:
-symbol 'nvmap_of_ids' was not declared. Should it be static?
Making nvmap_of_ids static as it is only used in nvmap_init.c
Bug 4513982
Change-Id: Id767ef7796e978c0cc4fee83068b795aeb85d753
Signed-off-by: Surbhi Singh <surbhis@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3296795
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Pritesh Raithatha <praithatha@nvidia.com >
Reviewed-by: N V S Abhishek <nabhishek@nvidia.com >
2025-07-24 10:19:15 +00:00
Surbhi Singh
4ea9ca5d30
video: tegra: nvmap: Make function static.
...
Fix for: Sparse defects
Sparse stated that:
-symbol 'tegra_vpr1_dev' was not declared. Should it be static?
-symbol 'tegra_vpr_cma_dev' was not declared. Should it be static?
-symbol 'tegra_generic_cma_dev' was not declared. Should it be static?
-symbol 'tegra_vpr_dev' was not declared. Should it be static?
-symbol 'tegra_generic_dev' was not declared. Should it be static?
Making all the above functions static since it is being used in nvmap_init.c only.
Bug 4513982
Change-Id: I4887d994d9ae852a4faa7da735c18d25b393187a
Signed-off-by: Surbhi Singh <surbhis@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3295831
Reviewed-by: Pritesh Raithatha <praithatha@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-07-24 10:19:15 +00:00
Santosh BS
df285efd88
drm/tegra: move debug support under CONFIG_DEBUG_FS
...
Move debug specific code portions in virt.c under CONFIG_DEBUG_FS
config.
Jira HOSTX-5885
Change-Id: Icd90deb7c556ce100c0ee61d69719bde902514d5
Signed-off-by: Santosh BS <santoshb@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3295412
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-07-24 10:19:15 +00:00
N V S Abhishek
a3e0e896a0
tegra: nvmap: Fix nvmap_query_heap for multi numa node platform
...
In current implementation, when NvRmMemQueryHeapParams is
called and multiple numa nodes are online:
1. For iovmm carveout, numa_id is set to garbage value,
and we are calling compute_memory_stat with it.
2. For gpu carveout, we are returning values for
numa_id 0.
3. For other carveouts, we are returning params for the
first matching entry in nvmap_dev->heaps[i].
Correct this behavior as follows:
Regardless of carveout type, return params for numa_id 0
when NvRmMemQueryHeapParams is called and multiple numa
nodes are online.
In long-term, we need to disable NvRmMemQueryHeapParams
when multiple numa nodes are online. Clients should use
NvRmMemQueryHeapParamsNuma instead.
Jira TMM-5970
Change-Id: Id49289e51eda187b1d676e5192583f320835c2f4
Signed-off-by: N V S Abhishek <nabhishek@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3290730
Reviewed-by: Ketan Patil <ketanp@nvidia.com >
Reviewed-by: Pritesh Raithatha <praithatha@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-07-24 10:19:14 +00:00
Ketan Patil
73f74915ee
video: tegra: nvmap: Add checks for input flags
...
In order to serve MEMSERV70-REQ-670 requirement, which makes validation
checks mandatory for input flowing across execution boundary. Hence add
checks for input flags in nvmap and make sure the execution does not
proceed if flag other than read or write is provided in handle
duplication, creating sciipc id or during handle creation from sciipc id
even though the checks are present at libnvrm_mem layer.
JIRA TMM-5962
Change-Id: I1fc6ce6ec4435c50220d4e49a08de50320a8f574
Signed-off-by: Ketan Patil <ketanp@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3295201
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Pritesh Raithatha <praithatha@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
2025-07-24 10:19:14 +00:00
Santosh BS
ebe01a47a3
drm/tegra: move tegra iommu domain support under CONFIG_TEGRA_IOMMU_SMMU
...
Tegra iommu domain is used in legacy chips (<= T210).
Move the related codes under CONFIG_TEGRA_IOMMU_SMMU accordingly.
Jira HOSTX-5833
Change-Id: I1e1e1dab33935b8881b905574ee006bbe8fc61d9
Signed-off-by: Santosh BS <santoshb@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3293445
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2025-07-24 10:19:14 +00:00
Sheetal Tigadoli
2318f8689a
devicetree:bindings:nvpps: Add ptp_tsc_sync_trig_interval param to doc.
...
Add ptp_tsc_sync_trig_interval param to nvpps doc.
This is used to define the sync trigger interval
Bug 5042311
Bug 4899241
Signed-off-by: Sheetal Tigadoli <stigadoli@nvidia.com >
Change-Id: I881d4a57af857345adfc3e854ea06bb00e3d3a6f
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3294330
(cherry picked from commit 9c14041a4f394a203f0b8f4a8afdf9053011c14a)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3293843
Reviewed-by: Amlan Kundu <akundu@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-07-24 10:19:14 +00:00
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
Sheetal Tigadoli
7172871ef3
devicetree:bindings:nvpps: update doc to include Thor
...
update nvpps documentation to include Thor based platforms
Bug 5082436
Signed-off-by: Sheetal Tigadoli <stigadoli@nvidia.com >
Change-Id: I4d26dab5d5eb40df449c819912a3143360a97f51
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3293986
(cherry picked from commit 8dd44d031ce394923f4e02a07befcb162eedd714)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3293842
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
Frankie Chang
fdd6ff24e3
Kleaf: Update kernel modules in nvidia-oot
...
Add the recently added kernel modules to the outs list.
- drivers/bluetooth/realtek/rtk_btusb.ko
Remove kernel modules from the outs list.
- drivers/misc/tegra-pcie-dma-sanity-test.ko
- drivers/pci/endpoint/functions/pci-epf-tegra-dma-sanity.ko
Bug 4344670
Change-Id: I6d42b29700341021e667c69f0c5c86c142007ce5
Signed-off-by: Frankie Chang <frankiec@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3256554
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@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