4 years agoplatform: tegra: add new panel_cy8c param
Daniel Solomon [Wed, 14 Oct 2015 21:35:20 +0000]
platform: tegra: add new panel_cy8c param

Add "max-xfer-sz" parameter for the panel_cy8c driver.
This parameter indicates the maximum I2C chunk size based
on the platform's SoC and cy8cxxx microcontroller capabilities.

Bug 1679724

Change-Id: I2ed63f4c7f8e8aa8f3ab1530693af281c170d9c1
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/819305
(cherry picked from commit 7ea81eaa71e0ac2b947aa1c64a5b4868d2533ba2)
Reviewed-on: http://git-master/r/825777
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Reviewed-by: Aly Hirani <ahirani@nvidia.com>

4 years agoarm64: configs: t210: Enable TEGRA_PANEL_CY8C
Daniel Solomon [Thu, 24 Sep 2015 00:39:02 +0000]
arm64: configs: t210: Enable TEGRA_PANEL_CY8C

Enable CONFIG_CONFIG_TEGRA_PANEL_CY8C, driver for Cypress cy8cxxx
microcontrollers used to control display panel power sequences.

Bug 1679724

Change-Id: I13598cab952107b182653f381617f357839dae27
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/804156
(cherry picked from commit f437d35e98123a762c1542523394899920a601f7)
Reviewed-on: http://git-master/r/818541
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

4 years agovideo: tegra: dc: fix changing min refresh rate
Daniel Solomon [Sat, 5 Sep 2015 04:24:05 +0000]
video: tegra: dc: fix changing min refresh rate

Fix ability to change minimum refresh rate during
runtime.

Bug 1682873

Change-Id: I6d1f38c0e7084557e50ce967649106a69d0c8392
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/794672
(cherry picked from commit 584f05bea8f88674f38c0f6fa719da449387d998)
Reviewed-on: http://git-master/r/805301
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

4 years agodc: mode : choose VRR native mode h&v ref_to_sync
Jonathan McCaffrey [Thu, 29 Oct 2015 15:51:15 +0000]
dc: mode : choose VRR native mode h&v ref_to_sync

For DSI panels, if VRR is initialized, set the v & h ref_to_sync values from
the VRR native mode.

This was previously not done ifdef CONFIG_TEGRA_HDMI2_0, which led to display
corruption with TEGRA_DC_EXT_FLIP_HEAD_FLAG_VRR_MODE set, the because the
v_ref_to_sync value was greater than v_front_porch_min,

Bug 1689933

Change-Id: I81e215553ef90636aed319574d20d9e7ea96f696
Signed-off-by: Jonathan McCaffrey <jmccaffrey@nvidia.com>
Reviewed-on: http://git-master/r/824973
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>

4 years agoARM: tegra210: hawkeye: add support for display uC
Daniel Solomon [Thu, 24 Sep 2015 00:54:29 +0000]
ARM: tegra210: hawkeye: add support for display uC

Add support for the Cypress microcontroller used to
control display power sequences on Hawkeye A04.

Bug 1679724

Change-Id: I1437420bec07b755690d5aaa4deb20751372e975
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/804157
(cherry picked from commit 5e92670cbab1e7824b4b3eac305ca23be3e45904)
Reviewed-on: http://git-master/r/818546
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Reviewed-by: Aly Hirani <ahirani@nvidia.com>

4 years agoplatform: tegra: add cy8c_panel driver
Daniel Solomon [Wed, 23 Sep 2015 03:38:51 +0000]
platform: tegra: add cy8c_panel driver

Driver support for platforms using Cypress cy8cxxx microcontrollers
over I2C to control display panel power sequences.

Communication with the device and interfacing with userspace is based
on the cy8c_led driver, but added locks around I2C accesses and device
boot/app mode changes.

Bug 1679724

Change-Id: I4c31f331e489f07e5e639c5e00a8296c41617271
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/804155
(cherry picked from commit 9655888c50ff053411cf337b63a0df928aa417c9)
Reviewed-on: http://git-master/r/818538
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Reviewed-by: Aly Hirani <ahirani@nvidia.com>

4 years agoarm: tegra: enable Tegra WDT for T124
Mitch Luban [Tue, 3 Jun 2014 07:33:10 +0000]
arm: tegra: enable Tegra WDT for T124

Enables both tegra WDT as well as reboot on kernel panic. Reboot
on kernel panic has a timeout value of 60 seconds.

These mechanisms give us a high chance that we have DRAM retention
across resets. Important to gather ramoops and PTM traces.

Change-Id: If5f80c422e511f72430beaf83072a0e2f0b551d7
Signed-off-by: Mitch Luban <mluban@nvidia.com>
Reviewed-on: http://git-master/r/419514
(cherry picked from commit f8e114de5522ba58a1dbfd151eb147b902c401bc)
Reviewed-on: http://git-master/r/824005
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

4 years agoarm64: DT: Disable periodic calibration for SD
Anubhav jain [Wed, 21 Oct 2015 07:31:43 +0000]
arm64: DT: Disable periodic calibration for SD

Change-Id: Ibbfd400a222f700e48e2ccc66bac4a1389532b81
Signed-off-by: Anubhav jain <anubhavj@nvidia.com>
Reviewed-on: http://git-master/r/820825
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

4 years agoARM64: dts: disable ldo4 rail discharge on PMIC
Venkat Reddy Talla [Fri, 30 Oct 2015 11:06:56 +0000]
ARM64: dts: disable ldo4 rail discharge on PMIC

Disabling ldo4 rail discharge for Loki and Foster platforms.

Bug 1699953

Change-Id: I3e2dbf3fb16f1b53808bfa8a2c993bf0bdd990ec
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/825311
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

4 years agoregulator: max77620: add support for enable/disable active discharge
Laxman Dewangan [Thu, 29 Oct 2015 09:08:11 +0000]
regulator: max77620: add support for enable/disable active discharge

Add support for enabling/disabling active discharge through platform
DT node.

Change-Id: I4e2872f4f66747f332d9e86b1efd7ff3cf5f2253
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/824695
(cherry picked from commit 753e63cbeb4e3c3effc406a6e952eb5968726a61)
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/825310
GVS: Gerrit_Virtual_Submit

4 years agoregulator: core: add support for active discharge enable/disable property
Laxman Dewangan [Thu, 29 Oct 2015 09:06:24 +0000]
regulator: core: add support for active discharge enable/disable property

Add regulator DT property to add support for configuring the rail's
active discharge enable/disable forcefully. If properties are absent
then it will be POR default.

Change-Id: Ia3a99c6e9aec37ef2824e169e1ae99884163bc25
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/824694
(cherry picked from commit eff460b9d82bd634da66625d05451fae5385d80c)
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/825309
GVS: Gerrit_Virtual_Submit

4 years agoextcon: palmas: do not check for id detect on vbus for id handler
Venkat Reddy Talla [Thu, 29 Oct 2015 11:37:58 +0000]
extcon: palmas: do not check for id detect on vbus for id handler

Do not check for enable-id-detect-on-vbus while registering
irq handler for OTG-Host interrupt line.

Bug 200145974

Change-Id: I1443565a2154faad4a2fca1081e09fc4b9c17ff8
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/824784
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agovideo: tegra: host: Rework nvhost_vm
Arto Merilainen [Sun, 16 Aug 2015 07:13:18 +0000]
video: tegra: host: Rework nvhost_vm

This patch effectively removes buffer mapping support from
nvhost_vm. The code was originally added to allow context specific
virtual memory with assumption that nvhost would use iommu API
directly, however, DMA API approach was later selected due to
easier integration.

The code is reworked to allocate vm instance each time when the
channel is mapped and the vm is released when the channel
is is unmapped. VM allocation triggers call to hardware specific
initialization routine.

This patch modifies buffer pinning to happen toward host1x
(gathers) or the vm device (relocations).

Bug 1688003
Bug 1243060
Bug 200148952

Change-Id: I1d36f98316fd48a15b0fe06424b7cb8417ed5e52
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/792128
(cherry-picked from commit 445a666a57a33b94d9540b95def0411b3f216424)
Reviewed-on: http://git-master/r/784030
(cherry picked from commit 4d3ada6221dfd814d99a6c91a4fde1e0915480d4)
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/823502
Reviewed-by: Gagan Grover <ggrover@nvidia.com>
GVS: Gerrit_Virtual_Submit

4 years agoarm64: jetson-cv: disable ldo6
Neil Chen [Wed, 21 Oct 2015 09:18:34 +0000]
arm64: jetson-cv: disable ldo6

Since ldo6 is not used on Jetson-CV, to disable it for safe. Although the ldo6
will not be enabled by any driver in Jetson-CV, but it has been set as
"regulator-always-on" and "regulator-boot-on" in
tegra210-jetson-e-pmic-p2530-0930-e03.dtsi.

Bug 1688673

Change-Id: I1fd17a6dc222d23069f03318ef4b30a67b2cec0f
Signed-off-by: Neil Chen <neilc@nvidia.com>
Reviewed-on: http://git-master/r/820896
(cherry picked from commit 4b331816a0a3ca0b6e1b58ddf641b2cb3242f42b)
Reviewed-on: http://git-master/r/822590
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kerwin Wan <kerwinw@nvidia.com>
Tested-by: Kerwin Wan <kerwinw@nvidia.com>

4 years agoclock: tegra21: fix a warning message
TW Chiu [Wed, 21 Oct 2015 08:14:10 +0000]
clock: tegra21: fix a warning message

Fix the warning message below in tegra21_plle_clk_enable():
    "pll_e hw sequencer is already on"

This message is printed when PLLE is under HW control and there is a
request to enable PLLE. When PLLE is under HW control, SW need to
ignore requests to enable or disable PLLE. This message is for
information only.

Bug 1691314

Change-Id: I45585d3b5d6e32320ac2e1dd6511fcf9e63dd504
Signed-off-by: TW Chiu <twchiu@nvidia.com>
Reviewed-on: http://git-master/r/820865
(cherry picked from commit 1542162052ce255bb32d841dfa85ce970e27e09b)
Reviewed-on: http://git-master/r/824703
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

4 years agoiio: proximity: SAR Stable Setting V1.2.3
Shylender Gaddamwar [Thu, 15 Oct 2015 23:18:01 +0000]
iio: proximity: SAR Stable Setting V1.2.3

- improved target and base value setting for DVT1.
- hw configuration:1.5K+2pf , DNP+2pf , DNP+DNP.

Bug 1696152

Signed-off-by: Shylender Gaddamwar <sgaddamwar@nvidia.com>
Change-Id: I50870a56752f60df55751760ae3bb84e9cf23ebe
Reviewed-on: http://git-master/r/818484
(cherry picked from commit 59df06896a9959e246f4cf3769c724587284eca1)
Reviewed-on: http://git-master/r/823557
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Tested-by: Robert Collins <rcollins@nvidia.com>

4 years agoarm64: dts: hawkeye: add missing regurators
BH Hsieh [Wed, 28 Oct 2015 05:57:26 +0000]
arm64: dts: hawkeye: add missing regurators

Added missing regurators avdd_usb and vddio_hsic
for ehci@7d004000

Bug 1697336

Change-Id: Ie76e490bc5575096257c9a4c0c23169710761be2
Signed-off-by: BH Hsieh <bhsieh@nvidia.com>
Reviewed-on: http://git-master/r/823910
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Frederic Bossy <fbossy@nvidia.com>
Tested-by: Frederic Bossy <fbossy@nvidia.com>
Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Steve Rogers <srogers@nvidia.com>

4 years agobcmdhd: Add cfg80211 vendor command support
Mohan Thadikamalla [Wed, 28 Oct 2015 11:04:38 +0000]
bcmdhd: Add cfg80211 vendor command support

Issue: Soft AP is note getting enabled due vendor
country fail

Fix: Add below vendor commands to support 5GHz Soft AP
 - ANDR_WIFI_SET_COUNTRY
 - GSCAN_SUBCMD_GET_CHANNEL_LIST

This code is taken from below google source
https://android.googlesource.com/kernel/common

Bug 200148613
Bug 200123839

Change-Id: Iec642dfd2ebd6e1a2266e540ec757bfa91f9e1e9
Signed-off-by: Ecco Park <eccopark@broadcom.com>
Signed-off-by: Ashwin <ashwin.bhat@broadcom.com>
Signed-off-by: Mohan Thadikamalla <mohant@nvidia.com>
Reviewed-on: http://git-master/r/823951
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

4 years agonet: wireless: bcmdhd_88: disable VSDB_BW_ALLOCATE_ENABLE
Om Prakash Singh [Wed, 28 Oct 2015 06:27:07 +0000]
net: wireless: bcmdhd_88: disable VSDB_BW_ALLOCATE_ENABLE

Bug 200138217

Change-Id: Ia5fc100597c4c195e40e57c3701e1f3a2c71ccf1
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/823926
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: Mohan Thadikamalla <mohant@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoarm: dts: TN8: set KCL brightness level
Harry Lin [Tue, 27 Oct 2015 09:08:39 +0000]
arm: dts: TN8: set KCL brightness level

- Bootloader charing brightness level is 60.
- Kernel applies bl_measured[] to map 53 to 61,
  which is effectively identical to 60.
- Since bl_measured[] doesn't include level 60,
  set default-charge-brightness to 53 to match
  bootloader.

Bug 200138418

Change-Id: I7af054c90184e59df80f33e02f51ad1f0330ef5a
Signed-off-by: Harry Lin <harlin@nvidia.com>
Reviewed-on: http://git-master/r/823365
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

4 years agovideo: tegra: hdmi: increase the hpd dropout time
Prafull Suryawanshi [Tue, 4 Aug 2015 07:40:35 +0000]
video: tegra: hdmi: increase the hpd dropout time

With few monitors, they take more time for hpd hotplug
and unplug. So hdmi driver think real hotunplug-plug
scenario. To fix it, use same time as in hdmi state machine.

Bug 200106797
Bug 200149156

Change-Id: Ia5934e29cbfb5cb21df34a6cd2fb7299d9e49580
Signed-off-by: Prafull Suryawanshi <prafulls@nvidia.com>
Reviewed-on: http://git-master/r/778400
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
(cherry picked from commit 00db47d6aa56e848e95426048050f8e68b9a5f44)
Reviewed-on: http://git-master/r/823247

4 years agoARM: tegra12: config: enable SECCOMP
Gagan Grover [Thu, 30 Oct 2014 05:50:55 +0000]
ARM: tegra12: config: enable SECCOMP

This is enabled for Android defconfig file as it is required by CTS
test to pass.

Bug 200046046

Change-Id: Ie1f02469471c3c2602a28a561b5c25f9423899a2
Signed-off-by: Gagan Grover <ggrover@nvidia.com>
Reviewed-on: http://git-master/r/591533
(cherry picked from commit 78f81fdb9bc427841f9cdc37de6b2942d552ca70)
Reviewed-on: http://git-master/r/822453
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

4 years agovideo: tegra: dc: Expose HDCP through DT
Aly Hirani [Mon, 26 Oct 2015 21:02:15 +0000]
video: tegra: dc: Expose HDCP through DT

This change exposes the ability to set the HDCP policy through the
device-tree. It moves the HDCP policy into a new device-tree node for
easier maintainace rather than overloading more DC flags. It also adds
a new policy to keep the HDCP always disabled. This is needed for the
recovery kernel where doing HDCP is not possible.

Bug 1694996

Change-Id: Ifd96d2b1bdb3f3f0e963681efd3134719b15e350
Signed-off-by: Aly Hirani <ahirani@nvidia.com>
Reviewed-on: http://git-master/r/821655
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

4 years agogpu: nvgpu: Avoid resetting CDE flag
sujeet baranwal [Tue, 6 Oct 2015 16:07:24 +0000]
gpu: nvgpu: Avoid resetting CDE flag

While loading the context, erstwhile set CDE flag was being
overwritten by copying code of golden context, thus losing
the information. This was not letting the CDE info reach
to the ucode, and T1 was not configured to 128B mem access.

Bug 200096226

Change-Id: Iaec1471fbcbffd63f8f3919088c7e9295074419d
Signed-off-by: sujeet baranwal <sbaranwal@nvidia.com>
Reviewed-on: http://git-master/r/811741
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Roopa Ranganathan <rranganathan@nvidia.com>

4 years agotegra-se: Unregister algs support from tegra-se
Amith Ramachandra [Sat, 20 Sep 2014 21:45:12 +0000]
tegra-se: Unregister algs support from tegra-se

Owing to lower perf, prefer CPU over SE HW for crypto
operations. However, we may still need SE for save/restore
key context across Lp0 so keep the driver to do this.

Bug 200142359

Change-Id: I16ffaf64400e70615cdb0d4326f5480d172f6be6
Signed-off-by: Amith Ramachandra <aramachan@nvidia.com>
Signed-off-by: Gagan Grover <ggrover@nvidia.com>
Reviewed-on: http://git-master/r/501214
(cherry picked from commit 9bc76d18fe31233e6aad5ab9b142725b9d0a3875)
Reviewed-on: http://git-master/r/539875
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
Tested-by: Dhiren Parmar <dparmar@nvidia.com>
Signed-off-by: Gaurav Singh <gauravsingh@nvidia.com>
Reviewed-on: http://git-master/r/822518

4 years agomisc: uid_cputime: fix access permission of sysfs
Aaron Huang [Fri, 23 Oct 2015 10:09:01 +0000]
misc: uid_cputime: fix access permission of sysfs

Fix the access permission of show_uid_stat as read only.

Bug 200148527

Change-Id: I51800ec86b5a9328e06ed26474fb8e795906ce80
Signed-off-by: Aaron Huang <aaronh@nvidia.com>
Reviewed-on: http://git-master/r/821989
GVS: Gerrit_Virtual_Submit
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Eric Miao <emiao@nvidia.com>
Reviewed-by: Kerwin Wan <kerwinw@nvidia.com>

4 years agotegra21_android_defconfig: enable uid_cputime
Aaron Huang [Fri, 23 Oct 2015 04:50:40 +0000]
tegra21_android_defconfig: enable uid_cputime

Enable uid_cputime for Android-M to access related sysfs nodes
for BatteryStats purpose.

Bug 200148527

Change-Id: Ib5bcf5357787a10431d5eceb819d36d070c07f0c
Signed-off-by: Aaron Huang <aaronh@nvidia.com>
Reviewed-on: http://git-master/r/821833
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

4 years agoRevert "bcmdhd: Change directory for wifi_mac.txt to /factory/fct/"
Martin Gao [Tue, 27 Oct 2015 01:10:37 +0000]
Revert "bcmdhd: Change directory for wifi_mac.txt to /factory/fct/"

This reverts commit f9f1f5c57069e6c134fc3543a0c37c7589d1ec08.

Change-Id: I28cfa9f7fd364edf4267c3f80a403775ba341276
Signed-off-by: Martin Gao <marting@nvidia.com>
Reviewed-on: http://git-master/r/823142
Reviewed-by: Eric Chuang <echuang@nvidia.com>

4 years agoARM: tegra: correct sense res value of VDD_USB_5V0
Leo He [Tue, 20 May 2014 08:29:47 +0000]
ARM: tegra: correct sense res value of VDD_USB_5V0

sense resistor of VDD_USB_5V0 is 0.01 ohm on P1761

Change-Id: Ieb5ff73b38e5991d03e5e3540f5c76eb46364385
Signed-off-by: Leo He <leoh@nvidia.com>
(cherry picked from commit 3bf86d376ad1006ff4fc40e0d91ede3b39e0927f)
Reviewed-on: http://git-master/r/822384
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ian Chang <ianc@nvidia.com>
Tested-by: Ian Chang <ianc@nvidia.com>
Reviewed-by: Robert Shih <rshih@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agovideo: tegra: dc: Add begin and end tracing
Daniel Dworakowski [Thu, 23 Jul 2015 01:06:35 +0000]
video: tegra: dc: Add begin and end tracing

Adds new trace event, and macros to trace beginnings and ends of functions

Change-Id: I58992152fb4a87dee45b216974feb0563b82755a
Reviewed-on: http://git-master/r/773582
Signed-off-by: Jonathan McCaffrey <jmccaffrey@nvidia.com>
Reviewed-on: http://git-master/r/821746
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

4 years agoinput: touch: sharp: update to version 17.
David Pu [Wed, 21 Oct 2015 05:01:34 +0000]
input: touch: sharp: update to version 17.

- Fixed an issue that fail safe is performed unintentionally
- Fixed dead lock issue
- Changed the function name of suspend/resume callback
- Changed the sequence of tap to wakeup
- Version 22.17.1009

Bug 200145424

Change-Id: I604b0ee79013091e4930cf0ab44d0ccfb6b3d08a
Signed-off-by: David Pu <dpu@nvidia.com>
Reviewed-on: http://git-master/r/820731
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jordan Nien <jnien@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Todd Poynter <tpoynter@nvidia.com>

4 years agobcmdhd: Change directory for wifi_mac.txt to /factory/fct/
Srinivas Ramachandran [Thu, 22 Oct 2015 19:05:58 +0000]
bcmdhd: Change directory for wifi_mac.txt to /factory/fct/
bcmdhd_88: Change directory for wifi_mac.txt to /factory/fct/

- Android M modifies vold, and /mnt and /storage mount points
  cause compatible issues for fct and rp3 partitions.
- Change fct mount point from /mnt/factory to /factory/fct

Bug 1697489

Change-Id: I7da3a7157f59353d83c504411c4f60d9c0e46d8f
Signed-off-by: Srinivas Ramachandran <srinivasra@nvidia.com>
Reviewed-on: http://git-master/r/821611
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

4 years agoiio: common: NVS v209 common timestamps
Erik Lilliebjerg [Wed, 21 Oct 2015 19:20:26 +0000]
iio: common: NVS v209 common timestamps

- Create a common timestamp function for NVS sensor drivers.
- Timestamp changed from ktime_get_ts to get_monotonic_boottime to address
  the timestamp change through suspend.

- Removed the dependency of the NVI driver on NVS drivers supporting the NVI
  auxiliary bus.  If NVI_MPU is not enabled then these drivers build without
  NVI auxiliary bus API support.

Bug 200142073

Change-Id: I53b16bfb39b53015f3ee1e5418755f9b3f0cd132
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/821141
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Tested-by: Robert Collins <rcollins@nvidia.com>

4 years agovideo: tegra: camera: Change max_lane_speed to u64
Sudhir Vyas [Tue, 15 Sep 2015 13:27:01 +0000]
video: tegra: camera: Change max_lane_speed to u64

* Fix u32 range overflow.
When max_lane_speed multiplied to other u32 CSI
caps params, the output does not fit to u32 range.

* Correct lane-speed defines' base.

Bug 200133567

Change-Id: I9f40d7c747b217f072ac7a876f46153d1dec392b
Signed-off-by: Sudhir Vyas <svyas@nvidia.com>
Reviewed-on: http://git-master/r/799412
(cherry picked from commit 911dfa298ae20b0c65a3daebdef1a0828c3e4aa3)
Reviewed-on: http://git-master/r/820663
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Charles Kong <charlesk@nvidia.com>
Reviewed-by: David Schalig <dschalig@nvidia.com>
Tested-by: David Schalig <dschalig@nvidia.com>
Reviewed-by: Joshua Widen <jwiden@nvidia.com>
Tested-by: Joshua Widen <jwiden@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Todd Poynter <tpoynter@nvidia.com>

4 years agoASoC: Tegra: rt5639: Fix pop during power-off
Asha T [Tue, 20 Oct 2015 08:44:17 +0000]
ASoC: Tegra: rt5639: Fix pop during power-off

Codec power-off sequence is coded in
machine driver shutdown to avoid pop during
power-off and CL succeeds in reducing the
intensity of pop.

Bug 200144924

Change-Id: I1bb8e261a4ff67c9733c5210d1ef7eebaa7c6618
Signed-off-by: Asha T <atalambedu@nvidia.com>
Reviewed-on: http://git-master/r/820213
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sharad Gupta <sharadg@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>

4 years agoarm64: t210: enable realtek NIC driver
Vidya Sagar [Wed, 21 Oct 2015 18:54:51 +0000]
arm64: t210: enable realtek NIC driver

enables r8169 NIC driver

Bug 200147709

Change-Id: Iaefa158fd88bd6455039acbfab3e641382b55098
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/821098
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

4 years agoarm64: t210: ksavedefconfig formatted output
Vidya Sagar [Wed, 21 Oct 2015 18:35:37 +0000]
arm64: t210: ksavedefconfig formatted output

Bug 200147709

Change-Id: Ib513dcf6f6ed879656b55f4991937e25809ea02a
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/821097
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

4 years agovideo: tegra: dc: fallback to HDCP 1.x
Aly Hirani [Tue, 6 Oct 2015 22:42:23 +0000]
video: tegra: dc: fallback to HDCP 1.x

Implemented fallback to HDMI 1.x for non 2.2 rx. This change:

1. Exposes the TEGRA_HPD_* as an exported function
2. Adds the detection logic in the HDCP driver to fail HDCP 2.2 and
trigger HDCP 1.4
3. During the fallback, uses the TEGRA_HPD_* function to force hot
unplug and restore to hw state

The force hotplug is needed for some receivers that do not behave
correctly when HDCP 2.2 is started and then aborted half-way.

Bug 1691483

Change-Id: Ie7d7611cff64cb36c3ae63474e5bdb71257eee65
Signed-off-by: Sharath Sarangpur <ssarangpur@nvidia.com>
Reviewed-on: http://git-master/r/819836
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

4 years agonet: bcmdhd: Fix DT unregister
Michael Hsu [Mon, 13 Jul 2015 00:18:17 +0000]
net: bcmdhd: Fix DT unregister

Unregister platform driver if it was registered due to device tree
settings.

Bug 1630780

Change-Id: I9dd77a7ede32e73edbcbc5b93b536aacd74487d7
Signed-off-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-on: http://git-master/r/769164
(cherry picked from commit b1d18beed200cf29cc4d7f587c61957acba1866e)
Reviewed-on: http://git-master/r/819024
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

4 years agonet: wireless: bcmdhd: Fix compilation warnings
Michael Hsu [Tue, 22 Sep 2015 01:55:46 +0000]
net: wireless: bcmdhd: Fix compilation warnings

Fix compiler warning messages.

Bug 1454125

Change-Id: Id61b77731e6ba989d7f6ecae37afb3442f36ba0d
Signed-off-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-on: http://git-master/r/802585
(cherry picked from commit 2b4bee3dcc3901daab64281a7258470ddeb62f16)
Reviewed-on: http://git-master/r/811792
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

4 years agoasoc: es755: fix for skype double talk issue
Srinivas Anne [Wed, 21 Oct 2015 01:11:52 +0000]
asoc: es755: fix for skype double talk issue

FW version: M90.5.2.12_B60801_NVidia_Hawkeye_MCFFillIn_STREAM

Updated tuning parameters for voip call usecase.

Bug 200124396
Bug 200131474

Change-Id: Ie6b7d51257ad18e63875e498d8037481584322d4
Signed-off-by: Srinivas Anne <sanne@nvidia.com>
Reviewed-on: http://git-master/r/820669
Reviewed-by: Pierre Gervais <pgervais@nvidia.com>

4 years agohawkeye: enable nvtouch; default mode vendor only
Aaron Bartholomew [Thu, 8 Oct 2015 01:22:43 +0000]
hawkeye: enable nvtouch; default mode vendor only

- will add nvtouch to image, but will be in vendor only mode, ie
expects vendor driver to handle touch processing

bug 1688100
bug 1668304
bug 1602711
bug 1651230

Reviewed-on: http://git-master/r/774488
(cherry picked from commit c738b1a08e13a4d05d363c0200dd8379afa23a14)

Signed-off-by: Aaron Bartholomew <abartholomew@nvidia.com>
Change-Id: I7b8eddacf43a16fa65972eb15162940feba5171a
Reviewed-on: http://git-master/r/806271
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

4 years agovideo: tegra: Fix hdmi 2.0 length masking error
Arun Swain [Wed, 16 Sep 2015 19:28:13 +0000]
video: tegra: Fix hdmi 2.0 length masking error

Mask length with 0x1f instead of 0x0f since
length is of 5 bits.

Bug 200122117

Change-Id: I317507e0ccf1ede503ab479ff0151b6c61ac3a13
Reviewed-on: http://git-master/r/802430
(cherry picked from commit 1ba569d7b0559c8a84bcf25a4a6c709ddc8e20aa)
Signed-off-by: Arun Swain <arswain@nvidia.com>
Reviewed-on: http://git-master/r/821203
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

4 years agotegra: dc: Add hdr support
Arun Swain [Wed, 23 Sep 2015 21:34:18 +0000]
tegra: dc: Add hdr support

Added HDR support in kernel using the new FLIP4.

1. Added support for new HDR infoframe defined
in CEA 861.3.
2. This new infoframe data is associated with each
flip and passed onto kernel from userspace. The
user space uses tegra_dc_ext_hdr struct and the
appropriate tag info in the new FLIP4 ioctl to
pass the info to kernel.
3. The new infoframe data in the ioctl is parsed
and stored in existing tegra_dc_ext_flip_data
struct in the flip ioctl. This info is passed to
dc in flip_worker.
4. Currently the design is to set the eotf as 0
(SDR) and 2(SMPTE 2084) with the required payload
for non-HDR and HDR frames respectively.

Bug 200122117

Change-Id: Ic66fa88db50177ccd0349bbf7a6ff9f33c4eb764
Reviewed-on: http://git-master/r/803998
(cherry picked from commit 3f6e9e9531360eedba5ce43c5d129f34b6d7f68b)
Signed-off-by: Arun Swain <arswain@nvidia.com>
Reviewed-on: http://git-master/r/821201
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>
GVS: Gerrit_Virtual_Submit

4 years agotegra: dc: ext: Add TEGRA_DC_EXT_FLIP4 support
Arun Swain [Wed, 23 Sep 2015 21:17:01 +0000]
tegra: dc: ext: Add TEGRA_DC_EXT_FLIP4 support

Add FLIP4 support for the follwing reasons:
1. Cuurent FLIP3 doesn't have enough space in
order to pass head-specific info.
2. In order to pass HDR metadata we need at least
26 bytes and the current FLIP3 doesn't support
that.

The new FLIP4 has
1. A pointer to a array of 32 bytes of data to
pass head-specific info.
2. A nr_elements variabel that indicates the no.
of elements in the above array.

A new "tegra_dc_ext_flip_user_data" is defined
that has 6 bytes of tag info and 26 bytes of
payload data.

Bug 200122117

Change-Id: I4831b89ec25f877a948406feb4589824e82e3f3e
Reviewed-on: http://git-master/r/803991
(cherry picked from commit 83f6cd1eaebf1384c95a48069807407fb7beccf2)
Signed-off-by: Arun Swain <arswain@nvidia.com>
Reviewed-on: http://git-master/r/821188
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>
GVS: Gerrit_Virtual_Submit

4 years agovideo: tegra: hdmi: Add HDR notification support
Arun Swain [Tue, 29 Sep 2015 01:47:22 +0000]
video: tegra: hdmi: Add HDR notification support

Add support for notifying user sapce of hdr
capability of the sink.

If hdr info is found in the edid, FB_CAP_HDR is
set and informed to the userspace via
"FBIOGET_FSCREENINFO" ioctl.

Bug 200122117

Change-Id: Iaf96cd4940ab866767c222e18fd2778237b3fe9a
Reviewed-on: http://git-master/r/806384
(cherry picked from commit 2b2c865bead01f282bbdd81aa3bca42a179bb119)
Signed-off-by: Arun Swain <arswain@nvidia.com>
Reviewed-on: http://git-master/r/821185
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

4 years agotegra: dc :hdmi: Add CEA 861.3 support
Arun Swain [Tue, 15 Sep 2015 03:47:17 +0000]
tegra: dc :hdmi: Add CEA 861.3 support

Add support for reading CEA 861.3 HDR related
info from edid.

Due to lack of floating point support, it is
expected that user space to actually makes sense
of the numbers by following the specs. Kernel
just reads the values as it is from the edid.

Bug 200122117

Change-Id: I91bfe3b92cd8937cb862e8a38f790b89903d90f4
Reviewed-on: http://git-master/r/802449
(cherry picked from commit 39c2e727a24b929fff96df05ef5e032105df44c2)
Signed-off-by: Arun Swain <arswain@nvidia.com>
Reviewed-on: http://git-master/r/821184
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>
GVS: Gerrit_Virtual_Submit

4 years agoarm64: t210: disable cluster switch for t210.
Hayden Du [Thu, 15 Oct 2015 10:01:07 +0000]
arm64: t210: disable cluster switch for t210.

Disable cluster switch on T210 platform to avoid
stress issue.

bug 200117285

Change-Id: I2ef7f433d2b2afdadc033cc1d85adcb238f3523a
Signed-off-by: Hayden Du <haydend@nvidia.com>
Reviewed-on: http://git-master/r/762220
(cherry picked from commit 043030f05d75c1269fd1dd574e48c9c7f05a002e)
Reviewed-on: http://git-master/r/818191
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

4 years agoplatform: tegra: mc: handle dec and sec mc err combo
Krishna Reddy [Wed, 23 Sep 2015 21:55:25 +0000]
platform: tegra: mc: handle dec and sec mc err combo

Hanlde DECERR_EMEM and SECURTY_VIOLATION error combination.

Bug 1675932

Change-Id: I762b3bfa153ea41af35881fad2c7c9306b0fc8d5
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/804003
(cherry picked from commit 9b1002220dcc62e7f18b2e7db76976318f0592d6)
Reviewed-on: http://git-master/r/820460
GVS: Gerrit_Virtual_Submit

4 years agortc: max77620: remove buffer update for RTCINT reg read
Leo He [Sat, 28 Feb 2015 09:56:11 +0000]
rtc: max77620: remove buffer update for RTCINT reg read

remove unnecessary buffer update for RTCINT reg read,
because RTCINT is not a double buffered register

bug 200056803

Change-Id: Ie3956ee7ef3fdb0f423f081f24c702603672dce0
Signed-off-by: Leo He <leoh@nvidia.com>
Reviewed-on: http://git-master/r/712270
(cherry picked from commit 812afcc13fad503716393b2156dae70bc18d1a1d)
Reviewed-on: http://git-master/r/819473
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hayden Du <haydend@nvidia.com>

4 years agoarm64: tegra21: Increase VPR memory
Amit Sharma (SW-TEGRA) [Wed, 21 Oct 2015 09:17:17 +0000]
arm64: tegra21: Increase VPR memory

Increase VPR memory for following devices as follows
to handle 4K content:
 - Foster    – 672 MB
 - HE/Others – 364 MB

of_machine_is_compatible() API can't be used in tegra_t210ref_reserve()
because DT is not populated by the time tegra_t210ref_reserve() is called.
So to set the vpr_size for foster_e device we have to use
of_flat_dt_is_compatible() API.

Bug 200057425

Change-Id: Ie6a1239224176f69e2458a54862d56f724c08382
Signed-off-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com>
Reviewed-on: http://git-master/r/817461
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agomisc: tegra-baseband: fix coverity defect
BH Hsieh [Wed, 30 Sep 2015 04:48:07 +0000]
misc: tegra-baseband: fix coverity defect

fix coverity defect CID 19864
caused by http://git-master/r/453975

Bug 1416640

Change-Id: Ia739024f55e0a75037503fe3d95db86e62be30e3
Signed-off-by: BH Hsieh <bhsieh@nvidia.com>
Reviewed-on: http://git-master/r/807182
(cherry picked from commit 92bac217c5c1df83829db8b5f52b8f84744f224f)
Reviewed-on: http://git-master/r/812732
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Steve Lin <stlin@nvidia.com>

4 years agoRevert "gpu: nvgpu: WAR for bad GPFIFO entries from userspace"
Terje Bergstrom [Mon, 5 Oct 2015 21:51:13 +0000]
Revert "gpu: nvgpu: WAR for bad GPFIFO entries from userspace"

This reverts commit aeb74fc7952718ffab6281c687951499510c4333.
User space was fixed not to send zero-length GPFIFO entries.

Bug 1662670

Change-Id: Iec6bf1870a19db4e8daa2ed4512650b92a37ba92
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/815440
Reviewed-by: Donghan Ryu <dryu@nvidia.com>
GVS: Gerrit_Virtual_Submit

4 years agoUSB: tegra: support for parsing skip_resume
Suresh Mangipudi [Mon, 19 Oct 2015 11:05:32 +0000]
USB: tegra: support for parsing skip_resume

skip_resume flag will be parsed and stored in case of hsic
interface for T210 platforms

Bug 1694914

Change-Id: I20013a274b2dce43c6102087a791c68677a2343d
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-on: http://git-master/r/819583
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Frederic Bossy <fbossy@nvidia.com>
Tested-by: Frederic Bossy <fbossy@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agoARM: tegra: dts: enable skip resume flag
Suresh Mangipudi [Mon, 19 Oct 2015 11:00:36 +0000]
ARM: tegra: dts: enable skip resume flag

enable skip resume for modem over ehci

Bug 1694914

Change-Id: I9fd88939da0b90ec3e98f560ab27a8a1b0c37645
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-on: http://git-master/r/819582
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Frederic Bossy <fbossy@nvidia.com>
Tested-by: Frederic Bossy <fbossy@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agoarm64: tegra210: dts: Map US/CA/IN to use Country code Q2/998
Srinivas Ramachandran [Tue, 14 Jul 2015 00:54:29 +0000]
arm64: tegra210: dts: Map US/CA/IN to use Country code Q2/998

Power tunings done with latest nvram uses Q2/998 code, however
due to incorrect DT mapping, US country code could be overriden
in firmware. Change mapping for only US/CA/IN to Q2/998 instead

Bug 200087379

Change-Id: I6ec3ac041193cb00ee1bdfe02401359cdabb5f30
Signed-off-by: Srinivas Ramachandran <srinivasra@nvidia.com>
Reviewed-on: http://git-master/r/769571
(cherry picked from commit e4e7f9f83ddd4c85748b6cb6211e78ceb9394bc6)
Reviewed-on: http://git-master/r/819435
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agoRevert "arm: tegra: no need to reserve fbmem"
Prafull Suryawanshi [Mon, 19 Oct 2015 11:29:44 +0000]
Revert "arm: tegra: no need to reserve fbmem"

Bug 200147064
Bug 1602113

This reverts commit bc3f5f7d619578d864a33508747de03c6adeba0b.

Change-Id: I10c4a4977e874aa34e6256a78e4c015276c1de5c
Signed-off-by: Prafull Suryawanshi <prafulls@nvidia.com>
Reviewed-on: http://git-master/r/819595
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Todd Poynter <tpoynter@nvidia.com>
Tested-by: Todd Poynter <tpoynter@nvidia.com>

4 years agoRevert "video: tegra: dc: manage alloc/release framebuffer memory by driver"
Prafull Suryawanshi [Mon, 19 Oct 2015 11:26:26 +0000]
Revert "video: tegra: dc: manage alloc/release framebuffer memory by driver"

Bug 200147064
Bug 1602113

This reverts commit 69867681b50f345c9180d63570a8436a33557809.

Change-Id: I3a65157580b542bee5f15bc9980c558b4047bec7
Signed-off-by: Prafull Suryawanshi <prafulls@nvidia.com>
Reviewed-on: http://git-master/r/819593
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

4 years agovideo: tegra: dc: Fix build break with OF_DC_DEBUG
Aly Hirani [Thu, 15 Oct 2015 18:58:08 +0000]
video: tegra: dc: Fix build break with OF_DC_DEBUG

There was a typo in a couple of the prints that were only conditionally
enabled

Change-Id: Id38f769a057b489de09dc437831ffcf4a8e4dba5
Signed-off-by: Aly Hirani <ahirani@nvidia.com>
Reviewed-on: http://git-master/r/818370
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

4 years agoRe-order bus header field before payload msg
Srinivas Ramachandran [Wed, 16 Sep 2015 21:42:20 +0000]
Re-order bus header field before payload msg

The DHD driver implementation derives the bus header
pointer based on the msg payload pointer, assuming
the header memory is always before the msg payload.

DHD ver 1.201.82 has swapped the order of msg payload
field to be before bus header in struct dhd_prot_t.
This causes memory corruption when the driver tries to
access header contents by seeking the msg pointer
backwards.

Previous versions of the DHD driver do not have this
issue, and later versions 1.363.x have the correct order
(Header before the payload)

Bug 200128157

Change-Id: I33c1c99fad970c6aa221537a5bf0496666ea6d00
Signed-off-by: Srinivas Ramachandran <srinivasra@nvidia.com>
Reviewed-on: http://git-master/r/800362
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
Tested-by: Ashutosh Jha <ajha@nvidia.com>
(cherry picked from commit 1c46f75709d86e03bf2a5961e6a5bf3dce651928)
Reviewed-on: http://git-master/r/818003
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hayden Du <haydend@nvidia.com>

4 years agoarm64: jetson: add chosen node for EEPROM
Gaurav Sarode [Sat, 1 Aug 2015 22:30:58 +0000]
arm64: jetson: add chosen node for EEPROM

Adding node for EEPROM present on Jetson.

Bug 200113569

Change-Id: If891c9323bdff0e931202c3f35486c12a6b81aab
Signed-off-by: Gaurav Sarode <gsarode@nvidia.com>
Reviewed-on: http://git-master/r/777709
(cherry picked from commit 2d57b9b7834e75682957a8b5ced04cda94067146)
Reviewed-on: http://git-master/r/803446
Reviewed-by: Automatic_Commit_Validation_User

4 years agogpu: nvgpu: fix pbdma intr handling
Deepak Nibade [Thu, 24 Sep 2015 09:26:44 +0000]
gpu: nvgpu: fix pbdma intr handling

To handle any of the pbdma interrupt, we currently write zero
to pbdma_method0 and then clear the interrupt

But this is insufficient since we cannot use same intr clear
method for all the interrupts

Hence, add intr specific routines to handle those interrupts

NV_PPBDMA_INTR_0_PBENTRY:
- fix the pb_header to have a null opcode
- fix the pbdma_method to have a valid nop

NV_PPBDMA_INTR_0_METHOD:
- fix the pbdma_method to have a valid nop

NV_PPBDMA_INTR_0_DEVICE:
- fix the pb_header to have a null opcode
- go through all pbdma_method0/1/2/3
-- if they contain host s/w methods, replace those
   methods with a valid NOP

Bug 200134238

Change-Id: I10c284a6cdc1441f9d437cea65aae00d3c33a8c8
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/814561
(cherry picked from commit 5e2cfdee1171cc46d3a78465409b2df7372bf0e6)
Reviewed-on: http://git-master/r/819394
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

4 years agoloki: dts: Enable touch on loki-e
Ankita Garg [Wed, 9 Sep 2015 19:32:36 +0000]
loki: dts: Enable touch on loki-e

Bug 1681669

Change-Id: Id990365a3e68d36711431b08b5a62809ae2a0e0f
Signed-off-by: Ankita Garg <ankitag@nvidia.com>
Reviewed-on: http://git-master/r/819158
GVS: Gerrit_Virtual_Submit
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>

4 years agoarm64: tegra: update jetson_e emc dvfs to v983
Kerwin Wan [Mon, 19 Oct 2015 05:32:26 +0000]
arm64: tegra: update jetson_e emc dvfs to v983

Bug 1636958

Change-Id: Icb9ae1e15fd5041f8bbd3df0fe2e4b6d5f84f463
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/819386
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

4 years agoRevert "loki:foster: emc update to 983 v11"
Kerwin Wan [Mon, 19 Oct 2015 03:14:25 +0000]
Revert "loki:foster: emc update to 983 v11"

This reverts commit 27457b6fa2c07a7ddca6df9b58b4818ce6066c93.

Change-Id: I99e9d26b179a0f0d00ccda3a10e3dfb364919b98
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/819341
GVS: Gerrit_Virtual_Submit

4 years agoASoC: Codec: fix headset-mic issue
Sameer Pujar [Tue, 13 Oct 2015 11:06:07 +0000]
ASoC: Codec: fix headset-mic issue

LDO2 and MICBIAS power supplies are turned ON during
jack detection to detect headset-mic. The micbias voltage
turned OFF if there is no headset-mic.
This should be tried on E2614 with FSA rework

Bug 1686170
Bug 200135470

Reviewed-on: http://git-master/r/805033
(cherry picked from commit b05badedae5c0445949c25ebf5b4d44adb638a00)

Change-Id: I88b4901e00b88fae7b7fb1ceacb738dd2fc488df
Signed-off-by: Sameer Pujar <spujar@nvidia.com>
Reviewed-on: http://git-master/r/816713
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>

4 years agoiio: light: CM3217 index fix.
Erik Lilliebjerg [Fri, 16 Oct 2015 07:56:04 +0000]
iio: light: CM3217 index fix.

- Fix possible table index out-of-bounds.
- Change default threshold values to something in reality.
- Add CM3217 debug light dump.
NVS_IIO v208:
- Add ability to read debug dump from HW driver without a write.
- Add sensor name to debug prints.
- Add functionality to returned calls from HW driver allowing simplification
  of HW driver code, specifically for multi-sensor drivers.

Bug 200145232

Change-Id: I79d014569e236c70d8a3cdec2945fc0f22e43c07
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/818914
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Tested-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

4 years agoarm: boot: dts: SB ALS calibration
Erik Lilliebjerg [Fri, 16 Oct 2015 14:50:55 +0000]
arm: boot: dts: SB ALS calibration

- CM3217 device tree calibration values.

Bug 200145232

Change-Id: I781f4ffb1228291a3dbdc7f8352f58bd96ff4f15
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/818911
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Tested-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

4 years agoconfig: Add NVS drivers
Robert Collins [Thu, 1 Oct 2015 05:52:45 +0000]
config: Add NVS drivers

Bug 200145232

Change-Id: Id2b751b09cdc333c95cc6ccf60be1da7b10bc501
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Reviewed-on: http://git-master/r/807849
Reviewed-by: Automatic_Commit_Validation_User

4 years agodts: Sensors: Add NVS sensor drivers
Robert Collins [Thu, 1 Oct 2015 05:51:47 +0000]
dts: Sensors:  Add NVS sensor drivers

Add NVS sensor drivers:
* LTR5X5
* MAX44000
* CM3217

Bug 200145232

Change-Id: I829b43b8f268926172993fae90633425695c7bc2
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Reviewed-on: http://git-master/r/807848
Reviewed-by: Automatic_Commit_Validation_User

4 years agopcie: host: tegra: adds pad powerdown programming
Vidya Sagar [Mon, 3 Aug 2015 17:26:29 +0000]
pcie: host: tegra: adds pad powerdown programming

adds missing pad powerdown programming which is present
in pcie IAS doc

Bug 200069084
Bug 200044687

Change-Id: I3c69be6da8d849e9c203d3af0fb84b2ade4f09fe
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/778016
(cherry picked from commit 749728999ab66c61e27495567309e26d315a9701)
Reviewed-on: http://git-master/r/818629
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoconfigs: tegra21_android_defconfig: add net sch
Xiao Bo Zhao [Wed, 23 Sep 2015 06:00:29 +0000]
configs: tegra21_android_defconfig: add net sch

Enable NET_SCH_TEGRA for T210 platforms

Change-Id: Ifd1b83795e4ee00ab3b970b140bdef24296f83bb
Signed-off-by: Xiao Bo Zhao <xiaoboz@nvidia.com>
Reviewed-on: http://git-master/r/803468
(cherry picked from commit cf68388d96382ce0ebaf0591623b686b97ff55e6)
Reviewed-on: http://git-master/r/815686
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vinayak Pane <vpane@nvidia.com>

4 years agonet: sched: Tegra Network Device Queue packet scheduling algorithm
Michael Hsu [Tue, 12 May 2015 00:54:19 +0000]
net: sched: Tegra Network Device Queue packet scheduling algorithm

Tegra devices reserve highest priority queue for real-time network
devices, such as audio stream to a network (wifi) gaming controller.

Bug 1640086

Change-Id: I34a97edc87404c630c483389459f8e7b2474e892
Signed-off-by: Michael Hsu <mhsu@nvidia.com>
Signed-off-by: Xiao Bo Zhao <xiaoboz@nvidia.com>
Reviewed-on: http://git-master/r/795857
(cherry picked from commit fae05854103a872c8b9913079ffc83f3a6c79c68)
Reviewed-on: http://git-master/r/815685
Reviewed-by: Vinayak Pane <vpane@nvidia.com>

4 years agoarm: tegra: no need to reserve fbmem
Eric Miao [Wed, 25 Feb 2015 20:19:12 +0000]
arm: tegra: no need to reserve fbmem

Bug 1602113

Now framebuffer memory is allocated by the driver, there is no
need to reserve by tegra_reserve4().

Change-Id: I4e2e025f17c32d338d15269aed65058498a7cb30
Signed-off-by: Eric Miao <emiao@nvidia.com>
Reviewed-on: http://git-master/r/711712
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Li Li (SW-TEGRA) <lli5@nvidia.com>
Tested-by: Li Li (SW-TEGRA) <lli5@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Reviewed-on: http://git-master/r/805260
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Naveen Kumar S <nkumars@nvidia.com>
Tested-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>

4 years agovideo: tegra: dc: manage alloc/release framebuffer memory by driver
Eric Miao [Tue, 28 Oct 2014 13:30:51 +0000]
video: tegra: dc: manage alloc/release framebuffer memory by driver

Bug 1602113

Manage the allocation and release of the framebuffer memory by the fb
driver. This allows system such as Android, which doesn't actually map
the framebuffer, to release this memory.

Patch based on previous work done by Sri Krishna, but largely rewriten
per discussion with Jon/Krishna so that:

  1. Make use of standard DMA API - specifically

     - dma_alloc_writecombine()
     - dma_free_writecombine()
     - dma_mmap_writecombine()

  2. Do not break seamless display by copying over the content from
     bootloader framebuffer, which is passed in the resource instead
     of the reserved framebuffer memory

  3. Release the allocated framebuffer from DC driver when buffers
     submitted available for display, but only safely when:

     - no kernel use (e.g. fbcon)
     - no mmap into userspace

  4. Allocation size defaults to 4K with double buffering if not
     specified otherwise. This allows maximum backward compatibility,
     the memory will be released anyway once Android is up - and for
     the cases where it's not necessary to allocate such a big memory
     block, one can still modify the DT attribute 'nvidia,fbmem-size'
     for that.

Change-Id: If53c6d071d5f7a9cfb16eb0dc27866b9795bf5ac
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Signed-off-by: Eric Miao <emiao@nvidia.com>
Cc: Jon Mayo <jmayo@nvidia.com>
Cc: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/711711
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Reviewed-on: http://git-master/r/805259
GVS: Gerrit_Virtual_Submit
Reviewed-by: Naveen Kumar S <nkumars@nvidia.com>
Tested-by: Naveen Kumar S <nkumars@nvidia.com>

4 years agoprintk: add loglevel for messages from /dev/kmsg
Eric Miao [Thu, 11 Jun 2015 17:37:42 +0000]
printk: add loglevel for messages from /dev/kmsg

Bug 1644887

Allow messages to /dev/kmsg to have a different loglevel other than
the default_message_loglevel, which is the one kernel printk() uses
when no loglevel is specified.

Change-Id: I340d20693d87cfea9aaea51845caf32b4cbd62fa
Signed-off-by: Eric Miao <emiao@nvidia.com>
Reviewed-on: http://git-master/r/756603
Reviewed-by: Li Li (SW-TEGRA) <lli5@nvidia.com>
Tested-by: Li Li (SW-TEGRA) <lli5@nvidia.com>
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-on: http://git-master/r/805255
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vinayak Pane <vpane@nvidia.com>

4 years agoarm: tegra: dts: cmu: Tune LUT2 params
Arun Swain [Wed, 7 Oct 2015 21:19:05 +0000]
arm: tegra: dts: cmu: Tune LUT2 params

LUT2 cmu params further tuned for both sRGB and
enhanced_color on hawkeye. With this it very
closely matches gamma 2.2.

Bug 200089321

Change-Id: If831a2169bf7b4a8e3616219c16923b909bc6973
Signed-off-by: Arun Swain <arswain@nvidia.com>
Reviewed-on: http://git-master/r/817833
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

4 years agovideo: tegra: edid: Fix corrupted header
Animesh Kishore [Tue, 29 Sep 2015 08:42:33 +0000]
video: tegra: edid: Fix corrupted header

Fix base block header if corrupted.

Bug 200131561

Change-Id: Ic87fe0a466454502ea721676b746c77a4bdeba99
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/806557
(cherry picked from commit a2109be0cb0a9674a812f59d7a4f4cc92977c731)
Reviewed-on: http://git-master/r/818188
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>
GVS: Gerrit_Virtual_Submit

4 years agovideo: modedb: Fix vga timings
Animesh Kishore [Wed, 16 Sep 2015 12:19:40 +0000]
video: modedb: Fix vga timings

Revert back to original timings.
Regressed by patch http://git-master/r/#/c/780641/

Bug 200103501

Change-Id: Ie22f14e584f47fc362317718253f71e2f5b8e3dc
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/800116
(cherry picked from commit 835da905e7b9e19b1bc6d641a1bb1fc1b388e491)
Reviewed-on: http://git-master/r/818187
Reviewed-by: Mitch Luban <mluban@nvidia.com>
GVS: Gerrit_Virtual_Submit

4 years agovideo: tegra: dc: Do not NULL _sd_brightness.
Prafull Suryawanshi [Thu, 16 Jul 2015 05:23:12 +0000]
video: tegra: dc: Do not NULL _sd_brightness.

bug 200120741

There is race condition where while update brightness going on,
nvsd_init happens. Somehow update brighness yet not finished.
So while accessing _sd_brightness in between, we see kernel panic.

Change-Id: I01f7b739691f0ab06f55fdf443e46f527b509224
Signed-off-by: Prafull Suryawanshi <prafulls@nvidia.com>
Reviewed-on: http://git-master/r/770844
(cherry picked from commit dcd3eca43fea8dd95065e886760f219272657ecf)
Signed-off-by: Prafull Suryawanshi <prafulls@nvidia.com>
Reviewed-on: http://git-master/r/818020
Reviewed-by: Robert Shih <rshih@nvidia.com>
Reviewed-by: Gagan Grover <ggrover@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>

4 years agoloki:foster: emc update to 983 v11
David DSH [Tue, 25 Aug 2015 19:35:30 +0000]
loki:foster: emc update to 983 v11

v9:
-Update MRW command to use MRS_SHORT_WAIT_CNT for bug 200099624
-Fix W2W/R2R for lp4 dual rank usage for bug 1616889
-Add 5 new lp4 mappings
-Reduce PutermExtra by 2
-Fix unterminated CA/DQ vref to 42%
-DVFS_gen_script update to V1.4 from V1.3 for Vcore(mV)

v10:
-Change receiver mode for 665MHz from HSSA to DIFF to expand the OB margin
-Update 1600MHz Vcore from 875mV to 887mV to address 1600MHz regression failure on A02p silicon qual
-Vcore DVFS Table Update
EMC Freq. Vcore (mV)
1600MHz 887
1331.2MHz 850
1065.6MHz 837
800MHz 825
665MHz 825
408MHz 812
<=204MHz 800

V11:
Update DVFS table format to rev0x7
-Support moving average method for periodic calibration. It will improve the stability due to MEMIO noise.

Bug 1636958
Bug 1541472

Change-Id: I9848b4fb08a990022c44ecad8129d9139f00dbfd
Signed-off-by: David DSH <ddastoussthi@nvidia.com>
Reviewed-on: http://git-master/r/815468
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kerwin Wan <kerwinw@nvidia.com>
Tested-by: Kerwin Wan <kerwinw@nvidia.com>

4 years agoarm64: tegra: jetson_cv: update emc table to v7
Kerwin Wan [Fri, 7 Aug 2015 02:56:48 +0000]
arm64: tegra: jetson_cv: update emc table to v7

Bug 1650324

Change-Id: I03c2f60b330d0ffe7bb52da09e43d20cb3cc0cf2
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/780217
(cherry picked from commit 9e3456a58fc5cce211022743d8d30f8bcef677fc)
Reviewed-on: http://git-master/r/804530
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

4 years agoarm64: p2894: add a bring up memory table
Sang-Hun Lee [Wed, 14 Oct 2015 23:08:23 +0000]
arm64: p2894: add a bring up memory table

Bug 1695353

Change-Id: I971a7308ff4085f6cd17ac41e4d577792d5ef839
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/817819
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-by: Daniel Fu <danifu@nvidia.com>

4 years agomedia: nec-decoder: remove trailer_space state
Daniel Fu [Fri, 30 Jan 2015 17:31:09 +0000]
media: nec-decoder: remove trailer_space state

Remove STATE_TRAILER_SPACE from state machine.
Causing 2 issue:
- can not decode the keycode, if it didn't following with
  another keycode/repeat code
- will generate one more code in curreent logic.
  i.e. key_right + repeat code + key_left + repeat code.
  expect: key_right, key_left.
  Result: key_right, key_right, key_right.
  Reason: when receive repeat code of key_right, state machine will
  stay in STATE_TRAILER_SPACE state, then wait for a new interrupt,
  if an interrupt came after keyup_timer, then will generate another
  fake key.

According to the NEC protocol, it don't need a trailer space. Remove it.

Bug 1601127

Change-Id: I7b990e94c4fc26b4387dcbbb68ae6c4e4af4dd46
Signed-off-by: Daniel Fu <danifu@nvidia.com>
Reviewed-on: http://git-master/r/679574
(cherry picked from commit d6027e7ad132f42d066371773efb48257789774b)
Reviewed-on: http://git-master/r/816585
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vinayak Pane <vpane@nvidia.com>

4 years agomedia: rc: extend the margin for nec decoder
Daniel Fu [Tue, 3 Feb 2015 12:21:09 +0000]
media: rc: extend the margin for nec decoder

Bug 1601127

Change-Id: If39a358ec0726d06b201b32f6c26872e0c6b7d04
Signed-off-by: Daniel Fu <danifu@nvidia.com>
Reviewed-on: http://git-master/r/680617
(cherry picked from commit 0d7791e368bafaadfd70d08318c040423d32166e)
Reviewed-on: http://git-master/r/816584
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vinayak Pane <vpane@nvidia.com>

4 years agomedia: rc: Add auto-correct for nec decoder
Daniel Fu [Wed, 4 Feb 2015 15:53:10 +0000]
media: rc: Add auto-correct for nec decoder

- Add auto-correct for the Missing 1 pulse/space caes when IRQ is off.
  Only could handle when IRQ off duration < 1125us.
- Set Key press timout to be 125ms

Bug 1601127

Change-Id: I4488d84f07a46a00bb4489bea9cb795705bc9c99
Signed-off-by: Daniel Fu <danifu@nvidia.com>
(cherry picked from commit 585eb718ca36109c33b7f842a0a3a308c91baeb3)
Reviewed-on: http://git-master/r/816583
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vinayak Pane <vpane@nvidia.com>

4 years agodvfs: tegra21: Integrate CPU DVFS tables p4v54
Alex Frid [Wed, 30 Sep 2015 01:39:31 +0000]
dvfs: tegra21: Integrate CPU DVFS tables p4v54

Integrated CPU DVFS tables p4v54.

Bug 1689490

Change-Id: Id18408e310498073c9773a676919ddcd4abade13
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/807191
(cherry picked from commit be52f56009847b8f0e5f640a48a165515668e59c)
Reviewed-on: http://git-master/r/815779
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
Tested-by: Steve Rogers <srogers@nvidia.com>

4 years agoarm64: tegra: jetson_cv: disable INA on CVM by default
Kerwin Wan [Tue, 22 Sep 2015 07:25:42 +0000]
arm64: tegra: jetson_cv: disable INA on CVM by default

The INA on CVM will be fixed on DVT which is not avaliable
right now. In order not to confuse the consumers with the
wrong data reported by INA on CVM, disable it right now.
It will be enabled on DVT.

Bug 1657022

Change-Id: I6eff0365089f7716b93df107ab2df5d6bc8c3830
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/802711
(cherry picked from commit 14163ebd655d5f6276b057fb41a295eb998e5ab2)
Reviewed-on: http://git-master/r/815735
GVS: Gerrit_Virtual_Submit

4 years agovideo: tegra: dsi: limit dsi sync timeout.
Prafull Suryawanshi [Mon, 17 Aug 2015 09:16:42 +0000]
video: tegra: dsi: limit dsi sync timeout.

As for hawkeye panel, dsi needs commands while shutdown,
dsi syncpoint timeout causing shutdown to stall. To unblock
it, limiting the timeout for the dsi sync writes. Earlier
it was max, now changing it to 500 msec. This is safe to
detect faiure as dsi sync write atmost takes 60 msec.

bug 200124422

Change-Id: I706498d566fdf0d9d4443452b1dacf24a759a07e
Signed-off-by: Prafull Suryawanshi <prafulls@nvidia.com>
Reviewed-on: http://git-master/r/785188
(cherry picked from commit dfb766b06b3a2663501b11e9d8e4f24a3cdb5153)
Reviewed-on: http://git-master/r/815058
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

4 years agovideo: tegra: dsi: attempt retry for dsi write fail
Prafull Suryawanshi [Thu, 20 Aug 2015 09:03:52 +0000]
video: tegra: dsi: attempt retry for dsi write fail

This logic adds retry attempts for possible dsi write
failure. It also takes care of error to be propagated to
caller.

bug 200124422

Change-Id: I652ac4c6e513585a4f94048b6596e4aec9f22b4b
Signed-off-by: Prafull Suryawanshi <prafulls@nvidia.com>
Reviewed-on: http://git-master/r/786469
(cherry picked from commit e9f89cda70103526c1a524576de6d310fed434f2)
Reviewed-on: http://git-master/r/815057
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>

4 years agocpuquiet: Tweak runnable governor threshold
Sai Gurrappadi [Wed, 1 Jul 2015 01:25:38 +0000]
cpuquiet: Tweak runnable governor threshold

Reduced the threshold to go from 2->3core to 2.25 avg. threads instead of
2.75 avg. threads.

This allows us to respond faster to load and gives us better perf in some
cases.

Change-Id: I0833416915b978d8fe20ca4e040e56ab9201042c
Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/764515
(cherry picked from commit 0ea60ccdf0ef146db00e3ba74bd83d85d91a368e)
Reviewed-on: http://git-master/r/814732
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Michael Hsu <mhsu@nvidia.com>
Tested-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

4 years agosched: Move CFS tasks to CPUs with higher capacity
Sai Gurrappadi [Wed, 1 Jul 2015 01:06:40 +0000]
sched: Move CFS tasks to CPUs with higher capacity

Original commit message:

"When a CPU is used to handle a lot of IRQs or some RT tasks, the remaining
capacity for CFS tasks can be significantly reduced. Once we detect such
situation by comparing cpu_capacity_orig and cpu_capacity, we trig an idle
load balance to check if it's worth moving its tasks on an idle CPU.

It's worth trying to move the task before the CPU is fully utilized to
minimize the preemption by irq or RT tasks.

Once the idle load_balance has selected the busiest CPU, it will look for an
active load balance for only two cases:

  - There is only 1 task on the busiest CPU.

  - We haven't been able to move a task of the busiest rq.

A CPU with a reduced capacity is included in the 1st case, and it's worth to
actively migrate its task if the idle CPU has got more available capacity for
CFS tasks. This test has been added in need_active_balance.

As a sidenote, this will not generate more spurious ilb because we already
trig an ilb if there is more than 1 busy cpu. If this cpu is the only one that
has a task, we will trig the ilb once for migrating the task.

The nohz_kick_needed function has been cleaned up a bit while adding the new
test.

env.src_cpu and env.src_rq must be set unconditionnally because they are used
in need_active_balance which is called even if busiest->nr_running equals 1"

Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Morten.Rasmussen@arm.com
Cc: dietmar.eggemann@arm.com
Cc: efault@gmx.de
Cc: kamalesh@linux.vnet.ibm.com
Cc: linaro-kernel@lists.linaro.org
Cc: nicolas.pitre@linaro.org
Cc: preeti@linux.vnet.ibm.com
Cc: riel@redhat.com
Link: http://lkml.kernel.org/r/1425052454-25797-12-git-send-email-vincent.guittot@linaro.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>

Partial backport of upstream commit: 1aaf90a4b88aae26a4535ba01dacab520a310d17

Doesn't apply cleanly to k3.10 so did a manual backport.

Only intended for k3.10 kernels.

Change-Id: Idb88d844725aec934a7c0376b4fb0965c965da7c
Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/764514
(cherry picked from commit 900cc112802a46d6803e381a8dadf7c3c4bf385b)
Reviewed-on: http://git-master/r/814730
GVS: Gerrit_Virtual_Submit
Reviewed-by: Michael Hsu <mhsu@nvidia.com>
Tested-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

4 years agomfd: max77620: add support for configuring low-battery monitor
Laxman Dewangan [Wed, 7 Oct 2015 13:01:45 +0000]
mfd: max77620: add support for configuring low-battery monitor

Add support to configure low battery monitor configuration register.

Change-Id: I426742d3af44b8bd1980f10da67142215b4e6d93
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit 18d0e3f001a6e831172766fd51b42a4b8deefaa1)
Reviewed-on: http://git-master/r/815126
GVS: Gerrit_Virtual_Submit

4 years agoARM: dts: enable id detection on vbus interrupt
Somdutta Roy [Thu, 8 Oct 2015 11:20:42 +0000]
ARM: dts: enable id detection on vbus interrupt

adding enable-id-detect-on-vbus property to check
ID status on VBUS interrupt.

Bug 1690930

Change-Id: Ia3d7ffd55f29ed3598bc516bde4f1e1d4f89e4a3
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/814903
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoextcon: extcon-palmas: Provision ID status check from VBUS interrupt
Somdutta Roy [Mon, 5 Oct 2015 23:39:44 +0000]
extcon: extcon-palmas: Provision ID status check from VBUS interrupt

Resistance changes upon RIDB Y-Cable insertion sometimes not raising
ID interrupt causing failure in RIDB Y-Cable detection. Provisioned
checking ID status on VBUS interrupt if enabled in DTB.

Bug 1690930

Change-Id: If120d77048138d4dfeb7508b98fb20fa6051cb3d
Signed-off-by: Somdutta Roy <somduttar@nvidia.com>
Reviewed-on: http://git-master/r/814902
Reviewed-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Tested-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agosysedp: Jetson-CV: Re-enable reactive capping.
Anand Prasad [Tue, 29 Sep 2015 21:44:05 +0000]
sysedp: Jetson-CV: Re-enable reactive capping.

Due to policy changes, we will now re-enable h/w throttling when the
overcurrent monitor trips, as well re-enable sysedp reactive capping.

Bug 1665297

Change-Id: I03bf80ab8bce075e6dce76abf2a78b7c0058fd45
Signed-off-by: Anand Prasad <anprasad@nvidia.com>
Reviewed-on: http://git-master/r/807084
(cherry picked from commit b75cdfe2137441250efc1b2e7a800f740ca38dba)
Reviewed-on: http://git-master/r/812995
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hayden Du <haydend@nvidia.com>

4 years agoiio: proximity: SAR v17 binary filter
Erik Lilliebjerg [Tue, 29 Sep 2015 05:24:19 +0000]
iio: proximity: SAR v17 binary filter

- Add DT configurable debounce filters to proximity binary data.
- Add documenation that explains this.

Bug 200137195

Change-Id: I54833cd938f6489b26226ca4b0088c771eb46613
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/806579
(cherry picked from commit 2523efae1cb8d7a223c18267a0ab011b6f3f122e)
Reviewed-on: http://git-master/r/811738
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Tested-by: Robert Collins <rcollins@nvidia.com>

4 years agomisc: palmas: enable regulator when driver initial
Ian Chang [Wed, 7 Oct 2015 07:31:34 +0000]
misc: palmas: enable regulator when driver initial

enable regulator when driver initail to fix
regulator user count unbalance issue

bug 200143954

Change-Id: Idd4d25c3e09a654c4cee0b26c54aaa35d65f1625
Signed-off-by: Ian Chang <ianc@nvidia.com>
Reviewed-on: http://git-master/r/812705
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoARM64: tegra210: hawkeye: set FPS timing to 5120us
Prafull Suryawanshi [Wed, 7 Oct 2015 05:58:06 +0000]
ARM64: tegra210: hawkeye: set FPS timing to 5120us

Set FPS period to 5120 to allow more discharge time to cpu and gpu.

bug 1675404

Change-Id: I2a8299e5e2384a18cb6c1994c6c5ab5769f56a64
Signed-off-by: Prafull Suryawanshi <prafulls@nvidia.com>
(cherry picked from commit 2444777217279118c84a8ba3ecb51380f3d35ba0)
Reviewed-on: http://git-master/r/812662
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

4 years agoarm64: t210: change post soc core time
Prafull Suryawanshi [Wed, 7 Oct 2015 05:52:54 +0000]
arm64: t210: change post soc core time

With new cpu fps settings, we need to double this time
to make sure core waits before going in lp0.

bug 1675404

Change-Id: Ic43dc4250c81221f4c26588776999a6c2c86290e
Signed-off-by: Prafull Suryawanshi <prafulls@nvidia.com>
(cherry picked from commit 211029f562726b62a59e1d5867675ba63478f302)
(cherry picked from commit c0a905b3953181a4e7f3c04a14a38c7949911e22)
Reviewed-on: http://git-master/r/812652
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit