5 years agogpu: nvgpu: Update GM20b GPCPLL initial configuration
Alex Frid [Fri, 25 Jul 2014 06:18:20 +0000]
gpu: nvgpu: Update GM20b GPCPLL initial configuration

- Set initial output rate to 1/3 of VCO minimum.
- Cleared global BYPASSCTRL to get ready for enabling PLL (this
  won't bring PLL out of bypass, since SEL_VCO register is cleared).
- Added debugfs nodes for BYPASSCTRL and SEL_VCO state.

Bug 1450787

Change-Id: I10b068b006b7e9fbdf7854eff0cfd5cfdc1dd546
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/447750
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hoang Pham <hopham@nvidia.com>
Tested-by: Hoang Pham <hopham@nvidia.com>
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Tested-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoarm: dts: display system for laguna_t124
Min-wuk Lee [Tue, 8 Jul 2014 07:05:56 +0000]
arm: dts: display system for laguna_t124

Bug 1371533

Change-Id: Ib8bb5b23152dc8b769e13a693bb10924c93ebfb6
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/435515
GVS: Gerrit_Virtual_Submit
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Tested-by: Jon Mayo <jmayo@nvidia.com>

5 years agoarm: tegra: laguna: DT for display
Min-wuk Lee [Tue, 8 Jul 2014 10:56:29 +0000]
arm: tegra: laguna: DT for display

Board side change for laguna_t124 display
system device tree.

Bug 1371533

Change-Id: I83a7dbb38ffbb089fdcc4de9975faaf8b87faeab
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/435602
GVS: Gerrit_Virtual_Submit
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Tested-by: Jon Mayo <jmayo@nvidia.com>

5 years agovideo: tegra: dc: sn65dsi86 device tree
Min-wuk Lee [Thu, 10 Jul 2014 10:48:47 +0000]
video: tegra: dc: sn65dsi86 device tree

ti sn65dsi86 device tree support

Bug 1371533

Change-Id: I2406764a54b50055a1594ded6efeb0b635bc94c4
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/436604
GVS: Gerrit_Virtual_Submit
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Tested-by: Jon Mayo <jmayo@nvidia.com>

5 years agovideo: tegra: dc: prerequisite lvds dt support
Min-wuk Lee [Tue, 8 Jul 2014 06:01:16 +0000]
video: tegra: dc: prerequisite lvds dt support

This change is the driver side change to support
device tree for LVDS panel.

Bug 1371533

Change-Id: Id479bff4cd2a21bcf8c4b79064841f682f667fc6
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/435486
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Tested-by: Jon Mayo <jmayo@nvidia.com>

5 years agoarm: tegra: clean up panel gpios
Min-wuk Lee [Thu, 10 Jul 2014 06:25:05 +0000]
arm: tegra: clean up panel gpios

Clean up panel gpios.
 - Delete unnecessary gpios
 - If device tree indicate gpio, use that.

Bug 1371533

Change-Id: If79f6b888c389625caf513ba2cffefa24c9fcd4d
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/436470
GVS: Gerrit_Virtual_Submit
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Tested-by: Jon Mayo <jmayo@nvidia.com>

5 years agospi: tegra114-slave: xfer sz should be ceil(bpw/8)
Yousuf A [Mon, 21 Jul 2014 05:58:22 +0000]
spi: tegra114-slave: xfer sz should be ceil(bpw/8)

This change adds the check for the transfer size
of spi packet to be a multiple of bits_per_word/8
rounded to next higher integer.

Bug 200021342
Change-Id: I2b77763bae8ad735e02880b16803af3ba3de1c01
Signed-off-by: Yousuf A <yousufa@nvidia.com>
Reviewed-on: http://git-master/r/438664
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Amlan Kundu <akundu@nvidia.com>
Reviewed-by: Ashutosh Patel <ashutoshp@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>

5 years agospi: tegra114 slave: disable spi-cs inactive intr
Yousuf A [Mon, 21 Jul 2014 05:59:16 +0000]
spi: tegra114 slave: disable spi-cs inactive intr

Currently spi slave interrupts on seeing clock toggles
while cs is inactive. This could happen when master
communicates with another slave or if CPOL spi mode
is selected. The change disables the cs-inactive
interrupt.

Bug 200021802
Change-Id: I17e459f662d40958666da7089b480d582ae63a57
Signed-off-by: Yousuf A <yousufa@nvidia.com>
Reviewed-on: http://git-master/r/438657
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Amlan Kundu <akundu@nvidia.com>
Reviewed-by: Ashutosh Patel <ashutoshp@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>

5 years agotegra: dc: conditionaly call tegra_dpaux_pad_power
Ravi Chandra SV [Mon, 14 Jul 2014 06:09:27 +0000]
tegra: dc: conditionaly call tegra_dpaux_pad_power

tegra_dpaux_pad_power() should not be called from
   _tegra_dc_controller_enable() unless dpaux node
   is defined in dt.

Change-Id: I941050800757e4942d3620dfa80a4f25f870f5b0
Signed-off-by: Ravi Chandra SV <ravichandrav@nvidia.com>
Reviewed-on: http://git-master/r/437589
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agoclocksource: t210: set irq affinity only for SMP
Bo Yan [Thu, 24 Jul 2014 00:13:29 +0000]
clocksource: t210: set irq affinity only for SMP

irq affinity is not applicable for a uni-processor build,
call affinity setting functions only for SMP build.

bug 1487099

Change-Id: I44f1803fe7d4379351f737ecb31fbaedf31eb00f
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/441475
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>

5 years agoARM: tegra: clock:Fix Sleeping while atomic in LP0
Gaurav Sarode [Wed, 16 Jul 2014 19:58:40 +0000]
ARM: tegra: clock:Fix Sleeping while atomic in LP0

After enabling CONFIG_DEBUG_ATOMIC_SLEEP,during LP0 we see warning
regarding sleep in atomic region for clk_enable and clk_disable.
To fix this, we need to use clk_enable_locked and clk_disable_locked
instead.These functions do not acquire locks.

Bug 1534913

Change-Id: I7ca661a8030308107c3467d9d524c79b6ec374e8
Signed-off-by: Gaurav Sarode <gsarode@nvidia.com>
Reviewed-on: http://git-master/r/438904
(cherry picked from commit 908ff199970a093a022f4434afc1689ba979bfed)
Reviewed-on: http://git-master/r/440466
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

5 years agogpu: nvgpu: Expand GM20b PLL fields header
Alex Frid [Sat, 26 Jul 2014 05:30:37 +0000]
gpu: nvgpu: Expand GM20b PLL fields header

Added masks for GM20b GPCPLL input and post dividers.

Bug 1450787

Change-Id: I39a9c7ffb740fa9ef3a614deb2591412e34ef263
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/447857
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Tested-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: Hoang Pham <hopham@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>

5 years agoASoC: tegra-alt: Add T210 DAI links in the utility
Arun Shamanna Lakshmi [Tue, 1 Jul 2014 22:20:14 +0000]
ASoC: tegra-alt: Add T210 DAI links in the utility

Bug 1442940

Change-Id: I19f8c03abed3acccf703ebd66598e5ca57c91b84
Signed-off-by: Arun Shamanna Lakshmi <aruns@nvidia.com>
Reviewed-on: http://git-master/r/433344
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Justin Kim (SW-TEGRA) <juskim@nvidia.com>
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

5 years agoASoC: tegra-alt: adding tegra_machine_hwdep device
Songhee Baek [Thu, 3 Jul 2014 23:59:48 +0000]
ASoC: tegra-alt: adding tegra_machine_hwdep device

This change is for adding hwdep device to update AMX/ADX
mapping table so user can access AMX/ADX mapping table through
hwdep device.

Bug 1531057

Change-Id: I3c0053ca6548a05b0a44e30b9d6c4a76f9fc3521
Signed-off-by: Songhee Baek <sbaek@nvidia.com>
Reviewed-on: http://git-master/r/434526
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dara Ramesh <dramesh@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

5 years agoarm64: tegra210: hda device registration
Ashok Mudithanapalli [Fri, 11 Jul 2014 11:44:49 +0000]
arm64: tegra210: hda device registration

add hda device entry to dt for t210-interposer.
bug 200008321

Change-Id: Ic489cffdc13730c293990824902814149b553911
Signed-off-by: Ashok Mudithanapalli <ashokm@nvidia.com>
Reviewed-on: http://git-master/r/437144
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoASoC: Tegra: Add effects capture for norrin
Deepa Madiregama [Wed, 2 Jul 2014 06:15:20 +0000]
ASoC: Tegra: Add effects capture for norrin

- Add dai link for effects capture

Bug 1399923

Reviewed-on: http://git-master/r/433496
(cherry picked from commit e452c87dcc23d91e1ad5c8ffeaa581f26496d54d)
Change-Id: Ie361aad3cedb1c47b8800fc9eac221e4fcaccc97
Signed-off-by: Deepa Madiregama <dmadiregama@nvidia.com>
Reviewed-on: http://git-master/r/441177
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agoASoC: Tegra: Add support for effects capture
Deepa Madiregama [Fri, 23 May 2014 09:53:51 +0000]
ASoC: Tegra: Add support for effects capture

Add capture node to get the effects data from AVP

Bug 1399923

Reviewed-on: http://git-master/r/414091
(cherry picked from commit 4e914c4dc48b6ba8d9cc92a3d788bf80aceea102)
Change-Id: I854de0966a40fe7867001a25058626da63b87b92
Signed-off-by: Deepa Madiregama <dmadiregama@nvidia.com>
Reviewed-on: http://git-master/r/441175
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

5 years agoASoC: Tegra: Add compress offload volume control
Deepa Madiregama [Tue, 22 Apr 2014 11:36:13 +0000]
ASoC: Tegra: Add compress offload volume control

Add alsa control for volume changes during compress
offload playback.

Bug 1498475
Change-Id: I5572338648a2fefdcf3095702bcbade35f1b0565

Reviewed-on: http://git-master/r/399682
(cherry picked from commit ff271dcc374f2dfc41228feaef2f369c5151a30a)
Signed-off-by: Deepa Madiregama <dmadiregama@nvidia.com>
Change-Id: I8709109f80523fbd9ec2272f87c138d15045c338
Reviewed-on: http://git-master/r/441172
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

5 years agoarm: tegra: ardbeg-vcm30-t124: update dt for refactoring
Joshua Cha [Fri, 25 Jul 2014 06:45:52 +0000]
arm: tegra: ardbeg-vcm30-t124: update dt for refactoring

dtsi file for vcm30t124 mcm is included.
Move disp registration to DT

Bug 1527003
Bug 200006908

Change-Id: I553954aa6838bb236c392acbb956238da6103105
Signed-off-by: Joshua Cha <joshuac@nvidia.com>
Reviewed-on: http://git-master/r/447479
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
Tested-by: Sandeep Trasi <strasi@nvidia.com>

5 years agoARM: tegra: vcm30t124: Fix dt setting for bcm43241-b4
Joshua Cha [Thu, 24 Jul 2014 09:01:00 +0000]
ARM: tegra: vcm30t124: Fix dt setting for bcm43241-b4

- add dt node for pca9539 for address 75
- add dt node for bluedroid_pm
- set ENABLE_MISC_BUF to high for enabling ADG3308
- remove bluedroid_pm registration in board file

Bug 1534075
Bug 200018032
Bug 200021509

Change-Id: Ifff1c5ab5934e83ebe3fb3fbeb905b2920e181b1
Signed-off-by: Joshua Cha <joshuac@nvidia.com>
Reviewed-on: http://git-master/r/441747
Reviewed-by: Phoenix Jung <pjung@nvidia.com>
Tested-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-by: Jinyoung Park <jinyoungp@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>

5 years agovideo: tegra: hdmi: Populate eld
Animesh Kishore [Fri, 25 Jul 2014 15:44:14 +0000]
video: tegra: hdmi: Populate eld

Populate eld and set eld valid and hda presence
to notify hda controller of monitor attached.

Bug 200006291

Change-Id: If4ca54edeb68e16a5337c67f9d794e2f8667b274
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/447657
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agovideo: tegra: hdmi: Implement suspend/resume
Animesh Kishore [Wed, 23 Jul 2014 12:33:37 +0000]
video: tegra: hdmi: Implement suspend/resume

Bug 200006291

Change-Id: Ib54bbbbca8b8d897c0b7f200427415782c6c40d7
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/441767
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agonvgpu: new gpmu ucode compatibility
Supriya [Thu, 24 Jul 2014 08:44:32 +0000]
nvgpu: new gpmu ucode compatibility

For LS PMU new ucode needs to be used.
Ucode has interface header file changes too.
This patch also has fixes for pmu dmem copy failure

Bug 1509680

Change-Id: I8c7018f889a82104dea590751e650e53e5524a54
Signed-off-by: Supriya <ssharatkumar@nvidia.com>
Reviewed-on: http://git-master/r/441734
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agogpu: nvgpu: Update gm20b GPU name
Alex Waterman [Thu, 26 Jun 2014 20:53:59 +0000]
gpu: nvgpu: Update gm20b GPU name

Change the name of gm20b's sysfs and related names. This also
includes changing the clock names as tegra's clock framework
expects the clock name to be based on the GPU device's name.

Bug 1420765

Change-Id: I12ba47b3de86373dc0e8cafa8e8566a7fa940968
Signed-off-by: Alex Waterman <alexw@nvidia.com>

5 years agoxusb_padctl: Not access padctl register on FPGA
Joy Wang [Mon, 28 Jul 2014 06:17:27 +0000]
xusb_padctl: Not access padctl register on FPGA

On FPGA, some acefile do not have xusb padctl implemented.
No accessing padctl register on FPGA to avoid hang.

Bug 200009146

Change-Id: I1e730d38cb7d2a2b237b37051158d199401a58eb
Signed-off-by: Joy Wang <joyw@nvidia.com>
Reviewed-on: http://git-master/r/447950
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-by: Jui Chang Kuo <jckuo@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoARM: tegra: dt: modify iommus property for dc
Min-wuk Lee [Fri, 25 Jul 2014 10:00:22 +0000]
ARM: tegra: dt: modify iommus property for dc

Bug 1371533
Bug 200008311

Change-Id: I1185ebeeaee2696eeb9b2d6d35d130210046f7a6
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/447562
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

5 years agoarm64: tegra210: hda device registration
Ashok Mudithanapalli [Mon, 7 Jul 2014 09:31:24 +0000]
arm64: tegra210: hda device registration

add hda device to dt.
bug 200008321

Change-Id: I7a53d8f55517587df47e30021c4eafec2a06b57a
Signed-off-by: Ashok Mudithanapalli <ashokm@nvidia.com>
Reviewed-on: http://git-master/r/435080
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Tested-by: Sachin Nikam <snikam@nvidia.com>

5 years agostaging: iio: light: iqs253: add iqs263 support
Sri Krishna chowdary [Mon, 23 Jun 2014 13:30:07 +0000]
staging: iio: light: iqs253: add iqs263 support

- add i2c routines for iqs263
- seperate out routines for iqs263 and iqs253
- auto detect iqs253 vs iqs263 and apply appropriate settings
- set HW suggested init settings to improve settings for iqs263
- Move code to appropriate places i.e., iqs253 first handshake
  need not happen for iqs263
- fix regulator logic to match regulator_enable and regulator_disable

Bug 1499925

Change-Id: I8970d2b17322598d8197022189016e4c02a76bd5
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/427198
(cherry picked from commit 9e2d7b22653fd70b99e8b14332af908e4f2d6113)
Reviewed-on: http://git-master/r/438104
(cherry picked from commit 5561f730fc2ea69d6ab522c123f0c2bf4c29dc58)
Reviewed-on: http://git-master/r/447911
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agostaging: iio: light: iqs253: update sensor code
Sri Krishna chowdary [Mon, 23 Jun 2014 10:52:52 +0000]
staging: iio: light: iqs253: update sensor code

1. clean up obsolete code paths
2. modify init sequence
3. modify i2c communication protocol
4. re init on power on reset detection
5. modify proximity detection thresholds and ATI registers

bug 1499925

Change-Id: Icd81346259e5e689ce64854a421b6e53f1d67d05
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/427154
(cherry picked from commit ae2861e7b8439574e36b0ccd41bf9e07a7c4a964)
Reviewed-on: http://git-master/r/434009
(cherry picked from commit 7a925fc2aacfd3cb1af89a13efeaf8d9fd884d9c)
Reviewed-on: http://git-master/r/433450
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agocpuidle: tegra210: fix default C/CCx/SC7 state values
Varun Wadekar [Mon, 21 Jul 2014 06:40:24 +0000]
cpuidle: tegra210: fix default C/CCx/SC7 state values

Instead of passing ID=0 for C7, set id = TEGRA210_CPUIDLE_C7.
Set affinity_level=2 for SC7 state.

Change-Id: I43308c8908122dc105e545034fbf75368e381b0d
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/440227
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>

5 years agoarm64: tegra: tegra210: add audio dtsi changes
Dara Ramesh [Wed, 23 Jul 2014 09:05:39 +0000]
arm64: tegra: tegra210: add audio dtsi changes

Add T210-ERS dtsi files for audio drivers.

bug 200021127

Change-Id: Ib36e1d5c3538f06de95985d60be6b60f34cf237b
Signed-off-by: Dara Ramesh <dramesh@nvidia.com>
Reviewed-on: http://git-master/r/441096
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Chandrakanth Gorantla <cgorantla@nvidia.com>
Reviewed-by: Daniel Fu <danifu@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agousb: xhci: tegra: fix Coverity issue of function arguement order
Deepak Nibade [Fri, 25 Jul 2014 07:18:07 +0000]
usb: xhci: tegra: fix Coverity issue of function arguement order

API memset() is called with wrong order of function arguements
Fix it by correcting the order
Coverity id : 26672

Bug 1416640

Change-Id: I564268727399ae99b0c7f323c67afffc1058dcb6
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/447533
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agomisc: tegra-profiler: fix Coverity issue of NULL dereference
Deepak Nibade [Fri, 25 Jul 2014 07:05:45 +0000]
misc: tegra-profiler: fix Coverity issue of NULL dereference

Pointer "pt_regs *regs" is first dereferenced and then checked for NULL
To fix this move NULL checking to beginning of function
Coverity id : 26686

Bug 1416640

Change-Id: I40e97e38e5a61a5d77ea68fa511e996f24385cfc
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/447532
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoARM: tegra: fix Coverity issue of unchecked return value
Deepak Nibade [Fri, 25 Jul 2014 06:57:20 +0000]
ARM: tegra: fix Coverity issue of unchecked return value

Fix Coverity issue of unchecked return value from API memblock_remove
Coverity id : 26816

Bug 1416640

Change-Id: Ia7e0a29fbf9fe0deb036742a72c15c1c6f35360b
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/447531
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Tested-by: Sachin Nikam <snikam@nvidia.com>

5 years agoarm: tegra: t124: fix indentation in t124 dtsi
Mitch Luban [Sat, 26 Jul 2014 01:15:34 +0000]
arm: tegra: t124: fix indentation in t124 dtsi

Change-Id: I79a02b51ed8ec12bdc76ad0f8e6c51a76b4e05ff
Signed-off-by: Mitch Luban <mluban@nvidia.com>
Reviewed-on: http://git-master/r/448015

5 years agommc: core: fix sysfs entry speed update
kirankumar Bobbu [Mon, 21 Jul 2014 10:21:11 +0000]
mmc: core: fix sysfs entry speed update

switching between the speed modes for emmc through sysfs
interface doesnot update the sysfs entry speed, even
though host and card switches to new mode.

Bug 200004027

Change-Id: I578e8fe9012d731da0907f0e291cc5c860aa3f1b
Signed-off-by: kirankumar Bobbu <kbobbu@nvidia.com>
Reviewed-on: http://git-master/r/440328
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Seshagiri Holi <sholi@nvidia.com>
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>

5 years agoiommu/tegra: smmu: modify error path in tegra_smmu_get_of_swgids
Sri Krishna chowdary [Thu, 24 Jul 2014 13:05:58 +0000]
iommu/tegra: smmu: modify error path in tegra_smmu_get_of_swgids

do not continue searching in case an invalid iommu property is found.
Just report error and fallback.

Bug 1463797

Change-Id: I13b2c5ee1a134d811ec08ed4ac191241eba8eee6
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/441806
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agoARM64: Tegra: Enable Raydium Touch DT for t210 interposer
Darren Sun [Wed, 16 Jul 2014 12:49:44 +0000]
ARM64: Tegra: Enable Raydium Touch DT for t210 interposer

Bug 200020676
Change-Id: Ib0a5b35890c754b4675d143dcc43c5982d4dfc7d
Signed-off-by: Darren Sun <darrens@nvidia.com>
Reviewed-on: http://git-master/r/438703
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Tested-by: Thomas Cherry <tcherry@nvidia.com>

5 years agoARM64: Tegra: remove board file of Raydium Touch for t210 interposer
Darren Sun [Fri, 25 Jul 2014 03:21:35 +0000]
ARM64: Tegra: remove board file of Raydium Touch for t210 interposer

Bug 200020676
Change-Id: I272a4ee64ab94e59d4514ba393f808c746a3ab4e
Signed-off-by: Darren Sun <darrens@nvidia.com>
Reviewed-on: http://git-master/r/438704
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Tested-by: Thomas Cherry <tcherry@nvidia.com>

5 years agolinux: nvmap: remove nvmap_get_platform_dev API
Krishna Reddy [Fri, 25 Jul 2014 19:33:22 +0000]
linux: nvmap: remove nvmap_get_platform_dev API

Remove obsolete API nvmap_get_platform_dev.

Change-Id: I46d745e0e8cdc5a4c959b819b652fd36bba2ed0a
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/447730
Reviewed-by: Automatic_Commit_Validation_User

5 years agogpio: gpiolib-of: Initialise gpio only when status of node enabled
Laxman Dewangan [Fri, 25 Jul 2014 14:48:31 +0000]
gpio: gpiolib-of: Initialise gpio only when status of node enabled

During gpio registration, gpio library initailise the gpio provided
through device node.

Add support to check whether status is enabled or not before initialising
it.

Bug 200024061

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

5 years agoARM: tegra: register console ports from board files for t210-interposer
Laxman Dewangan [Fri, 25 Jul 2014 13:43:30 +0000]
ARM: tegra: register console ports from board files for t210-interposer

Register conole port for T210 interposer from board files.

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

5 years agoarm64: config: tgra210: enable perf tracing
Bo Yan [Tue, 22 Jul 2014 19:45:52 +0000]
arm64: config: tgra210: enable perf tracing

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

5 years agoarm64: tegra: Update T210 interposer camera file
Frank Chen [Fri, 18 Jul 2014 01:29:44 +0000]
arm64: tegra: Update T210 interposer camera file

Update camera board file for T210 interposer

Change-Id: I67debdac8403385a8e7711ac69c4522251c2c07a
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/439584
Reviewed-by: David Wang (SW-TEGRA) <davidw@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Daniel Fu <danifu@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

5 years agoarm64: mm: dma: support DMA32 coherent allocations
Krishna Reddy [Thu, 24 Jul 2014 19:29:48 +0000]
arm64: mm: dma: support DMA32 coherent allocations

Support DMA32 coherent allocations for devices with 32-bit mask.
Bug 1454889

Change-Id: Ieaa996166761c6057eedc9d6e4e1ffc3a3f11d69
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/441917
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agonet: tegra hypervisor network driver
Pantelis Antoniou [Fri, 13 Jun 2014 12:00:35 +0000]
net: tegra hypervisor network driver

Introducing a tegra hypervisor based network driver.

A relatively straightforward network driver for HV enabled
Tegra systems, using standard IVC services.

Bug 1417482

Change-Id: I065c403bdc3e55d618125ce32795cad213466b02

Signed-off-by: Pantelis Antoniou <pantoniou@nvidia.com>
Signed-off-by: Bahadir Balban <bbalban@nvidia.com>
Change-Id: I8c5f68a1624afaa8459b6b6be67d8d3f0bf2f064
Reviewed-on: http://git-master/r/432812
Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com>

5 years agoserial: tegra: hv: Tegra IVC serial driver
Pantelis Antoniou [Fri, 18 Apr 2014 08:16:31 +0000]
serial: tegra: hv: Tegra IVC serial driver

Add a Tegra IVC based serial driver. By using it you can have
a cross IVC emulated serial port between guests, allowing you to
run consoles and whatever else you care about over it.

Bug 1417482

Change-Id: I2dec78608b14e5d38a7c4a0619ed6f19ada238d6
Signed-off-by: Pantelis Antoniou <pantoniou@nvidia.com>
Signed-off-by: Bahadir Balban <bbalban@nvidia.com>
Reviewed-on: http://git-master/r/428394
Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com>

5 years agonvhost: kzmalloc small jobs
Rich Wiley [Thu, 10 Jul 2014 00:36:06 +0000]
nvhost: kzmalloc small jobs

use kzmalloc for jobs <= PAGE_SIZE, which is faster and lighter
weight than using vzmalloc

bug 1532644

Change-Id: Ibc63c7262b12aad71743232b41b87bbff4761122
Signed-off-by: Rich Wiley <rwiley@nvidia.com>
Reviewed-on: http://git-master/r/#/c/436375/
(cherry picked from commit Ia012ea40f6c5bed5b31ca3b75e76e5c09d5c4449)
Reviewed-on: http://git-master/r/437275
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

5 years agoarm64: tegra: Enable new camera and focuser
Frank Chen [Thu, 24 Jul 2014 01:15:01 +0000]
arm64: tegra: Enable new camera and focuser

Add IMX214 sensor and DW9714 focuser to config
file

Bug 200013490

Change-Id: I27ddbd7ab2ce4fbbc4002ad051b4d111a5a57ef0
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/441535
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Tested-by: Thomas Cherry <tcherry@nvidia.com>

5 years agoiommu/tegra: smmu: fix possible null dereference
Sri Krishna chowdary [Thu, 24 Jul 2014 13:02:45 +0000]
iommu/tegra: smmu: fix possible null dereference

In case mapping is null, do not dereference it.

Coverity-id: 26807

Bug 1416640

Change-Id: I4c0e766aa67601e1d47bda627d7fd92c6cd1c2d1
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/441805
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agoiommu/tegra: smmu: get mapping details from iommus
Sri Krishna chowdary [Thu, 17 Jul 2014 10:06:34 +0000]
iommu/tegra: smmu: get mapping details from iommus

1. Add logic to get mapping related properties from iommus
2. If map is not yet created, use these details to create one
3. If map exists, then check if the current device's properties
   are consistent with existing map and warn if they are not
4. If there is no valid iommus property, then skip step 2 and 3
   and fallback to the legacy way of creating and retrieving mapping.

Also, show an error if a smmu client tries to register to a map before
smmu_handle is initialized.

bug 1463797

Change-Id: I8d82d190e12eecc45d7b1ea0bc1cd386e6c22ad7
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/434123
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agoiommu/tegra: smmu: modify tegra_smmu_get_mapping
Sri Krishna chowdary [Thu, 24 Jul 2014 06:54:15 +0000]
iommu/tegra: smmu: modify tegra_smmu_get_mapping

arm_iommu_detach_device checks gets map from dev->archdata.mapping
and checks for NULL. Remove redundant check for map while detaching.

Modify tegra_smmu_get_mapping to
1. always create mapping in case mapping is not initialized yet.
2. take swgids as argument to avoid redundant call.

bug 1463797

Change-Id: Ib0efd2741d0e24acc9601464dc7b0d694d44bf6f
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/441724
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agoiommu/tegra: smmu: modify error handling in platform notifier
Sri Krishna chowdary [Wed, 23 Jul 2014 20:30:51 +0000]
iommu/tegra: smmu: modify error handling in platform notifier

If smmu client's probe completes before tegra-smmu is initialized,
then show an error.

Although, it is slightly reduntant to call tegra_smmu_of_get_swgids here,
we are guaranteed that any iommu_op is called only after smmu_handle
is initialized.

bug 1463797

Change-Id: I50f9db9e3cb00c36bb72059e374b05a22c1b005f
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/441371
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agogpu: nvgpu: Use GPU device name in clock get operation
Alex Frid [Thu, 24 Jul 2014 07:04:05 +0000]
gpu: nvgpu: Use GPU device name in clock get operation

Used GPU device name in clock get operation (instead of fixed name),
to make operation is common for GK20A and GM20B. Updated clock ids
in tegra clock framework accordingly.

Bug 1450787

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

5 years agogpu: nvgpu: Make clock operations static
Alex Frid [Thu, 24 Jul 2014 06:42:35 +0000]
gpu: nvgpu: Make clock operations static

Made GK20A and GM20B  clock operations static, since they are invoked
only via HAL interfaces.

Bug 1450787

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

5 years agoclock: tegra21: Fix pex_uphy clock
Hoang Pham [Thu, 24 Jul 2014 08:32:29 +0000]
clock: tegra21: Fix pex_uphy clock

The pex_uphy clock should have only reset clock operation

Bug 1489337

Change-Id: I70d84eea3fbbd4a7654085f38cd422c3733fcf0e
Signed-off-by: Hoang Pham <hopham@nvidia.com>
Reviewed-on: http://git-master/r/441725
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Jay Agarwal <jagarwal@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bo Yan <byan@nvidia.com>

5 years agogpu: nvgpu: Switch to use GM20B hw header files
Hoang Pham [Thu, 24 Jul 2014 01:47:44 +0000]
gpu: nvgpu: Switch to use GM20B hw header files

Bug 1450787

Change-Id: Id28bd49eadae7b2310410c1676d73b37f57d1443
Signed-off-by: Hoang Pham <hopham@nvidia.com>
Reviewed-on: http://git-master/r/441543
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>

5 years agoarm64: dts: tegra210: add PMU device node
Bo Yan [Tue, 22 Jul 2014 19:42:39 +0000]
arm64: dts: tegra210: add PMU device node

this is needed for perf and tracing.

Change-Id: I696d123f419b55068cc75cad6d4d3c6fec8c9001
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/440850

5 years agosecurity: tlk_driver: new ss protocol support
Scott Long [Tue, 8 Jul 2014 18:43:10 +0000]
security: tlk_driver: new ss protocol support

The new secure storage protocol design allows the tlk daemon
to exchange data directly with the secure storage TA.

The only role the tlk_driver now plays is in the scheduling path
between the tlk daemon and the secure storage TA.

A summary of the corresponding changes:

 * add support for persistent mem buffer parameter type (the
   mapping to these buffers persist for the duration of the
   session); persistent mem buffers are kept on a separate
   shared memory descriptor list and are tracked by session id

 * modified ioctl interface between tlk daemon and tlk_driver to
   involve only a single command; the integer value passed down
   by the tlk daemon indicates whether it is ready for a new
   request or has just completed the last request

 * fixed up various warnings

Note that support for old protocol will be left intact until the
corresponding changes are applied to the TLK components.

Change-Id: Ibcaad4f0e00c8b1f107af5c1e82ea0aa4dd57398
Signed-off-by: Scott Long <scottl@nvidia.com>
Reviewed-on: http://git-master/r/435709
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Chris Johnson <cwj@nvidia.com>

5 years agousb: gadget: tegra: set vbus_in_lp0 flag in prepare callback
Allen Yu [Fri, 25 Jul 2014 08:48:14 +0000]
usb: gadget: tegra: set vbus_in_lp0 flag in prepare callback

Problem description:
To support charing in LP0, we set udc->vbus_in_lp0 flag
in tegra_udc_suspend(), so charging current won't be set
to zero and also wakeup event (power supply changed) won't
be reported by tegra_otg_suspend(). This works only if the
order of calling udc and otg _suspend() is guaranteed.

However, in existing code, udc device is added before otg
device. During device tree initialization, devices are
created/added according to the order of nodes in device
tree, then added to the PM core's list (dpm_list) in the
same order. During system suspend, device_suspend() is
called in the _reverse_ order of dpm_list. As a result,
tegra_otg_suspend() is called before tegra_udc_suspend(),
causing device fails to enter lp0 due to fake wakeup event
reported by otg suspend.

Fix description:
This change moves vbus_in_lp0 flag setting to _prepare()
callbacks, so it can always be set before calling
tegra_otg_suspend(), regardless of which device gets added
first during boot.

Bug 200023180

Change-Id: Iba746146b334dcaa3e7e3303b88d343c202d34c5
Signed-off-by: Allen Yu <alleny@nvidia.com>
Reviewed-on: http://git-master/r/441856
Reviewed-by: Rakesh Babu Bodla <rbodla@nvidia.com>
Reviewed-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoARM64: DT: Add SDHCI DT support on T210 interposer
R Raj Kumar [Wed, 2 Jul 2014 06:31:38 +0000]
ARM64: DT: Add SDHCI DT support on T210 interposer

Added SDHCI DT support for T210 Interposer based
E2141 board.

Bug 200015385
bug 200002163
bug 200014925
bug 200011966

Change-Id: I2b120fdcff7f39bbe4d8521fe7ac70db30f2e8d3
Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/433509
Reviewed-on: http://git-master/r/435115
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agoARM: tegra: Define aux data config for SDMMC
R Raj Kumar [Wed, 2 Jul 2014 09:10:39 +0000]
ARM: tegra: Define aux data config for SDMMC

Defined separate aux data config for SDMMC
 - ardbeg and t210ref board file updated

Bug 200015385
bug 200002163
bug 200014925
bug 200011966

Change-Id: I73b09815b62a1de66495f726a9c6d46a7f9612c3
Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/433565
Reviewed-on: http://git-master/r/435114
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agoARM: tegra: mmc: update DT bindings
Bitan Biswas [Fri, 4 Jul 2014 14:16:16 +0000]
ARM: tegra: mmc: update DT bindings

bug 200002163
bug 200014925
bug 200011966

Change-Id: I5e31a24e15143c8440740690090ba4a1b5720b8c
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/434792
Reviewed-by: Automatic_Commit_Validation_User

5 years agommc: host: sdhci: tegra: updated DT support
Bitan Biswas [Mon, 21 Jul 2014 14:32:01 +0000]
mmc: host: sdhci: tegra: updated DT support

Changes are as follows:
 - Added support for DT bindings as follows:
   default_drive_type, disable-clk-gate

Bug 200015385
bug 200002163
bug 200014925
bug 200011966

Change-Id: Id5fbf3b60ae8524308a3bfdccd92f93467323d99
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/440402
Reviewed-by: Automatic_Commit_Validation_User

5 years agoARM64: Tegra: add device name for GPIO KEYS
Darren Sun [Thu, 24 Jul 2014 07:29:23 +0000]
ARM64: Tegra: add device name for GPIO KEYS

Add the device name for GPIO Keys on T210
Bug 200021424

Change-Id: I60046deba9e68bdd5111a87af95816e0f9c9bc05
Signed-off-by: Darren Sun <darrens@nvidia.com>
Reviewed-on: http://git-master/r/441695
Reviewed-by: Hayden Du <haydend@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoASoC: tegra-alt: Add Tegra210 DMIC driver
Rahul Mittal [Tue, 22 Jul 2014 12:02:34 +0000]
ASoC: tegra-alt: Add Tegra210 DMIC driver

Add Tegra210 DMIC driver
Add DAI links and DAPM map for dmic
Add unit fpga specific clock programming

Bug 1456155

Change-Id: I80475761716dd2965627596500e77aa3f66e0ac9
Signed-off-by: Rahul Mittal <rmittal@nvidia.com>
Reviewed-on: http://git-master/r/422710
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoarm64: dts: Add Tegra210 DMIC sound entry
Rahul Mittal [Fri, 13 Jun 2014 08:02:15 +0000]
arm64: dts: Add Tegra210 DMIC sound entry

Add Tegra210 DMIC sound entry

Bug 1456155

Change-Id: Id35387c1b36efd90f43027239ee50de0a14bf423
Signed-off-by: Rahul Mittal <rmittal@nvidia.com>
Reviewed-on: http://git-master/r/423153
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoASoc: tegra: use event instead of semaphore in APM
Viraj Karandikar [Thu, 10 Jul 2014 06:06:45 +0000]
ASoc: tegra: use event instead of semaphore in APM

Change-Id: I299142b5493e7fe63a6e8ddbc1f3ff4c978afd7f
Signed-off-by: Viraj Karandikar <vkarandikar@nvidia.com>
Reviewed-on: http://git-master/r/437745
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agoARM: usb: xhci: update prod settings for T124/T132
Krishna Yarlagadda [Thu, 10 Jul 2014 09:57:24 +0000]
ARM: usb: xhci: update prod settings for T124/T132

Apply production settings for pex pll p0 during
usb3 port init.

Bug 1485506

Change-Id: I70d596c44f977d638385dc6b274d4ffd43545b80
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/436591
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agoArm: tegra: usb: set falcon clk rate to 336MHz
Krishna Yarlagadda [Wed, 25 Jun 2014 18:17:58 +0000]
Arm: tegra: usb: set falcon clk rate to 336MHz

Bug 1485506

Change-Id: Ia06dfdf8dc73bd424aa3cbbc14dff2d06b176d75
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/428426
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agousb: phy: tegra: fix XCVR VREG mask
Krishna Yarlagadda [Thu, 10 Jul 2014 10:08:24 +0000]
usb: phy: tegra: fix XCVR VREG mask

UTMIP_XCVR_VREG_MASK should start from bit 9 and not 10
to cover bit 9,10 & 11. Fixed it.

Bug 1499560

Change-Id: I9d87590b4e178bd037b194716d4836d5194a4370
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/436595
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agotegra: vcm30t124_vm2: Disable soc_therm in dt.
Nitin Sehgal [Thu, 24 Jul 2014 05:05:10 +0000]
tegra: vcm30t124_vm2: Disable soc_therm in dt.

bug 200021411

Change-Id: I580bb641cad72d383f88784bf7b91b4355de651e
Signed-off-by: Nitin Sehgal <nsehgal@nvidia.com>
Reviewed-on: http://git-master/r/441622
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoPCI: Configure ASPM when enabling device
Vidya Sagar [Wed, 16 Jul 2014 10:03:42 +0000]
PCI: Configure ASPM when enabling device

We can't do ASPM configuration at enumeration-time because enabling it
makes some defective hardware unresponsive, even if ASPM is disabled later
(see 41cd766b0659 ("PCI: Don't enable aspm before drivers have had a chance
to veto it").  Therefore, we have to do it after a driver claims the
device.

We previously configured ASPM in pci_set_power_state(), but that's not a
very good place because it's not really related to setting the PCI device
power state, and doing it there means:

  - We incorrectly skipped ASPM config when setting a device that's
    already in D0 to D0.

  - We unnecessarily configured ASPM when setting a device to a low-power
    state (the ASPM feature only applies when the device is in D0).

  - We unnecessarily configured ASPM when called from a .resume() method
    (ASPM configuration needs to be restored during resume, but
    pci_restore_pcie_state() should already do this).

Move ASPM configuration from pci_set_power_state() to
do_pci_enable_device() so we do it when a driver enables a device.

Fixes: db288c9c5f9d ("PCI / PM: restore the original behavior of pci_set_power_state()")
Suggested-by: Bjorn Helgaas <bhelgaas@google.com>

Bug 200011678

(cherry picked from commit 1f6ae47ecff7f23da73417e068018b311f3b5583)
repo : git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git

Change-Id: I0f8eebcd472c1ec1d5099bc560742af55d7d5aba

Link: https://bugzilla.kernel.org/show_bug.cgi?id=79621
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Vidya Sagar <sagar.tv@gmail.com>
Change-Id: I0f8eebcd472c1ec1d5099bc560742af55d7d5aba
Reviewed-on: http://git-master/r/440348
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Tested-by: Sachin Nikam <snikam@nvidia.com>

5 years agoASOC: DPCM: Allow pause state as prev state for stop state
Chandrakanth Gorantla [Fri, 25 Apr 2014 13:49:57 +0000]
ASOC: DPCM: Allow pause state as prev state for stop state

In case of seek, pause <-> stop <-> resume is the general
sequence, so allow pause state to come before stop.
Bug 1405523

Change-Id: Ib90d5c6cb780bdb5c9cedd33ae114f78603b2649
Reviewed-on: http://git-master/r/401556
(cherry picked from commit 97fdd73057b273016fc87a7413fca561c7c0f814)
Signed-off-by: Chandrakanth Gorantla <cgorantla@nvidia.com>
Reviewed-on: http://git-master/r/440330
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>

5 years agoinput: gpio-keys: set key name as node name if name property missing
Laxman Dewangan [Thu, 24 Jul 2014 12:21:39 +0000]
input: gpio-keys: set key name as node name if name property missing

When registering gpio keys from DT and if gpio-keys,name property missing
then set input name as the node name.

Change-Id: Ibe83e002437d26460892648bf21215e1267b785f
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/441792

5 years agoiommu/tegra: smmu: remove unused as field
Sri Krishna chowdary [Wed, 23 Jul 2014 12:40:43 +0000]
iommu/tegra: smmu: remove unused as field

the as * in smmu_client is not used anymore. Remove it.

Bug 1380107

Change-Id: I8ceb2711e5aa2ca85d2f6c0fb24568dffc859ec1
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/441198
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Tested-by: Sachin Nikam <snikam@nvidia.com>

5 years agoarm64: dts: display dt node for t210
Min-wuk Lee [Thu, 26 Jun 2014 05:36:58 +0000]
arm64: dts: display dt node for t210

Prepare T210 dt nodes that are related with display
systems.

Bug 1371533
Bug 200008311

Change-Id: Ic8908f2db875ef7e772ae43d350b20bc98eb85fe
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/428722
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Tested-by: Sachin Nikam <snikam@nvidia.com>

5 years agoARM: tegra: remove extcon name and compatible for AS3722 childs
Laxman Dewangan [Wed, 23 Jul 2014 12:46:59 +0000]
ARM: tegra: remove extcon name and compatible for AS3722 childs

Remove extcon names from the pmic file and correct the path of this
property on top level file.

Remove compatible from the as3722 childs as this is not used.

Change-Id: I0a7102e457cec8cf4e2bfe5330a8b5a0298ec967
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/441200

5 years agoarm64: tegra: e2220: Add pcie dt node
Jay Agarwal [Tue, 15 Jul 2014 10:41:51 +0000]
arm64: tegra: e2220: Add pcie dt node

Bug 200018531

Change-Id: Ifa4e6543f0f4f2f9589b7e54c5748d6e10bcaf31
Signed-off-by: Jay Agarwal <jagarwal@nvidia.com>
Reviewed-on: http://git-master/r/438109
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agopci: restructure to align with upstream driver
Vidya Sagar [Fri, 13 Jun 2014 04:36:36 +0000]
pci: restructure to align with upstream driver

following things depends on dtb
-> pad, afi and cs register info
-> available root ports and thier addresses
-> port config spaces, io, prefetchable,
    non-prefetchable memory ranges
-> number of lanes per port

It also removes global variable 'tegra_pcie' and
makes it as part of driver private data.

Bug 200012096

Change-Id: I458a7a3156b2b58a39b076388af5a8cf50111a87
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/436732
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoARM: tegra12: vcm30t124: p2360: update defconfig
Ashwin Joshi [Tue, 15 Jul 2014 06:47:58 +0000]
ARM: tegra12: vcm30t124: p2360: update defconfig

Update defconfigs for vcm30t124 and p2360 to disable Simon support.

Bug 1451212

Change-Id: If72ef84766985a354b5d6d67050fc23b90ce5294
Signed-off-by: Ashwin Joshi <asjoshi@nvidia.com>
Reviewed-on: http://git-master/r/428836
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>

5 years agoARM: tegra12: simon: Fix bug in simon code
Ashwin Joshi [Tue, 1 Jul 2014 07:30:12 +0000]
ARM: tegra12: simon: Fix bug in simon code

Use #ifdef instead of #if in the code.

Bug 1451212

Change-Id: Iaf857438dccd31495612b165e7c772df4fc75f0e
Signed-off-by: Ashwin Joshi <asjoshi@nvidia.com>
Reviewed-on: http://git-master/r/433066
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>

5 years agoARM: tegra: Simon: Make SiMon code configurable
Ashwin Joshi [Thu, 26 Jun 2014 08:14:08 +0000]
ARM: tegra: Simon: Make SiMon code configurable

SiMon code was setting up data structures unconditionally. Move it under
CONFIG_TEGRA_USE_SIMON.

Bug 1451212

Change-Id: Ib40fe87421f20e6fdd8ea301602be13815ad1ace
Signed-off-by: Ashwin Joshi <asjoshi@nvidia.com>
Reviewed-on: http://git-master/r/428277
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>

5 years agoarm: tegra: fix io_dpd2 lsb
Prashant Gaikwad [Thu, 24 Jul 2014 11:57:09 +0000]
arm: tegra: fix io_dpd2 lsb

LSB=5 was valid for T30, it has changed to 30 from T114.
Not adding any config as T30 is no longer in dev-kernel.

Change-Id: I9239cade3eb2405c12829b768245ce004d2b9951
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/441784
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Wen Yi <wyi@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agovideo: tegra: host: Add interrupt debug routines
Arto Merilainen [Fri, 18 Jul 2014 08:25:56 +0000]
video: tegra: host: Add interrupt debug routines

In some rare cases the interrupts are kept disabled even if we
are waiting for a syncpoint interrupt. This patch adds a
routine to dump the current interrupt register values.

Bug 1532688

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

5 years agoarm: tegra: add soctherm DT interrupt_controller
Steve Rogers [Mon, 21 Jul 2014 21:08:29 +0000]
arm: tegra: add soctherm DT interrupt_controller

Bug 200004664

Change-Id: I0e5cefc47017d47d40b90c07483220df077ad56b
Signed-off-by: Steve Rogers <srogers@nvidia.com>
Reviewed-on: http://git-master/r/440511
Reviewed-by: Timo Alho <talho@nvidia.com>
Tested-by: Timo Alho <talho@nvidia.com>

5 years agoTegra: Audio: add new members to shared structure
Ravindra Lokhande [Tue, 15 Jul 2014 13:39:12 +0000]
Tegra: Audio: add new members to shared structure

added new variables to shared audio structure. These are needed to
track timestamp, starvation and fragments.

Bug 4186818

Change-Id: Ib451483e68887db3e70d56ce153c231a3724bad2
Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-on: http://git-master/r/438197
(cherry picked from commit bbb11a825a891b5e429db098bc68baa8eb3c8dea)
Reviewed-on: http://git-master/r/441755
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agotegra: adsp: Add adsp cpu dfs
Puneet Saxena [Mon, 21 Jul 2014 13:19:01 +0000]
tegra: adsp: Add adsp cpu dfs

Add adsp cpu dfs. It adds mechanism to set adsp freq
calculated by ape_actmon device dynamically.

Bug 1506829

Change-Id: I5f7f656c2cf7339cf8c4018e1177ee5d175a8b2e
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-on: http://git-master/r/437691
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoRevert "gpu: nvgpu: return error from mutex_acquire() if pmu not initialized"
Deepak Nibade [Thu, 24 Jul 2014 12:06:56 +0000]
Revert "gpu: nvgpu: return error from mutex_acquire() if pmu not initialized"

This reverts commit 50497d4031103df1067f14ce4c1e14b15713efb9.

Simply returning error from mutex_acquire() causes the code
to call disable_elpg() which decreases elpg refcount
But we already have a race condition between pmu initialization
where we initialize elpg and runlist update where we call
this mutex_acquire and decrease the refcount

As a result of this race and returned error we might mess up
with the elpg refcount and cause abnormal behaviour

Hence revert this change for now until we have clean fix
considering this race as well

Bug 200024116

Change-Id: Ie64ca36f70aba6b15c2acc235a5d36d13c9025aa
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/441793
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>

5 years agoarm64: tegra: add modem node in T210 DTS
Mark Kuo [Tue, 22 Jul 2014 07:32:46 +0000]
arm64: tegra: add modem node in T210 DTS

Add modem node to T210 DTS

Bug 200012894

Change-Id: I2c84db13aa6f5f786b6a11929384b5e896e56215
Signed-off-by: Mark Kuo <mkuo@nvidia.com>
Reviewed-on: http://git-master/r/439073
Tested-by: Steve Lin <stlin@nvidia.com>
Reviewed-by: Steve Lin <stlin@nvidia.com>

5 years agoARM64: tegra: Update CPU PWM regulator limits
Alex Frid [Thu, 24 Jul 2014 03:53:22 +0000]
ARM64: tegra: Update CPU PWM regulator limits

Bug 1528707

Change-Id: I3ba7d40fc1caf01963d5dfed1ba69a6626bb0051
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/441635
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hoang Pham <hopham@nvidia.com>
Tested-by: Hoang Pham <hopham@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agodvfs: tegra21: Integrate CPU DVFS tables
Alex Frid [Wed, 23 Jul 2014 07:07:32 +0000]
dvfs: tegra21: Integrate CPU DVFS tables

Integrated preliminary Tegra21 CPU clusters DVFS tables.

Bug 1528707

Change-Id: I1d7546af7c8442762f3044949647fbc7632f1cf0
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/441584
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hoang Pham <hopham@nvidia.com>
Tested-by: Hoang Pham <hopham@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agonvdumper: enable for t124/t132 socs
Yifei Wan [Thu, 24 Jul 2014 16:35:17 +0000]
nvdumper: enable for t124/t132 socs

Change-Id: Ia0b697dd0cf41ca20a60463c73b49395d28aff07
Signed-off-by: Yifei Wan <ywan@nvidia.com>
Reviewed-on: http://git-master/r/441865
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agoarm64: tegra132: specify PMIC config for MTS
Peng Du [Wed, 19 Mar 2014 23:00:23 +0000]
arm64: tegra132: specify PMIC config for MTS

Bug 1470221

Change-Id: If6839407c06ec4afe3764703f6e48c6f0434d205
Signed-off-by: Peng Du <pdu@nvidia.com>
Reviewed-on: http://git-master/r/406524
Reviewed-on: http://git-master/r/384646
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

5 years agoarm64: tegra132: generic SW/MTS interface support
Peng Du [Wed, 19 Mar 2014 18:10:48 +0000]
arm64: tegra132: generic SW/MTS interface support

Bug 1470221

Change-Id: Ie6be6574e857a89989329e6f3baa4a331e02039b
Signed-off-by: Peng Du <pdu@nvidia.com>
Reviewed-on: http://git-master/r/406523
Reviewed-on: http://git-master/r/383958
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

5 years agoARM: tegra: dtb: remove laguna string for jetson
Prabhu Kuttiyam [Tue, 6 May 2014 19:56:16 +0000]
ARM: tegra: dtb: remove laguna string for jetson

This commit removes laguna comptability strings for
jetson-tk1 boards.

bug 1509239

Change-Id: Ifef547aa19f479c3adc03cc7c3557aa9372e1cb2
Signed-off-by: Prabhu Kuttiyam <pkuttiyam@nvidia.com>
Reviewed-on: http://git-master/r/406015
(cherry picked from commit ff3d39e0cef851b60d11106db68bdccd2f37c646)
Reviewed-on: http://git-master/r/438379
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

5 years agoARM: tegra: pm375: add jetson-tk1 references
Prabhu Kuttiyam [Tue, 6 May 2014 20:03:14 +0000]
ARM: tegra: pm375: add jetson-tk1 references

This commit adds jetson-tk1 compatible reference checks
to the architecture code.

bug 1509239

Change-Id: I859452a0c8705b6fda8e1739906eb78f2b0527b2
Signed-off-by: Prabhu Kuttiyam <pkuttiyam@nvidia.com>
Reviewed-on: http://git-master/r/406016
(cherry picked from commit f2e5dba37b8a5750b3a516e6c7bcfb0b603bca53)
Reviewed-on: http://git-master/r/438378
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

5 years agoarm: tegra124: PM375: update soc0 machine name
Prabhu Kuttiyam [Fri, 14 Mar 2014 00:50:56 +0000]
arm: tegra124: PM375: update soc0 machine name

This commit adds a new machine name for PM375 boards.

bug 1395699

Change-Id: Ia07b86a03e2457b192095b0bb01cc7ee900641d7
Signed-off-by: Prabhu Kuttiyam <pkuttiyam@nvidia.com>
Reviewed-on: http://git-master/r/#/c/381774
(cherry picked from commit 03b586d56df60b73d211c4b834adffa5990fb93c)
Reviewed-on: http://git-master/r/438377
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

5 years ago/proc/meminfo: provide estimated available memory
Rik van Riel [Tue, 21 Jan 2014 23:49:05 +0000]
/proc/meminfo: provide estimated available memory

Many load balancing and workload placing programs check /proc/meminfo to
estimate how much free memory is available.  They generally do this by
adding up "free" and "cached", which was fine ten years ago, but is
pretty much guaranteed to be wrong today.

It is wrong because Cached includes memory that is not freeable as page
cache, for example shared memory segments, tmpfs, and ramfs, and it does
not include reclaimable slab memory, which can take up a large fraction
of system memory on mostly idle systems with lots of files.

Currently, the amount of memory that is available for a new workload,
without pushing the system into swap, can be estimated from MemFree,
Active(file), Inactive(file), and SReclaimable, as well as the "low"
watermarks from /proc/zoneinfo.

However, this may change in the future, and user space really should not
be expected to know kernel internals to come up with an estimate for the
amount of free memory.

It is more convenient to provide such an estimate in /proc/meminfo.  If
things change in the future, we only have to change it in one place.

Bug 200021786

Signed-off-by: Rik van Riel <riel@redhat.com>
Reported-by: Erik Mouw <erik.mouw_2@nxp.com>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
(cherry picked from commit 34e431b0ae398fc54ea69ff85ec700722c9da773)
Change-Id: I11885e40e304f847c62a94d184033c51569d3192
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/440337
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agoarm64: tegra210: remove UP CPU reset handler init
Bo Yan [Wed, 23 Jul 2014 23:56:45 +0000]
arm64: tegra210: remove UP CPU reset handler init

t210 CPU reset handling is done differently, remove the dead code
inherited from previous generation.

Change-Id: I3b46549cb1ba13655eec4b6b787ac09364b75a79
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/441473