]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/log
sojka/nv-tegra/linux-3.10.git
9 years agoARM: tegra: clock:Fix Sleeping while atomic in LP0
Gaurav Sarode [Wed, 16 Jul 2014 19:58:40 +0000 (12:58 -0700)]
ARM: tegra: clock:Fix Sleeping while atomic in LP0

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

Bug 1534913

Change-Id: I7ca661a8030308107c3467d9d524c79b6ec374e8
Signed-off-by: Gaurav Sarode <gsarode@nvidia.com>
Reviewed-on: http://git-master/r/438904
(cherry picked from commit 908ff199970a093a022f4434afc1689ba979bfed)
Reviewed-on: http://git-master/r/440467
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
9 years agoarm64: kernel: check mode for get_user in undefinstr
Peng Du [Wed, 23 Jul 2014 18:40:33 +0000 (11:40 -0700)]
arm64: kernel: check mode for get_user in undefinstr

get_user() should be called only for user_mode undef instruction.

Bug 1536343

Change-Id: Ia654783de0cf72abac6847ac9630236f9f0d6ebb
Signed-off-by: Peng Du <pdu@nvidia.com>
Reviewed-on: http://git-master/r/441348
(cherry picked from commit 518317f3e09c794e14de49f1afe47a93f92787ab)
Reviewed-on: http://git-master/r/448179
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>
9 years agogpu: nvgpu: return error from mutex_acquire() if pmu not initialized
Deepak Nibade [Thu, 17 Jul 2014 12:39:13 +0000 (18:09 +0530)]
gpu: nvgpu: return error from mutex_acquire() if pmu not initialized

In pmu_mutex_acquire(), we return zero (success) if
pmu->initialized is not set

Since mutex_acquire() was successful, we then call
pmu_mutex_release()

If now pmu->initialized is set in some other thread
then we proceed to validate the mutex owner and
end up causing below warning :

pmu_mutex_release: requester 0x00000000 NOT match owner 0x00000008

Hence to fix this return error from mutex_acquire()
and mutex_release() if pmu->initialized is not yet set
and in that case we proceed to call elpg enable/disable

Bug 1533644
Bug 200017082

Change-Id: Ifbb9e6a8e13f6478a13e3f9d98ced11792cc881f
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/439333
(cherry picked from commit 50497d4031103df1067f14ce4c1e14b15713efb9)
Reviewed-on: http://git-master/r/440747
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
9 years agoARM: tegra: dtb: reduce SD0 voltage
Zheng Liu [Wed, 9 Jul 2014 21:08:24 +0000 (14:08 -0700)]
ARM: tegra: dtb: reduce SD0 voltage

Fix a kernel panic seen on t132ref caused by
find_vdd_map_entry() returning 0.

bug 1522642

Change-Id: Ib132b9feeb85a7b7bacfa7aeceb646aa89d54ece
Signed-off-by: Zheng Liu <zhliu@nvidia.com>
Reviewed-on: http://git-master/r/440520
GVS: Gerrit_Virtual_Submit
Tested-by: Mike Thompson <mikthompson@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
9 years agoarm: tegra: pm375: dtb support for t132 pm375
Zheng Liu [Mon, 16 Jun 2014 22:58:53 +0000 (15:58 -0700)]
arm: tegra: pm375: dtb support for t132 pm375

Add dtb support for t132 pm375.

bug 1522642

Change-Id: If0f769bceaf6edcd8fe5d2fbd067a2ed3a81cca2
Signed-off-by: Zheng Liu <zhliu@nvidia.com>
Reviewed-on: http://git-master/r/440519
GVS: Gerrit_Virtual_Submit
Tested-by: Mike Thompson <mikthompson@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
9 years agoarm: tegra: pm375: machine support for t132 pm375
Zheng Liu [Mon, 16 Jun 2014 22:46:29 +0000 (15:46 -0700)]
arm: tegra: pm375: machine support for t132 pm375

Add machine support for t132 pm375.

bug 1522642

Change-Id: I842150ecccb722a93b7b80b3c87dcf1ceb13e7b5
Signed-off-by: Zheng Liu <zhliu@nvidia.com>
Reviewed-on: http://git-master/r/440518
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Mike Thompson <mikthompson@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
9 years agovideo: tegra: dc: remove low latency cursor support
Jon Mayo [Tue, 29 Apr 2014 19:47:21 +0000 (12:47 -0700)]
video: tegra: dc: remove low latency cursor support

There is no difference in latency.

Bug 1333484

Change-Id: I8c1acb14d62df51cac535b2b78df0070744a5b66
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/436700
(cherry picked from commit 6eff7bd5a3a858e92c1088c102b21e86e12bf35b)
Reviewed-on: http://git-master/r/439915
Tested-by: Jong Kim <jongk@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
9 years agovideo: tegra: dc: track cursor state
Jon Mayo [Thu, 19 Jun 2014 18:44:54 +0000 (11:44 -0700)]
video: tegra: dc: track cursor state

save and restore cursor state for suspend and resume.

Bug 1486452
Bug 200006001

Change-Id: If5db728a0bca436f0c12ec3de56c4fec9b3d3328
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/436316
(cherry picked from commit bec916df2e450d763a912be37b783450aaf5b862)
Reviewed-on: http://git-master/r/439914
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Jong Kim <jongk@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
9 years agovideo: tegra: dc: move cursor into core driver
Jon Mayo [Wed, 18 Jun 2014 23:01:10 +0000 (16:01 -0700)]
video: tegra: dc: move cursor into core driver

Move cursor routines into the core driver, provide a small abstraction
layer to update the cursor.

Change-Id: Idfa1c6b313806de6a5d34f9f05592574f5829933
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/436315
(cherry picked from commit 14e65ae70661462aa50f424a04a65a7c0efd9ff9)
Reviewed-on: http://git-master/r/439913
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Jong Kim <jongk@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
9 years agovideo: tegra: dc: reset dc in probe
Vineel Kumar Reddy Kovvuri [Tue, 15 Jul 2014 04:08:48 +0000 (09:38 +0530)]
video: tegra: dc: reset dc in probe

Reset dc in probe. This fixes norrin display(edp) not working
in kernel because of inconsistent dc state set by bootloader.

Bug 200013637
Bug 1500654

Change-Id: Ic6bc2c40b6942a4d4d9a98ad2c984896bbb0d9be
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Reviewed-on: http://git-master/r/437553
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
9 years agosound: tegra: ahub: add clock settings for T124
Bryan Wu [Wed, 16 Apr 2014 22:35:20 +0000 (15:35 -0700)]
sound: tegra: ahub: add clock settings for T124

Several additional audio clocks need to be initialized before
accessing any audio register, otherwise system will just hard hang.

Probably fastboot bootloader initialize these clocks, which actually
should be handled in driver. We found this issue for U-Boot bringup.

Bug 1482099

Change-Id: Ia7a7c0115bc92a4e98e6f337cf8efc7b2f7a72a0
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Signed-off-by: Prabhu Kuttiyam <pkuttiyam@nvidia.com>
Reviewed-on: http://git-master/r/408429
(cherry picked from commit 2929886db14e9d2ac0e75b282126397970fbf9c9)
Reviewed-on: http://git-master/r/427929
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Karan Jhavar <kjhavar@nvidia.com>
9 years agoARM: tegra: config: enable performance governor
Preetham Chandru R [Thu, 10 Jul 2014 09:33:51 +0000 (15:03 +0530)]
ARM: tegra: config: enable performance governor

During boot, the CPU governor is getting set
to performance for a faster boot up and hence this
needs to be enabled.

Bug 1532473
Bug 1519610

Change-Id: Idf9ba9d30be1e09d9b9fc4245b96a43a56f2d799
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/436578
(cherry-picked from commit 876a19a97f0d85d270bef970a3815c039b4631fe)
Reviewed-on: http://git-master/r/437978
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
9 years agoARM: ardbeg: enable throttle only with compatible machines
Roger Hsieh [Mon, 7 Jul 2014 07:42:39 +0000 (15:42 +0800)]
ARM: ardbeg: enable throttle only with compatible machines

Mostly we enabled different machines in defconfig. The calls in
the board file should ensure it's executing with the compatible
machines, or race condition will be happened.

Bug 1510190

Change-Id: Ia9689fa60c1a6f104a5807bea2b88bd0146249d0
Signed-off-by: Roger Hsieh <rhsieh@nvidia.com>
Reviewed-on: http://git-master/r/435037
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
9 years agomisc: Change info print as debug message
Pankaj Dabade [Mon, 7 Jul 2014 05:52:43 +0000 (11:22 +0530)]
misc: Change info print as debug message

Updating the message severity to debug.

Bug 200007132
Bug 1283757

Change-Id: Ide4a7cc5b205939e561f96e9e6205e082440e515
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/435015
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
9 years agoiio: meter: ina230: power on if current_threshold defined
Roger Hsieh [Fri, 4 Jul 2014 05:29:49 +0000 (13:29 +0800)]
iio: meter: ina230: power on if current_threshold defined

Power it on after initializatin in case current_threshold
is defined in device tree, or power it down.

Bug 200012361

Change-Id: Ic1b463af1812bf47b01ce04dc7714fb7965629e0
Signed-off-by: Roger Hsieh <rhsieh@nvidia.com>
Reviewed-on: http://git-master/r/434620
Reviewed-by: Timo Alho <talho@nvidia.com>
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
9 years agousb: gadget: tegra: handle the case when host reboots
Rakesh Bodla [Tue, 1 Jul 2014 12:38:36 +0000 (18:08 +0530)]
usb: gadget: tegra: handle the case when host reboots

Some hosts during booting first supply vbus and then
send setup packets after x seconds. In this case we detect
as non-standard. Handle this case by setting to SDP.

Also adding condition to avoid unnecessary icon
notifications.

Bug 200017121

Change-Id: I1f0d9a2e2725a0cd3a4324f5208764ee2e4978cf
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/433179
(cherry picked from commit 1073c32cebc1314e4d3be7967d707a743ded05ea)
Reviewed-on: http://git-master/r/436033
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
9 years agousb: phy: tegra: QC2 speed up charger recogniion
Philip Rakity [Wed, 4 Jun 2014 11:37:30 +0000 (12:37 +0100)]
usb: phy: tegra: QC2 speed up charger recogniion

The QC2 Wall Charger needs to be reset only when
we boot or reboot the system.  This is because
the wall charger will have already defaulted to a DCP.
Since the internal logic in the Wall Charger will not
see D+/D- programmed during the time available.

If we just plug in the charger then it will be recognised
in time so no reset is necessary.  Removes 1.5s of delay.

bug 1424733
Reviewed-on: http://git-master/r/433790
(cherry picked from commit b1a51cad99e8ec7e309aa33a786bdc41bc61f6db)
Change-Id: I2b6f698e75f29163e9de4dac3f1b2ef1fb0ec6cc
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/435646
GVS: Gerrit_Virtual_Submit
Reviewed-by: Rakesh Babu Bodla <rbodla@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
9 years agodevfreq: Account only powered time in trans_stat
Arto Merilainen [Mon, 7 Jul 2014 12:50:21 +0000 (15:50 +0300)]
devfreq: Account only powered time in trans_stat

This patch modifies devfreq to account only the time a device is
powered in trans_stat. In addition, this patch also fixes a race
in trans_stat maintenance in cases where the node is readed at
the same time the transition table is being updated by frequency
re-estimation.

Change-Id: I6e4341317b6dda88d69028c9f67785400e5a7a65
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/435174
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Prajakta Gudadhe <pgudadhe@nvidia.com>
Reviewed-by: Samuel Russell <samuelr@nvidia.com>
Tested-by: Samuel Russell <samuelr@nvidia.com>
Reviewed-by: Ilan Aelion <iaelion@nvidia.com>
9 years agotegra: dtb: sysedp: enable sysedp only on P1761 with battery
Timo Alho [Mon, 7 Jul 2014 05:44:56 +0000 (08:44 +0300)]
tegra: dtb: sysedp: enable sysedp only on P1761 with battery

Previously, sysedp was attempted to enabled on non-battery versions of
P1761. This caused sysedp_batmon_calc to fail with -EFAULT during
probing as battery power supply was not available.

Bug 200018196

Change-Id: I0abb9cde8d597febed3e24d0bf3a29386e06db57
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/434985
GVS: Gerrit_Virtual_Submit
Reviewed-by: Steve Rogers <srogers@nvidia.com>
Tested-by: Steve Rogers <srogers@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
9 years agoASoC: Tegra: Add effects capture for norrin
Deepa Madiregama [Wed, 2 Jul 2014 06:15:20 +0000 (11:45 +0530)]
ASoC: Tegra: Add effects capture for norrin

- Add dai link for effects capture

Bug 1399923

Change-Id: Ie361aad3cedb1c47b8800fc9eac221e4fcaccc97
Signed-off-by: Deepa Madiregama <dmadiregama@nvidia.com>
Reviewed-on: http://git-master/r/433496
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
9 years agoASoC: Tegra: Add support for effects capture
Deepa Madiregama [Fri, 23 May 2014 09:53:51 +0000 (15:23 +0530)]
ASoC: Tegra: Add support for effects capture

Add capture node to get the effects data from AVP

Bug 1399923

Change-Id: I854de0966a40fe7867001a25058626da63b87b92
Signed-off-by: Deepa Madiregama <dmadiregama@nvidia.com>
Reviewed-on: http://git-master/r/414091
Reviewed-by: Emad Mir <emir@nvidia.com>
Tested-by: Emad Mir <emir@nvidia.com>
9 years agoRevert "fs/proc/task_mmu.c: hold read lock on mm->mmap_sem for get_user_pages"
Seema Khowala [Mon, 7 Jul 2014 21:36:59 +0000 (14:36 -0700)]
Revert "fs/proc/task_mmu.c: hold read lock on mm->mmap_sem for get_user_pages"

This reverts commit 41b5e73ff878e7c1629f0ad8707cbc4c5c128f7b.

Bug 200016834

Signed-off-by: Seema Khowala <seemaj@nvidia.com>
Change-Id: Idec735d6804efd61d70941165f4bee72a10b60e7
Reviewed-on: http://git-master/r/435239
Reviewed-by: Prajakta Gudadhe <pgudadhe@nvidia.com>
Tested-by: Hridya Valsaraju <hvalsaraju@nvidia.com>
GVS: Gerrit_Virtual_Submit

9 years agoarm64: guarantee correct tlb flushes with preeption on
Rich Wiley [Wed, 2 Jul 2014 21:40:09 +0000 (14:40 -0700)]
arm64: guarantee correct tlb flushes with preeption on

We need to guarantee that our thread hasn't switched
cores between being asked to flush the local core's
tlb and having actually performed the task. If it
has, we need to perform a global tlbi.

Change-Id: I4b1bc5fbe53a7d35a2442753d8fe3f0ae86415ac
Signed-off-by: Rich Wiley <rwiley@nvidia.com>
Reviewed-on: http://git-master/r/433805
GVS: Gerrit_Virtual_Submit
Reviewed-by: Peng Du <pdu@nvidia.com>
Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
9 years agoARM: tegra: dvfs: Update DFLL tune settings to P4v17
Alex Frid [Thu, 26 Jun 2014 22:14:30 +0000 (15:14 -0700)]
ARM: tegra: dvfs: Update DFLL tune settings to P4v17

Added DFLL tune settings for new speedo ranges below 2180,
and 2180... 2336.

Bug 1442659

Change-Id: I8259d2e3de3ed5ca9b5a622700755711d82511f0
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/429137
Reviewed-by: Krishna Sitaraman <ksitaraman@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Karan Jhavar <kjhavar@nvidia.com>
9 years agoARM: tegra: dvfs: Update CPU DVFS table to P4v17
Alex Frid [Wed, 11 Jun 2014 06:46:03 +0000 (23:46 -0700)]
ARM: tegra: dvfs: Update CPU DVFS table to P4v17

Bug 1442659

Change-Id: Ie0f64869aa79cfd57ab31ca4096800bfb4e797a4
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/429136
Reviewed-by: Krishna Sitaraman <ksitaraman@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Karan Jhavar <kjhavar@nvidia.com>
9 years agoUSB: phy: tegra: replace mdelay with usleep_range
Suresh Mangipudi [Mon, 30 Jun 2014 07:44:15 +0000 (13:14 +0530)]
USB: phy: tegra: replace mdelay with usleep_range

Avoid busy waiting by using usleep_range().

Change-Id: If11f137d5bc1a67e37e232996cac559b7b154545
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-on: http://git-master/r/432645
(cherry picked from commit 067e4086801c0805846969b8473999afe7b7dd03)
Reviewed-on: http://git-master/r/434624
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
9 years agoRevert "gpu: nvgpu: Dump offending push buffer fragment"
Arto Merilainen [Thu, 3 Jul 2014 09:28:25 +0000 (12:28 +0300)]
Revert "gpu: nvgpu: Dump offending push buffer fragment"

Channel and gpfifo allocations are entirely separated from each
other, however, the code here assumes that active channel means
that the channel also has a gpfifo.

This reverts commit a24602f094380539788696d1b1567a4f4d914b17 which
added gpfifo dump. Changing debug dumping to be safe requires
refactoring the channel release code to use proper locking.

Bug 200017498
Bug 1530226

Change-Id: I2fb02542a17dd56a0a9ce732b327e34b85ade8b9
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
(cherry picked from commit 3d37815d7660affeb9a4f23b0d17f870ed12dd33)
Reviewed-on: http://git-master/r/434053
Reviewed-by: Emad Mir <emir@nvidia.com>
Tested-by: Emad Mir <emir@nvidia.com>
9 years agoASoC: Tegra: support raw aac for compress offload
Sayak Ghosh Choudhury [Tue, 24 Jun 2014 12:02:14 +0000 (17:32 +0530)]
ASoC: Tegra: support raw aac for compress offload

raw aac support is added for compress decoding on avp.

Bug 200013486

Change-Id: I355bc8b1636811fb51abb4c4c6ca23f207ec5064
Signed-off-by: Sayak Ghosh Choudhury <sayakc@nvidia.com>
Reviewed-on: http://git-master/r/427720
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
9 years agogpu: nvgpu: increase delays in do_idle()
Deepak Nibade [Thu, 3 Jul 2014 15:18:30 +0000 (20:48 +0530)]
gpu: nvgpu: increase delays in do_idle()

Increase the wait delays in do_idle() to 2000 mS and make use
of msleep instead of mdelays

Also, to check if GPU is rail gated or not, add a do-while()
loop which will keep checking the status and bail out as soon
as GPU is rail gated

This increase in delays is required to allow GPU sufficient
time to complete its work and get rail gated

These delays are specially needed during stress testing where
it is possible that a large amount of GPU work is blocked
during do_idle() and then it might take more time to complete
it while next do_idle() is waiting for it

Also, remove waiting on API gk20a_wait_channel_idle() for each
channels since it is sufficient to wait for refcount to be 1

bug 1529160

Change-Id: Ie541485fbdda76d79ae4a75dda928da240fc5d8f
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/434192
GVS: Gerrit_Virtual_Submit
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
9 years agogpu: nvgpu: remove redundant busy()/idle() calls
Deepak Nibade [Thu, 3 Jul 2014 13:02:20 +0000 (18:32 +0530)]
gpu: nvgpu: remove redundant busy()/idle() calls

gk20a_busy() call in channel_syncpt_incr() and corresponding
gk20a_idle() call in channel_update() are redundant since they
are already encapsulated inside another pair of busy/idle calls

This busy/idle pair will be called only from submit_gpfifo()
and submit_gpfifo() already has its own busy/idle which it
preserves for whole path and hence this redundant pair can be
removed

Also, this prevents a dead lock scenario while do_idle() is in
progress as follows :
- in submit_gpfifo() we call first gk20a_busy() which acquires
  busy read semaphore
- in do_idle() we acquire busy write semaphore and wait for
  current jobs to finish
- now submit_gpfifo() encounters second gk20a_busy() and requests
  busy read semaphore again
- this results in dead lock where do_idle() is waiting for
  submit_gpfifo() to complete and submit_gpfifo() is waiting for
  busy lock held by do_idle() and hence it cannot complete

bug 1529160

Change-Id: I96e4368352f693e93524f0f61689b4447e5331ea
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/434191
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
9 years agogpu: nvgpu: fix race between do_idle() and unrailgate()
Deepak Nibade [Thu, 3 Jul 2014 12:29:39 +0000 (17:59 +0530)]
gpu: nvgpu: fix race between do_idle() and unrailgate()

While we are executing do_idle() API, it is possible that
unrailgate() gets invoked in midst of idling the GPU and
this can result in failure of do_idle()

To prevent simultaneous execution of these methods,
add a mutex railgate_lock and acquire it during
do_idle() and unrailgate() APIs

Also, keep this lock held if do_idle() is successful.
In success, lock will be released in do_unidle(),
otherwise release this lock before returning

Note that this lock should not be held in railgate() API
since we do not want it to be blocked during do_idle()

bug 1529160

Change-Id: I87114b5367eaa217376455a2699c0d21c451c889
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/434190
GVS: Gerrit_Virtual_Submit
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
9 years agomisc: tegra-profiler: fix backtraces for 64-bit
Igor Nabirushkin [Tue, 24 Jun 2014 13:07:53 +0000 (17:07 +0400)]
misc: tegra-profiler: fix backtraces for 64-bit

* Fix backtraces for 64-bit programs
* Also, allow user to use any frequency in range [100 Hz; 100 kHz]

Bug 1527404

Change-Id: I29495ddd1449e59b354ac00d4112bdf7b9845375
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/427738
(cherry picked from commit b4f84b60177750214ddac24c63c2f9a08b15ce05)
Reviewed-on: http://git-master/r/433511
Reviewed-by: Andrey Trachenko <atrachenko@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Maxim Morin <mmorin@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
9 years agomisc: tegra-profiler: add time source option
Igor Nabirushkin [Tue, 24 Jun 2014 08:18:29 +0000 (12:18 +0400)]
misc: tegra-profiler: add time source option

* Add time source option (CNTVCT or kernel monotonic clock).
* Do not use arch timer if user does not have direct access to
  CNTVCT register.

Bug 1508327

Change-Id: I0efc619146c1256ac57120b8646ecd8e819a1315
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/427620
(cherry picked from commit 5e375e6dbca8211bb2af04bd25d5e5d66371aa4f)
Reviewed-on: http://git-master/r/433507
Reviewed-by: Andrey Trachenko <atrachenko@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Maxim Morin <mmorin@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
9 years agoARM: tegra: clock: Set clock to fixed rate if set
Ashwin Joshi [Mon, 26 May 2014 09:15:14 +0000 (14:45 +0530)]
ARM: tegra: clock: Set clock to fixed rate if set

If for a particular clock, fixed rate is specified, then always set that
clock at that rate, irrespective of rate requested by driver

Bug 1410210
Bug 1468321
Bug 200017463

Signed-off-by: Ashwin Joshi <asjoshi@nvidia.com>
Reviewed-on: http://git-master/r/414920
(cherry picked from commit ba6743dd0aa8f5669fcabdfba08690df0c4ef2ad)

Change-Id: Icdac8ca0ce4238dcb79dbdcaaec1250d4829a4eb
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/434033
Reviewed-by: Joshua Cha <joshuac@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
9 years agoARM: tegra13: laguna: move cl-dvfs to dt
Bibek Basu [Thu, 3 Jul 2014 08:32:40 +0000 (14:02 +0530)]
ARM: tegra13: laguna: move cl-dvfs to dt

Move cl-dvfs to DT for automatic voltage value
detection.

Bug 200017706

Change-Id: I3467c6e34648e6478b4929a47869ba71f0b251a0
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/434018
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
9 years agoARM: tegra12: vcm30t124: Update android defconfig
Ashwin Joshi [Wed, 2 Jul 2014 07:53:59 +0000 (13:23 +0530)]
ARM: tegra12: vcm30t124: Update android defconfig

- Enable CONFIG_TEGRA_PLLCX_FIXED option for vcm30t124 android defconfig
- Disable CONFIG_TEGRA_CORE_CAP

Bug 200017463
Bug 200000521

Signed-off-by: Ashwin Joshi <asjoshi@nvidia.com>
Reviewed-on: http://git-master/r/433532
(cherry picked from commit 7a44550e38c258e2b8805d8538797bb45f654d8d)

Change-Id: I2e6ee25cd45b1d2a514519cb7fcf84b6c2992d24
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/433890
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
GVS: Gerrit_Virtual_Submit

9 years agoARM: tegra: ardbeg: Lower E1733 voltage map bottom
Alex Frid [Tue, 1 Jul 2014 01:14:54 +0000 (18:14 -0700)]
ARM: tegra: ardbeg: Lower E1733 voltage map bottom

Lower E1733 voltage map bottom from 700mV to 650mV on Tegra13
platforms.

Change-Id: Id52712f364e67e50fd7a5778d55c36536736c764
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/433758
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Tested-by: Anand Bhatia <anandb@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
9 years agomedia: tegra: nvavp: fix deadlock issue
Allen Yu [Wed, 2 Jul 2014 07:14:24 +0000 (15:14 +0800)]
media: tegra: nvavp: fix deadlock issue

In nvavp_pushbuffer_update(), we acquire channel_info->pushbuffer_lock first
then nvavp->open_lock. While in clock_disable_handler(), open_lock is acquired
before pushbuffer_lock, causing the deadlock if clock_disable_work happens to
be executing while running nvavp_pushbuffer_update().

This change reorder the locks in clock_disable_handler to avoid deadlock issue.
And also in tegra_nvavp_release(), need to release nvavp->open_lock first before
calling nvavp_uninit(), since nvavp_uninit() need to cancel clock_disable_work
in a synchronous manner.

Bug 200013513

Change-Id: I42082a97cc4e311a4141559f8a56c7c1eeb97eb2
Signed-off-by: Allen Yu <alleny@nvidia.com>
Reviewed-on: http://git-master/r/433523
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Soumenkumar Dey <sdey@nvidia.com>
Reviewed-by: Mandar Potdar <mpotdar@nvidia.com>
Tested-by: Yogesh Solanke <ysolanke@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Somu Sundaram <somasundarams@nvidia.com>
9 years agoarm64: tegra: misc fixes to hardwood driver
Peng Du [Mon, 30 Jun 2014 18:03:19 +0000 (11:03 -0700)]
arm64: tegra: misc fixes to hardwood driver

* Set NS bit when kernel is non-secure
* fix potential race in late_init
* enable hotplug notifier in late_init
* set buf occupied if immediately available
* better debugging print

Change-Id: I7acd736888f05facc559c7c965e20aea6f43060c
Signed-off-by: Peng Du <pdu@nvidia.com>
Reviewed-on: http://git-master/r/432822
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
9 years agommc: sdhci: tegra: Add setting for dma-mask
Jinyoung Park [Tue, 1 Jul 2014 07:51:24 +0000 (16:51 +0900)]
mmc: sdhci: tegra: Add setting for dma-mask

Currently, there is no binding for coherent_dma_mask and dma_mask
in device tree. If sdhci-tegra driver is probed from DT,
coherent_dma_mask will be set to 32 bit as DT default and
dma_mask will be NULL.
So added coherent_dma_mask setting for each Tegra SKUs.
And if dma_mask is NULL, set it to coherent_dma_mask.

Bug 200000521

Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/433116
(cherry picked from commit 4b624565615f4f549a556ac7cbf1957cc8d978d5)

Change-Id: Id78e3d225619fb232e10cf957502aea4a131063a
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/433893
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>
9 years agoarm: dts: vcm30t124: Support HS200 on SDMMC4
Jinyoung Park [Thu, 26 Jun 2014 07:06:31 +0000 (16:06 +0900)]
arm: dts: vcm30t124: Support HS200 on SDMMC4

Support HS200 on SDMMC4.

Bug 200000521

Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/428765
(cherry picked from commit 3784a9ea0ed50b9044e6a7c4adb96b887e19f627)

Change-Id: Ie334b7c303d5e243c7090b601b5ff32822f578d4
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/433891
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>
9 years agonvmap: add null pointer check in __nvmap_sg_table
Ishwarya Balaji Gururajan [Wed, 2 Jul 2014 01:04:32 +0000 (18:04 -0700)]
nvmap: add null pointer check in __nvmap_sg_table

Possible null pointer derefernce occurs when
nvmap_pages return NULL. Add null pointer check after
nvmap_pages call to prevent null pointer dereference in
sg_alloc_table_from_pages

bug 1516222

Change-Id: I7aa06f8b3e8c0846c496f62ad49f753d21bc9102
Signed-off-by: Ishwarya Balaji Gururajan <igururajan@nvidia.com>
Reviewed-on: http://git-master/r/433389
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Tested-by: Sri Krishna Chowdary <schowdary@nvidia.com>
9 years agovideo: tegra: fbcon: remove dangling pointer in VC
Jong Kim [Fri, 27 Jun 2014 20:37:55 +0000 (13:37 -0700)]
video: tegra: fbcon: remove dangling pointer in VC

Remove dangling mode pointer in virtual consoles by updating
all VCs upon new modelist event.

bug 200009711

Change-Id: If4cc5622f39f864943b3715342c8d3d8c1857ba1
Signed-off-by: Jong Kim <jongk@nvidia.com>
Reviewed-on: http://git-master/r/432321
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>
9 years agonet: wireless: bcmdhd: Fix LP0 in case of wifi tethering
Manikanta [Mon, 30 Jun 2014 08:22:28 +0000 (13:52 +0530)]
net: wireless: bcmdhd: Fix LP0 in case of wifi tethering

PROPTX_STATUS periodically sends useful information (such as
flow control info, RSSI etc) to the host, this prevents host from
going into LP0 mode. Disable dhd_pm_callback pm notifier
to fix this issue.

bug 200016824

Change-Id: I50c0fa61e6a183d203f8ef49b1ed81a060e81351
Signed-off-by: Manikanta <mmaddireddy@nvidia.com>
Reviewed-on: http://git-master/r/432654
Reviewed-by: Nagarjuna Kristam <nkristam@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
9 years agoASoC: Tegra: Refactor offload to handle multiple BE
Ravindra Lokhande [Thu, 26 Jun 2014 15:01:22 +0000 (20:31 +0530)]
ASoC: Tegra: Refactor offload to handle multiple BE

- Added virtual mixer and switch to support multiple BE
- One FE can be connected to multiple BE, mixer control can be used
  to select the path
- Fix crash if no path is selected

Change-Id: Ibbf03ef1e1826acd92402b8275d72a580e643e66
Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-on: http://git-master/r/428950
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
9 years agoARM: tegra: p1761: update emc dvfs table
Robert Shih [Mon, 23 Jun 2014 07:57:37 +0000 (15:57 +0800)]
ARM: tegra: p1761: update emc dvfs table

New release DVFS table generated by
EMC_REG_CAL_V5.0.18

bug 1521750

Change-Id: Ib06001da111e22f0d9ab53d32e8e1adb45e6fbe8
Signed-off-by: Robert Shih <rshih@nvidia.com>
Reviewed-on: http://git-master/r/427216
(cherry picked from commit 580db20a208c9a600db35754e958824704f4b69c)
Reviewed-on: http://git-master/r/432482
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
9 years agogpu: nvgpu: Wait for idle via FIFO registers
Terje Bergstrom [Fri, 27 Jun 2014 10:45:02 +0000 (13:45 +0300)]
gpu: nvgpu: Wait for idle via FIFO registers

Wait for engine idle via FIFO's engine status instead of submitting
WFI to channel. Submitting WFI and waiting is not robust, and wait
might invoke debug dump which cannot be done while powering down.

Bug 1499214

Change-Id: I4d52e8558e1a862ad4292036594d81ebfbd5f36b
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/432151
(cherry picked from commit 3719dff8287f5402eea81acb19ae21f028b1b968)
Reviewed-on: http://git-master/r/432154
Reviewed-by: Emad Mir <emir@nvidia.com>
Tested-by: Emad Mir <emir@nvidia.com>
9 years agogpu:nvgpu:fix powergate disabling order
Vijayakumar [Fri, 27 Jun 2014 09:20:31 +0000 (14:50 +0530)]
gpu:nvgpu:fix powergate disabling order

ELPG has to disabled before we write to clock gating registers
If ELPG is engaged during clock gating register write it will
cause error in ELPG engine

Bug 200013495
Bug 200014542

Change-Id: I57d1c59fc9311686829d898faddc90149df4cb46
Signed-off-by: Vijayakumar <vsubbu@nvidia.com>
Reviewed-on: http://git-master/r/432127
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
9 years agodrivers: clocksource: add CPU PM notifier for ARM architected timer
Sudeep KarkadaNagesha [Fri, 23 Aug 2013 14:53:15 +0000 (15:53 +0100)]
drivers: clocksource: add CPU PM notifier for ARM architected timer

Few control settings done in architected timer as part of initialisation
can be lost when CPU enters deeper power states. They need to be
restored when the CPU is (warm)reset again.

This patch adds CPU PM notifiers to save the counter control register
when entering low power modes and restore it when CPU exits low power.

Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Will Deacon <will.deacon@arm.com>
Acked-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Sudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com>
Change-Id: I0bad683961e4b72835ad40edf2c9ac9e0f78fad0
Reviewed-on: http://git-master/r/350844
Reviewed-by: Bo Yan <byan@nvidia.com>
Tested-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/427526
Tested-by: Andrey Trachenko <atrachenko@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
9 years agoARM: arch_timer: Enable PL0 access to the CNTVCT
Neil Gabriel [Wed, 11 Jun 2014 18:46:13 +0000 (13:46 -0500)]
ARM: arch_timer: Enable PL0 access to the CNTVCT

Enable usermode access to the generic virtual counter.

Change-Id: I935b73b74fd1eefb7ec7b6de07700d215ff20b87
Signed-off-by: Neil Gabriel <ngabriel@nvidia.com>
Reviewed-on: http://git-master/r/422310
Reviewed-by: Sobby Thakalath <sthakalath@nvidia.com>
Tested-by: Andrey Trachenko <atrachenko@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
9 years agoarm: tegra: remove memory for ramoops in correct order
Krishna Reddy [Sat, 28 Jun 2014 03:13:05 +0000 (20:13 -0700)]
arm: tegra: remove memory for ramoops in correct order

memory for ramoops need to be removed before cma dev's setup.
more over, the memory need to be removed from mem block instead
of reserve.
Bug 200016405

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

9 years agodma: coherent: fix resizable carveout issues
Krishna Reddy [Fri, 27 Jun 2014 05:05:47 +0000 (22:05 -0700)]
dma: coherent: fix resizable carveout issues

Fix races with dev_start and dev_end.
Flush cache during heap grow.
Fix incorrect return code for heap allocations.

Bug 200016405

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

9 years agobase: dma-contiguous: add API to specify the start of allocation
Krishna Reddy [Fri, 27 Jun 2014 00:29:30 +0000 (17:29 -0700)]
base: dma-contiguous: add API to specify the start of allocation

Add API dma_alloc_at_from_contiguous to support allocations at
specific phys address.

Bug 200016405

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

9 years agoinput: touch: Raydium: v73.10 code drop
Alex Chen [Fri, 27 Jun 2014 09:03:36 +0000 (17:03 +0800)]
input: touch: Raydium: v73.10 code drop

Bug 200004233

1. Raising service priority to avoid "service busy" issue while
   system fully loading
2. Test_mode function@driver (Change idle escape threshold at runtime)
     Usage:
        a. Disable: echo 0 > /sys/devices/virtual/misc/touch/test_mode
        b. Enable: echo 1 > /sys/devices/virtual/misc/touch/test_mode
        c. Set: echo 2 2 100 > /sys/devices/virtual/misc/touch/test_mode
           (take touch threshold 100 as example)
        d. Check: cat /sys/devices/virtual/misc/touch/test_mode
3. Coding style refine
4. Add mutex_lock/mutex_unlock protection in KRL_CMD_FLUSH_QU command table

Change-Id: Iebfd42c359b510e7102d54c9b8537382c8788242
Signed-off-by: Alex Chen <alchen@nvidia.com>
Reviewed-on: http://git-master/r/432095
Reviewed-by: Jordan Nien <jnien@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
9 years agovideo: tegra: dc: skip duplicate CMU update
Jon Mayo [Fri, 16 May 2014 00:45:08 +0000 (17:45 -0700)]
video: tegra: dc: skip duplicate CMU update

Skip updating CMU on first boot, and restore CMU after disable or
suspend. Use dc->pdata->cmu_enable to select initial state of cmu, and
move the current cmu status out of dc->pdata and into dc->cmu_enabled.
Remove unused flag TEGRA_DC_FLAG_CMU_ENABLE.

Bug 1507065

Reviewed-on: http://git-master/r/410636
(cherry picked from commit 0c0bfb40e67fb31a01bd69695e0f153dbb2ac8de)

Change-Id: I645923339653698d1be137b3b90ad38735c3159e
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/431945
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
9 years agoarm64: boot: dts: changes in tegra132-tn8-dfll.dtsi
Hridya [Fri, 27 Jun 2014 01:34:30 +0000 (18:34 -0700)]
arm64: boot: dts: changes in tegra132-tn8-dfll.dtsi

Bug 1528672

Add monitor-data-new-workaround property

Change-Id: I930aa2df92a696834b68c76efd270e7b327024c9
Signed-off-by: Hridya <hvalsaraju@nvidia.com>
Reviewed-on: http://git-master/r/429409
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
9 years agothermal: check return value of update_temperature
Jinyoung Park [Thu, 26 Jun 2014 00:48:58 +0000 (09:48 +0900)]
thermal: check return value of update_temperature

Checking return value of update_temperature.
If return value is not Zero, it does't handle thermal trips.

Bug 200011588
Bug 200015248

Change-Id: I084e7c53ee132b33fa377d96f6c9e70f26529ffe
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/428636
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
GVS: Gerrit_Virtual_Submit

9 years agogpu: nvgpu: Clear channel class on open
Terje Bergstrom [Thu, 26 Jun 2014 10:26:19 +0000 (13:26 +0300)]
gpu: nvgpu: Clear channel class on open

Channel class needs to be cleared when a channel is opened. Otherwise
previously used channel remains, and we can accidentally use KEPLER_C
methods even if KEPLER_C is not allocated.

Bug 1487928
Bug 200000669

Change-Id: I3e1ae8d5edbdd82fa569b38a89a89dedb69ee773
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/428868
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
9 years agogpu: nvgpu: fix possible PMU isr race
Deepak Nibade [Wed, 25 Jun 2014 13:27:23 +0000 (18:57 +0530)]
gpu: nvgpu: fix possible PMU isr race

Possible race description :
- while PMU is booting, it sends messages to kernel which we process
  in gk20a_pmu_isr()
- but when messages are processed it is possible that we are on the way
  to rail gate the GPU and we have already called pmu_destroy()
- this could lead to hangs if while processing messages, GR is
  already off

To fix this, introduce another mutex isr_enable_lock and a flag to
turn on/off ISRs
- when we enable PMU, get the lock and set the flag
- in pmu_destroy(), get the lock and remove the flag
- in pmu_isr(), take the lock, check if flag is set or not. If flag
  is not set return, otherwise proceed with the messages

Bug 200014542
Bug 200014887

Change-Id: I0204d8a00e4563859eebc807d4ac7d26161316ea
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/428371
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
9 years agostaging: iio: light: cm3217: check event's validity
Sri Krishna chowdary [Thu, 19 Jun 2014 06:49:10 +0000 (12:19 +0530)]
staging: iio: light: cm3217: check event's validity

In case integration time for the sensor is not properly set,
User space may query the updated value of a sensor before an event
is generated from the sensor. Kernel driver should not send a stale or
invalid event in such cases, else it may impact performance and in some
cases, the user space application may behave in some undesirable way.

This change checks for such invalid events and makes sure such values
are not sent to user space.

Bug 1521699

Change-Id: I46f8d8defb2e63038f5c4947cbbe8e2b26c06f55
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/425196
(cherry picked from commit 4611cda18bb67a3625c0dc802d666d801edb2ca4)
Reviewed-on: http://git-master/r/427686
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
9 years agoinput: misc: change module init priority.
Jajambo Liao [Mon, 23 Jun 2014 10:29:44 +0000 (18:29 +0800)]
input: misc: change module init priority.

change compass & pressure module init priority as
  late_initcall.
  That can make sure compass & pressure will be loaded
  after mpu driver.

- modify CONFIG_INV_MPU, CONFIG_INV_AKM8975, CONFIG_INV_BMP180
  to be "=y", build those module as static library
- remove "insmod inv-mpu.ko", "insmod inv-ak8975.ko"
  "insmod inv-bmp180.ko" command from init script
- set init priority of akm89xx/bmp180 as late_initcall
  That will make sure system always loaded akm89xx/bmp180 after
  inv-mpu module when those modules was builded as static library.

Bug 1468040

Change-Id: I98785f826d1ea48227b24d03e40a01f6ecc2f243
Signed-off-by: Jajambo Liao <jajambol@nvidia.com>
Reviewed-on: http://git-master/r/427137
Reviewed-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-by: Jordan Nien <jnien@nvidia.com>
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Tested-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
9 years agoarm: tegra: config: build invensens as .so
Jajambo Liao [Wed, 18 Jun 2014 05:44:02 +0000 (13:44 +0800)]
arm: tegra: config: build invensens as .so

change invensens build method from dynamic library to
  static library

- modify CONFIG_INV_MPU, CONFIG_INV_AKM8975, CONFIG_INV_BMP180
  to be "=y", build those module as static library
- remove "insmod inv-mpu.ko", "insmod inv-ak8975.ko"
  "insmod inv-bmp180.ko" command from init script
- set init priority of akm89xx/bmp180 as late_initcall
  That will make sure system always loaded akm89xx/bmp180 after
  inv-mpu module when those modules was builded as static library.

Bug 1468040

Change-Id: I0cf43f73b8654cadead45ed60c5f141e9197e111
Signed-off-by: Jajambo Liao <jajambol@nvidia.com>
Reviewed-on: http://git-master/r/424534
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>
9 years agoTegra12x: defconfig: Add HDMI audio device
Rahool [Fri, 28 Feb 2014 06:49:51 +0000 (12:19 +0530)]
Tegra12x: defconfig: Add HDMI audio device

Add HDMI audio device

Bug: 1470703

Signed-off-by: Rahool Paliwal <rpaliwal@nvidia.com>
Change-Id: Ic289366f9a25853fb6faa2537790242c97e1c33b
Reviewed-on: http://git-master/r/375851
(cherry picked from commit da8bb75f8f882a657da15e04c6e3f440756fa312)
Reviewed-on: http://git-master/r/418178
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>
9 years agofs/proc/task_mmu.c: hold read lock on mm->mmap_sem for get_user_pages
Vandana Salve [Wed, 25 Jun 2014 15:01:37 +0000 (20:31 +0530)]
fs/proc/task_mmu.c: hold read lock on mm->mmap_sem for get_user_pages

Hold read lock on mm->mmap_sem for calling get_user_pages

bug 1525355

Change-Id: I4a1b607c9f745ea938d7f051e76d67425eccd09d
Signed-off-by: Vandana Salve <vsalve@nvidia.com>
Reviewed-on: http://git-master/r/428367
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
9 years agogpu: nvgpu: do not abort probe if secure page alloc fails
Deepak Nibade [Tue, 24 Jun 2014 12:41:25 +0000 (18:11 +0530)]
gpu: nvgpu: do not abort probe if secure page alloc fails

Do not abort GPU probe if secure page alloc fails.
We can just note that this allocation failed (using bool
secure_alloc_ready) and prevent further secure memory
allocation if this flag is not set.

Bug 1525465

Change-Id: Ie4eb6393951690174013d2de3db507876d7b657f
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/427730
(cherry picked from commit e7e47bb45d5ff5dcb48d8a961e9908b71db9e02f)
Reviewed-on: http://git-master/r/428306
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
9 years agoinput: touch: radyium: avoid deadlock
Xiaohui Tao [Tue, 15 Oct 2013 00:16:09 +0000 (17:16 -0700)]
input: touch: radyium: avoid deadlock

Fix potential deadlock in driver

Raydium drop does not fix the problem. We need to have this
temporary fix to solve the problem.

Bug 1384590
Bug 1526923
Bug 1526923

Change-Id: Ifcb56ba5db34b42af0b4d441659d7a5fdd869943
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/289969
Reviewed-on: http://git-master/r/427256
(cherry picked from commit dbeeaf0f5de2f7c9015837669851ae217bf559ac)
Reviewed-on: http://git-master/r/428004
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jordan Nien <jnien@nvidia.com>
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
9 years agoarm: tegra: update vco_min value for pll_x
Ishwarya Balaji Gururajan [Tue, 24 Jun 2014 19:21:32 +0000 (12:21 -0700)]
arm: tegra: update vco_min value for pll_x

udpate vco_min value for pll_x from 700MHz to
1.2GHz

bug 1526834

Change-Id: I5deb14b55e395a3ec964d59ce5dde4d8fabea79b
Signed-off-by: Ishwarya Balaji Gururajan <igururajan@nvidia.com>
Reviewed-on: http://git-master/r/427853
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Krishna Sitaraman <ksitaraman@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
9 years agoARM: T132: update SoC therm caps, vmax trips table
Ishwarya Balaji Gururajan [Tue, 24 Jun 2014 18:42:54 +0000 (11:42 -0700)]
ARM: T132: update SoC therm caps, vmax trips table

update SoC therm caps table and vmax trips table

bug 1442659

Change-Id: I26cc83fd9f6fe2a2f806eed254e2d70ce00ff254
Signed-off-by: Ishwarya Balaji Gururajan <igururajan@nvidia.com>
Reviewed-on: http://git-master/r/427836
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>
9 years agomm: Add NULL check before de-referencing vma
Bharat Nihalani [Tue, 24 Jun 2014 10:15:10 +0000 (15:45 +0530)]
mm: Add NULL check before de-referencing vma

This prevents the following crash seen during boot-up:
Unable to handle kernel NULL pointer dereference at virtual address 00000041
pgd = ffffffc037f68000
[00000041] *pgd=0000000000000000
Internal error: Oops: 96000005 [#1] PREEMPT SMP
Modules linked in: inv_bmp180 inv_ak8975 inv_mpu
CPU: 0 PID: 1457 Comm: IntentService[F Not tainted 3.10.40-g4abcb3f #1
task: ffffffc0393e0080 ti: ffffffc0393e8000 task.ti: ffffffc0393e8000
PC is at follow_page_mask+0x1c/0x378
LR is at __get_user_pages.part.88+0x124/0x700
pc : [<ffffffc00016c314>] lr : [<ffffffc00016e1d4>] pstate: 40000045

Bug 1525355

Change-Id: Ieed6942d7beb32964484f97d5cc671b42c4b60cb
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/427723
Tested-by: Vandana Salve <vsalve@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
9 years agoARM: tegra: dtb: remove laguna string for jetson
Prabhu Kuttiyam [Tue, 6 May 2014 19:56:16 +0000 (12:56 -0700)]
ARM: tegra: dtb: remove laguna string for jetson

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

bug 1509239

Change-Id: Ifef547aa19f479c3adc03cc7c3557aa9372e1cb2
Signed-off-by: Prabhu Kuttiyam <pkuttiyam@nvidia.com>
Reviewed-on: http://git-master/r/406015
(cherry picked from commit ff3d39e0cef851b60d11106db68bdccd2f37c646)
Reviewed-on: http://git-master/r/426781
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Jong Kim <jongk@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
9 years agoARM: tegra: Enable Simon graders for Tegra13x
Sai Gurrappadi [Wed, 18 Jun 2014 22:20:34 +0000 (15:20 -0700)]
ARM: tegra: Enable Simon graders for Tegra13x

Enables Simon graders if CONFIG_TEGRA_USE_SIMON is enabled.

Bug 1511506

Change-Id: Ie93bf0d5c7fbe9d6a60a3d2f2680b40a33c0f376
Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/425052
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
9 years agoARM: tegra: Tegra13 Simon graders for GPU and CPU
Sai Gurrappadi [Wed, 18 Jun 2014 22:13:59 +0000 (15:13 -0700)]
ARM: tegra: Tegra13 Simon graders for GPU and CPU

Simon graders that grade the CPU and GPU based on the simon state for
the specific simon domain.

Bug 1511506

Change-Id: I054ab8895e9d1773460c7ae9ba5f73191dd45e56
Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/425051
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
9 years agoARM: tegra: Interface to read ROSC BIN ISM freq
Sai Gurrappadi [Tue, 14 Jan 2014 21:48:59 +0000 (13:48 -0800)]
ARM: tegra: Interface to read ROSC BIN ISM freq

Allows for reading of the Ring oscillator frequency on the JTAG chain of
ROSCs. Performs the read via the APB2JTAG interface.

Bug 1511506

Change-Id: I6797f26c760e178f3d8dc4067b7d50bfce5086f0
Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/425050
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
9 years agoARM: tegra: Add apb2jtag read/write interface
Sai Gurrappadi [Tue, 14 Jan 2014 21:47:23 +0000 (13:47 -0800)]
ARM: tegra: Add apb2jtag read/write interface

API to read and write from/to APB2JTAG chains.

Bug 1511506

Change-Id: Ib2b881cef9fd9a50e7fcc72c749045750f961008
Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/425049
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
9 years agoARM: tegra13: dvfs: Add GPU SiMon offsets
Alex Frid [Wed, 18 Jun 2014 22:02:24 +0000 (15:02 -0700)]
ARM: tegra13: dvfs: Add GPU SiMon offsets

Added GPU Vmin -20mV offset for high SiMon grade on Tegra13 platforms.
Constructed the respective GPU DVFS table with offsets applied, and
SiMon notifier to switch between tables w/wo offset. Since no SiMon
grading is available only original DVFS table with no offset is used
for now.

Bug 1511506

Change-Id: I959ed2142e478b9693a5bc425ef2165b43210bab
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/425035
Reviewed-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Tested-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
9 years agoARM: tegra13: dvfs: Specify DFLL tuning SiMon mask
Alex Frid [Wed, 18 Jun 2014 03:53:40 +0000 (20:53 -0700)]
ARM: tegra13: dvfs: Specify DFLL tuning SiMon mask

Specified DFLL tuning mask to toggle settings based on SiMon grade.
Changed defaults used before SiMon grade is determined after boot to
slower settings.

Bug 1511506

Change-Id: Ibcf25c418fe0fa10af0778599a701f11a9f90719
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/424908
Reviewed-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Tested-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
9 years agoARM: tegra13: dvfs: Add CPU SiMon offsets
Alex Frid [Tue, 17 Jun 2014 23:44:08 +0000 (16:44 -0700)]
ARM: tegra13: dvfs: Add CPU SiMon offsets

Added CPU Vmin -20mV offset for high SiMon grade on Tegra13 platforms.
Since no SiMon grading is available this offset is not actually applied.

Bug 1511506

Change-Id: Ia7fa83db6a6ee003c0e1211c8a7fb9ac89630487
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/424907
Reviewed-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Tested-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
9 years agoARM: tegra: dvfs: Add SiMon grading to DFLL tuning
Alex Frid [Wed, 18 Jun 2014 02:57:15 +0000 (19:57 -0700)]
ARM: tegra: dvfs: Add SiMon grading to DFLL tuning

Added dependency of DFLL tuning settings on SiMon grading as follows:

- Selected set of tuning bits specified by platform specific SiMon
mask is toggled when SiMon grade is changing from zero to non-zero
(high) grade, or vice versa.
- The same toggle mask is applied to settings in low and high voltage
tuning ranges.
- SiMon mask can be applied only while DFLL is tuned for low voltage
range

Bug 1511506

Change-Id: I10cb69ea30c7773042c640d41e0dc0c99038ab7d
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/424906
Reviewed-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Tested-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
9 years agoARM: tegra: Lower VDD_CPU minimum limit
Alex Frid [Wed, 18 Jun 2014 00:50:01 +0000 (17:50 -0700)]
ARM: tegra: Lower VDD_CPU minimum limit

Lowered VDD_CPU minimum limit for PMICs used on Tegra13 platforms to
650mV (from 700mV).

Bug 1511506

Change-Id: Ib8c51f75a5a1582aa8c0117ee05ed044de5894a9
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/424905
Reviewed-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Tested-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
9 years agovideo: tegra: dsi: fix regulator warning condition
Kerwin Wan [Mon, 23 Jun 2014 06:38:48 +0000 (14:38 +0800)]
video: tegra: dsi: fix regulator warning condition

The regulator warning message should come up only when
the regulator fails to be enabled.

Change-Id: Ia03af22281bf4d7a68a19b623d18754dc2512e6d
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/427043
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
9 years agonet: wireless: bcmdhd: correct sdio_ids
Nagarjuna Kristam [Tue, 24 Jun 2014 15:07:30 +0000 (20:37 +0530)]
net: wireless: bcmdhd: correct sdio_ids

Usage of SDIO_DEVICE(SDIO_VENDOR_ID_BROADCOM, SDIO_ANY_ID) is
causing device hang when BRCM chipsets BCM433341 are used.
This is because SDIO_DEVICE MACRO uses, SDIO_ANY_ID for class.

Use SDIO_CLASS_NONE instead resolves device hang issue.

Bug 1527370

Change-Id: I9af6e7598893663afa7629e822a5934f12c128fa
Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com>
Reviewed-on: http://git-master/r/427780
(cherry picked from commit eab2794d3420cc31218709410afd0feab48ced6b)
Reviewed-on: http://git-master/r/427779
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
9 years agovideo: tegra: host: map command buffer if tracing is enabled
Deepak Nibade [Mon, 23 Jun 2014 06:18:06 +0000 (11:48 +0530)]
video: tegra: host: map command buffer if tracing is enabled

Map the command buffer only if tracing is enabled.
Buffer mapping is required only for command tracing
otherwise there is no need to map.

Change-Id: If433e1dec78322f415b2f5370d1a6e7b2346c4e9
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/427020
(cherry picked from commit e42b2925ca54e8a27a833d1008318a095a18f1e6)
Reviewed-on: http://git-master/r/427655
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
9 years agoARM: tegra12: config: enable NFS server support
Preetham Chandru R [Mon, 23 Jun 2014 11:35:06 +0000 (17:05 +0530)]
ARM: tegra12: config: enable NFS server support

enable NFS server support in kernel

Bug 1517625

Change-Id: I1817432d75622b31e564bd1addccde75e73e5b60
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/427164
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
9 years agovideo: tegra: dc: accept CSC on window update
Jon Mayo [Fri, 13 Jun 2014 00:02:10 +0000 (17:02 -0700)]
video: tegra: dc: accept CSC on window update

This patch permits changing of the current CSC coefficients. It cannot be used
with interlaced mode.

Adds fields to skip window CSC programming if nothing has changed.

Bug 1522546

Change-Id: If8fc6a5d634e4b300ef0de6a5913188fe1f1efb0
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/422885
(cherry picked from commit 4aa22cd32362f0d91ef030bc0942c303714141cf)
Reviewed-on: http://git-master/r/425986
GVS: Gerrit_Virtual_Submit
Reviewed-by: Michael Frydrych <mfrydrych@nvidia.com>
Tested-by: Michael Frydrych <mfrydrych@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
9 years agosysedp: bowmore: add sysedp_batmon to E1971
Timo Alho [Mon, 23 Jun 2014 10:08:22 +0000 (13:08 +0300)]
sysedp: bowmore: add sysedp_batmon to E1971

Change-Id: Ic7fa04925e34eda1cf1de28f599f85de53d14bfa
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/427122
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sivaram Nair <sivaramn@nvidia.com>
9 years agoARM64: tegra: Move LP0 error message
Sai Gurrappadi [Mon, 23 Jun 2014 18:43:15 +0000 (11:43 -0700)]
ARM64: tegra: Move LP0 error message

Moved the LP0 error message that complains about CPU1 not being up on
LP0 entry (cpu_up failed) to a more appropriate location.

Bug 1522953

Change-Id: I9cfa7800779a621ca4563c6aefa7a7b2054ebe4b
Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/427264
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Peng Du <pdu@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
9 years agoactive-standby: check inode's i_private
Chun Xu [Fri, 16 May 2014 11:18:28 +0000 (19:18 +0800)]
active-standby: check inode's i_private

Check whether inode's i_private fild has been changed
before saving current task_strucct pointer to this field.

Bug 200000044

Change-Id: I4a09caf016193801c5841b82e024f8ef41a3763f
Reviewed-on: http://git-master/r/411287
(cherry picked from commit 3fef90e08330c9ed11f84adf8f98492d3b917ddb)
Reviewed-on: http://git-master/r/414844
(cherry picked from commit 3ea271e7ca33bf281a3fba3580865f2c1d85ae0c)
Signed-off-by: Chun Xu <chunx@nvidia.com>
Reviewed-on: http://git-master/r/427088
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
GVS: Gerrit_Virtual_Submit

9 years agoARM: tegra dvfs: Keep DVFS rate for disabled GPU clock
Alex Frid [Sat, 21 Jun 2014 07:52:37 +0000 (00:52 -0700)]
ARM: tegra dvfs: Keep DVFS rate for disabled GPU clock

Preserved DVFS rate for single clock GPU rail when clock is disabled
(instead of setting zero rate). In this case GPU rail is turned off
explicitly, anyway. However with non-zero DVFS rate voltage level at
regulator is appropriately updated when temperature is changes while
rail is off.

Bug 1526819

Change-Id: I022d908a47be81efbe37d8a777e93b1fec74e7e7
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/426917
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
9 years agoarm: tegra: pinmux : enable e_input of sdmmc clk
Seema Khowala [Fri, 20 Jun 2014 18:36:30 +0000 (11:36 -0700)]
arm: tegra: pinmux : enable e_input of sdmmc clk

For all SDMMC controllers, E_INPUT of CLK pad should be
enabled since loopback CLK (Zi of CLK pad) is used to
latch RESP/DATA coming from external device.
If not enabled, you will see RESP/DATA time outs.

Bug 1521217

Change-Id: I66e9bb98d1d1740fc519001f93d45a7baaba46fa
Signed-off-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-on: http://git-master/r/426671
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
9 years agocpu: enhance power efficiency
Sumit Singh [Mon, 21 Apr 2014 09:59:54 +0000 (15:29 +0530)]
cpu: enhance power efficiency

Here we are trying to reduce power usage through the
use of macros cpu_relaxed_read and relaxed version of
idle_cpu().

Bug 1440421

Change-Id: I0a8c5d358c154782b41570059d03d7e0de87e82c
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
Reviewed-on: http://git-master/r/426485
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com>
9 years agosched: defining relaxed version of idle_cpu
Sumit Singh [Mon, 21 Apr 2014 09:55:25 +0000 (15:25 +0530)]
sched: defining relaxed version of idle_cpu

Defining relaxed version of idle_cpu, which uses
macro cpu_relaxed_read_long, that will be used to
enhance power efficiency.

bug 1440421

Change-Id: I6ba2185632ad0fba766a2548b0ddac743defb1b9
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
Reviewed-on: http://git-master/r/426484
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com>
9 years agollist: defining relaxed version of llist_empty
Sumit Singh [Mon, 21 Apr 2014 09:52:15 +0000 (15:22 +0530)]
llist: defining relaxed version of llist_empty

Defining relaxed version of llist_empty as llist_empty_relaxed,
which will be used for power-optimization.

bug 1440421

Change-Id: I1c4c34b381e49775ed08ddd606d9744a7e7e1fba
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
Reviewed-on: http://git-master/r/426483
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com>
9 years agosmp: enhance power efficiency
Sumit Singh [Mon, 21 Apr 2014 05:39:58 +0000 (11:09 +0530)]
smp: enhance power efficiency

Here we are trying to reduce power usage through the
use of macros cpu_relaxed_read_short and cpu_relaxed_read.

Bug 1440421

Change-Id: I114d122cf58b1cf7b93b4b5f5d712360a2f1e096
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
Reviewed-on: http://git-master/r/425947
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com>
9 years agoARM: Tegra: thermal: add Tksin parameters for t132
Hyungwoo Yang [Tue, 17 Jun 2014 18:22:56 +0000 (11:22 -0700)]
ARM: Tegra: thermal: add Tksin parameters for t132

Adds Tskin parameters for T132

Bug 1524981

Change-Id: I8b9b96f1b47478b9d70a4167dcee0ca72e192a71
Signed-off-by: Hyungwoo Yang <hyungwooy@nvidia.com>
Reviewed-on: http://git-master/r/424325
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
9 years agoseqlock: enhance power efficiency
Sumit Singh [Mon, 21 Apr 2014 12:42:14 +0000 (18:12 +0530)]
seqlock: enhance power efficiency

Trying to improve the power efficiency in linux/seqlock.h,
using macros cpu_relaxed_read and cpu_read_relax.

Bug 1440421

Change-Id: I8dcc9dc9c72e5a6848c7823768c76f5d38e9f0d1
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
Reviewed-on: http://git-master/r/398943
(cherry picked from commit ed77ee4d50641b1a5668545c946cda681c06fcd2)
Reviewed-on: http://git-master/r/422258
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com>
9 years agonvdumper: Null pointer check before reference it.
Yifei Wan [Tue, 27 May 2014 22:35:38 +0000 (17:35 -0500)]
nvdumper: Null pointer check before reference it.

- Fixed NULL pointer check before reference it.
- Also fixed some type cast warning message.

Bug 1517779

Change-Id: I8584017be83884f45e3f01a6fec60244440469c4
Signed-off-by: Yifei Wan <ywan@nvidia.com>
Reviewed-on: http://git-master/r/415443
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mark Peters <mpeters@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
9 years agoarm64: tegra: Fix cpu_to_csr_reg macro
Antti P Miettinen [Mon, 16 Dec 2013 06:56:28 +0000 (08:56 +0200)]
arm64: tegra: Fix cpu_to_csr_reg macro

Add the missing jump.

Change-Id: I85f7d9a89362529b6909fe56376e9ac9d8b4dfd2
Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com>
Reviewed-on: http://git-master/r/345674
Signed-off-by: Peng Du <pdu@nvidia.com>
Reviewed-on: http://git-master/r/426713
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Tested-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
9 years agoARM: tegra: pm375: add jetson-tk1 references
Prabhu Kuttiyam [Tue, 6 May 2014 20:03:14 +0000 (13:03 -0700)]
ARM: tegra: pm375: add jetson-tk1 references

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

bug 1509239

Change-Id: I859452a0c8705b6fda8e1739906eb78f2b0527b2
Signed-off-by: Prabhu Kuttiyam <pkuttiyam@nvidia.com>
Reviewed-on: http://git-master/r/406016
(cherry picked from commit f2e5dba37b8a5750b3a516e6c7bcfb0b603bca53)
Reviewed-on: http://git-master/r/418545
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
9 years agosync: add API to get syncpt name
Shridhar Rasal [Wed, 4 Jun 2014 12:12:18 +0000 (17:42 +0530)]
sync: add API to get syncpt name

Currently, we print only syncpoint id and on sync timeout.
Also print syncpoint name in dump.

Bug 200007874

Change-Id: Ia28a5b12b037a0b718bd4e5727f20c19d8badd87
Reviewed-on: http://git-master/r/418926
(cherry picked from commit e79d93d205ca2daba2974745113088222fa90297)
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/426604
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
9 years agovideo: tegra: host: add callback for android sync ops get_pt_name
Shridhar Rasal [Wed, 4 Jun 2014 12:07:30 +0000 (17:37 +0530)]
video: tegra: host: add callback for android sync ops get_pt_name

Add callback in nvhost sync for android sync ops get_pt_name

Bug 200007874

Change-Id: I39e04583bc30312d73f12dccac7706e9216e3c24
Reviewed-on: http://git-master/r/418925
(cherry picked from commit 051aa941b5fb6d95c3d07eb93495e6f1b6961faa)
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/426597
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>