]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/log
sojka/nv-tegra/linux-3.10.git
8 years agoasoc: es755: add routine es755_get_select_endpoint
Viraj Karandikar [Fri, 22 Jan 2016 11:54:14 +0000 (17:24 +0530)]
asoc: es755: add routine es755_get_select_endpoint

Setting control via tinymix requires get function
to be implemented.

Bug 200100724

Change-Id: I19795e943aca1ece8ddfba40670a1a7c0424501d
Signed-off-by: Viraj Karandikar <vkarandikar@nvidia.com>
Reviewed-on: http://git-master/r/936223
GVS: Gerrit_Virtual_Submit
Reviewed-by: Srinivas Anne <sanne@nvidia.com>
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
8 years agoarm64: tegra210: jetson-tx1: rename top devkit DT
Shreshtha SAHU [Thu, 3 Mar 2016 06:25:04 +0000 (11:55 +0530)]
arm64: tegra210: jetson-tx1: rename top devkit DT

Rename Jetson-TX1 devkit top DT file to match older customer
releases.

Bug 200178102

Change-Id: I89c0afda54c2e9ad36655a9dd261720f095687ec
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/1023091
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agommc: tegra: Diasble async resume for sdmmc.
Naveen Kumar Arepalli [Thu, 3 Mar 2016 13:20:19 +0000 (18:50 +0530)]
mmc: tegra: Diasble async resume for sdmmc.

Bug 1723392

Change-Id: I95abc5576d4f5d2e868698515de5c154434e9db4
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/1023415
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Gagan Grover <ggrover@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
8 years agoarm64: t210: lp8557: increase pwm-period of BLC.
Prafull Suryawanshi [Thu, 3 Mar 2016 05:30:38 +0000 (11:00 +0530)]
arm64: t210: lp8557: increase pwm-period of BLC.

bug 1737550

lp8557 backlight controller needs to have pwm frequency input less
than 25 KHz. To achieve this, pwm-period needs to increase which gives
23 KHz pwm frequency output from t210.

Change-Id: I4dac1942f4750618ba18cde0e5d23ffb1665abdb
Signed-off-by: Prafull Suryawanshi <prafulls@nvidia.com>
Reviewed-on: http://git-master/r/1023041
(cherry picked from commit 5d6a4c090fe2e42fce3af6312b7cd67494677fdd)
Reviewed-on: http://git-master/r/1026060
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>
8 years agoARM64: dts: remove T18x dts files and references
Venkat Reddy Talla [Mon, 7 Mar 2016 05:17:52 +0000 (10:47 +0530)]
ARM64: dts: remove T18x dts files and references

Removing T18x interposer dts files and refereces from rel-24
branch as there is no support available for T18x platforms in
rel-24 branch.

Bug 1737918

Change-Id: I35236c6fa31bc91f6e2150803c8964e45302158c
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/1024568
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agogpu: nvgpu: recycle the cmdbuf instead of freeing after job done
Sagar Kadamati [Fri, 12 Feb 2016 11:45:34 +0000 (17:15 +0530)]
gpu: nvgpu: recycle the cmdbuf instead of freeing after job done

When adding new job for the channel
Just check, is there any expired cmdbuf from prev jobs
If so simply use the exiting cmdbuf, instead of creating one
If not just create cmdbuf

All allocated cmdbuf's are freed on channel release

we mostly avoid dynamic allocations for cmdbuf

By using this way, we have advantages of both the worlds
So we gain performance in both (app startup and runtime)

Bug 1652936

Change-Id: Ia2d8441a728e5225ef3e1d3775bfae710c46f3d2
Signed-off-by: Sagar Kadamati <skadamati@nvidia.com>
Reviewed-on: http://git-master/r/1013178
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
8 years agoarm: tegra: prioritize board-id based panel init
Naveen Kumar S [Wed, 10 Feb 2016 13:23:20 +0000 (18:53 +0530)]
arm: tegra: prioritize board-id based panel init

If display board id has been specified by user, it is better
to directly initialize that particular panel instead of
searching for panels which are enabled in DT.

bug 200140014

Change-Id: I2bf2edaf96eee9a7f45ee5f735e475a71ec62c00
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/1010459
(cherry picked from commit bcf25ac5f9a5357772fd64fa8b7e8f0b0eb50c99)
Reviewed-on: http://git-master/r/1026237
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agoARM: tegra: read reset-reason for pmic watchdog
Jeetesh Burman [Thu, 24 Dec 2015 13:58:19 +0000 (19:28 +0530)]
ARM: tegra: read reset-reason for pmic watchdog

as nvtboot store last reset-reason in case of pmic-watchdog
timeout to PMC_SCRATCH203.
kernel can read this register to know the last reset.

Bug 200160618

Change-Id: I6af708a875ccb92d47c4d854498273128e9720df
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/926861
(cherry picked from commit 06703423e5bb82cc540d752670b73dc1bc7d2a3c)
Reviewed-on: http://git-master/r/1023984
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
8 years agovideo: tegra: eDP: l4t: enable auo 14" 1080p panel
Naveen Kumar S [Wed, 16 Sep 2015 14:37:21 +0000 (20:07 +0530)]
video: tegra: eDP: l4t: enable auo 14" 1080p panel

Adding support for AUO 14" 1080p eDP panel + E1824 Display board
on L4T for Jetson-CV

bug 200140014

Change-Id: I21e424e4432a572d6e1a17a9727ed9cae27c2f46
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/800150
(cherry picked from commit 38731cf7142723b75aeb2cfcc3d69ddaf5347550)
Reviewed-on: http://git-master/r/1009956
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agovideo: tegra: eDP: l4t: enable sharp 4k panel
Naveen Kumar S [Mon, 1 Feb 2016 16:08:52 +0000 (21:38 +0530)]
video: tegra: eDP: l4t: enable sharp 4k panel

Adding support to enable Sharp 15.6" UHD panel + E1824 Display board
on L4T for Jetson-CV

bug 200140014

Change-Id: Ied631056ad2a5e77fa4357b54caca7373e556c91
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/1000925
(cherry picked from commit 28d27b52fc90dfe3f25ee66b5b8c219acf30be0b)
Reviewed-on: http://git-master/r/1009387
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agodrivers: video: tegra: Add full range HDMI support
Aly Hirani [Thu, 23 Apr 2015 23:41:15 +0000 (16:41 -0700)]
drivers: video: tegra: Add full range HDMI support

HDMI sinks by default are only expected to support limited range
which restricts each channel to 16-235, rather than 0-255. The spec also
optionally allows sinks to support full range by declaring a
"quantization selectable" bit in the VCDB block in the EDID.

If the quantiazation selectable is marked as true (independent bools for
RGB/YUV), then the source is allowed to select full range by setting the
RGB/YUV limited/full range bits in the avi infoframe.

This patch adds:
1. A new VMODE flag to indicate that the specific mode is limited range
2. A new FB_CAP_* to indicate that the display supports overriding
RGB/YUV and the associated EDID parsing.
3. Applies the new VMODE LIMITED RANGE to the RGB/YUV modes based
on whether the TV supports overriding the quantization in that color
space as the default.
4. Adds the logic in the hdmi modeset to enable CMU iff we are in RGB
and limited range.
5. Adds the logic in the hdmi driver to set the avi infoframe based on
whether the current mode has the limited range flag set or not.

Bug 1611691

Change-Id: I9c42fea51211c6ed71945a17fe8f1353811951d9
Signed-off-by: Aly Hirani <ahirani@nvidia.com>
Reviewed-on: http://git-master/r/937115
(cherry picked from commit 235ae9a14be0e710232689c88be680ac856e1edf)
Reviewed-on: http://git-master/r/1013673
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agoof: Fix __of_device_is_available check
Xiubo Li [Mon, 13 Jan 2014 03:07:28 +0000 (11:07 +0800)]
of: Fix __of_device_is_available check

From IEEE 1275, there defined a standard 'status' property indicating the
operational status of one device. The 'status' property has four possible
values: 'okay/ok', 'disabled', 'fail' and 'fail-xxx'.

If it is absent, that means the status of the device is unknown or okay.

The __of_device_is_available checks the state of the 'status' property of
a device. If the property is absent or set to 'okay/ok', it returns 1.
Otherwise it returns 0.

While in __of_device_is_available:
 > status = of_get_property(device, "status", &statlen);
 > if (status == NULL)
 > return 1;
The status value returned from 'of_get_property()' will be NULL in two cases:
Firstly: the 'device' value (device node) is NULL.
Secondly: the 'status' property is actaully not exist.

If the device node is NULL, the __of_device_is_available will return true,
that will mean the absent state of the 'status' property.

So this add the device node check before checking the 'status' property's
state, and if the device node is not exist, 0 will be returned.

Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com>
Signed-off-by: Grant Likely <grant.likely@linaro.org>
(cherry picked from commit 42ccd781bb206804501ff490fd771bb940ca9969)

Change-Id: I157ee216ca4abb927420273a37922a64680bbd5b
Signed-off-by: Bhadram Varka <vbhadram@nvidia.com>
Reviewed-on: http://git-master/r/1024552
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
8 years agoRevert "arm64: config: tegra21: Add CONFIG_HZ=300"
David Lock [Mon, 7 Mar 2016 17:40:57 +0000 (09:40 -0800)]
Revert "arm64: config: tegra21: Add CONFIG_HZ=300"

This reverts commit 360395e54cd3dc647dc7cbc0fa218e995eeb51e3.

Bug 200176856

Change-Id: Ieb5719fb8dee0c1d6e67481330141899219dc073
Signed-off-by: David Lock <dlock@nvidia.com>
Reviewed-on: http://git-master/r/1024886
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agoarm64: dts: darcy: update fastboot instruction
Yunfan Zhang [Fri, 26 Feb 2016 01:53:50 +0000 (09:53 +0800)]
arm64: dts: darcy: update fastboot instruction

- Update fastboot instruction for navigation with Shield Controller

Bug 200176025
Bug 200140080

Change-Id: Ica51f0919e4ac5fff8111662e36d8b018cb41e63
Signed-off-by: Yunfan Zhang <yunfanz@nvidia.com>
Reviewed-on: http://git-master/r/1020393
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
8 years agoarm64: dts: darcy: enable xusb in bootloader
Yunfan Zhang [Thu, 25 Feb 2016 04:59:57 +0000 (12:59 +0800)]
arm64: dts: darcy: enable xusb in bootloader

- added flag 'nvidia,bootloader-xusb-enable' in /chosen for xusb support
  in BL
- bootloader will check it to init xhci controller or not

Bug 200140080

Change-Id: I09bc6d06efad6e018c194a3a35d2eb3b9a8800f5
Signed-off-by: Yunfan Zhang <yunfanz@nvidia.com>
Reviewed-on: http://git-master/r/1020392
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Martin Gao <marting@nvidia.com>
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
8 years agoARM64: DT: Add auto detect support for E3333 board
Frank Chen [Thu, 3 Mar 2016 01:52:22 +0000 (17:52 -0800)]
ARM64: DT: Add auto detect support for E3333 board

Add auto detect support for E3333 (ov5693 x6) camera
board.

Bug 1729926

Change-Id: I589c228ef911f09fd9c2e3186f3f47e3094db9ad
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/1011399
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Hayden Du <haydend@nvidia.com>
8 years agoARM64: DT: Add support for E3333 camera board
Frank Chen [Thu, 11 Feb 2016 00:47:15 +0000 (16:47 -0800)]
ARM64: DT: Add support for E3333 camera board

Add E3333 (ov5693 x6) camera board support

Bug 1729926

Change-Id: Id55e48f5405a7e91d54e6f34b649d0ace931a68a
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/1011398
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Bryan Wu <pengw@nvidia.com>
Reviewed-by: Hayden Du <haydend@nvidia.com>
8 years agoARM64: DT: update auto detect graph settings
Frank Chen [Wed, 2 Mar 2016 22:48:13 +0000 (14:48 -0800)]
ARM64: DT: update auto detect graph settings

Update e3322/e3323/e3326 camera board graph settings to
reflect the recent media controller changes.

Bug 1737368

Change-Id: I31b47ebc5d603fd2f7888f7425445bb2114f05fb
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/1022862
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Bhanu Murthy V <bmurthyv@nvidia.com>
Reviewed-by: Hayden Du <haydend@nvidia.com>
8 years agoMerge 'Linux 3.10.96' into rel-24
Mrutyunjay Sawant [Mon, 7 Mar 2016 12:43:35 +0000 (04:43 -0800)]
Merge 'Linux 3.10.96' into rel-24

Here we are trying to merge linux-3.10.96 with rel-24. For this
we have to revert a downstream change. So, in order to avoid pushing a
separate change for that, we first pushed merge of the upstream change
with the reverted change to a dev branch, and now are merging the dev-branch
with rel-24 TOT.

Bug 200176691

Change-Id: Ia4f0071f52aa0068c8eb8165739dab39414d97f5
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
8 years agotegra: hdmi: Add support for graceful HDR exit
Arun Swain [Tue, 1 Mar 2016 03:24:15 +0000 (19:24 -0800)]
tegra: hdmi: Add support for graceful HDR exit

1. Implement the spec way of exiting HDR.
2. Clean up the bit setting part in hdr
infoframe.
3. Take out tegra_dc_set_hdr () from CMU ifdef.

Bug 200122117

Change-Id: I6575cb742827bd83f7f60eac30c4c487733187a4
Chanae-Id: I6c37cc45ba8750b5a45cbe8b5818b5c16340b00c
Signed-off-by: Arun Swain <arswain@nvidia.com>
Reviewed-on: http://git-master/r/1022283
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agotegra: soctherm: fix negative temp debugfs output
Shreshtha SAHU [Mon, 22 Feb 2016 09:48:50 +0000 (15:18 +0530)]
tegra: soctherm: fix negative temp debugfs output

soctherm debugfs temperature nodes were not printing negative temperatures.
Fixed attribute from %llu to %lld to print negative values, instead of in
two's complement.

Bug 200168448

Change-Id: I1c7220c41d51f1a350db32cbf6f722cf97cdc258
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/1014847
(cherry picked from commit 43519725b7a82482dd715ab92033ad746ae28b94)
Reviewed-on: http://git-master/r/1020605
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agokconfig: Foster PRO no idle sata
David DSH [Thu, 3 Mar 2016 20:51:22 +0000 (12:51 -0800)]
kconfig: Foster PRO no idle sata

Idle doens't work properly with this feature in.

boot.img size is reduced by 2632 bytes

Bug 1579438
Bug 200176631
Bug 200173379

Change-Id: I4b1f9568bec4aed55ea98726dbbeb6831fcd7bf3
Signed-off-by: David DSH <ddastoussthi@nvidia.com>
(cherry picked from commit 223b9ecdb0321b06b225eb91d25802eaa330a6d8)
Reviewed-on: http://git-master/r/1023631
Reviewed-on: http://git-master/r/1024272
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
8 years agoarm: tegra: ardbeg: set gpio_hp_det correctly
Byungkuk Seo [Fri, 26 Feb 2016 06:15:52 +0000 (15:15 +0900)]
arm: tegra: ardbeg: set gpio_hp_det correctly

Have BOARD_E1784 configured with TEGRA_GPIO_CDC_IRQ (GPIO_PH4)
to fix an issue detecing headphone (un)plug issue, which does the same as P1761

Bug 200174456

Change-Id: I8b7e7ee766ccb34f920740a42dded58497370a4e
Signed-off-by: Byungkuk Seo <bseo@nvidia.com>
Reviewed-on: http://git-master/r/1023221
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
8 years agodts:jetson-cv: Use nvoice.elf for ADSP-AEC
Viswanath L [Fri, 26 Feb 2016 11:37:13 +0000 (17:07 +0530)]
dts:jetson-cv: Use nvoice.elf for ADSP-AEC

libnvaecfx.elf is replaced with nvoice.elf for AEC on ADSP

Bug 200164448

Change-Id: I9e2aec157ccb52d4ce6e6a7152b1df082864de77
Signed-off-by: Viswanath L <viswanathl@nvidia.com>
Reviewed-on: http://git-master/r/1020656
Reviewed-by: Viraj Karandikar <vkarandikar@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
8 years agovideo: tegra: l4t: set dc blank on display timeout
Naveen Kumar S [Wed, 13 Jan 2016 11:05:05 +0000 (16:35 +0530)]
video: tegra: l4t: set dc blank on display timeout

In case of L4T, userspace doesn't take initiative to sync
the windows upon unblank. Driver needs to specifically set
dc to blank state while blanking (normal/powerdown) for
subsequent unblank call to re-sync all the windows. If not
display remains blank.

bug 200136625
bug 200144212
bug 200171335

Change-Id: I5b1e172e6fddfddb7bfdcd9e54afa810baf2bbef
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/932191
(cherry picked from commit c4437f442f8927d2ac4c0190aa255e5fee756588)
Reviewed-on: http://git-master/r/1020615
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agogpu: nvgpu: Call ELPG enable/disable on condition
Mahantesh Kumbar [Tue, 1 Mar 2016 06:17:31 +0000 (11:47 +0530)]
gpu: nvgpu: Call ELPG enable/disable on condition

Call ELPG enable/disable if ELPG support enabled else ignore

Bug 200156347

Change-Id: Iaf380e17b85f7322437f9ce09507a88557b738ca
Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com>
Reviewed-on: http://git-master/r/1021902
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
8 years agovideo: tegra: use single timing constraints check
Ivan Raul Guadarrama [Mon, 29 Feb 2016 19:54:38 +0000 (21:54 +0200)]
video: tegra: use single timing constraints check

For mode filtering, use the same timing constraints check function as the one
that will be used when trying to set the mode. This prevents passing invalid
modes to userspace.

Bug 1721518

Change-Id: Icf88e9c3479a1a0f54a80de12c097130c7f2489b
Signed-off-by: Ivan Raul Guadarrama <iguadarrama@nvidia.com>
Reviewed-on: http://git-master/r/1021564
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agovideo: tegra: dc: address VRR monitor quirks
Daniel Solomon [Fri, 18 Dec 2015 05:14:12 +0000 (21:14 -0800)]
video: tegra: dc: address VRR monitor quirks

Address a couple of quirks in VRR monitors. Details
here: http://nvbugs/1711087/23

Bug 1711087

Change-Id: I6ba44d0d03af1f56381762db441a36bb4393a3f9
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/924588
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agovideo: tegra: dc: tag vrr modes using vmode
Daniel Solomon [Sat, 14 Nov 2015 04:40:37 +0000 (20:40 -0800)]
video: tegra: dc: tag vrr modes using vmode

HDMI VRR is supported only for some resolutions, and the kernel
driver is aware of these restrictions. For VRR monitors, the kernel
driver now duplicates and tags all compatible modes with the
FB_VMODE_VRR flag in the duplicate mode's fb_videomode vmode field.

The same behavior has been added to DSI as well for consistency.

The compatible modes are duplicated before being tagged so as to
not interfere with userspace configurations that do not support
the FB_VMODE_VRR flag.

Bug 1637861

Change-Id: I7acd1f9aa52096b0158ee40a1492bda59eef2bea
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/833037
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agortc: tegra: update irq data in ISR
Jeetesh Burman [Wed, 2 Mar 2016 09:10:51 +0000 (14:40 +0530)]
rtc: tegra: update irq data in ISR

Bug 200173988

Change-Id: Ibfe2897926ce69f91f9f5556d86bb52a09cfa835
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/1022522
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agomedia: i2c: lc898212: Add focuser properties
Frank Chen [Wed, 24 Feb 2016 21:49:32 +0000 (13:49 -0800)]
media: i2c: lc898212: Add focuser properties

Add the below properties to LC898212 focuser
-MinFocusDistance
-HyperFocal
-FocalLength
-FNumber
-Aperture

Bug 200170464

Change-Id: Ib4f35ed721f5eb1e995bfdbf1f7af0a30317c3d5
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/1018326
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agoARM64: DT: Create alternative 1.2v for camrea
Frank Chen [Wed, 2 Mar 2016 22:16:52 +0000 (14:16 -0800)]
ARM64: DT: Create alternative 1.2v for camrea

Add a new en-vdd-cam-1v2-alt regulator for cameras
that are using different gpio pins to enable 1.2v
power.

Bug 1737368

Change-Id: Iddd8edb982be7f5926cc1538bc9a23d99cccf31b
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/1022850
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Josh Kuo <joshk@nvidia.com>
Tested-by: Josh Kuo <joshk@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
8 years agoasoc: es755: fix deadlock in audience driver
Srinivas Anne [Wed, 24 Feb 2016 04:17:24 +0000 (20:17 -0800)]
asoc: es755: fix deadlock in audience driver

Change Summary:
removed codec->mutex lock in put_input_route_value() and
put_output_route_value() functions.

Bug 200173798

Change-Id: Id1520cd6b108f1e3126fdc77c475e0709bd300f6
Signed-off-by: Srinivas Anne <sanne@nvidia.com>
Reviewed-on: http://git-master/r/1017904
(cherry picked from commit f9d2223ae0985af127167d707075df5498d80031)
Reviewed-on: http://git-master/r/1022412
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pierre Gervais <pgervais@nvidia.com>
8 years agosensors: light: Adjust light sensor calibration
Robert Collins [Tue, 2 Feb 2016 23:17:20 +0000 (15:17 -0800)]
sensors: light: Adjust light sensor calibration

Calibrate to D35 reference in dark room environment.

Bug 1725551

Change-Id: I0e599e070b70be6abbf3808facda2a5b7b2a85e7
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Reviewed-on: http://git-master/r/1018271
(cherry picked from commit 9fc78435fdf4d531bee509351c73d74dd378bed3)
Reviewed-on: http://git-master/r/1021828
GVS: Gerrit_Virtual_Submit

8 years agortc: tegra: change irq function name
Kerwin Wan [Mon, 29 Feb 2016 14:33:12 +0000 (22:33 +0800)]
rtc: tegra: change irq function name

suspend sanity need to check the timestamp of rtc isr.
This name should be aligned with the test.

Bug 1698877

Change-Id: I0ef053c8266336d5024c58e152b46c4bb27ecf60
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/1021447
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-by: Hayden Du <haydend@nvidia.com>
8 years agodrivers: Kconfig: remove references to kernel-t18x
Bharat Nihalani [Thu, 25 Feb 2016 10:51:14 +0000 (16:21 +0530)]
drivers: Kconfig: remove references to kernel-t18x

kernel-t18x is not supported with kernel 3.10 and hence remove
references in Kconfig. There are other places in Makefile and code
where it is referenced, but at those places, it is guarded with
CONFIG_ARCH_TEGRA_18x_SOC

Bug 200176496

Change-Id: I14c68f9d62b4309d4816011f64f3cfe205699f08
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/1019933
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
GVS: Gerrit_Virtual_Submit

8 years agotegra: soctherm: Enable interrupt handling for MEM zone
Roger Ma [Thu, 25 Feb 2016 08:50:21 +0000 (16:50 +0800)]
tegra: soctherm: Enable interrupt handling for MEM zone

This changes enables interrupt handling for MEM zone for
SW critical shutdown.

Bug 1541661

Change-Id: I1bf39630e9b57baa29ba951cc857ccc99aeea845
Signed-off-by: Roger Ma <roma@nvidia.com>
Reviewed-on: http://git-master/r/1019874
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agomm: release mutex before handle_mm_fault
Krishna Reddy [Tue, 9 Feb 2016 22:17:45 +0000 (14:17 -0800)]
mm: release mutex before handle_mm_fault

Release mutex before handle_mm_fault for filemap faults and
reacquire it.

Bug 200172417

Change-Id: I1df9d3529dde9d739e9ba44108edc0fb1e582fa8
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/1010142
GVS: Gerrit_Virtual_Submit
Tested-by: Eric Miao <emiao@nvidia.com>
Reviewed-by: Eric Miao <emiao@nvidia.com>
Reviewed-by: Li Li (SW-TEGRA) <lli5@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
8 years agoarm64: mm: dma-mapping: remove redundent iova to page addr calculation
Pritesh Raithatha [Tue, 23 Feb 2016 10:37:44 +0000 (16:07 +0530)]
arm64: mm: dma-mapping: remove redundent iova to page addr calculation

-Use already calculated page address in arm_iommu_unmap_page.
-Move iova to page address calculation inside trace condition in
arm_coherent_iommu_unmap_page. That will remove overhead when trace
is not enabled.

Bug 200176154
Bug 200171058

Change-Id: Id0fff75abbc77789bb341cca30a07507e19dce04
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-on: http://git-master/r/1017523
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
8 years agoiommu/tegra: smmu: pass already calculated page address
Pritesh Raithatha [Fri, 19 Feb 2016 06:50:27 +0000 (12:20 +0530)]
iommu/tegra: smmu: pass already calculated page address

Bug 200176154
Bug 200171058

Change-Id: I5bdf50e5ae313f102f10f4fdf7bf82c4d15fb325
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-on: http://git-master/r/1014758
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
8 years agoxhci: fix off by one error in TRB DMA address boundary check
Mathias Nyman [Mon, 3 Aug 2015 13:07:48 +0000 (16:07 +0300)]
xhci: fix off by one error in TRB DMA address boundary check

We need to check that a TRB is part of the current segment
before calculating its DMA address.

Previously a ring segment didn't use a full memory page, and every
new ring segment got a new memory page, so the off by one
error in checking the upper bound was never seen.

Now that we use a full memory page, 256 TRBs (4096 bytes), the off by one
didn't catch the case when a TRB was the first element of the next segment.

This is triggered if the virtual memory pages for a ring segment are
next to each in increasing order where the ring buffer wraps around and
causes errors like:

[  106.398223] xhci_hcd 0000:00:14.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 0 comp_code 1
[  106.398230] xhci_hcd 0000:00:14.0: Looking for event-dma fffd3000 trb-start fffd4fd0 trb-end fffd5000 seg-start fffd4000 seg-end fffd4ff0

The trb-end address is one outside the end-seg address.

Bug 1730718

Change-Id: I27bff8497493ea94b357184bd321e7dc478a0a1a
Cc: <stable@vger.kernel.org>
Tested-by: Arkadiusz Miśkiewicz <arekm@maven.pl>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
(cherry picked from commit 71a88150a875841f7e8e9e57b45d2c0a2bca5a6f)
Reviewed-on: http://git-master/r/1021506
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
8 years agoarm64: dts: tegra: correct setting for cam_vdd_1v2
Josh Kuo [Tue, 5 Jan 2016 06:43:50 +0000 (14:43 +0800)]
arm64: dts: tegra: correct setting for cam_vdd_1v2

correct gpio expander setting for cam_vdd_1v2 on jetson_cv

Bug 1715620
Bug 200142167

Change-Id: I0df2fbfebc10f8b5e5d18b3e909a7c0e99f48160
Signed-off-by: Josh Kuo <joshk@nvidia.com>
Reviewed-on: http://git-master/r/928946
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Hayden Du <haydend@nvidia.com>
8 years agomedia: add V4L2 sensor driver for IMX274
Josh Kuo [Wed, 30 Dec 2015 10:02:01 +0000 (18:02 +0800)]
media: add V4L2 sensor driver for IMX274

add V4L2 sensor driver for IMX274

Bug 200142167
Bug 1717507

Change-Id: I3c6f89513b98efd39cce5243b333b192a4e420da
Signed-off-by: Josh Kuo <joshk@nvidia.com>
Reviewed-on: http://git-master/r/927740
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Frank Chen <frankc@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hayden Du <haydend@nvidia.com>
8 years agoarch: arm64: config: Add IMX274 support
Josh Kuo [Wed, 30 Dec 2015 08:56:34 +0000 (16:56 +0800)]
arch: arm64: config: Add IMX274 support

Add IMX274 sensor support

Bug 200142167
Bug 1717507

Change-Id: I541afd8531f9f4615c45dcdc59384d7fef6f7efd
Signed-off-by: Josh Kuo <joshk@nvidia.com>
Reviewed-on: http://git-master/r/927709
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agousb: cdc_ether: blacklist RTL8153
TW Chiu [Wed, 27 Jan 2016 06:56:46 +0000 (14:56 +0800)]
usb: cdc_ether: blacklist RTL8153

Blacklist the following:

REALTEK_VENDOR_ID, 0x8153
NVIDIA_VENDOR_ID, 0x09ff

Bug 200162110

Change-Id: Iddf24eab87d1c7e7d48dda43cbc394983b7dd711
Signed-off-by: TW Chiu <twchiu@nvidia.com>
Reviewed-on: http://git-master/r/1001466
(cherry picked from commit 354e13f54b7ad744ca76938c533cfaeb7bb418fc)
Reviewed-on: http://git-master/r/1021833
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
8 years agoarm64: configs: Add PANIC_TIMEOUT to 5 sec
Gagan Grover [Wed, 24 Feb 2016 09:58:37 +0000 (15:28 +0530)]
arm64: configs: Add PANIC_TIMEOUT to 5 sec

Panic timeout was not set for HE and so device was waiting for
WDT to reset the system in case of kernel panic.

Added the panic timeout to 5 sec.

boot.img size not changed.

Bug 200171082

Change-Id: If562f81b3673abe0c841bda8b06a785ac6d03dfe
Signed-off-by: Gagan Grover <ggrover@nvidia.com>
Reviewed-on: http://git-master/r/1018096
(cherry picked from commit 7778da11788824d078267c8c8fd3175dabfae971)
Reviewed-on: http://git-master/r/1020379
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
8 years agodriver: media: i2c: Fix ov23850 power up sequence
Frank Chen [Sun, 21 Feb 2016 21:38:18 +0000 (13:38 -0800)]
driver: media: i2c: Fix ov23850 power up sequence

Fix ov23850 power up sequence. Add proper delays
after sensor is being powered on.

Bug 200148541

Change-Id: Id70678cdb8112ebb38b987fee0f4cfee855c1cd7
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/1014283
(cherry picked from commit 6d455c9cd410456342b0ca419821a2e00f652068)
Reviewed-on: http://git-master/r/1020253
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Igor Tryndin <itryndin@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Hayden Du <haydend@nvidia.com>
8 years agomedia: i2c: ov5693: Check existance when probe
Frank Chen [Tue, 23 Feb 2016 21:20:01 +0000 (13:20 -0800)]
media: i2c: ov5693: Check existance when probe

Check to make sure ov5693 sensor is presented in
the system. Otherwise, fail the probe call to avoid
registering none exist sensor.

Bug 200172406

Change-Id: I986221ba6effca39467ad1c84fe9e275166b7017
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/1017754
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agodrivers: media: platform: tegra: restructure MC
Bhanu Murthy V [Fri, 15 Jan 2016 00:36:30 +0000 (16:36 -0800)]
drivers: media: platform: tegra: restructure MC

Modifications to restructure Media controller
framework
- Remove CSI as subdevice
- Convert CSI probe and remove functions to APIs
  for quill integration
- Remove dummy video nodes being created

Bug 1617777

Change-Id: Icd28f3a21a75721438f8532733a2300fa565548d
Signed-off-by: Bhanu Murthy V <bmurthyv@nvidia.com>
Reviewed-on: http://git-master/r/922112
(cherry picked from commit 5eada23a2eef2939439bbd11eb1de9b7b5e88afb)
Reviewed-on: http://git-master/r/925629
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Hayden Du <haydend@nvidia.com>
8 years agoarch: arm64: boot: dts: restructure MC
Bhanu Murthy V [Fri, 11 Dec 2015 22:45:47 +0000 (14:45 -0800)]
arch: arm64: boot: dts: restructure MC

Device tree modifications to restructure
Media controller framework.
Remove CSI as subdevice.
Remove dummy video nodes being created.

Bug 1617777

Change-Id: Ic9dc1c3b17ad290232e88b68d056161b47f2e16c
Signed-off-by: Bhanu Murthy V <bmurthyv@nvidia.com>
Reviewed-on: http://git-master/r/922111
(cherry picked from commit e86810667ceb3857f46fe3f2d36809090980bb6e)
Reviewed-on: http://git-master/r/925628
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agoMerge 'Linux 3.10.96' into rel-24
Sumit Singh [Tue, 1 Mar 2016 09:48:23 +0000 (15:18 +0530)]
Merge 'Linux 3.10.96' into rel-24

Here we are trying to merge linux-3.10.96 with rel-24. For this
we have to revert a downstream change. So, in order to avoid pushing a
separate change for that, we first pushed merge of the upstream change
with the reverted change to a dev branch, and now are merging the dev-branch
with rel-24 TOT.

Bug 200176691

Change-Id: Ia4f0071f52aa0068c8eb8165739dab39414d97f5
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
8 years agoMerge remote-tracking branch 'origin/dev/sumit-linux-3.10.96' into TOT-merge
Sumit Singh [Tue, 1 Mar 2016 09:05:34 +0000 (14:35 +0530)]
Merge remote-tracking branch 'origin/dev/sumit-linux-3.10.96' into TOT-merge

Conflicts:
arch/arm/include/asm/memory.h
arch/arm/kernel/module.c
arch/arm/mm/dma-mapping.c
arch/arm/mm/mmu.c
arch/arm64/kernel/setup.c
arch/arm64/kernel/time.c
arch/arm64/mm/mmu.c
drivers/mmc/core/core.c
drivers/regulator/core.c
drivers/usb/class/cdc-acm.c
drivers/video/console/Kconfig
fs/exec.c
fs/proc/task_mmu.c
fs/pstore/ram.c
include/linux/usb/quirks.h
kernel/power/qos.c
net/bluetooth/sco.c

Change-Id: I49c5d0d88a85f6fd120f01db7170744cf91459d5
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
8 years agoRevert "staging: android: persistent_ram: remove atomic operations"
Sumit Singh [Tue, 1 Mar 2016 09:00:42 +0000 (14:30 +0530)]
Revert "staging: android: persistent_ram: remove atomic operations"

We are reverting this change as we trying to align with upstream.

This reverts commit eae036b44aea75669573f1bfef953ac6bc9205f2.

Bug 200177889

Change-Id: I0ac8a3503b453d8ac478a8bc97175fa3e5e463ff
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
8 years agogpu: nvgpu: return from worker if gpu is not up
Deepak Nibade [Wed, 20 Jan 2016 15:45:52 +0000 (21:15 +0530)]
gpu: nvgpu: return from worker if gpu is not up

During GPU shutdown path, it is possible that we
shut down the GPU while worker thread is still
running gk20a_channel_update()

Hence before accessing gp_put/get, check if GPU
is up or not

Bug 200166139

Change-Id: Iba3ec173041a84527c4700a93f20564a842cfb01
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/935193
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agogpu: nvgpu: force close all channels on shutdown
Deepak Nibade [Tue, 12 Jan 2016 12:19:57 +0000 (17:49 +0530)]
gpu: nvgpu: force close all channels on shutdown

In gk20a_pm_shutdown(), we currently wait for 2s
for all channels to finish their work

Instead of waiting, force close all channels
(disable and preempt) during shutdown

Also, if GPU is already railgated during shutdown,
then we can just disable runtime_pm and return
without doing anything

Bug 200166139

Change-Id: I0012f1b3c0f4f676958d083f8c60a001f7015fb0
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/931706
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agovideo: tegra: dc: dump vmode flag via debugfs
Ivan Raul Guadarrama [Fri, 26 Feb 2016 09:14:49 +0000 (11:14 +0200)]
video: tegra: dc: dump vmode flag via debugfs

Also dump the mode vmode flag through the mode debugs node.

Bug 1721518

Change-Id: Ia12055ac195cb9ce24e1ef3343f2a6a5666cf943
Signed-off-by: Ivan Raul Guadarrama <iguadarrama@nvidia.com>
Reviewed-on: http://git-master/r/1020600
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Tuomas Kulve <tkulve@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
8 years agortc: tegra: change irq name
Krishna Yarlagadda [Thu, 25 Feb 2016 11:08:06 +0000 (16:38 +0530)]
rtc: tegra: change irq name

Change irq name from tegra-rtc to tegra_rtc
sanity tests depend on this name

Bug 1698877

Change-Id: Iad6159296391b67207bb1ef02260cefc4bb5bd0d
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/1019945
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
8 years agortc: tegra: set persistent clock
Krishna Yarlagadda [Thu, 25 Feb 2016 11:05:53 +0000 (16:35 +0530)]
rtc: tegra: set persistent clock

RTC keeps running even during suspend. Registering
Tegra RTC as persistent clock

Bug 1698877

Change-Id: I2c8abacd34d75b64858ae8dafe1437d673fde63e
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/1019944
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
8 years agoRevert "Revert "arch: dt: Disable periodic-calibration""
Anubhav Jain [Tue, 23 Feb 2016 06:18:13 +0000 (11:48 +0530)]
Revert "Revert "arch: dt: Disable periodic-calibration""

This reverts commit c26bb0fcdd14ac0b050753784e86cb83a1b8f236.

Change-Id: Id88c142123246860efbc53400af6497db2d153d0
Signed-off-by: Anubhav jain <anubhavj@nvidia.com>
Reviewed-on: http://git-master/r/1017335
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kerwin Wan <kerwinw@nvidia.com>
Tested-by: Kerwin Wan <kerwinw@nvidia.com>
8 years agoadma: tegra: report precise dma position
Ravindra Lokhande [Tue, 23 Feb 2016 11:49:53 +0000 (17:19 +0530)]
adma: tegra: report precise dma position

Earlier dma position is reported for buffers for which interrupt is
received. Current buffer transfered bytes are ignored. This change
adds current buffer transferred data to report more precise dma
position.

Change-Id: I5d246d44f6f572951918aebbd31121c83188dfdd
Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-on: http://git-master/r/1018161
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dara Ramesh <dramesh@nvidia.com>
8 years agogpu: nvgpu: Protect sync by an own lock
Terje Bergstrom [Wed, 21 Oct 2015 20:14:09 +0000 (13:14 -0700)]
gpu: nvgpu: Protect sync by an own lock

Protect creation and deletion of sync by an own mutex. This prevents
deadlock in channel abort when abort is called from submit path.

Bug 200147887

Change-Id: I5d6308b773c1d1a6a89d4590e2e74c74d691f79d
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/821127
(cherry picked from commit 4be2cc60de49d22a87986c4122accf3427e94412)
Reviewed-on: http://git-master/r/999489
(cherry picked from commit 39f4d7ad2928768e0f530ef2018233ef20548953)
Reviewed-on: http://git-master/r/1020291
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agothermal: nct72: report correct initial temperature & fix shutdown during bootup
Rajkumar Kasirajan [Mon, 21 Dec 2015 07:03:20 +0000 (15:03 +0800)]
thermal: nct72: report correct initial temperature & fix shutdown during bootup

If NCT is in standby mode, need to initiate one-shot conversion
before reading temperature, otherwise while bootup NCT will report
wrong initial temperature and driver will set wrong temperature
alert limits based on that.

While nct driver probe, enable oneshot conversion after
setting shutdown limits for local and external sensors.

Bug 1723265
Bug 200161159

Change-Id: I9080579be749fb26f51d4d1c28911db4b6538a70
Signed-off-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
Reviewed-on: http://git-master/r/1018100
Reviewed-on: http://git-master/r/929897
(cherry picked from commit 4164770df219bcd37ffa68950882564181a78e8f)
(cherry picked from commit baaa7aad03a9a49fb86f5f58c783920b906b0ee2)
Reviewed-on: http://git-master/r/1019841
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
8 years agoiio: common: nvs: NVS v212 Fix coverity
Erik Lilliebjerg [Fri, 19 Feb 2016 21:55:58 +0000 (14:55 -0700)]
iio: common: nvs: NVS v212 Fix coverity

- Fix sizeof dereferenced pointer.
- Fix possible out of bounds loop.

Coverity ID: 12707
Coverity ID: 13297

Bug 1416640
Bug 200116059

Change-Id: Ib054679d884e0615f5e391cd7068327e8b6f0a9e
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/1014126
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Tested-by: Robert Collins <rcollins@nvidia.com>
8 years agoiio: imu: nvi: v.305 fix coverity
Erik Lilliebjerg [Sun, 21 Feb 2016 04:29:24 +0000 (21:29 -0700)]
iio: imu: nvi: v.305 fix coverity

- Fix negative index in debug print.
- Fix DMP IRQ wake for significant motion.
- Fix auxiliary batch period initialization.

Coverity ID: 20452

Bug 1416640
Bug 200116059
Bug 200154126

Change-Id: If288c5676bc52dbb707b097b2ebdc07ff44febc2
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/1014976
(cherry picked from commit 7c16d1478d04cf2d892efcc554598ef3758e739c)
Reviewed-on: http://git-master/r/1014265
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Tested-by: Robert Collins <rcollins@nvidia.com>
8 years agodts: compass: Limit compass operating frequency.
Robert Collins [Wed, 17 Feb 2016 17:44:19 +0000 (09:44 -0800)]
dts: compass: Limit compass operating frequency.

- CTS tests fail @ 100 Hz and higher due to compass limited by HW
  to 70 Hz.  Solution:  Limit compass operating frequency to 60 Hz.

Bug 200174194

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

8 years agoplatform: tegra: nvadsp: Add mailbox and Agic dump
Ajay Nandakumar [Tue, 23 Feb 2016 12:23:13 +0000 (17:53 +0530)]
platform: tegra: nvadsp: Add mailbox and Agic dump

Adding additional dumps of SEND/RECV mailbox and pending/active states
of agic interrupts along with adsp logs, when adsp fails.

Bug 200149702

Change-Id: I7a33898408e1087c11baa42b090aafa65d113e79
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Reviewed-on: http://git-master/r/1017566
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
8 years agodrivers: soctherm: support min offsets for pllx offsetting
navneet kumar [Sat, 13 Feb 2016 01:52:37 +0000 (17:52 -0800)]
drivers: soctherm: support min offsets for pllx offsetting

add support for min offsets for pllx hw offsetting feature. while at it, fix a
latent bug where the default max offset should be in mC instead of C.

Bug 1717395

Change-Id: Idbb2616646584278283d85825842a065bb94e436
Signed-off-by: navneet kumar <navneetk@nvidia.com>
Reviewed-on: http://git-master/r/1011580
GVS: Gerrit_Virtual_Submit
Reviewed-by: Cyril Raju <craju@nvidia.com>
Tested-by: Cyril Raju <craju@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
8 years agoarm64: dts: enable pllx offsetting for GPU-therm
navneet kumar [Sat, 13 Feb 2016 01:50:43 +0000 (17:50 -0800)]
arm64: dts: enable pllx offsetting for GPU-therm

enable pllx offsetting for GPU-therm and add min/max offsets for the same

Bug 1717395

Change-Id: I6a5198d107148daee370cf2f2e0a3b760723a8e3
Signed-off-by: navneet kumar <navneetk@nvidia.com>
Reviewed-on: http://git-master/r/1011579
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Longnecker <mlongnecker@nvidia.com>
Reviewed-by: Timo Alho <talho@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Cyril Raju <craju@nvidia.com>
Tested-by: Cyril Raju <craju@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
8 years agopcie: host: tegra: swap msleep with usleep_range
Vidya Sagar [Thu, 25 Feb 2016 06:08:17 +0000 (11:38 +0530)]
pcie: host: tegra: swap msleep with usleep_range

replace msleep(20) with usleep_range(19000, 21000)
as msleep is causing more than 65ms sometimes during LP0 exit

Bug 200163241

Change-Id: I18bb0cca9bb5a7849676c913bf9cb30961f7645e
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/1019784
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kerwin Wan <kerwinw@nvidia.com>
8 years agoarm64: tegra: jetson_cv: fix dc property for devkit
Kerwin Wan [Thu, 25 Feb 2016 03:35:02 +0000 (11:35 +0800)]
arm64: tegra: jetson_cv: fix dc property for devkit

Jetson CV devkit will use tegradc.1 as primary display header.
The sor node is /host1x/sor1 not /host1x/sor which is default
assigned when tegradc.0 is not enabled and dc-or-node is not set.

Bug 200173778

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

8 years agovideo: tegra: hdmi: fix HDMI GCP programming
Santosh Reddy Galma [Wed, 24 Feb 2016 09:27:09 +0000 (14:57 +0530)]
video: tegra: hdmi: fix HDMI GCP programming

This fixes the color depth information to be
programmed in GCP packets for deep color
formats supported and other non-deep color formats
as per the HDMI spec.

Bug 1715032
Bug 1717183

Change-Id: I5783191ece523d42f08c544585be048426ce988b
Signed-off-by: Santosh Reddy Galma <galmar@nvidia.com>
Reviewed-on: http://git-master/r/1018073
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Reviewed-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com>
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
8 years agodriver: media: fix ov5693 gpio warnings
Frank Chen [Fri, 12 Feb 2016 18:57:23 +0000 (10:57 -0800)]
driver: media: fix ov5693 gpio warnings

Use gpio_set_value_cansleep() function when gpio driver
supports it.

Bug 1729926

Change-Id: Ib6e363c6587ca9439eeda3a45f8c91b8c18a917c
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/1011425
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Igor Tryndin <itryndin@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Hayden Du <haydend@nvidia.com>
8 years agoARM64: DT: Add auto detect support for E3322 board
Frank Chen [Thu, 11 Feb 2016 20:38:44 +0000 (12:38 -0800)]
ARM64: DT: Add auto detect support for E3322 board

Add auto detect support for E3322 (imx219 x6) camera
board.

Bug 1693429

Change-Id: I3a54616e27fd504d222e79b8523295df1524b1dd
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/1011057
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Igor Tryndin <itryndin@nvidia.com>
Reviewed-by: Kai Lee <kailee@nvidia.com>
Reviewed-by: Hayden Du <haydend@nvidia.com>
8 years agovideo: tegra: host: Fix resource imbalance
Arto Merilainen [Sun, 13 Sep 2015 06:19:00 +0000 (23:19 -0700)]
video: tegra: host: Fix resource imbalance

During engine reset we may end up imbalancing some engine specific
resources; Currently the code calls directly .finalize_poweron
callback which in many cases is sufficient. However, in case
.finalize_poweron callback acquires resources, we never release
the resources before calling it again.

This patch adds .prepare_poweroff callback call to engine recovery
to ensure that all acquired resources get released before calling
.finalize_poweron again.

Bug 1730860

Change-Id: I35b9957bb94685222e4722754bd2402e51cfe2c9
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/798334
(cherry picked from commit 99a81de600c88efb43820d8023dce7e600c2ea7c)
Reviewed-on: http://git-master/r/1013917
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>
8 years agogpu: nvgpu: enable use_full_comp_tag_line in gpc mmu
mheyer [Sat, 20 Feb 2016 05:31:24 +0000 (21:31 -0800)]
gpu: nvgpu: enable use_full_comp_tag_line in gpc mmu

Also GPC MMU needs to have its PRI_MMU_CTRL_USE_FULL_COMP_TAG_LINE
control bit set.

Bug 1730611

Signed-off-by: Mathias Heyer <mheyer@nvidia.com>
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Change-Id: I01e11de066ea5487bf1d9c8c8eddbf159e4882da
Reviewed-on: http://git-master/r/1014881
(cherry picked from commit d1651bbebe1b3e46d2173dec1651b3d2f4307b40)
Reviewed-on: http://git-master/r/1017443
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
8 years ago[SCSI] verify return pointer from blk_get_request
Hans Yang [Thu, 18 Feb 2016 11:52:29 +0000 (19:52 +0800)]
[SCSI] verify return pointer from blk_get_request

blk_get_request()->get_request() may return NULL pointer
if the request queue has been shutdown.

Bug 1730744

Change-Id: I9f6c98d64086c14732ade2c7dcb0934f62c941a4
Signed-off-by: Hans Yang <hansy@nvidia.com>
Reviewed-on: http://git-master/r/1013395
Reviewed-by: WK Tsai <wtsai@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: ChihMin Cheng <ccheng@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
8 years agohid: jarvis: split hid reports from thunderstrike
siddardha naraharisetti [Thu, 18 Feb 2016 02:05:29 +0000 (18:05 -0800)]
hid: jarvis: split hid reports from thunderstrike

follow same model as jarvis to split the hid reports
that have audio and hid data combined in to a single
report

Bug 1703649

Change-Id: Ic9b70d623ce12e741fecf0acd9bf381e7fa2fc8a
Signed-off-by: siddardha naraharisetti <siddardhan@nvidia.com>
Reviewed-on: http://git-master/r/1013117
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
GVS: Gerrit_Virtual_Submit

8 years agoRevert "ARM64: tegra210: move Host1x to separate asid"
Pranami Bhattacharya [Wed, 24 Feb 2016 02:31:53 +0000 (18:31 -0800)]
Revert "ARM64: tegra210: move Host1x to separate asid"

Bug 1733523

This reverts commit 128706f21c51051193cd86145738c9cac7997020.

Change-Id: Id95f79131497d87db00b004875eb582489c6aa1d
Signed-off-by: Pranami Bhattacharya <pranamib@nvidia.com>
Reviewed-on: http://git-master/r/1017888
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
8 years agoarm64: tegra: jetson_e: add dts for 24x7 usage mode
Kerwin Wan [Mon, 22 Feb 2016 08:41:15 +0000 (16:41 +0800)]
arm64: tegra: jetson_e: add dts for 24x7 usage mode

Bug 200169339

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

8 years agoarm64: tegra: jetson_e: use UCM1 DVFS override by default
Kerwin Wan [Mon, 22 Feb 2016 08:32:21 +0000 (16:32 +0800)]
arm64: tegra: jetson_e: use UCM1 DVFS override by default

Bug 200169339

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

8 years agoalarm: Use system rtc for alarms
Krishna Yarlagadda [Wed, 3 Feb 2016 09:26:43 +0000 (14:56 +0530)]
alarm: Use system rtc for alarms

Alarm uses first registered rtc device for setting alarm
as of now. Changed this to use system rtc so time and
alarm are in sync

Bug 1698877

Change-Id: I8c04736230fb50b8fc77332549414e72e6b43bed
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/1012790
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
8 years agoarm: tegra: Set Tegra RTC device as rtc1
Krishna Yarlagadda [Fri, 19 Feb 2016 06:45:18 +0000 (12:15 +0530)]
arm: tegra: Set Tegra RTC device as rtc1

Let PMIC RTC to be used as system rtc
and alarm device.

Change-Id: I937ee81a17fe83559ba723b5fb858e072804e1dc
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/1013757
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
8 years agoarm64: tegra: set Tegra RTC as hctosys device
Krishna Yarlagadda [Mon, 14 Dec 2015 06:11:01 +0000 (11:41 +0530)]
arm64: tegra: set Tegra RTC as hctosys device

Use Tegra RTC for system time and Pmic RTC as
backup device

Bug 1698877

Change-Id: I8dca6f022c0f6e32af35c532906d2bf3b23eea3c
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/1012789
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
8 years agortc: tegra: backup hctosys device
Krishna Yarlagadda [Mon, 14 Dec 2015 10:15:16 +0000 (15:45 +0530)]
rtc: tegra: backup hctosys device

RTC device used for system time needs to be battery backed.
Non-battery backed devices could lose time upon power reset.
However battery backed devices from external source will add delay
from interface and take more time.

Introduced a config option for slower battery backed rtc device that
will update faster system rtc device.

Bug 1698877

Change-Id: Ia2742b2c46ae1daf2850cfd2a63b95f400ee782b
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/1012788
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
8 years agortc: tegra: Register as tegra rtc
Krishna Yarlagadda [Thu, 3 Dec 2015 09:45:16 +0000 (15:15 +0530)]
rtc: tegra: Register as tegra rtc

Reigster tegra rtc as rtc devices instead of
clocksource

Bug 1698877

Change-Id: Ic9cd07ddf836d3e146f29dde1b6f1dce75138ae7
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/1012787
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
8 years agortc: honor device tree /alias entries when assigning IDs
Stephen Warren [Thu, 23 Jan 2014 23:55:14 +0000 (15:55 -0800)]
rtc: honor device tree /alias entries when assigning IDs

Assign RTC device IDs based on device tree /aliases entries if present,
falling back to the existing numbering scheme if there is no /aliases
entry (which includes when the system isn't booted using DT), or there is
a numbering conflict.

This is useful in systems with multiple RTC devices, to ensure that the
best RTC device is selected as /dev/rtc0, which provides the overall
system time.

For example, Tegra has an on-SoC RTC that is not battery backed, typically
coupled with an off-SoC RTC that is battery backed.  Only the latter is
useful for populating the system time, yet the former is useful e.g.  for
wakeup timing, since the time is not lost when the system is sleeps.

Change-Id: I64806f3c908e36e0565fe80968e338c2e915c255
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
(cherry picked from commit 9d2b7e532da8aadfcc1bd85b62ec5dd853e870e3 in mainline v3.14)
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/1012786
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
8 years agoARM: t124: disable wlan default gpio
Laxman Dewangan [Wed, 10 Feb 2016 06:37:27 +0000 (12:07 +0530)]
ARM: t124: disable wlan default gpio

As wlan is disabled, disable the required node
to set gpio on default state for wlan.

bug 1725516

Change-Id: I44cba3475e12d6ae7c3ed0cad9d645d65806e7b5
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/1010300
(cherry picked from commit 4c7497ffbb7d8e0d6a5bc6db073e1b18d0be6338)
Reviewed-on: http://git-master/r/1012656
GVS: Gerrit_Virtual_Submit
Reviewed-by: Om Prakash Singh <omp@nvidia.com>
Tested-by: Om Prakash Singh <omp@nvidia.com>
8 years agoARM: config: tegra124: disable Marvell wifi driver
Michael Hsu [Thu, 11 Feb 2016 01:17:38 +0000 (17:17 -0800)]
ARM: config: tegra124: disable Marvell wifi driver

Disable unused wifi driver.

Bug 1725516

Change-Id: Ifac354c2ed927abd1830eb1c8cde5365fa5565f1
Signed-off-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-on: http://git-master/r/1010671
(cherry picked from commit c8263cff9f97f6cc4a4cc11548dfd10c076a680f)
Reviewed-on: http://git-master/r/1012655
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agoASoC: tegra-alt: jetson-cv - update clock for hra
Sameer Pujar [Wed, 17 Feb 2016 09:29:28 +0000 (14:59 +0530)]
ASoC: tegra-alt: jetson-cv - update clock for hra

For HRA use case the codec_rate is set to 96 or 192 KHz.
The mclk/sysclk supplied to codec should be atleaset 256
times of the codec rate.

pll_a_out0 is parent for codec mclk, it is fixed at 49.152MHz.
36.864 MHz was not sufficient for all use cases since 1.5
divider is not supported.
From this required frequencies are derived with interger divider.
Requriements for codec mclk,
    * HRA - 25.576 / 49.152 MHz
    * non-HRA - 12.288 MHz

Also fixed hw_param() failure due to unsupported bit format.
For HRA usecases the format set is 32_LE and same needs to
be acknowledged by codec

Bug 200174763

Change-Id: Ie07615f946c3e828765a8febfa3f341a529deeae
Signed-off-by: Sameer Pujar <spujar@nvidia.com>
Reviewed-on: http://git-master/r/1012753
GVS: Gerrit_Virtual_Submit
Reviewed-by: Viswanath L <viswanathl@nvidia.com>
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
8 years agotegra: dc: hdcp: Fix for test 1A-07a
Pranami Bhattacharya [Tue, 12 Jan 2016 18:46:38 +0000 (10:46 -0800)]
tegra: dc: hdcp: Fix for test 1A-07a

Bug 200153065

Change-Id: Ic0425d228cd70b2a4e501ac815190f81ca518825
Signed-off-by: Pranami Bhattacharya <pranamib@nvidia.com>
Reviewed-on: http://git-master/r/931775
Reviewed-by: Sharath Sarangpur <ssarangpur@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
8 years agoreboot: freeze processes before restart/shutdown
Deepak Nibade [Thu, 4 Feb 2016 10:14:51 +0000 (15:44 +0530)]
reboot: freeze processes before restart/shutdown

Add new API freeze_processes_ignore_wakeup() which will
freeze all processes ignoring the wakeup sources

Use this API before triggering restart/shutdown

Bug 200125494

Change-Id: I093d6e5dcc02fe3ff73c7c4d7c6bc14fa8e91cb8
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/1007555
(cherry picked from commit 32212d6e42147942a853aa5238a417497d31d1c6)
Reviewed-on: http://git-master/r/1013804
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
8 years agoCoverity: net: wireless: bcmdhd: Restore iovar only if rf_test is enabled
Srinivas Ramachandran [Tue, 16 Feb 2016 21:06:12 +0000 (13:06 -0800)]
Coverity: net: wireless: bcmdhd: Restore iovar only if rf_test is enabled

tegra_sysfs_rf_test_disable will be called when
1. rf_test mode is manually disabled through sysfs node
2. Wi-fi is turned off

In case of latter, if rf_test mode was never enabled,
this function will try to restore the iovars set to 0 during
rf_test_init.

0 is not a valid param value for some iovars and trying to
restore these will fail with an error log. To prevent this,
restore the iovar values only if rf_test mode is enabled
(which implies iovars are backed up with current values
from the firmware already)

Also - add check to prevent null pointer dereference
in rf_test code path

Bug 200116059
Bug 1713208

Coverity ID: 20430

Change-Id: I4e7922e7cc3a143f69641346c9bbe72bf0b246ff
Signed-off-by: Srinivas Ramachandran <srinivasra@nvidia.com>
Reviewed-on: http://git-master/r/1012470
Reviewed-by: Michael Hsu <mhsu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
8 years agoARM: t132: extend tegra WDT suspend
Ian Chang [Wed, 17 Feb 2016 03:52:50 +0000 (11:52 +0800)]
ARM: t132: extend tegra WDT suspend

Extend tegra WDT suspend to syscore ops to keep running
after device suspend.

bug 200130544

Change-Id: I8eb995833af317052c8951df563626e303142ac8
Signed-off-by: Ian Chang <ianc@nvidia.com>
Reviewed-on: http://git-master/r/1012605
Reviewed-by: Robert Shih <rshih@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
8 years agoARM: remove wdt recovery driver
Ian Chang [Thu, 14 Jan 2016 05:59:29 +0000 (13:59 +0800)]
ARM: remove wdt recovery driver

As tegra watchdog has flag which can be selected
from DT to disable the watchdog in the syscore suspend
instead of device suspend to have more time for WDT running.
It can protect suspend/resume path so we do not need
wdt-recovery driver anymore.

bug 200130544

Change-Id: I2910587777c66bf15652f7401604273632af99a6
Signed-off-by: Ian Chang <ianc@nvidia.com>
Reviewed-on: http://git-master/r/1012604
Reviewed-by: Robert Shih <rshih@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
8 years agoARM: t124: extend tegra WDT suspend
Ian Chang [Wed, 17 Feb 2016 03:35:25 +0000 (11:35 +0800)]
ARM: t124: extend tegra WDT suspend

Extend tegra WDT suspend to syscore ops to keep running
after device suspend.

bug 200130544

Change-Id: I6f5fb5f3b1d5ef0b3dd2995b94d7e155b3ea8d73
Signed-off-by: Ian Chang <ianc@nvidia.com>
Reviewed-on: http://git-master/r/1012603
Reviewed-by: Robert Shih <rshih@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
8 years agoFix memory leak when blake is removed
Eric Miao [Tue, 26 Jan 2016 23:12:26 +0000 (15:12 -0800)]
Fix memory leak when blake is removed

Bug 200168010

Change-Id: I3310d0e3aca17a4aed9610e42522786c3d661fc9
Signed-off-by: Eric Miao <emiao@nvidia.com>
Signed-off-by: Li Li <lli5@nvidia.com>
Reviewed-on: http://git-master/r/1000107
(cherry picked from commit 4870486c932aba8b8541129ca12666c4e7f6aead)
Reviewed-on: http://git-master/r/998343
(cherry picked from commit 7a8c24d46d0de35769d867099c537a79bc89f6d0)
Reviewed-on: http://git-master/r/1012540
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
8 years agovideo: tegra: hdmi: fix tegra_nvhdcp_create fn params
Santosh Reddy Galma [Sun, 14 Feb 2016 18:49:42 +0000 (00:19 +0530)]
video: tegra: hdmi: fix tegra_nvhdcp_create fn params

HDCP node id should be based on DC id rather than SOR
instance to be consistent with the HDCP API.

Bug 200172752

Change-Id: I0a1878be7ce2f4feff239d360a95e1f6d48eac99
Signed-off-by: Santosh Reddy Galma <galmar@nvidia.com>
Reviewed-on: http://git-master/r/1011745
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
8 years agoimx230: cropping region comparison fix
Hu He [Fri, 12 Feb 2016 19:51:10 +0000 (11:51 -0800)]
imx230: cropping region comparison fix

Previuosuly a cropped sensor mode is used as default and used in cropping
logic comparison. The later part should be compared with full size. For
imx230 sensor, it is 5344x4016.

Change definitions for default values to use those from full size setting
to fix the comparison logic.

Also add more comments.

Bug 1695366

Change-Id: Id819ea94f4079b7127b0728f25bd59c21ae067d7
Signed-off-by: Hu He <hhe@nvidia.com>
Reviewed-on: http://git-master/r/1011443
(cherry picked from commit 1cda066864daa670c6be7b2ef01329e4b5022891)
Reviewed-on: http://git-master/r/1013505
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Arun Kannan <akannan@nvidia.com>
Reviewed-by: Kamal Balagopalan <kbalagopalan@nvidia.com>
8 years agogpu: nvgpu: preempt before adjusting fences
Deepak Nibade [Thu, 10 Dec 2015 08:58:32 +0000 (14:28 +0530)]
gpu: nvgpu: preempt before adjusting fences

Current sequence in gk20a_disable_channel() is
- disable channel in gk20a_channel_abort()
- adjust pending fence in gk20a_channel_abort()
- preempt channel

But this leads to scenarios where syncpoint has
min > max value

Hence to fix this, make sequence in gk20a_disable_channel()
- disable channel in gk20a_channel_abort()
- preempt channel in gk20a_channel_abort()
- adjust pending fence in gk20a_channel_abort()

If gk20a_channel_abort() is called from other API where
preemption is not needed, then use channel_preempt
flag and do not preempt channel in those cases

Bug 1683059

Change-Id: I4d46d4294cf8597ae5f05f79dfe1b95c4187f2e3
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/921290
(cherry picked from commit a174139ec383ba6d2ede096743192066e8582684)
Reviewed-on: http://git-master/r/1012165
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
8 years agogpu: nvgpu: call channel_update() always in channel_abort()
Deepak Nibade [Tue, 8 Dec 2015 15:59:05 +0000 (21:29 +0530)]
gpu: nvgpu: call channel_update() always in channel_abort()

In gk20a_channel_abort(), we disable the channel and
adjust the fences. And then we call gk20a_channel_update()
only if we released the post-fence semaphore

Instead of this, call gk20a_channel_update() always to ensure
that all the clean up after fence completion is done always

Bug 1683059

Change-Id: Ife00ba43e808c0833264d79c98c74417ffadf802
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/842999
(cherry picked from commit 8a5871149b3cf5aac897f44e890ea0ada7590d5a)
Reviewed-on: http://git-master/r/1012164
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>