5 years agoasoc: codecs: rt5639: switch codec system clock
Simon Je [Fri, 2 Aug 2013 00:59:57 +0000]
asoc: codecs: rt5639: switch codec system clock

We need to switch the codec system clock to
internal clock only when bias level is OFF
when plugggin earjack.

Bug 1340840

Change-Id: I01ad0ccff952c1f811d24cb22fde70192753d77e
Signed-off-by: Simon Je <sje@nvidia.com>
(cherry picked from commit a438685c653c1cd79d1edb057a678276f2dc7cfe)
Reviewed-on: http://git-master/r/281660
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

5 years agostaging: iio: light: cm3217: report valid events
Sri Krishna chowdary [Fri, 16 Aug 2013 13:02:28 +0000]
staging: iio: light: cm3217: report valid events

1. polling delay set by user should be greater than
minimum time that an ADC conversion of luminance happens.
Else sensor will simply report zero.

2. After enabling the sensor, wait for one polling delay
before start reading the luminance values.

Bug 1350036

Change-Id: I64facd1a6ee7ef1870ce1ef90942e444b9744a3a
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
(cherry picked from commit bfa4af9fb1499f04fc56b45d31e31b4db17f2f86)
Reviewed-on: http://git-master/r/281704
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: David Yu (Engrg-SW) <davyu@nvidia.com>
Tested-by: David Yu (Engrg-SW) <davyu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agoinput: misc: akm8975: fix kernel panic on shutdown
David Yu [Wed, 11 Sep 2013 11:46:51 +0000]
input: misc: akm8975: fix kernel panic on shutdown

When device is full flashed then reboots, sometimes akm_probe() and
akm_shutdown() races. akm_shutdown() release all the resources thus kernel
panic can occur in akm_probe().

Change-Id: I4ba2d3fc36dd919306637ec550a098e3f174f159
Signed-off-by: David Yu <davyu@nvidia.com>
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Reviewed-on: http://git-master/r/273088
(cherry picked from commit a1f0baffc0350c3a94e39f5aece9da97d7baf657)
Reviewed-on: http://git-master/r/280965
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agoinput: misc: mpu: fix nvi_pwr_mgmt_1_war
David Yu [Sun, 8 Sep 2013 03:20:36 +0000]
input: misc: mpu: fix nvi_pwr_mgmt_1_war

Interrupt is not generated after nvi_accl_enable intermittently.
Not reading i2c after i2c write failure fixes the issue.

Bug 1362994

Change-Id: Icf97b39e740f14d8d76519116e73a38c7f08eed0
Signed-off-by: David Yu <davyu@nvidia.com>
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Reviewed-on: http://git-master/r/271849
(cherry picked from commit 7fe774334a1a255fbc37710a89b6f2656a3881d2)
Reviewed-on: http://git-master/r/280964
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agoarm: tegra: add FIQ WAR for t11x non-secure
Xin Xie [Wed, 25 Sep 2013 01:04:29 +0000]
arm: tegra: add FIQ WAR for t11x non-secure

On Tegra T11x WDT FIQ is not routed to the GIC, so we cannot use Tegra
WDT for soft-hang debugging.

This WAR is to configure GIC group0 to generate the FIQ to CPU, and only
let WDT routed to GIC group0. All other normal IRQs will use GIC group1.
This WAR is only applicable to non-secure OS build; secure OS build will
treat FIQ as secure interrupt for enterring monitor.

This patch is based on previous work of Lucas Dai and Bo Yan.

bug 1277869
bug 1357562

Change-Id: Ie9a05f9f2974d2b9fb2d09f7847639e553917cb7
Signed-off-by: Xin Xie <xxie@nvidia.com>
Reviewed-on: http://git-master/r/268797
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agoarm: add support for GIC FIQ WAR
Xin Xie [Wed, 25 Sep 2013 00:51:20 +0000]
arm: add support for GIC FIQ WAR

The FIQ WAR requires all the IRQs using the GIC group1, and let the FIQ
use GIC group0 only. This patch will set all the normal IRQs to group1
if GIC WAR is enabled.

bug 1277869
bug 1357562

Change-Id: I8993445850d2221f93b59d18e45d77d81903a616
Signed-off-by: Xin Xie <xxie@nvidia.com>
Reviewed-on: http://git-master/r/278583
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bo Yan <byan@nvidia.com>

5 years agomisc: cec: defer suspend if init is in progress
Deepak Nibade [Tue, 24 Sep 2013 10:13:11 +0000]
misc: cec: defer suspend if init is in progress

- there is below race condition in cec driver :
  -tegra_cec_init() is in progress which is setting many registers
  -suspend is called at the same time
  -tegra_cec_suspend() disables clock before tegra_cec_init() completes
- above race condition hangs the system with trying to write cec
  register while clock is off
- fix this race condition by deferring suspend if init is still in
  progress

Bug 1360341

Change-Id: I0450db565e864f289d1ce5af13b43ee8ad4f0ee6
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/278381
(cherry picked from commit 58effacbdd01c2b6e71023cae828b2eaddbbb4bf)
Reviewed-on: http://git-master/r/278324
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: Tegra: clock: Clock set latency tracing
Antti P Miettinen [Mon, 15 Apr 2013 12:46:56 +0000]
ARM: Tegra: clock: Clock set latency tracing

Add traces for clock set latency measurements.

Change-Id: I5bdd00145f32da59ed294c8414d44fba8f3a81ca
Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com>
Reviewed-on: http://git-master/r/219386
(cherry picked from commit 44d36b249a3e7d21d044a5742e870da85605ea33)
Reviewed-on: http://git-master/r/277485
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agommc: tegra: Handle retune request case in tuning
R Raj Kumar [Thu, 19 Sep 2013 09:17:28 +0000]
mmc: tegra: Handle retune request case in tuning

Need to handle retune request case also in the tuning procedure.
We set retune flag if we remove (un-plug) SD card.
So, tuning should be done next time when SD card is inserted.

Bug 1371498

Reviewed-on: http://git-master/r/276608
(cherry picked from commit 81b476aa49803ef7373432c9a00f905c69354c4d)
Change-Id: I1c1232313aefe835f9c71dac10a2fe2034853d2a

Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Change-Id: I88edf3b74f419a0f09d2167d24b8bab8e68b11f1
Reviewed-on: http://git-master/r/278366
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

5 years agommc: tegra: full win should be 50% of partial win
R Raj Kumar [Wed, 17 Jul 2013 11:50:07 +0000]
mmc: tegra: full win should be 50% of partial win

Continue tuning procedure for full window calculation,
for the full window size is greater or equal to 50% of
partial window size, else choose partial window.

Bug 1368929

Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/252339
(cherry picked from commit 9aec071afaa966a94c01f937ae67e0c4a54d455e)

Change-Id: Iaf3fc1dad0a1ee9928ab8c8eae795db048048a8e
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/278239
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Tested-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agoArm: tegra: Update MCCPU actmon parameters
Puneet Saxena [Tue, 24 Sep 2013 06:36:51 +0000]
Arm: tegra: Update MCCPU actmon parameters

With existing MCCPU parameters Emc scales up
always from emc MAX value. This is not needed as
static cpu-emc ratio boosts emc immediately.

The change sets mccpu parameters as to scale emc freq
aggressively from a lower base value.

Bug 1352917

Change-Id: I784166833d0387c734c8e13fa633d96f2e345998
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-on: http://git-master/r/278197
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agoarm: tegra: Handle down interrupt of actmon
Karthik Ramakrishnan [Tue, 24 Sep 2013 04:47:26 +0000]
arm: tegra: Handle down interrupt of actmon

When the cpu load starts going down, the down interrupt is
disabled. This stops further interrupts and if missed, the emc
frequency is locked to high.

The change re-enables down watermark interrupts if gets disabled
due to emc lock.

Bug 1352917

Change-Id: I838eb05b313f9ddc287226c25f23e115fe117599
Signed-off-by: Karthik Ramakrishnan <karthikr@nvidia.com>
Reviewed-on: http://git-master/r/278131
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-by: Wen Yi <wyi@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoarm: tegra: power: keep ldousb enable during lp0
Rick Song [Sat, 21 Sep 2013 03:23:30 +0000]
arm: tegra: power: keep ldousb enable during lp0

Need keep ldousb enable during lp0, otherwise the bus
state can't keep at suspend state, and will cause bus
reset from host during resume.

Bug 1361789

Change-Id: I7010bb0cfa564bac04add85bd9d99507c7fb547f
Signed-off-by: Rick Song <ricks@nvidia.com>
Reviewed-on: http://git-master/r/277462
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Martin Chi <mchi@nvidia.com>
Tested-by: Martin Chi <mchi@nvidia.com>

5 years agovideo: tegra: Include mutex to protect Kfuse reads
sharath [Fri, 2 Aug 2013 02:02:29 +0000]
video: tegra: Include mutex to protect Kfuse reads

Included a mutex to protect the simultaneous kfuse
reads by nvhost driver and nvhdcp driver.

bug 1179007

Change-Id: I780ead40352b081c5ffe533db9ea09f12d14c3e1
Signed-off-by: sharath <ssarangpur@nvidia.com>
Reviewed-on: http://git-master/r/257206
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agothermal: Add palmas thermal support
Pradeep Goudagunta [Thu, 29 Aug 2013 10:55:42 +0000]
thermal: Add palmas thermal support

Palmas series pmic chip supports hot die interrupt configurable for
four different critical temperature thresholds.

Bug 1355680
Bug 1167941

Change-Id: I0167d5faf5be596018ec34d67911dd631d2cc71f
Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Reviewed-on: http://git-master/r/267913
(cherry picked from commit c102e29ad47ef3dfcdd12d49b58cf1dfeff26652)
Reviewed-on: http://git-master/r/276605
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agomfd: palmas: Add palmas_thermal init
Pradeep Goudagunta [Mon, 2 Sep 2013 05:49:09 +0000]
mfd: palmas: Add palmas_thermal init

Initialize palmas_thermal driver, add palmas_thermal as mfd_cell
and irq resources.

Bug 1355680

Change-Id: Ia874afc435791bb905ea79b963b6e3412c343fc6
Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Reviewed-on: http://git-master/r/267914
(cherry picked from commit 856815055eb7b9864668ce6172fc26a3c86dc2aa)
Reviewed-on: http://git-master/r/276604
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agosecurity: tf_driver: integrate latest TL release
Hyung Taek Ryoo [Thu, 12 Sep 2013 17:30:36 +0000]
security: tf_driver: integrate latest TL release

Tegra4 version: TF_TEGRA4_AC02.08p5.40671

This version fixes the corruption of secure os(TF) stack which is caused by
unexpected hardware cache activities at the time of core #0 wakes up from
per-core power gating.
Caches ON while go to sleep and L1 cache is all cleaned before the sleep,
while L2 cache is selectively cleaned because it's preserved during
the sleep of the cores so L2 cache has some dirty lines from the secure world.
When core #0 wakes up, it turns on i-, d-caches but MMU is still off at this
moment. During this time the wake up process starts synching (flushing) cache
to SDRAM. Until MMU is ON, core #0 uses stacks data from SDRAM, not from the
data cache. It is enough to flush the old line of stack to SDRAM in order to
corrupt call-return linkage if it accidently happens during such stack usage.
To fix this issue, TF cleans the cache lines related to secure os stack
after they have been used last time just before returning to normal OS.

Bug 1330053
Bug 1356121

Change-Id: I1b8ba453f9e4e0f21e65667b54ed5ce4bcee8ff1
Signed-off-by: Hyung Taek Ryoo <hryoo@nvidia.com>
Reviewed-on: http://git-master/r/276089
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bo Yan <byan@nvidia.com>

5 years agocpufreq: interactive: Add consecutive I/O
Jinyoung Park [Wed, 21 Aug 2013 14:33:46 +0000]
cpufreq: interactive: Add consecutive I/O

Treat I/O wait as CPU busy if I/O processing is occurred on
the consecutive samples.

Bug 1332115
Bug 1351808

Change-Id: Ie47737a10b4896c8bef09181cca644f888ab2ac4
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/264419
(cherry picked from commit 5e0968a40df300cd2d43fcad80a0c1eff5025a0b)
Signed-off-by: Li Li <lli5@nvidia.com>
Reviewed-on: http://git-master/r/272660
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra11: Dalmore: Enable pike gpios and irq
Ankita Garg [Thu, 19 Sep 2013 17:59:01 +0000]
ARM: tegra11: Dalmore: Enable pike gpios and irq

This patch enables the GPIOs and IRQ for the Pike module on
Dalmore. If the pike module is detected, it is enabled instead
of the camera and the motion sensors.

Bug 1312065

Change-Id: I4bb2878291af3d8ecffa1e36c20bbf5b39db06d1
Signed-off-by: Ankita Garg <ankitag@nvidia.com>
Reviewed-on: http://git-master/r/256545
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra11: common: Add cmdline to detect Pike
Ankita Garg [Thu, 19 Sep 2013 17:55:24 +0000]
ARM: tegra11: common: Add cmdline to detect Pike

Add the kernel commandline parameter "pike" to detect
the presence of the Pike module

Bug 1312065

Change-Id: I66a1d8ad8a17eb71ef63cd627e56dee3ea5b479b
Signed-off-by: Ankita Garg <ankitag@nvidia.com>
Reviewed-on: http://git-master/r/276778
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

5 years agonfc: return if NFC is in shutdown state
Rakesh Goyal [Tue, 17 Sep 2013 20:50:46 +0000]
nfc: return if NFC is in shutdown state

Bug 1362875
Change-Id: Ic5cac6b2e5899fb6eb63d873e567ee77bc8bc390
Signed-off-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-on: http://git-master/r/275969
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agomedia: video: tegra: ov9726 bad pixel cancellation
Hu He [Tue, 10 Sep 2013 21:24:43 +0000]
media: video: tegra: ov9726 bad pixel cancellation

Change a register setting for OV9726 to enable
sensor's black and white pixel cancellation.

Bug 1357956

Change-Id: I6ec49a90c7fda25d229e99bd5235fea4cb1bc17f
Signed-off-by: Hu He <hhe@nvidia.com>
Reviewed-on: http://git-master/r/272729
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: John Sasinowski <jsasinowski@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agousb: xhci: tegra: refine shutdown path
Ajay Gupta [Mon, 1 Jul 2013 22:33:46 +0000]
usb: xhci: tegra: refine shutdown path

Ignore calling xhci_shutdown when in ELPG as we are on shutdown. Just
make sure PMC wake detect is disabled.

Issue 9629922@https://login.corp.google.com/

Change-Id: Idfc6c55c37c722af6c36275dd387c8fc26ad2577
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/245651
Reviewed-on: http://git-master/r/272752
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agoARM: tegra: dvfs: Fix predict millivolts interface
Alex Frid [Wed, 18 Sep 2013 05:09:36 +0000]
ARM: tegra: dvfs: Fix predict millivolts interface

Predict millivolts interface selected pll or dfll mode tables based
on target rate and dynamic dvfs state: rail mode, and current dvfs
clock rate. Since interface clients may not be serialized with run
time rate/voltage scaling (e.g., edp client) it opens possibility for
races. On the other hand there is no need to use current dynamically
changes state to select scaling table - comparing target rate, with
initialized once dfll rate range is sufficient. This commit updated
predict millivolts interface accordingly.

Bug 1370030

Change-Id: I89167607d346ed5f2dfe1eedc27aabacd87e7303
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/276139
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agousb: xhci: set tracking data using pmc api
Krishna Yarlagadda [Thu, 5 Sep 2013 17:28:19 +0000]
usb: xhci: set tracking data using pmc api

set tracking data using pmc api for snps when there is
atleast one snps port in use.

Bug 1334159

Change-Id: Id15f31ba487d8ad07485509002392821b99bf8f8
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/272751
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agousb: snps: move tracking data to pmc
Krishna Yarlagadda [Thu, 5 Sep 2013 17:25:34 +0000]
usb: snps: move tracking data to pmc

move tracking data api to pmc code and update
using thsi api

Bug 1334159

Change-Id: Iaf9172545749c558716e94c49fb1e57587a0d25b
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/272750
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agousb: pmc: set utmip tracking data with snps
Krishna Yarlagadda [Thu, 5 Sep 2013 17:18:53 +0000]
usb: pmc: set utmip tracking data with snps

provide api to read tracking data from snps register space

Bug 1334159

Change-Id: Ieb46f178226678295ce5ec03701209b11422bf43
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/270908
Reviewed-on: http://git-master/r/272749
Reviewed-by: Ajay Gupta <ajayg@nvidia.com>
Tested-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Joy Wang <joyw@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
Reviewed-by: Henry Lin <henryl@nvidia.com>

5 years agousb: xhci: tegra: fix tctrl/rctrl logic
Ajay Gupta [Tue, 10 Sep 2013 17:08:22 +0000]
usb: xhci: tegra: fix tctrl/rctrl logic

TCTRL/RCTRL values can be calculated either using xusb PADCTL registers
or using SNPS registers. As per latest discussion with HW team, we must
use SNPS registers when any of UTMIP port is owned by SNPS controller and
use XUSB PADCTL registers only when all UTMIP ports are owned by XUSB.

TCTRL/RCTRL is alwasy needed to be programmed on T114 due to a HW bug but
on T124 it needs to be programmed only during ELPG entry when PMC is being
ARMed. Refer table below on this.

                        T114    T124
1) Init                 Yes     No
2) ELPG entry           Yes     Yes
3) LP0 exit             Yes     No

rel-17 branch doesn't have T124 related changes so only T114 relevant changes
are added here.

Bug 1334159

Change-Id: I0e70ad88ff317c248243039069dbc08b97d8900e
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/272748
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Joy Wang <joyw@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
Reviewed-by: Henry Lin <henryl@nvidia.com>

5 years agoarm: tegra: pluto: update dw9718 focuser cap
David Wang [Tue, 30 Jul 2013 22:52:17 +0000]
arm: tegra: pluto: update dw9718 focuser cap

Modified dw9718 cap to match dalmore board file's
more upto date macro, infinity, and hyper values.

bug 1279119

Change-Id: I7d7f1334d64844b4f7860aa74a825ddc6ed1f490
Signed-off-by: David Wang <davidw@nvidia.com>
Reviewed-on: http://git-master/r/255777
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Michael Stewart <mstewart@nvidia.com>
Reviewed-by: Naren Bhat <nbhat@nvidia.com>
Reviewed-by: John Sasinowski <jsasinowski@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoinput: touch: raydium: v60.6 code drop
Xiaohui Tao [Tue, 17 Sep 2013 17:10:54 +0000]
input: touch: raydium: v60.6 code drop

a. Checkpatch done (Bug ID 1368132)
b. Fix 3.3V control issue (Bug ID 1354253, 1348628) as the attached pictures. The 3.3V is turned off in LP0 mode.
c. Refine suspend/resume timing issue (Bug ID 1359713, 1288233, 1283537)

Bug 1368132
Bug 1354253
Bug 1348628
Bug 1359713
Bug 1288233
Bug 1283537

Change-Id: I468bf04e9eb63ba6b4bb1e646baa73b1fbb55969
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/275861
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agomedia: video: tegra: IMX135: change mode settings
Bhushan Rayrikar [Mon, 16 Sep 2013 19:01:30 +0000]
media: video: tegra: IMX135: change mode settings

Change 3896X2192 mode to 3840X2160 to save power.

Bug 1358534

Change-Id: I2207a87b06228cd7d957a2175d252d1a0680c567
Signed-off-by: Bhushan Rayrikar <brayrikar@nvidia.com>
Reviewed-on: http://git-master/r/275249
(cherry picked from commit ac1717085a84eb95f69554304728b747f44b6b4a)
Reviewed-on: http://git-master/r/275487
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agoinput: touch: maxim: Do not rely on previous state of reset
Xiaohui Tao [Thu, 5 Sep 2013 22:34:35 +0000]
input: touch: maxim: Do not rely on previous state of reset

Currently the driver does a reset in their resume function
(1) rely on previous state of the reset pin
(2) rely on touch_fusion daemon to issue a reset signal

Both of them are not reliable since
(1) The reset pin is possibly not low when the system resumes
due to some racing communication between the daemon/driver/chip
or some communication between the daemon/driver/chip that is
aborted during rapid resume/suspend. This can result in the reset
signal in resume not issued to the chip and it can cause touch
not working.
(1) The chip/daemon may enter some wired state that cannot
recover so that the daemon cannot issue the reset signal correctly.

The solution is to issue a low signal to the chip in resume
function so that it can guarantee that a true reset signal is issued
to the chip.

Bug 1353325

Change-Id: I2ede0dbb8987457cde344cdba12889b708fd95e7
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/268630
(cherry picked from commit 107001b0b70d39a489fe7d708af01a475ff2cc56)
Reviewed-on: http://git-master/r/271078
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agousb: gadget: Tegra: Disable parameters for PM QoS
Antti P Miettinen [Tue, 21 Aug 2012 07:56:38 +0000]
usb: gadget: Tegra: Disable parameters for PM QoS

For testing purposes it is useful to be able to disable
CPU frequency boost.

Bug 1359445

Change-Id: Iab4363b23372055819adaf66265762fb9d1a0a3a
Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com>
Reviewed-on: http://git-master/r/273043
(cherry picked from commit b929aee920208da005e4aefe51dd4fe9b5b3978a)
Reviewed-on: http://git-master/r/273591
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agousb: ehci: Tegra: Disable parameters for PM QoS
Antti P Miettinen [Tue, 21 Aug 2012 07:56:38 +0000]
usb: ehci: Tegra: Disable parameters for PM QoS

For testing purposes it is useful to be able to disable
CPU frequency boost.

Bug 1359445

Change-Id: I33a0369205a1df5cfe97915442e33511941686a8
Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com>
Reviewed-on: http://git-master/r/273042
(cherry picked from commit 92f065702bfd07ea07b0fcd87edb4af0a3530868)
Reviewed-on: http://git-master/r/273586
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agousb: ehci: Tegra: Fix indents
Antti P Miettinen [Thu, 12 Sep 2013 08:16:44 +0000]
usb: ehci: Tegra: Fix indents

Fix indents for avoiding patch conflicts.

Change-Id: I8889b939673b3cafa76c58e844ffaa7330aaca12
Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com>
Reviewed-on: http://git-master/r/273585
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Timo Alho <talho@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agoacm:tty: prevent rx data discarded on throttled.
glei [Thu, 1 Aug 2013 04:18:54 +0000]
acm:tty: prevent rx data discarded on throttled.

Bug 1357628

Change-Id: Ic51f72190e4a2dd9a24d3e39e18d17564134f79a
Signed-off-by: glei <glei@nvidia.com>
Reviewed-on: http://git-master/r/256626
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Neil Patel <neilp@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Steve Lin <stlin@nvidia.com>

5 years agosecurity: tf_driver: integrate latest TL release
Hyung Taek Ryoo [Wed, 14 Aug 2013 18:54:12 +0000]
security: tf_driver: integrate latest TL release

Tegra4 version: TF_TEGRA4_AC02.08p3.40665

This version supports FIQ debugging.

Bug 1295289
Bug 1321825

Change-Id: I8f8826a2237dbd36cc2f3b6b5e5e0cebbf62d145
Signed-off-by: Hyung Taek Ryoo <hryoo@nvidia.com>
Reviewed-on: http://git-master/r/261678
(cherry picked from commit 7849fa4d90a85b89fcb3d4ff8aa9a8aa70758fab)
Reviewed-on: http://git-master/r/274415
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoinput: sensor: compass: Add sec-salve-id for compass
Xiaohui Tao [Wed, 11 Sep 2013 00:49:42 +0000]
input: sensor: compass: Add sec-salve-id for compass

Bug 1356943

Change-Id: If34b39b849e350fd9312b9a73130db13c3571b4c
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/272840
(cherry picked from commit 9f42dfc3cda19db08aec5a01ed124789240c4970)
Reviewed-on: http://git-master/r/273830
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agoarm: tegra: dalmore: fix display blank during boot
Emma Yan [Wed, 11 Sep 2013 08:52:35 +0000]
arm: tegra: dalmore: fix display blank during boot

Please enable TEGRA_DC_OUT_INITIALIZED_MODE for
smooth transition from bootloader to kernel.

Bug 1342524
Bug 1277900

Change-Id: Ib37a5e4221b642f40ee6aa070945fc35774d9608
Signed-off-by: Emma Yan <eyan@nvidia.com>
Signed-off-by: Benjamin Lu <benjaminl@nvidia.com>
Reviewed-on: http://git-master/r/273002
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoEDP: tegra: export VSYS_MIN debugfs attr
Sivaram Nair [Tue, 10 Sep 2013 10:23:48 +0000]
EDP: tegra: export VSYS_MIN debugfs attr

Adding a new debugfs attr for vsys_min psy depletion platform data for
tuning.

Bug 1306298

Change-Id: Id9b7a6affae2216e7bafde55eea2f8eacbe24572
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/272489
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vandana Bansal <vandanab@nvidia.com>
Reviewed-by: Timo Alho <talho@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agoinput: touch: maxim: Refine power control
Xiaohui Tao [Thu, 29 Aug 2013 00:18:01 +0000]
input: touch: maxim: Refine power control

(1) Move regulator control from threaded func to probe func since
the current machanism will kill the direct touch daemon and restart
it when it is not responding. Keeping the regulator code there will
make ref count go up, which will keep the power rail always on.

(2) Do not call suspend/resume in display off case for touch. Touch
suspend/resume should be consistent with display off/on. There is no
need to turn touch on/off in display off case.

Bug 1353325
Bug 1350928

Change-Id: Id9719f04398be0032faf2c9f685400b292458b06
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/267625
(cherry picked from commit 9700803ce3d59714dbc50d425f77d9c0b986c9c9)
Reviewed-on: http://git-master/r/271075
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agomedia: video: tegra: Fix kernel warning for DW9718
Frank Chen [Tue, 11 Jun 2013 19:33:13 +0000]
media: video: tegra: Fix kernel warning for DW9718

Fix unbalanced reference count for power regulator to
prevent kernel from generating warning messages.

bug 1342770

Change-Id: Ie2505ea399ecd7865b69c00f7f51752fdc03c4f7
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/258905
Reviewed-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agomedia: video: tegra: Fix kernel warning for AD5816
Frank Chen [Tue, 11 Jun 2013 19:22:45 +0000]
media: video: tegra: Fix kernel warning for AD5816

Fix unbalanced reference count for power regulator to
prevent kernel from generating warning messages.

bug 1342770

Change-Id: I2e165a205ba58b0478c5f4db3c4b3bb74fa69e07
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/258900
Reviewed-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoRevert "ARM: tegra: pm: turn off VDEC partition in LP1"
Deepak Nibade [Fri, 13 Sep 2013 06:57:41 +0000]
Revert "ARM: tegra: pm: turn off VDEC partition in LP1"

- This essentially disables power gating of VDE partition
  during LP1

- Power gating VDE partition during LP1 was causing below warning
  with CONFIG_DEBUG_ATOMIC_SLEEP enabled
BUG: sleeping function called from invalid context at
/kernel/include/linux/clk.h:164

- fix this warning by reverting commit

Bug 1355279

This reverts commit 8825199f91361961eadf95a977294bf6611310cc.

Change-Id: Ibe997c2e33c3807dbad3e9a38771ff8342b20144
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/274153
Reviewed-by: Rick Song <ricks@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agotegra11: config: enable selinux to permissive mode
James Zhao [Thu, 12 Sep 2013 23:31:56 +0000]
tegra11: config: enable selinux to permissive mode

- Enable SELinux for JB MR2
- Set config option AUDIT, SECURITY, SECURITY_NETWORK,
  SECURITY_SELINUX, EXT4_FS_SECURITY
- All other defconfig changes are side effect of using
  menuconfig

bug 1365452

Change-Id: Icb02b594dc82246c61a0e2d981d794e42b61838e
Signed-off-by: James Zhao <jamesz@nvidia.com>
Reviewed-on: http://git-master/r/274007
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

5 years agoARM: tegra: fix warning during LP0
Deepak Nibade [Wed, 11 Sep 2013 09:38:17 +0000]
ARM: tegra: fix warning during LP0

- with CONFIG_DEBUG_ATOMIC_SLEEP enabled, below warning was seen
BUG: sleeping function called from invalid context at
/kernel/kernel/mutex.c:85

- function 'tegra_get_clock_by_name()' was being called from
  atomic context in 'tegra_lp0_cpu_mode()'

- move function tegra_get_clock_by_name("cclk_lp")
  to separate init function and call it through subsys_initcall()
  to avoid this warning during LP0

Bug 1355279

Change-Id: I42df042051938d75366884946e7f660522f3c26c
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/273034
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoARM: tegra: usb: Set TXFILLTUNING after CMD_RESET
Suresh Mangipudi [Tue, 10 Sep 2013 06:06:49 +0000]
ARM: tegra: usb: Set TXFILLTUNING after CMD_RESET

Program the TXFILLTUNING value after CMD_RESET. CMD_RESET clears
the value of TXFILLTUNING, this needs to be reprogrammed again.

Bug 1318125

Change-Id: I34dcad888ad11f8471cfcfa72dbe20f17527f695
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-on: http://git-master/r/272332
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoarm: tegra: ardbeg: Fix sharp 25x16 panel timings
Animesh Kishore [Fri, 6 Sep 2013 08:59:32 +0000]
arm: tegra: ardbeg: Fix sharp 25x16 panel timings

Bug 1357180

Change-Id: If21ef99eb89e34b76ad8d22bd6c1bfb0003bc5e4
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/271397
(cherry picked from commit 9032a7524fb4f4fc54583be0ec15acab3e494f89)
Reviewed-on: http://git-master/r/273018
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agovideo: tegra: dsi: Make phy warning verbose
Animesh Kishore [Fri, 6 Sep 2013 09:00:17 +0000]
video: tegra: dsi: Make phy warning verbose

Increase verboseness of phy timing warnings.

Bug 1357180

Change-Id: I58577cf4cbab765f23a9edae793e031fbec38a55
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/271398
(cherry picked from commit 661a4a1e1966e79616c89ad18845eef5245c41bb)
Reviewed-on: http://git-master/r/273017
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agonetfilter: xt_qtaguid: Allow tracking loopback
JP Abgrall [Thu, 7 Feb 2013 01:40:07 +0000]
netfilter: xt_qtaguid: Allow tracking loopback

In the past it would always ignore interfaces with loopback addresses.
Now we just treat them like any other.
This also helps with writing tests that check for the presence
of the qtaguid module.

Bug 1343922

Change-Id: I55d31277056d24172d22d32ad26c47dc8c55250a
Signed-off-by: JP Abgrall <jpa@google.com>
Reviewed-on: http://git-master/r/270087
(cherry picked from commit 5d927cc305aa8d0c2e6af9fedda9f5b10d378e16)
Reviewed-on: http://git-master/r/272968
Reviewed-by: Jun Su <juns@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Bibhay Ranjan <bibhayr@nvidia.com>
Tested-by: Bibhay Ranjan <bibhayr@nvidia.com>

5 years agopower: max17048: fix OCV property unit
Hyongbin Kim [Tue, 10 Sep 2013 12:25:30 +0000]
power: max17048: fix OCV property unit

max17048_get_ocv() return unit is already uV.
Remove duplicate multiply.

Bug 1355391

Change-Id: I99adacf9af7f3c043ca043b2a00ce3713b4d40e1
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/272569
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sivaram Nair <sivaramn@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoi2c: tegra: Add debug prints for i2c timed out case
Chaitanya Bandi [Mon, 26 Aug 2013 11:22:28 +0000]
i2c: tegra: Add debug prints for i2c timed out case

Added debug prints for i2c timed out case to
help debug.

Change-Id: Ib0696b8237b90cd511ac224a476dede8fae60ceb
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/266050
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agomedia: video: tegra: IMX135: 640x480 120fps mode
Frank Chen [Fri, 30 Aug 2013 17:52:27 +0000]
media: video: tegra: IMX135: 640x480 120fps mode

Add 640x480 120fps slow motion mode for IMX135

bug 1302356

Change-Id: Ia5a4006e66ddb93e1c4fda76ee246594604ea35c
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/268632
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Philip Breczinski <pbreczinski@nvidia.com>
Reviewed-by: Charlie Huang <chahuang@nvidia.com>
Tested-by: David Wang (SW-TEGRA) <davidw@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agopower: max17048: correct voltage unit to uV
Hyongbin Kim [Mon, 26 Aug 2013 10:50:37 +0000]
power: max17048: correct voltage unit to uV

In framework, voltage unit is uV.

Bug 1355391

Change-Id: I8a8af62850365b298857289c5a6f0d89bf45d47b
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/266048
(cherry picked from commit b5e18de3eebebf8a66bcdaa44b842ac9b1935b45)
Reviewed-on: http://git-master/r/271359
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agopower: max17048: fix bug in version check func
Hyongbin Kim [Wed, 24 Jul 2013 12:03:43 +0000]
power: max17048: fix bug in version check func

1. Add 0x12 version value in max17048_check_battery().
2. remove duplicate call swab16 in max17048_get_version().
3. call max17048_get_version() in probe fuction instead of
max17048_check_battery().

max17048_check_battery() doesn't return version.
using max17048_get_version() is right.

Change-Id: Ie039e1bcffd5b2fb8080f6b3f25bbfc51d52990e
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/252892
(cherry picked from commit 4d914a5bee3f2327fac46db7d49e23e56d9e1991)
Reviewed-on: http://git-master/r/271358
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agommc: tegra: Set timeouts for all wait conditions
Pavan Kunapuli [Wed, 4 Sep 2013 11:52:00 +0000]
mmc: tegra: Set timeouts for all wait conditions

Setting timeout conditions for all waits on mutexes or HW status updates.

Bug 1354967

Change-Id: I769ee2ad2e4e9f7b17d78a72c58525b6e39ea1dc
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/270088
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

5 years agovideo: fbmon: added HDMI_Video_Format condition checking
Emma Yan [Tue, 3 Sep 2013 11:38:59 +0000]
video: fbmon: added HDMI_Video_Format condition checking

Bug 1357380

Change-Id: I4b10c31b1c5124539b648764cfae8b17b5764f0a
Signed-off-by: Emma Yan <eyan@nvidia.com>
Reviewed-on: http://git-master/r/269512
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agommc: tegra: Handle retuning if host is powered off
Pavan Kunapuli [Mon, 2 Sep 2013 08:51:20 +0000]
mmc: tegra: Handle retuning if host is powered off

If the host is powered off, cancel any pending tuning timers and clear
any previously set override voltage requests.

Bug 1353926

Change-Id: I389a6c9a76cd6b0544f773cae0e4709131f54962
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/267313
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

5 years agommc: sdhci: Platform hooks for handling power off
Pavan Kunapuli [Mon, 2 Sep 2013 08:49:30 +0000]
mmc: sdhci: Platform hooks for handling power off

Added platform specific callback to allow for any special handling of
MMC_POWER_OFF.
Bug 1353926

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

5 years agoARM: tegra: dvfs: Restrict vdd core override
Alex Frid [Sun, 21 Jul 2013 03:06:24 +0000]
ARM: tegra: dvfs: Restrict vdd core override

Restricted vdd core override to clocks with dvfs override property.

Bug 1307369

Change-Id: Idaf20ac8ab6016b0ca306190ac7e1327354f99b3
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/251664
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agoARM: tegra11: dvfs: Set override property for sdmmc
Alex Frid [Sun, 21 Jul 2013 05:09:18 +0000]
ARM: tegra11: dvfs: Set override property for sdmmc

Bug 1307369

Change-Id: I622ce0e85e6eb100a834241be5e03565a223b3f3
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/251663
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agoARM: tegra: dvfs: Add override property
Alex Frid [Sun, 21 Jul 2013 02:07:32 +0000]
ARM: tegra: dvfs: Add override property

Bug 1307369

Added "can override" property to dvfs structure. Skipped dvfs tables
with this property when evaluating available rail override range.

Change-Id: Iced4b7917c3d3edc1f7a5ce77009a854bc50a335
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/251662
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Tested-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra11: dvfs: Update sdmmc dvfs tables
Alex Frid [Mon, 1 Jul 2013 21:43:14 +0000]
ARM: tegra11: dvfs: Update sdmmc dvfs tables

Splitted sdmmc dvfs tables between different Tegra11 skus/bins. Allowed
sdmmc maximum rates at the appropriate nominal voltage for each bin.

Bug 1161126
Bug 1307369

Change-Id: Ida3145ab10feb3ef0e2a170e69c4ef5f4c5a84ed
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/244014
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agoarm: tegra: Improve LP1 Low voltage core
Karthik Ramakrishnan [Tue, 20 Aug 2013 22:39:47 +0000]
arm: tegra: Improve LP1 Low voltage core

Enables the Core voltage to be lowered during voice call(LP1)
state. Rearranges code so that the variables are accessible
to code in IRAM. Move the voltage decrease after lp cpu clock
decrease & mselect clock source swith.

Bug 1344148

Change-Id: Ia0c72c83a80f970ec58f5fa754ab9bd69449b65e
Signed-off-by: Karthik Ramakrishnan <karthikr@nvidia.com>
Signed-off-by: Rick Song <ricks@nvidia.com>
Reviewed-on: http://git-master/r/264411
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

5 years agoarm: tegra: bootloader fb free in late_initcall
Min-wuk Lee [Thu, 29 Aug 2013 11:42:47 +0000]
arm: tegra: bootloader fb free in late_initcall

At this moment, bootloader framebuffer memory is freed
in arch_initcall, whereas, kernel framebuffer begins to
be used in dc device register with device_initcall.
It has potential bug to display garbage screen in device
booting. bootloader framebuffer memory should be freed
after dc device register, so move it to late_initcall
frame.

Bug 1346172

Change-Id: I8038d32fcf710295d387f58641f48a9beeb823b9
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/269401
(cherry picked from commit 15c081176787d8470663c6c00699dfe948a436f4)
Reviewed-on: http://git-master/r/270547
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agommc: core: Enable secure sanitize for eMMC4.5
R Raj Kumar [Wed, 4 Sep 2013 13:18:36 +0000]
mmc: core: Enable secure sanitize for eMMC4.5

Enabled secure sanitize operation for eMMC4.5 devices.

Bug 1360376

Change-Id: I54d7de1c1ec7ba0fb2cce3be3fe98e59de73f2b1
Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/270115
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

5 years agoARM: tegra: phy:Do not enable pmc during id unplug
Rakesh Bodla [Mon, 2 Sep 2013 05:40:03 +0000]
ARM: tegra: phy:Do not enable pmc during id unplug

Do not enable pmc when id cable is unplugged
from the system.

Bug 1357517

Change-Id: I6e8adae9da6b15ac44987f8169d7607194983a50
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/268916
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

5 years agoinput: touch: raydium: v60.5 code drop
Xiaohui Tao [Wed, 4 Sep 2013 17:19:48 +0000]
input: touch: raydium: v60.5 code drop

[1] Add check mechanism for adding timer in case resume and watchdog add the same timer at the same time
[2] Fix Slow scan function
[3] Add check mechanism for initialization during resume phase
[4] Modify some code for Kernel 3.8
[5] Improve idle mode stability
[6] Fix idle mode stability issue
[7] Fix LP0 power consumption issue
[8] Turn off touch when display off

Bug 1348628
Bug 1345677
Bug 1311609
Bug 1288233
Bug 1262448
Bug 1246020
Bug 1293127

Change-Id: If4575accb77ea6f6ce6732dd86329f1052f77239
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/270179
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agopower: max17042: Report full status only when charger plugged
Darbha Sriharsha [Tue, 3 Sep 2013 07:04:14 +0000]
power: max17042: Report full status only when charger plugged

The battery gauge should report "100% Full" status only when the
battery is charged to full capacity and the charger is still
connected. When the battery is fully charged but the charger
cable is unplugged, we should report "100% Not Charging" as the
status

Bug 1358884

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

5 years agopower: max17042: Use upper roundoff of soc
Darbha Sriharsha [Tue, 3 Sep 2013 05:55:49 +0000]
power: max17042: Use upper roundoff of soc

Use upper roundoff of soc instead of lower roundoff to
report the final soc value on UI.

Bug 1358884

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

5 years agoARM: tegra11: dvfs: Increase DFLL Vmin for AP40/AP40X
Alex Frid [Wed, 21 Aug 2013 19:09:13 +0000]
ARM: tegra11: dvfs: Increase DFLL Vmin for AP40/AP40X

Increased DFLL Vmin for AP40/AP40X to 1.0V (from 0.9V).

Bug 1355044

Change-Id: Ifd95d34f21cc81877e350e287a5481ee28ea9d60
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/264513
Tested-by: Venkata (Muni) Anda <vanda@nvidia.com>
Reviewed-by: Venkata (Muni) Anda <vanda@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agousb: xhci: tegra: change hs_slew to 0xC
Ajay Gupta [Mon, 19 Aug 2013 16:35:37 +0000]
usb: xhci: tegra: change hs_slew to 0xC

Bug 1254391

Change-Id: I582cf785dd404d677d1558b41d0151bf0399f695
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/263408
Reviewed-by: Henry Lin <henryl@nvidia.com>
Reviewed-by: Jui Chang Kuo <jckuo@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

5 years agoarm: tegra11: fuse: correct JTAG_START_BIT as 8
Haley Teng [Fri, 30 Aug 2013 09:37:47 +0000]
arm: tegra11: fuse: correct JTAG_START_BIT as 8

The start bit of ARM_DEBUG_DIS in fuse programming array for T114 is 8

Bug 1354656

Signed-off-by: Haley Teng <hteng@nvidia.com>
Change-Id: Ie669e2f3a1bb84863f61d4e3d730c2a63639b9a0
Reviewed-on: http://git-master/r/268454
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agoARM: tegra: macallan:update INI data for max17048
Venkat Reddy Talla [Wed, 28 Aug 2013 09:58:07 +0000]
ARM: tegra: macallan:update INI data for max17048

 update battery characterization data for yoku
 battery 4100mAh.

 battery: yoku
 capacity: 4100mAh
 model: macallan

 Bug 1357802

Change-Id: Ice4dfc5a56a90e07e8bf69d5a1c1af7702e31b6d
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/267228
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agoARM: tegra: tegratab: Add min/max temperature for Tdiode
Jinyoung Park [Wed, 17 Jul 2013 10:08:25 +0000]
ARM: tegra: tegratab: Add min/max temperature for Tdiode

Added min/max temperature for Tdiode.

Bug 1287901

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

Change-Id: Ic11fde9b46a4f6d2aa2543dbf792d8910b4d0b45
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/252888
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agommc: host: Fix soft lockup issue
Pavan Kunapuli [Tue, 27 Aug 2013 16:34:21 +0000]
mmc: host: Fix soft lockup issue

This patch fixes the soft lockup that could occur as a result of commit
8c226304. The mutex_unlock call from interrupt context could cause a
deadlock.

This patch partially reverts the commit 8c226304 by removing the mutex
lock/unlock calls before and after data transfers. mutex locks in
tuning implementation are still present.

This patch ensures that data transfers on all controllers triggered
while running tuning will be stopped until tuning is done inorder to
avoid the risk of any failures due to core voltage changes in tuning.

Locking needs to be extended for the transfer that is already in progress.
This will be done in subsequent patches after thorough testing.

Bug 1354967

Change-Id: Ic6bfd22ec84f24e8782d7da6e3267a7300cb267e
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/266802
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agoARM: tegra tegratab: Fix wrong calculation in ADC to temp for NTC thermistor
Jinyoung Park [Mon, 24 Jun 2013 10:54:51 +0000]
ARM: tegra tegratab: Fix wrong calculation in ADC to temp for NTC thermistor

Fixed wrong calculation in ADC to temp for NTC thermistor.

Bug 1287901

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

Change-Id: I4db583d3263b4f62b9e1366b4a6e1d74683359ba
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/252886
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agoARM: tegra: tegratab: Add ADC temperature conversion for thermal diode
Jinyoung Park [Fri, 21 Jun 2013 07:54:01 +0000]
ARM: tegra: tegratab: Add ADC temperature conversion for thermal diode

Added ADC temperature conversion for thermal diode.

Bug 1287901

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

Change-Id: I2e9a013b0b24e88babcecabf190e385df556b8de
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/252884
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agostaging: iio: adc: palmas: Add ADC reading with dual-current source for CH3
Jinyoung Park [Fri, 21 Jun 2013 07:24:00 +0000]
staging: iio: adc: palmas: Add ADC reading with dual-current source for CH3

Added ADC reading with dual-current source for Channel3 in order to do series
resistance cancellation for thermal diode.

Bug 1287901

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

Change-Id: Ifaf6ae6e293d66955f5c55d9c739af94a692a30e
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/252883
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoThermal: generic_adc_thermal: Add second value read back on read channel raw
Jinyoung Park [Fri, 21 Jun 2013 06:53:20 +0000]
Thermal: generic_adc_thermal: Add second value read back on read channel raw

Added second value read back on read channel raw.

Bug 1287901

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

Change-Id: I0bde33c4cb16e1c500b0cf86b64ec3e84e9a61d7
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/252880
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agostaging: iio: Support second value read back on iio_st_read_channel_raw
Jinyoung Park [Thu, 20 Jun 2013 08:55:41 +0000]
staging: iio: Support second value read back on iio_st_read_channel_raw

Support second value read back on iio_st_read_channel_raw.

Bug 1287901

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

Change-Id: I2d5eb06ae3434fbca8a92591e8b498340371c771
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/252879
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agovideo: tegra: camera: VI clock changes
Bhushan Rayrikar [Wed, 21 Aug 2013 18:19:02 +0000]
video: tegra: camera: VI clock changes

Use pll_c and pll_p both as parents for VI. Needed to select the
lowest clock rate greater than the required clock to improve power.

Bug 1350635

Change-Id: Ia684f9c2bcbf6342d7d02343f42a22f33940c4a3
Signed-off-by: Bhushan Rayrikar <brayrikar@nvidia.com>
Reviewed-on: http://git-master/r/266214
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sean Pieper <spieper@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agoCpufreq: Serialize policy update across hotplug
Puneet Saxena [Sat, 24 Aug 2013 11:35:14 +0000]
Cpufreq: Serialize policy update across hotplug

It serialise policy parameters update when hot-unplug
happens.

Bug 1327428

Change-Id: I0be6523add2866e45e413c79ef7c86605a359f44
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-on: http://git-master/r/265844
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agomisc: tegra-profiler: Do not expose kernel IPs
Igor Nabirushkin [Mon, 19 Aug 2013 12:32:24 +0000]
misc: tegra-profiler: Do not expose kernel IPs

In Tegra Profiler misc driver, do not expose kernel-space IPs
for security purposes (for non-root users).

Bug 1312406
Bug 1349673

Change-Id: Ie3b89a555296359c8578ec39a00161d3e63a34ad
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/263320
(cherry picked from commit 935daea80d24f621a9328642d025762af26ffb55)
Reviewed-on: http://git-master/r/264803
GVS: Gerrit_Virtual_Submit
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Daniel Horowitz <dhorowitz@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>

5 years agomisc: tegra-profiler: fix backtracing
Igor Nabirushkin [Mon, 5 Aug 2013 16:34:13 +0000]
misc: tegra-profiler: fix backtracing

check_vma_address function:
sometimes (rarely): address value may be overflowed.

Bug 1312406

Change-Id: Ibf268000dfcba4046c499f734c368a0854d0f942
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/258236
(cherry picked from commit 6d41daab2b4d6ede2e16a0b0354631e8a6648d8b)
Reviewed-on: http://git-master/r/264760
GVS: Gerrit_Virtual_Submit
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Daniel Horowitz <dhorowitz@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>

5 years agomisc: tegra-profiler: allocate memory on demand
Igor Nabirushkin [Wed, 31 Jul 2013 11:17:47 +0000]
misc: tegra-profiler: allocate memory on demand

Tegra Profiler misc driver:
allocate memory on demand from the user space, not on boot.

Bug 1312406

Change-Id: Idc5e8365e38b7faca236e011d9e665f53ac992e6
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/256309
(cherry picked from commit 65234ad36d4c8eeef7753643d6cb2cf0c7f77976)
Reviewed-on: http://git-master/r/264754
GVS: Gerrit_Virtual_Submit
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bo Yan <byan@nvidia.com>

5 years agoCpufreq: protect policy & module refcount
Puneet Saxena [Wed, 14 Aug 2013 15:34:00 +0000]
Cpufreq: protect policy & module refcount

percpu policy pointer needs to be updated with "cpufreq_cpu_data"
synchronously.

This will avoid different virtue of policy pointer of an
online cpu.

It protects ref counting while releasing policy object

Bug 1327428

Change-Id: I817a78c2ead921546f97e4af8943fb5c4ffcfcc6
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-on: http://git-master/r/261609
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoARM: tegra: dalmore: set startup delay of LDO6 to 600us
Laxman Dewangan [Thu, 29 Aug 2013 08:47:54 +0000]
ARM: tegra: dalmore: set startup delay of LDO6 to 600us

As per observation, the startup delay of LDO6 is more than the
delay defined in datasheet.
Hence setting startup delay explicitly through constraints.

nct external thermal sensor on dalmore (using palmas regulator)
is on this power rail.

bug 1317941
bug 1348506

Change-Id: I732fd48711233e3248b90c9da01902446e61cec3
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/267823

5 years agoregulator: core: add support to set startup delay from platform
Laxman Dewangan [Wed, 7 Aug 2013 09:24:25 +0000]
regulator: core: add support to set startup delay from platform

The startup delay of rail depends on the PMIC design and the platform
design. The startup delay is provided based on PMIC datasheet through
regulator callback.

Add support to provide the platform specific startup delay during
regulator registration through regulator constraints.

The actual delay will be taken from constraints and if it is zero
then based on datasheet.

bug 1317941

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/259122
(cherry picked from commit 0a1b6e2ca9955cf07a2c08654151480ef0a6fac3)

bug 1348506

Change-Id: I3a0d439e6f52a963a32e191145a6cdd36bc5e01b
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/267822
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

5 years agoRevert "Cpufreq: interactive: Add fresh google interactive gov, etc."
Puneet Saxena [Thu, 22 Aug 2013 13:04:58 +0000]
Revert "Cpufreq: interactive: Add fresh google interactive gov, etc."

Browser P0 Benchmarks such as Sunspider, Panning
are regressed drastically by switching to new interactive
governor.
The score didn’t meet with the score achieved via older governor
though tweaked new governor knobs extremely.
Hence reverting new governor and bugfixes on it.

This reverts commit 640399b2b583f3f66113bdfba2d7d89f1a517979.

Bug 1352880

Change-Id: I155116fc320852ef0bc2095f5591ed74ea994b37
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-on: http://git-master/r/264929
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoRevert "cpufreq: interactive: handle errors from cpufreq_frequency_table_target"
Puneet Saxena [Thu, 22 Aug 2013 13:04:23 +0000]
Revert "cpufreq: interactive: handle errors from cpufreq_frequency_table_target"

Browser P0 Benchmarks such as Sunspider, Panning
are regressed drastically by switching to new interactive
governor.
The score didn’t meet with the score achieved via older governor
though tweaked new governor knobs extremely.
Hence reverting new governor and bugfixes on it.

This reverts commit dc63163bf144ff464c11ea723b3c29b7d301b09a.

Bug 1352880

Change-Id: I1527827c0f75137c1162c25cb86174d821376c19
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-on: http://git-master/r/264928
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoRevert "cpufreq: interactive: reduce chance of zero time delta on load eval"
Puneet Saxena [Thu, 22 Aug 2013 13:03:50 +0000]
Revert "cpufreq: interactive: reduce chance of zero time delta on load eval"

Browser P0 Benchmarks such as Sunspider, Panning
are regressed drastically by switching to new interactive
governor.
The score didn’t meet with the score achieved via older governor
though tweaked new governor knobs extremely.
Hence reverting new governor and bugfixes on it.

This reverts commit e2aeacdc6ac500b0b3e48b5be754ed17d1fc9094.

Bug 1352880

Change-Id: I365fd2d29841d5b5c2fde4bf7b93b13e746682d1
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-on: http://git-master/r/264927
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoRevert "cpufreq: interactive: avoid underflow on active time calculation"
Puneet Saxena [Thu, 22 Aug 2013 13:02:55 +0000]
Revert "cpufreq: interactive: avoid underflow on active time calculation"

Browser P0 Benchmarks such as Sunspider, Panning
are regressed drastically by switching to new interactive
governor.
The score didn’t meet with the score achieved via older governor
though tweaked new governor knobs extremely.
Hence reverting new governor and bugfixes on it.

This reverts commit 3e6b9d8fb4de1c4353af6e4f69dd00f84f9b98b9.

Bug 1352880

Change-Id: Ide505633dee53dcc3d799c875aca409f7f76d71f
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-on: http://git-master/r/264926
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoRevert "Cpufreq: interactive: Check actual freq before setting new freq"
Puneet Saxena [Thu, 22 Aug 2013 12:52:39 +0000]
Revert "Cpufreq: interactive: Check actual freq before setting new freq"

Browser P0 Benchmarks such as Sunspider, Panning
are regressed drastically by switching to new interactive
governor.
The score didn’t meet with the score achieved via older governor
though tweaked new governor knobs extremely.
Hence reverting new governor and bugfixes on it.

This reverts commit b89c138498dfa8db157c9b23172f9da98ea9e583.

Bug 1352880

Change-Id: I8548f5cef8557a26e110dd75ca739bf4c95287fe
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-on: http://git-master/r/264925
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

5 years agoRevert "cpufreq: interactive: fix race on cpufreq TRANSITION notifier"
Puneet Saxena [Thu, 22 Aug 2013 13:01:40 +0000]
Revert "cpufreq: interactive: fix race on cpufreq TRANSITION notifier"

Browser P0 Benchmarks such as Sunspider, Panning
are regressed drastically by switching to new interactive
governor.
The score didn’t meet with the score achieved via older governor
though tweaked new governor knobs extremely.
Hence reverting new governor and bugfixes on it.

This reverts commit fb20d6e49a0987169abac109d689de4c9d829fbf.

Bug 1352880

Change-Id: Ife8f1f2a8395f232355d0434656c882e574e1cff
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-on: http://git-master/r/264901
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

5 years agoRevert "cpufreq: interactive: resched timer if max freq raised"
Puneet Saxena [Thu, 22 Aug 2013 13:00:13 +0000]
Revert "cpufreq: interactive: resched timer if max freq raised"

Browser P0 Benchmarks such as Sunspider, Panning
are regressed drastically by switching to new interactive
governor.
The score didn’t meet with the score achieved via older governor
though tweaked new governor knobs extremely.
Hence reverting new governor and bugfixes on it.

This reverts commit ba483d38dd783c45118cf66dcd9a23008d68571c.

Bug 1352880

Change-Id: I92500a1d7bfd88867eda1fd4cada51dcf9eb103a
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-on: http://git-master/r/264900
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

5 years agomach-tegra: Make benign warning as info
pdabade [Thu, 29 Aug 2013 06:14:41 +0000]
mach-tegra: Make benign warning as info

A request to set brightness to zero is valid irrespective
of what previous brightness of backlight was. A request of
zero brightness disables PWM; so a re-request can be made
to disable a already disabled PWM.

Bug 1256079

Change-Id: Ib1390db9de8358457750789ffee010a229031f55
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/267743
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Darbha Sriharsha <dsriharsha@nvidia.com>
Tested-by: Darbha Sriharsha <dsriharsha@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoARM: tegra: usb: reinit hw fixes upon phy_on
Suresh Mangipudi [Thu, 22 Aug 2013 05:36:02 +0000]
ARM: tegra: usb: reinit hw fixes upon phy_on

H/W fixes have to be reinitialized after the tegra resumes from LP0.
Set TXFILLTUNING for UTMI after resuming from LP0.

Bug 1318125

Change-Id: I3a64d7622df9a45c2849a40ea5a75fe35f86392d
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-on: http://git-master/r/264708
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoarm: tegra: la: hack LA value for VI
Srikanth Nori [Thu, 22 Aug 2013 01:00:16 +0000]
arm: tegra: la: hack LA value for VI

With current LA setting VI FIFO can overflow when VI/EMC clock
changes. This fix pretends the FIFO is smaller and reduces the
latency allowance for VI, which ensures the FIFO drains in time.

Bug 1323454

Change-Id: I5f727d3d9ce7dc097029b8357d4686cd9b4490b0
Signed-off-by: Srikanth Nori <srikanthn@nvidia.com>
Reviewed-on: http://git-master/r/264659
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agoARM: tegra: tegratab: apply DVT3 mpu mount orientation
David Yu [Tue, 23 Jul 2013 10:52:54 +0000]
ARM: tegra: tegratab: apply DVT3 mpu mount orientation

Bug 1330733

Change-Id: I77b13de86be87ab0b768bb6eb0ca5792a8bddc63
Signed-off-by: David Yu <davyu@nvidia.com>
Reviewed-on: http://git-master/r/252378
(cherry picked from commit 2f7375070142f33d00bc97fc47d2c8ba5f5f3d77)
Reviewed-on: http://git-master/r/263709
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>