]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/log
sojka/nv-tegra/linux-3.10.git
10 years agogpu: nvgpu: Rewrite PMU boot-up sequence
Terje Bergstrom [Wed, 14 May 2014 12:22:49 +0000 (15:22 +0300)]
gpu: nvgpu: Rewrite PMU boot-up sequence

Rewrite PMU boot sequence as a state machine. At PMU power-up send
initial messages, and reset state machine. At each reply from PMU,
do the next stage of PMU boot and set state.

As now PMU and FECS boot are independent, we need to ensure engine
idle before saving ZBC.

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

10 years agogpu: nvgpu: Initialize FECS explicitly on recovery
Terje Bergstrom [Wed, 14 May 2014 12:22:00 +0000 (15:22 +0300)]
gpu: nvgpu: Initialize FECS explicitly on recovery

Instead of calling second phase of PMU boot sequence, initialize FECS
directly.

Change-Id: I7f9de0c5ec42049033839d244979f3f3daabf317
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/410204
(cherry picked from commit 5a631edd5cf05a4b8c5e8b049256a0e190964859)
Reviewed-on: http://git-master/r/416209
Reviewed-by: Automatic_Commit_Validation_User
10 years agoARM: tegra: TN8:handle touch 3v3 parent rail overcurrent
Venkat Reddy Talla [Fri, 6 Jun 2014 09:20:59 +0000 (14:50 +0530)]
ARM: tegra: TN8:handle touch 3v3 parent rail overcurrent

When touch rail get enabled, there is chances of parent rail to be
short and drop the voltage output of parent rail to be 0V. This can
cause the malfunctioning of system which depends on parent rail.

Add the SW-WAR for enabling touch rail on P1761-A04 designs.
- Enable LDO3 (3.3V) to load switch output.
- Enable load switch and then disable parent rail.

Bug 1494740

Change-Id: I5d489f655d9f153f1a22bcc620226e25e9877bee
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/419946
Reviewed-by: Chas Inman <chasi@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Chas Inman <chasi@nvidia.com>
10 years agovideo: tegra: host: gk20a: remove pg_init_mutex
Prashant Malani [Tue, 18 Mar 2014 19:06:02 +0000 (12:06 -0700)]
video: tegra: host: gk20a: remove pg_init_mutex

There is a scenario where the pg_init_mutex tries to ge acquired from a
nonstalling threaded ISR. This leads to timeouts while trying to update
the zbc table. Since deferred pg_init is disabled for now, we can remove
the mutex.

Bug 1459850
Bug 1458353

Change-Id: Iba955c5b86f2c7aa509a8f2a537fcacf037f74e9
Signed-off-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-on: http://git-master/r/383224
(cherry picked from commit 0635f15fdbdafc200a3f86f49e7e2243ea86c82f)
Reviewed-on: http://git-master/r/419893
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
10 years agoARM: Tegra: TN8: Set vdd_rtc to static 0.95V
Hunk Lin [Fri, 6 Jun 2014 03:25:58 +0000 (11:25 +0800)]
ARM: Tegra: TN8: Set vdd_rtc to static 0.95V

It is from characterization team's request since there is no rtc tracking
in TN8.

Bug 1519080

Change-Id: Ic773aac0bcd443723dba498488a8b5864db1b36b
Signed-off-by: Hunk Lin <hulin@nvidia.com>
Reviewed-on: http://git-master/r/419840
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>
10 years agoAsoc: Alc5639:Fix/Improve Headset detection.
Vinod Subbarayalu [Thu, 22 May 2014 03:38:35 +0000 (20:38 -0700)]
Asoc: Alc5639:Fix/Improve  Headset detection.

-Update from vendor to fix/improve Headset detection.

Bug 1514488
Bug 200004866

Change-Id: Ia09c4496a1b136fa712d88cd022e899f3528a1ee
Signed-off-by: Vinod Subbarayalu <vsubbarayalu@nvidia.com>
Reviewed-on: http://git-master/r/418451
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>
10 years agoUpdate from Realtek to resolve speaker pop noise coming back from LP0
Rene Houle [Thu, 29 May 2014 21:52:50 +0000 (14:52 -0700)]
Update from Realtek to resolve speaker pop noise coming back from LP0

Bug 200006476

Change-Id: I8269a39840a4e887f8c0405457f9484fd2956e9b
Signed-off-by: Rene Houle <rhoule@nvidia.com>
Reviewed-on: http://git-master/r/417943
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pierre Gervais <pgervais@nvidia.com>
Reviewed-by: Chas Inman <chasi@nvidia.com>
Tested-by: Chas Inman <chasi@nvidia.com>
Reviewed-by: Eric Chuang <echuang@nvidia.com>
10 years agogpu: nvgpu: fix memory leak of dbg_session
Deepak Nibade [Thu, 5 Jun 2014 05:56:59 +0000 (11:26 +0530)]
gpu: nvgpu: fix memory leak of dbg_session

In gk20a_dbg_gpu_dev_release() (when we close nvhost-dgb-gpu sysfs),
we return from function if there is no channel bound to dbg_session
without freeing the dbg_session memory.

If there is no channel bound then do not call dbg_unbind_channel_gk20a()
and then free dbg_session memory always.

Bug 200010382

Change-Id: I90dd2ed3cd72fbc5d429799660daf2a09b974fda
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/419306
(cherry picked from commit aed69a3f2c2ddc6b9b04fff4be6c4771f206f1d6)
Reviewed-on: http://git-master/r/419582
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
10 years agotn8: modem: reduce autosuspend_delay to 1s
leow [Wed, 28 May 2014 07:14:12 +0000 (15:14 +0800)]
tn8: modem: reduce autosuspend_delay to 1s

for power saving

bug 200004582

Change-Id: Ifb9561ab231a97ce93c8439a1243c7fe9769a163
Signed-off-by: Leo Wang <leow@nvidia.com>
Reviewed-on: http://git-master/r/415648
Reviewed-by: Emad Mir <emir@nvidia.com>
Tested-by: Emad Mir <emir@nvidia.com>
10 years agoarm: tegra: disable hier_ictlr for T124
Mitch Luban [Thu, 5 Jun 2014 13:03:18 +0000 (06:03 -0700)]
arm: tegra: disable hier_ictlr for T124

Bug 1519537

Change-Id: Id4faefedbaaf18aad47f8edc83fa2d51c581413d
Signed-off-by: Mitch Luban <mluban@nvidia.com>
Reviewed-on: http://git-master/r/419563
Reviewed-by: Prafull Suryawanshi <prafulls@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sang-Hun Lee <sanlee@nvidia.com>
10 years agogpu: nvgpu: Reload ZBC values on rail gate exit
Terje Bergstrom [Tue, 3 Jun 2014 11:47:44 +0000 (14:47 +0300)]
gpu: nvgpu: Reload ZBC values on rail gate exit

When exiting rail gate, we reloaded default ZBC values. The correct
behavior is to reload the values.

Bug 1447255

Change-Id: I7aad3586dda91a91a3629062a27001af281b955e
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/418346
(cherry picked from commit 97a361eaea7a82e4d69901c3e95a7880099c87bf)
Reviewed-on: http://git-master/r/419290
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>
GVS: Gerrit_Virtual_Submit

10 years agodriver:media:tegra: ov5693 add reg in mode table
David Wang [Sat, 31 May 2014 02:13:06 +0000 (19:13 -0700)]
driver:media:tegra: ov5693 add reg in mode table

Setting one of the missing registers for the 2592x1944
mode table. This register value prevents frame drops
when coarse time is updated.

bug 1516678

Change-Id: Icebbca9d7800d609146800678f22ee68de690c4c
Signed-off-by: David Wang <davidw@nvidia.com>
Reviewed-on: http://git-master/r/419178
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Anton Kondratenko <akondratenko@nvidia.com>
Reviewed-by: Ruchit Sharma <ruchits@nvidia.com>
Reviewed-by: David Schalig <dschalig@nvidia.com>
Tested-by: David Schalig <dschalig@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
10 years agovideo: tegra: host: assign emc ID to msenc.emc
Jihoon Bang [Wed, 28 May 2014 17:47:05 +0000 (10:47 -0700)]
video: tegra: host: assign emc ID to msenc.emc

msenc.emc ID was zero, which is a bug.
Assign EMC ID to msenc.emc clock.

Bug 1517632

Change-Id: I8bb7a87e219aa6b34abf9dd5daaceb08e417eb5f
Signed-off-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-on: http://git-master/r/416273
(cherry picked from commit 19add0927b5dd7b4e5fd03c753b54465b6ed38a6)
Reviewed-on: http://git-master/r/418471
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Tested-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
10 years agoRevert "ARM: tegra: enable pmic-wdt for TN8"
Mitch Luban [Tue, 3 Jun 2014 11:31:23 +0000 (04:31 -0700)]
Revert "ARM: tegra: enable pmic-wdt for TN8"

This reverts commit 1a45c2951949983b164dfd6a95d6e3f41cb5c545.

Change-Id: I39cd39699cca2f791c05daf8a91c9470845ac9e1
Signed-off-by: Mitch Luban <mluban@nvidia.com>
Reviewed-on: http://git-master/r/419250
Reviewed-by: Robert Shih <rshih@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
10 years agotegra: hdmi: remove powergating from state machine
Anshuman Nath Kar [Tue, 3 Jun 2014 23:20:52 +0000 (16:20 -0700)]
tegra: hdmi: remove powergating from state machine

Change-Id: I328630dc3b2192587f2ce874e1583a7cef104b51
Signed-off-by: Anshuman Nath Kar <anshumank@nvidia.com>
Reviewed-on: http://git-master/r/418558
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Chao Xu <cxu@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
10 years agogpu: nvgpu: Remove deferred ELPG enable
Terje Bergstrom [Thu, 15 May 2014 10:57:09 +0000 (13:57 +0300)]
gpu: nvgpu: Remove deferred ELPG enable

Prevent the disable ELPG routine from calling deferred re enablement of
ELPG. Remove code related to deferred ELPG enable..

Change-Id: I9401e6e0f26a4e332e50eb38439e2ef6fcb4225d
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/410203
(cherry picked from commit cf9558aa112476072c3abb02b3d6cae94e21a8bd)
Reviewed-on: http://git-master/r/416208
Reviewed-by: Automatic_Commit_Validation_User
10 years agogpu: nvgpu: Add PMU sent/recvd messages to dbg log
Terje Bergstrom [Wed, 14 May 2014 12:22:00 +0000 (15:22 +0300)]
gpu: nvgpu: Add PMU sent/recvd messages to dbg log

Add debug log entries for received and sent PMU messages.

Change-Id: I94cecca76257d74785c13f1c5f97a7233361019f
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
(cherry-picked from commit ac555ce237d9514eb618a15b7cc2adb505c87f0a)
Reviewed-on: http://git-master/r/416207

10 years agogpu: nvgpu: Do not clear PMU state on rail gate
Terje Bergstrom [Thu, 8 May 2014 08:45:39 +0000 (11:45 +0300)]
gpu: nvgpu: Do not clear PMU state on rail gate

When rail gating, we cleared all PMU status. Clear only the relevant
fields.

Change-Id: I5b4e8d74339aae6f1c6b945f45b8378bb563e8be
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/406843
(cherry-picked from commit 4e35d12b2059140beb58554633c6b3f291e6fec7)
Reviewed-on: http://git-master/r/416206
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>
10 years agoARM: tegra: handle touch 3v3 parent rail overcurrent
Laxman Dewangan [Tue, 3 Jun 2014 09:49:50 +0000 (15:19 +0530)]
ARM: tegra: handle touch 3v3 parent rail overcurrent

When touch rail get enabled, there is chances of parent rail to be
short and drop the voltage output of parent rail to be 0V. This can
cause the malfunctioning of system which depends on parent rail.

Add the SW-WAR for enabling touch rail on P1761-A03 designs.
- Enable LDO3 (3.3V) to load switch output.
- Enable load switch and then disable parent rail.

bug 1494740

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

10 years agoregulator: core: add support for disabling parent after enabling rail.
Laxman Dewangan [Tue, 3 Jun 2014 07:02:11 +0000 (12:32 +0530)]
regulator: core: add support for disabling parent after enabling rail.

Add support on core driver of regulator to disable parent once the
regulator enable. This is needed for some specific purpose to handle
overcurrent on parent rail due to enabling the rail.

bug 1494740

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

10 years agovideo: tegra: dc: disable windows on enabled dc
Michael Frydrych [Fri, 30 May 2014 10:38:45 +0000 (13:38 +0300)]
video: tegra: dc: disable windows on enabled dc

dc initializes syncpt ids as late as in tegra_dc_init(), thus
hdmi must be plugged at least once, before sync ids are valid.
Disabling windows on hdmi will otherwise lead to attemp of
incrementing invalid syncpt.
If dc is enabled, tegra_dc_init() must have been already called
and it is safe to flush syncpt.

bug 200006556

Change-Id: Ib908bf5fc2ddfbfaff601a9682658c9b7de9dceb
Signed-off-by: Michael Frydrych <mfrydrych@nvidia.com>
Reviewed-on: http://git-master/r/417057
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Michael I Gold <gold@nvidia.com>
Reviewed-on: http://git-master/r/418923
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>
10 years agoregulator: palams: add support for disabling pulldown of LDOs
Laxman Dewangan [Tue, 3 Jun 2014 09:45:36 +0000 (15:15 +0530)]
regulator: palams: add support for disabling pulldown of LDOs

Add support for disabling pull down of the LDOs. this is configurable
from platforms.

bug 1494740

Change-Id: I8c3e02f36b3045fa25a8c881a10c686ab9c63967
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/418246
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
10 years agotn8: CMU calibration for the panel
Aly Hirani [Fri, 30 May 2014 22:33:19 +0000 (15:33 -0700)]
tn8: CMU calibration for the panel

Use device #5 from Arman's data to calibrate the CMU luts.
Hopefully this should provide good values for the "median" units

Change-Id: I1e1d39d6ea972b15533aaa034066a9e95007e0e6
Signed-off-by: Aly Hirani <ahirani@nvidia.com>
Reviewed-on: http://git-master/r/417293
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
10 years agoARM: tegra: ceres: Add dma mask on SDHCI devices.
Naveen Kumar Arepalli [Fri, 30 May 2014 06:53:08 +0000 (12:23 +0530)]
ARM: tegra: ceres: Add dma mask on SDHCI devices.

Added dma mask on SDHCI devices.

Bug 1486735

Change-Id: Ie6ac1214a56a75828bc04b99290b555b77579474
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/416956
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
10 years agommc: sdhci: Use pre-allocated DMA buffers
Naveen Kumar Arepalli [Fri, 30 May 2014 06:47:39 +0000 (12:17 +0530)]
mmc: sdhci: Use pre-allocated DMA buffers

Use pre-allocated DMA buffers for ADMA descriptor and Bounce buffer
instead of dynamic DMA mapping.
This improves SDHCI driver performance by reducing dynamic DMA mapping
overhead.

Bug 1486735

Change-Id: Ic9c646437be047d33304339eccc48a825f0a8bcc
Reviewed-on: http://git-master/r/380885
Cherry-picked from commit 7ffcc4cf1a1cec42610c1b55c30b3ec28547a11e

Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Change-Id: If850a534ba9fbfd169b4fbefd35ca5922b1d1254
Reviewed-on: http://git-master/r/416955
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
10 years agoARM: tegra: HSIC: remove uhsic_phy_pre_resume
leow [Wed, 28 May 2014 07:35:34 +0000 (15:35 +0800)]
ARM: tegra: HSIC: remove uhsic_phy_pre_resume

during hub remote wake-up, uhsic_phy_pre_resume
will be called to set RUN bit to end the 'Resume'
signalling eariler than expected

bug 1499837

Change-Id: I0fa4b1fa4f476d623a625dff8c227411f124e634
Signed-off-by: Leo Wang <leow@nvidia.com>
Reviewed-on: http://git-master/r/415660
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
10 years agoARM: tegra: ardbeg: Fix EMI HS USB failure on T124
Petlozu Pravareshwar [Thu, 22 May 2014 12:17:43 +0000 (17:47 +0530)]
ARM: tegra: ardbeg: Fix EMI HS USB failure on T124

Fix the EMI HS USB failure on T124 based boards
by adjusting the register settings.

Bug 1508463

Change-Id: I31ed998a0f3155f9f85376dd95cec98c6285364f
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-on: http://git-master/r/413222
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
10 years agopower: reset: palmas: Retry on cold reset failure
Mallikarjun Kasoju [Tue, 6 May 2014 06:30:54 +0000 (12:00 +0530)]
power: reset: palmas: Retry on cold reset failure

Bug 200001828

Change-Id: I58258417b246efb005265dcaee4518c05b00442e
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-on: http://git-master/r/405653
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
10 years agoregulator: palams: disallow pmic access post shutdown
Sang-Hun Lee [Sun, 1 Jun 2014 06:15:47 +0000 (23:15 -0700)]
regulator: palams: disallow pmic access post shutdown

 - Once shutdown has been called against pmic, i2c bus
   is shutdown, so pmic cannot enable or disable
   regulators
 - As such, once shutdown has been called, reject
   regulator enable/disable calls

Bug 1510778

Change-Id: I6eb26d4846ed5c51f882761568c1f9152a0ebb24
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/411684
(cherry picked from commit 7f018564c9da1d4062bca5d258155d43abe8168c)
Reviewed-on: http://git-master/r/416330
Reviewed-by: Mitch Luban <mluban@nvidia.com>
10 years agoiio: adc: palmas: disallow access post-shutdown
Sang-Hun Lee [Sun, 18 May 2014 01:34:48 +0000 (18:34 -0700)]
iio: adc: palmas: disallow access post-shutdown

 - Once the shutdown has been called, any access to
   i2c needs to be disallowed to avoid a race

Bug 1510778

Change-Id: I93cc1ec4cdadfe2084b6aa5a8bc9d2b6cf56e879
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/411189
(cherry picked from commit 830db980d3a6e76ffcde8d588a8b6ef487e26283)
Reviewed-on: http://git-master/r/416327
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>
10 years agoi2c: tegra: protect i2c state variables
Sang-Hun Lee [Sun, 18 May 2014 01:32:13 +0000 (18:32 -0700)]
i2c: tegra: protect i2c state variables

 - i2c state variables cancel_xfer_on_shutdown and
   atomic_xfer_only are accessed without any locking,
   which could lead to a race
 - lock the adapter when accessing these variables

Bug 1510778

Change-Id: If4a69b1e85e3801616cf8f3da6938fca4b0ab816
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/411129
(cherry picked from commit 940ba3f873878d0ac1cd5b73052058f7f57dcf04)
Reviewed-on: http://git-master/r/416328
Reviewed-by: Mitch Luban <mluban@nvidia.com>
10 years agoPM/Domain: cancel workqueue upon power off
Sang-Hun Lee [Mon, 19 May 2014 21:54:30 +0000 (14:54 -0700)]
PM/Domain: cancel workqueue upon power off

 - If there is any workqueue power_off_delayed_work pending when
   calling pm_genpd_suspend or its variants, the workqueue will
   trigger post pm_genpd_suspend operation, causing a double shutdown
 - This is fixing a bug from 3f4475eade08af799d3e1a100e24e1b418abbba5

Bug 1510778

Change-Id: I7569a8712638a231a6f91199f10a75654bde7bf9
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/411675
(cherry picked from commit 37b02dab58ad9bd04ba4e898929333f72aa9ed4d)
Reviewed-on: http://git-master/r/416329
Reviewed-by: Mitch Luban <mluban@nvidia.com>
10 years agogpu: nvgpu: Disable pm runtime on shutdown
Arto Merilainen [Tue, 20 May 2014 09:47:20 +0000 (12:47 +0300)]
gpu: nvgpu: Disable pm runtime on shutdown

In some cases the gpu has still work pending while the device is
being suspended. This patch forces pm runtime to be disabled for
the device to avoid powering up the gpu unnecessarily.

Bug 1515437

Change-Id: I4b57d72eb34e794f0457d7a074d26c9d096a13b3
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/411968
(cherry picked from commit ef6e80d5cd9268848a3dd82664577f17f4d9ab71)
Reviewed-on: http://git-master/r/416331
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
10 years agoi2c: tegra: warn on i2c init failure
Sang-Hun Lee [Tue, 20 May 2014 00:12:30 +0000 (17:12 -0700)]
i2c: tegra: warn on i2c init failure

 - If tegra_i2c_init fails during xfer, the error is being
   silently ignored, making the debug difficult
 - If tegra_i2c_init fails, at least print a warning and
   stack trace to make the failure explicit

Bug 1510778

Change-Id: Id885b3ad64f1f26304fa6d6cdb5c5ec8e682c038
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/411721
(cherry picked from commit c4f8ec27a48d95aaffc02984ed4fdf24a17869f2)
Reviewed-on: http://git-master/r/416332
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>
10 years agoarm: tegra: soctherm: Update temp threshold with critical trip temp
Roger Ma [Mon, 19 May 2014 05:08:56 +0000 (13:08 +0800)]
arm: tegra: soctherm: Update temp threshold with critical trip temp

Takes critical trip temp into hardware while updating temperature
UP/DN thresholds to ensure that SW shutsown is working at critical
trip temp with UART log of thermal shutdown even.

Bug 1492653

Change-Id: I10094c3d5ee32171197f792880b85bcdd519e7eb
Signed-off-by: Roger Ma <roma@nvidia.com>
Reviewed-on: http://git-master/r/411266
GVS: Gerrit_Virtual_Submit
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
10 years agousb: hsic: add delay during hsic phy resume
Martin Chi [Mon, 5 May 2014 01:43:50 +0000 (09:43 +0800)]
usb: hsic: add delay during hsic phy resume

25ms delay is added to make sure the resume
signalling to be driven during remote wake-up
on the USB lines for a minimum period of 25ms

10ms delay is added to stabilize the HSIC bus

bug 1451863
bug 1438066

Change-Id: If514bb0b31df54f1b219f2ebfc6a3ca5ea62e6a4
Signed-off-by: Martin Chi <mchi@nvidia.com>
Reviewed-on: http://git-master/r/400932
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
10 years agomedia: platform: tegra: imx179: add missing mutex intialize
Jay Cheng [Tue, 20 May 2014 21:24:19 +0000 (17:24 -0400)]
media: platform: tegra: imx179: add missing mutex intialize

also remove unused debugfs entry

Change-Id: Idc7e546b24c9431ffb08473be38df40f454aa0b5
Signed-off-by: Jay Cheng <jacheng@nvidia.com>
Reviewed-on: http://git-master/r/412237
(cherry picked from commit 498e21d8dbff411679cfc9ac5cf6b6513fac8851)
Reviewed-on: http://git-master/r/415048
GVS: Gerrit_Virtual_Submit
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
10 years agoARM: tegra: support 16V voltage for maxim Wall Charger
Philip Rakity [Sun, 1 Jun 2014 19:59:45 +0000 (20:59 +0100)]
ARM: tegra: support 16V voltage for maxim Wall Charger

comment from system engineering:

Since the maximum input voltage of the BQ2419x is 17V
it is safe to set the maximum voltage to 16V for all
platforms. 15V is too low. 17V leaves less margin.

voltage reduced to 16V

Change-Id: I71632197b6d9ca962250623e5575350adf7b7782
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/417480
Reviewed-by: Rakesh Babu Bodla <rbodla@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
10 years agoARM: tegra: tn8: supply y-cable extcon name
Rakesh Bodla [Thu, 29 May 2014 12:32:01 +0000 (18:02 +0530)]
ARM: tegra: tn8: supply y-cable extcon name

Supply y-cable extcon name, for extcon
notification.

Bug 200004368
Bug 1456628

Change-Id: I64a9cf9eced60f9e4981305bceba6b5a01c3dfb2
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/416657
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
10 years agopower: extcon: register for y-cable extcon dev
Rakesh Bodla [Thu, 29 May 2014 12:30:18 +0000 (18:00 +0530)]
power: extcon: register for y-cable extcon dev

Register to otg extcon dev for y-cable notification.

Bug 200004368
Bug 1456628

Change-Id: Ie63e29b90885ef713b96d30d05fedbbb89d3cd30
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/416656
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
10 years agousb: otg: tegra: Add extcon device for y-cable
Rakesh Bodla [Wed, 23 Apr 2014 05:58:05 +0000 (11:28 +0530)]
usb: otg: tegra: Add extcon device for y-cable

Add extcon device to notify presence of
Y cable connection.

Bug 200004368
Bug 1456628

Change-Id: I6b169167c37e34b072970e38c275aa22ad63b35c
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/400098
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
10 years agoRevert "drivers: cpuquiet: Fix runnable gov device_busy"
Mitch Luban [Mon, 2 Jun 2014 10:21:31 +0000 (03:21 -0700)]
Revert "drivers: cpuquiet: Fix runnable gov device_busy"

This reverts commit 1c9543518017efc4933ba7e87642dfb9824f1433.

Bug 200009515

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

10 years agoARM: tegra: dt: tn8: a03: correct ALS sensor info
Sri Krishna chowdary [Tue, 27 May 2014 19:56:12 +0000 (01:26 +0530)]
ARM: tegra: dt: tn8: a03: correct ALS sensor info

Pass correct values for maximum detection range and
power consumed in milli Amps.

Bug 1503943

Change-Id: I78903fc777ceb56aeca6c1fa5b70412be4850a67
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/415397
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
10 years agogpu: nvgpu: Add CBC clean and invalidate
Arto Merilainen [Wed, 9 Apr 2014 12:04:33 +0000 (15:04 +0300)]
gpu: nvgpu: Add CBC clean and invalidate

Bug 1409151

Change-Id: I232af159d402f818cf972498d721c3b57846ce74
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
(cherry picked from commit bed35ee9ec75da9dc162bd46bfc1e68018e60dc3)
Reviewed-on: http://git-master/r/417373
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
10 years agovideo: tegra: host: Move gk20a LTC support
Terje Bergstrom [Mon, 24 Mar 2014 12:32:12 +0000 (14:32 +0200)]
video: tegra: host: Move gk20a LTC support

Move gk20a LTC support to gk20a specific source file.

Change-Id: I8228eb2ce840ee72993e4691ffc2cbe67c5cde4c
Reviewed-on: http://git-master/r/376523
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/385649
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Tested-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-on: http://git-master/r/417372

10 years agoRevert "video: tegra: host: gk20a: Disable PMU irqs"
Terje Bergstrom [Wed, 28 May 2014 11:45:23 +0000 (04:45 -0700)]
Revert "video: tegra: host: gk20a: Disable PMU irqs"

This reverts commit 4437a683736b5c311025c20fc1275432653e24eb. Patch with same name was accidentally reverted.

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

10 years agoarm: tegra: tn8: Wait 50ms before panel reset
Santosh Katvate [Tue, 22 Apr 2014 15:10:20 +0000 (20:40 +0530)]
arm: tegra: tn8: Wait 50ms before panel reset

- RST should be low 50ms(min.) after DSI_A_D0_P disabled (after LP state)

Bug 1474583

Change-Id: I88e2f2387432d43296b6c9540719f4392ecb9b6e
Signed-off-by: Santosh Katvate <skatvate@nvidia.com>
Reviewed-on: http://git-master/r/399783
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
10 years agoinput: touchscreen: raydium: update to 64.6
Jordan Nien [Fri, 30 May 2014 15:05:05 +0000 (23:05 +0800)]
input: touchscreen: raydium: update to 64.6

64.6 Change list:
1. Fixed slow scan function.
2. Improve pinch to zoom in mode 0.
3. Enhance the cover range of baseline.

64.5 Change list:
1. Disable point queue function
2. Improve stylus with palm.
3. fix selftest test log file error.

64.4 Change list:
1. Fixed ghost touch detected if smart cover on the screen.
2. Point queue for finger drawing from bezel.
3. Implement kthread function to replace work queue, default is disable.
(#define ISR_POST_HANDLER WORK_QUEUE or KTHREAD in rm31080a_ts.c)
4. improve selftest test time ( about 15 seconds).

64.3 Change list:
1. Add sysfs test mode, usage see Test Mode page.
2. Improve smart cover detection.
3. Disable FB_CALLBACK function.

Change-Id: Iaa98f808d0e2d194d3f2b962e2baaef2cc83111d
Signed-off-by: Jordan Nien <jnien@nvidia.com>
(cherry picked from commit 844677c807637381b439be3af45da3d5f677f58f)
Reviewed-on: http://git-master/r/417273
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vincent Chen <zochen@nvidia.com>
Tested-by: Vincent Chen <zochen@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
10 years agodrivers: cpuquiet: Move init code to __init
Sai Gurrappadi [Thu, 29 May 2014 19:54:38 +0000 (12:54 -0700)]
drivers: cpuquiet: Move init code to __init

Move the runnables governor init code to the correct init function
instead of runnables_start as it should only be run once.
runnables_start/stop can be called multiple times whenever the governor
is switched.

Bug 200002511

Change-Id: I7ccfd1e2d881a82869e01a05cba74fb3e4e989a8
Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/416748
(cherry picked from commit 438ddf8c441f55b77b1199fa33c92e90b2def7bf)
Reviewed-on: http://git-master/r/417226
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
10 years agopstore: fix memleak in ramoops_pstore_read
Ishwarya Balaji Gururajan [Tue, 27 May 2014 23:00:36 +0000 (16:00 -0700)]
pstore: fix memleak in ramoops_pstore_read

check for size + ecc_notice_size before kmalloc
in ramoops_pstore_read to avoid a memleak

Bug 200007988

Change-Id: I0e50dcaa229fed29cbd9e8da6d4fb60ce771a7f8
Signed-off-by: Ishwarya Balaji Gururajan <igururajan@nvidia.com>
Reviewed-on: http://git-master/r/415450
(cherry picked from commit 159c6ab3aae1212a32c2bd9cd5b9d6309bd0a68d)
Reviewed-on: http://git-master/r/416771
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
10 years agovideo: tegra: dc: flush syncpts on release
Michael I. Gold [Wed, 28 May 2014 22:42:19 +0000 (15:42 -0700)]
video: tegra: dc: flush syncpts on release

Create a disable_window() function to consolidate operations which are
needed from both release() and controller_disable().

bug 200006556

Change-Id: I07f220e7b6a52c8761bebc294fa5648fb8fd9be8
Signed-off-by: Michael I. Gold <gold@nvidia.com>
Reviewed-on: http://git-master/r/416351
(cherry picked from commit 4a46c87239e1c5ea3d2e53ed349fb8908b2877e5)
Reviewed-on: http://git-master/r/416394
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>
10 years agovideo: tegra: host: Skip IOVA gap in Tsec carveout mapping
Sami Kiminki [Fri, 16 May 2014 16:30:30 +0000 (19:30 +0300)]
video: tegra: host: Skip IOVA gap in Tsec carveout mapping

When mapping Tsec carveout to IOVA space, do not add IOVA gap page at
the end. Otherwise, if there is another carveout already mapped that
starts right after the Tsec carveout, the first page of it will be
incorrectly mapped to the IOVA gap page.

Bug 1499804

Change-Id: I3f8d9fc8efb26c2f6300a2802dae5ab139d1e5a4
Signed-off-by: Sami Kiminki <skiminki@nvidia.com>
Reviewed-on: http://git-master/r/410932
(cherry picked from commit 49d0f367e08ede216c69f58ef5dd5bdf7595bf8b)
Reviewed-on: http://git-master/r/416038
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
10 years agomedia: tegra: cam_dev: fix memory leak in virtual_device_add
Allen Yu [Wed, 28 May 2014 16:34:35 +0000 (00:34 +0800)]
media: tegra: cam_dev: fix memory leak in virtual_device_add

If chip already added, we have a leak of v_chip. This patch
free v_chip if camera_chip_add(v_chip) return error.

bug 200007998

Change-Id: I81af0e8bd9f96f4d3d07491476584f48a8b33c1f
Signed-off-by: Allen Yu <alleny@nvidia.com>
Reviewed-on: http://git-master/r/416223
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-on: http://git-master/r/416887
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
10 years agoARM: tegra: TN8: Enable y-cable support for TN8
Rakesh Bodla [Thu, 29 May 2014 05:31:23 +0000 (11:01 +0530)]
ARM: tegra: TN8: Enable y-cable support for TN8

Enable the y-cable support for TN8.

Bug 200004368

Change-Id: If0991fc72038f0391e806c0197f88e56f55110c6
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/416533
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
10 years agodrivers: platform: tegra: camera: shutdown event
Charlie Huang [Fri, 16 May 2014 23:05:04 +0000 (16:05 -0700)]
drivers: platform: tegra: camera: shutdown event

implement shutdown/suspend/resume functions to avoid i2c failures.
add atomic cam_ref to prevent the conflict scenario of system
shutdown but the user space still atempt to access the driver.

bug 1503230

Change-Id: I3fe58b49c1391dcc312f096c307a0849b829689a
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/411093
Reviewed-on: http://git-master/r/415598
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
10 years agoextcon: palmas: make aca detection platform dependent
Rakesh Bodla [Tue, 27 May 2014 06:42:18 +0000 (12:12 +0530)]
extcon: palmas: make aca detection platform dependent

Make ACA detection platform dependent. Also unset
the mutually explosive property.

Bug 200004368

Change-Id: I2bdd1008dc96debb29542cef0f6b7d4b801c6cd4
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/415127
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
10 years agoarm: tegra: pm: suppress kmemleak false positive
Allen Yu [Mon, 26 May 2014 09:42:01 +0000 (17:42 +0800)]
arm: tegra: pm: suppress kmemleak false positive

The memory block for relocating lp0 vector is referenced by
a physical address (i.e. tegra_lp0_vec_start) which kmemleak
can't detect. Mark it as not a leak to avoid false positive.

Bug 200007297

Change-Id: Ie137f08d77911677d9e76fdb7d0112a1610dd72d
Signed-off-by: Allen Yu <alleny@nvidia.com>
Reviewed-on: http://git-master/r/414946
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>
10 years agoARM: tegra: add debounce time to 200ms for magnetic sensor
Laxman Dewangan [Thu, 29 May 2014 10:20:41 +0000 (15:50 +0530)]
ARM: tegra: add debounce time to 200ms for magnetic sensor

It is observed that there is huge amount of debounce on the
signal of transtion when smart cover flipped.

Keep the safe value of debounce time of the signal from sensor to
200ms.

bug 200005902

Change-Id: Ic232f832c0ddb7da468ba8aa432985bdba1210e1
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/416628
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Tested-by: Sri Krishna Chowdary <schowdary@nvidia.com>
GVS: Gerrit_Virtual_Submit

10 years agoARM: tegra: ardbeg: Enable NvDumper
Joshua Cha [Mon, 14 Apr 2014 04:34:30 +0000 (13:34 +0900)]
ARM: tegra: ardbeg: Enable NvDumper

Bug 1494097

Change-Id: I7f7df9cbafb7f9089a27f609290b50da2bddfa65
Signed-off-by: Joshua Cha <joshuac@nvidia.com>
Reviewed-on: http://git-master/r/395631
Reviewed-on: http://git-master/r/416486
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Nathan Zhang <nathanz@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
10 years agostaging: iio: light: ltr659: tune prox settings
Sri Krishna chowdary [Thu, 29 May 2014 08:58:26 +0000 (14:28 +0530)]
staging: iio: light: ltr659: tune prox settings

Change default settings for proximity channel as below
Gain: x16, LED Current: 100mA, Duty Cycle: 100%, PMF: 30KHz
N_Pluse: 5, Measurement Repeat Rate: 100ms

This change also
- Enables saturation detection.
- replaces mdelay with msleep since all delays are >= 10 ms.

Bug 1496949
Bug 200003335
Bug 1510031

Change-Id: Id4bce839b10ab356141d5cbf28a31fa414fca768
Signed-off-by: wahsu <wahsu@nvidia.com>
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/411380
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
10 years agousb: gadget: android: Maxim 14675 driver support
Philip Rakity [Thu, 13 Feb 2014 17:49:54 +0000 (17:49 +0000)]
usb: gadget: android: Maxim 14675 driver support

add USB string to signal 12V max - 5V min charging

bug 1321188
bug 1456402

Change-Id: Ia13575a9da8f206b0b578c86854b9284b3a7f777
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/400492
GVS: Gerrit_Virtual_Submit
Reviewed-by: Rakesh Babu Bodla <rbodla@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
10 years agospi: tegra114: Move IST work to caller thread
Shardar Shariff Md [Tue, 22 Apr 2014 10:03:00 +0000 (15:33 +0530)]
spi: tegra114: Move IST work to caller thread

Remove IST(interrupt service thread) and move
that functionality to caller thread

Bug 1501764

Change-Id: I69e452357df2a3ea83d861f5992c9fc1b38a6c06
Signed-off-by: Shardar Shariff Md <smohammed@nvidia.com>
Reviewed-on: http://git-master/r/399627
(cherry picked from commit f6366d4f846425bbfa0d8e919a974eff7429862f)
Reviewed-on: http://git-master/r/416484
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
10 years agostating: iio: adc: palmas: Add debugfs for auto_conv reading
Jinyoung Park [Wed, 9 Apr 2014 11:13:25 +0000 (20:13 +0900)]
stating: iio: adc: palmas: Add debugfs for auto_conv reading

Added a debugfs for auto_conv value reading.

Bug 1514756

Change-Id: Ia7fb91dab51972235885d7a087a84ce4aabd690b
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
(cherry picked from commit ec34acc1493190c7524d0c543e4af1e52b9b3fc7)
Reviewed-on: http://git-master/r/414751
Reviewed-by: Roger Ma <roma@nvidia.com>
Tested-by: Roger Ma <roma@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
10 years agousb: gadget: tegra: fix usb cable extcon update
Rakesh Bodla [Tue, 20 May 2014 11:43:12 +0000 (17:13 +0530)]
usb: gadget: tegra: fix usb cable extcon update

USB cable status  now properly
updated to extcon framework, with which
charging icon will be updated properly.

Bug 1458999
Bug 200002489
Bug 1503711

Change-Id: If509e05e1b0ffd6e1fb34e58b9c01b7345751653
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/412019
Reviewed-by: Tony Ly <tly@nvidia.com>
Tested-by: Tony Ly <tly@nvidia.com>
10 years agoinput: touchscreen: raydium: update 64.2
Vincent Chen [Thu, 22 May 2014 22:36:53 +0000 (15:36 -0700)]
input: touchscreen: raydium: update 64.2

1. Corrected palm judgment when frequency hopping is enabled.
2. Fixed ghost touch detected if smart cover on the screen.
3. Use FB_CALLBACK function to enable/disable touch device.
4. Improve selftest coverage for idle mode

bug 200005832
bug 1513496

Change-Id: Ie532ad588a58449770fc9c3a8be7bf2d0ae2adc1
Reviewed-on: http://git-master/r/413432
(cherry picked from commit da997e76ec31faed1a4b8d53c9ddf3a8b1208a45)
Signed-off-by: Vincent Chen <zochen@nvidia.com>
Reviewed-on: http://git-master/r/416347
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jordan Nien <jnien@nvidia.com>
Reviewed-by: Eric Chuang <echuang@nvidia.com>
10 years agodrivers: cpuquiet: Fix runnable gov device_busy
Sai Gurrappadi [Tue, 13 May 2014 21:50:09 +0000 (14:50 -0700)]
drivers: cpuquiet: Fix runnable gov device_busy

On device_busy, the runnable governor stops its sample timer and cancels
any queued runnable_work. However, it is possible for the cpuquiet
platform driver to call device_busy on cpuquiet_quiesence/wake_cpu calls
which can be invoked from the queued runnable_worker thread. This will
lead to the runnable_worker thread waiting infinitely on it self
finishing in cancel_work_sync.

Fix this by removing the cancel_work_sync call as it isn't necessary
because the worker doesn't requeue it self. Stopping the timer is
sufficient.

Bug 200002511

Change-Id: Ic69061b12d4dbb96b259ed9b62a0475271bd36d0
Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/416155
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
10 years agoarm: tegra: Correct touch regulator.
Jordan Nien [Wed, 28 May 2014 09:38:09 +0000 (17:38 +0800)]
arm: tegra: Correct touch regulator.

- Touch regulator for P1761 A03 is ldousb.

Change-Id: I39aea58540d8795c20305eef976536632bc56672
Signed-off-by: Jordan Nien <jnien@nvidia.com>
Reviewed-on: http://git-master/r/416004
Reviewed-by: Steven Kao <skao@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-by: Vincent Chen <zochen@nvidia.com>
Reviewed-by: Eric Chuang <echuang@nvidia.com>
10 years agoarm: tegra: tn8: Update Tdiode shutdown threshold
Roger Ma [Wed, 28 May 2014 03:41:08 +0000 (11:41 +0800)]
arm: tegra: tn8: Update Tdiode shutdown threshold

Update Tdiode (PMIC GPADC3) auto shutdown threshold to 110C
with ADC value of 1980 based on thermal team's test result.

Bug 1514756
Bug 1516642

Change-Id: Ib07c0cc4df10a157cd9101558d582200a1033ac5
Signed-off-by: Roger Ma <roma@nvidia.com>
Reviewed-on: http://git-master/r/415555
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Jinyoung Park <jinyoungp@nvidia.com>
10 years agostaging: iio: adc: palmas: Add current source init
Jinyoung Park [Thu, 20 Mar 2014 08:51:56 +0000 (17:51 +0900)]
staging: iio: adc: palmas: Add current source init

Added current source initialization for CH0 and CH3 before
auto conversion configuration.
The current sources should be configured with preferred settings
before perform auto conversion to get expected result of auto conversion.

Bug 1514756

Change-Id: I1c5440f8021a90f3eee4b80c3f70ab1956ac0cf5
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
(cherry picked from commit 9922a2d86d54a8eb353b9fc33ba345e19e20a05b)
Reviewed-on: http://git-master/r/414750
Reviewed-by: Roger Ma <roma@nvidia.com>
Tested-by: Roger Ma <roma@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
10 years agoiio: adc: palmas: add dt support for autoconversion
Laxman Dewangan [Fri, 4 Apr 2014 15:46:56 +0000 (21:16 +0530)]
iio: adc: palmas: add dt support for autoconversion

Add DT parsing for auto conversion configurations on palmas-adc.
The autoconversion subnode is require as
 gpadc {
::::
auto_conv0 {
// Auto-conversion 0 parameters
};
auto_conv1 {
// Auto-conversion 1 parameters
};
::::::::
};

Change-Id: Id730213f6d5c685efef65cee9c74c4e33c81c66c
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/392401
(cherry picked from commit cc243afc6ecf4b49d2193605c37c6cc61aff6ae9)
Reviewed-on: http://git-master/r/414747
Reviewed-by: Roger Ma <roma@nvidia.com>
Tested-by: Roger Ma <roma@nvidia.com>
GVS: Gerrit_Virtual_Submit

10 years agoarm: tegra: tn8: Add new P1761-A04-E dts
Roger Ma [Sat, 24 May 2014 13:18:51 +0000 (21:18 +0800)]
arm: tegra: tn8: Add new P1761-A04-E dts

Enabling Tdiode auto shutdown based on BOM revision,
Tdiode temperature 95C corresponds to Tdiode ADC raw
value 2025 with current source 400uA on P1761-A04-E.

Bug 1516642

Change-Id: Ib4701a7583b6afeae32667654891be74a9a186b0
Signed-off-by: Roger Ma <roma@nvidia.com>
(cherry picked from commit 5f1bd8af471763213746805f835b8835f3bf5b2a)
Reviewed-on: http://git-master/r/414746
GVS: Gerrit_Virtual_Submit
Reviewed-by: Eric Chuang <echuang@nvidia.com>
10 years agoHID: add remove function in nv hidraw
Vinayak Pane [Wed, 14 May 2014 00:23:22 +0000 (17:23 -0700)]
HID: add remove function in nv hidraw

Adding remove function to remove sysfs attribute nodes
when blake is disconnected.

Bug 200003632

Change-Id: I5bf571176d2653b9f74f548775da904ef93007c8
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/410596
(cherry picked from commit 9904c21f42b14f3675c27ef2646eae669440bd07)
Reviewed-on: http://git-master/r/409169
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Eric Chuang <echuang@nvidia.com>
GVS: Gerrit_Virtual_Submit

10 years agopower: extcon: Add Maxim Charger Support
Philip Rakity [Wed, 23 Apr 2014 20:09:21 +0000 (21:09 +0100)]
power: extcon: Add Maxim Charger Support

bug 1321188
bug 1456402

Change-Id: Ic8a4b1c35ff12c10fd8930b745186c5b2027034c
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/400493
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>
10 years agousb: gadget: tegra: Maxim 14675 driver support
Philip Rakity [Tue, 11 Feb 2014 16:14:34 +0000 (16:14 +0000)]
usb: gadget: tegra: Maxim 14675 driver support

Support Maxim 14765 detection

bug 1321188
bug 1456402

Change-Id: I8802b4f35493c99f770f68bef797177268eb6300
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/400491
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Rakesh Babu Bodla <rbodla@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
10 years agophy usb: add Maxim Fast Charger information
Philip Rakity [Tue, 11 Feb 2014 16:06:52 +0000 (16:06 +0000)]
phy usb: add Maxim Fast Charger information

Maxim 14675 charger support at the PHY layer

Bug 1321188
Bug 1456402

Change-Id: I31d672e82f9f3a4ccf5a8db75df8f7e12f30a63b
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/400490
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Rakesh Babu Bodla <rbodla@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
10 years agovideo: tegra: dc: update cursor clip window
Lael Jones [Tue, 25 Mar 2014 22:58:55 +0000 (15:58 -0700)]
video: tegra: dc: update cursor clip window

- Cursor clip window register bits are 29:28 and
  should use a shift of 28 instead of 29
- After programming the clip window in
  tegra_dc_ext_cursor_clip it is necessary to do
  an update so subsequent r-m-w or the register
  will pick up the correct value
- Shift the clip window into the correct bits
  inside of set_cursor_start_addr

Bug 1488085
Bug 200006001

Signed-off-by: Lael Jones <lajones@nvidia.com>
Change-Id: I8874ec089f7c3b28f36b9d958d08606244bf4c54
Reviewed-on: http://git-master/r/386505
(cherry picked from commit 1db481c4000dc977dc85f6c8b1dc344781bfd44d)
Reviewed-on: http://git-master/r/413407
(cherry picked from commit fe70be032d85d91bf9ec0e296db3ec9cb372ccdd)
Reviewed-on: http://git-master/r/414178
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
10 years agopower: bq2419x: disable otg for 30s when fault happens
Syed Rafiuddin [Fri, 10 May 2013 15:12:51 +0000 (20:42 +0530)]
power: bq2419x: disable otg for 30s when fault happens

disable OTG mode when over temprature and over current
interrupt occurs and re-enable OTG mode after 30sec.

Bug 1285652
Bug 1359035

Change-Id: I20aeddc61a26e1e9930d99170e313fc2610e8dbe
Reviewed-on: http://git-master/r/228770
(cherry picked from commit 68e9930f230b8b2bbbf1d931ad3fbe89d80135c5)
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/413191
(cherry picked from commit cb0829aa9b29156795c6eabe56d4d1c046dabbe8)
Reviewed-on: http://git-master/r/415641
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

10 years agovideo: tegra: nvmap: Do not set DMA addr on carveout
Terje Bergstrom [Fri, 9 May 2014 12:13:08 +0000 (15:13 +0300)]
video: tegra: nvmap: Do not set DMA addr on carveout

Do not set DMA address on allocations from carveout.

Bug 1500983

Change-Id: Iafd53a25b7ddd59cbc7717e7dbfca680ab3cdcf0
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/407599
(cherry picked from commit 41e9f75c752d6b5010a499dedefa40289eee8cc1)
Reviewed-on: http://git-master/r/415232

10 years agotegra: mc: Add missing mc error description
Sami Kiminki [Tue, 20 May 2014 15:15:54 +0000 (18:15 +0300)]
tegra: mc: Add missing mc error description

Add MC error description for combination INVALID_SMMU_PAGE +
DECERR_VPR + DECERR_EMEM.

Bug 1500983

Change-Id: I37158c843ff534ab22f9ada0c66ae1d3d76bf650
Signed-off-by: Sami Kiminki <skiminki@nvidia.com>
Reviewed-on: http://git-master/r/412102
(cherry picked from commit ea8e9e5251c4bc24df93c4d964f7546569647972)
Reviewed-on: http://git-master/r/415231
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
10 years agomedia: tegra: nvavp: Handle missing DMA address
Sami Kiminki [Tue, 20 May 2014 15:37:50 +0000 (18:37 +0300)]
media: tegra: nvavp: Handle missing DMA address

If DMA address is not defined, use the physical address.

Bug 1500983

Change-Id: Ib2ceea2c910f3dbb9ea61580669dd4ae52ddba29
Signed-off-by: Sami Kiminki <skiminki@nvidia.com>
Reviewed-on: http://git-master/r/412106
(cherry picked from commit 9643861e8a20312c0d3df546f95494353736d373)
Reviewed-on: http://git-master/r/415230
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
10 years agogpu: nvgpu: Handle missing DMA address
Sami Kiminki [Fri, 9 May 2014 15:58:13 +0000 (18:58 +0300)]
gpu: nvgpu: Handle missing DMA address

If DMA address is not defined, use the physical address.

Bug 1500983

Change-Id: Ic33b21f74c8c2760e43146b87eec7ea467fc87be
Signed-off-by: Sami Kiminki <skiminki@nvidia.com>
(cherry picked from commit 8ae9a6567349241ce1cfff383526b0d9d39c28a1)
Reviewed-on: http://git-master/r/415229
Reviewed-by: Tony Ly <tly@nvidia.com>
Tested-by: Tony Ly <tly@nvidia.com>
10 years agovideo: tegra: dc: Handle missing DMA address
Sami Kiminki [Fri, 9 May 2014 13:57:13 +0000 (16:57 +0300)]
video: tegra: dc: Handle missing DMA address

If DMA address is not defined, use the physical address.

Bug 1500983

Change-Id: I73f41c32ffbf8bd4cdcb0500acf9a9a884e82231
Signed-off-by: Sami Kiminki <skiminki@nvidia.com>
(cherry picked from commit f4f571b9e66c82001b23927b4c70e75d3f1db007)
Reviewed-on: http://git-master/r/415228
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
10 years agovideo: tegra: host: Handle missing DMA address
Terje Bergstrom [Fri, 9 May 2014 12:11:46 +0000 (15:11 +0300)]
video: tegra: host: Handle missing DMA address

If DMA address is not defined, use the physical address.

Bug 1500983

Change-Id: I03820411760877c2fe094b88b180a3621350d5b4
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
(cherry picked from commit 6384218bdd67f6f22a415ca6eb09dbaf7192cee8)
Reviewed-on: http://git-master/r/415227
Reviewed-by: Automatic_Commit_Validation_User
10 years agostaging: iio: light: iqs253: modify init sequence
Sri Krishna chowdary [Mon, 26 May 2014 07:08:44 +0000 (12:38 +0530)]
staging: iio: light: iqs253: modify init sequence

Modify initialization sequence to let iqs253 sensor
tune itself to the environment. Once tuning is done
disable ATI, DYCAL, ACF, specify LTA Halt time as always and
keep the device in streaming mode as event mode can have issues.

With this, the delay to detect user proximity event reduced
from 20 secs to less then 1 secs. However, the very first time
after reboot when user stays in vicinity of device for around 30 secs,
detecting user away takes around 30 secs. After that this issue does not
occur.

Also, reduce the work queue delay to 1 sec.

Bug 1499925

Change-Id: I00b0d9a5381ec14b71eb6b5a76a651eb015969d5
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/414867
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
10 years agonet: wireless: bcmdhd: optimize scan time
Narayan Reddy [Fri, 9 May 2014 08:28:30 +0000 (13:58 +0530)]
net: wireless: bcmdhd: optimize scan time

modify DHD_SCAN_UNASSOC_ACTIVE_TIME and
DHD_SCAN_ASSOC_ACTIVE_TIME to 65 and 35 msec to save
300 msec of active scan time in non associated state and
100 msec in case of associated state.

Bug 1512114

Change-Id: I902400763d0e64ee020ff4650253e4934527c0e3
Signed-off-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-on: http://git-master/r/407443
Reviewed-by: Mohan Thadikamalla <mohant@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
10 years agovideo: tegra: dc: fix nvsd smooth_k handling
Daniel Solomon [Fri, 18 Apr 2014 04:15:01 +0000 (21:15 -0700)]
video: tegra: dc: fix nvsd smooth_k handling

When smooth_k is enabled, the NVSD driver determines
that hardware pixel gain and brightness calculations
are complete when it sees to consecutive and equal
brightness values. However, since multiple raw K
values are mapped to a single brightness value,
this check can be misleading.

To fix this, we continue checking for new brightness
values for a few additional frames after seeing repeating
brightness results. The number of frames is calculated
from smooth_k_incr.

Bug 1502587

Change-Id: I97f2ecd77398cf441ac720b6e306e0a1c89eed5d
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/415444
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>
10 years agoarm: tegra: change prism settings for tn8
Aly Hirani [Thu, 22 May 2014 03:48:45 +0000 (20:48 -0700)]
arm: tegra: change prism settings for tn8

Change the aggressiveness and k_limit for the TN8 panel based on the
initial feedback.

Change-Id: Ib37d1551ba0ee05c851cc6e184ad67b3652cd911
Signed-off-by: Aly Hirani <ahirani@nvidia.com>
Reviewed-on: http://git-master/r/414706
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>
10 years agoAsoc: Fix BT voice call issue
Manoj Gangwal [Fri, 23 May 2014 14:12:06 +0000 (19:42 +0530)]
Asoc: Fix BT voice call issue

1) When call window is minimised, 'touch'sound
gets played. In this case DAM is not used.
So this will bypass the DAM used in BT call
and cause the audio loss in DL.
This change will not allow to bypass the DAM
when BT voice call is in progress.

2) Fix system sound mixing with BT voice call.

Bug 200001921

Change-Id: I9560593375bce173aa25ee2c79e8b8a1166bb5be
Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/414161
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>
10 years agopower: extcon:add mutex lock to avoid race condition on usb events
Venkat Reddy Talla [Tue, 20 May 2014 11:43:10 +0000 (17:13 +0530)]
power: extcon:add mutex lock to avoid race condition on usb events

adding mutex lock to avoid race condition while notifying
charger cable connected/removed events from USB module.

Change-Id: I77708441dd8215533a165c688ba96cf9c10dc8a3
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/412017
(cherry picked from commit 5e6c7197c2e984f8201b59043e714dfff5586df3)
Reviewed-on: http://git-master/r/412973
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
10 years agoARM: tegra: support max board voltage for maxim
Philip Rakity [Thu, 24 Apr 2014 16:29:11 +0000 (17:29 +0100)]
ARM: tegra: support max board voltage for maxim

new maxim wall charger can be programmed to handle up to
20v output.  Tegra cannot handle loads this high.

define a device tree entry that allows the maximum
board voltage to be known.

bug 1321188
bug 1456402
bug 1459867

Change-Id: Ibb418dfac64bf226e026c9ec4a0fa6cafc4a5c6e
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/409830
GVS: Gerrit_Virtual_Submit
Reviewed-by: Rakesh Babu Bodla <rbodla@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
10 years agopower: lc70903f: return old temp of device read failed
Laxman Dewangan [Thu, 22 May 2014 10:02:39 +0000 (15:32 +0530)]
power: lc70903f: return old temp of device read failed

It is observed that device read failed once in while when reading
temp from device. The next read success. To resolve the temp read fail
from device, return last temperature read from device.

bug 200006331

Change-Id: Ic305dbc013a44e71490b9c4defe752319cb22b44
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/413137
Tested-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/415270
Reviewed-by: Tony Ly <tly@nvidia.com>
Tested-by: Tony Ly <tly@nvidia.com>
10 years agogpu: nvgpu: mm: free allocations on validate error
Shridhar Rasal [Tue, 22 Apr 2014 15:45:25 +0000 (21:15 +0530)]
gpu: nvgpu: mm: free allocations on validate error

Free allocated virtual address when marking PTE for validation
or update fails.

Bug 1479803

Change-Id: I9a8bd7c245b478f4252a261f246002fcc65d750d
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
(cherry picked from commit b5c0ad4e00dfc86b65e8efe3d8691b5cfaafbe4c)
Reviewed-on: http://git-master/r/415250
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
10 years agoi2c-algo-bit: fix scheduling while atomic
Allen Yu [Mon, 19 May 2014 16:33:36 +0000 (00:33 +0800)]
i2c-algo-bit: fix scheduling while atomic

i2c transfer using bit-banging may be in atomic context.
This patch avoid relinquishing processor during try_address()
in case of atomic context transfer.

Bug 200005734

Change-Id: I5ed18588acc9f7d46c840f218d194086ac09bb94
Signed-off-by: Allen Yu <alleny@nvidia.com>
Reviewed-on: http://git-master/r/411560
Reviewed-on: http://git-master/r/415021
Reviewed-by: Robert Shih <rshih@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Eric Chuang <echuang@nvidia.com>
10 years agotime: tegra: post-lp0 sync system to rtc time
Bitan Biswas [Thu, 22 May 2014 18:44:47 +0000 (00:14 +0530)]
time: tegra: post-lp0 sync system to rtc time

Ensure system time is read from rtc i.e. PMIC RTC
in case of tegra after system resume.
 - Change is applicable to all PMIC RTC drivers.

bug 1510843

Reviewed-on: http://git-master/r/413365/
Reviewed-on: http://git-master/r/414163/
Reviewed-on: http://git-master/r/414169/
Reviewed-on: http://git-master/r/414200/
Change-Id: I8194f9f4be581216d662e6a6e0d7e98a9495159c
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/414201
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
10 years agovideo: tegra: dc: fix typo in window emc
Jon Mayo [Thu, 1 May 2014 18:36:02 +0000 (11:36 -0700)]
video: tegra: dc: fix typo in window emc

conditional AND (&&) was mistakenly typed as Bitwise AND (&), resulting
in the condition evaluting to true in some cases when window should not be
considered for EMC bandwidth.

Change-Id: Ie30f2adff81c8a0f469a19e0263880fdb9b9379b
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/404042
(cherry picked from commit 88abc9c97891b33659e2d445c1f71400f1713b6b)
Reviewed-on: http://git-master/r/413455
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>
10 years agovideo: tegra12: dc: set emc clk per la
Xia Yang [Fri, 2 May 2014 23:10:51 +0000 (16:10 -0700)]
video: tegra12: dc: set emc clk per la

Update emc clock rate as necessary per latency allowance.

Bug 1495454
Bug 1486711

Change-Id: I9ce15517047974d08026b4cbfeb889f31db9d31d
Signed-off-by: Xia Yang <xiay@nvidia.com>
Reviewed-on: http://git-master/r/404643
(cherry picked from commit 0b0fa33d528fdc3252489d792a3dabc00eae51f6)
Signed-off-by: Peter Zu <pzu@nvidia.com>
(cherry picked from commit 8ecabd43bfb0a1c4ddc06ababd5a58d1f12cf2a2)
Reviewed-on: http://git-master/r/412307
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Tested-by: Thomas Cherry <tcherry@nvidia.com>
10 years agoarm: tegra: t124: add emc clock for disp la
Xia Yang [Thu, 8 May 2014 23:21:55 +0000 (16:21 -0700)]
arm: tegra: t124: add emc clock for disp la

Add new EMC clock for display controller latency allowance

Change-Id: Ia73de5b447b2344f9a9c475e9b89a2387cfcc0e0
Signed-off-by: Xia Yang <xiay@nvidia.com>
Reviewed-on: http://git-master/r/407158
(cherry picked from commit 82de4e40a59cff30bb504954d11b4aeed396699f)
Signed-off-by: Peter Zu <pzu@nvidia.com>
(cherry picked from commit c0e2349e966cc1b8d3d4a9fd7ccd7ebd53b07fd2)
Reviewed-on: http://git-master/r/412306
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Tested-by: Thomas Cherry <tcherry@nvidia.com>
10 years agovideo: tegra12: dc: use min la API
Adeel Raza [Fri, 25 Apr 2014 20:53:10 +0000 (13:53 -0700)]
video: tegra12: dc: use min la API

Use the new LA API. The new API gives DC feedback when a display
client's new LA value is less than the minimum LA for the current EMC
frequency. DC needs to take some corrective action for such cases.

Bug 1495454
Bug 1486711

Change-Id: I5f508614ff085bcb7c0726ca98fdc37aa4477f21
Signed-off-by: Adeel Raza <araza@nvidia.com>
Reviewed-on: http://git-master/r/401697
(cherry picked from commit 2386a1f9a5f1ac06a9b57178f3e39e221c53ee65)
Signed-off-by: Peter Zu <pzu@nvidia.com>
(cherry picked from commit 09b79b1bc4f787cf70598b77e7b5b3e76e05a6c4)
Reviewed-on: http://git-master/r/412305
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Tested-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
10 years agoarm: tegra12: la: detect when disp la < min la
Adeel Raza [Fri, 25 Apr 2014 20:44:13 +0000 (13:44 -0700)]
arm: tegra12: la: detect when disp la < min la

Detect when a display client's new LA value is less than the minimum LA
for the current EMC frequency. Return an error in such a case and let
the display driver take corrective action.

Bug 1495454
Bug 1486711

Change-Id: I8bda8a01cc657e3774213a5e2e6dd38f21220010
Signed-off-by: Adeel Raza <araza@nvidia.com>
Reviewed-on: http://git-master/r/401696
(cherry picked from commit d161832ca7a48fe958677e5520a6aab49c50f004)
Signed-off-by: Peter Zu <pzu@nvidia.com>
(cherry picked from commit 71dfdb44e84e31d5026c8dae1aac5f36369a7b6a)
Reviewed-on: http://git-master/r/412304
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Tested-by: Thomas Cherry <tcherry@nvidia.com>
10 years agovideo: tegra12: dc: use correct DVFS time function
Adeel Raza [Thu, 20 Mar 2014 17:33:56 +0000 (10:33 -0700)]
video: tegra12: dc: use correct DVFS time function

Use the correct function to query the DVFS clock change latency value.

Bug 1327082

Change-Id: If913cb7fdcc1fb53fbabde97654c5fee11be779b
Signed-off-by: Adeel Raza <araza@nvidia.com>
Reviewed-on: http://git-master/r/384487
(cherry picked from commit d9c42e5bc506d92c0417b61fb906289398afeda4)
Signed-off-by: Peter Zu <pzu@nvidia.com>
(cherry picked from commit 0c98e5ef1d2c6d6e7e4a6b468bf3431c29138c46)
Reviewed-on: http://git-master/r/412303
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Tested-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User