4 years agomisc: tegra-baseband: remove remote wakeup callback
Neil Patel [Thu, 5 Feb 2015 17:22:55 +0000]
misc: tegra-baseband: remove remote wakeup callback

The ehci-tegra driver is holding a wakelock as long as the bus is active
so the wakelock taken upon remote wake in tegra_usb_modem_power is no
longer necessary.

Additionally, ehci-tegra also skips resume of the modem if it was suspended
prior to LP0 entry so the short autosuspend delay for power savings is no
no longer necessary.

Bug 1557355

Change-Id: I67fe998ef5cff7fac9282d20338b31ee50a42ba1
Signed-off-by: Neil Patel <neilp@nvidia.com>
Reviewed-on: http://git-master/r/726577
(cherry picked from commit f936ebbc9ff0ad3bdac0087253d03f9917b23dbb)
Reviewed-on: http://git-master/r/738086
Reviewed-by: Mark Kuo <mkuo@nvidia.com>
Reviewed-by: Steve Lin <stlin@nvidia.com>

4 years agovideo: tegra: host: Wait sp for max before freeing
Arto Merilainen [Mon, 4 May 2015 08:12:09 +0000]
video: tegra: host: Wait sp for max before freeing

Currently we wait for syncpoint maximum value before freeing the
syncpoint, however, we allow interrupting this. As a result, we
may end up freeing syncpoint before the maximum value has been

This patch makes syncpoint waits uninterruptible while freeing the

Bug 1614168

Change-Id: I361fac7b6cc5ee4710d1b60914687ca4e33431f1
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/738424
Reviewed-by: Automatic_Commit_Validation_User

4 years agospi: tegra: request CS gpio only once on setup callback
Laxman Dewangan [Thu, 30 Apr 2015 10:00:52 +0000]
spi: tegra: request CS gpio only once on setup callback

Spi_setup can be call multiple times. There is provision
to control CS through the GPIO and for this, GPIO is
requested on setup callback.

Request GPIO only once on spi_setup() as setup can be call
multiple times.

bug 1626756

Change-Id: Id2694b4e8075ac1b5c4cc17f160ddcd228bf47c3
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/737743
Reviewed-by: Dipesh Gandhi <dipeshg@nvidia.com>
GVS: Gerrit_Virtual_Submit

4 years agoARM: tegra: t210-ers: add DTS to support MAX77621 as CPU/GPU regulator
Laxman Dewangan [Wed, 25 Mar 2015 15:14:11 +0000]
ARM: tegra: t210-ers: add DTS to support MAX77621 as CPU/GPU regulator

Add top level DTS file to support the ERS platform E2220/E2143 with
CPU/GPU regulator as the MAX77621.

Change-Id: Iebdc9d41d4bd7e47aa134f70f7b2104f11b8bb1d
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/722806
GVS: Gerrit_Virtual_Submit

4 years agoARM: dts: add dts file for BYD battery
Venkat Reddy Talla [Mon, 13 Apr 2015 11:06:19 +0000]
ARM: dts: add dts file for BYD battery

To enable BYD battery support on ST8 platform,
adding new dts file to make configuration for BYD battery.

Change-Id: I0f2f54b349b7de6171e8705fc28b08e44841915d
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/730916
GVS: Gerrit_Virtual_Submit
Reviewed-by: Eric Chuang <echuang@nvidia.com>
(cherry picked from commit 500c50e75c930d3a41f92fa0ece84b85981ac8e3)
Reviewed-on: http://git-master/r/733198
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
Tested-by: Dhiren Parmar <dparmar@nvidia.com>
(cherry picked from commit 94169d5250af16b9255dfe1d5aed7a0033fafa4b)
Reviewed-on: http://git-master/r/734861
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agopower: bq2419x: add thermal charging profile support
Venkat Reddy Talla [Fri, 10 Apr 2015 11:35:03 +0000]
power: bq2419x: add thermal charging profile support

Configure charging voltage and current limit based on battery
tempretature.Read battery temperature using thermal zone framework
and configure voltage and current as per thermal profile data
available in DT.
Disable charging when battery temperature measured
more than 50C as per new battery thermal charging profile.

Bug 1633184

Change-Id: Icd0bc9ee0d88566d0b808aa378af8d69a6064cce
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/730171
(cherry picked from commit caf18e76ea004eb2d176701106a80342e545c50f)
Reviewed-on: http://git-master/r/738375
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoARM64: dts: add thermal profile data for Hawkeye
Venkat Reddy Talla [Fri, 10 Apr 2015 11:31:58 +0000]
ARM64: dts: add thermal profile data for Hawkeye

Add thermal profile data for Hawkeye platform
to change charging voltage and current limit
based on battery temperature.

Bug 1633184

Change-Id: Ic0408e7a5ad1cc0086df3826e2f38c8d93d77027
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/730170
(cherry picked from commit 1e66309e0561446b7004e187c3d699f1f5e16ca0)
Reviewed-on: http://git-master/r/738374
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agostaging: iio: ads: update config for one shot and continuous mode
Venkat Reddy Talla [Thu, 19 Mar 2015 12:47:37 +0000]
staging: iio: ads: update config for one shot and continuous mode

Add support to update different configuration for one shot
and continuous mode based on dt node properties.

Bug 200083122

Change-Id: Iaaa830f6e9b2f8e43a7a3e4162a2f0899012d249
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/724979
(cherry picked from commit dd36734c0a2e4586e76e48cd38ac1714fe70b374)
Reviewed-on: http://git-master/r/719601
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoARM64: dts: add one shot and continuous mode
Venkat Reddy Talla [Thu, 19 Mar 2015 12:45:19 +0000]
ARM64: dts: add one shot and continuous mode

Add continuous_mode subnode for ads1015 to provide
different configuration for one shot and continuous
modes through dts.

Bug 200083122

Change-Id: I76d33291eb8f23fca0013687fc962b33d9d5908e
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/724978
(cherry picked from commit f8b54dfb434069556da289d50cffcdf34a7c42e8)
Reviewed-on: http://git-master/r/719600
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agonvadsp: fix Coverity defect of out-of-bound access
omar [Wed, 22 Apr 2015 21:53:24 +0000]
nvadsp: fix Coverity defect of out-of-bound access

increase fixed array size by 1 dword to match the
definition of the data structure in the rest of the

Coverity defect id = 29956

Bug 1416640

Change-Id: I0b0239920dba0d9bd60a51c802e8eba194d909b4
Signed-off-by: omar <onemri@nvidia.com>
Reviewed-on: http://git-master/r/734436
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agoarm64: dts: odin: add 720p 6" panel
Min-wuk Lee [Sun, 3 May 2015 10:30:11 +0000]
arm64: dts: odin: add 720p 6" panel

Add 720p 6" panel in odin common dtsi.
Based on the default display uuid or directly defined
status, this panel will be selected as a default
internal panel.

Bug 1629139

Change-Id: I35fb5b6e80ccbae485890982526866321685e456
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/738270
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agoarm: tegra: panel-o-720p-6-0
Min-wuk Lee [Sun, 3 May 2015 09:57:11 +0000]
arm: tegra: panel-o-720p-6-0

Prepare panel-o-720p-6-0 panel file
and change common board-panel file,

Bug 1629139

Change-Id: I3451e2a0209ed0e5d0eb34a4020c56677043b119
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/738267
GVS: Gerrit_Virtual_Submit
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agoarm: dts: panel-o-720p-6-0.dsti
Min-wuk Lee [Tue, 31 Mar 2015 16:51:43 +0000]
arm: dts: panel-o-720p-6-0.dsti

Add panel-o-720p-6-0.dsti

Bug 1629139

Change-Id: I07f21be17f0c9aa0c4a49209008a96f6a0b51b94
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/738263
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agoarm64: dts: set avdd_dsi_csi power to 1.2V
Min-wuk Lee [Sun, 3 May 2015 11:33:45 +0000]
arm64: dts: set avdd_dsi_csi power to 1.2V

avdd_dsi_csi power needs to be 1.2V, not 1.8V.

Bug 1629139

Change-Id: I135e65459dd8fe14672e47e0bb338ff86dc6e691
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/738272
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agotegra: video: fb: keep old variable screen info
Pankaj Dabade [Wed, 15 Apr 2015 11:32:41 +0000]
tegra: video: fb: keep old variable screen info

In the absence of HDMI monitor we had deleted complete
variable screen info. At hotplug detection we are only
updating the mode information in variable info and the
other information remains NULL.
This patch keeps the data structure intact and overwrites
only the mode settings.
tegra_dc_set_fb_mode() api will be used to copy instead
of previous hardcoding.

Bug 200091295

Change-Id: I5d84ad900ea4f080e78b2f42992461e711b64f7e
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/736268
(cherry picked from commit b3c44857c833d62b449cbef593c2e2181c0eb41a)
Reviewed-on: http://git-master/r/738346
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agoplatform: tegra: mc: T210 LA update
Ken Chang [Fri, 17 Apr 2015 08:42:26 +0000]
platform: tegra: mc: T210 LA update

PCX(PCIe) MCCIF buffer size was calculated based on 400MHz emcclk
thus la_ref_clk_mhz shall be set to 400. Otherwise, it will lead
to a larger value of LA and degrade the performance.

Bug 200096223

Change-Id: Ic9c23ad1556583b884600ee4b1505e8b1b4d887b
Signed-off-by: Ken Chang <kenc@nvidia.com>
Reviewed-on: http://git-master/r/732659
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Alex Waterman <alexw@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

4 years agommc: tegra: Add clk_name member in sdhci platform data
R Raj Kumar [Wed, 29 Apr 2015 10:55:10 +0000]
mmc: tegra: Add clk_name member in sdhci platform data

Added clk_name data member in sdhci platform data for
passing it in the clk control apis on T18x platforms.

Bug 200097391

Change-Id: Ia041bc5c6535c1e99cf70e744e66d10d22a61d52
Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/737245
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

4 years agousb: phy: tegra: set UTMIP_PCOUNT_UPDN_DIV to zero
Rakesh Babu Bodla [Mon, 27 Apr 2015 08:37:05 +0000]
usb: phy: tegra: set UTMIP_PCOUNT_UPDN_DIV to zero

Set UTMIP_PCOUNT_UPDN_DIV to zero to address hosts
having jitter issues.

Bug 200085253
Bug 200100469

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

4 years agomedia: rc: removed Shield keys
Daniel Fu [Wed, 22 Apr 2015 02:40:39 +0000]
media: rc: removed Shield keys

1. Removed Shield keys, prevent from taking IR as joystick,
which will breake some apps/games.
2. Clean up internal testing keycodes.

Bug 1636698

Change-Id: I8f34b9ac4e6410791c926bffbeef17a0d4f8e2ee
Signed-off-by: Daniel Fu <danifu@nvidia.com>
Reviewed-on: http://git-master/r/733939
(cherry picked from commit f59069308447b4c6823ba32a5acf80f727c458c1)
Reviewed-on: http://git-master/r/737204
GVS: Gerrit_Virtual_Submit

4 years agoarm: tegra: add DP and HDMI dt bindings
Shu Zhong [Tue, 24 Mar 2015 01:33:34 +0000]
arm: tegra: add DP and HDMI dt bindings

Added 'sor1-output-type' prop to sor1 node that specifies
whether the secondary panel should be configured for DP
or HDMI. This is a cleaner option than checking which
CONFIGs are enabled.

Bug 200041308

Change-Id: I2b8f28e17491513cbcb5782f1b453e55a09c8acd
Signed-off-by: Shu Zhong <shuz@nvidia.com>
Reviewed-on: http://git-master/r/732916
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>

4 years agogpu: nvgpu: Export VPR allocator
Terje Bergstrom [Thu, 30 Apr 2015 17:05:34 +0000]
gpu: nvgpu: Export VPR allocator

Export functions for VPR allocation.

Bug 1625090

Change-Id: Ief54613402965da3f41d8dd4a463c75729a3941a
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/737847

4 years agoplatform: tegra: move pasr initialization to bpmp
Prashant Gaikwad [Tue, 31 Mar 2015 10:19:17 +0000]
platform: tegra: move pasr initialization to bpmp

Need BPMP device node to allocate memory shared with

Bug 1551741

Change-Id: I57c320cf7bae1bca2fece671825fe121362865c3
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/725545
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agoarm64: dts: tegra210: grenada: fix gpu regulator
Edgardo Handal [Thu, 30 Apr 2015 20:10:03 +0000]
arm64: dts: tegra210: grenada: fix gpu regulator

The gpu_ovr_reg pwm-regulator is broken since it expects gpios that
aren't in grenada. Disable the gpio property so the GPU can power on.

Change-Id: I58cde9ffeefeb008981d4e6d110e765e751b0ebe
Signed-off-by: Edgardo Handal <ehandal@nvidia.com>
Reviewed-on: http://git-master/r/737917
Reviewed-by: Matt Craighead <mcraighead@nvidia.com>
Tested-by: Matt Craighead <mcraighead@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>

4 years agocamera: writing raw I2C commands
Hu He [Tue, 10 Mar 2015 19:22:16 +0000]
camera: writing raw I2C commands

Add support to write raw I2C commands.

For example such feature can help move
a sensor from default slave address
to a new address to resolve address
conflict, or program sensor from device
tree, which are useful during camera

Initially developed by Karsten Patzwaldt

Bug 1559721
Bug 1618951
Bug 1626950

Change-Id: I098c953782c0c42a4a360c5810f3b943c3d58150
Signed-off-by: Hu He <hhe@nvidia.com>
Reviewed-on: http://git-master/r/715925
(cherry picked from commit 57a3c7e2645ee3fa9aede4ba37b1fea3cede89de)
Reviewed-on: http://git-master/r/728345
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Karsten Patzwaldt <kpatzwaldt@nvidia.com>
Tested-by: Karsten Patzwaldt <kpatzwaldt@nvidia.com>
Reviewed-by: Sudhir Vyas <svyas@nvidia.com>

4 years agoVideo: tegra: host: vi/isp: Use _IOC_NR for ioctls
Sudhir Vyas [Tue, 28 Apr 2015 13:52:56 +0000]
Video: tegra: host: vi/isp: Use _IOC_NR for ioctls

Use _IOC_NR macro for vi/isp ioctls to make their
definitions independent of 32bit-64bit system

Bug 200101150

Change-Id: Idb526191e93b1ccce80d97a01ff01a04ba5dfdf9
Signed-off-by: Sudhir Vyas <svyas@nvidia.com>
Reviewed-on: http://git-master/r/736768
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

4 years agoclock: tegra21: Preserve DSI clock enable
Alex Frid [Tue, 28 Apr 2015 01:31:22 +0000]
clock: tegra21: Preserve DSI clock enable

Preserved DSI clock enable state when setting PLLD default
configuration. This bit is a dynamic enable control exposed to clock
consumers, rather than static configuration setting.

Bug 1640647

Change-Id: I2575006704a972401f8bc25e06ccd142196addc5
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/736545
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

4 years agoclock: tegra21: Initialize enabled on boot DFLL
Alex Frid [Sat, 25 Apr 2015 01:54:23 +0000]
clock: tegra21: Initialize enabled on boot DFLL

Extended DFLL initialization to support CPU boot on enabled DFLL
(until this commit on CPU boot on PLLX was supported).

Port from Tegra12 commit 989ed2e5c861946a722405be5e2780f99487a968.

Bug 200085579

Change-Id: I9323346fe873d9bbffc76e01f037b7c5b8d81129
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/735889
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

4 years agoclock: tegra21: Assign clock ID for PCIEX
Hoang Pham [Wed, 29 Apr 2015 23:49:19 +0000]
clock: tegra21: Assign clock ID for PCIEX

Assign Tegra21 clock ID for PCIEX

Bug 1608456

Change-Id: Ia6d68edafe96b00b597a8e51b188cef41b31c929
Signed-off-by: Hoang Pham <hopham@nvidia.com>
Reviewed-on: http://git-master/r/737562
Reviewed-by: Bo Yan <byan@nvidia.com>

4 years agoARM64: tegra21: Enable SHIELD SKU on board SKU 1199
Alex Frid [Tue, 31 Mar 2015 20:13:31 +0000]
ARM64: tegra21: Enable SHIELD SKU on board SKU 1199

Bug 1625932

Change-Id: I3f00057307262b4dce4be804ad296f9f5e67f603
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/736943
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

4 years agoiommu/arm-smmu: fix context interrupt registration
Vandana Salve [Wed, 8 Apr 2015 14:51:51 +0000]
iommu/arm-smmu: fix context interrupt registration

Register context interrupt handler if supported
Do not return error if context interrupt not supported

bug 1618056

Change-Id: I50147a583dfb3ff81a52cd89e8bdc260514e2758
Signed-off-by: Vandana Salve <vsalve@nvidia.com>
Reviewed-on: http://git-master/r/729059
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Tested-by: Krishna Reddy <vdumpa@nvidia.com>

4 years agoarm: tegra: vcm30t124: fix tegrasim build break
Peter Daifuku [Wed, 29 Apr 2015 22:28:22 +0000]
arm: tegra: vcm30t124: fix tegrasim build break

Fix tegrasim build break

Follow-on to fix for bug 1509609

Change-Id: Ide343ceb06d5861b9374b3fe5f531906a8cdb306
Signed-off-by: Peter Daifuku <pdaifuku@nvidia.com>
Reviewed-on: http://git-master/r/737503
Reviewed-by: Edgardo Handal <ehandal@nvidia.com>
Reviewed-by: Vladislav Buzov <vbuzov@nvidia.com>

4 years agoplatform: tegra: iommu: remove bpmp linear mapping
Sri Krishna chowdary [Thu, 30 Apr 2015 07:28:02 +0000]
platform: tegra: iommu: remove bpmp linear mapping

Bug 200042603

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

4 years agofirmware: bpmp: move linear mapping to probe
Sri Krishna chowdary [Thu, 30 Apr 2015 07:25:24 +0000]
firmware: bpmp: move linear mapping to probe

bpmp carveout can be linearly mapped from within the probe.
There is no need to depend on linear mapping support provided
by smmu.

Bug 200042603

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

4 years agogpu: nvgpu: tegra gpu to emc frequency mapping
Anders Kugler [Sat, 25 Apr 2015 00:17:45 +0000]
gpu: nvgpu: tegra gpu to emc frequency mapping

o emc clock scaling (bug fix):
  Take the gpu load into account for gpu frequencies less
  than or equal to fmax @ Vmin.

Bug 1591643

Change-Id: I0298adfdd4b7111557907c3bd6022fd6005355f0
Signed-off-by: Anders Kugler <akugler@nvidia.com>
Reviewed-on: http://git-master/r/735846
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

4 years agoarm64: dts: t18x: add support for linsim CL 34324618
Adeel Raza [Tue, 3 Mar 2015 19:49:03 +0000]
arm64: dts: t18x: add support for linsim CL 34324618

Change-Id: I6ab9161d2ce71677d294ac8a6bfd08bd3ec932d9
Signed-off-by: Adeel Raza <araza@nvidia.com>
Reviewed-on: http://git-master/r/713277
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com>

4 years agogpu: nvgpu: Dynamic betacb size
Terje Bergstrom [Mon, 20 Apr 2015 17:31:09 +0000]
gpu: nvgpu: Dynamic betacb size

Allow querying and setting default betacb size via debugfs. For global buffers
the value takes effect upon first boot of GPU, and has no effect after that.

Bug 1628352

Change-Id: Ib63f4299249c41eab1b36cc501b525cc54211195
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/733328

4 years agogpu: nvgpu: WAR for simulator bug
Alex Waterman [Thu, 16 Apr 2015 18:46:22 +0000]
gpu: nvgpu: WAR for simulator bug

On linsim, when the push buffers are allowed to be allocated with small
pages above 4GB the simulator crashes. This patch ensures that for
linsim all small page allocations are forced to be below 4GB in the
GPU VA space. By doing so the simulator no longer crashes.

This bug has come up because the GPU buddy allocator work generates
allocations at the top of the address space first. Thus push buffers
were located at between 12GB and 16GB in the GPU VA space.

Change-Id: I1a392b25b58ae9184422bfbd3e717dd3c142558f
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/732374
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

4 years agogpu: nvgpu: Reduce BAR1 kernel size
Alex Waterman [Wed, 4 Feb 2015 20:41:19 +0000]
gpu: nvgpu: Reduce BAR1 kernel size

Reduce the BAR1 size in the kernel to match the reserved size in the
DTB. This caused problems for the buddy allocator since the allocator
can sometimes allocate from higher memory before lower memory in the
managed space. This would cause the kernel to access unmapped memory.

Change-Id: I2a8fbf0f1a0bbee2a580ffacab905bafce3cba95
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/708028
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

4 years agogpu: nvgpu: Fix off-by-one error in PDE calculations
Alex Waterman [Tue, 28 Apr 2015 21:07:09 +0000]
gpu: nvgpu: Fix off-by-one error in PDE calculations

The number of entries in the next level PDE data structure was one
half of what was needed since the bit shift was 1 bit too small.

Change-Id: Ifcedd1dfad9b2cf5c4537887d38ec750a54518c4
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/736899
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

4 years agoiommu/smmu: assign tegra-carveout to HC hwgroup.
Nitin Sehgal [Mon, 27 Apr 2015 17:18:48 +0000]
iommu/smmu: assign tegra-carveout to HC hwgroup.

- Virtualization configuration expects host1x and avp in separate
address space.
- tegra-carveout entry mapped avp & host1x to same address space which is

bug 200100736
bug 1626745

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

4 years agoiommu/smmu: remove tegra-carveouts entry from fixup table
Nitin Sehgal [Mon, 27 Apr 2015 17:17:59 +0000]
iommu/smmu: remove tegra-carveouts entry from fixup table

- Entry is already moved to device tree.

bug 200100736
bug 1626745

Change-Id: Idae4029f9098561772806e86f3d4f83cd40e1066
Signed-off-by: Nitin Sehgal <nsehgal@nvidia.com>
Reviewed-on: http://git-master/r/736370
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>

4 years agoVideo: tegra: vi/isp: Error if ISO-BW > MaxBW
Sudhir Vyas [Wed, 29 Apr 2015 08:32:24 +0000]
Video: tegra: vi/isp: Error if ISO-BW > MaxBW

Check and return proper error if requested
ISO BW is more than HW's max BW possible.

Bug 1639053

Change-Id: I29e20235ef25a3790119ec0d3210025c0c97e98d
Signed-off-by: Sudhir Vyas <svyas@nvidia.com>
Reviewed-on: http://git-master/r/737187
Reviewed-by: Wenjia Zhou <wenjiaz@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

4 years agoARM: tegra: t210: set vbus regulator enable ramp delay
Mallikarjun Kasoju [Thu, 23 Apr 2015 16:36:31 +0000]
ARM: tegra: t210: set vbus regulator enable ramp delay

Set vbus regulator enable ramp delay

Bug 1599729

Change-Id: I505f47e80c746eb303013f07abd226a2bbe10adc
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-on: http://git-master/r/735582
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit ad99ef521ce069660e73ef2463ce2ccecd27dc5c)
Reviewed-on: http://git-master/r/734125
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agopower: bq2419x: Corrected vbus enable time
Mallikarjun Kasoju [Wed, 22 Apr 2015 08:50:51 +0000]
power: bq2419x: Corrected vbus enable time

vbus is actually enabled after 220ms when configured. Currently in the driver
it is set to 8ms. Corrected it.

Bug 200099232

Change-Id: If4b3c226a15ea89ccf1ce2b4b101b1549606f3dd
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-on: http://git-master/r/735581
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit 52869bf0c1aa240f02c4cab202a9ab11c1c4aa06)
Reviewed-on: http://git-master/r/734124
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoi2c: tegra: clear all interrupt when when unknown interrupt occur
Raghuveer [Thu, 30 Apr 2015 07:10:54 +0000]
i2c: tegra: clear all interrupt when when unknown interrupt occur

When unknown interrupt occur form i2c controller i.e. when
interrupt status is 0x0 in ISR, clear all interrupt forcefully
to avoid any further unknown interrupt.

Bug 200096501

Change-Id: Iedc7b0e166db69e1a338e58f2f189988fda30c45
Signed-off-by: Raghuveer <rkadarla@nvidia.com>
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/737679

4 years agovideo: tegra: host: Optimize work wakeup
Arto Merilainen [Wed, 15 Apr 2015 17:52:39 +0000]
video: tegra: host: Optimize work wakeup

Currently nvhost handles all interrupt events without
prioritization in the same workqueue. However, this may lead
into cases where work queue clean-up may slow down waking up
the waiters.

This patch modifies the queue to be cleaned up in two stages:
In the first stage all events are cleaned up but events related
to nvhost jobs or external events (gpu jobs) are pushed into a
global list. The handler first goes through the high-priority
schedules a low-priority thread to take care of job clean-up

Bug 1598036

Change-Id: I744849efce27802067beeaca49f1381395dd7f90
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/733010
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
GVS: Gerrit_Virtual_Submit

4 years agovideo: tegra: host: Use mutex in intr handling
Arto Merilainen [Tue, 21 Apr 2015 08:02:11 +0000]
video: tegra: host: Use mutex in intr handling

Currently syncpoint interrupts are using spinlocks despite the handler
in itself is always running in threaded context. This patch converts
syncpoint interrupt spinlock into mutex to allow list users sleep.

Bug 1598036

Change-Id: Ic1e71961820c5561a73eb9ef0e5ff30db271d76b
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/733588
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
GVS: Gerrit_Virtual_Submit

4 years agowatchdog: max77620: Add CONFIG_PM_SLEEP to suspend/resume
Mallikarjun Kasoju [Wed, 8 Apr 2015 12:37:26 +0000]
watchdog: max77620: Add CONFIG_PM_SLEEP to suspend/resume

Add CONFIG_PM_SLEEP to suspend/resume functions to fix
build warning when CONFIG_PM_SLEEP is not selected.

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

4 years agomfd: max77620: Add CONFIG_PM_SLEEP to suspend_noirq
Mallikarjun Kasoju [Wed, 8 Apr 2015 12:28:51 +0000]
mfd: max77620: Add CONFIG_PM_SLEEP to suspend_noirq

Add CONFIG_PM_SLEEP to suspend_noirq function to fix
build errors when CONFIG_PM_SLEEP is not selected.

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

4 years agoarm64: dts: vcm31: e2580: Increase i2c2 clk to 400Khz
Amlan Kundu [Tue, 31 Mar 2015 10:33:06 +0000]
arm64: dts: vcm31: e2580: Increase i2c2 clk to 400Khz

bug 1627214

Change-Id: Ib71a4ee716aceb6aa32dea5ba7445f2194107e07
Signed-off-by: Amlan Kundu <akundu@nvidia.com>
Reviewed-on: http://git-master/r/725544
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>

4 years agodevfreq: Improve wmark_active initialization
Arto Merilainen [Sun, 19 Apr 2015 16:05:05 +0000]
devfreq: Improve wmark_active initialization

The wmark_active governor initialization assumes that the device
frequency is the lowest possible frequency when the governor is
started or resumed. However, this may not be correct if the
governor was suspended/stopped before the clock had been slowed

This patch modifies the governor to read the frequency during
governor initialization and resume.

Change-Id: I38d3256102b344bc8818c5623a015843678a8ce5
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/733007

4 years agovideo: tegra: host: Fix sparse warning
Shridhar Rasal [Thu, 16 Apr 2015 08:25:49 +0000]
video: tegra: host: Fix sparse warning

This fixes scaling code sparse warnings:

nvhost_scale.c:89:35 warning: crazy programmer
nvhost_scale.c:89:47 warning: crazy programmer
nvhost_scale.c:90:30 warning: crazy programmer

Bug 200088648

Change-Id: If85005fc472277d41dfaa07e8324c56bb92f1518
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/732143
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com>

4 years agoARM: update ST8 camera DT
Anubhav rai [Mon, 27 Apr 2015 10:30:12 +0000]
ARM: update ST8 camera DT

update DT file to enable HDR on front sensor

Bug 200098781

Change-Id: I7692886ce41fd415503f0a2eed40344b369b1005
Signed-off-by: Anubhav rai <arai@nvidia.com>
Reviewed-on: http://git-master/r/736258
Reviewed-by: Charlie Davies <cdavies@nvidia.com>
Reviewed-by: David Schalig <dschalig@nvidia.com>
Tested-by: Charlie Davies <cdavies@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sudhir Vyas <svyas@nvidia.com>

4 years agoiommu: Add hwid query support to ARM SMMU driver
Arto Merilainen [Wed, 18 Mar 2015 08:03:41 +0000]
iommu: Add hwid query support to ARM SMMU driver

This patch adds support for querying StreamID related to the
given device to the ARM SMMU driver.

Bug 1243060

Change-Id: I480fbf77aed047c16ef09600bb7981d68f01ef00
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/720411
GVS: Gerrit_Virtual_Submit

4 years agoiommu: Add support for querying hwid
Arto Merilainen [Wed, 18 Mar 2015 08:02:00 +0000]
iommu: Add support for querying hwid

This patch adds support to query device/domain specific IOMMU
hardware identifier (usually asid or streamid).

Bug 1243060

Change-Id: Ia33b979a83b95524fac15b7be67fd4f6fd7c5857
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/720410
GVS: Gerrit_Virtual_Submit

4 years agoplatform: tegra: nvadsp: fix wfi handler ret value
Nitin Kumbhar [Tue, 24 Mar 2015 10:13:26 +0000]
platform: tegra: nvadsp: fix wfi handler ret value

Change adsp wfi interrupt handler return value from 0 to
IRQ_HANDLED to mark that interrupt has been handled. The value
0 is IRQ_NONE i.e. interrupt is not from this device.

Bug  200077118

Change-Id: Id0c8c71c2314d9437157074445da2668c95d1f80
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-on: http://git-master/r/721570
(cherry picked from commit b87a2e08ce968f60717cf8eb35c1cb8e06d15827)
Reviewed-on: http://git-master/r/736298

4 years agoclock: tegra21: change adsp assert and deassert
Nitin Kumbhar [Tue, 24 Mar 2015 10:16:29 +0000]
clock: tegra21: change adsp assert and deassert

It is required to have delay (at least 6 adsp cpu cycles) between
de-assert for ADSP_INTF and others. Separate adsp assert and de-assert
handling and add 5us delay for de-asserts.

Bug 200077118

Change-Id: I15b22a4a27ce8f4f984e46d97e711ba02d1d7aad
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-on: http://git-master/r/721571
(cherry picked from commit ccce373c5e1946e61f723060774fe2b4e62cacce)
Reviewed-on: http://git-master/r/736302

4 years agoplatform: nvadsp: fix save and restore of os state
Nitin Kumbhar [Sat, 4 Apr 2015 08:58:56 +0000]
platform: nvadsp: fix save and restore of os state

The runtime pm saves/restores adspos state based on the adsp_os_running
flag. However, this flag is updated in nvadsp_os calls before giving
a chance to runtime pm. To fix this add a new flag adsp_os_suspended
to track state of adspos. This flag decides whether os state shall be
saved or restored.

Bug 200086386

Change-Id: I8708c33bc07cb84dda2b1c352448e9d00299a639
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-on: http://git-master/r/727790
(cherry picked from commit efd522ea9449ecce14d520ec25f1f4fad79aeb8d)
Reviewed-on: http://git-master/r/736299
Reviewed-by: Ajay Nandakumar M <anandakumarm@nvidia.com>

4 years agotegra: nvadsp: fix local header inclusion
Nitin Kumbhar [Wed, 8 Apr 2015 09:31:57 +0000]
tegra: nvadsp: fix local header inclusion

To avoid need of extra flag for include path of local header
files, change the way headers are included by aram/dram memory

Bug 1619059

Change-Id: Ib82980551a71bbdd002d53f3410682a46769f76b
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-on: http://git-master/r/728924
(cherry picked from commit 0e87aa358d9a448a9c2e426faa4b1e947132fb8d)
Reviewed-on: http://git-master/r/736301
Reviewed-by: Ajay Nandakumar M <anandakumarm@nvidia.com>

4 years agoarm64: t210: enable PASR config
Prashant Gaikwad [Thu, 26 Mar 2015 17:57:58 +0000]
arm64: t210: enable PASR config

Bug 1551741

Change-Id: I63a2edf5ecdeeddfa3225504480d2ef615289537
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/723635
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agoDoc: DT: Add binding document for MAX16989 regulator driver
Laxman Dewangan [Fri, 24 Apr 2015 10:18:38 +0000]
Doc: DT: Add binding document for MAX16989 regulator driver

MAXIM MAX16989 is the automotive low voltage 2-channel step down
controller. Add the DT binding document detailing all properties
from DT which helps to configure the device as per requirements.

bug 1627041

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

4 years agoplatform: tegra: invalidate GPU sensor
Prashant Gaikwad [Tue, 7 Apr 2015 04:37:14 +0000]
platform: tegra: invalidate GPU sensor

Invalidate GPU sensor when GPU rail is turned off.

Bug 1617400

Change-Id: I1a79556983b99981b74ee3ab5aa3b4ae74357532
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/728301
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agoplatform: tegra: emc: fix device size in pasr
Prashant Gaikwad [Mon, 30 Mar 2015 07:59:31 +0000]
platform: tegra: emc: fix device size in pasr

Device size of 384MB and 768MB does not fit in the
calculations we have used to derive device size,
add those as exceptions.

Bug 1551741

Change-Id: Ib75c290c76aa97826bc35d79b6d18cfc8d203778
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/724875
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agoRevert "Revert "arm64: config: t210: enable CONFIG_PM_GENERIC_DOMAINS_OF""
Sumit Singh [Fri, 24 Apr 2015 05:07:08 +0000]
Revert "Revert "arm64: config: t210: enable CONFIG_PM_GENERIC_DOMAINS_OF""

This reverts commit 4390e6e476531527ee2ac9ec8616a42427d28813.

The reboot issue for which this patch was reverted is getting fixed
with http://git-master/r/#/c/735455.

So reverting this patch to enable CONFIG_PM_GENERIC_DOMAINS_OF.

Bug 200070810

Change-Id: I1172dfcebd3a0ec16561d324c658f9c364c41c9d
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
Reviewed-on: http://git-master/r/735457
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agogpu: nvgpu: Fix gk20a shutdown issue
Sumit Singh [Fri, 24 Apr 2015 04:54:23 +0000]
gpu: nvgpu: Fix gk20a shutdown issue

With CONFIG_PM_GENERIC_DOMAINS_OF enabled, device reboot
was getting hung while shutting-down gk20a. It was
happening because genpd_dev_pm_detach() was railgating
gk20a while other thread was still accessing it.

So, assigning NULL to dev->pm_domain->detach for gk20a,
so that genpd_dev_pm_detach() is not called during gk20a
shutdown, which will not railgate it.

This patch will be reverted once we have clean shutdown
for gk20a.

Bug 200070810
Bug 200099940

Change-Id: Ie2e89ea01a98a9d4f2f68a3ab07b6923ffa374f6
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
Reviewed-on: http://git-master/r/735455
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agothermal: nct72: fix accesses to unavailable zones
Hyungwoo Yang [Tue, 28 Apr 2015 18:53:30 +0000]
thermal: nct72: fix accesses to unavailable zones

fix accesses to thermal zones which don't exist.

Bug 1640853

Change-Id: I25805e0fe15b7a3d6bc2417b97807936eaf4b6c5
Signed-off-by: Hyungwoo Yang <hyungwooy@nvidia.com>
Reviewed-on: http://git-master/r/736926
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

4 years agodrivers/base: add DMA_CMA for compatibility
Alex Van Brunt [Tue, 28 Apr 2015 16:47:45 +0000]
drivers/base: add DMA_CMA for compatibility

Newer kernel's use DMA_CMA in place of CMA. So, add a placeholder
DMA_CMA option.

Change-Id: I1213332a97623c2e2cfc2ba2f7bab48188e51c71
Signed-off-by: Alex Van Brunt <avanbrunt@nvidia.com>
Reviewed-on: http://git-master/r/736841
GVS: Gerrit_Virtual_Submit
Reviewed-by: Adeel Raza <araza@nvidia.com>

4 years agoserial: 8250: make earlycon 8250 configurable
Alex Van Brunt [Tue, 28 Apr 2015 16:45:32 +0000]
serial: 8250: make earlycon 8250 configurable

When 8250 earlycon is enabled, a kernel command line with both
earlycon and earlyprintk will not work. That makes it difficult to
transition from a kernel that only works with earlyprintk to one that
only works with earlycon.

Change-Id: I678433c2bdc429a3be0eb47d0bc042e87372f148
Signed-off-by: Alex Van Brunt <avanbrunt@nvidia.com>
Reviewed-on: http://git-master/r/736840
GVS: Gerrit_Virtual_Submit
Reviewed-by: Adeel Raza <araza@nvidia.com>

4 years agoinput: disable i8042 PC Keyboard controller for arm64
Alex Van Brunt [Mon, 27 Apr 2015 23:13:52 +0000]
input: disable i8042 PC Keyboard controller for arm64

arm64 doesn't have a PC keryboard by default. So, disable it.

Change-Id: I942b9c89251559c00cf9ff8f6974981691d883e0
Signed-off-by: Alex Van Brunt <avanbrunt@nvidia.com>
Reviewed-on: http://git-master/r/736839
GVS: Gerrit_Virtual_Submit
Reviewed-by: Adeel Raza <araza@nvidia.com>

4 years agodvfs: tegra: Re-factor DFLL Vmin interfaces
Alex Frid [Wed, 22 Apr 2015 04:51:52 +0000]
dvfs: tegra: Re-factor DFLL Vmin interfaces

Changed CL-DVFS Vmin clamp/check interfaces signatures to take DFLL
clock pointer as an argument instead of pointing to CL-DVFS object.
These functions are extensions of clock framework interfaces, and
should point to clock object for consistency. Moved the respective
prototypes to clock header, and renamed to refer DFLL, rather than

Bug 1632845

Change-Id: I1ad67e8716433d4384549680b8f76b214f99af7e
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/735392
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

4 years agodvfs: tegra: Separate DFLL tune/resume ramp delays
Alex Frid [Thu, 23 Apr 2015 05:10:38 +0000]
dvfs: tegra: Separate DFLL tune/resume ramp delays

Macro CL_DVFS_OUTPUT_RAMP_DELAY was used to specify two different ramp
delays: ramp across DFLL low voltage tuning range, and forced output
ramp during DFLL resume. Replaced this macro with two separate platform
configuration settings, optionally initialized from DT. Kept macro as
default fall-back in case when DT does not specify any of the added
ramp delays.

Bug 1632845

Change-Id: I43e7b1ea9e2202de808e2c031542843098e8d93e
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/734556
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

4 years agogpu: nvgpu: Combine delays with GK20A parameters
Alex Frid [Fri, 24 Apr 2015 05:21:07 +0000]
gpu: nvgpu: Combine delays with GK20A parameters

Specified locking timeout and IDDQ exit delay as GK20A PLL parameters,
and used this data instead of hard-coded numbers.

Change-Id: I59e16ed11fdba6911f2751195d182e68aed96851
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/735481
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

4 years agoarm: tegra: vcm30t124: virtualized VI, ISP, MSENC
Peter Daifuku [Thu, 19 Mar 2015 19:10:56 +0000]
arm: tegra: vcm30t124: virtualized VI, ISP, MSENC

Add virtualization support for VI, ISP and MSENC
Add support for virtualized register read/write

Bug 1509609

Change-Id: Ied4ca050d87d211a099b6911bc4b8c106cc0dcf3
Signed-off-by: Peter Daifuku <pdaifuku@nvidia.com>
Reviewed-on: http://git-master/r/723693
(cherry picked from commit da316dd33a20afa3d3f2445140d644e5a27a253f)
Reviewed-on: http://git-master/r/726279
(cherry picked from commit caa475a8160cc0b36b9116204dab7486841e70fe)
Reviewed-on: http://git-master/r/719707
Reviewed-by: Vladislav Buzov <vbuzov@nvidia.com>
GVS: Gerrit_Virtual_Submit

4 years agoiommus/tegra: smmu: avoid unnecessary alerts
Sri Krishna chowdary [Tue, 28 Apr 2015 06:03:16 +0000]
iommus/tegra: smmu: avoid unnecessary alerts

Alert only when a smmu client asks for smmu's resources before
smmu gets initialized.

Bug 200100443

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

4 years agostaging: pasr: Add config to make spinlock optional
Sri Krishna chowdary [Tue, 31 Mar 2015 13:30:42 +0000]
staging: pasr: Add config to make spinlock optional

When CONFIG_SKIP_LATE_PASR_SETUP is enabled, the late pasr setup
is skipped avoiding the explicit spin lock being used when locking
is taken care of implicitly.

Bug 200035883

Change-Id: If76aa2071b57ea6fbad16bd7b8f6cf01f7e29750
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/725648
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agogpu: nvgpu: Do not send WFI when finishing channel
Terje Bergstrom [Thu, 23 Apr 2015 20:28:52 +0000]
gpu: nvgpu: Do not send WFI when finishing channel

The channel teardown process sends a WFI method to ensure that all
work has been completed. But we also preempt the channel a while
later, which also ensures that all work is completed.

Remove the code for submitting WFI, and rely on preemption to handle
idling the pipe.

Change-Id: I2af029184440ee73e70d377f15690ddaf9b8599f
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/735067

4 years agogpu: nvgpu: Reconfigure instance block with syncpt
Terje Bergstrom [Tue, 24 Feb 2015 04:51:18 +0000]
gpu: nvgpu: Reconfigure instance block with syncpt

Resetup RAMFC once sync point id is allocated for a channel.

Change-Id: Idbac406bea1c94c89ef587dda08fddc740c1fadb
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/711302

4 years agousb: tegra: xotg: fix null pointer access
Ajay Gupta [Mon, 27 Apr 2015 17:04:07 +0000]
usb: tegra: xotg: fix null pointer access

Before setting otg as B_DEVICE, charging detection routine
would trigger otg state to change, and during handle otg
state change, otg driver would access a NULL handle of gadget.
To avoid this issue, let xotg state machine return in such a

Bug 200097251

Change-Id: Ide1be6aae769a4e06ddd9fed22baecf0d2507a82
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Tested-by: Amlan Kundu <akundu@nvidia.com>
Reviewed-on: http://git-master/r/736366
Reviewed-by: ChihMin Cheng <ccheng@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hui Fu <hfu@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
Reviewed-by: David Lim <dlim@nvidia.com>
Reviewed-by: Venkat Tammineedi <vtammineedi@nvidia.com>

4 years agousb: misc: shield: pda: add capabilities of GA and hawkeye
Rakesh Babu Bodla [Tue, 21 Apr 2015 05:57:04 +0000]
usb: misc: shield: pda: add capabilities of GA and hawkeye

Add the support for GA and hawkeye for PDA to set 12V during

Bug 200098678

Change-Id: I0abc88f4fb7779bdd3dde8652d62fe2b4a36f3e6
Signed-off-by: Rakesh Babu Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/733467
(cherry picked from commit 0ccc4b4ac5fd73c76a58b2cf87e1913ce5b3c963)
Reviewed-on: http://git-master/r/736096
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agovideo: tegra: dc: make local function 'static'
Amit Sharma (SW-TEGRA) [Tue, 14 Apr 2015 04:30:06 +0000]
video: tegra: dc: make local function 'static'

Fixed the following sprase warning by making the local function as 'static':
- dc.c: symbol 'tegra_dc_cache_cmu' was not declared. Should it be static?

Bug 200067946

Change-Id: I26707fcec279cc43431dfddb35ee3b7bde1027c8
Signed-off-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com>
Reviewed-on: http://git-master/r/731101
Reviewed-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agovideo: tegra: don't call kick when pushing gathers
Peter Daifuku [Mon, 20 Apr 2015 21:49:04 +0000]
video: tegra: don't call kick when pushing gathers

When pushing gathers, don't call kick function when slots_free is 0:
  - it's not needed, since previous submissions still in the pushbuffer
    will have resulted in the PUT pointer being updated, so eventually
    the CDMA will free up space anyway.
  - Updating the PUT pointer in the middle of a submission can actually
    cause problems if we end up in a clean-up situation: when restarting
    the CDMA, there is no good way to restart in the middle of a submission.

Bug 1637706

Change-Id: I29224dd23d71bcd4feaf3da8c2c06a00ade9153c
Signed-off-by: Peter Daifuku <pdaifuku@nvidia.com>
Reviewed-on: http://git-master/r/733308
(cherry picked from commit 3c383d9b85e429487cbd21e6c04bdd18fb90eeb0)
Reviewed-on: http://git-master/r/735682
GVS: Gerrit_Virtual_Submit
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>

4 years agommu_notifier: provide a call_srcu allowing delayed call to listener cleanup.
Peter Zijlstra [Mon, 14 Jul 2014 19:27:00 +0000]
mmu_notifier: provide a call_srcu allowing delayed call to listener cleanup.

New mmu_notifier listener are eager to cleanup there structure after the
mmu_notifier::release callback. In order to allow this the patch provide
a function that allows to add a delayed call to the mmu_notifier srcu.

This does allow listener to add a call to a listener function that can
call mmu_notifier_unregister and perform other memory deallocation.

bug 200074285

Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Reviewed-by: Jérôme Glisse <jglisse@redhat.com>
(cherry picked from commit f605ac49094c610a33d0f43f1a1592c95fa8dab3)
Change-Id: Iac9ef31c39c2db9212e5ce962c5443befd90c41c
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/678146
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agopcie: intr: move msi intr number to driver
Vidya Sagar [Mon, 13 Apr 2015 15:00:39 +0000]
pcie: intr: move msi intr number to driver

moves INT_PCI_MSI_NR to pcie host controller driver
and removes other instances of it

Bug 200019588

Change-Id: I2a739d1403f7985f1e87e6996b24f7266f0a860f
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/730892
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

4 years agoplatform: tegra: remove the unused code
Amit Sharma (SW-TEGRA) [Mon, 27 Apr 2015 09:17:41 +0000]
platform: tegra: remove the unused code

Remove the unused function 'tegra_clk_add' from the code.

Bug 200088648

Change-Id: I0c784bc97af496fb0b00c1fccf04b0c550910c8f
Signed-off-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com>
Reviewed-on: http://git-master/r/736198
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agoplatform: tegra: Fix NULL instead of interger
Amit Sharma (SW-TEGRA) [Mon, 27 Apr 2015 05:03:10 +0000]
platform: tegra: Fix NULL instead of interger

Fixed the following sparse warnings by using the proper NULL instead of integer:
- tegra21_clocks.c: warning: Using plain integer as NULL pointer
- tegra21_clocks.c: warning: Using plain integer as NULL pointer

Bug 200067946

Change-Id: Ifaecfbe85afac5bfa995ac1c75b44636a3301526
Signed-off-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com>
Reviewed-on: http://git-master/r/736084
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agovideo: tegra: nvmap: remove obsolete code
Sri Krishna chowdary [Fri, 24 Apr 2015 11:06:05 +0000]
video: tegra: nvmap: remove obsolete code

nvmap should use dt based initialization for all platforms.
Clean up fallback path.

Also, nvmap carveout init is changed to make use of reserved-memory
support. So, remove the legacy DT support for carveout init as well.

Bug 200027296

Change-Id: I155fcf2b689de678ea776fd4e19ca1fb8d8bac19
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/734985
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Tested-by: Nitin Sehgal <nsehgal@nvidia.com>

4 years agovideo: tegra: hdmi: enable HBR support
Ashok Mudithanapalli [Fri, 10 Apr 2015 08:07:31 +0000]
video: tegra: hdmi: enable HBR support

Override the Audio Spare reg to advertise the
HBR capability.

Bug 200093873

Change-Id: I9a4527ed0658dacb26fea5e124eb523d3e36d628
Signed-off-by: Ashok Mudithanapalli <ashokm@nvidia.com>
Reviewed-on: http://git-master/r/730080
Reviewed-on: http://git-master/r/732618
(cherry picked from commit 7187a090c6e1f49583c0957b26710599e13f6f9d)
Reviewed-on: http://git-master/r/734147
Reviewed-by: Dara Ramesh <dramesh@nvidia.com>
Tested-by: Dara Ramesh <dramesh@nvidia.com>

4 years agonvadsp: fix app unload
omar [Wed, 22 Apr 2015 22:01:36 +0000]
nvadsp: fix app unload

added code to unload app after exit.

Bug 1631416

Change-Id: I0aa96ed5ae624130a64f6f58d58cc52e56cc033a
Signed-off-by: omar <onemri@nvidia.com>
Reviewed-on: http://git-master/r/734439
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>

4 years agoarch: arm64: update HDMI prod settings
Nitish [Tue, 14 Apr 2015 08:59:57 +0000]
arch: arm64: update HDMI prod settings

Bug 1613194

Change-Id: Iabc02dd90d317bf08e7295a35b0cbb1428cbbb00
Signed-off-by: Nitish <nrajguru@nvidia.com>
Reviewed-on: http://git-master/r/731218
(cherry picked from commit 5f02228b8f25e460d8fadf49bb3156f5fed8dd67)
Reviewed-on: http://git-master/r/732171
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

4 years agoplatform: tegra: emc: Implement freq dependent MR4 poll
Alex Waterman [Fri, 3 Apr 2015 18:08:42 +0000]
platform: tegra: emc: Implement freq dependent MR4 poll

Implement the DT parsing and logic in emc_set_clock() to do
frequency based MR4 polling.

Bug 1606824

Change-Id: I5c3ae44cb7e70099063400adb618060f46e4fccb
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/727655
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

4 years agoplatform: tegra: emc_timers: add debugging
Alex Waterman [Fri, 3 Apr 2015 17:55:46 +0000]
platform: tegra: emc_timers: add debugging

Add a togglable debugging mechanism to the EMC timers code.
Based on the value in "debug" various levels of printing will
be done.

  1: Enable/Disable of the timers.
  2: Print the start of each MR4 poll.
  3: Print the start of each periodic calibration.

Bug 1606824

Change-Id: I7c4ac2aa6490672cafed5e56e3d22a8b7e53b85c
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/727654
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

4 years agoplatform: tegra: emc: Update EMC derating
Alex Waterman [Fri, 3 Apr 2015 17:33:36 +0000]
platform: tegra: emc: Update EMC derating

Update the derating code to also be triggerable on a frequency
threshold. This only implements the mechanism. The actual source
of the threshold will be the device tree.

Bug 1606824

Change-Id: I7179a63d7dc35a578a1507fb91555bb06f1d0c15
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/727653
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

4 years agogpu: nvgpu: fix setting gr_pd_ab_dist_cfg1_r()
David Li [Fri, 24 Apr 2015 06:02:08 +0000]
gpu: nvgpu: fix setting gr_pd_ab_dist_cfg1_r()

gr_*__set_alpha_circular_buffer_size() left max_batches field of
  gr_pd_ab_dist_cfg1_r as 0 which results in too many alpha beta
  transitions and poor performance when tessellation or geometry
  shaders are used

Change-Id: If18feb1119e9672005455155dc56337cd444a1f1
Signed-off-by: David Li <davli@nvidia.com>
Reviewed-on: http://git-master/r/735476
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>

4 years agopower: bq2419x: get regulator init data from core
Laxman Dewangan [Thu, 23 Apr 2015 12:52:53 +0000]
power: bq2419x: get regulator init data from core

Instead of making the regulator init data locally in the driver,
use the same memory which is provided from regulator framework.

This will help on reducing the lots of assignment.

bug 1599729

Change-Id: Ia6a68129f8a31a1d4a55bb7cabbbe956d91c4955
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit 4b711032fcd07aef62e824489d49d0e3ec26afdd)
Reviewed-on: http://git-master/r/736195
GVS: Gerrit_Virtual_Submit

4 years agoplatform tegra: pmc: Correct error prints in absence of bootrom config
Laxman Dewangan [Thu, 23 Apr 2015 12:55:18 +0000]
platform tegra: pmc: Correct error prints in absence of bootrom config

If PMC node does not have bootrom config then instead of saying bootrom
config failed, lets print that bootrom config not present as this is
not really failure anything.

bug 200089433

Change-Id: I9b5dd9ff0b19cbb6c057a91f78b6dfc88fb6a4fb
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Preetham Chandru <pchandru@nvidia.com>
Tested-by: Preetham Chandru <pchandru@nvidia.com>
(cherry picked from commit b2c3e601cc78efffd0df59ad9210ed3f0ff62da8)
Reviewed-on: http://git-master/r/736194
GVS: Gerrit_Virtual_Submit

4 years agoregulator: tps65132: add support to disable active discharge
Laxman Dewangan [Fri, 17 Apr 2015 14:28:08 +0000]
regulator: tps65132: add support to disable active discharge

Add support to disable active discharge from DT. The register
of device is accessed when it is enabled and hence configuring
device in post enable.

bug 1635091

Change-Id: I4809b390923838b1c94168674e7a1a753bc7a5e0
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit 78bf31188ad9026e477872c3923ad169ab87e4ac)
Reviewed-on: http://git-master/r/736136
GVS: Gerrit_Virtual_Submit

4 years agoregulator: core: add support to configure rails after enable/disable
Laxman Dewangan [Fri, 17 Apr 2015 14:25:41 +0000]
regulator: core: add support to configure rails after enable/disable

Add support to configure rails as per device specific after enable/disable.
This helps if enable/disable is controlled by the GPIOs.

bug 1635091

Change-Id: I360ab425505be285ff8b19f1f3e87e7860fc2e4d
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit efc842256189375d5eac17827eb6d8e4dda64947)
Reviewed-on: http://git-master/r/736135
GVS: Gerrit_Virtual_Submit

4 years agoARM: tegra: jetson-e: set vdd-rtc to 850mV
Laxman Dewangan [Mon, 20 Apr 2015 12:00:06 +0000]
ARM: tegra: jetson-e: set vdd-rtc to 850mV

Remove the voltage override for RTC voltage rail to configure
it for 850mV for all time.

bug 200095277

Change-Id: Ie10e8e815cd36a0cc78543c5f4889b99a00288f7
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit 5e483f02ee7486b467f2cba892fdc4df52c6f4e9)
Reviewed-on: http://git-master/r/736134
GVS: Gerrit_Virtual_Submit

4 years agoARM: tegra: hawkeye: add base dts file for P2290-A01
Laxman Dewangan [Fri, 17 Apr 2015 13:26:40 +0000]
ARM: tegra: hawkeye: add base dts file for P2290-A01

Add base top level DTS file for P2290-A01 modem and Wifi SKU
for EVT and MP. The top level DTS file is derived from P2290-A00

bug 1634264

Change-Id: Ieb47de1f80e70e75bb1acc2653d2a682c7b99381
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit 2a8820723b092da6458673f723a2d5b2e82065c8)
Reviewed-on: http://git-master/r/736133

4 years agopinctrl: max77620: add support to configure pull up/down
Laxman Dewangan [Fri, 24 Apr 2015 11:19:36 +0000]
pinctrl: max77620: add support to configure pull up/down

Add support to configure pull up and down of GPIOs pins.

Change-Id: Id772048686da6211fecfcad37188b6b56b631ef0
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/735621
GVS: Gerrit_Virtual_Submit