5 years agoASoC: tegra-virt: apbif stop playback fix
Ranjith Kannikara [Tue, 28 Oct 2014 06:49:15 +0000]
ASoC: tegra-virt: apbif stop playback fix

The stop playback needs to call the find_amx_channel_info
so that the proper AMX channel is updated in the
apbif data structure.

Bug 1571149

Change-Id: I4c19ed7bab3005260b2df30a216ef048c69ce31a
Signed-off-by: Ranjith Kannikara <rkannikara@nvidia.com>
Reviewed-on: http://git-master/r/590675
Reviewed-by: Arun Shamanna Lakshmi <aruns@nvidia.com>
Tested-by: Arun Shamanna Lakshmi <aruns@nvidia.com>

5 years agoT210: DTS: Corrected ADC min max values
Mallikarjun Kasoju [Mon, 3 Nov 2014 14:36:39 +0000]
T210: DTS: Corrected ADC min max values

Corrected ADC min max values for E01 and below board

Change-Id: I0630dc81408b5526cb04f512fe7f73d6078d7b63
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-on: http://git-master/r/592793
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agot210: dts: Updated ADC min max values for Loki E02
Mallikarjun Kasoju [Tue, 4 Nov 2014 06:42:30 +0000]
t210: dts: Updated ADC min max values for Loki E02

Corrected ADC min max values for Loki E02 board.

Change-Id: Ibce93a5e706bbe879b0c0e7ea681d04a577e5c8f
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-on: http://git-master/r/593174
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoarm64: config: enable idle power gating
Preetham Chandru R [Wed, 8 Oct 2014 07:11:55 +0000]
arm64: config: enable idle power gating

Enable idle power gating with context save and restore

Bug 200035977

Change-Id: Iedc109c7677c10fa7aba00562211e5720a706234
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/554500
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

5 years agoiio: imu: Enable Werror flag
Sumit Singh [Tue, 4 Nov 2014 08:25:41 +0000]
iio: imu: Enable Werror flag

Enable Werror for all the files directly under
drivers/iio/imu directory.

Bug 1566945

Change-Id: I31ce9a17692f338685182cefd23e460b2a1c2f31
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
Reviewed-on: http://git-master/r/593219
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Tested-by: Sachin Nikam <snikam@nvidia.com>

5 years agoiio: pressure: Enable Werror flag
Sumit Singh [Tue, 4 Nov 2014 08:45:50 +0000]
iio: pressure: Enable Werror flag

Enable Werror flag for all the files directly
under drivers/iio/pressure directory.

Bug 1566945

Change-Id: I15129283e3b00b8bb8e70744e4f3bf474fdc651f
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
Reviewed-on: http://git-master/r/593226
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoiio: magnetometer: Enable Werror flag
Sumit Singh [Tue, 4 Nov 2014 08:36:25 +0000]
iio: magnetometer: Enable Werror flag

Enable Werror flag for all the files directly under
iio/magnetometer directory.

Bug 1566945

Change-Id: I9303ee46885c84032934b572d97417ee2651ef78
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
Reviewed-on: http://git-master/r/593222
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoiio: light: Enable Werror flag
Sumit Singh [Tue, 4 Nov 2014 08:31:33 +0000]
iio: light: Enable Werror flag

Enable Werror flag for all the files directly under
iio/light directory.

Bug 1566945

Change-Id: I6a4de292bcea37e6220665774cbdf7c5553e1b49
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
Reviewed-on: http://git-master/r/593221
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agocrypto: tegra: Enable Werror flag
Sumit Singh [Tue, 4 Nov 2014 07:38:54 +0000]
crypto: tegra: Enable Werror flag

Enable Werror for all the files under
drivers/crypto directory.

Bug 1566945

Change-Id: I86a1cb4a657426965b85325b64ff6892d0aaa203
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
Reviewed-on: http://git-master/r/593201
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoEDP: Enable Werror flag
Sumit Singh [Tue, 4 Nov 2014 06:06:54 +0000]
EDP: Enable Werror flag

Enable Werror flag for all the files under
drivers/edp directory.

Bug 1566945

Change-Id: I3f4fdfc0d8d241c608dd5616c75783878081ca7b
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
Reviewed-on: http://git-master/r/593093
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoata: ahci: Suspend controller if drive not present
Preetham Chandru R [Tue, 4 Nov 2014 04:42:29 +0000]
ata: ahci: Suspend controller if drive not present

Suspend the controller if drive is not present and also
return no device present in probe.

Bug 200035977

Change-Id: I0b2e337a635f3b2903b3005ee839af4efcc187f1
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/593076
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

5 years agoplatform: tegra210: add sata aux
Preetham Chandru R [Wed, 29 Oct 2014 16:12:35 +0000]
platform: tegra210: add sata aux

Add sata aux clock to clock table and also rearranged the table
so that sata aux clock is disabled first and then sata clock becasue
sata clock is the parent of sata aux clock.

Bug 200037194

Change-Id: Ib17d84a099a74979580a4bc270490c358facbe42
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/591300
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

5 years agoata: ahci: place AUX IDLE Detector in IDDQ
Preetham Chandru R [Wed, 29 Oct 2014 15:56:04 +0000]
ata: ahci: place AUX IDLE Detector in IDDQ

Place AUX IDLE Detector in IDDQ during runtime suspend and
also bring it out of IDDQ druing runtime resume.

Bug 200035977

Change-Id: I3caee2cd268330c387d07a3a0ea9a277f49bc029
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/591297
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

5 years agoata: ahci: uphy and uphy paddpll in iddq
Preetham Chandru R [Thu, 16 Oct 2014 04:31:41 +0000]
ata: ahci: uphy and uphy paddpll in iddq

Add code to place uphy and uphy paddpll in iddq before
powergating the SATA controller and also bring uphy and uphy paddpll
out of iddq while un-powergating the SATA controller.

Bug 200035977

Change-Id: I630d47fcec1776fbe513af19900c74f0bd081334
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/558219
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sang-Hun Lee <sanlee@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

5 years agoata: enable ARCH_TEGRA_HAS_SATA
Preetham Chandru R [Wed, 29 Oct 2014 16:04:09 +0000]
ata: enable ARCH_TEGRA_HAS_SATA

Enable ARCH_TEGRA_HAS_SATA when idle powergating is
enabled.

Bug 200037194

Change-Id: I82bbe5a207fff5824818331dcda8ea5375cefb18
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Signed-off-by: Venkata Jagadish <vjagadish@nvidia.com>
Reviewed-on: http://git-master/r/591298
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

5 years agoplatform: t210: enable SATA powergating
Preetham Chandru R [Tue, 21 Oct 2014 13:14:58 +0000]
platform: t210: enable SATA powergating

Bug 200037194

Change-Id: Ib3ec86908119f00d4170d2cab0602b86ca4b7fde
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/559905
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Preetham Chandru <pchandru@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

5 years agoARM: dts: vcm30_t124: Disabled therm_est device
Jinyoung Park [Fri, 31 Oct 2014 07:04:27 +0000]
ARM: dts: vcm30_t124: Disabled therm_est device

Disabled therm_est device since skin thermal management is not used on
VCM30 T124 platform.

Bug 200049341

Change-Id: I8528774ca01d896acc0695337e8b659ad213739f
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/591992
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sreenivasulu Velpula <svelpula@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Joshua Cha <joshuac@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agomisc: tegra_cec: fix sparse warning
Spencer Sutterlin [Sat, 1 Nov 2014 01:05:00 +0000]
misc: tegra_cec: fix sparse warning

Fix sparse warning by adding static keyword to functions

Bug 200032218

Change-Id: I0fe65173eb0295f5b981fa44f381683efe9a980b
Signed-off-by: Spencer Sutterlin <ssutterlin@nvidia.com>
Reviewed-on: http://git-master/r/592290
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Xia Yang <xiay@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agovcm30t124: Disable ACT Monitor
Vishal Annapurve [Wed, 1 Oct 2014 12:39:08 +0000]
vcm30t124: Disable ACT Monitor

1) This change disables Activity monitor for vcm30t124
as it is not needed for embedded platforms.
2) Compilation of actmon driver is made dependent on
CONFIG_TEGRA_ACTMON which is selected for 12x and 21x socs.

Bug 1505334
Bug 200042592

Change-Id: I73d2de4514a4d3b00d32cf946dfdfc4b9c345260
Signed-off-by: Vishal Annapurve <vannapurve@nvidia.com>
Reviewed-on: http://git-master/r/552558
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>

5 years agovideo: tegra: hdmi: powergate DISA on display off
Santosh Reddy [Thu, 30 Oct 2014 11:51:09 +0000]
video: tegra: hdmi: powergate DISA on display off

powergate DISA when display is off

Bug 200045161

Change-Id: I26c7c93b3ce1669dd4ff03979f2de91367c76b34
Signed-off-by: Santosh Reddy <galmar@nvidia.com>
Reviewed-on: http://git-master/r/591697
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agokernel: Changes for QSPI flash support in Kernel
Ambika Prasad [Tue, 4 Nov 2014 06:01:08 +0000]
kernel: Changes for QSPI flash support in Kernel

Bug 200041031
Bug 200048379
Bug 200049452

Change-Id: I49700f119bde9fa86171501635deb43f04ccb91b
Signed-off-by: Ambika Prasad <ambikap@nvidia.com>
Reviewed-on: http://git-master/r/539974
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Amlan Kundu <akundu@nvidia.com>
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>

5 years agoarm: t124: Enable SPI slave config for vm1 and vm2
Vishal Annapurve [Mon, 3 Nov 2014 14:39:10 +0000]
arm: t124: Enable SPI slave config for vm1 and vm2

This change enables SPI slave support to be builtin for
vm1 and vm2 kernel.

Bug 200048661

Change-Id: I4fdf96ee429069209eafee4aa9f38a17884b79e4
Signed-off-by: Vishal Annapurve <vannapurve@nvidia.com>
Reviewed-on: http://git-master/r/592794
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>

5 years agousb: gadget: Remove redundant usb_free_all_descriptors
Pavitrakumar [Fri, 10 Oct 2014 12:04:25 +0000]
usb: gadget: Remove redundant usb_free_all_descriptors

Removed usb_free_all_descriptors in the bind functions, which
results in double-free corruption of the descriptors on error path.
The usb descriptors are allocated by usb_assign_descriptors.

Coverity ID 26826
Coverity ID 26825

Manual cherry pick from kernel.org Commit : d12a8727

Bug 200020218

Change-Id: I047dddf051074be44ad7ef067bccfea90838d00c
Signed-off-by: Pavitrakumar <pavitrak@nvidia.com>
Signed-off-by: Pavitrakumar Managutte <pavitra1729@gmail.com>
Reviewed-by: Robert Baldyga <r.baldyga@samsung.com>
Reviewed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Reviewed-on: http://git-master/r/555446
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>
Reviewed-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>

5 years agogpu: nvgpu: fix sparse warnings
Deepak Nibade [Tue, 4 Nov 2014 13:14:28 +0000]
gpu: nvgpu: fix sparse warnings

Fix below sparse warnings :

warning: Using plain integer as NULL pointer
warning: symbol <variable/funcion> was not declared. Should it be static?
warning: Initializer entry defined twice

Also, remove dead functions

Bug 1573254

Change-Id: I29d71ecc01c841233cf6b26c9088ca8874773469
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/593363
Reviewed-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agodriver: spi: Add ULL to get right value of rx_mask
Ashutosh Patel [Thu, 18 Sep 2014 13:18:51 +0000]
driver: spi: Add ULL to get right value of rx_mask

Add ULL to get correct value of rx_mask in 32-bit
unpacked dma mode

Change-Id: Iccb460ba00aadaf3d610c8620032dae00cb1db0b
Signed-off-by: Ashutosh Patel <ashutoshp@nvidia.com>
Reviewed-on: http://git-master/r/500302
Reviewed-by: Amlan Kundu <akundu@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>

5 years agoArm: Tegra: vcm30t124: Enable iso9660 and udf filesystems for VMs
Raveesh Kote [Wed, 29 Oct 2014 10:15:43 +0000]
Arm: Tegra: vcm30t124: Enable iso9660 and udf filesystems for VMs

- Enable iso9660 and udf filesystem config options
- Enable Tmpfs POSIX Access Control Lists
- CONFIG_SND_SOC_TEGRA_ALT=y and #CONFIG_SND_SOC_TEGRA_VCM30T124_ALT=y
  getting removed as they are enabled by default. Multimedia team will
  fix all audio related config issues cleanly.

Bug 200050235
Bug 1415725

Change-Id: Icdcdde0df18c144060d42ce5128821a68c4b5a57
Signed-off-by: Raveesh Kote <rkote@nvidia.com>
Reviewed-on: http://git-master/r/591153
Reviewed-by: Nitin Sehgal <nsehgal@nvidia.com>
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>

5 years agoi2c-pca: Enable use of multiple GPIOs for CS
Pavitrakumar [Mon, 3 Nov 2014 06:45:53 +0000]
i2c-pca: Enable use of multiple GPIOs for CS

Enable use of multiple GPIOs for CS, using decoder logic.
For this feature the gpio_cs has been changed to a pointer
and the code updated accordingly.

Bug 200020218

Change-Id: I539f945b3ba13793c43a8cea9d2171aab27da760
Signed-off-by: Pavitrakumar <pavitrak@nvidia.com>
Reviewed-on: http://git-master/r/592511
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
Tested-by: Sandeep Trasi <strasi@nvidia.com>

5 years agotegra-nor: Support for multiple GPIOs as CS
Pavitrakumar [Fri, 26 Sep 2014 10:37:31 +0000]
tegra-nor: Support for multiple GPIOs as CS

Support multiple GPIOs as CS (using decoder
logic) in tegra-nor driver.
Use gpio_cs as a pointer to an array instead of
a single element.

Bug 200020218

Change-Id: I22f1549e4a7dba88d7457c7a1d50cbd1a86aae7a
Signed-off-by: Pavitrakumar <pavitrak@nvidia.com>
Reviewed-on: http://git-master/r/539975
Reviewed-by: Bharath H S <bhs@nvidia.com>
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>

5 years agoarm64: tegra: add DT support for Jetson-E
Shreshtha SAHU [Wed, 22 Oct 2014 05:12:48 +0000]
arm64: tegra: add DT support for Jetson-E

Bug 200044360

Change-Id: I5baf191da2b473d48e6c090c02440b9546d49c71
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/562812
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoHACK: iommu/arm-smmu: print mc ioremap
Hiroshi Doyu [Tue, 4 Nov 2014 12:49:07 +0000]
HACK: iommu/arm-smmu: print mc ioremap

Print this info by default until c-model is fixed.

Change-Id: Ifd572dea48c8c3d72520e0da09304e85c8ca787c
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/593324

5 years agovideo: tegra: host: get current channel policy
Shridhar Rasal [Tue, 21 Oct 2014 06:29:55 +0000]
video: tegra: host: get current channel policy

Add and use API to get current channel policy.

Bug 200041935

Change-Id: I9b5524b653830e5e85fbca9eb357f2172af68962
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/559743
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Tested-by: Arto Merilainen <amerilainen@nvidia.com>

5 years agoplatform: tegra: Add support to disable prod setting from DT
Laxman Dewangan [Mon, 3 Nov 2014 14:08:21 +0000]
platform: tegra: Add support to disable prod setting from DT

Add support to check the status of node before parsing it for
enabling/disabling prod setting configuration.

Change-Id: I5dbc9b221e2027e8dd9b8030f0f74df4c4fca221
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/592792
Reviewed-by: Daniel Fu <danifu@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agotegra: dc: hdmi: NULL check before derefernce
Sachin Nikam [Fri, 31 Oct 2014 10:31:53 +0000]
tegra: dc: hdmi: NULL check before derefernce

Coverity ID: 28181

Bug 1416640

Change-Id: I2a2b40f372f1f8dc7d425337e28f1ea48631ca68
Signed-off-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-on: http://git-master/r/592057

5 years agousb: gadget: tegra: fix coverity check issue
Rakesh Babu Bodla [Tue, 4 Nov 2014 08:40:19 +0000]
usb: gadget: tegra: fix coverity check issue

Fix coverity issue of dereferencing null pointer.
Coverity id : 28105

Bug 1416640

Change-Id: I62c8530430c7d2b9223b9c9b274f338434307cc8
Signed-off-by: Rakesh Babu Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/593224
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoARM: Tegra: TN8: add otg as consumer for usb_bat_chg
Rakesh Babu Bodla [Mon, 1 Sep 2014 15:51:21 +0000]
ARM: Tegra: TN8: add otg as consumer for usb_bat_chg

Adding otg device to consumer list of usb battery
charging regulator to support Y cable.

Bug 200004368

Change-Id: I99d861f5234a79c2f4ff758aca7750ca8f8de83b
Signed-off-by: Rakesh Babu Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/494513
(cherry picked from commit 323cee7e9c2b034a8778058d33789cf8340341f4)
Reviewed-on: http://git-master/r/538420
(cherry picked from commit 6670547046ae8500fcfb3c38563364a025063274)
Reviewed-on: http://git-master/r/539282
(cherry picked from commit 2aec4cb1ccd287292899284251c658a1146b6909)
Reviewed-on: http://git-master/r/592623
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agommc: tegra: add NULL pointer check for pinctrl settings
R Raj Kumar [Tue, 4 Nov 2014 10:03:14 +0000]
mmc: tegra: add NULL pointer check for pinctrl settings

Added ERROR and NULL pointer check for pinctrl sdmmc
before setting the sdmmc pinctrls

Change-Id: Iedd8c1a42d7b2335fdae83fca27968455d7f818e
Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/593288
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agodt-bindings: swgroup: add more h/w engines
Hiroshi Doyu [Tue, 4 Nov 2014 12:10:12 +0000]
dt-bindings: swgroup: add more h/w engines

Add more h/w engines

Change-Id: I12f87cef5a50f72e9021f5b60be29040d121ea1f
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/593312
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>

5 years agoiommu/arm-smmu: fix mc register size
Hiroshi Doyu [Tue, 4 Nov 2014 12:45:16 +0000]
iommu/arm-smmu: fix mc register size

Only 4KB was mapped previously. New value is derived from
"address_map.spec".

Change-Id: Ibf2f1f82b77f339b30b7f0b24b7380b81fc56191
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/593323

5 years agoiommu/tegra: smmu: of: remove dead code
Hiroshi Doyu [Tue, 4 Nov 2014 08:42:45 +0000]
iommu/tegra: smmu: of: remove dead code

Remove the dead code for coverity.
Will revert when IOMMU PCIe is supported again.

Bug 1416640

Change-Id: Id443f7e0c69aeffa4b5f48e634c28d746ee9f95d
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/593225
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agomisc: cryptodev: Fix sparse warnings
Shravani Dingari [Mon, 3 Nov 2014 11:47:51 +0000]
misc: cryptodev: Fix sparse warnings

Change required functions to static functions

Bug 200032218

Change-Id: I469ce8f05bcc2704ea59f5d5926ed123ffbd80cd
Signed-off-by: Shravani Dingari <shravanid@nvidia.com>
Reviewed-on: http://git-master/r/592747
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agocrypto: tegra-se: Fix sparse warnings
Shravani Dingari [Wed, 5 Nov 2014 07:37:37 +0000]
crypto: tegra-se: Fix sparse warnings

Change required functions to static functions
Also fix CamelCase naming of functions

Bug 200032218

Change-Id: Ie3ba6ccc5170fa6f4e43a41a1bce6fe1e6050501
Signed-off-by: Shravani Dingari <shravanid@nvidia.com>
Reviewed-on: http://git-master/r/592748
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agogpu: nvgpu: cde: cancel delayed_work during suspend
Seshendra Gadagottu [Wed, 5 Nov 2014 02:47:12 +0000]
gpu: nvgpu: cde: cancel delayed_work during suspend

During gpu suspend, cancel all pending delayed cde work
to avoid issues of scheduling this delayed work
during suspend/resume when gpu is not ready.

Bug 1574000

Change-Id: I2b6bfa489435a781dc576a077f9af01b1e1628ce
Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/593557
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Tested-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoclock: tegra21: Skip EMC clock change time-stamp
Alex Frid [Thu, 30 Oct 2014 07:04:26 +0000]
clock: tegra21: Skip EMC clock change time-stamp

Skipped EMC clock change time stamp during last call before suspend
when timekeeping is already suspended.

Bug 200035855

Change-Id: I05c0b7202c94f6324af7fb731b1314a60453e6ae
Signed-off-by: Alex Frid <afrid@nvidia.com>

5 years agoARM64: tegra: t210: add use-cam-gpio flag for 6cam
David Wang [Thu, 23 Oct 2014 23:13:03 +0000]
ARM64: tegra: t210: add use-cam-gpio flag for 6cam

Adding a use-cam-gpio flag for 6 camera case to indicate
that gpio pins needs protection for pairs of the 6 cameras.

bug 1545729

Change-Id: Ib5ae98124203bc8ce3fe5f64ad1e58406679284a
Signed-off-by: David Wang <davidw@nvidia.com>
Reviewed-on: http://git-master/r/562646
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agoARM64: tegra: t210: Add power supply extcon node for xusb
Rakesh Babu Bodla [Mon, 3 Nov 2014 12:01:21 +0000]
ARM64: tegra: t210: Add power supply extcon node for xusb

Add the psy extcon node for XUSB related charging icon
notifications.

Bug 1468463

Change-Id: Ibdcd0b445f0368a456448b1544a263b840ecef02
Signed-off-by: Rakesh Babu Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/592772
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoubs: phy: tegra: remove support for id detection through gpio
Rakesh Babu Bodla [Wed, 29 Oct 2014 09:05:36 +0000]
ubs: phy: tegra: remove support for id detection through gpio

Remove the support for id detection through gpio,
gpio detection of id will be done through extcon only.

Bug 200029541

Change-Id: I1c9859209a3a32fe2bfc0686b910cef3d06d2597
Signed-off-by: Rakesh Babu Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/591124
Reviewed-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoplatform: tegra: wakeups: Enable WAKE39 for USB
Rohith Seelaboyina [Mon, 3 Nov 2014 11:09:07 +0000]
platform: tegra: wakeups: Enable WAKE39 for USB

Enable Wake39 for USB Keyboard to remote wakeup the
device in suspend state LP0.

Bug 200050792

Change-Id: I791490941b7c45aa339e0a97e94f5f59e7f221a1
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/592735
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Petlozu Pravareshwar <petlozup@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agovideo: tegra: host: Reorganize mutex allocations
Arto Merilainen [Sun, 5 Oct 2014 18:02:39 +0000]
video: tegra: host: Reorganize mutex allocations

This patch reorganizes mutex allocations to match the current
hardware use model. In addition, this patch removes no-longer-used
syncpoint base allocations

Bug 200041935

Change-Id: Ie94c645af559fa25af4cab00914c6daaf002b315
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>

5 years agovideo: tegra: host: Add new ch policy UAPI
Shridhar Rasal [Wed, 1 Oct 2014 03:11:31 +0000]
video: tegra: host: Add new ch policy UAPI

This patch adds the new map-at-submit channel policy userspace API.
Channel will be assigined on work submit time and unmapped on all
work submit complete for a given device.

Considering this, on channel open only allocate userctx.

Bug 200041935

Change-Id: Ibb75461d458776676fcfb2c407bb75bffbb2b582
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/552327
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

5 years agovideo: tegra: host: Remove ch deps from ioctl
Shridhar Rasal [Wed, 1 Oct 2014 03:11:31 +0000]
video: tegra: host: Remove ch deps from ioctl

This far we have assumed that we allocate a channel at open time and
therefore code has been accessing device and platform data through
the channel structures.

This patch modifies the code to store the device inside channel
instance private structure.

Bug 200041935

Change-Id: I2895fa6b15a3adfa248623ff0470777a8ccdced0
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>

5 years agovideo: tegra: host: Rework channel API
Arto Merilainen [Tue, 21 Oct 2014 05:26:44 +0000]
video: tegra: host: Rework channel API

This patch reworks the channel API to support mapping channels lazily
at submit time.

First, this change adds a possibility to give an identifier for
channel API. If channels are mapped at submit time, this identifier
is matched with the identifier stored inside the channel structure.
If the identifier matches, the channel is reused. Otherwise we
always allocate a new channel.

Second, this patch makes channel allocation to poll for a free
channel if the channel binding happens at submit time. This ensures
that the user always gets a channel

Third, nvhost_channel_map() users are adapted to use the new API. In
channel ioctl case we store the channel instance private pointer and
in hdcp use case we use the platform data pointer.

Bug 200041935

Change-Id: I0133398071fbc540c96c8224e011d92226249197
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>

5 years agovideo: tegra: host: tsec: Support new ch policy
Arto Merilainen [Thu, 23 Oct 2014 08:17:50 +0000]
video: tegra: host: tsec: Support new ch policy

This patch adds the map-at-submit channel policy support for TSEC.

Bug 200041935

Change-Id: I8d128ae4e4ea354444b3af86b318e3cb95a67e1c
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>

5 years agovideo: tegra: host: HW support for new ch policy
Arto Merilainen [Sun, 5 Oct 2014 18:02:39 +0000]
video: tegra: host: HW support for new ch policy

This patch adds HW side support for the new channel policy. Old
policy is kept intact and following changes apply only if the new
policy is applied.

First, the patch moves all syncpoints waits to happen in the
beginning of each submit. This is done by utilising the waitcheck
information provided by userspace: All waits are patches and waits
are added (if necessary) in the beginning of each submit. Same is
done for gather specific waits.

Second, engine mutexes are acquired right after pushing waits and
finally released after each submit. This will provide serialization
in hw level.

Bug 200041935

Change-Id: I4aad69b37656b2acf38d2f5926323f5be25fbd86
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>

5 years agovideo: tegra: host: Flag to store channel policy
Shridhar Rasal [Wed, 1 Oct 2014 03:11:31 +0000]
video: tegra: host: Flag to store channel policy

This patch adds a flag to mark whether we should map the
channel at open time (current policy, MAP_CHANNEL_ON_OPEN) or
at the time we submit work (new policy, MAP_CHANNEL_ON_SUBMIT).

Bug 200041935

Change-Id: I16f2155a520aa6f030f7541610a42cf3408e0027
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>

5 years agovideo: tegra: host: Remove hwctx
Arto Merilainen [Thu, 23 Oct 2014 10:49:46 +0000]
video: tegra: host: Remove hwctx

hwctx does not have any active users anymore. Therefore, remove it.

Change-Id: I78491a038a7d2a7ed35b5c0f46c17fc141edde67
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>

5 years agogpu: nvgpu: fix reset clock in gm20b
Deepak Nibade [Mon, 3 Nov 2014 09:05:53 +0000]
gpu: nvgpu: fix reset clock in gm20b

To assert reset on GPU, we store "gpu_ref" clock in
platform->clk[0] and use it to assert/deassert reset

But for gm20b, "gpu_ref" is no longer resettable.

To fix this, add two callbacks in gk20a_platform :
.reset_assert and .reset_deassert
Also, add a pointer "clk_reset" to store the clock
which needs to be reset

For gk20a specific implementation, we continue to
reset platform->clk[0]

For gm20b specific implementation, we first request
"gpu_gate" clock, store it and use it to assert reset

Bug 1513685
Bug 1517584

Change-Id: I15a583a4a07eb663b442084be8b8c7d0c7c7a142
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>

5 years agotegra: hv: move ivc initialization to core_initcall
Nitin Sehgal [Mon, 20 Oct 2014 13:22:57 +0000]
tegra: hv: move ivc initialization to core_initcall

- smmu driver requires ivc very early in the init sequence

bug 1418245

Change-Id: I450a72111c2c98d0ac02db4ad759c79a9c4f0af5
Signed-off-by: Nitin Sehgal <nsehgal@nvidia.com>
Reviewed-on: http://git-master/r/559411
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>

5 years agonet: core: sock: Coverity fixes
Pavitrakumar [Sat, 20 Sep 2014 13:55:31 +0000]
net: core: sock: Coverity fixes

Fixed the uninitialized variable usage of preempt_count by
initializing to 0

Bug 200020218

Change-Id: If98aa6b8e141c882d375548e00a2a79a2c32a436
Signed-off-by: Pavitrakumar <pavitrak@nvidia.com>
Reviewed-on: http://git-master/r/501032
Reviewed-by: Manoj Chourasia <mchourasia@nvidia.com>
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
Tested-by: Sandeep Trasi <strasi@nvidia.com>

5 years agoarm64: turn warning to error by compiler
Bo Yan [Wed, 29 Oct 2014 18:44:46 +0000]
arm64: turn warning to error by compiler

Bug 1566945

Change-Id: I5e22a07926129a31360b14ad191a81f977a1e339
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/591362
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agousb: gadget: android: Coverity fixes
Pavitrakumar [Tue, 23 Sep 2014 13:21:56 +0000]
usb: gadget: android: Coverity fixes

Initialized the err variable to 0 so as to fix
the uninitialized-scalar-variable usage error

Bug 200020218

Change-Id: Ia251978d2e23ca68ea3e9407bbbcfa62925b9e28
Signed-off-by: Pavitrakumar <pavitrak@nvidia.com>
Reviewed-on: http://git-master/r/504681
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Manoj Chourasia <mchourasia@nvidia.com>
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>

5 years agotegra: adsp: cleanup dfs and actmon initialisation
Puneet Saxena [Fri, 24 Oct 2014 11:42:26 +0000]
tegra: adsp: cleanup dfs and actmon initialisation

Create dfs and actmon initialisation status as part of
global adsp driver data.

bug 200046547

Change-Id: Id5e860d6777f44143cfa95605dd71aad9f7643bd
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-on: http://git-master/r/562813
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agonvhost: reduce HOST_EMC_FLOOR to 204 MHz
Soumen Kumar Dey [Mon, 3 Nov 2014 10:38:58 +0000]
nvhost: reduce HOST_EMC_FLOOR to 204 MHz

This setting is required to select lower EMC MHz setting for
NVDEC/NVJPG/NVENC.

bug 200050465

Change-Id: I20a1008e27fa69f3f6cc1faa5effe3a8e8392528
Signed-off-by: Soumen Kumar Dey <sdey@nvidia.com>
Reviewed-on: http://git-master/r/592722
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agomach-tegra: make local funcs and data static
Sachin Nikam [Wed, 29 Oct 2014 11:44:35 +0000]
mach-tegra: make local funcs and data static

Fix Sparse warnings for static data and funcs()

Bug 200032218

Change-Id: I1404c8302d05bde5d718f198df43297ec8d6ba09
Signed-off-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-on: http://git-master/r/591217
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

5 years agotegra: adsp: add adsp freq time_in_state histogram
Puneet Saxena [Fri, 31 Oct 2014 09:36:20 +0000]
tegra: adsp: add adsp freq time_in_state histogram

Add debugfs node "/d/tegra_ape/adsp_dfs/time_in_state"
to capture residency in each adsp freq level.

bug 1539173

Change-Id: Iab698d4bcdcbd79440c6a29b3f0b7489933419bc
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-on: http://git-master/r/592040
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoarm64: define variable conditionally in suspend.c
Bo Yan [Mon, 3 Nov 2014 19:39:47 +0000]
arm64: define variable conditionally in suspend.c

The "cpu" variable is only used when CONFIG_ARM64_CPU_SUSPEND
is defined, so define it conditionally to avoid warning.

Bug 1566945

Change-Id: I779221484fe63fd71a1f8a6279eea02086ef032e
Signed-off-by: Bo Yan <byan@nvidia.com>

5 years agogpu: nvgpu: Assign T18x an own platform data
Terje Bergstrom [Fri, 31 Oct 2014 11:06:46 +0000]
gpu: nvgpu: Assign T18x an own platform data

Bug 1572701

Change-Id: Id135eb2328765d00349b478d695914f7f8c5edf0
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/592095
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

5 years agoclock: tegra21: Remove sdmmc3/4 sclk from apb client
Naveen Kumar Arepalli [Sat, 1 Nov 2014 13:08:14 +0000]
clock: tegra21: Remove sdmmc3/4 sclk from apb client

-Remove sdmmc3/4 sclk from apb client.
-For SDMMC, Only register accesses are done using apb interface.
-sclk has a dependency on vcore, boosting sclk during transactions
can impact power numbers.

Bug 1562721

Change-Id: I7f751c0fef2628bb3a29c7ebc4027bae5b436652
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/593063
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

5 years agoarm: tegra: remove Tegra20/30 power gate driver
Prashant Gaikwad [Wed, 15 Oct 2014 07:50:53 +0000]
arm: tegra: remove Tegra20/30 power gate driver

Not being used anymore.

Change-Id: I4f4527d618e234d9949781e92a9f096ac83a59d0
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>

5 years agoarm64: tegra: try to only powergate pcie during init
Shreshtha SAHU [Mon, 27 Oct 2014 07:27:35 +0000]
arm64: tegra: try to only powergate pcie during init

Clocks for PCIE are not enabled in tegra21x_clk_init_table
during early init, hence only try to do powergating for its
partition instead of powergating with clock off.

Bug 200049657

Change-Id: I644b277b54fb8f000c91867fff417dfbe76afd2a
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/590307
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoiommu/tegra: virt: Add virtualization support
Nitin Sehgal [Mon, 7 Jul 2014 10:05:46 +0000]
iommu/tegra: virt: Add virtualization support

- Paravirtualize smmu driver
- Add os independent apis
- Add ivc layer

bug 1418245

Change-Id: Ic7f7e9bf842932cab282eb1f714ec9885b981463
Signed-off-by: Nitin Sehgal <nsehgal@nvidia.com>
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/435088
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>

5 years agoarm: tegra21: enable performance governor
Sang-Hun Lee [Tue, 4 Nov 2014 01:36:22 +0000]
arm: tegra21: enable performance governor

 - enable the performance governor for use cases which require a high
   perf

Change-Id: I21278dfface6314fcf982fe401c107a1628dbd33
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>

5 years agoclocksource: tegra21: fix sleeping while atomic
Vinayak Pane [Fri, 31 Oct 2014 02:09:03 +0000]
clocksource: tegra21: fix sleeping while atomic

cpu notifier is running in atomic context,  setup_irq() can
not be called there. Instead set up irq once and enable/disable
at notifier.

bug 1572628
bug 1573263

Change-Id: I36d372c73d5855f46c818b8d4e31395f56377fa2
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/591919
Tested-by: Bo Yan <byan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bo Yan <byan@nvidia.com>

5 years agoarm64: tegra21: mc: Update ISO efficiency table
Alex Waterman [Wed, 29 Oct 2014 23:36:40 +0000]
arm64: tegra21: mc: Update ISO efficiency table

Update with latest results frm HW simulations.

Bug 1533556

Change-Id: I9d0de1eec81a71f8982461d78ccf86bc0990ddeb
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/591436
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agodrivers: cpuidle: tegra: enable cc4 in c7
Sivaram Nair [Wed, 29 Oct 2014 02:20:39 +0000]
drivers: cpuidle: tegra: enable cc4 in c7

CC4 with all/some cores in c7 is a valid state.

Bug 1568810

Change-Id: I26631901dd76db72238527746cf9358a5f8a63c1
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>

5 years agomisc: tegra-profiler: use mmap for samples
Igor Nabirushkin [Sun, 19 Oct 2014 20:22:32 +0000]
misc: tegra-profiler: use mmap for samples

Tegra Profiler: send samples via memory mapping areas
to the user space.

Bug 1566270

Change-Id: I19aae4ca1f8d6a3ae7c36e99fb018d8fcd2152d3
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/559124
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Maxim Morin <mmorin@nvidia.com>
Reviewed-by: Andrey Trachenko <atrachenko@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agot210: loki: Configure sysedp reactive capping.
Anand Prasad [Fri, 31 Oct 2014 16:28:53 +0000]
t210: loki: Configure sysedp reactive capping.

Configure OC3 to receive software interrupts.
Configure alarm count_threshold for OC3.
Add DT nodes for sysedp_reactive_capping.

Change-Id: Iecdec4d8a7a8efa08a79201bf5e0dedde2e05039
Signed-off-by: Anand Prasad <anprasad@nvidia.com>

5 years agoplatform: tegra: pmc: fix dead code
Deepak Nibade [Mon, 3 Nov 2014 12:14:24 +0000]
platform: tegra: pmc: fix dead code

Fix Coverity issue of dead code by removing
immediate return from tegra_pmc_lock_thermal_shutdown()
Coverity defect id : 27983

Bug 1416640

Change-Id: I3d3625e24f1e653a92bc6b6ec8ada1f672baa37d
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>

5 years agotegra: soctherm: Move trip configuration to common
Anshul Jain [Fri, 31 Oct 2014 23:12:21 +0000]
tegra: soctherm: Move trip configuration to common

Move trip points configuration to the loki common DT file,
otherwise this feature will just be available for Loki-E00 and E01
platforms.

Bug 1572578
Bug 1572585
Bug 1572583
Bug 1572584

Change-Id: I427070ab64cf9196298179a8cd9a03536ca25833
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/592263
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agothermal: tegra: aotag: make shutdown trip writable
navneet kumar [Mon, 27 Oct 2014 21:16:07 +0000]
thermal: tegra: aotag: make shutdown trip writable

Add support to change the shutdown/critical trip point
via sysfs.

Change-Id: Ie9f4e1bc959ca8f03d1bbd305ee8e9b731fe6e66
Signed-off-by: navneet kumar <navneetk@nvidia.com>

5 years agoarm64:tegra:loki: Remove PI3 from default gpio setting
Ankita Garg [Sat, 4 Oct 2014 00:00:55 +0000]
arm64:tegra:loki: Remove PI3 from default gpio setting

PI3 is the enable signal for vdd_display. It needs to be
set as output high. Also, the BL already initializes it,
so do not change its state in the kernel.

Bug 200043038

Change-Id: I4b9e45c43dfe63f3491d4c26e0c211972b1eca49
Signed-off-by: Ankita Garg <ankitag@nvidia.com>

5 years agofirmware: tegra: invoke ipc call via debugfs
Sivaram Nair [Wed, 22 Oct 2014 01:57:14 +0000]
firmware: tegra: invoke ipc call via debugfs

A debugfs attr at /sys/kernel/debug/bpmp/mrq is introduced to enable ipc
calls via debugfs. The MRQ and data should be echoed into this attr and
the result can be read back from the same place (results are overwritten
by subsequent operations). Only public MRQs can be invoked this way.

This feature is only used for testing and debugging.

Change-Id: I47e89c4eb86ce35726844a7d3671bda0d2deaee1
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/562078
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bo Yan <byan@nvidia.com>

5 years agoarm64:tegra:loki: Make pmic GPIO7 output high
Ankita Garg [Fri, 3 Oct 2014 23:59:42 +0000]
arm64:tegra:loki: Make pmic GPIO7 output high

Need to set PMIC GPIO7 output high to drive avdd_dsi_csi supply.
If not set correctly, causes a blank screen while bootup.

Bug 200043038

Change-Id: I68d84e48d3fca6655478735691014f99b9ba2f83
Signed-off-by: Ankita Garg <ankitag@nvidia.com>

5 years agousb: gadget: xudc: disable ELPG by sysfs
Joy Wang [Wed, 8 Oct 2014 05:35:06 +0000]
usb: gadget: xudc: disable ELPG by sysfs

Make sure usage_count matched. So we can disable device ELPG
by echo on > /sys/devices/platform/tegra-xudc/power/control

And enable ELPG again by
echo auto > /sys/devices/platform/tegra-xudc/power/control

Also use dev_* for print message.

Bug 200049420

Change-Id: I2a7fd6d9cada49f2e918ca7b7201c6809fe8bd7e
Signed-off-by: Joy Wang <joyw@nvidia.com>
Reviewed-on: http://git-master/r/554487
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

5 years agofirmware: tegra: use tag bits to match modules
Sivaram Nair [Tue, 21 Oct 2014 23:35:05 +0000]
firmware: tegra: use tag bits to match modules

Use the md5sum bits to compare and match firmware binary against the
dynamic modules being loaded. On mismatch, report error and abort the
module loading. This will prevent random behaviors due to firmware vs.
module mismatch.

Change-Id: Icc23aa98d00f98307490a21080d21c8a5f46acdc
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/560066
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bo Yan <byan@nvidia.com>

5 years agothermal: tegra: aotag: dt: shutdown trip writable
navneet kumar [Tue, 28 Oct 2014 18:17:01 +0000]
thermal: tegra: aotag: dt: shutdown trip writable

(DT change)
Add support to change the critical trip via sysfs

Change-Id: Idb2621e1454251c5972aa33259db944262e2d69d
Signed-off-by: navneet kumar <navneetk@nvidia.com>
Reviewed-on: http://git-master/r/590861
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agothermal: of: notify sensor driver on trip updates
navneet kumar [Mon, 27 Oct 2014 20:44:08 +0000]
thermal: of: notify sensor driver on trip updates

some thermal sensor hardwares include logic which
can raise interrupts at certain programmed temperature
thresholds.

Drivers for such sensors should be able to learn the
appropriate threshold temperatures for interrupts by querying
the thermal framework.

This change provides a mechanism to allow a sensor driver to
update it's thresholds when userspace changes a trip point
temperature.

While this behavior may not make sense in thermal zones
with more than one sensor, no such examples exist in
the kernel.

Change-Id: Ia94eae3f8d5ed0a6137c6fd13f8c34f6d5cedd32
Signed-off-by: navneet kumar <navneetk@nvidia.com>
Reviewed-on: http://git-master/r/590860
Reviewed-by: Hyungwoo Yang <hyungwooy@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agodvfs: tegra: Add CLDVFS min output to therm floors
Alex Frid [Sun, 2 Nov 2014 02:24:13 +0000]
dvfs: tegra: Add CLDVFS min output to therm floors

Stored CLDVFS minimum possible output in the thermal floors array as
the last entry. This allows to store DVCO calibration result at minimum
output the same way calibration results at thermal floors are stored.

Change-Id: I7d801c2aa109e4ac9ece6f79b977dba75e3a0537
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/592365
Reviewed-by: Bo Yan <byan@nvidia.com>

5 years agofirmware: tegra: debugfs attr to show firmware tag
Sivaram Nair [Tue, 21 Oct 2014 23:34:13 +0000]
firmware: tegra: debugfs attr to show firmware tag

Change-Id: I0c9884c02782fbb288481b91c4adb93dc56b0688
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/560065
Reviewed-by: Timo Alho <talho@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

5 years agoarm64: tegra210: remove obsoleted board file
Bo Yan [Mon, 3 Nov 2014 20:57:11 +0000]
arm64: tegra210: remove obsoleted board file

The board-dt-t210.c is obsolete now, it's no longer used, remove it.

Change-Id: I9c81143f6b54cfdaaa5369f1cd5a3b28233c3506
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/592947
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: Hoang Pham <hopham@nvidia.com>

5 years agofirmware: tegra: read firmware tag during boot
Sivaram Nair [Tue, 21 Oct 2014 23:29:43 +0000]
firmware: tegra: read firmware tag during boot

Read and save the firmware checksum data (32 bytes) - we will use this
to compare and match main firmware binary against dynamic modules.

Change-Id: I8ca7d633e4c81b017abf6e4ee1a55f3aa0db1c86
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>

5 years agothermal: nct72: fix coverity warning and cleanups
Diwakar Tundlam [Sat, 1 Nov 2014 00:01:23 +0000]
thermal: nct72: fix coverity warning and cleanups

Fix potential memory leak found in coverity and streamling the
nct-probe function to handle LOC and EXT sensors independently.

Bug 1416640

Change-Id: I75eaad30b14aaaa0df0eaf2fb3f6849118f17816
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/592269
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agothermal: tegra: aotag: use sensor_register2 API
navneet kumar [Mon, 27 Oct 2014 20:02:39 +0000]
thermal: tegra: aotag: use sensor_register2 API

Use of_thermal_sensor_register2 API to register the
sensor, passing a ssensor_ops struct instead of the
callback functions as separate arguments.

Change-Id: I05f3a3f2f5f330c526609f0f469089d77b55b8e2
Signed-off-by: navneet kumar <navneetk@nvidia.com>
Reviewed-on: http://git-master/r/590502
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agothermal: of: consolidate sensor callbacks as ops
navneet kumar [Mon, 27 Oct 2014 19:36:26 +0000]
thermal: of: consolidate sensor callbacks as ops

Consolidate all the sensor callbacks (get_temp/get_trend)
into a 'thermal_of_sensor_ops' struct.

As a part of this, introduce a 'thermal_zone_of_sensor_register2'
sensor API that accepts sensor_ops instead of the two callbacks
as separate arguments to the register function.

Modify the older version of register function to call register2.

Adjust all the references to get_temp/get_trend callbacks.

Change-Id: I505d568dcfac86646cf75e3d13c4d11b863f19bd
Signed-off-by: navneet kumar <navneetk@nvidia.com>
Reviewed-on: http://git-master/r/590501
Reviewed-by: Hyungwoo Yang <hyungwooy@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agotegra: soctherm: stop using find_node_by_type
Diwakar Tundlam [Thu, 30 Oct 2014 01:15:41 +0000]
tegra: soctherm: stop using find_node_by_type

Replace find_node_by_type with get_child and compare type to filter.
This avoids looking through _all_ nodes and searches only child nodes.

Also fix crash in parsing in 'throttlectl' when neither 'oc-alarm-id'
nor 'cdev-type' are found. And changed error msg in pskip-cfg parse.

Change-Id: Ia47f55fa703fbac5183475a4a7516ed839e922de
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/591482
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

5 years agoarm64: remove unused functions and notifier block
Bo Yan [Wed, 29 Oct 2014 18:04:31 +0000]
arm64: remove unused functions and notifier block

This is in essence a fix of previous upstream cherry-pick in commit
0967438d043f319d09764ce449545fd49dbb5038. pm callback and notifier
are no longer needed and thus removed.

Change-Id: Id0097265029bffacd96cac4b903358bf56b09cde
Signed-off-by: Bo Yan <byan@nvidia.com>

5 years agoarm64: tegra: mc: T210 LA update
Frank Chen [Fri, 31 Oct 2014 21:35:01 +0000]
arm64: tegra: mc: T210 LA update

Re-enable ISP-B settings

Bug 200050744

Change-Id: I86a9fd7ff3d72f05611f49ddc2926a700c98ed7c
Signed-off-by: Frank Chen <frankc@nvidia.com>

5 years agoV3L: ARM: Tegra: Disable GPU & CPU EDP in DT
Rajesh Hosakote [Mon, 3 Nov 2014 06:57:26 +0000]
V3L: ARM: Tegra: Disable GPU & CPU EDP in DT

Disable chip- and platform-specific data for CPU and GPU EDP
management. This works around a problem with LP0 mode in V3L
platform.

Bug 200004948

Change-Id: I317166a0fcdfb2a50e34ca56c9c59d41d9f9731d
Signed-off-by: Rajesh Hosakote <rhosakote@nvidia.com>

5 years agoprod: tegra: add new feature on the prod config frameworks
Laxman Dewangan [Mon, 3 Nov 2014 08:40:32 +0000]
prod: tegra: add new feature on the prod config frameworks

Add following new feature on the prod config feature:
- Add support of multiple address range on given controller like pinmux
  to provide the register base index on prod settings.
- Add support to set the prod cells number to 3 or 4.
- Add provision to make prod setting as available or not by moving
  each prod setting as a separate node.

Modified the DTSI file and hdmi driver to match with new addition.

Change-Id: I3ff4ed227431b3716f9d6a453aad263d7e4935b6
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoMerge branch 'linux-3.10.49' into dev-kernel-3.10
Bharat Nihalani [Mon, 3 Nov 2014 14:07:35 +0000]
Merge branch 'linux-3.10.49' into dev-kernel-3.10

Includes :
    1. linux-3.10.49 merge
    2. Revert arm: usb: cdc: Modifed USB buffer logic for autopm issue
       (6510858f)
    3. Revert arm: usb: cdc: Fix cdc-acm auto pm issues(2a457b4)

Bug 200023519

Change-Id: I5ec392a082337ee3b6f3fa0f1396732d24409fb0
Signed-off-by: Ishan Mittal <imittal@nvidia.com>
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agogpu: nvgpu: vgpu: init vm->gmmu_page_sizes
Aingara Paramakuru [Mon, 27 Oct 2014 19:15:39 +0000]
gpu: nvgpu: vgpu: init vm->gmmu_page_sizes

vm->gmmu_page_sizes was not initialized properly in the
vgpu case, leading to gmmu map failures.

Bug 1570878

Change-Id: I16c371f65d884f59d9c9f60c7acd391b917d04ed
Signed-off-by: Aingara Paramakuru <aparamakuru@nvidia.com>