Jian-Min Liu
1fead62f11
nvmap: Explicitly import fs symbol for ACK
...
Android Common Kernel (ACK) places restrictions on the use of symbols
like close_fd, kernel_write, filp_open, etc, exported by the fs
subsystem. These symbols have to be explicitly imported using
MODULE_IMPORT_NS to avoid build errors. Eventually, synbol usage needs
to be deprecated.
Bug 3974840
Change-Id: Iea8518162c97062b205e80bf4b81c35c873b7729
Signed-off-by: Jian-Min Liu <jianminl@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2915728
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
2023-06-09 05:35:16 -07:00
Ankita Garg
90b394e5a6
Thermal: Disable thermal module in android
...
Disable thermal module in Android Common Kernel (ACK) to avoid the
build error when building the driver with clang
Bug 3974840
Signed-off-by: Ankita Garg <ankitag@nvidia.com >
Change-Id: I98ce3269a8cb9f75c8b41865f08fcdd0749b745c
(cherry picked from commit ae5565b472f4a9b7715e392e7bb4b9d2c4854d01)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2890342
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-06-09 05:30:27 -07:00
praagarwal
45903d628b
tegra_bootloader_debug: change bl_bcp_ptr variable
...
change bl_bcp_ptr variable name to a relevent name, boot_cfg_dataptr,
for tegra_bl_bcp_arg as mentioned in a previous file
tegra_bootloader_debug_init.c for 5.15
Bug 3896536
Change-Id: I039ca2b0578d476908c1b6ee8327971dac82038b
Signed-off-by: praagarwal <praagarwal@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2916405
Reviewed-by: Deepak Nibade <dnibade@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-06-07 22:23:30 -07:00
Ashish Mhetre
9797a3c1e2
memory: tegra: Enable building of mc-<soc>
...
The copied source files for driver in linux-<soc> repo need to proper
Makefile to be built. Add required Makefile to build MC driver from
linux-<soc> repo.
Bug 3960743
Change-Id: If47a799c9ac6be7f52a55fb0d715a09a797501d8
Signed-off-by: Ashish Mhetre <amhetre@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2914094
Reviewed-by: Ketan Patil <ketanp@nvidia.com >
Reviewed-by: Sachin Nikam <snikam@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-06-07 22:12:53 -07:00
Jon Hunter
6475ddcf3d
net: nvethernet: Allow driver to be built without NVPPS
...
The nvethernet driver has a dependency on the NVPPS driver which in
turn has a dependency on the GTE driver. The GTE driver is being
transitioned to the new upstream HTE driver and while this transition is
on-going, allow the nvethernet driver to be distributed and built
without NVPPS and GTE.
Note that by default the dependency on the NVPPS driver is enabled by
setting CONFIG_TEGRA_NVPPS to 'y'. Only if the user sets
CONFIG_TEGRA_NVPPS to 'n' will it be disabled.
Bug 3918941
Bug 3961133
Change-Id: I019e5ebfddfcb158b0a684d2eacc404231577166
Signed-off-by: Jon Hunter <jonathanh@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2913273
Reviewed-by: Revanth Kumar Uppala <ruppala@nvidia.com >
Reviewed-by: Bhadram Varka <vbhadram@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-06-07 22:06:16 -07:00
Jon Hunter
de1bf0e728
net: nvethernet: Remove ivc_ext.h
...
The ivc_ext.h is not needed by the nvethernet driver and so remove this
header so that we do not need to distribute this header for building
nvethernet.
Bug 3918941
Change-Id: Ic95d6cdc8afebaa3f8e2bdf85ca63e636c05d86c
Signed-off-by: Jon Hunter <jonathanh@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2913272
Reviewed-by: Revanth Kumar Uppala <ruppala@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-06-07 22:06:11 -07:00
omar nemri
4cff480dc1
drivers: pva: combine trace definitions
...
Currently there is an ftrace definition for pva
that is called nvhost_pva. combine into tegra_pva
ftrace dfinition with include file nvpva_ftrace.h.
Bug 3829397
Change-Id: I0bffdfedad9d5010ef47ffe3f2639c1e162286b1
Signed-off-by: omar <onemri@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2914938
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-06-06 02:09:29 -07:00
shaochunk
8b310f6369
devfreq: Add governor attribute for nvhost_podgov
...
add governor attributes for nvhost_podgov in K5.15
- timer
- polling_interval
Bug 4137663
Change-Id: Ib8a989dec51474ba507a33cdc232fa24212414a5
Signed-off-by: Shao-Chun Kao <shaochunk@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2913189
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com >
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com >
Reviewed-by: Rajkumar Kasirajan <rkasirajan@nvidia.com >
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-06-06 01:55:32 -07:00
praagarwal
a88e0ab87c
tegra_bootloader_debug: Add functions to read from cmd line
...
Add functions to tegra_bootloader_debug to read addresses
from kernel command line for 5.15.
Bug 3896536
Change-Id: Ie0f75bab54b9455ce465740a2ab06a54046657fd
Signed-off-by: praagarwal <praagarwal@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2908980
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-06-06 01:51:05 -07:00
Mohit Ingale
9a0d5b4bb1
tegra: cam fsync: fix log level
...
Bug 3799488
Change-Id: I95ac91b9dd9d71496630df4f267f235448af1b2b
Signed-off-by: Mohit Ingale <mohiti@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2912837
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Frank Chen <frankc@nvidia.com >
Reviewed-by: Ian Kaszubski <ikaszubski@nvidia.com >
Reviewed-by: Shiva Dubey <sdubey@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-06-05 06:38:46 -07:00
Joshua Cha
69315af003
nvsciipc: remove CONFIG_TEGRA_OOT_MODULE config
...
For kernel/nvidia-oot code, it doesn't need CONFIG_TEGRA_OOT_MODULE.
Add nvsciipc related header files for x86 build.
Bug 4096403
Change-Id: Ib4c3109bee01e12a62774dbf2a37a48778472fe6
Signed-off-by: Joshua Cha <joshuac@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2913022
Reviewed-by: Kurt Yi <kyi@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-06-03 19:18:14 -07:00
Ankita Garg
a15aff6b43
mods: Disable mods in ACK
...
Disable mods in android common kernel (ACK). ACK places restrictions on
the use of symbols exported by the fs subsystem. These symbols have to
be explicity imported using MODULE_IMPORT_NS. To avoid build errors,
disable mods functionality as of now.
Bug 3974840
Change-Id: I28bcb574ba722415a62a68f81d6579e2fd8a1d51
Signed-off-by: Ankita Garg <ankitag@nvidia.com >
(cherry picked from commit ff77fe1566b536cb2243b6158ec6cf7e90f614bc)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2910059
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-06-03 19:17:06 -07:00
Akshay Tigga
506ac0dcea
Remove nvhost-vi5.o from ACK build
...
Including nvhost-vi5.o in ACK build gives
the following errors :
ERROR: modpost: "vi_channel_drv_fops_register" undefined!
ERROR: modpost: "tegra_vi_media_controller_cleanup" undefined!
ERROR: modpost: "vi_channel_drv_unregister" undefined!
Bug 3974840
Change-Id: I85050b229eab88e60a02d244c95b9dad0a5b6851
Signed-off-by: Bruce Xu <brucex@nvidia.com >
(cherry picked from commit eea31fd3f7b941c124f210278d878b42f6edf469)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2910056
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Ankita Garg <ankitag@nvidia.com >
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
Tested-by: Ankita Garg <ankitag@nvidia.com >
2023-06-03 19:17:01 -07:00
Akshay Tigga
327bc17760
Remove nvhost-nvcsi-t194.o from ACK build
...
Including nvhost-nvcsi-t194.o in ACK build gives
the following errors :
ERROR: modpost: "tegra_csi_media_controller_remove" undefined!
ERROR: modpost: "tegra_csi_media_controller_init" undefined!
ERROR: modpost: "csi5_fops" undefined!
Bug 3974840
Change-Id: Iad263a8aa0cef443dd4629d52417e5d104baf9fa
Signed-off-by: Bruce Xu <brucex@nvidia.com >
(cherry picked from commit ef3dfca356c6d41ca6a9a590d0bec861aeb50b41)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2910055
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Ankita Garg <ankitag@nvidia.com >
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
Tested-by: Ankita Garg <ankitag@nvidia.com >
2023-06-03 19:16:57 -07:00
Akshay Tigga
e965326be0
Remove nvhost-isp5.o in ACK build
...
Including nvhost-isp5.o in ACK build gives
these errors :
ERROR: modpost: "isp_channel_drv_register" undefined!
ERROR: modpost: "isp_channel_drv_init" undefined!
ERROR: modpost: "isp_channel_drv_exit" undefined!
ERROR: modpost: "isp_channel_drv_unregister" undefined!
Bug 3974840
Change-Id: Iadf8042e857e5083e19773ff1cc071382db75c9c
Signed-off-by: Bruce Xu <brucex@nvidia.com >
(cherry picked from commit d8dc0c2b04c86720e0de0db7c469cc19bce6a9c3)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2910054
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Ankita Garg <ankitag@nvidia.com >
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
Tested-by: Ankita Garg <ankitag@nvidia.com >
2023-06-03 19:16:52 -07:00
Ankita Garg
c74e091fc8
rtl8822ce: Disable driver in android
...
Disable wireless driver rtl8822ce in android to avoid build error
when building Android Common Kernel (ACK) using clang
Bug 3974840
Change-Id: If7d11a9812e017178335de5fcd501db8e09de423
Signed-off-by: Ankita Garg <ankitag@nvidia.com >
(cherry picked from commit 3391f471559a3e9e0cb68b502a29ff2f637e7b31)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2910050
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-06-03 19:16:47 -07:00
Akshay Tigga
78f3c02fcd
Remove tegra-camera.o from ACK build
...
Including tegra-camera.o in ACK build will lead to the
following errors :
ERROR: modpost: "v4l2_async_register_subdev" undefined!
ERROR: modpost: "v4l2_fwnode_put_link" undefined!
ERROR: modpost: "v4l2_async_notifier_init" undefined!
ERROR: modpost: "__v4l2_async_notifier_add_subdev" undefined!
ERROR: modpost: "v4l2_async_notifier_register" undefined!
ERROR: modpost: "v4l2_fwnode_parse_link" undefined!
ERROR: modpost: "vb2_dma_contig_set_max_seg_size" undefined!
ERROR: modpost: "v4l2_async_unregister_subdev" undefined!
ERROR: modpost: "v4l2_async_notifier_unregister" undefined!
Bug 3974840
Change-Id: Ia76a0e79efd495189d0de7053101bdfd3309fba8
Signed-off-by: Bruce Xu <brucex@nvidia.com >
(cherry picked from commit d53366444ca977e09622331aad1cb1913a8ceed0)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2909237
Tested-by: Ankita Garg <ankitag@nvidia.com >
Reviewed-by: Ankita Garg <ankitag@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-06-03 19:16:43 -07:00
Akshay Tigga
75b97da7e0
Set correct path for tegra-dtstree in ACK builds
...
Bug 3974840
Change-Id: I1d5b96e07396071e1d267ae4f5d767aab32b675d
Signed-off-by: Bruce Xu <brucex@nvidia.com >
(cherry picked from commit de06f79e350dbe169aaecdcac1a562838cd8ca92)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2910052
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Ankita Garg <ankitag@nvidia.com >
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
Tested-by: Ankita Garg <ankitag@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-06-03 19:16:38 -07:00
Ketan Patil
a56b9fc61c
mc-utils: Update driver so as to support multiple SOCs
...
Current mc-utils driver is specific to T234 without any support for
extending it to future SOCs. Add such support so that it can be easily
extended for future chips.
- Create a struct of function pointers of all present operations
- Set these function pointers as per SOCs
Bug 4090660
Change-Id: I93e9da987bce1e563eb03aeeb0ac8bcb9da48023
Signed-off-by: Ketan Patil <ketanp@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2911894
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com >
Reviewed-by: Sachin Nikam <snikam@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-06-02 11:03:17 -07:00
Arihant Jejani
0e6d4c804f
nvscic2c: Implement Read-After-Write ordering WAR
...
- Ordering between message/data and host1x syncpoints is not enforced
strictly.
- Out of the possible WARs, implement dummy PCIe Read between
data/message write and notifications towards peer / remote post-fences.
- WAR: (IPC/messaging mode)For any UMD produced data towards peer,
before notification is triggered, issue a dummy PCIe read via CPU.
- WAR: (streaming mode)DMA flush-ranges(data), wait for DMA interrupt,
when success issue dummy PCIe reads via CPU on remote post-fences
+ issue CPU PCIe writes on each remote post-fence. To achieve this,
CPU map every imported sync object.
NVIPC-974
Change-Id: Id6711d372c0a35e13e399ffbbcd8efcabf147c56
Signed-off-by: Arihant Jejani <ajejani@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2912894
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Janardhan Reddy A <jreddya@nvidia.com >
Reviewed-by: Vipin Kumar <vipink@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-05-31 18:41:36 -07:00
Johnny Liu
1285186621
platform: tegra: Add mc_all central actmon driver
...
Actmon DFS for EMC has been moved to BPMP side. This driver simply reads
the exponential moving average counter register of the MC_ALL client and
export the value in the sysfs node to let tegrastats read the
utilization value of the EMC.
Bug 4041434
Signed-off-by: Johnny Liu <johnliu@nvidia.com >
Change-Id: I2b7e6592094d27c47f738fc26ee9091ea209f630
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2912315
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-05-31 11:33:11 -07:00
Revanth Kumar Uppala
06d3a03630
dt-bindings: nvethernet: nvethernet DT binding doc
...
Captures the DT binding documentation for the
nvethernet driver
Bug 3837018
Change-Id: Ifd77ae28499e41d7134777f088063871b36f0e88
Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2911843
Reviewed-by: Narayan Reddy <narayanr@nvidia.com >
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
2023-05-31 11:32:16 -07:00
Jon Hunter
19de9797ba
platform: tegra: rtcpu: Consolidate Makefiles
...
Consolidate the RTCPU drivers under a single sub-directory so that a
single Makefile is used to build all these drivers. This also simplifies
the paths for finding the necessary header files.
Bug 4078936
Change-Id: I88e45a2954f759ee0bc8a359bfdf3ef09a55617a
Signed-off-by: Jon Hunter <jonathanh@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2897318
(cherry picked from commit 320cf14261d1cf8bcf76cbb030186e7391ca8670)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2898616
Reviewed-by: Ankur Pawar <ankurp@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-05-31 11:29:05 -07:00
omar
3fda4da5d8
drivers: pva: use ftrace instead of eventlib
...
deprecate use of eventlib and use ftrace instead
for reporting task statistics.
pass prog and stream ID to ftrace events.
Bug 4080222
Change-Id: Id304baba109cde5392f3f297a745c8084b07613a
Signed-off-by: omar <onemri@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2911268
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com >
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com >
Reviewed-by: Nikita Chumakov <nchumakov@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-05-30 12:18:45 -07:00
omar
cde5ffd7c5
drivers: pva: add stream and prog ID
...
Add stream_id and prog_id to the task submit struct.
This information can then be passed to profilers to
track which events belong to which tasks and processes.
This can be either via eventlib or ftrace.
Bug 4080222
Change-Id: I6e5d80868022b0beffd2b11330b93ab302c96ee5
Signed-off-by: omar <onemri@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2911560
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-05-30 12:18:40 -07:00
Nagarjuna Kristam
55e4803b61
PCI: tegra194: Ring doorbell If DMA is not running
...
Issue:
During multi threaded testing, there are cases where EDMA HW enters
stopped state even through there are pending descriptors to process.
This happens even when doorbell is rung after updating descriptors and
barriers places.
Fix:
After processing channel interrupt, ring doorbell, if there are pending
descriptors and for that channel is not running.
Bug 4111305
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2905177
Change-Id: I9d1bd391f690abc58cf262f62606c42504150b13
Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2910921
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-05-30 07:40:00 -07:00
Nagarjuna Kristam
37956be9b4
PCI: EPF: dma-test: Remove dead code
...
pci-epf-dma-test is initially written with DMA programming part of
it. Now DMA driver is available separate and DMA programming part of
this driver conflicts with actual programming and results in unexpected
behaviour. Remove non DMA driver test interaction code.
Bug 4124875
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2907365
Change-Id: Id86ea10d64c13381d4931aa742ba530e0295d10f
Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2910916
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com >
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-05-30 07:39:29 -07:00
Nagarjuna Kristam
c150e5bd00
Misc: pci-dma-test: Remove dead code
...
tegra-pcie-dma-test is initially written with DMA programming part of
it. Now DMA driver is available separate and DMA programming part of
this driver conflicts with actual programming and results in unexpected
behaviour. Remove non DMA driver test interaction code.
Bug 4124875
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2908378
Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com >
Change-Id: I0266899ef1a9394b73084191053b35163905617e
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2910914
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com >
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-05-30 07:39:18 -07:00
Nagarjuna Kristam
ffda313d72
PCI: tegra194: Fix edma desc size for remote EDMA
...
For Remote EDMA desc size is not updated and this results in
error during IRQ processing. Fix the same
Bug 4130564
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2909597
Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com >
Change-Id: I5129f258a60139fe0f9e6c1226d0faf7c546f488
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2910912
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com >
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-05-30 07:39:08 -07:00
Ankur Pawar
f93dd37a22
media: add lt6911uxc sensor driver
...
Add lt6911uxc HDMI->CSI sensor driver code,
This driver is copied K5.10 camera driver repo.
Bug 3583587
Bug 4111965
Change-Id: Ib01ac4c4d7d44073858009a8b41c42fa7083c020
Signed-off-by: Ankur Pawar <ankurp@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2793944
Reviewed-by: Praveen AC <pac@nvidia.com >
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
Reviewed-by: Shubham Chandra <shubhamc@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-05-30 07:33:01 -07:00
Mikko Perttunen
c8025c218b
gpu: host1x: Wait prefences outside MLOCK
...
The current submission opcode sequence first takes the engine MLOCK,
and then switches to HOST1X class to wait prefences. This is fine
while we only use a single channel per engine and there is no
virtualization, since jobs are serialized on that one channel anyway.
However, when that assumption doesn't hold, we are keeping the
engine locked while not running anything on it while waiting for
prefences to complete.
To resolve this, execute wait commands in the beginning of the job
outside the engine MLOCK. We still take the HOST1X MLOCK because
recent hardware requires register opcodes to be executed within some
MLOCK, but the hardware also allows unlimited channels to take the
HOST1X MLOCK at the same time.
Jira HOSTX-4687
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com >
Change-Id: I783cbc7f1bbd7415fbf0e61163935186b2ba0a44
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2911124
Reviewed-by: Santosh BS <santoshb@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-05-29 15:08:46 -07:00
Matti Ryttylainen
c9146a4fd9
camera: Enable deferred unmapping for vi/isp
...
Enable deferred dma buffer unmapping for vi/isp devices
Bug 4067905
Change-Id: I193f762d580d1e0477137f57195b2cb81d4b9d91
Signed-off-by: Matti Ryttylainen <mryttylainen@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2910545
Tested-by: Ashish Mhetre <amhetre@nvidia.com >
Reviewed-by: Ashish Mhetre <amhetre@nvidia.com >
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com >
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Kalle Jokiniemi <kjokiniemi@nvidia.com >
Reviewed-by: Frank Chen <frankc@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-05-29 04:03:27 -07:00
Akshay Tigga
d4d60fd1f8
Fix "Section mismatches detected"
...
Error:
Section mismatch in reference from the function
tegra_hv_probe() to the function .init.text:tegra_hv_setup()
Bug 3974840
Change-Id: Ie63e9db981836345512a0678e39b0574384e6c5a
Signed-off-by: Bruce Xu <brucex@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2901637
(cherry picked from commit ac941e3f8846fb4a7e20cf6df86e12be847bc530)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2910057
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Shardar Mohammed <smohammed@nvidia.com >
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
Tested-by: Shardar Mohammed <smohammed@nvidia.com >
2023-05-29 03:55:50 -07:00
Akshay Tigga
75ac42b84c
WAR: Add "VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver"
...
Android common kernel prevents the use of symbols exported from the
fs subsystem in other modules. As a WAR we need to explicity import
"VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver"
until the migration is complete to remove the use of such symbols.
Bug 3974840
Change-Id: Icb47eba34d069ec287e5ad5bd2e046b0f96f401c
Signed-off-by: Bruce Xu <brucex@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2901632
(cherry picked from commit bfd7dc903f050f778f105af07e4ddfbde8497881)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2910053
Reviewed-by: Shardar Mohammed <smohammed@nvidia.com >
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
Tested-by: Shardar Mohammed <smohammed@nvidia.com >
2023-05-29 03:55:46 -07:00
brucex
ced8d91df7
tegra_hv_vcpu_yield_ioctl: Fix header #ifdef
...
Incorrect header protection led to build error with clang (used to build
android common kernel)
Bug 3974840
Signed-off-by: Bruce Xu <brucex@nvidia.com >
Change-Id: I3a6ba014fbad24561ef5f46b313596876c227a49
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2895935
(cherry picked from commit 49dc6cf08e312d1bb0900ea890e22cd931c25f39)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2859501
Reviewed-by: Shardar Mohammed <smohammed@nvidia.com >
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
Tested-by: Shardar Mohammed <smohammed@nvidia.com >
2023-05-29 03:55:41 -07:00
brucex
1ce0ed3f5b
tegra_hv_net: Fix wrong var type
...
mac_address is defined wrongly and it does not
match the return type of function of_get_mac_address.
Bug 3974840
Signed-off-by: Bruce Xu <brucex@nvidia.com >
Change-Id: I582c3755b0e2121b2e937dc77b3f9af8694e4357
(cherry picked from commit 8f8de48950266048eaf142cbdec66b1b7ccf0737)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2859221
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Shardar Mohammed <smohammed@nvidia.com >
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
Tested-by: Shardar Mohammed <smohammed@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-05-29 03:55:37 -07:00
Manish Bhardwaj
3a6ae071af
nvidia: add no_sanitize_address attribute
...
add no_sanitize_address attribute if KASAN is enabled
Bug 4121072
Signed-off-by: Manish Bhardwaj <mbhardwaj@nvidia.com >
Change-Id: I2bb4b60f0e95e7b93d792010474d6503b97ac392
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2908208
Tested-by: Tonny Liang <tonnyl@nvidia.com >
Reviewed-by: Sachin Nikam <snikam@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-05-24 08:59:12 -07:00
omar
8a8d6ba182
drivers: pva: boot parameters to FW in mailboxes
...
Change FW boot to not program segment registers directly.
Instead the values are passed in mailboxes at boot time and
FW will progbram the registers.
In virtualized environments, KMD will not have access to these
registers.
Bug 3971973
Change-Id: Iea935cbb9fb7898d229935da7b6495a325f24356
Signed-off-by: omar <onemri@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2899228
Reviewed-by: svcacv <svcacv@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2908814
2023-05-24 08:49:31 -07:00
Jon Hunter
05bfbdef14
platform: tegra: rtcpu: Rename debug driver
...
The name of rtcpu's debug kernel module, debug.ko, is not very
descriptive and for users it is unclear what subsystem this 'debug'
kernel module is used by. So rename this to 'rtcpu-debug.ko' so that it
is clear this belongs to the camera subsystem.
Bug 4078936
Change-Id: I77da43fb0d54d1ea058f4c3d6c313f49a85b7cfa
Signed-off-by: Jon Hunter <jonathanh@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2890897
Reviewed-by: Matti Ryttylainen <mryttylainen@nvidia.com >
Reviewed-by: Frank Chen <frankc@nvidia.com >
Reviewed-by: Ankur Pawar <ankurp@nvidia.com >
Tested-by: Ankur Pawar <ankurp@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-05-24 02:47:39 -07:00
Chris Dragan
f88f38ce92
remove support for T194 display
...
Bug 4115277
Change-Id: I2ae6997686aa739c3b2d4cb81a01a07d5121514c
Signed-off-by: Chris Dragan <kdragan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2907311
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Sachin Nikam <snikam@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-05-23 20:56:48 -07:00
Jon Hunter
9a3174280f
platform: tegra: Remove CVNAS driver
...
The CVNAS driver is not needed for Tegra234 and future devices. Remove
the CVNAS driver and support for CVNAS from DLA, NVMAP and PVA dirvers.
Bug 4037930
Change-Id: I5d1ae3c195485cb094f9b9b480f91d81fd04687c
Signed-off-by: Jon Hunter <jonathanh@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2903848
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-05-23 20:56:08 -07:00
Kartik
966af3a139
watchdog: tegra: Add virtualization support
...
Tegra TKE WDT can be used from a Guest OS to check if the system is
responsive. In case of system hang/crash the WDT should report an
error event to HSM.
Add device tree property "nvidia,wdt-error-threshold" to configure
expiry level for HSM event trigger.
This patch also includes following bug fixes:
- fix an issue in which WDT keeps running after system shutdown even
if it is disabled from device tree.
- fix an issue where the driver keeps patting WDT even if
enable-on-init is disabled.
Bug 4080471
Change-Id: I8e660e68edbb7c97fa8fb2fdd7fafa8bf2a87884
Signed-off-by: Kartik <kkartik@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2903911
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
(cherry picked from commit ff027900b83e985e50c78adf2b898ad078d5b60a)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2897226
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-05-22 19:14:42 -07:00
Ashish Mhetre
db78501061
video: tegra: nvmap: Adding NvMap config for deferred unmap
...
Add NvMap config for enabling/disabling deferred dma-buf unmapping.
Keep it disabled by default and enable it based on
CONFIG_DMABUF_DEFERRED_UNMAPPING.
Bug 4067905
Bug 4115589
Change-Id: Ib1ee63cdd61a346f2f9894bb3caf406ae5f159c5
Signed-off-by: Ashish Mhetre <amhetre@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2905251
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com >
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com >
Reviewed-by: Sachin Nikam <snikam@nvidia.com >
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-05-22 06:37:37 -07:00
Akshata
2e59846460
nvdla: kmd: Add ftrace support
...
+ Replace eventlib with ftrace for Linux-OOT kernel
+ Added event logging for:
* job_submit
* job_prefence
* job_postfence
* job_timestamps
JIRA DLA-6820
Change-Id: I4d1ad1b535b2422257e9e1dce8d94ee317c65feb
Signed-off-by: Akshata Bhat <akshatab@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2906273
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com >
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com >
Reviewed-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com >
Reviewed-by: Arvind M <am@nvidia.com >
Reviewed-by: Ken Adams <kadams@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-05-20 07:31:01 -07:00
Laxman Dewangan
a4136b7e63
platform: tegra: Remove firmware class and inventory drivers
...
Remove firmware class and firmware inventory modules drivers
as these are not used anymore.
Bug 4090910
Change-Id: Ibef41b6ba026a6d6f24ec79b4b7aaa47bc62632a
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2905556
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-05-20 07:29:16 -07:00
Dipesh Gandhi
95e971616e
cdi-dev: Add TPS2H160B support
...
Add TPS2H160B device PoC support for p3898 platform
Bug 4066218
Change-Id: I9b237d233614e1a23b08b91101db9be9db8e4958
Signed-off-by: Dipesh Gandhi <dipeshg@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2885804
(cherry picked from commit ab43d7eab8918cad5afccc1b7cb66b3ee65bf08f)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2889935
Reviewed-by: Frank Chen <frankc@nvidia.com >
Reviewed-by: Aniket Bahadarpurkar <aniketb@nvidia.com >
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com >
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com >
Reviewed-by: Shiva Dubey <sdubey@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-05-20 07:25:24 -07:00
Laxman Dewangan
06859203ea
remove file kernel-src-files-copy-list.txt
...
All drivers from the kernel/nvidia are copied to
kernel/nvidia-oot. Hence, remove the file which
has list of files/directories which were needed
to copy at build time.
bug 4038415
Change-Id: I7748a95e1d162daabbc50dcf2f171ebac235665c
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2905496
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-05-18 23:47:09 -07:00
Revanth Kumar Uppala
0a8365166e
nvethernet:Fix compilation errors in Linux safety
...
Issue:
Observed below compilation issues
on the nvethernet driver for DRIVE Linux safety
builds as some macros/functions are defined with
"OSI_STRIPPED_LIB" protection but they are used
directly without any protection.
1./automotive-dev-main-20230516T005516255/out/embedded-linux-generic-release-safety/nvidia/kernel-rt_patches-nvidia-oot/nvidia-oot/drivers/net/ethernet/nvidia/nvethernet/sysfs.c:2641:33: error: ‘OSI_INSTANCE_ID_EQOS’ undeclared (first use in this function)
2641 | if (osi_core->instance_id == OSI_INSTANCE_ID_EQOS)
| ^~~~~~~~~~~~~~~~~~~~
2./automotive-dev-main-20230516T005516255/out/embedded-linux-generic-release-safety/nvidia/kernel-rt_patches-nvidia-oot/nvidia-oot/drivers/net/ethernet/nvidia/nvethernet/sysfs.c:2733:3: error: ‘dev_attr_hsi_enable’ undeclared here (not in a function)
2733 | &dev_attr_hsi_enable.attr,
| ^~~~~~~~~~~~~~~~~~~
Fix:
Add OSI_STRIPPED_LIB macro protection
for required functions.
Bug 3959085
Change-Id: Ifef1c72b5ddedc4d550280eace305bbade290bbf
Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2905357
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-05-18 23:46:40 -07:00
Nagarjuna Kristam
6a981ab712
PCI: EPF: dma-test: Fix Coevrity issues
...
Fix coverity issue of dead code and unreachable code.
Bug 3952896
Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com >
Change-Id: I6ca4b485f6b053ea6787b76f3fae95d8f6914c98
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2905249
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com >
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com >
Reviewed-by: Manikanta Maddireddy <mmaddireddy@nvidia.com >
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-05-18 23:46:12 -07:00
Revanth Kumar Uppala
98b2b3ff4f
nvethernet: Skip the device resume via mdio bus
...
Enable "phydev->mac_managed_pm" so that device
won't be resumed for second time via mdio bus
Bug 4071996
Change-Id: Ib35bc1459bd882a2b940d4f28bd9d2c76719bfc7
Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2901540
Reviewed-by: Bhadram Varka <vbhadram@nvidia.com >
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
Reviewed-by: Narayan Reddy <narayanr@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-05-18 23:41:10 -07:00