3 years agoiio: imu: nvi: v.320 ICM DMP support
Erik Lilliebjerg [Mon, 14 Mar 2016 02:48:22 +0000]
iio: imu: nvi: v.320 ICM DMP support

- Add ICM DMP support to MPU/ICM driver.
- Add ICM DMP support to AKM compass driver.
- Add ICM Significant Motion sensor support.
- Fix AKM09911 support.
- Fix BMPx80 possible NULL ptr crash on auto-detect.
- Fix coverity 20453.

Coverity ID: 20453

Bug 1416640
Bug 1722103
Bug 100130656
Bug 200162691

Change-Id: I19ae42f2fdeb67eb45bc54f440366ecaf0583b44
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/1031756
(cherry picked from commit 057038054403bfd75a8d3adf46c9d62e567dc7c9)
Reviewed-on: http://git-master/r/1030810
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Tested-by: Robert Collins <rcollins@nvidia.com>

3 years agotegra: dc: hdcp: Moving V' verification to kernel
Pranami Bhattacharya [Tue, 9 Feb 2016 00:02:53 +0000]
tegra: dc: hdcp: Moving V' verification to kernel

Bug 1718973

Change-Id: I5e23eb22d6dd0b0440d051ecef339dad5267730a
Signed-off-by: Pranami Bhattacharya <pranamib@nvidia.com>
Reviewed-on: http://git-master/r/1021606
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sharath Sarangpur <ssarangpur@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>

3 years agoHID: usbhid: fix a lockup in usbhid_disconnect()
JC Kuo [Fri, 1 Apr 2016 08:34:31 +0000]
HID: usbhid: fix a lockup in usbhid_disconnect()

Occasionally, hid_reset() couldn't bring device back to alive. In this
case, usbhid driver starts the procedure to disconnect the device from
HID core. However, a lockup shows in below stack trace can happen.

[   35.415519] kworker/0:3     D ffffffc00008691c     0   244      2 0x00000000
[   35.422591] Workqueue: events hid_reset
[   35.426433] Call trace:
[   35.428879] [<ffffffc00008691c>] __switch_to+0xc8/0xd4
[   35.434013] [<ffffffc000c6019c>] __schedule+0x668/0x808
[   35.439231] [<ffffffc000c60394>] schedule+0x58/0x60
[   35.444107] [<ffffffc000c5d8b8>] schedule_timeout+0x2c/0x260
[   35.449761] [<ffffffc000c5f908>] wait_for_common+0x134/0x170
[   35.455413] [<ffffffc000c5f958>] wait_for_completion+0x14/0x1c
[   35.461240] [<ffffffc0000cba6c>] flush_work+0x1cc/0x27c
[   35.466459] [<ffffffc0000cbcec>] __cancel_work_timer+0x130/0x1b4
[   35.472460] [<ffffffc0000cbd80>] cancel_work_sync+0x10/0x18
[   35.478027] [<ffffffc00093506c>] usbhid_close+0x64/0xa8
[   35.483248] [<ffffffc00090db24>] hidinput_close+0x1c/0x24
[   35.488644] [<ffffffc0007d0c44>] input_close_device+0x50/0x7c
[   35.494383] [<ffffffc0007f8088>] cfb_input_disconnect+0x14/0x30
[   35.500297] [<ffffffc0007d22dc>] __input_unregister_device+0xb8/0x158
[   35.506729] [<ffffffc0007d243c>] input_unregister_device+0x58/0x70
[   35.512902] [<ffffffc000910ef4>] hidinput_disconnect+0x5c/0x84
[   35.518728] [<ffffffc00090b7e0>] hid_disconnect+0x34/0x64
[   35.524119] [<ffffffc00090b880>] hid_device_remove+0x70/0xc4
[   35.529773] [<ffffffc00055109c>] __device_release_driver+0x94/0xe4
[   35.535945] [<ffffffc000551114>] device_release_driver+0x28/0x3c
[   35.541947] [<ffffffc000550890>] bus_remove_device+0x14c/0x170
[   35.547773] [<ffffffc00054dc7c>] device_del+0x140/0x1a0
[   35.552990] [<ffffffc00090bb8c>] hid_destroy_device+0x28/0x60
[   35.558729] [<ffffffc000935e10>] usbhid_disconnect+0x68/0x80
[   35.564383] [<ffffffc00074e740>] usb_unbind_interface+0x78/0x17c
[   35.570380] [<ffffffc00055109c>] __device_release_driver+0x94/0xe4
[   35.576552] [<ffffffc000551114>] device_release_driver+0x28/0x3c
[   35.582552] [<ffffffc00074e890>] usb_driver_release_interface+0x4c/0x80
[   35.589158] [<ffffffc00074e910>] usb_forced_unbind_intf+0x4c/0x64
[   35.595244] [<ffffffc00074e970>] unbind_marked_interfaces.isra.6+0x48/0x64
[   35.602109] [<ffffffc00074ead4>] usb_unbind_and_rebind_marked_interfaces+0x18/0x2c
[   35.609670] [<ffffffc000742168>] usb_reset_device+0x144/0x1ac
[   35.615408] [<ffffffc000936c34>] hid_reset+0xf8/0x19c
[   35.620453] [<ffffffc0000cb054>] process_one_work+0x2c8/0x4cc
[   35.626192] [<ffffffc0000cc418>] worker_thread+0x204/0x378
[   35.631670] [<ffffffc0000d2e04>] kthread+0xc0/0xc8

This commit introduce a disconnect bottom half worker function to HID device clean up
in another context so that the lock up can be avoided.

bug 1747873

Change-Id: I7e3b19a7cae4da6d33d26eb9e3bb332d2226a5f1
Signed-off-by: JC Kuo <jckuo@nvidia.com>
Reviewed-on: http://git-master/r/1118881
Reviewed-by: BH Hsieh <bhsieh@nvidia.com>
Reviewed-by: ChihMin Cheng <ccheng@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

3 years agoata: ahci_tegra: remove reference to cml1 clock
Preetham Chandru R [Tue, 23 Feb 2016 06:11:31 +0000]
ata: ahci_tegra: remove reference to cml1 clock

CML1 clk will be enabled and disabled from uphy driver
for T210 and hence removing the reference from here.

Change-Id: If45df59d3350f610d7a32b0f64e49ba0c1e3d7b3
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/1017327
(cherry picked from commit a26374a5994872f7a4ecbe8a1672983fa78df74f)
Reviewed-on: http://git-master/r/1118792
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoata: ahci_tegra: disable DIPM
Preetham Chandru R [Tue, 23 Feb 2016 06:24:34 +0000]
ata: ahci_tegra: disable DIPM

DIPM is not a POR for Tegra AHCI Sata Controller

Bug 200087528

Change-Id: I5a742170177c9f57426f3756a8cfafefa88af92b
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/1013776
(cherry picked from commit 7ebd3b1058491ee87686e9e731b79ecd914e00d9)
Reviewed-on: http://git-master/r/1031622
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

3 years agoata: ahci_tegra: WAR for Corsair
Preetham Chandru R [Wed, 24 Feb 2016 05:31:13 +0000]
ata: ahci_tegra: WAR for Corsair

Bug 200139714
Bug 1516519

Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Change-Id: I37f9e5e864333929df685f41dfa3e2c113c50373
Reviewed-on: http://git-master/r/1017942
(cherry picked from commit 3fb4d1212bec78a0636a0988b320be6e4300f781)
Reviewed-on: http://git-master/r/1031612
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

3 years agoplugin-manager: Add support for partial and GE match
Laxman Dewangan [Sun, 3 Apr 2016 14:22:38 +0000]
plugin-manager: Add support for partial and GE match

Currently the matching of board ID on board is done with exact
match. Add support for partial and >=fab ID support.

Partial match:
==============
 If matching string start with '^' or having the '*' in id string
 then apply partial match with board ID based on how string provided.
  Example: Suppose Board ID is 3310-1000-100, then the matching is
  done by saying ^3310-1000, 3310-1000-*, 3310-* etc.
  ^3310-1000 or 3310-1000-* means all fab ID of 3310-1000-,
  3310-* means all SKU and fab ID of 3310.

Greater than-equal to match:
===========================
  If matching string start with ">=" then it is applied for all board
  of same type of module having fab ID >= sting fab ID.
  Example: ">=3310-1000-100" means all fab 3310-1000-100 and later like
  3310-1000-200, 3310-1000-300 etc.

bug 1750159

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

3 years agoinput: touch: raydium:fix warnings during shutdown
Jordan Nien [Thu, 24 Mar 2016 03:48:33 +0000]
input: touch: raydium:fix warnings during shutdown

skip regulator_disable() if already disabled in
shutdown path.

Bug 200184433

Change-Id: Ic3217687a412f88c450cddd3337c725075fece07
Signed-off-by: Jordan Nien <jnien@nvidia.com>
Reviewed-on: http://git-master/r/1114775
(cherry picked from commit 5ead8d30b53100e6c9aa274815ce60f99f980e1c)
Reviewed-on: http://git-master/r/1116713
Reviewed-by: David Pu <dpu@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Eric Chuang <echuang@nvidia.com>

3 years agommc: sdhci: reduce card detect latency
Jeetesh Burman [Wed, 16 Sep 2015 04:31:52 +0000]
mmc: sdhci: reduce card detect latency

Card detection delay (700ms) was added early, this should
apply during resume from LP only, for running system, this delay
should be reduced to 200ms.

Bug 200108407

Change-Id: I5a9f51dd92c72f5af22b24e0d6c7d784f6011b62
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/799915
(cherry picked from commit d05a9bac6461ab941776354fc1751b8ae01500ce)
Reviewed-on: http://git-master/r/806613
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>

3 years agommc: sdhci: resume mmc_rescan at 700ms in LP0 exit
Jeetesh Burman [Thu, 27 Aug 2015 05:56:23 +0000]
mmc: sdhci: resume mmc_rescan at 700ms in LP0 exit

While resuming from LP0, all interrupts for sd card are not
enabled in early resume and during that if system sends any
command (e.g enumeration CMDs by plugin SD card), system
doesn't get any response for transmitted command, this causes,
driver throw sd dump registers.

350ms is not sufficient for Jetson-CV.

To fix this issue, resuming from LP0/1, "mmc_rescan" delayed
by 700ms, so that interrupts for SD card get enabled during this
period.

Bug 200108407

Change-Id: I64122764f5dd59aadb2d6e7b8963c8b6a87317c8
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/790156
(cherry picked from commit 50a06d9bf7bd0df115f12750f475c67747c9b113)
Reviewed-on: http://git-master/r/1119492
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>

3 years agousb: phy: tegra: Fix max value of xcvr_setup
Rohith Seelaboyina [Thu, 4 Feb 2016 16:17:38 +0000]
usb: phy: tegra: Fix max value of xcvr_setup

Max value allowed for xcvr_setup value is 0x3f
Although it has 7 bits, MSB is unused.

Bug 200161481

Change-Id: I1f6289ab3f12fcfefd5d877f2ac23d4850100028
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/1007710
(cherry picked from commit eaf3bb6817fd58cee5b87640af45ead2025471a8)
Reviewed-on: http://git-master/r/1021489
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agopcie: host: tegra: cleanup clkreq dir programming
Vidya Sagar [Fri, 1 Apr 2016 13:59:12 +0000]
pcie: host: tegra: cleanup clkreq dir programming

cleans up programming clkreq as a bi-directional signal

Bug 200187715

Change-Id: Idad27307ec259f27600d255350c3300e6f191291
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/1119030
(cherry picked from commit bb730705ac9b3a62b0e52271cd9b2b863a2e6600)
Reviewed-on: http://git-master/r/1119634
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

3 years agopcie: host: tegra: fix pads2plle powerdown
Vidya Sagar [Fri, 1 Apr 2016 13:51:09 +0000]
pcie: host: tegra: fix pads2plle powerdown

configures pads2plle powerdown by checking the CLKREQ status
immediately after link is up with end point

Bug 200187688
Bug 200184534

Change-Id: Ic69ca1f249c400d115fbd5a4bc91543780db0b59
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/1119022
(cherry picked from commit 33272b966c6fafdf8b43c7e437916887aa5c38db)
Reviewed-on: http://git-master/r/1119633
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

3 years agoARM64: t210: pcie: make clkreq signal input only
Vidya Sagar [Fri, 1 Apr 2016 13:44:29 +0000]
ARM64: t210: pcie: make clkreq signal input only

make clkreq signals input only in DT. they will be made
bi-directional if a suitable end point is found that supports
ASPM L1-SubStates

Bug 200187715

Change-Id: I2bbe918263681c9da06d3fdc32f4a9b083434b77
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/1119020
(cherry picked from commit 6a423d286b2c105ecab2c6ebbc8fec9084357b9e)
Reviewed-on: http://git-master/r/1119632
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

3 years agotegra-alt: adsp: update adsp pointer in apm_out
Viraj Karandikar [Thu, 31 Mar 2016 12:13:58 +0000]
tegra-alt: adsp: update adsp pointer in apm_out

Bug 200164448
Bug 200149702

Change-Id: I7352de827cd9fcae90931816bcaa0b3f2c23ee5f
Signed-off-by: Viraj Karandikar <vkarandikar@nvidia.com>
Reviewed-on: http://git-master/r/1118335
(cherry picked from commit 1cdda80459646c0402ffc0ee8456eb37d4543eb2)
Reviewed-on: http://git-master/r/1118906
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Viswanath L <viswanathl@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>

3 years agoregulator: max77620: Add support for suspend state fps, up/down slots
Laxman Dewangan [Fri, 6 Nov 2015 08:58:25 +0000]
regulator: max77620: Add support for suspend state fps, up/down slots

Add support to configure PMIC for fps source, up slot, down slot
in suspend state of device.

Bug 1748157

Change-Id: Ib67d6f1409370a20c4b01ee7d44ee2a6f6cd587a
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/828969
(cherry picked from commit b19f719fbdaa932ec9ed3c53d561376f404e1fc9)
Reviewed-on: http://git-master/r/829140
(cherry picked from commit 1a9b3064f5242a696abfc32ceca021ae6b43324d)
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/1117644
GVS: Gerrit_Virtual_Submit

3 years agowireless: bcmdhd: fix compiler warnings
Bhadram Varka [Mon, 29 Feb 2016 04:43:31 +0000]
wireless: bcmdhd: fix compiler warnings

This patch fixes:
o warning: function declaration isn't a prototype
o warning: ISO C90 forbids mixed declarations and code
o warning: unused variables
o warning: passing argument 2 of 'wldev_iovar_getint'
  discards 'const' qualifier from pointer target type
o warning: passing argument 3 of 'wldev_ioctl'
  discards 'volatile' qualifier from pointer target type

Bug 200177610

Change-Id: I409823c95d655ca32a1265228bc46c431c1002e4
Signed-off-by: Bhadram Varka <vbhadram@nvidia.com>
Reviewed-on: http://git-master/r/1021186
Reviewed-by: Manikanta Maddireddy <mmaddireddy@nvidia.com>
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

3 years agoarm64: create android devkit 24x7 DT file
Shreshtha SAHU [Sat, 2 Apr 2016 05:54:45 +0000]
arm64: create android devkit 24x7 DT file

Create Android devkit 24x7 DT file using android devkit and UCM2
personality DT files.

Bug 200185995

Change-Id: Ib748eabb8bb14c7c334c250485d884e749933b15
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/1119336
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoarm64: remove t186 related files
Shreshtha SAHU [Tue, 29 Mar 2016 11:49:30 +0000]
arm64: remove t186 related files

Delete following files:
./drivers/pinctrl/pinctrl-tegra186-padctl-uphy.c
./arch/arm64/boot/dts/tegra186-fpga-cl34563539.dts
./arch/arm64/boot/dts/tegra186-sim-cl34563539.dts
./arch/arm64/boot/dts/tegra186-fpga-cl34324618.dts
./arch/arm64/boot/dts/tegra186-sim-cl34324618.dts
./include/dt-bindings/memory/tegra186-swgroup.h

Bug 1748166

Change-Id: Ide593c7188c35e597e9c8efc94a8eab44a9bad57
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/1116938
Reviewed-by: Automatic_Commit_Validation_User

3 years agodrivers: net: update realtek v8.041 driver
Martin Gao [Fri, 26 Feb 2016 03:48:41 +0000]
drivers: net: update realtek v8.041 driver

After review the relese notes between v8.039 (previous driver in use)
to v8.041, here is the summary of some good fixes.
Inluded in v8.041:
- Change the default value of "rx_copybreak" from 200 to 0.
  This variable may cause kernel panic in some kernel verisons.
- Add disable msi when got fail in function rtl8168_init_one().
- For protect Rx FIFO, add clear rx filter when exit oob mode.
- Update RTL8111G(S) parameters.
Included in v8.040
- Add parameter "insmod r8168.ko hwoptimize=XXXX" to set hwoptimize.
- Update RTL8111GUS parameters.
- Add support for newer version efuse.
- For RTL8168F/RTL8168FB/RTL8411, Update EPHY parameters.
- Update RTL8111G(S) parameters.
- Fixed typo in Disable DMA Aggregation and Disable EDT.
- For RTL8111EP, disable cmac tx/rx when exit oob to prevent cmac hang.
  (Other OS may not disable cmac tx/rx when exit.)
- Disable Realwow related function before disable NowIsOob.
- Preventing stack overflow, divide rtl8168_init_hw_phy_mcu() into small
  individual functions according to chiptype.
- Ethtool -d command add support dump phy/ephy/eri regs.
- Using "prefetch" function to improve performance.
- Add support procfs read. Include following entrys. driver_var, tally,
  registers, pcie_phy, eth_phy, and ext_regs.
  usage:
cat /proc/net/r8168/ethx/pcie_phy
- When use procfs read entry "driver_var" add display chip name.
- The flush_scheduled_work() shouldn't be called, because it would remove
  all the work items on the system queue. However, not all of the work
  items belong to our driver.
- The rtl8168_proc_remove() should be called before rtl8168_release_board(),
  becasue the netdev would be freed in rtl8168_release_board(). Don't remove
  the /proc/net/r8168 folder until the driver is unloaded.
 -Add canceling work item in function rtl8168_close() and rtl8168_suspend().
 - Add delete napi.

Change-Id: I5e793e299b3f12b0b82590723650c6131405ff6a
Signed-off-by: Martin Gao <marting@nvidia.com>
Reviewed-on: http://git-master/r/1020422
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vinayak Pane <vpane@nvidia.com>

3 years agovideo: tegra: dc: add refresh rate debugfs
Daniel Solomon [Wed, 30 Mar 2016 02:43:13 +0000]
video: tegra: dc: add refresh rate debugfs

Add a debugfs node to measure refresh rate by counting frame end
interrupts.
Used by writing a number of seconds to measure to the node; results
show up in dmesg.

TDS-155

Change-Id: I13f437836ad84d1c11245ce67ff4abd209934f26
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/1117364
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

3 years agoarch: arm64: boot: dts: imx214 update
Arun Kannan [Mon, 28 Mar 2016 21:31:21 +0000]
arch: arm64: boot: dts: imx214 update

Bug 1726164

Change-Id: Ic574229f3ef12e2f4dfc6a4589d2ef5a962cef17
Signed-off-by: Arun Kannan <akannan@nvidia.com>
Reviewed-on: http://git-master/r/1116606
Reviewed-by: Bhanu Murthy V <bmurthyv@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kamal Balagopalan <kbalagopalan@nvidia.com>

3 years agomedia: i2c: imx2xx: unify imx214 and imx230
Arun Kannan [Fri, 25 Mar 2016 21:50:08 +0000]
media: i2c: imx2xx: unify imx214 and imx230

Bug 1726164

Change-Id: I3764474dd9efa160071193e7cc6aa4ca445f73a0
Signed-off-by: Arun Kannan <akannan@nvidia.com>
Reviewed-on: http://git-master/r/1116492
Reviewed-by: Bhanu Murthy V <bmurthyv@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kamal Balagopalan <kbalagopalan@nvidia.com>

3 years agocamera: tegra: Fix security vulnerability issue
Frank Chen [Fri, 25 Mar 2016 05:37:18 +0000]
camera: tegra: Fix security vulnerability issue

Deprecate outdated UPDATE_GPIO function in camera.pcl
driver. This function is not used by any code anymore
and is a security vulnerability since it is trying to
access user mode pointer directly.

Bug 1745102

Change-Id: I4e7e5f9c186f980dcadfe52ec4284102255f19cf
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/1115302
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Todd Poynter <tpoynter@nvidia.com>

3 years agortc: tegra: fix setting of multiple alarm
Jeetesh Burman [Thu, 31 Mar 2016 08:48:29 +0000]
rtc: tegra: fix setting of multiple alarm

with hwclock more than one time alarm getting set and this is
occured because of triggering of 2 times rtc-tegra interrupts.

To prevent multiple tegra-rtc interrupts, use "rtc_aie_update_irq"
instead of "rtc_update_irq" for alarm interrupts, so that when data
is available, system can wake-up hwclock process
(slept by poll call) instead of triggering rtc-tegra interrupt
and calling "rtc_timer_do_work" continously which is happening in
the case of "rtc_update_irq".

replace alarm setting message from dev_info to dev_dbg.

Bug 200182843

Change-Id: I06b179adfdf1223327652b39e4d13c0e00baac55
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/1118244
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>

3 years agogpu: nvgpu: WARN_ON if NULL params in pmu_cmd_post
Gagan Grover [Mon, 28 Mar 2016 12:09:39 +0000]
gpu: nvgpu: WARN_ON if NULL params in pmu_cmd_post

Don't need to BUG_ON. We can simply print kernel error message
along with call stack and return.

Bug 200182457

Change-Id: I06693f88372dfb5dd0dd2fae7630540594f302ba
Signed-off-by: Gagan Grover <ggrover@nvidia.com>
Reviewed-on: http://git-master/r/1115992
(cherry picked from commit f5cc88880e147f90d2cf9980db4322ee5fd613a6)
Reviewed-on: http://git-master/r/1117166
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

3 years agofbcon: Warn if no matching mode can be set
Thierry Reding [Mon, 7 Sep 2015 14:56:42 +0000]
fbcon: Warn if no matching mode can be set

var_to_display() should always be able to find a matching node because
the content of struct fb_var_screeninfo was derived from a mode in the
modelist associated with the struct fb_info.

However there are cases where this can happen: when a mode is converted
to a struct fb_var_screeninfo and back again, rounding errors can result
in the mode no longer matching the original. When this happens it causes
a crash further down the road in fbcon_switch() because it will try to
access a NULL mode. To make matters worse, this crash happens with the
console lock held, making it almost impossible to diagnose without going
in and disabling the lock.

Add a warning if this case is detected to give a hint about why things
might be going wrong.

Bug 200130894

Change-Id: I27bc0dca8d7b4d4d4dafb3d8829a5940a2f28995
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/927724
(cherry picked from commit 0fd1c75e01f85d5b6ca552532d572e920c0e53ab)
Reviewed-on: http://git-master/r/1118762
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>

3 years agomedia: i2c: imx274: update driver
Josh Kuo [Fri, 25 Mar 2016 09:56:41 +0000]
media: i2c: imx274: update driver

update driver

Bug 200182649

Change-Id: Ifc6d643fe487c389eeb4e0b33ef656a1bf1f2d08
Signed-off-by: Josh Kuo <joshk@nvidia.com>
Reviewed-on: http://git-master/r/1115364
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bruce Yang <kuoyuany@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Greg Lo <glo@nvidia.com>
Reviewed-by: Hayden Du <haydend@nvidia.com>

3 years agoinput: touch: raydium: update uevent driver path.
Jordan Nien [Wed, 13 Jan 2016 09:04:42 +0000]
input: touch: raydium: update uevent driver path.

- use drvier path from misc node to have a unify
  path for touch.

Bug 200157906

Change-Id: Ie671050e3739a48fcdd97b2e18a5d14055610b8c
Signed-off-by: Jordan Nien <jnien@nvidia.com>
Reviewed-on: http://git-master/r/932135
(cherry picked from commit 83b8f844c155945aa7ea0479fd83ce9e6c116c80)
Reviewed-on: http://git-master/r/1114921
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: David Pu <dpu@nvidia.com>
Reviewed-by: Eric Chuang <echuang@nvidia.com>

3 years agotegra-alt: adsp: messaging fixes
Viraj Karandikar [Tue, 15 Mar 2016 08:15:05 +0000]
tegra-alt: adsp: messaging fixes

Request acknowledge for params sent via mixer controls. This
ensures parameter messages are processed before suspend.
Use a default message handler to flag completion event when APM
is used in cases other than offload and PCM streams.

Send all messages (connect, io buffer etc.) immediately.

If message queue is full, then trigger APM via maibox interrupt,
wait and attempt to queue again.

Fix check for wait timeout.

Print error if message queues are not empty when suspending.

Bug 200149702

Change-Id: Iddb1d8d62c659949294cfe258f88bad22e28cc92
Signed-off-by: Viraj Karandikar <vkarandikar@nvidia.com>
Reviewed-on: http://git-master/r/1031472
(cherry picked from commit 245037401f6302afd8bc9817aadb5af26f2aa95c)
Reviewed-on: http://git-master/r/1112198
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>

3 years agodrivers: media: camera: Multiple channel support
Bhanu Murthy V [Mon, 21 Mar 2016 21:25:05 +0000]
drivers: media: camera: Multiple channel support

Fix header references which are no longer needed.
Fix issues in CSI pad configuration for port A
when port B is programmed.
Fix CSI port and num lanes information for CSI
in VI mode when multiple channels are available.
Fix CSI power sequence for TPG mode.
Remove duplicated DPD programming of CSI channels
when sensor is connected. In case of TPG mode,
DPD programming is handled within CSI
power sequence.

Bug 1736471

Change-Id: Id43a32926277e03d20f993484baae7c5b623bcbe
Signed-off-by: Bhanu Murthy V <bmurthyv@nvidia.com>
Reviewed-on: http://git-master/r/1113880
(cherry picked from commit 022e9de4246e237e3d7ee18525f8c3e57cb4bf28)
Reviewed-on: http://git-master/r/1113678
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

3 years agoarch: arm64: boot: dts: VI mode updates
Bhanu Murthy V [Mon, 21 Mar 2016 21:02:09 +0000]
arch: arm64: boot: dts: VI mode updates

Fix E3333 label entries.
Add csi information required for VI mode in
individual DT and plug-in manager for E3333,
E3322 and E3323 modules.

Bug 1736471

Change-Id: I340604b1efe8ccf5895883ad53ee8466d13efa45
Signed-off-by: Bhanu Murthy V <bmurthyv@nvidia.com>
Reviewed-on: http://git-master/r/1113879
(cherry picked from commit 0c10cd3de33ee28b4a5c982172f0b303a408781a)
Reviewed-on: http://git-master/r/1112632
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

3 years agoARM64: DT: Foster: Add IN to EU map for Foster
kraghavender [Wed, 30 Mar 2016 07:06:05 +0000]
ARM64: DT: Foster: Add IN to EU map for Foster

IN country code need to be mapped to EU, handling the same
in dts.

Bug 1723610

Change-Id: Ida56ab620439e27c567b8459564cc979d2c92e95
Signed-off-by: kraghavender <kraghavender@nvidia.com>
Reviewed-on: http://git-master/r/1117478
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoARM64: dts: t210: add dynamic-pad-voltage property
Venkat Reddy Talla [Tue, 29 Mar 2016 08:38:59 +0000]
ARM64: dts: t210: add dynamic-pad-voltage property

Adding enable-dynamic-pad-voltage dts property to PMC node
to allow dynamic voltage configuration.

Bug 1735995

Change-Id: I853e2d089c81cb1e8aeca72f24746ff4622cc9d7
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/1116858
(cherry picked from commit eb19f722df771e7bc09441f234951988e15af3fd)
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/1117067
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agopadctrl: tegra210: allow dynamic pad voltage if selected from DT
Venkat Reddy Talla [Tue, 22 Mar 2016 11:31:54 +0000]
padctrl: tegra210: allow dynamic pad voltage if selected from DT

Allow dynamic pad voltage configuration only if this is selected
from DT. This will avoid the mis configuration of pads if platform
does not want and driver try to do it.

Bug 1735995

Change-Id: I361a332fcf2b8f66ea23247db57db4704e050986
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/1114077
(cherry picked from commit 47613cd5e890fce32c6debfbd53d1c74fd220e7d)
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/1117066
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agoarm64: jetson-cv: add note about duplicate pinmuxing
Stephen Warren [Tue, 29 Mar 2016 16:19:31 +0000]
arm64: jetson-cv: add note about duplicate pinmuxing

Explain that when booting L4T with U-Boot, the pinmux configuration in
the DT is not applied by the kernel.

Bug 1738572

Change-Id: If7a19bc4dc9949e068acfae404dee11b2addd432
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Reviewed-on: http://git-master/r/1117063
Reviewed-by: Tom Warren <twarren@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>

3 years agoRevert "revert "fbcon: Compare variable screen info instead of modes""
Naveen Kumar S [Mon, 28 Mar 2016 13:51:47 +0000]
Revert "revert "fbcon: Compare variable screen info instead of modes""

This reverts commit fae8c6c89041afe14aca750b22d5eefcac591d25.
Xserver hang was observed due to the original change, hence reverted
as part of bug 1716596. The hang was root caused to bug 200169212, which
has been resolved by http://git-p4swmirror/r/16930. Hence restoring
the original change.

bug 200168814
bug 200169212

Change-Id: I402ea50b8e9e12b370469bda4e0d7e8123663cea
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/1116012
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>

3 years agoARM64: dts: enable plugin-manager for odm data
Venkat Reddy Talla [Mon, 21 Mar 2016 06:27:41 +0000]
ARM64: dts: enable plugin-manager for odm data

Enabling plugin-manager for Hawkeye platform to use
ODA data bits to override DTS status property.

Bug 200183463

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

3 years agodrivers: media: i2c: imx185: fix driver crash
Gaurav Batra [Thu, 24 Mar 2016 21:16:06 +0000]
drivers: media: i2c: imx185: fix driver crash

V4L2 frameworks needs pad_ops to be populated by the driver, otherwise it
results in null pointer dereference.

Bug 200168141

Change-Id: Ifb1dea9d9ff8e383e4ecf9c2e6d6f3cca9de281b
Signed-off-by: Gaurav Batra <gbatra@nvidia.com>
Reviewed-on: http://git-master/r/1115090
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kai Lee <kailee@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

3 years agoarm64: dts: darcy: update vbus/eth power-tree
JC Kuo [Thu, 28 Jan 2016 05:51:33 +0000]
arm64: dts: darcy: update vbus/eth power-tree

1. USB_VBUS_EN1 (GPIO_PCC0) controls VBUS to USB3 Std-A J1
2. USB_VBUS_EN0 (GPIO_PCC5) controls VBUS to USB3 Std-A J2
3. UART3_CTS (GPIO_PD4) controls power to RTL8111GS

bug 1720549

Change-Id: I24cc77a6496868d79083c248f2622995abe61981
Signed-off-by: JC Kuo <jckuo@nvidia.com>
Reviewed-on: http://git-master/r/999156
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Martin Gao <marting@nvidia.com>
Tested-by: Martin Gao <marting@nvidia.com>
Reviewed-by: Daniel Fu <danifu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

3 years agoarm64: boot: dts: darcy: XHCI and XUDC port maps
JC Kuo [Thu, 28 Jan 2016 05:26:29 +0000]
arm64: boot: dts: darcy: XHCI and XUDC port maps

Darcy has two USB 3.0 Std-A ports:
1. J1 - OTG_CAP, SS port 0 using PEX lane 6, with USB 2.0 port 0
2. J2 - HOST_ONLY, SS port 1 using PEX lane 5, with USB 2.0 port 2

bug 1720549

Change-Id: I6a8a8af8013a6401bed529ebf5ebebe4cb1207e9
Signed-off-by: JC Kuo <jckuo@nvidia.com>
Reviewed-on: http://git-master/r/999155
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoplatform: tegra210: powergate: lock and refcount
JC Kuo [Thu, 28 Jan 2016 04:20:33 +0000]
platform: tegra210: powergate: lock and refcount

Use mutex_lock() and refcount for tegra210_pg_powergate_clk_off() and
tegra210_pg_unpowergate_clk_on(), so that physical powergate state
can match refcount.

bug 1720549

Change-Id: Ic17156da454138a2ba2541e719f5c6ad1609c3b3
Signed-off-by: JC Kuo <jckuo@nvidia.com>
Reviewed-on: http://git-master/r/999154
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
Reviewed-by: Martin Gao <marting@nvidia.com>
Tested-by: Martin Gao <marting@nvidia.com>

3 years agoARM64: dts: darcy: add xlate and extcon-gpio node
Venkat Reddy Talla [Wed, 24 Feb 2016 10:27:00 +0000]
ARM64: dts: darcy: add xlate and extcon-gpio node

Adding cable-xlate and extcon-gpio-states dt node to support
cable connection state change based on sysfs entry.

Bug 1720549

Change-Id: Ica0d1280c424a1fec242fb09883f1a6ab3fb5f22
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/1018110
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Martin Gao <marting@nvidia.com>
Tested-by: Martin Gao <marting@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vinayak Pane <vpane@nvidia.com>

3 years agovideo: tegra: nvmap: fix NVMAP_PAGES_ZAP_AND_CLEAN
Sri Krishna chowdary [Sat, 26 Mar 2016 07:49:44 +0000]
video: tegra: nvmap: fix NVMAP_PAGES_ZAP_AND_CLEAN

NVMAP_PAGES_ZAP_AND_CLEAN is same as NVMAP_PAGES_RESERVE
except for tracking the reserve/unreserve pages. Tracking
is avoided but currently it is being treated as
NVMAP_PAGES_UNRESERVE operation. So, fix it.

bug 200167711

Change-Id: If582cd71cd45fecd4d54cd2bd5a104ac1d6c1295
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/1115616
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

3 years agoARM64: dtsi: Update default tap values for sdmmc2/sdmmc4
Naveen Kumar Arepalli [Tue, 22 Mar 2016 04:46:46 +0000]
ARM64: dtsi: Update default tap values for sdmmc2/sdmmc4

Bug 1732860

Change-Id: Iaa92c9df97e75bceae5041e9d8ac3cc2b3c3fb4d
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/1113897
Reviewed-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

3 years agovideo: tegra: dc: restore access MUX after regdump
Daniel Solomon [Fri, 12 Feb 2016 18:58:31 +0000]
video: tegra: dc: restore access MUX after regdump

When dumping registers, we switch to active read/write MUX.
But at the end of this function, we don't restore to assembly MUX.
A significant portion of DC accesses are performed with the assumption
that the MUX is set to assembly. This change restores the original MUX
state after dumping registers.

Bug 200105859

Change-Id: I36bdc05064cff06aa1f8fba4e87d5ce4a2d718ee
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/1011426
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agovideo: tegra: hdmi: debug node for hdmi driver state
Santosh Reddy Galma [Fri, 4 Mar 2016 13:17:31 +0000]
video: tegra: hdmi: debug node for hdmi driver state

This change adds a debug node to know the HDMI driver
state for hotplug. Following info can be known.
- hotplug state : Value of "0" indicates unplug state
and value of "1" indicates plug state
- SCDC present : Value of "1" indicates presence of
SCDC block from EDID of connected monitor.
- Forum VSDB present : Value of "1" indicates presence
of Forum VSDB from EDID of connected monitor
- YCbCr4:2:0 VDB present : Value of "1" indicates
presence of YCbCr4:2:0 data block from EDID

Bug 200176415

Change-Id: Ia3163b7c9368946226d37f231bdb5e850f3424fa
Signed-off-by: Santosh Reddy Galma <galmar@nvidia.com>
Reviewed-on: http://git-master/r/1024131
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
(cherry picked from commit e56575906fd47da41730c3329fe279c130e381b1)
Reviewed-on: http://git-master/r/1115610
GVS: Gerrit_Virtual_Submit

3 years agodts: add properties to enable usb for p4573.
Ted Chen [Mon, 22 Feb 2016 06:12:33 +0000]
dts: add properties to enable usb for p4573.

add properties to enable usb for p4573.

Bug 200174695

Change-Id: I499e1958874767676ab9b88d21ba097014a79d7b
Signed-off-by: Ted Chen <tedc@nvidia.com>
Reviewed-on: http://git-master/r/1014722
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agomedia: tegra: nvavp: Fix reloc offset check
Somu Sundaram [Fri, 18 Mar 2016 07:22:59 +0000]
media: tegra: nvavp: Fix reloc offset check

- Check whether command buffer data offset is 32-bit
  aligned
- Check whether relocation offset is 32-bit aligned
  and calculated offset is within command buffer size
- Check whether target offset is 32-bit aligned
  and derived address is within target buffer size

Bug 1741516

Change-Id: Ie5370bc1538c8cf9a702904fb88eb850baeb063d
Signed-off-by: Somu Sundaram <somasundaram@nvidia.com>
Reviewed-on: http://git-master/r/1112711
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Somu Sundaram <somasundarams@nvidia.com>
Reviewed-by: Jaiprkash Khemkaar <jkhemkar@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

3 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().

(cherry picked from commit bc3f5f7d619578d864a33508747de03c6adeba0b)

Change-Id: I07082e781ab9d8bbcc3ac5ff3ca31bbbc5666eb3
Signed-off-by: Eric Miao <emiao@nvidia.com>
Reviewed-on: http://git-master/r/711712
Reviewed-on: http://git-master/r/805260
Reviewed-on: http://git-master/r/1029127
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

3 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.

(cherry-picked from commit 69867681b50f345c9180d63570a8436a33557809)

Change-Id: I8c4ba7a8f037497dc64cd7fd215027ce91c59201
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-on: http://git-master/r/805259
Reviewed-on: http://git-master/r/1029126
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

3 years ago[socherm][T210/HE] HW PLLX update min/max offset
Cyril Raju [Fri, 19 Feb 2016 03:04:47 +0000]
[socherm][T210/HE] HW PLLX update min/max offset

Updating min/max offsets for GPU-therm / CPU-therm for better tracking during
Vmin

Bug 1734487

Change-Id: Ie55e028ded72b29f5850f176b68e4df8e08ea238
Signed-off-by: Cyril Raju <craju@nvidia.com>
Reviewed-on: http://git-master/r/1013698
Reviewed-by: Steve Rogers <srogers@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

3 years ago[soctherm] Fix VDD_GPU Vmin for PLLX fallback
Cyril Raju [Thu, 10 Mar 2016 01:51:28 +0000]
[soctherm] Fix VDD_GPU Vmin for PLLX fallback

Update GPU tsosc vmin limit to 824mV. When the rail voltage
falls below this limit, the tsosc is rendered unreliable.
To handle this, make use of soctherm pllx fallback for low
voltages.

Bug 1593595

Change-Id: I12ae87cfe26f431b4d0105510bc4bdf0610086d8
Signed-off-by: Cyril Raju <craju@nvidia.com>
Reviewed-on: http://git-master/r/1028507
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoplatform: tegra: lower loglevel for no device node
Shreshtha SAHU [Mon, 14 Dec 2015 10:29:33 +0000]
platform: tegra: lower loglevel for no device node

Lower log level for "No Device Node present for smmu client" from
info to debug.

Bug 200137952

Change-Id: Ia4d069f87c8d0f82e92e4f0fa3d647ca56edcbd9
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/922468
(cherry picked from commit ee521be93adf4a8001945b2fcb9a19c8249e79f3)
Reviewed-on: http://git-master/r/1112758
GVS: Gerrit_Virtual_Submit

3 years agodriver: media: i2c: ov13860 sensor driver
Nine Feng [Thu, 25 Feb 2016 09:35:12 +0000]
driver: media: i2c: ov13860 sensor driver

Add ov13860 sensor driver under I2C for media
controller framework.

Bug 1726169

Change-Id: I942ad33ecc0138d9e7869329abc311fe631c82d2
Signed-off-by: Nine Feng <nfeng@nvidia.com>
Reviewed-on: http://git-master/r/1019896
GVS: Gerrit_Virtual_Submit
Reviewed-by: David Wang (SW-TEGRA) <davidw@nvidia.com>
Reviewed-by: Bhanu Murthy V <bmurthyv@nvidia.com>
Reviewed-by: Kamal Balagopalan <kbalagopalan@nvidia.com>

3 years agodrivers: soctherm: fix get_cur_state for HW throt device
navneet kumar [Thu, 17 Mar 2016 22:46:33 +0000]
drivers: soctherm: fix get_cur_state for HW throt device

Device tree initilized driver does not report hw throttle cur_state correctly.
This is root caused to the following two issues:

1. hw throttle cooling devices' get_cur state routine returns early on if the
private data passed during registration is not a thermal_trip*.

2. Device tree specific registration code path passes NULL as private data
to cooling_device_register().

Hence, a cur_state change is never reflected on the sysfs nodes (although the
HW throttling works as expected).

To address this,

1. decouple get_cur_state with thermal_trip_type, and let it check only the cdev
type.

2. modify all the cdev_register instances to pass cdev_type string as private
data.

Bug 200160040

Change-Id: Iee57b953e187835811d62babedb19e77dc0c9d31
Signed-off-by: navneet kumar <navneetk@nvidia.com>
Reviewed-on: http://git-master/r/1112481
(cherry picked from commit 4b79288bfeb74837d2b5cfbf86d2f12d252bd2a7)
Reviewed-on: http://git-master/r/1113890
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agotegra: soctherm: remove gpu pskip support
navneet kumar [Tue, 15 Mar 2016 18:49:09 +0000]
tegra: soctherm: remove gpu pskip support

soctherm driver no more supports chips older than T124 (e.g, T114, T148). For
all the newer chips, GPU has its own HW thermal throttling method and pskip
settings in soctherm are obsolete. soctherm HW block simply asserts a 3 bit
signal to GPU in order to engage throttling.

remove old SW routines intended for gpu_pskip_support; fix gpu_throt_state
routine to directly read hw throttling status register instead of pskip.

Bug 200160040

Change-Id: If58f6d6789038e6682da56bbb78b4ed01349d228
Signed-off-by: navneet kumar <navneetk@nvidia.com>
Reviewed-on: http://git-master/r/1031780
(cherry picked from commit 9f64dcf5c413f375124074e7c5c88f293159b977)
Reviewed-on: http://git-master/r/1113886
Reviewed-by: Todd Poynter <tpoynter@nvidia.com>
Tested-by: Todd Poynter <tpoynter@nvidia.com>

3 years agocamera: tegra: Fix security vulnerability issue
Frank Chen [Mon, 21 Mar 2016 17:40:45 +0000]
camera: tegra: Fix security vulnerability issue

We need to validate power on/off function size passed
in from user mode in order to avoid integer overflow
or out of memory failures.

Bug 1745100

Change-Id: Idddd848f7dc1e864559ad219f9204325128484e5
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/1113818
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Todd Poynter <tpoynter@nvidia.com>

3 years agoARM64: DT: Hawkeye: Update camera module info
Frank Chen [Fri, 18 Mar 2016 17:34:06 +0000]
ARM64: DT: Hawkeye: Update camera module info

Switch Hawkeye rear camera module to 5BA508T2.

Bug 1743928

Change-Id: Id3334d92cb03d61d972249d56df37c3ccad22e81
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/1112961
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: David Schalig <dschalig@nvidia.com>
Tested-by: David Schalig <dschalig@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

3 years agopower: battery-gauge: get proper RTC DEV to use PMIC RTC
Venkat Reddy Talla [Fri, 18 Mar 2016 09:10:54 +0000]
power: battery-gauge: get proper RTC DEV to use PMIC RTC

Currently TEGRA RTC is enabled for T210 platforms, due to this
device unable to reboot to KCL after poweringoff with high charger
cable connected to device and battery is not fully charged,
using rtc_class_open with BACKUP_HCTOSYS device to get PMIC rtc
device to set alarm to PMIC to reboot device due to charger event.

If both TEGRA_RTC and PMIC_RTC enabled, then
CONFIG_RTC_BACKUP_HCTOSYS_DEVICE is used for PMIC RTC and
CONFIG_RTC_HCTOSYS_DEVICE is used for TEGRA RTC

and only if PMIC RTC is enabled then
CONFIG_RTC_HCTOSYS_DEVICE is used for PMIC RTC.

Bug 200183892

Change-Id: I2d4a21d3742b0703b5175989a19908fac9d5fa69
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/1112794
GVS: Gerrit_Virtual_Submit
Reviewed-by: Steve Rogers <srogers@nvidia.com>

3 years agopower: reset: max77620: use udelay instead of usleep_range
Vaibhav Shinde [Mon, 7 Mar 2016 08:42:49 +0000]
power: reset: max77620: use udelay instead of usleep_range

Use udelay instead of usleep_range().

bug 200155663

Change-Id: Iabf2457317c146149f540606653afe123822b99a
Signed-off-by: Vaibhav Shinde <vashinde@nvidia.com>
Reviewed-on: http://git-master/r/1024701
(cherry picked from commit fb1260a76b13e4c68ac1d94463e656184e8db313)
Reviewed-on: http://git-master/r/1028152
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agotegra12_dvfs: implemented find_gpu_fmax_at_vmin
Mubushir Rahman [Thu, 4 Feb 2016 23:04:04 +0000]
tegra12_dvfs: implemented find_gpu_fmax_at_vmin

Bug 200144370

Change-Id: I6022a0ad75aef714dd653476f7acb349f6128553
Signed-off-by: Mubushir Rahman <mubushirr@nvidia.com>
Reviewed-on: http://git-master/r/1008630
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Anders Kugler <akugler@nvidia.com>
Tested-by: Anders Kugler <akugler@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

3 years agodrivers: media: tegra: camera: video format
Bhanu Murthy V [Wed, 16 Mar 2016 20:19:35 +0000]
drivers: media: tegra: camera: video format

Fixes video format data/control flow between
sub-devices and VI driver.

Bug 1736471

Change-Id: If12b0570edd3485ae18c2a6613b568fc5c77f125
Signed-off-by: Bhanu Murthy V <bmurthyv@nvidia.com>
Reviewed-on: http://git-master/r/1111722
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

3 years agodrivers: media: platform: tegra: VI mode
Bhanu Murthy V [Wed, 3 Feb 2016 00:33:15 +0000]
drivers: media: platform: tegra: VI mode

Adds VI mode for the media controller driver
Adds power and clock settings required for CSI
and VI devices. Adds register programming of
VI/CSI devices based on the configuration
required by the camera module.

Bug 1617777
Bug 1736741

Change-Id: I65d41afadedbbdf03d0a4d9f0fa7b2192a182fe3
Signed-off-by: Bhanu Murthy V <bmurthyv@nvidia.com>
Reviewed-on: http://git-master/r/1002024
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

3 years agoarch: arm64: boot: dts: Fix CSI parameters
Bhanu Murthy V [Tue, 2 Feb 2016 23:59:49 +0000]
arch: arm64: boot: dts: Fix CSI parameters

Adds CSI and TPG clocks.
Fix to read csi port and number of lanes

Bug 1617777
Bug 1736471

Change-Id: I4df22e871db2cbeea879ccc216cdb5923e1786f3
Signed-off-by: Bhanu Murthy V <bmurthyv@nvidia.com>
Reviewed-on: http://git-master/r/1002023
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agodrivers: media: camera: vi controls
Bhanu Murthy V [Tue, 2 Feb 2016 23:47:03 +0000]
drivers: media: camera: vi controls

Add bypass control for all channels.
Enable TPG control access to all channels, TPG
control overrides all other channel settings.

Bug 1617777
Bug 1736471

Change-Id: Ied1938493d290b602c87f158cf7d44be1bc99206
Signed-off-by: Bhanu Murthy V <bmurthyv@nvidia.com>
Reviewed-on: http://git-master/r/933416
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

3 years agortc: tegra: fix persistent clock
Krishna Yarlagadda [Wed, 9 Mar 2016 08:22:11 +0000]
rtc: tegra: fix persistent clock

read_persistent_clock is supposed to return current
time and not diff from last read.

Bug 200170914

Change-Id: If78a2c4322a1548b4a4719bfe1ed8284c3177f95
Reviewed-on: http://git-master/r/1027071
(cherry picked from commit b2884b953b2c2c3bc6e47ae26ad7cc710ba0545d)
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/1111903
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agortc: tegra: avoid race condition with rtc read
Krishna Yarlagadda [Mon, 14 Mar 2016 06:13:16 +0000]
rtc: tegra: avoid race condition with rtc read

Reading RTC registers after immediate write can result in
wrong values as updating shadow registers in APB for RTC
can take nearly another 250us after the write is complete.

Bug 1698877

Change-Id: I2805e1af447d1c663b3384a25760f1a8c03038c7
Reviewed-on: http://git-master/r/1030650
(cherry picked from commit 9a1934c57e59c3a5c26f7ca6294419cf8eff3012)
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/1111347
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agoRevert "tty:vt:initialize console in blanked state"
Bibek Basu [Thu, 28 Jan 2016 07:00:11 +0000]
Revert "tty:vt:initialize console in blanked state"

This reverts commit fd15e47aaa01eed64b05d4e6379bcdb4f8b1fc70.
This change breaks framebuffer console display during boot if
more than one head is enabled.

Bug 200164516

Change-Id: Ifaebe98e6dbaf4a796e11e1dff059d26ba4eefdc
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/999282
(cherry picked from commit 110baaa92b8757d6f9d46e78456c0bba3f662ffe)
Reviewed-on: http://git-master/r/1031674
GVS: Gerrit_Virtual_Submit

3 years agoarm64: boot: dts: Update emc to 984 v3 for Darcy
Daniel Fu [Tue, 8 Mar 2016 08:50:13 +0000]
arm64: boot: dts: Update emc to 984 v3 for Darcy

Bug 1695353

Change-Id: I41534a512b6a532c2380e918566ddaa6c75eb135
Signed-off-by: Daniel Fu <danifu@nvidia.com>
Reviewed-on: http://git-master/r/1026333
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: David Dastous St Hilaire <ddastoussthi@nvidia.com>
Tested-by: David Dastous St Hilaire <ddastoussthi@nvidia.com>
Reviewed-by: Vinayak Pane <vpane@nvidia.com>

3 years agomedia: tegra_camera: add support continuous clk
Bryan Wu [Sat, 27 Feb 2016 00:16:15 +0000]
media: tegra_camera: add support continuous clk

Some sensor support continuous clk some not, this patch add support for
this.

Bug 1716418

Change-Id: Iba2027564156c931af3aadbb25459e61bb704a61
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/1020983
(cherry picked from commit ecd730e4931f4bfef2e04da9cf1d23ed01735f88)
Reviewed-on: http://git-master/r/1020988
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

3 years agomedia: tegra_camera: clear status registers
Bryan Wu [Fri, 26 Feb 2016 22:47:02 +0000]
media: tegra_camera: clear status registers

When some error bits are set in status registers, they should be
cleared before read the status register again. Otherwise these status
error bits will be there forever.

Bug 1716418

Change-Id: Iabeace237abdcb52d179a377712785264fb77884
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/1020982
(cherry picked from commit 618028fc5429735ba78536c7eed7de0978d12585)
Reviewed-on: http://git-master/r/1020987
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

3 years agomedia: tegra_camera: add debug counter support
Bryan Wu [Thu, 25 Feb 2016 19:13:50 +0000]
media: tegra_camera: add debug counter support

Tegra VI hardware support debug counter to know how many frames are
captured by VI.

Bug 1716418

Change-Id: I577a388a5ec31f596ed28aa8511ec2f5e8f2a803
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/1020981
(cherry picked from commit a3aada2ccd61a1e38c1922d8b4e6bade6b50b632)
Reviewed-on: http://git-master/r/1020986
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

3 years agoRevert "Revert "ARM64: tegra210: move Host1x to separate asid""
Deepak Nibade [Thu, 25 Feb 2016 06:56:31 +0000]
Revert "Revert "ARM64: tegra210: move Host1x to separate asid""

This reverts commit 023c33851af6c13455f024a9f5f1dc7645c177b0.

Since TSEC issue is being resolved with http://git-master/r/#/c/1017981/
restore the original patch

Bug 200176235

Change-Id: Ic97dcfbcdfa53659ecb554375b3f8d94a9f5c191
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/1019806
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

3 years agovideo: tegra: host: tsec: Get cmdbuf from host as
Arto Merilainen [Mon, 5 Oct 2015 12:19:50 +0000]
video: tegra: host: tsec: Get cmdbuf from host as

Currently all buffers are allocated from TSEC address space - including
the command buffer that is read by host1x. This becomes an issue if we
want to use different address spaces for host1x and tsec.

This patch modifies command buffers to be allocated from host1x address
space to allow using different address spaces for host1x and tsec.

Bug 1688003
Bug 200176235

Change-Id: I76fd8dc05eefe71d23b3c2e1b40052436a5bb82b
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/811943
(cherry picked from commit 886f02c339a55a38a1cf0eb95747977e08db82d3)
Reviewed-on: http://git-master/r/1017981
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

3 years agogpu: nvgpu: gm20b: pmu version update
Mahantesh Kumbar [Tue, 1 Mar 2016 09:39:40 +0000]
gpu: nvgpu: gm20b: pmu version update

- ucode CL http://git-master/r/#/c/1021926/
- EXTERR exception for ZBC L2 regsiters access
  during ELPG entry/exit.
  FIX : ZBC L2 is not part of GR, so ZBC L2 rigsters
  save/restore not required for ELPG entry/exit,

  P4 CL 20490253

Bug 200166877

Change-Id: If066e0e217d1f97cd92d060a86e558e5111007b6
Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com>
Reviewed-on: http://git-master/r/1022004
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kerwin Wan <kerwinw@nvidia.com>

3 years agovideo: tegra: dc: Fixes for 59.94Hz seamless
Ankita Garg [Thu, 10 Dec 2015 04:02:27 +0000]
video: tegra: dc: Fixes for 59.94Hz seamless

- Set vmode correctly
- Fix incorrect computation of pclk in dc

Bug 1735599
Bug 200158722

Change-Id: Ie2e120982ea866c27d4891110e52ed6589c9765b
Signed-off-by: Ankita Garg <ankitag@nvidia.com>
Reviewed-on: http://git-master/r/923868
GVS: Gerrit_Virtual_Submit
Reviewed-by: Santosh Galma <galmar@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>

3 years agoARM64: Jetson CV: move vana to the right place
Bryan Wu [Tue, 15 Mar 2016 00:36:57 +0000]
ARM64: Jetson CV: move vana to the right place

'vana' regulator supply is still needed by soc_camera V4L2 driver

Bug 1740664

Change-Id: Ib07420024dffaeaf15de61ea2d6b5d81040516ad
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/1031256
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: David Wang (SW-TEGRA) <davidw@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

3 years agomedia: soc_camera: add back ov5693_v4l2 driver
Bryan Wu [Tue, 15 Mar 2016 00:35:45 +0000]
media: soc_camera: add back ov5693_v4l2 driver

Bug 1740664

Change-Id: I6c9740d2f15b3c3923a97b2fa8bbd471ac624d36
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/1031255
Reviewed-by: Bhanu Murthy V <bmurthyv@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: David Wang (SW-TEGRA) <davidw@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

3 years agomedia: soc_camera: tegra: fix building error
Bryan Wu [Thu, 10 Mar 2016 01:54:15 +0000]
media: soc_camera: tegra: fix building error

Add soc_camera driver related macro checks, otherwise soc_camera driver
will fail to build.

Bug 1740664

Change-Id: I4e227a7cdc9337f26e3a12ded792392a51816042
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/1031254
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: David Wang (SW-TEGRA) <davidw@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

3 years agodevfreq: compare previous_freq only if podgov disabled
Deepak Nibade [Wed, 16 Mar 2016 10:22:20 +0000]
devfreq: compare previous_freq only if podgov disabled

In update_devfreq(), we currently get target frequency,
compare it with previous_freq, and set it only if
new freq is different one

But get_target_freq() (nvhost_pod_estimate_freq())
already takes care of such cases in normal conditions
Hence, remove the check with previous_freq in
update_devfreq()

For case when we disable podgov governor, we might still end
up setting max freq all the time
Hence, add a check on previous_freq, and if previous_freq
is already max, do not set it

Bug 200175874
Bug 200161377

Change-Id: I287d37c07ee6214ed48612482211ce0f45088ca4
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/1111437
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

3 years agoarm64: dts: Remove wifi firmware country code mapping for Jetson
Srinivas Ramachandran [Tue, 15 Mar 2016 19:22:33 +0000]
arm64: dts: Remove wifi firmware country code mapping for Jetson

JetsonE/CV platform does not use location based country selection.
Remove the country code mapping for Jetson platform and keep only
the worldwide safe region code for Jetson.

Bug 1743521

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

3 years agoarm64: dts: Update wifi firmware/nvram path for JetsonE
Srinivas Ramachandran [Tue, 15 Mar 2016 19:09:38 +0000]
arm64: dts: Update wifi firmware/nvram path for JetsonE

Update nvram and firmware path strings for JetsonE board.

Bug 1716265

Change-Id: I16ac726224dcef04f5b9835b084c94e9eedd3491
Signed-off-by: Srinivas Ramachandran <srinivasra@nvidia.com>
Reviewed-on: http://git-master/r/1031839
GVS: Gerrit_Virtual_Submit
Reviewed-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

3 years agomedia: tegra: nvavp: Fix arbitrary kernel write
Somu Sundaram [Tue, 15 Mar 2016 13:01:57 +0000]
media: tegra: nvavp: Fix arbitrary kernel write

Add checks for command buffer offset, relocation
offset in command buffer and target offset for patching
relocation to prevent aritrary kernel write

Bug 1741516

Change-Id: Ia6183ca75f983c0ede23606be9e5d824aa5fa41d
Signed-off-by: Somu Sundaram <somasundaram@nvidia.com>
Reviewed-on: http://git-master/r/1031654
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Soumen Dey <sdey@nvidia.com>
Tested-by: Somu Sundaram <somasundarams@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

3 years agoARM: tegra: Maintain state of WDT after resume same as before suspend
Gagan Grover [Tue, 8 Mar 2016 12:09:38 +0000]
ARM: tegra: Maintain state of WDT after resume same as before suspend

Do not start WDT in resume if it was not running before suspend.

Bug 1737038

Change-Id: I18d56b86561220fe109f8f5e28aa2f0ebc901fae
Signed-off-by: Gagan Grover <ggrover@nvidia.com>
Reviewed-on: http://git-master/r/1026416
(cherry picked from commit b06471f35627c0897bb2597fb2b071baa1665c35)
Reviewed-on: http://git-master/r/1026593
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agogpu: nvgpu: fix race condition with poweroff
Seshendra Gadagottu [Thu, 28 Jan 2016 18:54:32 +0000]
gpu: nvgpu: fix race condition with poweroff

When gpu rail-gating is enabled, it is possible that
both rail gating code and system shudown can start
executing gk20a_pm_prepare_poweroff() in parallel.
To synchronize this execution, protect gk20a_pm_prepare_poweroff()
with a mutex lock.

Bug 200168805
Bug 200179045
Bug 200177659

Change-Id: I19536a43ed20c3e82b32c316922dc3e19e3f59bb
Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Signed-off-by: Gagan Grover <ggrover@nvidia.com>
Reviewed-on: http://git-master/r/999548
Reviewed-on: http://git-master/r/1024768
(cherry picked from commit 9f1c2cefae513783e2609cfafc94c066ad09f956)
Reviewed-on: http://git-master/r/1111205
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Kerwin Wan <kerwinw@nvidia.com>

3 years agoarch: arm64: config: enable IMX185 sensor
esenc [Mon, 22 Feb 2016 02:36:18 +0000]
arch: arm64: config: enable IMX185 sensor

Add imx185 senosr support

Bug 200168141
Bug 200160365

DEPENDS ON: <http://git-master/r/1019677>

Change-Id: I822a13d7b3dacf99768319bd7568d2561e243380
Signed-off-by: esenc <esenc@nvidia.com>
Signed-off-by: Rui Zhuo <rzhuo@nvidia.com>
Reviewed-on: http://git-master/r/1019687
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agodrivers: media: i2c: IMX185 sensor
esenc [Mon, 22 Feb 2016 02:32:12 +0000]
drivers: media: i2c: IMX185 sensor

Bug 200160365
Bug 200168141

DEPENDS ON: <http://git-master/r/1019687>

Change-Id: Ia6906a83e07a4e437909b37cd824131240991dab
Signed-off-by: esenc <esenc@nvidia.com>
Signed-off-by: Rui Zhuo <rzhuo@nvidia.com>
Reviewed-on: http://git-master/r/1019677
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

3 years agodrivers: media: Add device to camera_common
Bhanu Murthy V [Tue, 2 Feb 2016 23:57:11 +0000]
drivers: media: Add device to camera_common

Init device to camera common for drivers
where i2c_client is not available. e.g: csi

Bug 1617777
Bug 1736471

Change-Id: Ic0e1b8e66b971834d51a3928cfe839c50ebfdf04
Signed-off-by: Bhanu Murthy V <bmurthyv@nvidia.com>
Reviewed-on: http://git-master/r/1002022
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

3 years agort5639: Reduced delay in set bias standby
Asha T [Mon, 14 Mar 2016 09:27:03 +0000]
rt5639: Reduced delay in set bias standby

Helps in reducing cold ouptput latency
to go below 100ms

Bug 200180104

Change-Id: I468afa9b7444e5dfc3128833a0b4c8537163ebf0
Signed-off-by: Asha T <atalambedu@nvidia.com>
(cherry picked from commit 5885daae1322255ae5cfc6bee45ccabcecb5498a)
Reviewed-on: http://git-master/r/1032069
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>

3 years agot210: jetson: change Jetson fastboot pid to 0xEE01
Hayden Du [Tue, 8 Mar 2016 10:08:10 +0000]
t210: jetson: change Jetson fastboot pid to 0xEE01

bug 200179591

Change-Id: Icc5eee2b38eba6197d5ac7adb746f594a2184e0a
Signed-off-by: Hayden Du <haydend@nvidia.com>
Reviewed-on: http://git-master/r/1026346
GVS: Gerrit_Virtual_Submit
(cherry picked from commit eeff19ffd85ea17cb098c30c5acc50d60a69fa5b)
Reviewed-on: http://git-master/r/1031974

3 years agoasoc: es755: add delay b/w route setup & teardown
Srinivas Anne [Sat, 12 Mar 2016 00:42:57 +0000]
asoc: es755: add delay b/w route setup & teardown

change Summary:
Audience FW requires atleast 30 msec to setup the PT_VP route properly.
Added 30msec sec delay before stopping the PT_VP route. This should
prevent the Audience FW going into a bad state during fast
plug-in/plug-out

Bug 1734659
Bug 1730416

Change-Id: Ic555c33863565765010afa6b477beca9625a9331
Signed-off-by: Srinivas Anne <sanne@nvidia.com>
Reviewed-on: http://git-master/r/1030309
Reviewed-on: http://git-master/r/1031228
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agogpu: nvgpu: Disable illegal comptag interrupt
Terje Bergstrom [Fri, 11 Mar 2016 15:55:30 +0000]
gpu: nvgpu: Disable illegal comptag interrupt

Illegal comptag interrupt is triggered when a page is mapped with
two different kinds with incompatible compression status. This can
be intentional, so disable the interrupt.

Change-Id: I84a212beac147991d09d2d381a9e770b1364f4d8
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1029663
(cherry picked from commit 819607a768f9fccdd0b233d58bcf88b9eee4ee19)
Reviewed-on: http://git-master/r/1031033
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

3 years agogpu: nvgpu: Clear comptags for whole buffer
Terje Bergstrom [Thu, 18 Feb 2016 19:23:44 +0000]
gpu: nvgpu: Clear comptags for whole buffer

Clear comptags for whole buffer when nvgpu sees the buffer for the
first time.

Change-Id: I67108ce0f0def46ddda1aa9b9bb5ea22549cce13
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1013517
(cherry picked from commit 544446aacdc695dc2e27c42a0086292cd69c2eee)
Reviewed-on: http://git-master/r/1031032
GVS: Gerrit_Virtual_Submit

3 years agoarm64: config: disable MAX77620 watchdog
Bibek Basu [Mon, 14 Mar 2016 06:04:19 +0000]
arm64: config: disable MAX77620 watchdog

Disable MAX77620 watchdog as it resets DDR
regulator also leading corrupt DDR data.
Instead we are using Tegra Watchdog

Bug 200167729

Change-Id: I5ffe1457138b2948d1c8dcf2ff35712d998067b1
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/1030646
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoarm64: dts: enable ap watchdog node
Bibek Basu [Mon, 14 Mar 2016 06:02:04 +0000]
arm64: dts: enable ap watchdog node

Enable AP watchdog node in Base DT as PMU
watchdog causes DDR reset leading data corrupted

Bug 200167729

Change-Id: Id75b5b264efb5335c3a8e387bdf87dd0b795721a
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/1030645
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoasoc: es755: Acquire wakelock during hs detection
Srinivas Anne [Fri, 4 Mar 2016 05:28:21 +0000]
asoc: es755: Acquire wakelock during hs detection

change Summary:
Acquire wakelocks while processing wired accessory detection.
This should prevent the system from going to LP0 while processing wired
accessory detection.

Bug 1732138

Change-Id: I6d3343a6495985384488c6224a6b71416cb24410
Signed-off-by: Srinivas Anne <sanne@nvidia.com>
Reviewed-on: http://git-master/r/1026894
Reviewed-on: http://git-master/r/1023873
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoarm64: dts: jetson_cv: add dts for imx274
Josh Kuo [Wed, 9 Mar 2016 02:27:11 +0000]
arm64: dts: jetson_cv: add dts for imx274

the dts is used for imx274

Bug 1715620
Bug 200142167

Change-Id: I90abe7083a5fbef0695e2ee8e9205a384caa4265
Signed-off-by: Josh Kuo <joshk@nvidia.com>
Reviewed-on: http://git-master/r/1026860
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

3 years agovideo: tegra: host: check if offset is u32 aligned
Deepak Nibade [Fri, 11 Mar 2016 08:29:20 +0000]
video: tegra: host: check if offset is u32 aligned

In nvhost_ioctl_ctrl_module_regrdwr(), we copy offset
to read/write from user space but we do not have
any check on it

So it is possible for user space to add unaligned
offset and request read/write which would crash the
system

Fix this by explicitly checking alignment of the
offset passed by user space

Bug 1739935

Change-Id: Iea2a07c60500af876b732a0e9d9d08535aa53b5c
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/1029405
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoplatform: tegra: nvadsp: Fix use of mailbox dumps
Ajay Nandakumar [Tue, 23 Feb 2016 12:23:13 +0000]
platform: tegra: nvadsp: Fix use of mailbox dumps

The mailbox dumps needs to be called before runtime suspend is called.
If called after suspend, the register access become invalid and the
device crashes.

Bug 200149702

Change-Id: I0836e2c3eaccdeaaeb3357df6ca4abfc63acff69
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Reviewed-on: http://git-master/r/1031332
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>