]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/log
sojka/nv-tegra/linux-3.10.git
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>
9 years agoRevert "extcon: palmas: make aca detection platform dependent"
Laxman Dewangan [Wed, 18 Jun 2014 14:36:31 +0000 (20:06 +0530)]
Revert "extcon: palmas: make aca detection platform dependent"

This reverts commit aa55d35202b5895068bdf8eace842102bf134dab.
Revert the change becasue it breaks the VUS and ID detection. With this change
on some platforms, the VBUS and ID both are detected even only connnect the
VBUS cable. This causes misbehaving of the drivers.

bug 200013069

Change-Id: I8b10c9a7c1b0520c83118245a5e85c61e9777c81
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/424815
(cherry picked from commit 992d7b8c03b4787c4fa37a90804008eff4ce48b4)
Reviewed-on: http://git-master/r/427032
GVS: Gerrit_Virtual_Submit

9 years agopower: extcon: fix charging icon during bootup
Rakesh Bodla [Thu, 19 Jun 2014 11:27:44 +0000 (16:57 +0530)]
power: extcon: fix charging icon during bootup

If device is booted with charger cable, in probe
y-cable extcon dev reports no cable is connected
and cable connection status is getting corrupted.
Fixing this by adding suitable condition.

Bug 1522950

Change-Id: I5cee5953665338c500bf484ebc38cc5ce42c9ae0
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/425967
(cherry picked from commit 1e3be7bc384c4bd834729b216f137c7962e6dc36)
Reviewed-on: http://git-master/r/426949
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
9 years agovideo: tegra: host: return syncpt name given ID
Shridhar Rasal [Wed, 4 Jun 2014 11:46:30 +0000 (17:16 +0530)]
video: tegra: host: return syncpt name given ID

Add API to return syncpt name for a given sync point ID.

Bug 200007874

Change-Id: I85983881f2f2f266cae1f5d682d7072edc9a8c1f
Reviewed-on: http://git-master/r/418918
(cherry picked from commit 7473a184b4e7329be80e0bd915f0710391d27a26)
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/426605
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
9 years agoUSB: gadget: f_audio_source: change packet size to 256
Ravindra Lokhande [Tue, 31 Dec 2013 12:45:49 +0000 (18:15 +0530)]
USB: gadget: f_audio_source: change packet size to 256

Bug 1327528

Change-Id: Idc243389486ab9121826787ae85475458fa18506
Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-on: http://git-master/r/351034
(cherry picked from commit 038389830a31bb00dc4851922e08caa617af8a80)
Reviewed-on: http://git-master/r/426590
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
9 years agoregulator: as3722: adjust enable_time for regulators
Bibek Basu [Wed, 11 Jun 2014 10:50:00 +0000 (16:20 +0530)]
regulator: as3722: adjust enable_time for regulators

According to measurement done, LDOs take a maximum of
100us to reach it max desired value.Thus this patch adjusts
the default enable time for as3722 regulators

Bug 1481647

Change-Id: Ia610e0a11f1001fdf76b2860b6e2b3d6ed0a1b1a
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/422152
(cherry picked from commit 21e2115f4021ec02a37e6ce03e14232306c633a9)
Reviewed-on: http://git-master/r/423674
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
9 years agotn8: modem: reduce timeout wakelock to 1s
Robert Shih [Thu, 5 Jun 2014 05:25:09 +0000 (13:25 +0800)]
tn8: modem: reduce timeout wakelock to 1s

1. The kernel resume (from LP0 to the time
when app tasks start unfreezing) is shorter than 200ms.
When app tasks start running, the RIL/framework/app
will hold their wake lock to block suspending.
Furthermore, tegra_usb_modem_post_remote_wakeup()
in tegra_usb_modem_power.c will hold another timeout
(1 second) wake lock, which should start later than
the wake lock "tegra-ehci.1".
So, 1s timeout for wake lock "tegra-ehci.1" in kernel
should be enough.

2. Per our experience, many system resume/suspend
(with screen off) caused by remote wake-up is
able to finish in 1.5 seconds, or even shorter.
So, 3 seconds timeout could cause more unnecessary
power consumption.

bug 1519797

Change-Id: If7b20ea490007e1df0639b4ece8f32fdb3fa757e
Signed-off-by: Robert Shih <rshih@nvidia.com>
Reviewed-on: http://git-master/r/419279
(cherry picked from commit 3ee5cc88a7db04b2087937e8ddb27f69ab934544)
Reviewed-on: http://git-master/r/423626
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Martin Chi <mchi@nvidia.com>
Tested-by: Martin Chi <mchi@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
9 years agosync: add current value to sync dump
Shridhar Rasal [Tue, 3 Jun 2014 06:55:38 +0000 (12:25 +0530)]
sync: add current value to sync dump

Currently, we print only syncpoint id and thresh value on sync
timeout.

Also include current value in dump.

Bug 200007874

Change-Id: I6910e51aa10a5dc9f5d224b3251c3fb1ea6794d9
Reviewed-on: http://git-master/r/418136
(cherry picked from commit 41d63f2a1c48faeee4d9444818ada132968b7bc8)
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/418739
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
9 years agopinctrl: tegra: fix tegra_pinctrl_disable
Kerwin Wan [Fri, 20 Jun 2014 05:46:41 +0000 (13:46 +0800)]
pinctrl: tegra: fix tegra_pinctrl_disable

The value written to mux_reg should be from 0 to 3
to select the proper function.

Change-Id: Ie056189332c839588eeca1d210f264482a73995a
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/426477
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

9 years agothermal: check tz device is registered
Jinyoung Park [Tue, 17 Jun 2014 08:03:51 +0000 (17:03 +0900)]
thermal: check tz device is registered

Checking thermal zone device whether it is registered or not.

Bug 200011588

Change-Id: I377583f887d3dbe8258daa46d777daa6337b192f
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/424088
Reviewed-by: Seema Khowala <seemaj@nvidia.com>
Tested-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
GVS: Gerrit_Virtual_Submit

9 years agousb: free up composite gadget string ids on unbind
Rakesh Bodla [Thu, 5 Jun 2014 06:31:12 +0000 (12:01 +0530)]
usb: free up composite gadget string ids on unbind

There are only 254 USB composite gadget string_ids available.
When switching gadget mode such as mtp and acm repeatedly,
they will be exhausted.

This bug has been brought up since android composite driver
introduced a way to switch gadget modes while the composite
driver is still holding its bind.

Fix this by reset next_string_id and clean up gstrings when
android gadgets are disabled. Also by removing the condition
comparing gadgets' string id to 0 because gadget string id
has to be re-assigned whenever the string count is reset.

The codes removed the condition check will work as the same
as before they have changed if the gadgets are used by other
composite drivers other than android since all of them call
bind only once and never unbind it hence no side effects considered.

Ported from https://android-review.googlesource.com/#/c/95366/

Bug 200001941

Change-Id: I1e2fbe0f59fe05b89052db62e0b61b074d8f032b
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/425165
(cherry picked from commit fc71534a90787bd763b7bd0f7c698b76b66ad251)
Reviewed-on: http://git-master/r/419340
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
9 years agovideo: tegra: dc: initialize cursor registers
Jon Mayo [Fri, 9 May 2014 18:07:17 +0000 (11:07 -0700)]
video: tegra: dc: initialize cursor registers

Cursor registers have no default state. Initialize to useful defaults.

Bug 1486452
Bug 200006001

Change-Id: Iaf07bdd2c8d40ef1bae881da68a809d335a0377f
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/407682
(cherry picked from commit 4ded39f37b849849ebca44ab46e2762d71872102)
Reviewed-on: http://git-master/r/425997
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
9 years agofutex : Forbid uaddr == uaddr2 in futex_requeue(..., requeue_pi=1)
Thomas Gleixner [Tue, 3 Jun 2014 12:27:06 +0000 (12:27 +0000)]
futex : Forbid uaddr == uaddr2 in futex_requeue(..., requeue_pi=1)
Bug 200012742

futex-prevent-requeue-pi-on-same-futex.patch futex: Forbid uaddr == uaddr2 in futex_requeue(..., requeue_pi=1)

If uaddr == uaddr2, then we have broken the rule of only requeueing from
a non-pi futex to a pi futex with this call.  If we attempt this, then
dangling pointers may be left for rt_waiter resulting in an exploitable
condition.

This change brings futex_requeue() in line with futex_wait_requeue_pi()
which performs the same check as per commit 6f7b0a2a5c0f ("futex: Forbid
uaddr == uaddr2 in futex_wait_requeue_pi()")

[ tglx: Compare the resulting keys as well, as uaddrs might be
   different depending on the mapping ]

Fixes CVE-2014-3153.

Reported-by: Pinkie Pie
Signed-off-by: Will Drewry <wad@chromium.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
Cc: stable@vger.kernel.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Change-Id: I98b5f95d3f5c9e4d35c3aeec22960fdb34731c18
Reviewed-on: http://git-master/r/424612
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
9 years agovideo: tegra: nvmap: track vma for all handles
Krishna Reddy [Wed, 4 Jun 2014 21:50:05 +0000 (14:50 -0700)]
video: tegra: nvmap: track vma for all handles

Clean up the code related to mmap and handle nvmap_map_info_caller_ptr
failures graciously.
Initilize h->vmas at right place.
Add sanity checks in nvmap_vma_open/_close.

Bug 1519700

Change-Id: Iede355b8a500a787992fcb23a72cf334a737ec49
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/419168
(cherry picked from commit c18228c5de319d74f68deff9c5d402ca17b64e95)
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/426092
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
9 years agoarm: tegra: fix strapping register offset
Shardar Shariff Md [Wed, 18 Jun 2014 08:48:36 +0000 (14:18 +0530)]
arm: tegra: fix strapping register offset

Fix strapping register offset and length for
T124/T132.

Bug 1515120

Change-Id: I2ac07667f58b4d99001e4d168adaec0cda9da62a
Signed-off-by: Shardar Shariff Md <smohammed@nvidia.com>
Reviewed-on: http://git-master/r/424631
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
9 years agonet: wireless: bcmdhd: correct sdio_ids
Nagarjuna Kristam [Thu, 19 Jun 2014 10:42:02 +0000 (16:12 +0530)]
net: wireless: bcmdhd: correct sdio_ids

BCMDHD driver uses SDIO_DEVICE_CLASS(SDIO_CLASS_NONE) ID during
sdio register process. This causes brcm driver execution, when other
SDIO peripherals with class 0 are used.
Replace SDIO_DEVICE_CLASS(SDIO_CLASS_NONE) usage by
SDIO_DEVICE(SDIO_VENDOR_ID_BROADCOM, SDIO_ANY_ID), to ensure bcmdhd
driver execution for Broadcom only hardware.

Bug 200013331

Change-Id: Ia31be2940b7e523e30c0740155a567e324da6be1
Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com>
Reviewed-on: http://git-master/r/424260
Reviewed-by: Seema Khowala <seemaj@nvidia.com>
Tested-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
9 years agodma: coherent: error handling on heap resize failure
Deepak Nibade [Tue, 10 Jun 2014 13:21:00 +0000 (18:51 +0530)]
dma: coherent: error handling on heap resize failure

- Update memory resize callbacks to return error codes
- error handling on heap resize update failure

Bug 1487804
Bug 1517584

Change-Id: I5ac044677e883fbecf6d04a8c1e83794325703f3
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Signed-off-by: Vandana Salve <vsalve@nvidia.com>
Reviewed-on: http://git-master/r/423748
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
9 years agoARM: tegra: add return value for VPR resize function
Deepak Nibade [Tue, 10 Jun 2014 13:24:18 +0000 (18:54 +0530)]
ARM: tegra: add return value for VPR resize function

Bug 1487804

Change-Id: I28a44499a1a434f555f4c5206add6aeb6b92e01a
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Signed-off-by: Vandana Salve <vsalve@nvidia.com>
Reviewed-on: http://git-master/r/423747
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
9 years agofs : adding null pointer check in set_worker_desc
Ishan Mittal [Wed, 11 Jun 2014 05:33:00 +0000 (11:03 +0530)]
fs : adding null pointer check in set_worker_desc

The Bug was due to the following control flow

remove disk
 bdi_destroy()
  bdi_unregister()
   bdi->dev = NULL (bdi_writeback_workfn)

Bug 200011038

Change-Id: I3710c5b3f2106c14807bd8a5eea8a030312c8d6c
Signed-off-by: Ishan Mittal <imittal@nvidia.com>
Reviewed-on: http://git-master/r/421995
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
9 years agovideo: tegra: dp: eDP/miniDP support
Sungwook Kim [Tue, 25 Mar 2014 11:26:16 +0000 (04:26 -0700)]
video: tegra: dp: eDP/miniDP support

To add a support for an internal eDP panel or an external DP
monitor

- reduce the HPD waiting time to reasonable
- fix Alternate Scrambler Reset To 0xFFFE setting to support an
  external DP monitor
- fix unplugged eDP/miniDP display at boot time blocking detection
  of the HDMI display
- disable dpaux clock and pad power when no eDP panel or external
  monitor connected at boot time

Note: It works with the eDP panel or the monitor connected only at
      boot time.  No run-time hot plug support yet.
Note2: Reposting due the Gerrit bug.

bug 1409738

Change-Id: I81b8bab8881a6d849d97562deabd16fe794ff812
Signed-off-by: Sungwook Kim <sungwookk@nvidia.com>
Reviewed-on: http://git-master/r/405512
(cherry picked from commit 199b1034b39f2a133623e5645e378c5a9abd1c81)
Reviewed-on: http://git-master/r/420122
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>