summaryrefslogtreecommitdiffstats
path: root/drivers
Commit message (Collapse)AuthorAge
* drivers:camera: Update cameras to use common initJosh Kergan2017-10-27
| | | | | | | | | | | | | | All cameras were doing the same setup and cleanup. This common code was moved to camera_common and now all cameras should behave the same after probe finishes. JIRA CHWI-1369 Change-Id: If45351cf051e08015d2edb118a0ee2d1630a72da Signed-off-by: Josh Kergan <jkergan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1585024 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* drivers:camera: Provide common setup/tear-downJosh Kergan2017-10-27
| | | | | | | | | | | | | | | | | | | | | | Currently most cameras do the same steps during camera setup and then these should be unset when the driver is unloaded. This change moves the common setup and tear down into camera common. This helps make the camera drivers cleaner and make extending functionality for all sensors easier. It also takes care of sensor properties stored in the DT so that they are parsed during the sensor initialization rather than during channel setup. * Create common setup/tear down function for sensors * Parse DT for sensor properties during sensor initialization rather than channel setup. JIRA CHWI-1369 Change-Id: I85fc8e9272e0289c0d2de29b8809480a56d2d515 Signed-off-by: Josh Kergan <jkergan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1585023 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* tegra: dc: clock: remove dead codePrafull Suryawanshi2017-10-27
| | | | | | | | | | | | | | | | | | Function pclk_predict_rate is now dead and not used. Removing it to improve CC. TDS-2867 Change-Id: I072dfd6a3ebfbd6490cd2ce3c8114b8b4a20996d Signed-off-by: Prafull Suryawanshi <prafulls@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1585374 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Santosh Galma <galmar@nvidia.com> Reviewed-by: Shu Zhong <shuz@nvidia.com> Reviewed-by: Mitch Luban <mluban@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* platform: tegra: rtcpu: Turn on rtcpu to rebootSudhir Vyas2017-10-27
| | | | | | | | | | | | | | | Make sure to online rtcpu before proceed to reboot. Bug 200322667 Change-Id: I3ee69d1a527ad2c13324c0f11a734c4a62856f74 Signed-off-by: Sudhir Vyas <svyas@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1510774 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Pekka Pessi <ppessi@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* Merge "driver: t21x: wdt: move watchdog driver to nvidia repo" into dev-kernelGerrit Code Review2017-10-27
|\
| * driver: t21x: wdt: move watchdog driver to nvidia repoShreshtha SAHU2017-10-23
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | Moving tegra_wdt.c driver for T210 from kernel-4.4 to nvidia repo Merge remote-tracking branch 'origin/dev/wdt_move_to_nvidia_repo' into dev-kernel-dev2 Bug 200344390 Change-Id: Ie8ef88b704c9851142d9ffedb734efb9af491d5e Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
| | * driver: wdt-t21x: rename t21x wdt driverShreshtha SAHU2017-10-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rename tegra t21x wdt driver "tegra_wdt.c" to "tegra_wdt_t21x.c" to match the convention of this directory. Bug 200344390 Change-Id: I24fb6ef1c73d88aaa4bce592ec5daf093f969a69 Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
| | * watchdog: tegra: add support for enable-on-initAllen Yu2017-10-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change is highly based on below work by Allen Yu watchdog: tegra: revmap support for enable-on-init To recover device from early hang before userspace watchdog daemon starts, WDT needs to be enabled on init and a kernel WDT petting routine is preferable since the time to userspace boot is non-deterministic and it is possible that userspace may not provide a watchdog daemon. This change does following: - Request a threaded irq (WDT_IRQ) if enable-on-init is provided in DT - Reload WDT in the threaded interrupt context to probe CPU lockup - Remove the IRQ handler once userspace watchdog daemon takes over WDT For legacy chips like t124 and t132, WDT_IRQ is not available for WDT petting since it's used for FIQ debugger. So they still expect userspace to boot and start petting the watchdog. Bug 200100035 Bug 200314562 Change-Id: Ie33cd9256aeaa47b6662264f562cc9a5115cf6b8 Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com> Reviewed-on: https://git-master/r/1515197 (cherry picked from commit d928f21c5d118a0b5415d25566f1a188a79f2476) Reviewed-on: https://git-master.nvidia.com/r/1526900 Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
| | * watchdog: tegra: select timer based on timer baseShreshtha SAHU2017-10-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove hardcoding of timer ID and select watchdog timer source based on timer base provided in DT timer resource property Bug 200314562 Change-Id: Ic12b881663b48b5ad260b39b3985ffdd505873bf Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com> Reviewed-on: https://git-master/r/1515196 (cherry picked from commit 7f5ad900a3b2f2defc3e32c4970b32f95d334d80) Reviewed-on: https://git-master.nvidia.com/r/1526899 Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
| | * watchdog: tegra: revamp timeout calculation and usageShreshtha SAHU2017-10-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - update calculation of timeout for TIMER_PTV, - update watchdog ping to first disable timer, update timeut value and then restart the timer. - init watchdog timeout using watchdog_init_timeout - program default trigger period in watchdog configuration regiter Bug 200314562 Change-Id: Iec9e5a94c995653e5a3c653eccfa23a0877ae2e9 Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com> Reviewed-on: https://git-master/r/1515195 (cherry picked from commit c11b5748efb4f3cbf51bc4f25e5b59f3bddfffa8) Reviewed-on: https://git-master.nvidia.com/r/1526898 Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
| | * watchdog: tegra: get expiry count from DTAllen Yu2017-10-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The total expiry count of Tegra WDTs is limited to HW design and depends on skip configuration if supported. This change adds support to get the expiry count through device tree. To be safe, we set the default expiry count to 1, in case device tree doesn't provide the value. (adapted from commit 9a947bd96bd93cd8e81217fc9ad5eeb0bb2e1e9f) Bug 200314562 Change-Id: I50316bf34df8d63fe660c46c6baecc85276859e2 Signed-off-by: Allen Yu <alleny@nvidia.com> Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com> Reviewed-on: https://git-master/r/1515194 (cherry picked from commit 3e47435c126c8c0e43effe1587db1aef5e4198d0) Reviewed-on: https://git-master.nvidia.com/r/1526897 Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
| | * drivers: tegra_wdt: use DT based registrationShreshtha SAHU2017-10-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make DT only based registration and read properties from "nvidia,tegra-wdt" node. Bug 200314562 Change-Id: I36ad32d6ad7376e603aa335944e488abd3e0b37d Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com> Reviewed-on: https://git-master/r/1515091 (cherry picked from commit 27b3464de524b67c4ee5d9ed9c2541d121d50c87) Reviewed-on: https://git-master.nvidia.com/r/1526895 Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
| | * watchdog: tegra: Rename compatible stringsLaxman Dewangan2017-10-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently tegra WDT driver came from mainline have the compatible as nvidia,tegra210-timer and nvidia,tegra30-timer. The same compatible is used by clock source driver also. With this, it is not possible to disable the WDT and enable timer only. Rename the WDT compatible to nvidia,tegra210-timer-wdt and nvidia,tegra30-timer-wdt. The clock source will continue to use the compatible as nvidia,tegra210-timer and nvidia,tegra30-timer. In this way, it is possible to control WDT driver probing with changing compatible. Bug 200319328 Change-Id: Ic4b5bfc2d65f4e37e05c43c3ac5629c53820b166 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1517797 Reviewed-by: Venkata Jagadish <vjagadish@nvidia.com> (cherry picked from commit 71f95bdb71fc42f2adc340a0f7e30e7a7e6d85f9) Reviewed-on: https://git-master.nvidia.com/r/1525314 GVS: Gerrit_Virtual_Submit
| | * drivers: watchdog: enable Tegra210 watchdogShreshtha SAHU2017-10-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug 200231902 Change-Id: Ic6875fd3242d440f4e3f65217b9c9412001cdf59 Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com> Reviewed-on: http://git-master/r/1211642 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> GVS: Gerrit_Virtual_Submit
| | * watchdog: tegra: Stop watchdog first if restartingAndrew Chew2017-10-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If we need to restart the watchdog due to someone changing the timeout interval, stop the watchdog before restarting it. Otherwise, the new timeout doesn't seem to take. Signed-off-by: Andrew Chew <achew@nvidia.com> Reviewed-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
| | * Watchdog: Fix parent of watchdog_devicesPratyush Anand2017-10-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | /sys/class/watchdog/watchdogn/device/modalias can help to identify the driver/module for a given watchdog node. However, many wdt devices do not set their parent and so, we do not see an entry for device in sysfs for such devices. This patch fixes parent of watchdog_device so that /sys/class/watchdog/watchdogn/device is populated. Exceptions: booke, diag288, octeon, softdog and w83627hf -- They do not have any parent. Not sure, how we can identify driver for these devices. Signed-off-by: Pratyush Anand <panand@redhat.com> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Acked-by: Guenter Roeck <linux@roeck-us.net> Acked-by: H Hartley Sweeten <hsweeten@visionengravers.com> Acked-by: Lee Jones <lee.jones@linaro.org> Acked-by: Lubomir Rintel <lkundrak@v3.sk> Acked-by: Maxime Coquelin <maxime.coquelin@st.com> Acked-by: Thierry Reding <treding@nvidia.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
| | * watchdog: drop owner assignment from platform_driversWolfram Sang2017-10-23
| | | | | | | | | | | | | | | | | | | | | A platform_driver does not need to set an owner, it will be populated by the driver core. Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
| | * watchdog: Add tegra watchdogAndrew Chew2017-10-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a driver for the hardware watchdogs in NVIDIA Tegra SoCs (Tegra30 and later). This driver will configure one watchdog timer that will reset the system in the case of a watchdog timeout. This driver binds to the nvidia,tegra30-timer device node and gets its register base from there. Signed-off-by: Andrew Chew <achew@nvidia.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Tested-by: Stephen Warren <swarren@nvidia.com> Reviewed-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
* | | video: tegra: dsi: add dsi prod settings supportNavneet Kumar2017-10-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prod settings should live within the dt and picked up by the driver. This feature was not present for t21x chips till date. Add the same to dsi driver. Bug 1969294 Change-Id: I2779a8452239718acde6afef9877cbe6521fc971 Signed-off-by: Navneet Kumar <navneetk@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1576639 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> Reviewed-by: Jon Mayo <jmayo@nvidia.com> GVS: Gerrit_Virtual_Submit
* | | nvdisp: add layout to WIN4 in nvdisp_configShu Zhong2017-10-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the missing layout (pitch/tiled/BL) feature for window 4 to the nvdisp_config feature table. Change-Id: I27516111d7ef3ef91dfc3e2082912e71862087bb Signed-off-by: Shu Zhong <shuz@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1582787 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Ujwal Patel <ujwalp@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Mitch Luban <mluban@nvidia.com>
* | | cpufreq: add API to check for cluster presence.Sreeniketh H2017-10-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | VHINT tables of cluster not required to queried when that cluster is not preset. Added API to detect the cluster presence and query the VHINT tables of cluster only when the cluster is present. Bug 200298563 Change-Id: Ia1cf1bed23b0498ca6b1fe02e3bc2e0dffe30d5b Signed-off-by: Sreeniketh H <sh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1583839 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Puneet Saxena <puneets@nvidia.com> Reviewed-by: Sreenivasulu Velpula <svelpula@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
* | | iio: sensors: Disable tracing by defaultRobert Collins2017-10-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enabled tracing by default seems to break some builds. Disable tracing will fix the problem. Bug 200357132 Signed-off-by: Robert Collins <rcollins@nvidia.com> Change-Id: I724651311e219360f35081344f8ba577204b27f3 Reviewed-on: https://git-master.nvidia.com/r/1585488 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Tested-by: Shawn Joo <sjoo@nvidia.com> Reviewed-by: Ian Chang <ianc@nvidia.com> Reviewed-by: Jinyoung Park <jinyoungp@nvidia.com>
* | | tegra: rtcpu: i2c: rename structs and functionsAshish Singh2017-10-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Giving structs and functions appropriate names. Change-Id: I9f9469b8079cffa0852e669683a2486e70481005 Signed-off-by: Ashish Singh <assingh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1574585 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Bhanu Murthy V <bmurthyv@nvidia.com> Reviewed-by: Jihoon Bang <jbang@nvidia.com>
* | | i2c: camrtc: Fix ivc rpc callbackAshish Singh2017-10-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Following additions and fixes done in this patch 1. Add support for callback for i2c writes, that is non-blocking calls. This currently disabled though. 2. Fix a bug for starting timer for callbacks in rpc. 3. Add tracing support in rpc for debugging. Bug 1853141 Change-Id: I91511828e3be21fc9dd878af4bcb07d4d14d50a1 Signed-off-by: Ashish Singh <assingh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1559498 GVS: Gerrit_Virtual_Submit Reviewed-by: Bhanu Murthy V <bmurthyv@nvidia.com> Reviewed-by: Jihoon Bang <jbang@nvidia.com>
* | | i2c: ov5693: Enable CamRTC I2C interfaceAshish Singh2017-10-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | JIRA CRTC-555 Bug 1853141 Change-Id: Ie1f444f1cd3b396715f533eab55452cf7ba7e59b Signed-off-by: Ashish Singh <assingh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1486182 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* | | i2c: camrtc: regmap: Add I2C common layerKai Lee2017-10-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are two back-end for I2C; I2C driver via regmap, and CamRTC I2C multi driver. To simplify the interface, add a layer that decides which back-end to use. JIRA CRTC-552 Bug 1853141 Change-Id: I1caa81cafa23fd0720a44f81fde3560d513349ef Signed-off-by: Ashish Singh <assingh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1464092 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* | | tegra: i2c: rtcpu: Add RTCPU I2C multi driverAshish Singh2017-10-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I2C multi driver improves I2C bandwidth by aggregating I2C requests. It is not a I2C bus driver, and it bypasses I2C framework. Like I2C single driver, this communicates with Camera RTCPU which programs I2C controller. This driver is an IVC channel driver which provides interfaces to program sensor from a sensor driver. JIRA CRTC-552 Bug 1853141 Change-Id: Ieaf89ca243369c1dcf9a4a25f6367ff20eeff707 Signed-off-by: Ashish Singh <assingh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1527265 Reviewed-by: Bhanu Murthy V <bmurthyv@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Jihoon Bang <jbang@nvidia.com>
* | | tegra: dc: remove NVDISPLAY ifdefs on dsi_debug.cIshwarya Balaji Gururajan2017-10-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | remove NVDISPLAY ifdefs on dsi_debug.c Use runtime APIs instead to differentiate between chips. Jira TDS-2766 Change-Id: I5a00f4cf721318c52430fd89462c7bf547d9cee3 Signed-off-by: Ishwarya Balaji Gururajan <igururajan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1580640 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> Reviewed-by: Shu Zhong <shuz@nvidia.com> Reviewed-by: Mitch Luban <mluban@nvidia.com>
* | | drivers: camera: add ioctl for mipi bias padDavid Bang2017-10-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for the user to read mipi bias pad config registers. Jira CRTC-1436 Change-Id: I6e5cc5865d226e31f10c7b0c3bc4d0ce78e91d26 Signed-off-by: David Bang <dbang@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1577309 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Bhanu Murthy V <bmurthyv@nvidia.com> Reviewed-by: Josh Kergan <jkergan@nvidia.com> Reviewed-by: Jihoon Bang <jbang@nvidia.com>
* | | media: spi: update IMX204 driverFrank Chen2017-10-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Remove hardcoded macro and switch to run-time detection for uFPGA. - Separate uFPGA setting from regular settings. Jira CHWI-1191 Change-Id: Iaf50ea6a7b5dd2e4adcb23163c129c294ddadb18 Signed-off-by: Frank Chen <frankc@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1584122 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Anna Dvinsky <advinsky@nvidia.com> Reviewed-by: Bhanu Murthy V <bmurthyv@nvidia.com>
* | | media: camera: rename interface port nameFrank Chen2017-10-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change csi-port to port-index so we can support sensors with interface other than CSI. Jira CRTC-1425 Change-Id: Ib50fbfcbe63ebda51e0d3bbbff2ff32f0bcc1e45 Signed-off-by: Frank Chen <frankc@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1580784 Reviewed-by: Automatic_Commit_Validation_User
* | | tegra-cryptodev: Add XTS IOCTL supportShravani Dingari2017-10-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add XTS IOCTL support in tegra-cryptodev. tegra_crypt_request details should be filled and this IOCTL can be called. This IOCTL makes calls to related crypto framework which calls XTS functionality in tegra-se-nvhost driver. The IOCTL includes encrypt and decrypt functionalities of XTS Bug 1959401 Change-Id: I5904402a2332bd2e320fff7b7270390cb31a39c2 Signed-off-by: Shravani Dingari <shravanid@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1580221 Reviewed-by: Mallikarjun Kasoju <mkasoju@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
* | | se-elp:Remove DONE check for RNG1 healthShravani Dingari2017-10-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove checking for DONE bit in health check for RNG1 as this is not a compulsory requirement. If this is retained, issues might arise when secure_mode process is accessing RNG1 for the first time. Also add check for RNG1 alarms during init too though it is checked after every operation Bug 200356385 Change-Id: I7f07caf7be9e37834108aad8197f65c112d5c79f Signed-off-by: Shravani Dingari <shravanid@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1580391 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* | | tegra: dc: remove NVDISPLAY ifdefs on hdmihdcp.cIshwarya Balaji Gururajan2017-10-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | remove NVDISPLAY ifdefs on hdmihdcp.c. Use runtime APIs instead to differentiate between chips. Jira TDS-2766 Change-Id: Ic2218975ad5a540946065900d6f523813e124f92 Signed-off-by: Ishwarya Balaji Gururajan <igururajan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1572591 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> Reviewed-by: Pranami Bhattacharya <pranamib@nvidia.com> Reviewed-by: Mitch Luban <mluban@nvidia.com>
* | | video: tegra: host: Fix up cluster power clampsSai Gurrappadi2017-10-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some host1x clients require cluster power clamps to be applied before executing any cluster wide power sequences (eg: railgating). Currently this is implemented by client modules via pre_poweron() and prepare_poweroff(). However, things end up breaking badly if the finalize_poweron() calls for the client fail. The subsequent error paths can end up causing mismatches in the cluster clamp ref counts. Fix this by implementing cluster power clamp support explicitly in nvhost. All clamp operations therefore remain in sync. Bug 200352108 Change-Id: I70f47ed33814f25b81f17045248954468e929c73 Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1572791 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* | | video: tegra: host: Properly handle errors in finalize_poweronSai Gurrappadi2017-10-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A device could fail to poweron for whatever reason. In that case, rather than falling through and doing the rest of device init, bail out of the finalize_poweron call and return the error. Similarly, in prepare_poweroff, only execute the poweroff sequence if the device in question was already powered on. Bug 200352108 Change-Id: I95b991f6fb5c74146aec327b2d6c089b1f51e9c0 Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1572790 Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> Reviewed-by: Shridhar Rasal <srasal@nvidia.com> Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
* | | tegra: camera: rtcpu: increase dma segment sizePekka Pessi2017-10-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The RTCPU uses same mappings as ISP, the maximum sizes should match. Jira CRTC-1465 Change-Id: Ibe15f8b092ddc9e5acd41b2b73f0c42ca7a874e7 Signed-off-by: Pekka Pessi <ppessi@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1583909 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Ashish Singh <assingh@nvidia.com> Reviewed-by: Arto Merilainen <amerilainen@nvidia.com> Tested-by: Sudhir Vyas <svyas@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Sudhir Vyas <svyas@nvidia.com>
* | | media: camera: isp: add chan drv opsSudhir Vyas2017-10-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add chan drv ops support for soc specific APIs. Make use of it for syncpt support. Jira CRTC-1467 Jira CRTC-1413 Change-Id: Id44bc65c699489debb14d7700a9244f07494e545 Signed-off-by: Sudhir Vyas <svyas@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1577820 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Pekka Pessi <ppessi@nvidia.com> Reviewed-by: Ajith Kumar <ajithk@nvidia.com> GVS: Gerrit_Virtual_Submit
* | | host1x: use gen_irq only when vmserver does not own enginesAniruddha Banerjee2017-10-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The host1x status irq should only be requested when the vmserver is not present and does not own the host1x engines. Add conditional check for the vm-server ownership of host1x engines. Bug 200356806 Change-Id: Ib7780fce5e6fa3a804088463c207f8daf3911ab2 Signed-off-by: Aniruddha Banerjee <aniruddhab@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1579758 GVS: Gerrit_Virtual_Submit Reviewed-by: Damian Halas <dhalas@nvidia.com> Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com> Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
* | | tegra: dp: CHECK_RET: remove this macroJay Bhukhanwala2017-10-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The linux coding convention specifically frowns upon macros that affect control path. Please refer Section "12. Macros, Enum and RTL" in Documentation/CodingStyle. We have a macro CHECK_RET that does the top two things that the section warns not to. - Remove the macro and its usage Change-Id: I1b6c79d4690ea111e3ed768796a41568e8e5c097 Signed-off-by: Jay Bhukhanwala <jbhukhanwala@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1582269 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Shu Zhong <shuz@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Ujwal Patel <ujwalp@nvidia.com>
* | | tegra: dp: Integrate t19x specific code pathsJay Bhukhanwala2017-10-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are certain DP initialization sequences specific to T19x. - Fork paths wherever required to incorporate chip specific logic TDS-1553 Change-Id: If28eb7f55e8f7a5bad7ca0f2a35bfece3fa6d19c Signed-off-by: Jay Bhukhanwala <jbhukhanwala@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1570524 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Shu Zhong <shuz@nvidia.com> Reviewed-by: Santosh Galma <galmar@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Ujwal Patel <ujwalp@nvidia.com>
* | | video: tegra: host: read reg resources by nameAparna Das2017-10-24
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement capability to get host1x reg resources from device tree by name instead of index since index for a resource can vary between native and virtualized configurations. Jira EVLR-1571 Change-Id: I0e287e5f41af307f3503220243e6cfcd60d29d5e Signed-off-by: Aparna Das <aparnad@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1533437 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* / tegra: rtcpu: vi-notify: update descriptionAhung Cheng2017-10-23
|/ | | | | | | | | | | | | | | update description for variables in struct vi_capture_status bug 1997204 Change-Id: Ifd449b10053cf2a313775a910c7045b4ded38d38 Reviewed-on: https://git-master.nvidia.com/r/1572363 (cherry picked from commit dabafbb7ea578d2cf2252035ba93f93c7cf6fbeb) Signed-off-by: Ahung Cheng <ahcheng@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1576664 GVS: Gerrit_Virtual_Submit Reviewed-by: Mika Liljeberg <mliljeberg@nvidia.com>
* video: tegra: fb: fix smem_lenBo Kim2017-10-20
| | | | | | | | | | | | | | This change fixes mmap() failure due to missing smem_len in recovery mode. bug 200327763 Change-Id: Ia92a15cb803f23ae6e9694e71c1cf31d7c2e2e6e Signed-off-by: Bo Kim <bok@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1569900 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Ujwal Patel <ujwalp@nvidia.com>
* video: tegra: nvmap: use right api to allow reading user memoryKrishna Reddy2017-10-20
| | | | | | | | | | | | | | | This is necessary to allow reading from user memory and write to VPR memory without using copy_from_user API. copy_from_user API can't be used on VPR memory as VPR memory is mapped as device memory. Bug 1896907 Change-Id: Ia23c4d66633082a879005a83c27dd473e10bc8e4 Signed-off-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1571126 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* video: tegra: nvmap: disable VPR read access from t186Krishna Reddy2017-10-20
| | | | | | | | | | | | | | | Disable VPR read access from t186 onwards. From t186, VPR errors cause system to reboot as the VPR errors are not handled by CPU to recover the system back. Memset the user buffer with 0xFF's to be backward compatible. Bug 1692484 Change-Id: I5912357fbde73b45b31349f3360b674f315a2373 Signed-off-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1561033 GVS: Gerrit_Virtual_Submit
* platform: tegra: mc-err: clear mc errors that occured before mc-err enableKrishna Reddy2017-10-19
| | | | | | | | | | | | | Clear mc errors that occured before mc-err interrupts are enabled during boot. Enable mc-err interrupts after irq handler is registered. Bug 200347684 Change-Id: I9fb4f205abe0839f4411e8eb487189b4d048ae27 Signed-off-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1563888 GVS: Gerrit_Virtual_Submit
* video: tegra: host: Add eventlib supportArto Merilainen2017-10-19
| | | | | | | | | | | | | This change adds support for eventlib completion events. Eventlib is a library that is intended to interface with Tegra System Profiler to deliver information about e.g. task start and completion events. Bug 1996639 Change-Id: Ia5efcfb7ce54b7ee7822d6d5a153369b5a4ae535 Signed-off-by: Arto Merilainen <amerilainen@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1580285 Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com>
* iio: imu: nvi_mpu: remove double const declarationsHans-Christian Noren Egtvedt2017-10-19
| | | | | | | | | | | | | | | | | | | Discovered using GCC 7.2.0, typing const twice does not makes sense for C source code. Fixes compiler error. Bug 1996535 Change-Id: Iaa2ef15514ed1dc2bd9c4487c962322e838ac6c0 Signed-off-by: Ken Chang <kenc@nvidia.com> Signed-off-by: Robert Collins <rcollins@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1569076 (cherry picked from commit 4543c7dc0999950b7190e8c53380445f3a7d73ea) Reviewed-on: https://git-master.nvidia.com/r/1573426 Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Akhilesh Khumbum <akhumbum@nvidia.com> Reviewed-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
* nvs: Change kernel clock source to ignore sleep time.Robert Collins2017-10-19
| | | | | | | | | | | | | Bug 1996233 Change-Id: I83256ba8a0a25f9359e9d5bad9c210c92bfe88f9 Signed-off-by: Robert Collins <rcollins@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1568099 Reviewed-by: Akhilesh Khumbum <akhumbum@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> Reviewed-by: Erik Lilliebjerg <elilliebjerg@nvidia.com> GVS: Gerrit_Virtual_Submit