Yuyuan Chen
3b31f76f27
kernel: nvidia-oot: Fix Static issues S2/5
...
Jira CAMERASW-31832
Change-Id: I4060480865bf3895fae22127bb3e0c915af8af9f
Signed-off-by: Yuyuan Chen <yuyuanc@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3297678
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com >
Tested-by: Patrick Young <payoung@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Ryan Li <ryanli@nvidia.com >
Reviewed-by: Semi Malinen <smalinen@nvidia.com >
Reviewed-by: Vincent Chung <vincentc@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
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
Evgeny Kornev
c4d1462fd6
tracing: Fix ftrace for ISP trace events
...
Fix ISP trace events due to 64 bit TS cahnges
Jira CAMERASW-30345
Change-Id: I33aa9325603ec939979e11964224bf3f113a0adb
Signed-off-by: Evgeny Kornev <ekornev@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3266979
Reviewed-by: Jukka Kaartinen <jkaartinen@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Semi Malinen <smalinen@nvidia.com >
Reviewed-by: Sudhir Vyas <svyas@nvidia.com >
2025-07-24 10:19:12 +00:00
Jon Hunter
efeecacbd1
tegra: rtcpu: Fix build for Linux v6.12
...
In Linux v6.12 the definition 'no_llseek' was finally removed. Since
Linux v6.0 it had been redefined as NULL. Add a test to conftest to
determine if 'no_llseek' is present and if not then it is no longer
necessary to populate this and we can leave as NULL.
Bug 4876974
Change-Id: Idc0f5eff6f95f404a24b6d795f6a9460b99639e4
Signed-off-by: Jon Hunter <jonathanh@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3261670
Reviewed-by: svcacv <svcacv@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Pushpesh Pranjal <ppranjal@nvidia.com >
2025-07-24 10:19:11 +00:00
Pushpesh Pranjal
007a357ab1
kernel: nvidia-oot: fix GVS build issue
...
- fix for no prototype issue
- class_create failure
- ISO C90 mixed declarations
Jira CAMERASW-29337
Change-Id: I16cc1b6f36df1e1f59acc6add927f30e5a963302
Signed-off-by: Pushpesh Pranjal <ppranjal@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3248722
Reviewed-by: Sachin Nikam <snikam@nvidia.com >
Reviewed-by: Evgeny Kornev <ekornev@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-07-24 10:19:11 +00:00
Pushpesh Pranjal
cbf1e15fdc
kernel: nvidia-oot: adding use case to discard existing traces
...
- Add usecase to discard existing traces, using a write call,
that sets last read event index to header's next event index.
Jira CAMERASW-29336
Change-Id: Ibfc94cf5f5484b5a4ad9c2cc6f9eaeb4937ac564
Signed-off-by: Pushpesh Pranjal <ppranjal@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3242168
(cherry picked from commit 148495ac64e645aff04abdf1d0334e7ea6400982)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3248850
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Sachin Nikam <snikam@nvidia.com >
Reviewed-by: Evgeny Kornev <ekornev@nvidia.com >
2025-07-24 10:19:11 +00:00
Pushpesh Pranjal
1ad8bfcf97
kernel: nvidia-oot: adding non-blocking use case
...
- adding non-blocking use case for fetching raw traces
Jira CAMERASW-27488
Change-Id: Ic60ceb08e9d3e68bf5db20c0da9325c3c183169e
Signed-off-by: Pushpesh Pranjal <ppranjal@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3227561
(cherry picked from commit 04b0de1c19db16fb6cfc9b8057d395000c9f6011)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3241812
Reviewed-by: Evgeny Kornev <ekornev@nvidia.com >
Reviewed-by: Sachin Nikam <snikam@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2025-07-24 10:19:11 +00:00
Pushpesh Pranjal
2ac9b955e8
tegra: rtcpu : add device node for fetching raw traces
...
- added a device node to fetch the raw traces
- keeping both option available: existing worker method,
using device node to fetch raw traces
- both blocking & non-blocking call support,
user can decide it
- multiple file open support, each file descriptor
context have its own read pointer of trace memory
Jira CAMERASW-27486
Jira CAMERASW-27487
Jira CAMERASW-27774
Change-Id: I93942d273570857b0073e0e863e41c221c36ebb7
Signed-off-by: Pushpesh Pranjal <ppranjal@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3215749
(cherry picked from commit 21a9c245ea4be51117c379d77c45de1ddc3a167c)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3241811
Reviewed-by: Evgeny Kornev <ekornev@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Sachin Nikam <snikam@nvidia.com >
2025-07-24 10:19:11 +00:00
Evgeny Kornev
83a23200ef
rtcpu: adjust header len
...
Len for camrtc_event_header is reduced
to uint16_t so ajust casting to uint16_t
Jira CAMERASW-27782
Change-Id: I5da60c9eb4e1d82d1c9251942d5c51dae06fc374
Signed-off-by: Evgeny Kornev <ekornev@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3218684
(cherry picked from commit 003f7f7e7a32341162c5b07b6fb1725b15859b75)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3228154
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
2025-07-24 10:19:09 +00:00
fraunak
cc49f73763
nvidia-oot: add tracing support to identify isp
...
This change adds the isp logging to identify which isp instance is being
run in the rtcpu traces.
Jira CT26X-1790
Change-Id: I87744fd15629bb9faa96f5970b5f5ecea4b59937
Signed-off-by: fraunak <fraunak@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3221517
Reviewed-by: Semi Malinen <smalinen@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Frank Chen <frankc@nvidia.com >
Reviewed-by: Chinniah Poosapadi <cpoosapadi@nvidia.com >
2025-07-24 10:19:07 +00:00
Pekka Pessi
b53b1d832a
rtcpu: validate trace event length
...
Add checks for trace event length.
A trace event with too small or too large len value could cause a
crash and kernel panic.
Bug 4446545
Change-Id: I404a4e3ba1a4dad04d05583b6ea8126556d0753b
Signed-off-by: Pekka Pessi <ppessi@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3126815
(cherry picked from commit 01e1c1b3b3fabd28375aa6ef214ea759175c01f1)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3132086
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Evgeny Kornev <ekornev@nvidia.com >
Reviewed-by: Jukka Kaartinen <jkaartinen@nvidia.com >
Reviewed-by: Mika Liljeberg <mliljeberg@nvidia.com >
Reviewed-by: Semi Malinen <smalinen@nvidia.com >
Tested-by: Evgeny Kornev <ekornev@nvidia.com >
2025-07-24 10:19:07 +00:00
Matti Ryttylainen
8bb21ea435
Camera: Add task_fence events for VI/ISP
...
Nsight needs task_fence events from camera engines.
Add task_fence event traces to be emitted during ISP task begin/end
and during VI frame end.
Jira CAMERASW-24223
Change-Id: Ia44baf73777f30abc823459f5e7dfd4d495d3ca6
Signed-off-by: Matti Ryttylainen <mryttylainen@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3141174
(cherry picked from commit ad0f0cba98173bbf055f5e69ebf175d9daf1ac3b)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3181495
Reviewed-by: Sampatlal Arjunram Jangid <sjangid@nvidia.com >
Tested-by: Devang Kubavat <dkubavat@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
Reviewed-by: Pushpesh Pranjal <ppranjal@nvidia.com >
Reviewed-by: Semi Malinen <smalinen@nvidia.com >
2024-07-28 21:57:31 -07:00
Mika Liljeberg
cac12c4fb7
tegra: rtcpu: signal trace console support
...
Use new TLV tag to signal that the trace processor supports
console prints. Populate TLV size field for additional range
checking on RCE side.
Bug 3898176
Change-Id: Ie3cd18198ab325eb34fac4803e93019318cf44df
Signed-off-by: Mika Liljeberg <mliljeberg@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2845587
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2988237
Reviewed-by: Matti Ryttylainen <mryttylainen@nvidia.com >
Reviewed-by: Viktor Horsmanheimo <viktorh@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-10-12 17:16:54 -07:00
Matti Ryttylainen
f19d5372b4
camera: Switch VI/ISP events to ftrace
...
* Switch VI frame_begin and frame_end events to produce ftrace traces
instead of eventlib events.
* Switch ISP task_begin and task_end events to produce ftrace traces
instead of eventlib events.
* Add class IDs for VI/ISP
* Switch VI/ISP task_submit events to ftrace
Bug 4080214
Signed-off-by: Matti Ryttylainen <mryttylainen@nvidia.com >
Change-Id: I7776005bb89eaed168c65c62d8aa19c553559fdb
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2911804
Reviewed-by: Semi Malinen <smalinen@nvidia.com >
Reviewed-by: Jukka Kaartinen <jkaartinen@nvidia.com >
Reviewed-by: Oleg Sikorskiy <osikorskiy@nvidia.com >
Reviewed-by: Ajith Kumar <ajithk@nvidia.com >
Reviewed-by: Sudhir Vyas <svyas@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-06-19 12:28:58 -07:00
Pekka Pessi
8c3deebf44
rtcpu: export capture tracepoints
...
Bug 3960871
Signed-off-by: Pekka Pessi <ppessi@nvidia.com >
Change-Id: If805ddaf94fb2a22f056ed450414f449b601fcc7
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2855234
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Ankur Pawar <ankurp@nvidia.com >
Reviewed-by: Matti Ryttylainen <mryttylainen@nvidia.com >
Reviewed-by: Frank Chen <frankc@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-02-17 07:25:14 -08:00
Frank Chen
304123a3bf
video: camera: Port RTCPU drivers to OOT tree
...
Port RTCPU drivers from kernel/nvidia to kernel/nvidia-oot.
In addition to copying the files this patch:
1) Modifies make files to build rtcpu drivers as modules
2) Modifies licenses of all ported files to SPDX
3) Adds MODULE_LICENSE macro to all modules
4) Removes checks for old kernel versions and the dead code after those checks
5) Fixes style errors according to checkpatch.pl
Change-Id: If64296a22ce958e5326c7509cb69f8f7154f598e
Signed-off-by: Frank Chen <frankc@nvidia.com >
Signed-off-by: Matti Ryttylainen <mryttylainen@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2783040
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
Reviewed-by: Ankur Pawar <ankurp@nvidia.com >
Reviewed-by: Semi Malinen <smalinen@nvidia.com >
Reviewed-by: Pekka Pessi <ppessi@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2022-12-01 11:00:35 -08:00