Manish Bhardwaj
ef1bc16ac8
nvidia: fix memory leak issue in vse driver
...
fixing memory leak driver by using krealloc API
to reutilize the previously allocated memory
Bug 4334915
Change-Id: I4ad88f32152da7527033679b1eed414574cad4e5
Signed-off-by: Manish Bhardwaj <mbhardwaj@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3010174
Reviewed-by: Advaya Andhare <aandhare@nvidia.com >
Reviewed-by: Sandeep Trasi <strasi@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-11-06 11:58:25 -08:00
Manish Bhardwaj
d6745fa37c
nvidia: handle zero size sha buffer gracefully
...
Using this patch we are fixing below issue on debug build
where sg_init_one API is getting failed when zero sha buffer
size is passed leading to below crash.
[ 144.941668] kernel BUG at include/linux/scatterlist.h:163!
[ 144.941673] Internal error: Oops - BUG: 00000000f2000800 [#1 ] PREEMPT_RT SMP
[ 144.941766] CPU: 7 PID: 6178 Comm: nvvse_test Tainted: G W O 6.1.9-rt7-debug-rt-tegra #1
[ 144.941769] Hardware name: p3710-0010 (DT)
[ 144.941770] pstate: 20400005 (nzCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[ 144.941773] pc : sg_init_one+0x3c/0xb0
[ 144.941782] lr : 0xffff800001515e30
[ 144.941788] sp : ffff800022723cd0
[ 144.941788] x29: ffff800022723cd0 x28: 0000aaaabfca6300 x27: ffff0000af767850
[ 144.941791] x26: ffff0000af766900 x25: ffff800001518460 x24: ffff0000afd8f700
[ 144.941792] x23: ffff0000af767a00 x22: ffff0000afe81d80 x21: 0000000000000010
[ 144.941794] x20: 0001000000000010 x19: ffff800022723d88 x18: 0000000000000000
[ 144.941796] x17: 0000000000000000 x16: ffff800001515410 x15: 0000aaaabfca6300
[ 144.941798] x14: 0000000000000000 x13: 0000000000000000 x12: 0000000000000000
[ 144.941800] x11: 0000000000000000 x10: 0000000000000000 x9 : 0000000000000000
[ 144.941802] x8 : ffff0000afd8f780 x7 : 0000000000000000 x6 : 0000000000000010
[ 144.941804] x5 : 0000000000000010 x4 : ffff0000afe81d80 x3 : 0000000000000000
[ 144.941806] x2 : 0000000000000000 x1 : 00007fffffffffff x0 : 0001000000000000
[ 144.941808] Call trace:
[ 144.941810] sg_init_one+0x3c/0xb0
[ 144.941813] 0xffff800001515e30
[ 144.941815] __arm64_sys_ioctl+0xa8/0x100
[ 144.941820] invoke_syscall+0x40/0x120
[ 144.941825] el0_svc_common.constprop.0+0x40/0xf0
[ 144.941828] do_el0_svc+0x28/0xd0
[ 144.941830] el0_svc+0x28/0x90
[ 144.941835] el0t_64_sync_handler+0xc0/0xd0
[ 144.941837] el0t_64_sync+0x164/0x168
[ 144.941841] Code: b240bbe1 eb01029f f9000e7f 54000049 (d4210000)
Bug 4355159
Change-Id: I1855c418ee41725f93b3c8d27bb0becbfcbfbcad
Signed-off-by: Manish Bhardwaj <mbhardwaj@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3010170
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Advaya Andhare <aandhare@nvidia.com >
Reviewed-by: Sandeep Trasi <strasi@nvidia.com >
2023-11-06 11:58:20 -08:00
Manish Bhardwaj
558dc30461
nvvse: handle failure case gracefully
...
Observing the crash in failure path when already
freed memory is being used. handling the failure
scenario gracefully with this patch.
Bug 4355159
Change-Id: Ie39dab2572067eab0c139323ed86bae9490a8878
Signed-off-by: Manish Bhardwaj <mbhardwaj@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3008896
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Advaya Andhare <aandhare@nvidia.com >
Reviewed-by: Sandeep Trasi <strasi@nvidia.com >
2023-11-06 11:58:15 -08:00
Manish Bhardwaj
84443ed555
crypto: increase buffer support for SHA operation
...
Using this patches we are making below changes:-
1. increase buffer support for SHA operation from 1MB to 2MB
2. get the IVC DB during init call.
3. remove scatter gather implementation and allocate memory
in single call.
Bug 4141706
Change-Id: I6fc7f9bc564da31e458cf18230dedd3f21a284fa
Signed-off-by: Manish Bhardwaj <mbhardwaj@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2984692
Reviewed-by: Advaya Andhare <aandhare@nvidia.com >
Reviewed-by: Sandeep Trasi <strasi@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3008976
2023-11-06 11:58:10 -08:00
Mika Liljeberg
d0c6a44fdb
firmware-api: document ISP capture messages
...
Updated documentation for ISP capture channel messages and
associated structures and definitions.
Other documentation fixes:
* Added structures and documentation for VI and ISP engine status.
* Added documentation for a few global defines.
* Added a clarification to CAPTURE_REQUEST_REQ documentation.
* Removed unused isp5_downscaler_configbuf struct
* Fixed usage of @deprecated tag.
* White space changes.
Jira CAMERASW-14053
Change-Id: I2096a37da2ddd5cb73d842cdc2014fd1b98c268a
Reviewed-on: https://git-master.nvidia.com/r/c/tegra/camera/firmware-api/+/3003301
Signed-off-by: Mika Liljeberg <mliljeberg@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3007982
(cherry picked from commit b0c61ffd308d26f7870d61dfe921afe159a2cc3d)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3008828
Reviewed-by: Matti Ryttylainen <mryttylainen@nvidia.com >
Reviewed-by: Pekka Pessi <ppessi@nvidia.com >
Reviewed-by: Frank Chen <frankc@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
rel-36_eng_2023-11-07
2023-11-05 03:17:12 -08:00
Shashank Kumar
c56189df5d
drivers: media: add alternating exposure support
...
- update ar0234 driver to support ar0234 sensor
hardware provided support for capturing frames
using alternating exposure time and analog gain
settings through automatic context switching
- added new v4l2 control having control id
TEGRA_CAMERA_CID_ALTERNATING_EXPOSURE for
configuring alternating exposure settings
- other changes to support aforementioned changes
Bug 4064517
Jira L4T-4501
Change-Id: Id1d3d745345836436b16da1fd00cc97f2e3b5553
Signed-off-by: Shashank Kumar <shaskumar@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2881141
(cherry picked from commit e973475525c9a7a99552282316e06126b8fff625)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2987067
Reviewed-by: Anubhav Rai <arai@nvidia.com >
Reviewed-by: Bibek Basu <bbasu@nvidia.com >
Tested-by: Anubhav Rai <arai@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-11-04 09:59:43 -07:00
Laxman Dewangan
2bd1339e63
crypto: skip drivers for Linux 6.6.
...
There is major changes in the engine context operation
for Linux 6.6 and it is required to handle properly.
While fix is in a way, disable this driver for Linux6.6
to unblock further development.
Bug 4346767
Change-Id: I0f9325637726feb57b51a27e582d7d531ac1b6a7
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3009040
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-11-02 18:35:32 -07:00
Joshua Cha
236a2f09ee
nvidia-oot: add IPA type info of IVC channel
...
Bug 4293372
Signed-off-by: Joshua Cha <joshuac@nvidia.com >
Change-Id: I5c0cf142afdac9a6a1108a38513af6861272a8e9
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2995973
(cherry picked from commit ebedbb2492ea13211b53a48655e9312ba6b255dd)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3004066
Reviewed-by: Kurt Yi <kyi@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-11-02 18:13:33 -07:00
Preetham Chandru Ramchandra
1ae12540fe
tegra_bootloader_debug: Register as platform driver
...
UEFI will pass bl_prof_dataptr and bl_prof_ro_ptr in DT node.
Register the driver as platform driver and get bl_prof_dataptr and
bl_prof_ro_ptr from DT.
Bug 3804913
Change-Id: I78ba764650e7b8c76dafbcb355f441e70e83a569
Signed-off-by: Preetham Chandru Ramchandra <pchandru@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2991624
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-11-02 18:07:33 -07:00
pshaw
ca62042a01
fsicom: fix misra and cert-c issue
...
- fix misra nad cert issue for the multi core code change
Bug 3952896
Bug 3959323
Change-Id: Id3108a604aea71e4b2b75034a2852b3083ad8947
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2974001
Signed-off-by: pshaw <pshaw@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2977128
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-11-02 18:07:24 -07:00
Koen Zhao
dd495993d3
misc: mods: Update from Perforce
...
- Move the logic of MODS_HAS_ARM_FFA definition
from mods_config.h to Makefile
Bug 4264844
Change-Id: Ief5b3301173028b677a682e1e1c817625daa0fcc
Signed-off-by: Koen Zhao <koenz@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3007739
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Chris Dragan <kdragan@nvidia.com >
Reviewed-by: Sachin Nikam <snikam@nvidia.com >
2023-11-02 10:53:19 -07:00
Anubhav Rai
5bf029b886
vi5: continue captures even after corr errors
...
even if the channel encounters corr error, continue
captures anticipating that channel might recover in
future.
This also prevents high CPU usage of the dequeue thread
in corr error usecase.
bug 4310063
Change-Id: I49a30f9f5583badf77ecd5c60b94009f786a0b7a
Signed-off-by: Anubhav Rai <arai@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2995411
(cherry picked from commit d8749afd649c213927bb49c1384f063f099dd083)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3007710
Reviewed-by: Ankur Pawar <ankurp@nvidia.com >
Reviewed-by: Bibek Basu <bbasu@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-11-02 10:52:46 -07:00
Laxman Dewangan
0f76fc5e17
gpu: drm: fb: Align deferred IO ops helper name for Linux6.6
...
The FB deferred IO ops helper name is changed in Linux 6.6 with
below mainline kernel change:
---
commit 744d35d3436fbeed9131f6ab717aeb3f775b19c4
Author: Thomas Zimmermann <tzimmermann@suse.de >
Date: Sat Jul 29 21:26:49 2023 +0200
fbdev: Align deferred I/O with naming of helpers
---
Use the new macros name.
Bug 4346767
Change-Id: Idc2e2319994fd2ed7040d8d5528a0d6074257420
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3008092
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-11-01 20:25:28 -07:00
Laxman Dewangan
abfab2085e
drm: Remove initialization of fd/handle conversion for Linux 6.6
...
The functions for fd/handle conversion are unexported as it is
used internally to drm_prime based on following change:
---
Author: Thomas Zimmermann <tzimmermann@suse.de >
Date: Tue Jun 20 09:59:59 2023 +0200
drm/prime: Unexport helpers for fd/handle conversion
---
Remove the initialisation of these functions pointer.
Bug 4346767
Change-Id: I821f4e63663a7f35e5fa39ed84383765ed8599fa
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3008091
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-11-01 20:25:23 -07:00
Laxman Dewangan
f60f770721
net: Split type and declaration of page_pool in Linux 6.6.
...
Split the type and declaration of page_pool header for Linux6.6
based on below change from kernel 6.6:
---
commit a9ca9f9ceff382b58b488248f0c0da9e157f5d06
Author: Yunsheng Lin <linyunsheng@huawei.com >
Date: Fri Aug 4 20:05:24 2023 +0200
page_pool: split types and declarations from page_pool.h
---
Bug 4346767
Change-Id: I0217da34c67d952c97c6812c2760bed2fb3df3e0
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3008090
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-11-01 20:25:18 -07:00
Laxman Dewangan
ecf1a5a7a3
misc: Drop PCIE error reporting for Linux 6.6
...
Drop pcie error reporting call as it is not exported
on Linux 6.6.
---
commit 7ec4b34be4234599cf1241ef807cdb7c3636f6fe
Author: Bjorn Helgaas <bhelgaas@google.com >
Date: Mon Jul 10 18:21:36 2023 -0500
PCI/AER: Unexport pci_enable_pcie_error_reporting()
---
Bug 4346767
Change-Id: I0b8f924df1ac74c5f2b4973fb4a4d7f157d2c2cc
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3008089
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-11-01 20:25:13 -07:00
Laxman Dewangan
b8ed894279
misc: Drop THIS_MODULE from class create for Linux 6.6
...
THIS_MODULE is dropped from Linux6.6. Removing this via conftest.
Bug 4346767
Change-Id: I01a03b6ce6daeb1715fd06d3f6c4a2507f1a441c
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3008088
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-11-01 20:25:08 -07:00
Laxman Dewangan
1cae6bd4d7
media: camera: vi: Rename v4l2_async_notifier_init to v4l2_async_subdev_nf_init()
...
The API v4l2_async_notifier_init() changed to v4l2_async_subdev_nf_init() in
Linux 6.6 with below kernel change:
---
commit bda8953e8c3e7ecbbf6cb1be11790496300e3961
Author: Jacopo Mondi <jacopo.mondi@ideasonboard.com >
Date: Tue Apr 18 11:52:07 2023 +0200
media: v4l: async: Drop v4l2_async_nf_parse_fwnode_endpoints()
---
Use the new API.
Bug 4346767
Change-Id: Iff3137d07cd270300c4b9a90974a4dd81fb53740
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3008087
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-11-01 20:25:03 -07:00
Laxman Dewangan
d519482993
media: camera: Rename match type for Linux 6.6
...
The match type enum and structure has been changed in Linux 6.6.
with below changes in kernel:
---
commit 7a2259fc5182bc792b7ce90d83d8f6e197808b9a
Author: Sakari Ailus <sakari.ailus@linux.intel.com >
Date: Fri May 5 09:09:10 2023 +0200
media: v4l: async: Rename V4L2_ASYNC_MATCH_ macros, add TYPE_
commit f0e10d0a971c43fb2035fccc06de8bdd22674ec9
Author: Sakari Ailus <sakari.ailus@linux.intel.com >
Date: Sun Feb 19 13:09:00 2023 +0100
media: v4l: async: Make V4L2 async match information a struct
---
Modify accordingly for Linux 6.6.
Bug 4346767
Change-Id: I49e94f7ad5e2fa4a390fdf0d79df7c2d4d2bd090
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3008086
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-11-01 20:24:58 -07:00
Laxman Dewangan
08a1772814
media: Replacing v4l2_async_subdev to v4l2_async_connection for Linux6.6
...
The API v4l2_async_subdev is replaced by v4l2_async_connection in Linux 6.6
with below kernel change:
----
commit adb2dcd5f2d49d3ba3171160fabd4be0d4b2a86c
Author: Sakari Ailus <sakari.ailus@linux.intel.com >
Date: Thu Feb 16 14:54:53 2023 +0100
media: v4l: async: Rename v4l2_async_subdev as v4l2_async_connection
----
Using the new API.
Bug 4346767
Change-Id: I73c39fd499a0a5cbeb8d3f24de08c52a5ea8dda5
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3008085
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-11-01 20:24:53 -07:00
Laxman Dewangan
6d944beefd
video: tegra: dc: Replacing probe_new to probe
...
Use the I2C driver API probe instead of probe_new for Linux6.6
as probe_new is removed from kernel with below change
---
commit 5eb1e6e459cfa025f79c43014f66ff62a55542f1
Author: Uwe Kleine-König <u.kleine-koenig@pengutronix.de >
i2c: Drop legacy callback .probe_new()
----
Bug 4346767
Change-Id: I9a4edae9b60cd24cb4f9e59e8198c3a74c7d9d9a
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3008084
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-11-01 20:24:48 -07:00
Laxman Dewangan
43e89a0862
tty: Replace unsigned char to u8 for Linux 6.6
...
Based on following change, replace the unsigned char to u8
for serial:wch_serial.
--
commit dcaafbe6ee3b39f2df11a1352f85172f8ade17a5
Author: Jiri Slaby (SUSE) <jirislaby@kernel.org >
tty: propagate u8 data to tty_operations::put_char()
---
Bug 4346767
Change-Id: I2555383d59fe8c95a7a1b6220e3209138416c2eb
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3007447
Tested-by: Bitan Biswas <bbiswas@nvidia.com >
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-11-01 20:21:06 -07:00
Laxman Dewangan
a8dd4a4375
pinctrl: pexclk-padctrl: Explicitly typecast param
...
Explicitly typecast the pin-config param to the
enum pin_config_param to avoid warning which causing
build error.
Bug 4346767
Change-Id: I3b35fe69660c31d7ba7243a7a65f57b0b5ecc1f9
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3007360
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-11-01 09:00:05 -07:00
Laxman Dewangan
c9b1539c37
hwmon: Replace probe_new to probe for Linux6.6
...
The probe_new is removed from the Linux 6.6. in
following change:
---
commit 5eb1e6e459cfa025f79c43014f66ff62a55542f1
Author: Uwe Kleine-König <u.kleine-koenig@pengutronix.de >
i2c: Drop legacy callback .probe_new()
----
Bug 4346767
Change-Id: Idf90cd0f6536bb4e886467679b71c37f97e009a5
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3007384
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com >
2023-11-01 09:00:01 -07:00
Laxman Dewangan
007b4eb4ae
sound: soc: Add support to build with Linux 6.6
...
Moving the probe of DAI inside the ops based on change
done as follows:
----
commit 516ee7009ff20eb3f73a64a1fe2ffe10997696e6
Author: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com >
Date: Tue Aug 8 22:56:58 2023 +0000
ASoC: tegra: merge DAI call back functions into ops
ALSA SoC merges DAI call backs into .ops.
This patch merge these into one.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com >
Link: https://lore.kernel.org/r/874jl9b0sl.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org >
-----
Change-Id: I2b4b8604a37cffbe9e1cc6af85f3443780d227ab
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3007245
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com >
2023-11-01 08:59:56 -07:00
pmedawala
4403c71b96
sound: tegra-safety-audio: Fix CERT C issues
...
Fix the following CIDs:
CID 689175
CID 689167
CID 689171
Bug 3959323
Change-Id: I86ebee06eb0f06f8f8424fc62b94a079b8e9fe80
Signed-off-by: pmedawala <pmedawala@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3006590
Reviewed-by: Uday Gupta <udayg@nvidia.com >
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-11-01 08:58:38 -07:00
Jon Hunter
325bd67f86
drivers: prod: Fix kernel version checks
...
The new Tegra Prod APIs are to be used for NVIDIA Linux kernels v5.16+.
Building the MTTCAN and QUAD SPI driver currently fail for upstream
Linux v5.16 because the various version definitions are not correct.
Some definitions have greater than v5.16.0 instead of greater than OR
equal to v5.16.0. This means that the new APIs will only be used
starting with v5.16.1+ and not v5.16.0 as inteaded.
Other definitions have less than or equal to v5.16.0 instead of just
less than v5.16.0. This means that we will still use the legacy APIs for
v5.16.0.
Fix this by correcting the definition that the drivers can be built for
upstream Linux v5.16.
Bug 4097475
Change-Id: I7d8dd04911a7d6426c67e82396c8a6f1b372875d
Signed-off-by: Jon Hunter <jonathanh@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3006521
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-11-01 08:58:34 -07:00
Mohan Thadikamalla
e8d516daf3
nvethernet: Disable VLAN VID tag filters
...
Issue:
The L2 Orin bridge use case is encountered
an issue on AV+L NDAS builds for VLAN ping
from HOST1 to HOST2 over L2 Orin bridge.
As HOST1/HOST2 VLAN packets are dropped
by EQOS/MGBE MAC due to VLAN VID feature enable.
Fix:
To support the L2 Orin bridge VLAN
HOST1 to HOST2 data usecase, disable
the VLAN VID filters in the nvethernet driver.
Bug 4230250
Change-Id: I02514fcc15b7764fe93118a9f90c16716368c73c
Signed-off-by: Mohan Thadikamalla <mohant@nvidia.com >
(cherry picked from commit 86cb37f933846a012ba6d8cdac275a2edda0aa42)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3003075
Reviewed-by: Bhadram Varka <vbhadram@nvidia.com >
Reviewed-by: Srinivas Ramachandran <srinivasra@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-10-30 23:39:22 -07:00
Jon Hunter
d0ae4194d7
nvidia-oot: Fix ccflag for IVC legacy support
...
The flag CONFIG_TEGRA_IVC_LEGACY_DISABLE was added so that it can be set
by an external Makefile that build the out-of-tree drivers. If this flag
is set by an external Makefile then the ccflags definition
'-DCONFIG_TEGRA_IVC_LEGACY_DISABLE' does not get set as expected and
builds fail. Fix this by setting the ccflag if the Make flag
CONFIG_TEGRA_IVC_LEGACY_DISABLE is set and not just for Linux v6.2+
kernels.
Bug 4221847
Change-Id: Ia662a9e6bfac064fa0571af7f0173cda2cf94b02
Signed-off-by: Jon Hunter <jonathanh@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3005233
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-10-27 22:47:39 -07:00
Chris Dragan
5cfb7fef0a
misc: mods: update from Perforce
...
Change-Id: Ie6a243dffa4b57eb42e514f77a58c811ba5f0a0a
Signed-off-by: Chris Dragan <kdragan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3004417
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com >
2023-10-27 22:46:16 -07:00
Kirill Artamonov
fe6d0617eb
soc: tegra: fix camrtc isp naming
...
Use ISP_UNIT_ISP1 to refer to second ISP.
Jira CT26X-440
Signed-off-by: Kirill Artamonov <kartamonov@nvidia.com >
Change-Id: Icdaf81702c00f0a9223bb843ce82937f06fc3e0d
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3002368
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-10-27 22:35:54 -07:00
Kirill Artamonov
8b7212a186
soc: tegra: add ISP1 support to camrtc debug protocol
...
Add support for ISP1 memory buffers allocated by Guest OS.
Jira CT26X-427
Signed-off-by: Kirill Artamonov <kartamonov@nvidia.com >
Change-Id: Ibbcd8a1b720305b36bb62e64baa797eef1d5a889
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3002367
Reviewed-by: Pekka Pessi <ppessi@nvidia.com >
Reviewed-by: Mika Liljeberg <mliljeberg@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-10-27 22:35:43 -07:00
Vishnu Mandalapu
d539245685
drivers: virt: hvc sysfs
...
- Previously numbers are appended to the sysfs name to solve
the duplicate name issue. Now this issue is fixed as name
is changed by server owners. so remove the numbers from
sysfs name.
Jira HYP-15378
Change-Id: I3384583182520ccd53ea895d799c1e8debc07705
Signed-off-by: Vishnu Mandalapu <vmandalapu@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2998182
Reviewed-by: Anil Varma Biruduraju <abiruduraju@nvidia.com >
Reviewed-by: Vipin Kumar <vipink@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3002432
Reviewed-by: Kiran Puttur <kputtur@nvidia.com >
2023-10-27 01:03:07 -07:00
Sheetal Tigadoli
3a40a01b9e
drivers:nvpps:Avoid freeing & re-request of PPS IRQ
...
Avoid freeing & re-requesting of PPS IRQ when
switching between nvpps operating modes
Bug 4007008
Bug 4079057
Change-Id: I193416b8cb37ed0d4fc5241e64d8109805bf330f
Signed-off-by: Sheetal Tigadoli <stigadoli@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2914267
(cherry picked from commit ab9551812254c359dd6e5fd094b23fcfa921f67b)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3003992
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-10-26 17:34:45 -07:00
Bharat Nihalani
1267ce01fe
misc: Add ioctl_example driver
...
This driver exposes simple IOCTL that can be used for Perf
measurement.
Bug 4294493
Change-Id: I7a6cba710d9589da41f29e50ea487d8f9597f2db
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2991717
(cherry picked from commit ece89cb9c58c76fe822e8e80c99f671114d1b156)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3002117
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-10-25 16:58:51 -07:00
Mallikarjun Kasoju
63486a422c
ufs: mphy programming change for fpga
...
mphy is not available in fpga.
Updated driver accordingly.
Bug 4306006
Change-Id: I179678e51c3a0bb4607bf91d39c7e1f44641752f
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3002056
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-10-25 12:05:12 -07:00
Mikko Perttunen
41c454c6e4
gpu: host1x-fence: Skip over stub fences
...
Since kernel 6.1, merging SYNC_FILE FDs will coalesce
signaled fences into a stub fence - no longer a host1x
fence. To avoid breakage on userspace side, detect such
situations here and instead of returning an error, omit
such fences when processing.
Bug 4199972
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com >
Change-Id: I22451ffa22c388bbeeb3528e4760730c3f83bc1b
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3002691
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-10-24 23:58:02 -07:00
omar
2e847dac66
drivers: pva: default exe_id2 to noop
...
default exe_id2 to noop in case og gen1 and gen2 pva.
Bug 4342102
Change-Id: Id1af21808244f128088338ad5895520adcc27f32
Signed-off-by: omar <onemri@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3002613
Reviewed-by: Krish Agarwal <krisha@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-10-24 23:57:17 -07:00
Mika Liljeberg
410ff5011a
firmware-api: documentation for CSI control messages
...
Update documentation for CSI control messages and
associated structures and definitions.
Jira CAMERASW-14050
Change-Id: Ifb3caba5e6baf11fed061ca140681167ae4268ef
Reviewed-on: https://git-master.nvidia.com/r/c/tegra/camera/firmware-api/+/2996915
Signed-off-by: Mika Liljeberg <mliljeberg@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3000437
(cherry picked from commit 39b92ef64169d84967a848f4d558ac0f32239669)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3002146
Reviewed-by: Pekka Pessi <ppessi@nvidia.com >
Reviewed-by: Harri Kaimio <hkaimio@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-10-24 23:53:41 -07:00
Mallikarjun Kasoju
644f308d71
scsi: ufs: Enable PA to VA enable control
...
Enable UFSHC_PA_VA_CTRL bit for ISC Fabric to consider
virtual memory when SMMU is enabled.
If UFSHC_PA_VA_CTRL is not set, ISC Fabric considers ufs
allocated memory as physical address.
Bug 4243018
Bug 4199052
Bug 4334121
Change-Id: Ia557ea510673f19f59d23ac704b068050f5e355e
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3000988
Reviewed-by: Sachin Nikam <snikam@nvidia.com >
Reviewed-by: Pritesh Raithatha <praithatha@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-10-24 23:50:46 -07:00
Johnny Liu
1b6da7e345
gpu: host1x: Enable actmon interrupt for OFA
...
To support interrupt-driven DFS, we need to enable actmon interrupt for
OFA.
Bug 4310958
Signed-off-by: Johnny Liu <johnliu@nvidia.com >
Change-Id: I0615ad4b28bb6d4bc6cd666eb354901f294f6173
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3001885
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-10-24 14:00:56 -07:00
Johnny Liu
a4afff1535
drm/tegra: Register OFA as a devfreq device
...
Unit actmon is used to realize dynamic frequency scaling for OFA.
Therefore, registering OFA as one of devfreq devices to expose frequency
controllability to userspace.
Bug 4310958
Signed-off-by: Johnny Liu <johnliu@nvidia.com >
Change-Id: I6a74f4b4ae54f014091549fa7f6df94c9a9c99ef
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3001884
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-10-24 14:00:41 -07:00
Manish Bhardwaj
e8c5cb610a
vsc: use max supported ioctl size
...
target is getting crash while triggering multiple
ioctl call from userpsace due to miscalculation
of mempool_virt and mempool_offset for each slot.
So use max supported ioctl size macro instead of
max supported read and write operation size.
Bug 4336445
Change-Id: I438ff50cb0dfba845f4d7852e74314c66dab196c
Signed-off-by: Manish Bhardwaj <mbhardwaj@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3001185
Reviewed-by: Kasinadha Dendukuri <kdendukuri@nvidia.com >
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com >
Tested-by: Tonny Liang <tonnyl@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-10-24 13:46:24 -07:00
Jeremy Alves
b8fca78022
Lan743/6.1 include nvidia specific changes
...
Updating Lan7431 nvidia-oot driver for kernel 6.1
to include NV specific changes
Include changes from:
https://git-master.nvidia.com/r/c/linux-nv-oot/+/2924162
https://git-master.nvidia.com/r/c/linux-nv-oot/+/2932422
for userland phy and SC7 support
Bug 4330040
Bug 4270736
Change-Id: I20e052f24757d0ac17501906b267bc746c3d43d2
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3000975
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
Tested-by: Jeremy Alves <jalves@nvidia.com >
Reviewed-by: Jeremy Alves <jalves@nvidia.com >
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
2023-10-22 03:23:41 -07:00
Akhil R
7cf41996cb
crypto: tegra: Free CMAC fallback tfm during exit
...
Free the CMAC fallback tfm to fix the memory leak during CMAC operation.
The fallback tfm is setup during init but never freed.
Signed-off-by: Akhil R <akhilrajeev@nvidia.com >
Change-Id: Icb9ccf330f94e93459c241ed7105a221832c0514
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2998701
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-10-22 03:23:04 -07:00
Mika Liljeberg
1d58216b05
firmware-api: capture message documentation
...
Updated documentation for VI capture channel messages and
associated structures and definitions.
Added preconditions to all control channel response messages
and clarified the descriptions a bit.
Added @brief tag to message descriptions.
Jira CAMERASW-14052
Change-Id: I40ae468b3317eee22ac08d577460e263fecc3c92
Reviewed-on: https://git-master.nvidia.com/r/c/tegra/camera/firmware-api/+/2984899
Signed-off-by: Mika Liljeberg <mliljeberg@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2993569
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3000506
Reviewed-by: Pekka Pessi <ppessi@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-10-20 17:09:34 -07:00
Mika Liljeberg
71fe53031f
firmware-api: fix kernel patch validation issues
...
Fix some warnings and errors raised by kernel patch validation
and correct some divergence from firmware-api.
Jira CAMERASW-16411
Change-Id: If3ce65b5996d73620d0a730e91a24a4114b7ffd5
Signed-off-by: Mika Liljeberg <mliljeberg@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2993559
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3000505
Reviewed-by: Pekka Pessi <ppessi@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-10-20 17:09:29 -07:00
Johnny Liu
1a32649b75
drm/tegra: Support client get_rate for OFA
...
When actmon reports the client usage information, it will call the
get_rate callback provided by the client, and divide the number of
sampled active clock cycles from the actmon counter register with the
current client rate to determine the client usage value.
Bug 4338396
Signed-off-by: Johnny Liu <johnliu@nvidia.com >
Change-Id: I5e3f69b8ed1d90407fe0b8202e7c9cde75a0dd30
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3000330
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-10-20 01:33:31 -07:00
Johnny Liu
cbde6ba274
gpu: host1x: NULL check before get_rate
...
Avoid calling get_rate function pointer when it is not supported by
the client driver.
Bug 4338396
Signed-off-by: Johnny Liu <johnliu@nvidia.com >
Change-Id: Iee7f26865d82235de7a5b41347546c1195a7ea48
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3000315
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-10-20 01:33:26 -07:00
abhinayaa
f2653ba797
drivers: pva: Update desc checks for DIM3
...
When ECET is set to DIM3, descriptor validation should happen as
follows:
- when SW sequencing is used, or the HW sequencing mode used is
"descriptor addressing", both ns1 and nd1 should be positive
- In all other cases, ns1 may be 0, nd1 must be non-zero and greater
than or equal to ns1.
Update descriptor validation checks accordingly.
Bug 4245426
Change-Id: Ie6ae7e79fd5ea9b5a1345300c6eca5f8b5d283ec
Signed-off-by: abhinayaa <abhinayaa@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2988527
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2999161
Reviewed-by: Amruta Sai Anusha Bhamidipati <abhamidipati@nvidia.com >
Reviewed-by: Omar Nemri <onemri@nvidia.com >
Tested-by: Omar Nemri <onemri@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-10-20 01:26:16 -07:00