5 years agovideo: tegra: nvmap: support for carveout resize
Vandana Salve [Thu, 19 Sep 2013 14:22:22 +0000]
video: tegra: nvmap: support for carveout resize

Add support for dynamic carveout resize.
Use CMA APIs for fixed size carveout.
Use CMA+DMA coherent APIs for resizable carveout.

Bug 1279160

Change-Id: I09ca2a3c9ac101e2504b4011eeb808e7f98f1429
Signed-off-by: Vandana Salve <vsalve@nvidia.com>
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/294255
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

5 years agoARM: tegra: ardbeg: Uninitialized scalar variable
Sumit Singh [Mon, 9 Dec 2013 10:14:44 +0000]
ARM: tegra: ardbeg: Uninitialized scalar variable

Declaring and Initializing local variable at the same time.
This avoid code duplication when initializing in every switch case.
Coverity id : 25259

Bug 1416640

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

5 years agovideo: tegra: host: Keep track of fixed mappings
Arto Merilainen [Tue, 19 Nov 2013 15:02:38 +0000]
video: tegra: host: Keep track of fixed mappings

This far we have supported fixed mappings without actually checking
that 1) the virtual space has been dedicated for fixed mappings and
2) the mappings do not collide.

This patch adds necessary modifications to keep track of fixed
mappings.

Bug 1369014

Change-Id: Iec1e0d361646c29ca1918d7537d5392ca97d6d87
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/333864
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agovideo: tegra: host: Fixes to PMU perfmon code
Arto Merilainen [Tue, 10 Dec 2013 08:21:04 +0000]
video: tegra: host: Fixes to PMU perfmon code

PMU bases timings on the clockrate that is given inside an
initialisation message. If this rate is wrong, we do perfmon
calculations incorrectly. This far we have assumed fixed 500MHz clock
which is not correct.

This patch modifies the PMU initialisation to actually read the
PMU clock frequency from the clock framework. In addition, this patch
modifies perfmon to capture samples 10 times per frame.

Bug 1422029

Change-Id: I7d700a4eeba43630e4f9332bb997cccf19e72aff
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/343562
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agovideo: tegra: host: make FECS firmware read-only
Deepak Nibade [Wed, 4 Dec 2013 11:39:13 +0000]
video: tegra: host: make FECS firmware read-only

- use dma_alloc/free_attrs() APIs to allocate memory for
  FECS/GPCCS firmwares
- pass DMA_ATTR_READ_ONLY to above APIs to make these
  firmwares read-only
- use gk20a_gmmu_map() to update gmmu ptes

Bug 1397647
Bug 1309863

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

5 years agovideo: tegra: host: use dma APIs for inst_block
Deepak Nibade [Mon, 2 Dec 2013 13:44:06 +0000]
video: tegra: host: use dma APIs for inst_block

- use dma APIs to allocate/free memory of inst_block
  and to get iova, cpuva and physical addresses
- use these addresses wherever required to get cpuva
  or physical address of inst_block

Bug 1397647

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

5 years agovideo: tegra: host: Enable sclk for VI/Camera
Sudhir Vyas [Wed, 27 Nov 2013 09:46:51 +0000]
video: tegra: host: Enable sclk for VI/Camera

Initialize sclk for camera in VIA, VIB, ISPA,
ISPB drivers at 80MHz, to enhance the perf KPI.
80 MHz, because it helps in balance the
trade-off between power and perf.

Bug 1362112

Change-Id: I8a39dad06ea7703570e166f90f42c7ee796f3b2d
Signed-off-by: Sudhir Vyas <svyas@nvidia.com>
Reviewed-on: http://git-master/r/336135
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agoARM: tegra: Add camera sclk support
Sudhir Vyas [Wed, 27 Nov 2013 09:35:50 +0000]
ARM: tegra: Add camera sclk support

Bug 1362112

Change-Id: Ib5abfb92cbbe27430115a1501315e6a6e4f1e300
Signed-off-by: Sudhir Vyas <svyas@nvidia.com>
Reviewed-on: http://git-master/r/336133
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agousb: gadget: android: fix ethaddr override issue
Yunfan Zhang [Mon, 2 Dec 2013 08:22:43 +0000]
usb: gadget: android: fix ethaddr override issue

ethaddr is one byte per segment, if pass the casted char pointer to
sscanf with %02x, the upper mem/bytes will be override unexpectedly.

For 32 bits alignment, the first byte of vendorID will be override
by sscanf(..., "...:%02x", ..., (int *)&rndis->ethaddr[5]).

struct rndis_function_config {
    u8      ethaddr[6];
    u32     vendorID;
    ...
};

Change-Id: I6553036f6d110e77298cfcf8a4e35f348921851d
Signed-off-by: Yunfan Zhang <yunfanz@nvidia.com>
Reviewed-on: http://git-master/r/337184
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agopower: bq24715: Update charging status on UI on bootup
Darbha Sriharsha [Sun, 1 Dec 2013 08:08:56 +0000]
power: bq24715: Update charging status on UI on bootup

Ensure that charging status (charging/discharging)
on UI is updated immediately on bootup.This is done
by reading gpio status which reflect the charger
connection status.

Bug 1271064

Change-Id: Id2b14cff96d117ce885ef3efc30459f4e502ebef
Signed-off-by: Darbha Sriharsha <dsriharsha@nvidia.com>
Reviewed-on: http://git-master/r/337047
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoASoC: Tegra: Fix voice call issues
Ravindra Lokhande [Fri, 6 Dec 2013 16:17:06 +0000]
ASoC: Tegra: Fix voice call issues

Few issues related to voice call for t12x are fixed.

Change-Id: Icc605da183d9187b57695a4284d35b4aa0b577d8
Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-on: http://git-master/r/339251
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Tested-by: Sachin Nikam <snikam@nvidia.com>

5 years agoARM: tegra12: add voice call devices
Ravindra Lokhande [Wed, 13 Nov 2013 12:55:36 +0000]
ARM: tegra12: add voice call devices

added baseband i2s to audio driver platfrom data.
registered i2s0 device

Change-Id: Ifa91ac63e21d39940306bb70f3e208450ad9004c
Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-on: http://git-master/r/330326
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Tested-by: Sachin Nikam <snikam@nvidia.com>

5 years agoNVIDIA-REVIEWERS: designate module owners
Juha Tukkinen [Thu, 19 Sep 2013 10:29:38 +0000]
NVIDIA-REVIEWERS: designate module owners

Add NVIDIA-REVIEWERS to designate NVIDIA module owners.
get_nv_reviewers.py tool uses this as input.

Bug 752047
Bug 1368545

Change-Id: If0429593cd42117dc35e59a170ff4dff4df92565
Signed-off-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-on: http://git-master/r/343718
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agoregulator: as3722: set the correct current limit
Vince Hsu [Thu, 28 Nov 2013 10:40:12 +0000]
regulator: as3722: set the correct current limit

[Resubmitting as it was reverted due to intermittent issue on GVS]

Change-Id: I324d8b6a0c68a1d58458a0ce3a819453a6c86343
Signed-off-by: Vince Hsu <vinceh@nvidia.com>
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/340288
GVS: Gerrit_Virtual_Submit

5 years agoARM: tegra: ardbeg: Enable SDR50 mode for SDMMC3
R Raj Kumar [Tue, 10 Dec 2013 08:40:54 +0000]
ARM: tegra: ardbeg: Enable SDR50 mode for SDMMC3

Enabled SDR50 mode for SD device.

Bug 1323956

Change-Id: I09f25e7159688ecda2b2eb8bbb9b5a3cab7e1166
Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/343566
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

5 years agostaging: pasr: modify die detection logic
Sri Krishna chowdary [Wed, 4 Dec 2013 11:25:04 +0000]
staging: pasr: modify die detection logic

current logic identifies the die only if die's start address
is divisible by section_size * nr_sections within it.
Hence, facing issues enabling pasr on 4GB devices having a single
die starting at 2GB.

Change the logic to properly identify the die even if the
above pre-condition is not met.

Change-Id: I0a2d54ed76cb808963518e06e593d852a2e95fb0
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/338232
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agonet: wireless: bcmdhd: Fix Division by zero
Mohan T [Fri, 6 Dec 2013 09:24:27 +0000]
net: wireless: bcmdhd: Fix Division by zero

Check divisor values is grater than zero
in qmon_getpersent to avoid division
by zero kernel assertion.

Bug 1417901

Change-Id: I8f3255c1b0f8c975da984389966c9f888187c5c9
Signed-off-by: Mohan T <mohant@nvidia.com>
Reviewed-on: http://git-master/r/339075
Reviewed-by: Nagarjuna Kristam <nkristam@nvidia.com>
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra: dvfs: Allow voltage table replacement
Alex Frid [Sat, 7 Dec 2013 07:12:40 +0000]
ARM: tegra: dvfs: Allow voltage table replacement

Added interface to replace DVFS voltage table in flight. New table is
installed provided peak voltages across possible tables are specified
in advance, and new voltages do not exceed peaks.

Bug 1343366

Change-Id: I2d8cf553cc8fb9d65d31afe11869104038b4bb4c
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/339674
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra: dvfs: Add SiMon offsets to DVFS rails
Alex Frid [Wed, 4 Dec 2013 05:55:36 +0000]
ARM: tegra: dvfs: Add SiMon offsets to DVFS rails

Added Silicon Monitor (SiMon) offsets to DVFS rail object. Offsets
will be applied to minimum voltage requirements for the clocks in the
respective rail domain. Implemented interface to verify expected
offsets properties: all offsets should be equal/below zero, listed in
descending order, starting from zero.

Bug 1343366

Change-Id: Icb2afa77fcd60088284baf9b626e513034c0bb9e
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/339673
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra: power: Add initial SiMon support
Alex Frid [Thu, 5 Dec 2013 02:23:26 +0000]
ARM: tegra: power: Add initial SiMon support

Defined tegra Silicon Monitor (SiMon) domains: CPU, GPU, core. Added
SiMon domain grade notification chain, and debugfs entries.

Bug 1343366

Change-Id: Ieff7ca57af48e5a5a2224fd6800bcccabf8eef5e
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/338521
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra12: loki: Configure soctherm for loki
Anshul Jain [Tue, 10 Dec 2013 01:31:56 +0000]
ARM: tegra12: loki: Configure soctherm for loki

This change, turns on heavy throttling on GPU based on GPU_SOCTHERM
and configures new thermal points.

Bug 1405072

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

5 years agoARM: tegra: edp: Fix resource leak
Diwakar Tundlam [Tue, 10 Dec 2013 23:00:18 +0000]
ARM: tegra: edp: Fix resource leak

Do not free IN-USE pointer edp_gpu_calculated_limits.

Partial revert of commit 4f9d8923268a597ede0308f4165e46ba97375ffe
(Improperly)-Reviewed-on: http://git-master/r/339061

Bug 1416640

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

5 years agoarm: tegra12: soctherm: GPU HW throttling WAR
Diwakar Tundlam [Wed, 20 Nov 2013 23:46:30 +0000]
arm: tegra12: soctherm: GPU HW throttling WAR

Allow enabling HW GPU throttling for thermal and OC alarms.
Implemented WAR discussed in bug. Also modified debug output to show
depth as percent as well.

Bug 1415030

Change-Id: I3c1e401e820713d7f7290f089c42e71531700d28
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/338122

5 years agoarm: tegra: update ardbeg_emc_init for all boards
Anshuman Nath Kar [Thu, 5 Dec 2013 22:57:52 +0000]
arm: tegra: update ardbeg_emc_init for all boards

Change-Id: I118fd7a6b0f6a7cd11e7ae97337f515827b16ca3
Signed-off-by: Anshuman Nath Kar <anshumank@nvidia.com>
Reviewed-on: http://git-master/r/338897
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

5 years agoARM: config: tegra12: enable SATA
Jong Kim [Mon, 9 Dec 2013 23:30:51 +0000]
ARM: config: tegra12: enable SATA

Enable SATA.

bug 1422013

Change-Id: Ic3d1524165679b0f35c359ff648dc520a7972249
Signed-off-by: Jong Kim <jongk@nvidia.com>
Reviewed-on: http://git-master/r/340089
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

5 years agoARM: tegra: ardbeg: Enable SATA for Laguna-erss
Jong Kim [Mon, 9 Dec 2013 23:22:49 +0000]
ARM: tegra: ardbeg: Enable SATA for Laguna-erss

Enable SATA for Laguna-erss (PM359)

bug 1422013

Change-Id: I74ce480fdb37704a9660ba4638b4143bcbbb5fda
Signed-off-by: Jong Kim <jongk@nvidia.com>
Reviewed-on: http://git-master/r/340088
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

5 years agovideo: tegra: host: gk20a: reduce gr delays
Prashant Malani [Wed, 2 Oct 2013 21:23:59 +0000]
video: tegra: host: gk20a: reduce gr delays

The delay value used in gr usleep_range calls is
too high. We can start at a much lower value.

Change-Id: I7d196d0e3be0a5cd84e8c4dad537fae043da6274
Signed-off-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-on: http://git-master/r/335234
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agoarm: tegra: ardbeg: correct HDMI pclk
Jon Mayo [Mon, 9 Dec 2013 21:17:17 +0000]
arm: tegra: ardbeg: correct HDMI pclk

pclk is in Hz and not picoseconds.

Change-Id: I5c63ef430dc9111b9bfe1bad5c46903a97d6dc79
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/340025
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

5 years agovideo: tegra: dc: swap rotated h/v filter check
Jon Mayo [Mon, 9 Dec 2013 21:51:24 +0000]
video: tegra: dc: swap rotated h/v filter check

When determining if the filter should be disabled because input == output,
use the SCAN_COLUMN flag to select the correct dimension.

Bug 1421307

Change-Id: I19dd5575fb41d8a2b6aa3ee12022acd14232afe4
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/340037
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

5 years agoARM: tegra: actmon: fix unused pointer value
Sumit Singh [Thu, 5 Dec 2013 05:42:31 +0000]
ARM: tegra: actmon: fix unused pointer value

Coverity id : 24821

Bug 1416640

Change-Id: I43fb0b91afd8845c35f9544d05275cf14b273e32
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
Reviewed-on: http://git-master/r/338581
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra: wakeup: Unsigned compared against 0
Sumit Singh [Thu, 5 Dec 2013 08:28:13 +0000]
ARM: tegra: wakeup: Unsigned compared against 0

Coverity id : 24830

Bug 1416640

Change-Id: I69c052634eaa11394aedccc6170afb761f8ad4eb
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
Reviewed-on: http://git-master/r/338625
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoARM: tegr12: clocks: Remove sdmmc3/4 from sclk clients
Naveen Kumar Arepalli [Mon, 9 Dec 2013 03:53:04 +0000]
ARM: tegr12: clocks: Remove sdmmc3/4 from sclk clients

Increasing sclk (ahb clk) won't improve sdmmc perf in T124.
In T124, SDMMC became direct MC client. It is no longer on AHB bus.

Bug 1416005

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

5 years agoarm: tegra: update tn8 emc DVFS table to v7
Ryane Luo [Mon, 9 Dec 2013 06:30:58 +0000]
arm: tegra: update tn8 emc DVFS table to v7

Change-Id: I02c1995c4eca89d09ffe12fc562013f8ecf536b1
Signed-off-by: Ryane Luo <ryanel@nvidia.com>
Reviewed-on: http://git-master/r/339771
Reviewed-by: Hayden Du <haydend@nvidia.com>
Tested-by: Hayden Du <haydend@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agovideo: tegra: host: enable tsec powergate
Shridhar Rasal [Wed, 27 Nov 2013 05:15:16 +0000]
video: tegra: host: enable tsec powergate

- Enable tsec powergating with default powergating delay.
- Add reset in poweron path instead probe.
- Add flag to set completion of boot and call boot only if boot
  required.
- add prepare_poweroff to reset boot flag.
- set keepalive to sync powergating with userspace requests.

bug 1413536

Change-Id: I9cce1165db854d48d1b7522f0dea63ccf4331162
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/336031
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agovideo: tegra: host: pod: Init last req correctly
Arto Merilainen [Mon, 9 Dec 2013 11:41:25 +0000]
video: tegra: host: pod: Init last req correctly

The scaling initialisation read the current frequency and stored
it as the "last requested frequency" into devfreq data structures.
If the gpu was disabled at this point, this operation initialised
previous_frequency to 0. The scaling code uses the last requested
frequency and load to determine optimal frequency. If the data
was not available, we skipped scaling.

This code modifies the scaling so that:
1) we never touch previous_frequency. devfreq does that
2) we give the minimum frequency to devfreq as a parameter. devfreq
can then use that value while initialising previous_frequency.

Bug 1418949

Change-Id: I13c834735d68d8ff7441a77b0aad6c567bb82f40
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/339880
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ilan Aelion <iaelion@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agovideo: tegra: host: Dump FECS status in t/o
Arto Merilainen [Thu, 5 Dec 2013 09:36:18 +0000]
video: tegra: host: Dump FECS status in t/o

This patch adds debug dump to FECS errors.

Change-Id: I72a98f54bfc7012cbddeb576f460211f690914ec
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/338662
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agoEDP: introduce ocpeaks table for consumers
Timo Alho [Wed, 4 Dec 2013 11:21:09 +0000]
EDP: introduce ocpeaks table for consumers

ocpeaks table defines the maximum peak power for each state when
hardware overcurrent signal is asserted. The most prominent user for
overcurrent signaling is the modem consumer.

To register sysedp consumer for user space with overcurrent peak
information, following can be written to consumer_register sysfs
entry:

consumer_name a0, a1, a2, ..., an; b0, b1, b2, ..., bn

where ai and bi are nominal and overcurrent peak values for power
state i, respectively

Bug 1416849

Change-Id: I196aa976f8b2b0f300599db6807b94bf1a486f44
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/338237
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Tested-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agoEDP: prevent multiple consumer registration attempts
Timo Alho [Tue, 3 Dec 2013 21:59:24 +0000]
EDP: prevent multiple consumer registration attempts

This patchs adds a check to sysedp_consumer_register to ensure that no
consumer with same name has been registered before.

Change-Id: I028b2edcef926b280d4a57037d3406d1ae83547a
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/338236
Reviewed-by: Neil Patel <neilp@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agommc: tegra: Find tap values of SDMMC at low core vdd
R Raj Kumar [Fri, 8 Nov 2013 05:49:26 +0000]
mmc: tegra: Find tap values of SDMMC at low core vdd

Calculate tap window details at low core voltage for SDMMC.
Tuning algo changes:
Extrapolate the tap window details tuned at 1.0V for tuning at vdd_core 0.95V.

Bug 1323956

Change-Id: I8bd4e98b5ee40f2f6170214f6a74a693990aecb1
Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/328160
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

5 years agopinctrl: tegra: add missing string seprator for group entries
Laxman Dewangan [Mon, 9 Dec 2013 11:50:42 +0000]
pinctrl: tegra: add missing string seprator for group entries

Add comma(,) after each entry in groups as string separator.

Also remove non-required line and move MODULE_DEVICE_TABLE for "of"
to proper location.

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

5 years agommc: tegra: Disable sdmmc3 external loopback
Pavan Kunapuli [Fri, 6 Dec 2013 09:56:04 +0000]
mmc: tegra: Disable sdmmc3 external loopback

As per the recommended T124 prod settings, disabling external loopback
path for sdmmc3.

Bug 1347531

Change-Id: I2f51defb8fe5f195aa90ba0cbe2d11b32ebc57a1
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/339088
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agousb: gadget: tegra: only set current limit when vbus_reg exists
Kerwin Wan [Mon, 9 Dec 2013 06:28:18 +0000]
usb: gadget: tegra: only set current limit when vbus_reg exists

Bug 1421446

Change-Id: Ie4b35d633af234ab751110a141c6a2c2ea70dfce
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/339782
Reviewed-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-by: Rakesh Babu Bodla <rbodla@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoARM: tegra: dvfs: Removed unused predict interfaces
Alex Frid [Fri, 6 Dec 2013 20:46:42 +0000]
ARM: tegra: dvfs: Removed unused predict interfaces

Bug 1307919

Change-Id: I5a1db715be65b4ace106154ea6e7a30cefc46cfc
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/339371
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agoARM: tegra: dvfs: Fix error handling in predict APIs
Alex Frid [Fri, 6 Dec 2013 20:01:41 +0000]
ARM: tegra: dvfs: Fix error handling in predict APIs

When clock rate passed to predict voltage interface exceeds maximum
rate, return maximum voltage instead of error (to be consistent with
clk_set_rate interface that just clips over clocking rate to maximum
supported and don't return error).

Added proper error check in predict peak voltage interface.

Change-Id: I5d5bce7c63316e23a85329541967fd67dfa49124
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/339370
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra: dvfs: Refactor dvfs set rate function
Alex Frid [Fri, 6 Dec 2013 05:48:53 +0000]
ARM: tegra: dvfs: Refactor dvfs set rate function

Re-arranged code to consolidate voltage array access in one place.

Change-Id: I0c1136bc866b3741097bdbd390d8e281129e2ccb
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/339369
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra: dvfs: Fix GPU dvfs table debugfs units
Alex Frid [Fri, 6 Dec 2013 19:44:49 +0000]
ARM: tegra: dvfs: Fix GPU dvfs table debugfs units

Change-Id: I0f2e97083cc8a714e670d410a6c6b2ef04e83b0d
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/339368
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Chris Dragan <kdragan@nvidia.com>
Tested-by: Chris Dragan <kdragan@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra: dvfs: Update DFLL profile debugfs node
Alex Frid [Sun, 8 Dec 2013 05:51:06 +0000]
ARM: tegra: dvfs: Update DFLL profile debugfs node

Updated temperature trip-point output format to indicate range the
respective profile limit is applied in: floors below trip-point,
caps -- above. Fixed typo in thermal floors header line.

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

5 years agoARM: tegra: edp: Resource leak
Sumit Singh [Fri, 6 Dec 2013 08:45:08 +0000]
ARM: tegra: edp: Resource leak

Coverity id : 25119
Coverity id : 25120

Bug 1416640

Change-Id: I862c4d7326ac15c0090a20ecc91c846c4198c199
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
Reviewed-on: http://git-master/r/339061
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agoarm: tegra: t124: fix FBconsole on pirmary HDMI
Jong Kim [Fri, 6 Dec 2013 01:40:16 +0000]
arm: tegra: t124: fix FBconsole on pirmary HDMI

Fix FBcon on HDMI by restoring 640x480 initial mode data.

bug 1420499

Change-Id: Ia0e38d817ee4a4a8e2d655eb2d1a1dfb1b9eb8d4
Signed-off-by: Jong Kim <jongk@nvidia.com>
Reviewed-on: http://git-master/r/338950
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agovideo: tegra: host: sysfs to include syncpt name
Shridhar Rasal [Tue, 26 Nov 2013 04:59:39 +0000]
video: tegra: host: sysfs to include syncpt name

-Add sysfs to for showing in host1x/syncpt directory.

Bug 1398775

Change-Id: I10b2e588dcd113e5e2c9847174c42aed25f82461
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/335418
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agoARM: tegra: pcie: Enable Rootport AER support
Jay Agarwal [Fri, 6 Dec 2013 12:13:07 +0000]
ARM: tegra: pcie: Enable Rootport AER support

Enable AER Support for Rootports by programming
its private registers

Bug 1259524

Change-Id: Ia9d2e5dbcdac1d3e8af114d152be5059518e6eb1
Signed-off-by: Jay Agarwal <jagarwal@nvidia.com>
Reviewed-on: http://git-master/r/339209
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agoPCI: Update pcie_ports 'auto' behavior for non-ACPI platforms
Andrew Murray [Sat, 26 Oct 2013 17:23:25 +0000]
PCI: Update pcie_ports 'auto' behavior for non-ACPI platforms

The pcie_ports parameter, which defaults to 'auto', allows a user
to specify if PCIe port services are disabled ('compat'), always
enabled ('native'), or only used when allowed by the BIOS
('auto').

Where CONFIG_ACPI isn't enabled, as is often the case for non
x86/ia64 platforms, the 'auto' behavior results in that of
'compat'. Thus in order to use port services on these platforms
'pcie_ports=native' must be added to the kernel command line.

This patch results in the 'native' behavior being followed where
'auto' is selected and ACPI is not enabled.

Bug 1259524

Change-Id: I3838d8d50c765d3866a63369a96608db0c36f038
Signed-off-by: Andrew Murray <amurray@embedded-bits.co.uk>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
(cherry picked from commit 6b87e700cd65120b70aaa097a8f4e7f22f1945ee)
Signed-off-by: Jay Agarwal <jagarwal@nvidia.com>
Reviewed-on: http://git-master/r/338219
Reviewed-by: Thierry Reding <treding@nvidia.com>
Tested-by: Thierry Reding <treding@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

5 years agopinctrl: tegra: fix the pincontrol group entries for T124
Laxman Dewangan [Fri, 6 Dec 2013 11:06:41 +0000]
pinctrl: tegra: fix the pincontrol group entries for T124

Correct pingroup entries for T124 pincontrol tables.

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

5 years agoARM: tegra: add suspend state of pins for ardbeg-sata.
Laxman Dewangan [Thu, 5 Dec 2013 11:40:29 +0000]
ARM: tegra: add suspend state of pins for ardbeg-sata.

Set DAP_MCLK1_REQ to pull-up during suspend for ardbeg-sata platforms.

bug 1419765

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

5 years agopinctrl: tegra: set pins into suspend state before entering into suspend
Laxman Dewangan [Thu, 5 Dec 2013 11:37:57 +0000]
pinctrl: tegra: set pins into suspend state before entering into suspend

Set the pins into suspend state before entering into suspend. The suspend state
of pins are provided through DT.

bug 1419765

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

5 years agousb: gadget: tegra: remove unnecessary spaces/tabs
Rakesh Bodla [Mon, 9 Dec 2013 07:04:37 +0000]
usb: gadget: tegra: remove unnecessary spaces/tabs

Removing the unnecessary sapces/tabs from the driver
description.

Bug 1409227

Change-Id: I1c35d00f9fd9915bbae127f145382d5892c1747d
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/339778
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agousb: gadget: Tegra: 100mA charge current for EL_9
Rakesh Bodla [Mon, 25 Nov 2013 05:40:32 +0000]
usb: gadget: Tegra: 100mA charge current for EL_9

It limits the charge current to < 100mA so that EL_9 test
(Test_J, Test_K and TEST_SE0_NAK) can pass the +- 10mV spec.

Bug 1401531

Change-Id: I32b5083dcd04501eee845fee8662fef9959c2513
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/333261
(cherry picked from commit bfd4683b7bd162ed51fbed4925b09b288796c6fa)
Reviewed-on: http://git-master/r/336126
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agousb: gadget: udc: modify charger detection messages
Rakesh Bodla [Fri, 6 Dec 2013 06:42:12 +0000]
usb: gadget: udc: modify charger detection messages

Old NV charger and apple 2A charger construction
is same. So old nv charger passes 2A charger detection.
Modifying the print messages accordingly.

Bug 1414783

Change-Id: Ief55812cd6be691ec21a9e236bc4af33bf5f90fd
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/339029
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agomisc:tegra-cryptodev: Add RSA Context Restore test
Shravani Dingari [Thu, 28 Nov 2013 06:51:30 +0000]
misc:tegra-cryptodev: Add RSA Context Restore test

Check whether to set key or not when testing
RSA LP0 Context Restore and also allocate RSA
transforms while opening cryptodev

Change-Id: Ifef82698f7013a82edc917e88e08d9b5684596ba
Signed-off-by: Shravani Dingari <shravanid@nvidia.com>
Reviewed-on: http://git-master/r/299946
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agocrypto: tegra-se: Support RSA Context Restore test
Shravani Dingari [Thu, 28 Nov 2013 05:58:58 +0000]
crypto: tegra-se: Support RSA Context Restore test

Support for RSA Context Restore test and also allocate
RSA key slot only if it is not done for current context

Change-Id: I50c9f3fca6c189a17d07ba3325118a0fa6e13906
Signed-off-by: Shravani Dingari <shravanid@nvidia.com>
Reviewed-on: http://git-master/r/299945
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoarm: config: Enable NVIDIA hid driver
Jun Yan [Sat, 7 Dec 2013 01:13:35 +0000]
arm: config: Enable NVIDIA hid driver

Enable NVIDIA hid driver for better gaming
expereience on NVIDIA controllers.

Bug 1352488

Change-Id: I0536a72c0071586d6d6bc5b55aa01ee8b852a276
Reviewed-on: http://git-master/r/339542
Reviewed-by: Jun Yan <juyan@nvidia.com>
Tested-by: Jun Yan <juyan@nvidia.com>
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoEDP: tn8: increase EDP margins
Timo Alho [Thu, 5 Dec 2013 11:04:53 +0000]
EDP: tn8: increase EDP margins

This patch increases the EDP margins for TN8
1) Increase VSYSMIN to 3.0V
2) Increase ESR values for low state-of-charge (*)

(*) ESR for low state-of-charge is now artificially high - compared to
measured values. This is a WAR to address frequent crashes at low
battery.

Bug 1412957
Bug 1386169
Bug 1419179
Bug 1418200

Change-Id: I06bc39510cca6a077837f2e2129cf205691d5fbf
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/338700
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Steve Rogers <srogers@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Tested-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agovideo: tegra: dp: Remove duplicate call to api
Animesh Kishore [Thu, 5 Dec 2013 09:59:54 +0000]
video: tegra: dp: Remove duplicate call to api

api to set lane parameter already being called
from fast link training and full link training.

Bug 1406417

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

5 years agovideo: tegra: dp: Add tx_pu support
Animesh Kishore [Thu, 5 Dec 2013 08:38:57 +0000]
video: tegra: dp: Add tx_pu support

Bug 1382354

Change-Id: I010e3e6c3969e408b38fbc676a162d7bdf7c881b
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/338637
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agoarm: tegra: vcm30t124: Set bus width to 8 bit mode
Seshagiri Holi [Fri, 22 Nov 2013 16:50:26 +0000]
arm: tegra: vcm30t124: Set bus width to 8 bit mode

Set bus width for SDMMC4 to 8 bit mode

bug 1367536

Change-Id: Id40ef6bcccd65bee49f098bfccb92a2eefae05e9
Signed-off-by: Seshagiri Holi <sholi@nvidia.com>
Reviewed-on: http://git-master/r/334553
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoarm: tegra: loose cpu edp power table calculation.
Roger Hsieh [Tue, 16 Jul 2013 05:56:25 +0000]
arm: tegra: loose cpu edp power table calculation.

T40X will be limited to 1.8Ghz if cpu edp power table is applied.
Set the temp limit to 50 to restore the limit to 1.9G for T40X.

Bug 1310571

Change-Id: I6588e193820c34e1c4a8f6d2c82ceedc797a941c
Reviewed-on: http://git-master/r/249522
(cherry picked from commit aa2de86416fceee8e5aa051982be87f2a19a263f)

Signed-off-by: Roger Hsieh <rhsieh@nvidia.com>
Change-Id: I8df169f1f45b6e2acff624bf217ab592e4eba3ab
Reviewed-on: http://git-master/r/339731
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agovideo: tegra: host: make PMU firmware read-only
Deepak Nibade [Fri, 29 Nov 2013 09:10:24 +0000]
video: tegra: host: make PMU firmware read-only

- use dma_alloc/free_attrs() APIs to allocate/free
  memory of gk20a PMU firmware
- pass DMA_ATTR_READ_ONLY to above APIs to make
  the memory read-only

Bug 1309863

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

5 years agovideo: tegra: host: use dma APIs in pmu_gk20a.c
Deepak Nibade [Fri, 29 Nov 2013 08:43:22 +0000]
video: tegra: host: use dma APIs in pmu_gk20a.c

- use dma_alloc_coherent()/dma_free_coherent() to
  allocate/free memory
- use gk20a_gmmu_map()/unmap() to update gmmu ptes

Bug 1397647

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

5 years agovideo: tegra: host: use dma API in channel_gk20a.c
Deepak Nibade [Mon, 2 Dec 2013 06:26:36 +0000]
video: tegra: host: use dma API in channel_gk20a.c

- use dma_alloc/free_coherent() to allocate/free memory
- use gk20a_gmmu_map()/unmap() to update gmmu ptes

Bug 1397647

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

5 years agopower: bq2419x: BQ24193 thermal Enhancements
Darbha Sriharsha [Fri, 29 Nov 2013 05:29:07 +0000]
power: bq2419x: BQ24193 thermal Enhancements

Program BQ24193 to not go above 100C while charging

Bug 1364457

Change-Id: I9caf1545c1436e2d810f3d189b4b5a700e448f78
Signed-off-by: Darbha Sriharsha <dsriharsha@nvidia.com>
Reviewed-on: http://git-master/r/337002
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agovideo: tegra: host: use dma_get_sgtable
Deepak Nibade [Thu, 5 Dec 2013 09:55:50 +0000]
video: tegra: host: use dma_get_sgtable

Use dma_get_sgtable() API instead of dma_common_get_sgtable()
to get sg_table from already allocated buffer

Bug 1419319

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

5 years agoPM: move device_pm_remove call before the calling bus_remove_device
R Raj Kumar [Wed, 4 Dec 2013 06:34:44 +0000]
PM: move device_pm_remove call before the calling bus_remove_device

We hit an hang issue when removing a sd device during suspend mode.
This is may due to improper handling of acquired resources of device.
By moving the device_pm_remove call in the device_del before calling
bus_remove_device, fixed the hang issue.
Bug 1393856

Change-Id: Ice8e8e62f96631166dfe630f2571817a6dd3308c
Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/338118
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

5 years agodevres: release resources on device_del()
R Raj Kumar [Wed, 4 Dec 2013 06:31:29 +0000]
devres: release resources on device_del()

Some platform devices are driven without driver attached, so managed
resources can be acquired without driver attached.  Make sure such
resources are released by calling devres_release_all() in device_del().

Bug 1393856

Change-Id: I1e43647e143bdb363b939b97c77b4a508f281e7c
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/338117
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agoasoc: Enable RT5639 revD mclk code
Scott Peterson [Tue, 3 Dec 2013 17:05:21 +0000]
asoc: Enable RT5639 revD mclk code

Enable the MCLK detection circuit in the
RevD version of the ALC5639 audio codec

Bug 1413194
BUg 1408553

Change-Id: I09b72c8e609f580b9f81dac2baafae0f418bc956
Signed-off-by: Scott Peterson <speterson@nvidia.com>
Reviewed-on: http://git-master/r/338025
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agoARM: tegra12: dvfs: Update DVFS tables of cXbus users
Alex Frid [Sun, 8 Dec 2013 07:46:59 +0000]
ARM: tegra12: dvfs: Update DVFS tables of cXbus users

Updated DVFS tables for users of c2, c3, c4 buses -- this update was
missed by commit 58c6751adfce35e5a3d5d6ca1288d327b71c1258 that updated
bus DVFS tables only.

Bug 13242499

Change-Id: I66ab43fc11babb09e727fced4557df45419fbdf9
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/339692
GVS: Gerrit_Virtual_Submit
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agoarch: arm: tegra: loki: Correct SKU detection
Sang-Hun Lee [Sat, 7 Dec 2013 21:04:38 +0000]
arch: arm: tegra: loki: Correct SKU detection

Bug 1326949
Bug 1361282
Bug 1393328

Change-Id: Iaf3cb9554c8ffe5dba3c2f84a9a7602ec57fb95a
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/339660
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>

5 years agoarch: arm: tegra: loki: raise cpu_timer
Sang-Hun Lee [Fri, 6 Dec 2013 23:48:02 +0000]
arch: arm: tegra: loki: raise cpu_timer

Raise cpu_timer to reflect the charactierzation result

Bug 1413101

Change-Id: I07ead2bd417e5122c6b748e9e279e6493a525fb7
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/335283
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>

5 years agosecurity: tlk_driver: allocate uncached memory for FS operations
Varun Wadekar [Fri, 6 Dec 2013 11:49:09 +0000]
security: tlk_driver: allocate uncached memory for FS operations

Bug 1412144
Bug 1176001

Change-Id: If68806ee44a7009354efdda3d5cbf9e0e1f5f47f
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/339205

5 years agosecurity: tlk_driver: forcibly map user pages if default mapping fails
Varun Wadekar [Tue, 3 Dec 2013 07:07:11 +0000]
security: tlk_driver: forcibly map user pages if default mapping fails

There are instances when te_pin_user_pages() fails due to failure in
get_user_pages(). We use default mapping policy to get user pages
before pinning. But if default fails, then try using "force" option to
map user pages.

Bug 1412144
Bug 1176001

Change-Id: I661a15c86846816a8050ddfda7b58711c31f7aa5
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/338755

5 years agovideo: tegra: dc: check power-gate status
Bharat Nihalani [Mon, 2 Dec 2013 05:17:10 +0000]
video: tegra: dc: check power-gate status

Add a WARN if DC is power-gated in read or write operation.

Bug 1407372

Change-Id: Ie640adb79a96d3bea087838b1bdc0fd3e1b7c314
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/335637
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agoarm: tegra: tn8: use board files for emc dvfs
Mitch Luban [Tue, 3 Dec 2013 23:40:52 +0000]
arm: tegra: tn8: use board files for emc dvfs

Bug 1340913

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

5 years agoarch: arm: tegra: loki: Update EMC table to 0x18
Sang-Hun Lee [Tue, 3 Dec 2013 01:38:16 +0000]
arch: arm: tegra: loki: Update EMC table to 0x18

Bug 1326949
Bug 1361282
Bug 1393328

Change-Id: I318433fa5fd1201f14d054c3abba9d18a0e073a7
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/337571
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

5 years agoarm: tegra: update emc dvfs table to v7
Xue Dong [Mon, 18 Nov 2013 22:03:08 +0000]
arm: tegra: update emc dvfs table to v7

bug 1350759
bug 1340913

Change-Id: I65bbb1e6592e00afa0d6aac00839a229cdb9e2c4
Signed-off-by: Xue Dong <xdong@nvidia.com>
Reviewed-on: http://git-master/r/337573
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

5 years agoarm: tegra: update emc dvfs sequence to v12413
Xue Dong [Tue, 29 Oct 2013 19:44:54 +0000]
arm: tegra: update emc dvfs sequence to v12413

Change-Id: I0739f559e805c0c65d54f6488e86b09c0e581052
Signed-off-by: Xue Dong <xdong@nvidia.com>
Reviewed-on: http://git-master/r/337574
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

5 years agoARM: Tegra12: loki: vmin for CPU, GPU and PLL
Anshul Jain [Fri, 6 Dec 2013 02:38:07 +0000]
ARM: Tegra12: loki: vmin for CPU, GPU and PLL

This change initializes trip points for vmin on CPU, GPU and PLL

Bug 1364450

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

5 years agoARM: tegra12: dvfs: Add wrappers for vmin trips
Anshul Jain [Fri, 6 Dec 2013 02:33:55 +0000]
ARM: tegra12: dvfs: Add wrappers for vmin trips

This change adds wrapper functions for setting vmin trips
of CPU, GPU and PLL.

Bug 1364450

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

5 years agousb: nvshieldled: Add reboot callback
Jun Yan [Fri, 1 Nov 2013 20:20:50 +0000]
usb: nvshieldled: Add reboot callback

Add reboot callback in the driver, so that
we can set LED to default state when the
device reboots.

Bug 1352485

Change-Id: I672ac18f725590a0e6def3ccf5e5e88ee2d16369
Signed-off-by: Jun Yan <juyan@nvidia.com>
Reviewed-on: http://git-master/r/325740
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agoARM: tegra: loki: disable HS200 on a02
Ray Poudrier [Thu, 14 Nov 2013 22:34:34 +0000]
ARM: tegra: loki: disable HS200 on a02

The eMMC part on A02 boards has issue with
running at HS200 mode. Disable it

Bug 1400870

Change-Id: I2cdb7a6170cec2235a161eaf739c758f61d141d9
Reviewed-on: http://git-master/r/331308
Tested-by: Raymond Poudrier <rapoudrier@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Michael Hsu <mhsu@nvidia.com>
Tested-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>

5 years agovideo: tegra: nvmap : check for invalid handle
Vandana Salve [Thu, 5 Dec 2013 06:44:02 +0000]
video: tegra: nvmap : check for invalid handle

Check for invalid handle passed to nvmap to
avoid crash in nvmap

bug 1415394

Change-Id: Iacb386c3cd7b4d84f5d7e04881d58402b853a7b5
Reviewed-on: http://git-master/r/338640
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agovideo: tegra: nvmap: fix incorrect spin lock usage
Krishna Reddy [Wed, 27 Nov 2013 00:40:44 +0000]
video: tegra: nvmap: fix incorrect spin lock usage

NvMap API's are not irq safe. There is no need to use
irq safe spin lock API. Use regular spin_lock/_unlock.

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

5 years agovideo: tegra: nvmap: remove obsolete ioctls code
Krishna Reddy [Wed, 4 Dec 2013 17:54:23 +0000]
video: tegra: nvmap: remove obsolete ioctls code

Remove obsolete ioctls and param struct code.

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

5 years agoARM: tegra12: ardbeg: put DSIC/D into DPD mode
Terry Wang [Tue, 3 Dec 2013 10:11:07 +0000]
ARM: tegra12: ardbeg: put DSIC/D into DPD mode

Put DSIC/D pads into DPD mode to save additional power for
Ardbeg and TN8 when 19x12 Dumb panel is used.

Bug 1416110

Change-Id: I6944435a83c4541a5334e46ac1a510d1bced84ee
Signed-off-by: Terry Wang <terwang@nvidia.com>
Reviewed-on: http://git-master/r/337249
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agoARM: tegra: add regulator supply property for ALS
Daniel Fu [Sat, 30 Nov 2013 08:50:25 +0000]
ARM: tegra: add regulator supply property for ALS

Light sensor CM3217 register from DT.Add power property for it.
Revmoing the non-required consumer entry, As It could be added in
sensor DT node.

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

5 years agoARM: tegra: TN8: Move sensor to sensor dtsi file
Daniel Fu [Fri, 29 Nov 2013 15:58:53 +0000]
ARM: tegra: TN8: Move sensor to sensor dtsi file

As Sensor nodes are duplicate between several dts file.
Move the sensor node to the dtsi file based on the same sensor module.
Include the sensor module dtsi file from TOP level .

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

5 years agovideo: tegra: host: gk20a: add reset delay
Prashant Malani [Wed, 4 Dec 2013 19:27:20 +0000]
video: tegra: host: gk20a: add reset delay

Increase the delay between reset writes to allow enough time for
resets to propogate to gr partition.

Bug 1419815

Change-Id: I101f24a8cd9a875ef4881d998f966ff37f093bda
Signed-off-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-on: http://git-master/r/338359
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agoarm: tegra: norrin: add norrin pinmux file.
Hayden Du [Tue, 3 Dec 2013 09:24:57 +0000]
arm: tegra: norrin: add norrin pinmux file.

bug 1405054

Change-Id: Ia17b198bcdf9776d62d082fd51b019deaf468725
Signed-off-by: Hayden Du <haydend@nvidia.com>
Reviewed-on: http://git-master/r/337729
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoarm: tegra: norrin: add touch support for norrin.
Hayden Du [Tue, 3 Dec 2013 09:47:34 +0000]
arm: tegra: norrin: add touch support for norrin.

bug 1405054

Change-Id: I31e5adc40dc4424b9de3daad053952c53c8b7439
Signed-off-by: Hayden Du <haydend@nvidia.com>
Reviewed-on: http://git-master/r/337730
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoarm: tegra: dts: norrin: add spi3 support for Norrin.
Hayden Du [Thu, 28 Nov 2013 03:19:14 +0000]
arm: tegra: dts: norrin: add spi3 support for Norrin.

Bug 1405054

Change-Id: I1e22a47498123ffb17eb246379d20814b01d3933
Signed-off-by: Hayden Du <haydend@nvidia.com>
Reviewed-on: http://git-master/r/337695
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoARM: tegra: Set DTS file name with property nvidia,dtsfilename
Laxman Dewangan [Thu, 5 Dec 2013 07:43:27 +0000]
ARM: tegra: Set DTS file name with property nvidia,dtsfilename

Set DTS file name on each top level dts file with property name of
nvidia,dtsfilename.

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

5 years agousb: gadget: tegra: Allow device to charge in LP0
Rohith Seelaboyina [Mon, 2 Dec 2013 09:09:56 +0000]
usb: gadget: tegra: Allow device to charge in LP0

USB Driver changes state from Peripheral to Suspend
while going to LP0, in that process it sets charging
current limit to '0'. This makes charger to disconnect.
Do not set current limit to '0' while going to suspend
and set current on resume if cable is removed/changed.

Bug 1406615

Change-Id: I49ce9528cba4c22b64d4b68b263affec305aac0c
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/334968
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>