Commit Graph

125 Commits

Author SHA1 Message Date
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
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