Petri Niemela
58478b0ab6
rtcpu: Halt RTCPU using HSP_BYE before reset
...
Calling tegra_camrtc_reboot() can cause a memory fabric timeout error by
asserting reset when the RTCPU is in the middle of a memory transaction.
As a solution (similar to tegra_camrtc_halt), before asserting the
hardware reset, signaling the RTCPU to suspend its operations using
CAMRTC_HSP_BYE and waiting for RTCPU to enter WFI.
Bug 5051748
Change-Id: Iba8e4e837ee0983ffe9629e7627e0056ce1c2341
Signed-off-by: Petri Niemela <pniemela@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3317142
Reviewed-by: Semi Malinen <smalinen@nvidia.com >
Tested-by: Semi Malinen <smalinen@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Sudhir Vyas <svyas@nvidia.com >
2025-07-24 10:19:16 +00:00
Johnny Liu
601567ef37
devfreq: nvhost_podgov: implementation cleanup
...
Previous implementation lacks of documentation and it's hard to
understand the effect of changing specific tunable parameter.
Revise the implementation so that the scaling behavior is somehow
aligned with the tegra_wmark governor supported by the actmon. The
only different is that nvhost_podgov governor is polling-based DFS
algorithm and it maintaines the moving average load in the governor
instead of hardware itself.
Bug 4892068
Change-Id: I033cb1359a484d4c9433fa4f2e7a99c42cb636b3
Signed-off-by: Johnny Liu <johnliu@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3315446
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Rajesh Devaraj <rdevaraj@nvidia.com >
2025-07-24 10:19:16 +00:00
Nagarjuna Kristam
c451280883
PCI: tegra264: dma: Fix mis-matches with ICD
...
Fix tegra_pcie_dma_stop() return type to bool instead of tegra_pcie_dma_status_t.
Add NULL checks and atleast one DMA channel enable status in
tegra_pcie_dma_initialize().
Bug 5132823
Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com >
Change-Id: Ie4363a9a63942256f136d018d17af488948e37a1
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3314130
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
2025-07-24 10:19:16 +00:00
Blake McHale
1a1812b7e7
bmi088: add support for Linux v6.3+
...
Fixes two issues when using bmi088 driver on Linux v6.3+:
- support i2c_device_id on kernel >6.3
- use dev_to_iio_dev instead of dev_get_drvdata to access iio information
Change-Id: I70ad8b5d97d7b9a349f5387dbea60baf51cbbdb9
Signed-off-by: Blake McHale <bmchale@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3310726
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Jon Hunter <jonathanh@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-07-24 10:19:16 +00:00
Zhiyuan Wang
578e8f6700
linux: kmd: static analysis TOP25 03/05 Part 9
...
Under the following path:
- drivers/platform/tegra/rtcpu/ivc-bus.c
Jira CAMERASW-32533
Change-Id: Iba0a529218a9aaf82f70bc4ff05b4658bbfe6fc3
Signed-off-by: Zhiyuan Wang <zhiwang@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3318779
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Semi Malinen <smalinen@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Frank Chen <frankc@nvidia.com >
Reviewed-by: Ajith Kumar <ajithk@nvidia.com >
2025-07-24 10:19:16 +00:00
Manish Bhardwaj
ecfef7f862
nvidia-oot: cert & misra fixes in tegra_hv_pm_ctl.c drv
...
using this patch fixing below cert & misra errors:-
- cert_exp39_c_violation: Accessing an object through a pointer "nlh"
whose type "struct nlmsghdr *" is incompatible with the type of the object.
- cert_int08_c_violation: Signed integer operation "count += snprintf(buf + count, 4096UL - count, "%u ",
data->wait_for_guests[i])" may overflow.
- cert_int08_c_violation: Unsigned integer operation "4096UL - count" may wrap.
- cert_int08_c_violation: Signed integer operation "count += snprintf(buf + count, 4096UL - count, "\n")"
may overflow.
- cert_int32_c_violation: Signed integer operation "count += snprintf(buf + count, 4096UL - count, "%u ", data->wait_for_guests[i])"
may overflow.
- cert_int32_c_violation: Signed integer operation "count += snprintf(buf + count, 4096UL - count, "\n")"
may overflow.
- cert_str07_c_violation: Using unsafe interface "strncpy" instead of "strncpy_s"
for string manipulation.
- missing_lock: Accessing "user_client_count" without holding lock "netlink_lock".
Elsewhere, "user_client_count" is written to with "netlink_lock" held 1 out of 1 times.
JIRA ESLC-8381
Change-Id: I2f84aa09b3a940cabda62a2391e782108755c80b
Signed-off-by: Manish Bhardwaj <mbhardwaj@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3304762
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com >
Reviewed-by: Suresh Venkatachalam <skathirampat@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-07-24 10:19:16 +00:00
Manish Bhardwaj
57a65081dd
nvidia-oot: cert & misra fixes in cpuidle-tegra-auto.c drv
...
using this patch fixing below cert & misra errors:-
- cert_arr30_c_violation: "__per_cpu_offset[cpu]" evaluates
to an address that could be at negative offset of an array.
JIRA ESLC-8401
Change-Id: I99670f9823cda5abaa41368b80821a5727414017
Signed-off-by: Manish Bhardwaj <mbhardwaj@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3304761
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com >
Reviewed-by: Suresh Venkatachalam <skathirampat@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-07-24 10:19:16 +00:00
Manish Bhardwaj
dd30ab0bfd
nvidia-oot: cert & misra fixes in hvc_sysfs.c drv
...
using this patch fixing below cert & misra errors:-
- cert_int08_c_violation: Unsigned integer operation
"vma->vm_end - vma->vm_start" may wrap.
- cert_int08_c_violation: Unsigned integer operation
"vma->vm_end - vma->vm_start" may wrap.
- cert_str07_c_violation: Using unsafe interface
"strncpy" instead of "strncpy_s" for string manipulation.
- cert_str07_c_violation: Using unsafe interface "strncat"
instead of "strncat_s" for string manipulation.
- cert_exp39_c_violation: Accessing an object through a
pointer "(uint64_t *)buf" whose type "uint64_t *" is
incompatible with the type of the object
- cert_exp39_c_violation: Calling function
"hyp_trace_get_mask(uint64_t *)" which accesses an object
through a pointer "(uint64_t *)buf" whose type "uint64_t *"
is incompatible with the type of the object. [details]
- cert_exp39_c_violation: Accessing an object through a
pointer "(uint64_t *)buf" whose type "uint64_t *" is
incompatible with the type of the object.
JIRA ESLC-8400
Change-Id: Ia8e03dac4e939078719543d8e6d3bbc464301b16
Signed-off-by: Manish Bhardwaj <mbhardwaj@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3304759
Reviewed-by: svcacv <svcacv@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com >
Reviewed-by: Suresh Venkatachalam <skathirampat@nvidia.com >
2025-07-24 10:19:16 +00:00
Nan Wang
ad2fd77097
pva: mirror from gitlab cv/pva-sys-sw
...
This commit has below list of fixes:
- kmd: Remove unnecessary checks
- kmd: Fix DMA validation bug
- Add macros for verbosity controlled logging apis
- Add back pva_dbg_printf
- update copyrights for the modified files
- cleanup and fixes in nvlog support
- Implement debugfs node for setting fw debug log level
- Implement set debug log level cmd
- Add debug log verbosity level control support
- Implement circular buffer for debug logs
- kmd: fix error handling while creating context
Gitlab commit: a6acc89929f69d3aedff442068ee8e5725f03d5d
Change-Id: Ib0fc058324f19c076c3de7990b41c7415707ff28
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3318294
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Tested-by: Nan Wang <nanwa@nvidia.com >
Reviewed-by: Nan Wang <nanwa@nvidia.com >
Reviewed-by: Mohnish Jain <mohnishj@nvidia.com >
2025-07-24 10:19:16 +00:00
gkrishnakuma
70313ee7da
Shield2: HDMI-IN: Make HDMI-IN driver
...
Build HDMI-IN kernel driver for Android builds.
Jira SHLD2-543
Change-Id: I0ff84d4ce3467c0825e379c93142307508750dc1
Signed-off-by: Guruprashanth Krishnakumar <gkrishnakuma@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3272404
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Ankita Garg <ankitag@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
2025-07-24 10:19:16 +00:00
Jon Hunter
eea9f99397
drivers: Remove CONFIG_TEGRA_VIRTUALIZATION
...
Remove CONFIG_TEGRA_VIRTUALIZATION so that virtualization is always
enabled for drivers. This permits the same drivers to work on bare-metal
Linux machines as well as virtual Linux machines.
Bug 5157858
Change-Id: I29d13dae957ed2273b65f95fff0bee1e06f45a27
Signed-off-by: Jon Hunter <jonathanh@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3314409
Reviewed-by: Sumit Gupta <sumitg@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Ketan Patil <ketanp@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
2025-07-24 10:19:16 +00:00
Jon Hunter
23e3912ef7
PCI: tegra264: Fix build issues using conftest
...
The Tegra264 PCIe drivers don't build for kernels that don't have:
1. The structure mrq_pcie_request_req defined
2. The function pci_epc_deinit_notify() present
This is currently being handling by building a dummy driver for kernels
that don't have these. To simplify this, use conftest to detect if the
above are present and modify the Tegra264 PCIe driver accordingly if
they are not present. By using conftest we can remove the Makefile
variable 'NV_OOT_PCIE_T264_SOC_SKIP_BUILD' and ccflag
'DNV_CONFIG_PCIE_TEGRA_DMA_DISABLE'.
Finally, the PCIe drivers are always built as modules so simplify the
Makefile and remove the usage of 'CONFIG_TEGRA_OOT_MODULE'.
Bug 4911768
Change-Id: Id282497b8607a732b5e6c90e1e7c1436589a0b5f
Signed-off-by: Jon Hunter <jonathanh@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3245592
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
2025-07-24 10:19:16 +00:00
Surbhi Singh
cb233ff6f5
video: tegra: nvmap: Add checks for addition overflow
...
Add check for overflow when two unsigned integers are added or
multiplied and return error in case of overflow condition.
JIRA TMM-5993
Bug 4479044
Change-Id: I8c9f6c55d413a2f95e445e09209d392a4c90b1e0
Signed-off-by: Surbhi Singh <surbhis@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3312702
Reviewed-by: Sachin Nikam <snikam@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Ketan Patil <ketanp@nvidia.com >
2025-07-24 10:19:16 +00:00
Aki Niemi
83df8b7e03
camera/rtcpu: Fix concurrency on reboot
...
Make sure that if a reboot is in progress, we don't attempt
to reboot the RTCPU again.
Bug 4623451
Change-Id: I8d153edb7ded48100f772e2fdd8afc7621b346bf
Signed-off-by: Aki Niemi <aniemi@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3205581
(cherry picked from commit 4ac65dc2c205c840b3e70e067831de57d43952e3)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3281752
Reviewed-by: Semi Malinen <smalinen@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Frank Chen <frankc@nvidia.com >
2025-07-24 10:19:16 +00:00
Mohan Thadikamalla
a40f3c81dc
nvethernet: icd: Add MACsec netlink events
...
- Added support for MACsec Netlink
message commands.
- Integrated Doxygen comments for
NvEthernetLinux documentation.
Jira NET-2816
Change-Id: I340be3451a92d8ae4e0164a2caf61da1650a2939
Signed-off-by: Mohan Thadikamalla <mohant@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3312567
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Bhadram Varka <vbhadram@nvidia.com >
2025-07-24 10:19:16 +00:00
spatki
70570ef224
tsec: add firmware desc path as module fw
...
During SC7 tsec driver is unable to find the desc file for the
tsec fw and thus tsec boot fails. This might result into system
hang. Hence this change adds the tsec fw desc file path as the
module firmware so that the firmware is available to it during
SC7.
Bug 5053273
Change-Id: I4f2c9bb5288dac6973f574159fdebc48009edf2a
Signed-off-by: spatki <spatki@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3308515
(cherry picked from commit 598f951b93 )
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3308481
Reviewed-by: Brad Griffis <bgriffis@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-07-24 10:19:16 +00:00
Srishti Goel
529f22ea6a
PCI: tegra264: Remove XAL mem registers programming
...
Remove the XAL memory register programming from the Linux driver, since
this is done by the BPMP-FW for all controllers.
Bug 5033472
Change-Id: I64ec6347d59d77125c34ae52ac3b24413e1f5479
Signed-off-by: Srishti Goel <srgoel@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3304008
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Manikanta Maddireddy <mmaddireddy@nvidia.com >
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com >
2025-07-24 10:19:16 +00:00
Khushi
62431fc5f3
VSE/Cryptodev: prefix driver name for driver print
...
ESSS-1756
Signed-off-by: Khushi <khushi@nvidia.com >
Change-Id: I5f65e77cda381189f59cabad04d340e795f01021
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3315502
Reviewed-by: Nagaraj P N <nagarajp@nvidia.com >
Reviewed-by: Sandeep Trasi <strasi@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-07-24 10:19:16 +00:00
Sheetal Tigadoli
e5ef698f2f
drivers:nvpps:add higher PPS freq support in t23x
...
add higher PPS freq support in t23x
Bug 4899241
Signed-off-by: Sheetal Tigadoli <stigadoli@nvidia.com >
Change-Id: I2fbbd0b5dbdd326d47181d03aa334c31b7b4d35c
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3300418
Reviewed-by: Kiran Kumar Bobbu <kbobbu@nvidia.com >
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Vijay Mishra <vijaym@nvidia.com >
2025-07-24 10:19:16 +00:00
Jon Hunter
2ff6b64efd
media: camera: Fix declaration-after-statement
...
The camera driver fails to build if the compiler option
-Werror=declaration-after-statement is enabled and the following error
is seen ...
drivers/media/platform/tegra/camera/tegracam_ctrls.c:1120:17: error:
ISO C90 forbids mixed declarations and code
[-Werror=declaration-after-statement]
1120 | int index = tegracam_get_ctrl_index(cid);
| ^~~
JIRA CAMERASW-32529
Fix this by moving the declaration of the 'index' and 'size' variables
to the start of the for-loop code block.
Change-Id: I69590c147e8effd031b962606a077856ad4f8d07
Signed-off-by: Jon Hunter <jonathanh@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3316537
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Frank Chen <frankc@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Mike Jia <mijia@nvidia.com >
2025-07-24 10:19:16 +00:00
Zhiyuan Wang
8895bf14e8
linux: kmd: fix the bug TOP25 03/05 Part 9
...
Add dev-err when failure:
- drivers/media/platform/tegra/camera/vi/mc_common.c
Jira CAMERASW-32689
Change-Id: I87dc4593fe91889406a8d61843d260e953a2a1c2
Signed-off-by: Zhiyuan Wang <zhiwang@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3316291
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Semi Malinen <smalinen@nvidia.com >
Reviewed-by: Ajith Kumar <ajithk@nvidia.com >
Reviewed-by: Frank Chen <frankc@nvidia.com >
2025-07-24 10:19:16 +00:00
yongtaos
34a6c5ad76
kernel: nvidia-oot: Fix Linux KMD coverity defect
...
Fix NULL_RETURNS and EXP34-C coverity defects for cam_fsync.c.
Jira CAMERASW-32531
Change-Id: Id2503145229ff71802c41737722f6ad955ca3519
Signed-off-by: yongtaos <yongtaos@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3316287
Reviewed-by: Semi Malinen <smalinen@nvidia.com >
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Zhiyuan Wang <zhiwang@nvidia.com >
2025-07-24 10:19:16 +00:00
Ketan Patil
a477caa895
video: tegra: nvmap: Disable read/write APIs for prod_nsr
...
NvRmMemRead/NvRmMemWrite APIs don't have corresponding requirements in
DriveOS 7.0 Linux NSR. We have taken sign-off from the stakeholders to
confirm that they are not using these APIs in T264 Linux Prod NSR
variant. But some of them are using these APIs in dev_nsr and did not
agree to remove it from dev-nsr, L4T, HOS etc. Hence we need to
make sure that they do not accidentally start using these APIs. Add
bug_on when the corresponding ioctl is called in prod_nsr.
Bug 4980658
Change-Id: Ie9aaa9cc52fc1971b82243bb652d0ee9ce1017ca
Signed-off-by: Ketan Patil <ketanp@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3315736
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Pritesh Raithatha <praithatha@nvidia.com >
2025-07-24 10:19:16 +00:00
Mainak Sen
bfe763841a
gpu: host1x: Deprecate falcon implementation from host1x driver
...
This commit deprecates the falcon hardware interface implementation from the host1x-nvhost driver.
falcon_exit() function will be deprecated once usage of
nvhost_module_deinit API is removed from PVA/DLA/Camera elements.
Jira HOSTX-5933
Bug 4918838
Change-Id: I268836c8c8fc2f1ab060412bb4446c7080f846c4
Signed-off-by: Mainak Sen <msen@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3311319
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com >
Reviewed-by: Sanif Veeras <sveeras@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-07-24 10:19:16 +00:00
Akihiro Mizusawa
1fac2c49e1
host: capture-support: Deprecate nvhost APIs
...
Deprecate the use of nvhost API calls.
Implement equivalent functionality for host1x_<readl, writel> by
copying parts of nvhost_client_device_get_resources to the driver.
Bug 4922171
Change-Id: I2b0a40303767a6630b6212063d66954ed4c16466
Signed-off-by: Akihiro Mizusawa <amizusawa@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3301460
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Chinniah Poosapadi <cpoosapadi@nvidia.com >
Reviewed-by: Frank Chen <frankc@nvidia.com >
2025-07-24 10:19:16 +00:00
Sanath Kumar Gampa
5193e86207
kernel-nvidia-oot: Restrict enabling MACSec in PHY
...
Restrict enabling MACSec support in below PHYs via MDIO
- MV-Q3244
- 88Q2221M
Jira NET-2795
Change-Id: I2cf767ad89762a5daa8ac29e753365af2e5d24fb
Signed-off-by: Sanath Kumar Gampa <sgampa@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3308513
Reviewed-by: Ashutosh Jha <ajha@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Rakesh Goyal <rgoyal@nvidia.com >
Reviewed-by: Narayana Reddy P <narayanr@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2025-07-24 10:19:16 +00:00
Sanath Kumar Gampa
247613d6ce
nvethernet: fix top-25 issues
...
Fixed below issues
-FORWARD_NULL
-CERT STR07-C
-CERT INT32-C
-CERT INT30-C
-CERT INT08-C
-CERT EXP39-C
-CERT EXP34-C
JIRA NET-2044
Change-Id: I839bd5aedff30c7e9679f513a2cf7a1fbe3b2b8a
Signed-off-by: Sanath Kumar Gampa <sgampa@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3258684
Reviewed-by: Ashutosh Jha <ajha@nvidia.com >
Reviewed-by: Mohan Thadikamalla <mohant@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-07-24 10:19:16 +00:00
jaiyasha
b2a59883b3
DCE-KMD: Add logging structs in shared header
...
This change adds set and get log structs in shared admin cmd header file
Logging design document:
https://confluence.nvidia.com/display/TCS/DCE+Logging+support+design
JIRA TDS-15963
Change-Id: I8d6f1830a7bf7ebde1562cd31601b2ee4eadce0c
Signed-off-by: jaiyasha <jaiyasha@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3305936
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Mahesh Kumar <mahkumar@nvidia.com >
Reviewed-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
2025-07-24 10:19:16 +00:00
Ketan Patil
f44682d9fc
video: tegra: nvmap: Cleanup the compatible string
...
Remove nvidia,carveouts-t18x and nvidia,carveouts-t19x as compatible
strings from nvmap driver code, as we should only use nvidia,carveouts
as compatible string.
JIRA TMM-6011
Change-Id: I08ed5fae564b1f0fd944ae197d568e37ad563d1c
Signed-off-by: Ketan Patil <ketanp@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3313960
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:16 +00:00
praagarwal
4651a49da8
drm/tegra: address INT30-C cert violations
...
add integer overflow checks with error handling
Jira HOSTX-5889
Change-Id: Ib31763ab073c2f9b13e2f54fd3c006d977215941
Signed-off-by: Prateek Agarwal <praagarwal@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3301055
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2025-07-24 10:19:16 +00:00
Mainak Sen
37189ffbdd
drm/tegra: Deprecate Legacy DRM IOCTLs
...
*. TEGRA_OPEN_CHANNEL
*. TEGRA_CLOSE_CHANNEL
*. TEGRA_SYNCPT_WAIT
*. TEGRA_SYNCPT_READ
Jira HOSTX-5843
Change-Id: If1a047c5fdf86a60074e31e92eaef3397f4dce01
Signed-off-by: Mainak Sen <msen@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3315044
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-07-24 10:19:16 +00:00
Junsheng Chen
90b244eb03
linux: kmd: static analysis TOP25 S03/05 Part 4
...
Under the following path:
- drivers/media/platform/tegra/camera/camera_common.c
- drivers/media/platform/tegra/camera/fusa-capture/capture-isp.c
- drivers/media/platform/tegra/camera/fusa-capture/capture-vi.c
- drivers/media/platform/tegra/camera/sensor_common.c
- drivers/media/platform/tegra/camera/tegracam_core.c
- drivers/media/platform/tegra/camera/tegracam_utils.c
- drivers/media/platform/tegra/camera/vi/graph.c
Jira CAMERASW-32528
Change-Id: I8f3bb839dfe6e61928642f0ca32bcaf972d6c84a
Signed-off-by: Junsheng Chen <junshengc@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3314084
Reviewed-by: Shan Neng Chen <snchen@nvidia.com >
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Ankur Pawar <ankurp@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Zhiyuan Wang <zhiwang@nvidia.com >
2025-07-24 10:19:16 +00:00
Mainak Sen
7c0ab66c2a
drm/tegra: Disable power mode change
...
Compile out Power mode change related functionality
under CONFIG_TEGRA_HOST1X_POWERMODE_CONTROL flag.
This flag is currently disabled in 7.0 release
and expected to enabled in 7.2 release.
Jira HOSTX-5933
Change-Id: I7f35c67950e8684927bfdbd99c716cfaa580cb19
Signed-off-by: Mainak Sen <msen@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3311122
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Vamsee Vardhan Thummala <vthummala@nvidia.com >
Reviewed-by: Leslin Varghese <lvarghese@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: Raghavendra Vishnu Kumar <rvk@nvidia.com >
2025-07-24 10:19:16 +00:00
Nagarjuna Kristam
ce0a05749b
pci: tegra264-ep: Fix set_bar and map_addr ICD
...
- set_bar when called post controller initialization should be rejected.
- map_addr outcome is to be able to access remote memory rather than
register update.
Update API documentation information accordingly.
JIRA NET-2663
Change-Id: Ie4e1b029200fa8e61685e97ba3a0f029c3e6fe9d
Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3310942
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Manikanta Maddireddy <mmaddireddy@nvidia.com >
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com >
2025-07-24 10:19:16 +00:00
Mohan Thadikamalla
524e20def3
nvethernet: Add NvEthernetLinux ICD support
...
Add NvEthernetLinux Doxygen comments support
by documenting platform_driver,
net_device_ops, and ioctl command data.
Jira NET-2168
Change-Id: Ia8140290e4f01c00b6a5d310d8d64a8e0eb3b29c
Signed-off-by: Mohan Thadikamalla <mohant@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3291517
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com >
2025-07-24 10:19:16 +00:00
gokull
4f98504989
blk: vblk: Enable Ioctl in tegra_hv_vblk
...
Previous code was using the struct request.completion_data
to pass the struct ioctl_request to the processing thread.
This member variable is removed from kernel v6.5.
Change contains:
[1] Moving this variable from struct request to struct struct vblk_dev.
[2] Copyright Banner is updated
This makes the passing of the struct ioctl_request independent of
linux kernel transition
Bug 4311184
Change-Id: I3dd2c4ee9861516db770adcba345362395bf3fa3
Signed-off-by: gokull <gokull@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3314801
Reviewed-by: Jon Hunter <jonathanh@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-07-24 10:19:16 +00:00
mijia
5ad213c183
kernel: nvidia-oot: Fix Linux KMD coverity defects
...
Fix INT32-C INT32-Cand INT08-C coverity defects
for cdi_mgr.c and tegracam_ctrls.c.
JIRA CAMERASW-32529
Change-Id: I97f915f94264d78ae8e493874ccf889c9183fc93
Signed-off-by: mijia <mijia@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3314543
Reviewed-by: Sudhir Vyas <svyas@nvidia.com >
Reviewed-by: Ankur Pawar <ankurp@nvidia.com >
Tested-by: Patrick Young <payoung@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:16 +00:00
Zhiyuan Wang
c4fb69048c
linux: kmd: static analysis TOP25 03/05 Part 9
...
Under the following path:
- drivers/media/platform/tegra/camera/fusa-capture/capture-vi-channel.c
- drivers/media/platform/tegra/camera/vi/mc_common.c
- drivers/platform/tegra/rtcpu/capture-ivc.c
- drivers/platform/tegra/rtcpu/ivc-bus.c
- drivers/platform/tegra/rtcpu/reset-group.c
Jira CAMERASW-32533
Change-Id: I4b3d36c77ab09cd930c80fe07846fd9e0e9c28df
Signed-off-by: Zhiyuan Wang <zhiwang@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3314106
Reviewed-by: Frank Chen <frankc@nvidia.com >
Tested-by: Patrick Young <payoung@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:16 +00:00
Johnny Liu
bca162a20d
kleaf: add tegra_wmark module in build targets
...
The tegra_wmark is a specialized devfreq governor to support
interrupt-driven DVFS algorithm with Host1x Actmon infrastructure.
This governor will be used for NVDEC/NVENC/OFA/VIC engines to
support load-based DVFS.
Bug 5147566
Change-Id: I9a60c22e8f12ea579e43e883a273a76d1170e0f5
Signed-off-by: Johnny Liu <johnliu@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3313827
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Ankita Garg <ankitag@nvidia.com >
Reviewed-by: Frankie Chang <frankiec@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
2025-07-24 10:19:16 +00:00
Ishan Shah
3969211745
nvidia-oot: cpuidle: Support coordinated wake
...
Adding debugfs support for the coordinated wake state.
This will allow for the end-user to select a number of destination CPUs,
and then force them into idle together. A chosen "src" cpu will then
trigger a simultaneous wake request on all of the cores to create the
worst-case idle-exit scenario.
We also have an alternate state to support only coordinated sleep.
This can be useful for cases where select cores coordinated together can
have deeper power modes available to them.
TPS-671
Change-Id: I901f86000d36a86f9549f713ba698b58896d55b7
Signed-off-by: Ishan Shah <ishah@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3242284
Reviewed-by: Nathan Hartman <nhartman@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Sanjay Chandrashekara <sanjayc@nvidia.com >
2025-07-24 10:19:16 +00:00
yongtaos
7512e6b575
kernel: nvidia-oot: Fix Top-25 coverity defects
...
Fix NULL_RETURNS and EXP34-C coverity defects for cam_fsync.c.
Jira CAMERASW-32531
Change-Id: I59090d6136c83fe0fa35386d13cd2284eb516c41
Signed-off-by: yongtaos <yongtaos@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3313977
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Vincent Chung <vincentc@nvidia.com >
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com >
Reviewed-by: Semi Malinen <smalinen@nvidia.com >
Reviewed-by: Zhiyuan Wang <zhiwang@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Ankur Pawar <ankurp@nvidia.com >
2025-07-24 10:19:16 +00:00
Sanjith T D
5ee238d258
vblk: Fixed the max size for discard
...
- Updated the max_discard_segments to 1 for
discarding contiguous blocks.
- Updated the max_discard_sectors to correct value
considering the SECTOR_SIZE.
Bug 5065629
Change-Id: I6737d77f63ff5d7330d467acdbf051b8df4097af
Signed-off-by: Sanjith T D <std@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3313548
Reviewed-by: Sreenivas Velpula <svelpula@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Vipin Kumar <vipink@nvidia.com >
2025-07-24 10:19:16 +00:00
Mainak Sen
88caf7f818
nvdla: kmd: Move falcon implementation from Host1x to DLA driver
...
This commit moves the falcon hardware interface implementation from the
host1x-nvhost driver to the NVDLA kernel driver. This change makes
the DLA driver more independent by removing its dependency on the host1x
driver for falcon functionality.
The falcon hardware interface is critical for DLA firmware loading and
execution. By moving this code into the DLA driver, we improve modularity
and make the driver more self-contained.
Changes include:
- Migrated falcon.c and falcon.h from host1x-nvhost to video/tegra/host/nvdla/flcn/
- Renamed files to nvdla_falcon.c and nvdla_falcon.h
- Added DLA-specific falcon API implementations
- Updated include paths and header guards
- Updated the DLA driver's Makefile to include the new files
Jira HOSTX-5933
Bug 4918838
Change-Id: Icb3731c4556545f98c7eb62e9e56c0396c7b6b3b
Signed-off-by: Mainak Sen <msen@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3311297
Reviewed-by: Arvind M <am@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Raghavendra Vishnu Kumar <rvk@nvidia.com >
2025-07-24 10:19:16 +00:00
Surbhi Singh
6173caca37
video: tegra: nvmap: Add checks for addition overflow
...
Add check for overflow when two unsigned integers are added or
multiplied and return error in case of overflow condition.
JIRA TMM-5993
Bug 4479044
Change-Id: I79233e276d85570e63e8b36fd1dd4778a174c69d
Signed-off-by: Surbhi Singh <surbhis@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3306728
Reviewed-by: Ketan Patil <ketanp@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Sachin Nikam <snikam@nvidia.com >
2025-07-24 10:19:16 +00:00
Akihiro Mizusawa
053dc08de7
host: nvcsi: Deprecate nvhost APIs
...
Deprecate nvhost API usage. Remove API calls that are no longer
necessary and implement equivalent functionality for those that are.
Bug 4922171
Bug 4921620
Change-Id: I5519bcbbc6b5895e7c579c7dccfc6f59c8609ff8
Signed-off-by: Akihiro Mizusawa <amizusawa@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3303922
Reviewed-by: Chinniah Poosapadi <cpoosapadi@nvidia.com >
Reviewed-by: FNU Raunak <fraunak@nvidia.com >
Reviewed-by: Frank Chen <frankc@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-07-24 10:19:16 +00:00
Akihiro Mizusawa
1b1b638553
host: isp: Deprecate nvhost module APIs
...
Deprecate the nvhost module APIs as the nvhost driver will be
deprecated in the future.
Implement equivalent functionality by copying the contents of
nvhost_module_<init, deinit> to the ISP driver.
Bug 4921620
Change-Id: Ibdc98dcb44b2992a3ad7af830db96be416a8c7b6
Signed-off-by: Akihiro Mizusawa <amizusawa@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3300671
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Frank Chen <frankc@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Chinniah Poosapadi <cpoosapadi@nvidia.com >
Reviewed-by: FNU Raunak <fraunak@nvidia.com >
2025-07-24 10:19:16 +00:00
Akihiro Mizusawa
bbdd6dd288
host: isp: Deprecate nvhost client device APIs
...
Deprecate the nvhost_client_device* APIs and implement equivalent
functionality in the ISP driver. Define ISP driver functions
equivalent to nvhost_client_device_init to create the nvhost-ctrl-isp
devices.
Bug 4922171
Change-Id: I2deee6f2018aefd62c45afe8b5b70f4abfa030dc
Signed-off-by: Akihiro Mizusawa <amizusawa@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3300670
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: FNU Raunak <fraunak@nvidia.com >
Reviewed-by: Chinniah Poosapadi <cpoosapadi@nvidia.com >
Reviewed-by: Frank Chen <frankc@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
2025-07-24 10:19:16 +00:00
Akihiro Mizusawa
f97366843c
host: isp: Deprecate nvhost syncpt unit interface API
...
Deprecate the nvhost_syncpt_unit_interface_init API and implement
equivalent functionality in the ISP driver.
Bug 4921461
Change-Id: Ic8a2753b8ac5d6d32fa3fd07e7f2170ce4059c5e
Signed-off-by: Akihiro Mizusawa <amizusawa@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3300669
Reviewed-by: Frank Chen <frankc@nvidia.com >
Reviewed-by: FNU Raunak <fraunak@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Chinniah Poosapadi <cpoosapadi@nvidia.com >
2025-07-24 10:19:16 +00:00
Akihiro Mizusawa
cb4fd77199
host: isp: Deprecate nvhost syncpt APIs
...
Replace Nvhost syncpt APIs with host1x equivalents in the ISP
host1x driver and the ISP channel driver.
Note the WAR to include host1x-next.h before nvhost.h. The nvhost.h
header will be deprecated in the future.
Bug 4922416
Change-Id: I2dd298d60e1a55fe7a0cbb3ae804f5aa3b5d3610
Signed-off-by: Akihiro Mizusawa <amizusawa@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3300668
Reviewed-by: Chinniah Poosapadi <cpoosapadi@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: Frank Chen <frankc@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: FNU Raunak <fraunak@nvidia.com >
2025-07-24 10:19:16 +00:00
Joshua Cha
da67f89f15
nvsciipc: add shutdown callback
...
print kernel message during system shutdown
JIRA NVIPC-3318
Change-Id: Ib6025c4058fc2f03d89d44e0c6f2ee90073ba8e2
Signed-off-by: Joshua Cha <joshuac@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3309294
Reviewed-by: Jeungwoo Yoo <jeungwooy@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Simon Je <sje@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
2025-07-24 10:19:16 +00:00