Chris Dragan
9896b7bddc
misc: mods: update MODS kernel driver to 3.94
...
Change-Id: Ib80e8ab4685e4edf48df6dcd3aa36e2efe7fdbcb
Signed-off-by: Chris Dragan <kdragan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/2188947
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-04-03 13:27:52 +00:00
Chris Dragan
003f79282f
misc: mods: update MODS kernel driver to 3.93
...
Change-Id: I6bc81407edbd448867c0b6d979d2eb3920c0e95c
Signed-off-by: Chris Dragan <kdragan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/2156158
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-04-03 13:27:52 +00:00
Nicolin Chen
9ca6957981
misc: mods: Fix segment_size overflow bug
...
The sg->length may happen to be a large size, and this
will overflow the local segment_size when accumulating
sg->length to it at line "segment_size += sg->length".
Since segment_size of MODS_DMABUF_GET_PHYSICAL_ADDRESS
structure is defined in u64 type, this patch fixes the
bug by changing the local varible to u64 as well.
Bug 2521255
Change-Id: Id1fb6d149f55f4fd9238a399393ed2efae77c84a
Signed-off-by: Nicolin Chen <nicolinc@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/2105445
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ashish Mhetre <amhetre@nvidia.com >
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-04-03 13:27:52 +00:00
Ashish Mhetre
6f325d969e
drivers: mods: Add a dummy device driver
...
Add a dummy device driver for retrieving physical address through dma_buf.
Set dma_mask bit to 39 during probe of this driver to add large mapping
support upto 512GB.
Bug 2482094
Change-Id: I4e6204bb2b5196b7362d547ee393abf6e291a043
Signed-off-by: Ashish Mhetre <amhetre@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/2002758
Reviewed-by: Chris Dragan <kdragan@nvidia.com >
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com >
Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com >
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-04-03 13:27:52 +00:00
Chris Dragan
0395435413
misc: mods: update MODS driver to 3.91
...
Change-Id: I7bfcb63a7034c53e4b9773210442fa90d0855f39
Signed-off-by: Chris Dragan <kdragan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/1998610
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com >
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-04-03 13:27:52 +00:00
Ashish Mhetre
01afe170c6
drivers: mods: Assign dma_ops to the device
...
dummy_device created in mods test does not have dma_ops set to it.
So explicitly set the dma_ops of device to swiotlb_dma_ops.
Bug 200460613
Change-Id: Ie9902f1c0b07948ea04355aa754b023f10f7581d
Signed-off-by: Ashish Mhetre <amhetre@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/1975103
Reviewed-by: Chris Dragan <kdragan@nvidia.com >
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-04-03 13:27:52 +00:00
Chris Dragan
63bb979778
misc: mods: fix handling regions >4GB
...
The API for retrieving PAs needs to correctly handle offsets which
exceed 4GB.
Bug 1860962
Change-Id: I877c370d97c35fde565c70cd86a95093be083ebb
Signed-off-by: Chris Dragan <kdragan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/1958611
Reviewed-by: Sami Kiminki <skiminki@nvidia.com >
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-04-03 13:27:52 +00:00
Chris Dragan
bf8bcb968d
misc: mods: update MODS driver from Perforce
...
Change-Id: Ic63f4f9c86c4575926ac33d8872199a59e9224ce
Signed-off-by: Chris Dragan <kdragan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/1944110
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-04-03 13:27:52 +00:00
Chris Dragan
5a7a662974
misc: mods: update MODS driver from Perforce
...
Bug 2418720
Change-Id: If2c51596a576ea11fd514c9bd6090b871d25c524
Signed-off-by: Chris Dragan <kdragan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/1927063
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-04-03 13:27:52 +00:00
Phani Shankar Palani Ramamurthy
e707e546f1
Create display debugfs only if tegradc is enabled
...
Create display debugfs nodes in mods kernel
driver only if tegradc is supported
Bug 2331746
Change-Id: I906011c10d1fe9fafa83537290fce3916fc7f433
Signed-off-by: Phani Shankar <ppalaniramam@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/1848526
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ujwal Patel <ujwalp@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-04-03 13:27:52 +00:00
Chris Dragan
7145a3f32b
misc: mods: disable SWIOTLB detection
...
Removed #define MODS_HAS_DMA_OPS 1
and #define MODS_HAS_NONCOH_DMA_OPS 1
Bug 200435359
Change-Id: I17b901422fa2fa991c81bee77ab166071ebddb3f
Signed-off-by: Chris Dragan <kdragan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/1810719
Reviewed-by: Sachin Nikam <snikam@nvidia.com >
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-04-03 13:27:52 +00:00
Chris Dragan
e5ec8349f7
misc: mods: update MODS driver from Perforce
...
Bug 2142482
Change-Id: I340ffd337a963e95b59a2496686039f339be860f
Signed-off-by: Chris Dragan <kdragan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/1754568
Reviewed-by: Sachin Nikam <snikam@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-04-03 13:27:52 +00:00
Mitch Luban
bf5cb93fe0
video: tegra: dc: remove SD drivers
...
Smartdimmer was a feature to allow for backlight reduction with
minimal degredation in image quality. It's since been deprecated.
Removing the dead code for improved code coverage analysis.
TDS-3581
Change-Id: I4ee30e67b097a932389e8ba0df9b50a174fccdd3
Signed-off-by: Mitch Luban <mluban@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/1579437
Reviewed-by: Prafull Suryawanshi <prafulls@nvidia.com >
Tested-by: Prafull Suryawanshi <prafulls@nvidia.com >
GVS: Gerrit_Virtual_Submit
Reviewed-by: Santosh Galma <galmar@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-04-03 13:27:52 +00:00
Chris Dragan
a6d4a6e991
misc: mods: update MODS driver from Perforce
...
Change-Id: Ib0d45a0526977297f97970daef2703c2922fa2bd
Signed-off-by: Chris Dragan <kdragan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/1711148
Reviewed-by: Lael Jones <lajones@nvidia.com >
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-04-03 13:27:52 +00:00
Chris Dragan
7086ef70a9
misc: mods: remove smartdimmer support
...
Change-Id: I57d34222ca496e4fbdc70c9001e5efa529ee03ab
Signed-off-by: Chris Dragan <kdragan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/1702334
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Lael Jones <lajones@nvidia.com >
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-04-03 13:27:52 +00:00
Chris Dragan
3d23556af2
misc: mods: update MODS driver from Perforce
...
Bug 2059566
Change-Id: I18513ad05258e3a4e0f17b8be126fc5a8626c1fa
Signed-off-by: Chris Dragan <kdragan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/1672101
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-04-03 13:27:52 +00:00
Chris Dragan
ea94515885
mods: update MODS driver from Perforce
...
Bug 2059241
Change-Id: Id86dca16e7a3c833188b7859b31cdb18bd37087c
Signed-off-by: Chris Dragan <kdragan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/1665674
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com >
Reviewed-by: Lael Jones <lajones@nvidia.com >
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-04-03 13:27:52 +00:00
Ishwarya Balaji Gururajan
c047205b73
mods: video: tegra: dc: remove NVDISPLAY ifdefs
...
remove NVDISPLAY ifdefs and replace it with runtime APIs instead.
Jira TDS-2761
Change-Id: I01a4b1f527b85fd1de1094f30512915216d413ad
Signed-off-by: Ishwarya Balaji Gururajan <igururajan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/1653826
Reviewed-by: Shu Zhong <shuz@nvidia.com >
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-04-03 13:27:52 +00:00
Ajay Nandakumar
e2187c16d6
mods: Suspend adsp instead of stopping
...
Bug 200381062
Change-Id: I36d7eba4159209606adf89fdf41615e39ff87d5c
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/1645024
Reviewed-by: Sachin Nikam <snikam@nvidia.com >
Tested-by: Sachin Nikam <snikam@nvidia.com >
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com >
GVS: Gerrit_Virtual_Submit
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-04-03 13:27:52 +00:00
Chris Dragan
5014bffa1f
misc: mods: update MODS driver from Perforce
...
Bug 1919226
Bug 1996694
Change-Id: I60699dfee31703f755d237d3524887c73b3c53bc
Signed-off-by: Chris Dragan <kdragan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/1603096
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-04-03 13:27:52 +00:00
Chris Dragan
dd5a891726
misc: mods: move the warning to the correct place
...
Print the warning that a diagnostic driver has been loaded to the place
where the driver is loaded, rather than printing it when someone opens
the device.
Bug 1955717
Change-Id: I26a1699423e302cd01f5683891df6e9ed06a9192
Signed-off-by: Chris Dragan <kdragan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/1587034
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Dan Merget <dmerget@nvidia.com >
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-04-03 13:27:52 +00:00
Stephen Warren
58e42df824
nvidia: use kernel overlay features
...
Update all Kconfig files and Makefiles to rely on the kernel overlay
feature. In particular, don't include any Kconfig files or Makefiles
from other overlays. -I directives in CFLAGS are not yet cleaned up.
Bug 1978395
Change-Id: I425d37d55f8ea61fb3a082a1504f994ff30cec03
Signed-off-by: Stephen Warren <swarren@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/1561187
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com >
GVS: Gerrit_Virtual_Submit
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-04-03 13:27:52 +00:00
Chris Dragan
135bf80925
misc: mods: update to version 3.78 from Perforce
...
Bug 1955717
Change-Id: I66e4d91555a0161e45f18e558277410ce17bd635
Signed-off-by: Chris Dragan <kdragan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/1577854
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com >
2023-04-03 13:27:52 +00:00
Chris Dragan
4ba7812b29
misc: mods: add release function
...
Add dummy release function to prevent an error printed during module
unload.
Bug 200344064
Change-Id: Ifa92600e88c4152327079c37ec9ed581179c0860
Signed-off-by: Chris Dragan <kdragan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/1551847
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com >
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com >
2023-04-03 13:27:52 +00:00
Ishwarya Balaji Gururajan
a0c3b48960
video: tegra: dc: remove TEGRA_DC_INTERLACE
...
Since CONFIG_TEGRA_DC_INTERLACE is enabled by default, removing
CONFIG_TEGRA_DC_INTERLACE from the Kconfig and other places.
Jira TDS-2379
Change-Id: I58529a3e123eb99815f77f8420ae60e493eec07a
Signed-off-by: Ishwarya Balaji Gururajan <igururajan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/1530092
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-04-03 13:27:52 +00:00
Ishwarya Balaji Gururajan
51d3348251
video: tegra: dc: remove TEGRA_DC_SCAN_COLUMN
...
Since CONFIG_TEGRA_DC_SCAN_COLUMN is enabled by default, removing
CONFIG_TEGRA_DC_SCAN_COLUMN from Kconfig and other places.
Jira TDS-2379
Change-Id: I7c4beb7c6ad725edefe852dfe5962e118d4dcfbf
Signed-off-by: Ishwarya Balaji Gururajan <igururajan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/1529916
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com >
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com >
2023-04-03 13:27:52 +00:00
Chris Dragan
1bc2ff7f74
misc: mods: use kmap when clearing cache
...
Map pages to kernel space when clearing memory ranges requested
by userspace. This now seems to be required to clear cache on
kernel 4.9.
Use kmap_atomic assuming that cache clearing does not sleep.
Change-Id: Id1e5f615b41cc46801889766edf73ba34c6346c1
Signed-off-by: Chris Dragan <kdragan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/1528123
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com >
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com >
2023-04-03 13:27:52 +00:00
Ujwal Patel
79dc897560
dc: remove TEGRA_DC_BLENDER_GEN2 ifdef
...
TEGRA_DC_BLENDER_GEN2 configuration is enabled always if TEGRA_DC
configuration is enabled. And TEGRA_DC configuration is a must for
display to work. So TEGRA_DC_BLENDER_GEN2 ifdef is not needed and
can be safely removed to reduce ifdefs in display driver.
Change-Id: I4e1fde93d7b515a26bc6ce0b00915440dc30b13d
Signed-off-by: Ujwal Patel <ujwalp@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/1524810
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-04-03 13:27:52 +00:00
Anshuman Kar
d7d3025725
dc: add support for SW defined color formats
...
Due to implementation of SW formats which extend the display
color formats beyond 0xff, the format masks as well as the
byteswap masks have to be updated.
This change updates the following:
- Marks all SW defined formats as starting from 0x100
- Shifts all the byte swap masks to start at 0x10000
- Updates the SW and byte swap masks
- Updates the functions which classify yuv, planar and semi
planar formats
- Add the SW defined formats to the feature table listings
- Add SWAP_UV for vertical chroma subsampled formats
- Removes the SWAP UV flag
- Add sanity checks for SW defined formats in the kernel
Bug 1904472
Change-Id: I18f6cf69610e5bff206fa6b1336f63ee9a9a7424
Signed-off-by: Anshuman Kar <anshumank@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/1517747
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-04-03 13:27:52 +00:00
Jay Bhukhanwala
870835a292
dc: nvdisp: crc: Rename legacy APIs
...
Add "sysfs" qualifier to existing API names for CRC to avoid
confusion with newly added tegra_dc_crc_* and tegra_nvdisp_crc_*
Bug 1858958
Change-Id: I9045ef494a0e56222d7d2555e19975f5f2bdbbeb
Signed-off-by: Jay Bhukhanwala <jbhukhanwala@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/1521973
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ujwal Patel <ujwalp@nvidia.com >
2023-04-03 13:27:52 +00:00
Chris Dragan
9f0eb7f789
misc: mods: update MODS driver from Perforce
...
Bug 1949265
Change-Id: If7e55bcbf181d0b230a792ff0f557000482598df
Signed-off-by: Chris Dragan <kdragan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/1517878
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
2023-04-03 13:27:52 +00:00
Chris Dragan
324b7be6e5
mods: remove direct references to SMMU driver
...
Change-Id: I31d82ee0d9154b21f7531f4ed1e8b6cd45ded64c
Signed-off-by: Chris Dragan <kdragan@nvidia.com >
Reviewed-on: http://git-master/r/1498461
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Timo Alho <talho@nvidia.com >
2023-04-03 13:27:52 +00:00
Chris Dragan
6f6d38097a
misc: mods: fix compilation with k4.9
...
Cleanup to drop support for legacy Tegra clocks.
Bug 1934094
Change-Id: Ifce57363ff4474f24587d336c84e360596e22f9b
Signed-off-by: Chris Dragan <kdragan@nvidia.com >
Reviewed-on: http://git-master/r/1494043
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Timo Alho <talho@nvidia.com >
2023-04-03 13:27:52 +00:00
Chris Dragan
1f6ca0cb27
misc: add mods driver
...
* copy driver sources from kernel-4.4 repository
* sync with copy in Perforce
* fix several formatting errors
* fix issues reported by Coverity
Bug 200295104
Change-Id: I0a37cd12041d8fdcafb72b2e67d1a9234320e11b
Signed-off-by: Chris Dragan <kdragan@nvidia.com >
Reviewed-on: http://git-master/r/1487057
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com >
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com >
Reviewed-by: Vivek Aseeja <vaseeja@nvidia.com >
Reviewed-by: Kiran Kasamsetty <kkasamsetty@nvidia.com >
2023-04-03 13:27:52 +00:00
Laxman Dewangan
d6eb4eaa82
misc: mods: Remove Makefile to prepare for mods integration
...
mods driver is available in the kernel/nvidia and to
integrate with git history, it is required to remove the
dummy Makefile.
Bug 4038415
Change-Id: Ib66eab27e6168bf416df2f73c8df4a4a50af39f8
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com >
2023-04-03 13:26:29 +00:00
Jon Hunter
fee7e399b9
drivers: Disable broken drivers for Linux v6.3
...
Several drivers fail to build with Linux v6.3 due to upstream changes in
the Linux kernel. Disable this drivers until a fix is in place.
Bug 4014315
Change-Id: Iddd2c1e552c92311a982ff91837cef6377a947d6
Signed-off-by: Jon Hunter <jonathanh@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2867129
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Rohit Khanna <rokhanna@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-03-22 03:25:09 -07:00
Manikanta Maddireddy
935afd5256
PCI: Fix typecast warnings
...
Sparse tool identified below sparse errors because ioremapped PCIe BAR MMIO
range is typecasted to a strcture and dropping __iomem. Fix these error by
forcing the type cast.
tegra-pcie-dma-test.c:102:43: warning: cast removes address space '__iomem' of expression
tegra-pcie-dma-test.c:137:43: warning: cast removes address space '__iomem' of expression
tegra-pcie-dma-test.c:149:30: warning: cast removes address space '__iomem' of expression
tegra-pcie-dma-test.c:309:21: warning: cast removes address space '__iomem' of expression
tegra-pcie-dma-test.c:90:43: warning: cast removes address space '__iomem' of expression
Bug 3954363
Change-Id: I0ce421b72f43eeec0dbd497bf9d34ad05f7f91cc
Signed-off-by: Manikanta Maddireddy <mmaddireddy@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2870577
Reviewed-by: Nagarjuna Kristam <nkristam@nvidia.com >
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com >
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com >
Reviewed-by: Bibek Basu <bbasu@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-03-17 04:12:39 -07:00
Joshua Cha
d22a9b34c6
misc: nvsciipc: fix auth token validation API
...
In NvSciIpcEndpointValidateAuthTokenLinuxCurrent(),
It returns incorrect VUID due to partial string match in corner case.
If string length of device node name is different from the size return of
snprintf(), it skips comparing strings.
Enable debug cmd to test NvSciIpcEndpointValidateAuthTokenLinuxCurrent() and
NvSciIpcEndpointMapVuid() since they're kernel APIs.
remove one time update limit of SET DB cmd.
Added missing updates in nvidia-oot.
Bug 3928121
Change-Id: I13cc1927e817a124722156cffa0b391c95c7d28e
Signed-off-by: Joshua Cha <joshuac@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2850945
Reviewed-by: Simon Je <sje@nvidia.com >
Reviewed-by: Kurt Yi <kyi@nvidia.com >
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com >
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-03-06 10:53:39 -08:00
dbadgaiyan
38371d55ab
drivers: misc: Fix sparse issues
...
poll() expects return as __poll_t which is defined as
unsigned __bitwise.
returning poll mask directly leads to sparse warning.
fix sparse warning by typecasting masks explicitly.
Bug 3954363
Change-Id: Ic7717765831f4014cdc2cdb5f6d1fd77186d8a75
Signed-off-by: dbadgaiyan <dbadgaiyan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2861400
Reviewed-by: Arihant Jejani <ajejani@nvidia.com >
Reviewed-by: Ketan Patil <ketanp@nvidia.com >
Reviewed-by: Sachin Nikam <snikam@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-02-24 04:06:26 -08:00
Manish Bhardwaj
dee4d41861
nvidia-oot: add support for recovery kernel
...
Stop compilation for nvidia-oot drivers, whose
core kernel support is missing in recovery
kernel.
Bug 3863448
Change-Id: I36f09f74d4448af4b13eeebaaeadc53c3f83e002
Signed-off-by: Manish Bhardwaj <mbhardwaj@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2856892
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-02-23 22:53:00 -08:00
dbadgaiyan
55cee03ee7
drivers: misc: Fix coverity issues
...
Fix 2 coverity issues.
CID 10165044
CID 10165045
Bug 3952896
Change-Id: Ide19b44148c9e438284de45aa309c7cdc9e2d2e1
Signed-off-by: dbadgaiyan <dbadgaiyan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2850604
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Arihant Jejani <ajejani@nvidia.com >
Reviewed-by: Sachin Nikam <snikam@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-02-04 02:30:44 -08:00
dbadgaiyan
f2088fd15d
misc: nvscic2c-pcie: Update nvscic2c-pcie license
...
Modify nvscic2c-pcie files to use updated licenses
as per nvidia-oot.
Bug 3739487
Jira C2C-826
Change-Id: I819b459fdb0743d37bc08b4c9b92097d87e62884
Signed-off-by: dbadgaiyan <dbadgaiyan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2830686
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Arihant Jejani <ajejani@nvidia.com >
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2022-12-22 20:29:46 -08:00
Joshua Cha
7f189297bd
nvsciipc: use CONFIG_TEGRA_VIRTUALIZATION
...
Use CONFIG_TEGRA_VIRTUALIZATION to remove dependency on
ivc-cdev.ko and tegra_hv.ko in native Linux.
Bug 3861841
Change-Id: I671a0eec76713715d7fc79cb730aeaa7ab460043
Signed-off-by: Joshua Cha <joshuac@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2830878
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Suresh Venkatachalam <skathirampat@nvidia.com >
Reviewed-by: Kurt Yi <kyi@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2022-12-21 06:30:46 -08:00
dbadgaiyan
4adc5c8fb4
drivers: misc: add nvscic2c-pcie in OOT
...
nvscic2c enables xfer between two SoC connected over PCIe.
nvscic2c already available with K5.10
Major changes in nvscic2c-pcie for K5.15:
Integrate with upstream PCIe endpoint function changes.
Allocate new IOVA domain to be used for
empty IOVA allocation.
This IOVA range would be used in iommu_map() to map
physical backing with IOMMU domain attached in PCIe device.
Migrate from nvhost to host1x and tegra-drm interfaces.
Bug 3739487
Jira C2C-826
Jira C2C-830
Change-Id: Ic4d8ac680921807fb17247855ca7037623681cb7
Signed-off-by: dbadgaiyan <dbadgaiyan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2810806
Reviewed-by: Nagarjuna Kristam <nkristam@nvidia.com >
Reviewed-by: Arihant Jejani <ajejani@nvidia.com >
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2022-12-15 20:52:33 -08:00
Joshua Cha
fdbb8a0e96
nvsciipc: add nvsciipc to kernel-oot
...
nvsciipc driver shall be added to oot driver list
so as to use hv-ivc.h header file.
Bug 3861841
Change-Id: I1884fba6ec497ec23680217c70e44f7a251ebfaa
Signed-off-by: Joshua Cha <joshuac@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2815697
Reviewed-by: Manish Bhardwaj <mbhardwaj@nvidia.com >
Reviewed-by: Kurt Yi <kyi@nvidia.com >
Reviewed-by: Suresh Venkatachalam <skathirampat@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2022-11-30 00:00:04 -08:00
Manikanta Maddireddy
ca4a540fa4
PCI: Fix invalid cookie pointer
...
Invalid ccokie pointer is passed to tegra_pcie_edma_deinit(),
this is causing kernel BUG during remove. Pass correct cookie
pointer to fix this issue.
Bug 3731327
Bug 3877429
Change-Id: I477375ea8fab602ae144367c37b38cf34174f4c5
Signed-off-by: Manikanta Maddireddy <mmaddireddy@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2756657
(cherry picked from commit 4b07d745cfec95a93ef1f33e256a9ea747d8b8d8)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2815928
Reviewed-by: Nagarjuna Kristam <nkristam@nvidia.com >
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com >
Tested-by: Nagarjuna Kristam <nkristam@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2022-11-29 04:17:23 -08:00
Manikanta Maddireddy
319fa69bd5
PCI: Add data integrity check for PCIe DMA
...
Add CRC check after PCIe DMA to verify data integrity.
Bug 3636902
Bug 3868928
Change-Id: If497ce769571c6c837acbfbbb64b2242dfabef26
Signed-off-by: Manikanta Maddireddy <mmaddireddy@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2718787
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2720336
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2815927
Reviewed-by: Nagarjuna Kristam <nkristam@nvidia.com >
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com >
Tested-by: Nagarjuna Kristam <nkristam@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2022-11-29 04:17:18 -08:00
Revanth Kumar Uppala
7fc04f1749
BT: Add bluedroid_pm driver support for K5.15.
...
Bug 3750163
Change-Id: I7747bbcc8192cb1302e6650af24cade048cf5a0f
Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2765115
Reviewed-by: Shobek Attupurath <sattupurath@nvidia.com >
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2022-11-29 04:03:38 -08:00
Laxman Dewangan
b3bf23581b
mods: Add mod driver to build as module
...
Add OOT module build for mods. The driver code
of mod is used from kernel/nvidia and get copied
to build time in nvidia-oot for building as module.
Bug 3725913
Change-Id: I975f269c8305edcc87d6e3bc02e6b46761245315
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2755859
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com >
GVS: Gerrit_Virtual_Submit
2022-08-05 06:30:25 -07:00
Nagarjuna Kristam
4489bd305a
misc: Add pcie dma test client driver
...
Add PCIe DMA test client driver from Nvidia repo
Bug 3583632
Change-Id: I68393ccc6d8d79ffa8e29b8596d1d5174299a940
Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2736249
Reviewed-by: Manikanta Maddireddy <mmaddireddy@nvidia.com >
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
GVS: Gerrit_Virtual_Submit
2022-07-05 14:32:11 -07:00