]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/log
sojka/nv-tegra/linux-3.10.git
8 years agousb: gadget: tegra: update vbus status properly tegra-l4t-r23.2
Rakesh Babu Bodla [Wed, 3 Feb 2016 10:37:53 +0000 (16:07 +0530)]
usb: gadget: tegra: update vbus status properly

vbus status needs to be set to true, even if
charger is connected.

Bug 200105851

Change-Id: I02a32e9372f526c16b4448cf8ded67ef8fd8c7b2
Signed-off-by: Rakesh Babu Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/1002306
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
8 years agogpu: nvgpu: add sclk to gk20a clocks
Shreshtha SAHU [Tue, 27 Oct 2015 13:36:36 +0000 (19:06 +0530)]
gpu: nvgpu: add sclk to gk20a clocks

GK20A performance depends on sclk i.e. ahb.sclk hence it should get the sclk
when GPU inits.
Also BUG on mismatch between clk array size and actual clock defines in driver.

Bug 200149052

Change-Id: Ic308561b9e2768327eabad5fcc9e44b26fa5a4cb
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
(cherry picked from commit f89c842073e3b887da98a6ab8a6d684f52e1478c)
Reviewed-on: http://git-master/r/1001424
Tested-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
8 years agonet: wireless: bcmdhd: Avoid data pkt processing if credits is low
Ramanathan R [Mon, 25 Jan 2016 18:28:47 +0000 (10:28 -0800)]
net: wireless: bcmdhd: Avoid data pkt processing if credits is low

When running the EU wifi adaptivity test, ioctl timeouts are
observed as ctrl frames are out of bus credits and do not get sent
to the wifi chip. As a result, the OS resets the wifi chip to recover
the ioctl timeout. This results in EU wifi adaptivity test failure.

To prevent this from happening, avoid processing the data frames if
available credits is low.

Bug 1700549

Change-Id: Iaaf46112b1673088c27bfc5126b874dcdeb82b2d
Signed-off-by: Srinivas Ramachandran <srinivasra@nvidia.com>
Reviewed-on: http://git-master/r/999523
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
8 years agoUPSTREAM: KEYS: Fix keyring ref leak in join_session_keyring()
Yevgeny Pats [Tue, 19 Jan 2016 22:09:04 +0000 (22:09 +0000)]
UPSTREAM: KEYS: Fix keyring ref leak in join_session_keyring()

(cherry pick from commit 23567fd052a9abb6d67fe8e7a9ccdd9800a540f2)

This fixes CVE-2016-0728.

If a thread is asked to join as a session keyring the keyring that's already
set as its session, we leak a keyring reference.

This can be tested with the following program:

#include <stddef.h>
#include <stdio.h>
#include <sys/types.h>
#include <keyutils.h>

int main(int argc, const char *argv[])
{
int i = 0;
key_serial_t serial;

serial = keyctl(KEYCTL_JOIN_SESSION_KEYRING,
"leaked-keyring");
if (serial < 0) {
perror("keyctl");
return -1;
}

if (keyctl(KEYCTL_SETPERM, serial,
   KEY_POS_ALL | KEY_USR_ALL) < 0) {
perror("keyctl");
return -1;
}

for (i = 0; i < 100; i++) {
serial = keyctl(KEYCTL_JOIN_SESSION_KEYRING,
"leaked-keyring");
if (serial < 0) {
perror("keyctl");
return -1;
}
}

return 0;
}

If, after the program has run, there something like the following line in
/proc/keys:

3f3d898f I--Q---   100 perm 3f3f0000     0     0 keyring   leaked-keyring: empty

with a usage count of 100 * the number of times the program has been run,
then the kernel is malfunctioning.  If leaked-keyring has zero usages or
has been garbage collected, then the problem is fixed.

Bug 1720836

Reported-by: Yevgeny Pats <yevgeny@perception-point.io>
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Don Zickus <dzickus@redhat.com>
Acked-by: Prarit Bhargava <prarit@redhat.com>
Acked-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: James Morris <james.l.morris@oracle.com>
Change-Id: I10177a58a7b3178eda95017557edaa7298594d06
(cherry picked from commit 9fc5f368bb89b65b591c4f800dfbcc7432e49de5)
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/999510
GVS: Gerrit_Virtual_Submit

8 years agogpu: nvgpu: Fix fake MMU fault for TSGs
Terje Bergstrom [Fri, 16 Oct 2015 19:40:19 +0000 (12:40 -0700)]
gpu: nvgpu: Fix fake MMU fault for TSGs

When we induce a fake MMU fault, we do not have pointer to a channel.
Use the tsg pointer instead. Also remove the error print in case we
do not have ch pointer.

Change-Id: I14fd75d2b743244915bf32fe39de76097ef5c42f
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/819034
(cherry picked from commit abeb26374f0a847ccfbc27f05f8c16191bb15d8c)
Reviewed-on: http://git-master/r/935692
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
8 years agogpu: nvgpu: fix tsg bugs
Richard Zhao [Wed, 23 Dec 2015 23:15:45 +0000 (15:15 -0800)]
gpu: nvgpu: fix tsg bugs

- correct runlist entry type for tsg
- consider tsg when preempt channel

Bug 1617046

Change-Id: Ie067df17fb53ae91c49403637a5f35fc3710e0b3
Signed-off-by: Richard Zhao <rizhao@nvidia.com>
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/926571
(cherry picked from commit eaec411a84a437b8b8c5800ecb170885167d47d2)
Reviewed-on: http://git-master/r/934986
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
8 years agoARM64: t210: jetson: add enable/disable/ramptime for rails
Venkat Reddy Talla [Mon, 16 Nov 2015 08:59:05 +0000 (14:29 +0530)]
ARM64: t210: jetson: add enable/disable/ramptime for rails

Adding enable, disable and ramptime details for Jetson-CV
platform pmic rails.
enable, disable and ramptime data for different rails
provided by sys-eng team.

Bug 200148181
Bug 1718182

Change-Id: Ia9cf063aee4286062f9d38a961c80b75239e11ff
Reviewed-on: http://git-master/r/833207
(cherry picked from commit 6e3fcf5f94f4cca91f7314cc3776eb48f8e7e74b)
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/932589
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hayden Du <haydend@nvidia.com>
(cherry picked from commit c1609476e528d3ea4e3bf218f31c9092743f0321)
Reviewed-on: http://git-master/r/935423
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Tested-by: Winnie Hsu <whsu@nvidia.com>
8 years agoextcon: gpio-states: cable detection check in resume
Venkat Reddy Talla [Thu, 17 Dec 2015 09:17:38 +0000 (14:47 +0530)]
extcon: gpio-states: cable detection check in resume

Checking cable connection/disconnection in resume path.
some times interrupt is not getting generated when cable
removed in LP0 state, checking cable state in resume path.
Also making changes to take wakelock for 5 seconds when cable
detect/remove interrupt generated.

Bug 200155870
Bug 200154381
Bug 200160629

Change-Id: Iffbade7efeffb36d9e832376f7b8f8c3a891cc6c
Reviewed-on: http://git-master/r/924160
(cherry picked from commit 59911a410eedf266c9e01c42dbcbd8091469f0db)
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/935045
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
8 years agoarm64: tegra: jetson_cv: add 24x7 DT in Makefile
Shreshtha SAHU [Wed, 20 Jan 2016 07:46:27 +0000 (13:16 +0530)]
arm64: tegra: jetson_cv: add 24x7 DT in Makefile

Bug 1558421
Bug 1713210

Change-Id: Ib6ee310e45b90bd134a00e906dd740af0d91e489
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/934954
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
8 years agoRevert "video: tegra: dc: make SOR instance configurable"
Jong Kim [Wed, 4 Nov 2015 18:07:19 +0000 (10:07 -0800)]
Revert "video: tegra: dc: make SOR instance configurable"

This reverts commit 5b78fbb15ed1ab233a1017fdb17abb8c5bae11d0.

This commit breaks L4T_on_Foster's HDMI display.
This CL is for T186 and not necessary for L4T r23.

bug 1700729

Change-Id: Ic917e9b721cbcc5e183d0f83c69087e7022c0a7d
Signed-off-by: Jong Kim <jongk@nvidia.com>
Reviewed-on: http://git-master/r/827849
(cherry picked from commit 1d3a74181708916ec15b08ef228e80c1c63ecbbf)
Reviewed-on: http://git-master/r/932963
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
8 years agoarm64: jetson-cv: enable INA by default
Shreshtha SAHU [Wed, 16 Dec 2015 05:37:20 +0000 (11:07 +0530)]
arm64: jetson-cv: enable INA by default

Enable INA by default for all boards except for boards with FAB <= 300
i.e. for board numbers: 2180-1000-000, 2180-1000-100

Bug 1677375

Change-Id: I096f977eef44bd8c847307e696ebf4095315368d
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/931754
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
8 years agoarm64: tegra: jetson-cv: make UCM1 default profile
Shreshtha SAHU [Fri, 8 Jan 2016 15:29:58 +0000 (20:59 +0530)]
arm64: tegra: jetson-cv: make UCM1 default profile

Make UCM1C 4/4/16 device reliability DVFS table overrides as defaults

Bug 1558421
Bug 1713210

Change-Id: I7d38b63b8162541b8011db6c7df3b2dbe075bca8
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/931448
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
8 years agoarm64: tegra: jetson_cv: DT for 24x7 personality
Shreshtha SAHU [Tue, 12 Jan 2016 05:49:51 +0000 (11:19 +0530)]
arm64: tegra: jetson_cv: DT for 24x7 personality

Create top DT for Jetson-CV platform with 24x7 personality

Bug 1558421
Bug 1713210

Change-Id: Ib53c8868722431b97f29c2adda0969414ec0e6ed
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/931519
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
8 years agojetson-cv: add spi prod settings
Damon Duan [Tue, 15 Sep 2015 02:00:12 +0000 (10:00 +0800)]
jetson-cv: add spi prod settings

Add SPI prod setting for JetsonT210(P2180+E2598), to make
SPI can work at 65MHz in master mode.
1)change trimmer settings:
• SPI2A trimmer setting 0x7000d604 = 0x16;
• SPI4A trimmer setting 0x7000da04 = 0x08;

2)change SPI4A pad setting:
• PINMUX_AUX_SPI4_MOSI_0 DRV_TYPE 0x3
• PINMUX_AUX_SPI4_MISO_0 DRV_TYPE 0x3
• PINMUX_AUX_SPI4_SCK_0 DRV_TYPE 0x3
• PINMUX_AUX_SPI4_CS0_0 DRV_TYPE 0x3

Bug 200135360

Change-Id: Id038deb64acbf913e744c13de4fbff6c0520367a
Signed-off-by: Damon Duan <danield@nvidia.com>
Reviewed-on: http://git-master/r/799167
(cherry picked from commit 708586842c9d03322833de47ee3f1f87d865a6ca)
Reviewed-on: http://git-master/r/931472
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Tested-by: Winnie Hsu <whsu@nvidia.com>
8 years agospi: tegra114: modify spi prod setting
Damon Duan [Wed, 25 Nov 2015 03:06:47 +0000 (11:06 +0800)]
spi: tegra114: modify spi prod setting

Modify SPI drivers to make prod settings named by
"prod" and "prod_cs*" can be configured at same time.

Bug 200135360

Change-Id: I633535a6c467b771130fbcb927400523baaf0fb9
Signed-off-by: Damon Duan <danield@nvidia.com>
Reviewed-on: http://git-master/r/837566
(cherry picked from commit ac3dd168f97b0dabd364ad9ad07f740c43621aa7)
Reviewed-on: http://git-master/r/931471
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jeetesh Burman <jburman@nvidia.com>
Tested-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
8 years agol4t: video: tegra: fb_blank cursor suspend/resume
Naveen Kumar S [Tue, 5 Jan 2016 12:37:08 +0000 (18:07 +0530)]
l4t: video: tegra: fb_blank cursor suspend/resume

Cursor stays visible during fb normal-blank. Added cursor
suspend and resume support during fb normal-blank and
unblank for L4T.

bug 200146453

Change-Id: I7b862319664be6a2b419e9ec456412c45e9cd172
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/929075
(cherry picked from commit 4d8887a83a1f0e9c04d5437ab350c242a2c7c630)
Reviewed-on: http://git-master/r/930303
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
8 years agovideo: tegra: dc: cleanup cursor suspend code
Naveen Kumar S [Tue, 5 Jan 2016 11:56:30 +0000 (17:26 +0530)]
video: tegra: dc: cleanup cursor suspend code

DC_DISP_DISP_WIN_OPTIONS was being read but not updated
with ~CURSOR_ENABLE. Removed redundant code and used
existing function set_cursor_enable() which writes back
to DC_DISP_DISP_WIN_OPTIONS to suspend cursor.

bug 200146453

Change-Id: Ie1f9d73e899aa65e58576d743d720a077ce8d1c8
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/929065
(cherry picked from commit 87f4831a3563bcb4146f0ac83d0fe6d981748317)
Reviewed-on: http://git-master/r/930302
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
8 years agofbcon: Compare variable screen info instead of modes
Thierry Reding [Mon, 7 Sep 2015 15:12:04 +0000 (17:12 +0200)]
fbcon: Compare variable screen info instead of modes

When trying to match a mode to a variable screen info structure, convert
the mode to a variable screen structure rather than the variable screen
info structure to a mode. The reason why this is necessary is because in
some cases the rounding errors introduced by the conversion of a mode to
variable screen info structures causes the conversion back to a mode not
to yield the same mode as the original.

Consider the following example: A video mode with a 3840x2160 resolution
at 60 Hz. The pixel clock is 533.25 MHz and the total raster area 4000x
2200 pixels. struct fb_var_screeninfo stores the pixel clock as a period
of each clock tick:

var->pixclock = 1000000000 / 533250 = 1875 ps

The refresh rate of this mode can be computed as follows:

refresh = 533250000 / (4000 * 2200) = 59 Hz

But struct fb_var_screeninfo does not store the refresh rate, so it must
be reconstructed from the total number of pixels and the pixel clock:

refresh = (1000000000 / 1875) * 1000 / (4000 * 2200)
        = 533333000 / 8800000 = 60 Hz

With UHD monitors this will cause the 59 Hz mode to be compared with an
almost identical 60 Hz mode, yet the comparison will still fail and the
modes won't be matched. This in turn can cause the struct display's
->mode field to be NULL, which will later on be dereferenced without
proper checking and cause a crash in fbcon_switch() -> display_to_var()
under the console lock.

Converting the mode to match against to a struct fb_var_screeninfo will
make sure that the same rounding error applies to both variable screen
info structures and allows matching to succeed.

Bug 200130894
Bug 200089256
Bug 200158516

Change-Id: I69ef55ecf0de733f9f4f733173fafd4ac5d99145
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/795373
(cherry picked from commit 86783e70adf479693793de862dcb95cbcd7c25cb)
Reviewed-on: http://git-master/r/927723
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
8 years agofbcon: Warn if no matching mode can be set
Thierry Reding [Mon, 7 Sep 2015 14:56:42 +0000 (16:56 +0200)]
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/795367
(cherry picked from commit 5257f309ee32e6389a3538be4852c913dca14adc)
Reviewed-on: http://git-master/r/927724
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
8 years agoARM64: tegra21: Update UCM2 DVFS overrides in DT
Alex Frid [Thu, 24 Dec 2015 01:24:04 +0000 (17:24 -0800)]
ARM64: tegra21: Update UCM2 DVFS overrides in DT

Updated DT include file that provides DVFS overrides for T210 TM670D
chip UCM2 (always on) personality to match p4v57 DVFS tables.

Bug 1713210

Change-Id: If141e9b9bfe61a56d5c92fb3eb99b8948dc78736
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/926700
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Tested-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
8 years agoARM64: tegra21: Add UCM1 DVFS overrides in DT
Alex Frid [Thu, 24 Dec 2015 00:09:50 +0000 (16:09 -0800)]
ARM64: tegra21: Add UCM1 DVFS overrides in DT

Added DT include file that provides DVFS overrides for T210 chip UCM1
(4/4/16) personality in commercial temperature range.

Bug 1713210

Change-Id: I5af4e44ba8d6b49224c80d59c3086679c1d436bf
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/926699
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Tested-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
8 years agotegra21: dvfs: Integrate CPU DVFS table p4v57
Alex Frid [Fri, 18 Dec 2015 00:40:42 +0000 (16:40 -0800)]
tegra21: dvfs: Integrate CPU DVFS table p4v57

Bug 1713210

Conflicts:
drivers/platform/tegra/tegra21_dvfs.c

Change-Id: Iabfe661539cc7f73cb88c26d07169f90e622b7e0
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/926698
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Tested-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
8 years agotegra21: dvfs: Ignore chip revision for Shield SKU
Alex Frid [Sat, 21 Nov 2015 02:24:14 +0000 (18:24 -0800)]
tegra21: dvfs: Ignore chip revision for Shield SKU

Bug 1558421

Change-Id: If6ff68424cf066837316abf47b44289e3c90e2c3
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/926697
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Tested-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
8 years agoARM64: tegra21: enable shutdown_warning
Ninad Malwade [Mon, 7 Dec 2015 10:22:29 +0000 (18:22 +0800)]
ARM64: tegra21: enable shutdown_warning

-Added entries for warning trip points

Bug 200105533

Change-Id: I12f780221caa9f92e1f2a40d1771a8895889ff2e
Signed-off-by: Ninad Malwade <nmalwade@nvidia.com>
Reviewed-on: http://git-master/r/842237
(cherry picked from commit 2f452740443197de8ada80fd0cb4b23068482f91)
(cherry picked from commit 04c9bf7e381b6b49044a34e4b79986649bc1feaf)
Reviewed-on: http://git-master/r/929364
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
8 years agothermal: nct72: enable shutdown_warning
Ninad Malwade [Mon, 7 Dec 2015 09:32:20 +0000 (17:32 +0800)]
thermal: nct72: enable shutdown_warning

- Enabled registering shutdown_warning cooling device
regardless of registration mechanism whether it is
from DT or non-DT

Bug 200105533

Change-Id: I6310d9ba92c0fc9244bee7a3e02e77606a8a385f
Signed-off-by: Ninad Malwade <nmalwade@nvidia.com>
Reviewed-on: http://git-master/r/842229
(cherry picked from commit 6e50e61d31d4104df3a3b37629f93ac709e85d9e)
(cherry picked from commit 579bcc8f4855f91db24481d8f8b6d3dde08ef20b)
Reviewed-on: http://git-master/r/929367
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Tested-by: Winnie Hsu <whsu@nvidia.com>
8 years agothermal: nct72: report correct initial temperature
Rajkumar Kasirajan [Mon, 21 Dec 2015 07:03:20 +0000 (15:03 +0800)]
thermal: nct72: report correct initial temperature

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.

Bug 200161159

Change-Id: I158a73eb692a71c0262496369bcd3bd3d62a40e1
Signed-off-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
(cherry picked from commit 4164770df219bcd37ffa68950882564181a78e8f)
Reviewed-on: http://git-master/r/929885
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

8 years agoarm64: dts: sysedp: add missing corecap values
Ishwarya Balaji Gururajan [Mon, 28 Dec 2015 20:24:11 +0000 (12:24 -0800)]
arm64: dts: sysedp: add missing corecap values

Bug 200155573

Change-Id: Ic93fcbd42e13b990a7f2a532f587ce02fd670dc6
Signed-off-by: Ishwarya Balaji Gururajan <igururajan@nvidia.com>
Reviewed-on: http://git-master/r/927179
(cherry picked from commit 4254daa5b7c92916adb63b685be9f0a9f86e9d2b)
Reviewed-on: http://git-master/r/927738
(cherry picked from commit a0602c73e3eab1f9a2e63a0fe4549f79bbcd4fcd)
Reviewed-on: http://git-master/r/929840
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
Tested-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
8 years agoarm64: dts: t210: update jetson cpu-emc table
Terry Wang [Fri, 28 Aug 2015 10:03:08 +0000 (10:03 +0000)]
arm64: dts: t210: update jetson cpu-emc table

This reverts commit 6fc214e8299ade392e6f6cb73919bb134af5caaf

Bug 200146718

Change-Id: Icd6aad5b27a6c36a7ec598be87f051fa9c84148f
Signed-off-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
Reviewed-on: http://git-master/r/927396
Reviewed-by: Kerwin Wan <kerwinw@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
8 years agommc: increased delay after enabling auto_cal
Anubhav jain [Tue, 17 Nov 2015 08:50:03 +0000 (14:20 +0530)]
mmc: increased delay after enabling auto_cal

-Increased the delay from 1us to 2us after
enabling auto calibration.

Bug 200134543

Change-Id: Id6e497773c77a1fd009fc34eb58c5d1276120224
Signed-off-by: Anubhav jain <anubhavj@nvidia.com>
(cherry picked from commit 9b9deba371dc2c0ecc3cc9137af6b42afb156d93)
Reviewed-on: http://git-master/r/926382
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
8 years agoxhci: tegra: allocate workqueue for mailbox
TW Chiu [Mon, 30 Nov 2015 05:59:57 +0000 (13:59 +0800)]
xhci: tegra: allocate workqueue for mailbox

Avoid using the shared workqueue as mailbox processing may be delayed
by works scheduled by other drivers.

Allocate a dedicated workqueue for mailbox.

Bug 1691314

DEPENDS ON: < None >

Change-Id: If40bb4263796cb64332dd827cb3bbebcdee5179a
Signed-off-by: TW Chiu <twchiu@nvidia.com>
Reviewed-on: http://git-master/r/839103
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Petlozu Pravareshwar <petlozup@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
8 years agovideo: tegra: dc: remove redundant flag check
Naveen Kumar S [Thu, 3 Dec 2015 10:25:37 +0000 (15:55 +0530)]
video: tegra: dc: remove redundant flag check

While identifying VIC, aspect ratio flag is again being
checked after comparing few basic mode parameters. Hence
removing the redundant flag comparision. This avoids failure
in VIC identification when a mode does not specify  aspect ratio.

bug 200148145

Change-Id: I6298480b7d7a12c05c393276e5432bcd5e7dcd38
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/842422
(cherry picked from commit 0066f4d8ed7cda8ae5d34ad70594e14d6b15f041)
Reviewed-on: http://git-master/r/926686
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Santosh Galma <galmar@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
8 years agomedia: tegra_camera: init mipi bias pad
Bryan Wu [Mon, 14 Dec 2015 23:59:15 +0000 (15:59 -0800)]
media: tegra_camera: init mipi bias pad

Initialize MIPI BIAS pads is required for both CSI and DSI. Add this
initialization in VI/CSI driver just in case DSI is disabled then all
VI/CSI capture will fail.

Bug 200143026

Change-Id: Idb988b168fab4ab696bfe5c2af704cd91e654199
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/922774
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
8 years agoARM64: t210: add E3326 camera and camera_common
Bryan Wu [Fri, 11 Dec 2015 23:52:07 +0000 (15:52 -0800)]
ARM64: t210: add E3326 camera and camera_common

Bug 200143026

Change-Id: Ied5087137a2d185714a0c6d98561c523404f41a5
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/922772
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agomedia: camera-common: export symbols for modules
Bryan Wu [Fri, 11 Dec 2015 23:35:35 +0000 (15:35 -0800)]
media: camera-common: export symbols for modules

Bug 200143026

Change-Id: I82acc4fcb2c52ba210b1e99ca1e4589f95357296
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/922770
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agoarch: arm64: configs: Fix garbled console-ramoops
Gaurav Singh [Mon, 30 Nov 2015 08:35:53 +0000 (14:05 +0530)]
arch: arm64: configs: Fix garbled console-ramoops

Add required configs so that soft reset is done and
only PMIC gets reset not RAM.

Bug 200141646

Change-Id: Id472188113d1e706d09a3ee443286ba5dacd3234
Signed-off-by: Gaurav Singh <gaursingh@nvidia.com>
Reviewed-on: http://git-master/r/838871
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Bibek Basu <bbasu@nvidia.com>
8 years agomedia: soc_camera: vi2: support gang mode
Ahung Cheng [Fri, 11 Dec 2015 17:40:30 +0000 (01:40 +0800)]
media: soc_camera: vi2: support gang mode

- Support combination L|R, R|L, TB|, B|T
- Add gang_mode support for TC358840

Bug 200113762

Change-Id: I8dd8f1e6724ed7579c51a72364f2fcc5cb224367
Signed-off-by: Ahung Cheng <ahcheng@nvidia.com>
Reviewed-on: http://git-master/r/922015
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agomedia: soc_camera: add tc358840 v4l2 driver
Frank Shi [Fri, 11 Dec 2015 09:56:48 +0000 (17:56 +0800)]
media: soc_camera: add tc358840 v4l2 driver

Add TC358840 V4l2 driver
- support 1080p and 4K HDMI-in
- support UYVY and RGB888
- support hotplug detection
- support resolution select

Bug 200113762

Change-Id: I3921e8f0b679ac99d0e7df6193d7080795d3b673
Signed-off-by: Frank Shi <fshi@nvidia.com>
Reviewed-on: http://git-master/r/921825
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agomedia: soc-camera: actually use default resolution
Ahung Cheng [Thu, 17 Dec 2015 10:46:24 +0000 (18:46 +0800)]
media: soc-camera: actually use default resolution

Return default resolution in case no matched format

Bug 200113762

Change-Id: Idf10c35c122b5f42a9349367379a269d8ef7ce25
Signed-off-by: Ahung Cheng <ahcheng@nvidia.com>
Reviewed-on: http://git-master/r/924218
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agomedia: tegra_camera: fix syncpoint time out issue
Bryan Wu [Thu, 10 Dec 2015 21:53:40 +0000 (13:53 -0800)]
media: tegra_camera: fix syncpoint time out issue

The pixel parser is reset in each call to vi2_channel_capture_done()
and then the VI is not well configured anymore for next incoming
frames. By removing this reset, the capture is working again.

However, the second thread (for done buffer process) is woken up too
soon and the stream is corrupted: the buffer contains a mix of the
last and new frame captured. In order to remove this effect, the
wake_up_interruptible(&chan->done_wait) call should be done later, just
after the wait of FRAME_START syncpoint. It permits to wait that the
FRAME_START occurs before enabling and waiting the MW_ACK_DONE
syncpoint.

Bug 1705779

Change-Id: I561e2fb191426abfa358a689985540f0ca8f35b8
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/922773
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
8 years agovideo: tegra: dc: enable YUV 1000/1001 modes
Pekka Väänänen [Thu, 27 Aug 2015 15:03:41 +0000 (18:03 +0300)]
video: tegra: dc: enable YUV 1000/1001 modes

YUV modes' refresh rates are not nice multiples of 1000.
That means we need an epsilon check to generate 1000/1001 modes
correctly. Since we now match more modes than before, the mode list
needs to be larger too.

Change-Id: I49c4c65651bde2f272af98a10cd8a47e2b03022c
Signed-off-by: Pekka Väänänen <pvaananen@nvidia.com>
Signed-off-by: Aly Hirani <ahirani@nvidia.com>
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/790400
(cherry picked from commit f97d6e06214b6216aea71d2f5c078183973ef0e3)
Reviewed-on: http://git-master/r/839408
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
8 years agovideo: tegra: dc: enable 1000/1001 modes
Aly Hirani [Tue, 18 Aug 2015 09:48:42 +0000 (02:48 -0700)]
video: tegra: dc: enable 1000/1001 modes

This change enables the 1000/1001 modes for T210. On T210, we have a fractional
divider available for DC. This allows us to generate pclks almost closely
accurate to the common 1000/1001 modes such as 23.976, 29.97 and 59.94 Hz.

This change:

1. Adds a new VMODE flag to signify modes which are * 1000 / 1001
2. Filters exclusively for 24/30/60 Hz modes in the EDID parser, duplicates
   these modes and changes them to be the 1000 / 1001 modes
3. Changes the dc pclk calculation to take into account these modes during the
   rounding

Bug 200111432

Change-Id: I2cc762b2338ce5662d85891859327015e88b670b
Signed-off-by: Aly Hirani <ahirani@nvidia.com>
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/786281
(cherry picked from commit 2879633052ba8329bc9373f694fa7bcd4ee59d37)
Reviewed-on: http://git-master/r/839407
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agovideo: tegra: dc: update VIC identification
Naveen Kumar S [Thu, 26 Nov 2015 09:55:39 +0000 (15:25 +0530)]
video: tegra: dc: update VIC identification

Adding few more checks to help VIC identification.
Comparing 1001/1000 value of pixclock to take care of
pclk rounding-off issue. Also, comparing mode->flag value
helps in choosing the CEA mode with matching aspect ratio.

bug 200148145
bug 200145631
bug 1689283
bug 200154490

Change-Id: Ia80ba4dd3337772b24b74ee355a1032d59b31d9d
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/838452
(cherry picked from commit 1ee939ea33c893a5b98652cef4d0fae5c7f25c32)
Reviewed-on: http://git-master/r/839223
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>
GVS: Gerrit_Virtual_Submit

8 years agodrivers: video: tegra: dc: Fix VIC for a few modes
Naveen Kumar S [Fri, 20 Nov 2015 14:15:10 +0000 (19:45 +0530)]
drivers: video: tegra: dc: Fix VIC for a few modes

This change fixes the VIC not being set correctly on a few modes. For
1000/1001 modes, the pixclock is now reverted back to the mode
corresponding to the CEA modedb before it is compared.

Since the refresh in the mode database is also not trustable, it
compares the modes from the CEA modedb with a +/- 1 offset

Bug 200148145
Bug 200145631
Bug 1689283
Bug 200154490

Change-Id: I3742b4d090c26d6c1fc3e2f4af44fd1389079d1a
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/837681
(cherry picked from commit 2046174796fc8ad124b7b34d641ed5acf9f5640c)
Reviewed-on: http://git-master/r/839208
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>
GVS: Gerrit_Virtual_Submit

8 years agop2360: Build RTC as module
Vipin Kumar [Fri, 27 Nov 2015 08:08:47 +0000 (13:38 +0530)]
p2360: Build RTC as module

max77620 rtc takes significant time (~60 ms) for probe. Build
rtc-max77620 as module and insert it after EVA is done

bug 200156862

Change-Id: I942be0d00ca2174ebcc9f03efb48b16a75945fa5
Signed-off-by: Vipin Kumar <vipink@nvidia.com>
Reviewed-on: http://git-master/r/838856
(cherry picked from commit 11ad7fe0f2969ab5728800cd565818447ecd2c13)
Reviewed-on: http://git-master/r/839112
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>
8 years agoRevert "arm64: dts: t210: update jetson cpu-emc table"
Emad Mir [Wed, 16 Dec 2015 23:56:33 +0000 (15:56 -0800)]
Revert "arm64: dts: t210: update jetson cpu-emc table"

This reverts commit 126292a1aa1b602ede9b5a4484a3a6f129409b96.

Change-Id: I6b0ab54fcbb4caf4a9f2ea34e4ea76ac29461ff4
Reviewed-on: http://git-master/r/923871
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agobindings: mmc: tegra: correct KSO mode dump
Bitan Biswas [Wed, 16 Dec 2015 07:15:41 +0000 (12:45 +0530)]
bindings: mmc: tegra: correct KSO mode dump

Updated bindings file with correct spelling of
KSO dump disable attribute

bug 200161173
bug 200138403

Change-Id: I8246926a17a6d23dbe31871e5e2486a110af1d53
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/923485
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
8 years agoARM64: DT: tegra21: correct KSO dump disable
Bitan Biswas [Tue, 15 Dec 2015 05:36:49 +0000 (11:06 +0530)]
ARM64: DT: tegra21: correct KSO dump disable

Correct spelling of attribute to disable KSO
register dump for sdmmc.

bug 200161173
bug 200138403

Change-Id: I506d87fee955fc0db924beffa35a0d77fe424985
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/922884
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agoarm64: dts: t210: update jetson cpu-emc table
Terry Wang [Fri, 28 Aug 2015 10:03:08 +0000 (10:03 +0000)]
arm64: dts: t210: update jetson cpu-emc table

updated jetson cpu-to-emc ratio table based on loki-e
to optimize power and performance.

Bug 200146718

Change-Id: Icd6aad5b27a6c36a7ec598be87f051fa9c84148f
Signed-off-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
Reviewed-on: http://git-master/r/832619
(cherry picked from commit 69f00966c2881b6803b13769ffe30b0a2e9b3bec)
Reviewed-on: http://git-master/r/843352
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ninad Malwade <nmalwade@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
8 years agoarm64: tegra: jetson_cv: add shunt volt offset
Rajkumar Kasirajan [Mon, 7 Dec 2015 11:04:55 +0000 (19:04 +0800)]
arm64: tegra: jetson_cv: add shunt volt offset

added shunt voltage offset to hangle INA
channel inaccuracy on high voltage rails.

Bug 1677375

Change-Id: I78292e7447f06f2b743b7eef60c19d4d4814c22d
Signed-off-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
Reviewed-on: http://git-master/r/842256
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agoiio: meter: ina3221: support to offset shunt volt
Rajkumar Kasirajan [Mon, 23 Nov 2015 10:29:50 +0000 (18:29 +0800)]
iio: meter: ina3221: support to offset shunt volt

added support to offset shunt voltage reading to hangle INA
channel inaccuracy on high voltage rails.

example:
    p2180_shuntv_offset: shuntv-offset {
        offset = <40>;
        conditional_offset@0 {
            shunt_volt_start = <40>;
            shunt_volt_end = <120>;
            offset = <33>;
        };
    conditional_offset@1 {
            shunt_volt_start = <200>;
            shunt_volt_end = <400>;
            offset = <80>;
        };
};

channel@0 {
reg = <0x0>;
ti,rail-name = "VDD_IN";
ti,shunt-resistor-mohm = <20>;
ti,current-critical-limit-ma = <2105>;
shunt-volt-offset-uv = <&p2180_shuntv_offset>;
};

which means,
 if shunt voltage reading is  from 40 to 120, offset -33 will be applied
 if shunt voltage reading is  from 200 to 400, offset -80 will be applied
 for all other readings offset -40 will be applied.

Bug 1677375

Change-Id: I67c12a6b105011a0a8ca2aae2c5764df6e21ce8b
Signed-off-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
Reviewed-on: http://git-master/r/836475
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ninad Malwade <nmalwade@nvidia.com>
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
8 years agopower: console flush during suspend
Bibek Basu [Mon, 14 Dec 2015 06:32:31 +0000 (12:02 +0530)]
power: console flush during suspend

If the console lock is taken by non boot cpus, then during
suspend conosole buffer may not flush because all nonboot
cpus will be disabled. So,if no_console_suspend is passed
in kernel commandline, flush console before disabling
nonboot cpus.

Bug 200143487

Change-Id: I1a4455a1f515694a75ff7a96d08f24bf4777bf5c
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/922363
Reviewed-by: Allen Yu <alleny@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
8 years agovideo: tegra: nvmap: avoid duplicated vma in vmas
Frank Shi [Thu, 10 Dec 2015 08:15:09 +0000 (16:15 +0800)]
video: tegra: nvmap: avoid duplicated vma in vmas

When nvmap_vma_open is called more than one time
for same vma. This vma should not be added to vmas
list again.

Bug 200154984

Change-Id: I7617d6c10e2a9cfcd03418865f0e4b3b8576c971
Signed-off-by: Frank Shi <fshi@nvidia.com>
Reviewed-on: http://git-master/r/921294
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
8 years agoarm64: jetson-cv: correct regulator en_vdd_cam_1v2
Frank Shi [Thu, 26 Nov 2015 06:41:21 +0000 (14:41 +0800)]
arm64: jetson-cv: correct regulator en_vdd_cam_1v2

Current regulator en_vdd_cam_1v2 is for E3233.
Copy it to dtb of E3233, then change current GPIO to
correct one for P2597.

Bug 1651635

Change-Id: I0f981485d2842c918a3587600808c896f512c2f4
Signed-off-by: Frank Shi <fshi@nvidia.com>
Reviewed-on: http://git-master/r/921808
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: David Wang (SW-TEGRA) <davidw@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
8 years agodrivers: soc_camera: give default hdr_en
Frank Shi [Fri, 11 Dec 2015 08:43:33 +0000 (16:43 +0800)]
drivers: soc_camera: give default hdr_en

Some sensor driver may not have HDR_EN ctrl.
It's not a fatal error. Just give a default value 0
to it.

Bug 1579861

Change-Id: I8b970cf17184edb18cd18dc8269b13ecbda6f7e4
Signed-off-by: Frank Shi <fshi@nvidia.com>
Reviewed-on: http://git-master/r/921824
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: David Wang (SW-TEGRA) <davidw@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
8 years agoi2c: tegra-vi: powergate only when partition is ON
Shridhar Rasal [Wed, 9 Dec 2015 11:08:30 +0000 (16:38 +0530)]
i2c: tegra-vi: powergate only when partition is ON

Both i2c-vi and host-vi are in VE power domain.
During boot stage, interlaced acessing may occur and
cause negative reference count

Bug 200159379

Change-Id: Iee523b7b3084f0ac890bd47b81738152f064ec41
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/843497
Reviewed-by: Nine Feng <nfeng@nvidia.com>
Tested-by: Nine Feng <nfeng@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
8 years agokernel changes for implementing sensor cropping
Shubham Chandra [Thu, 5 Nov 2015 11:16:54 +0000 (16:46 +0530)]
kernel changes for implementing sensor cropping

Defined s_crop & g_crop ioctls with proper functions
Added macros for required registers addresses
Boundary check in s_crop function

Bug 1687120

Change-Id: I3ad1f3d82c189dd473ea205c03be30638349bd58
Signed-off-by: Shubham Chandra <shubhamc@nvidia.com>
Reviewed-on: http://git-master/r/835964
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sudhir Vyas <svyas@nvidia.com>
Reviewed-by: Hu He <hhe@nvidia.com>
Reviewed-by: Kamal Balagopalan <kbalagopalan@nvidia.com>
8 years agoarm64: jetson-cv: enable INA for 2180-1000-a03
Shreshtha SAHU [Tue, 8 Dec 2015 08:57:56 +0000 (14:27 +0530)]
arm64: jetson-cv: enable INA for 2180-1000-a03

Enable INA only for A03 revisions of compute module P2180.
Only this revision and later has INA accuracy hardware fix.

Bug 1677375

Change-Id: Iff82316ca91b76b3de3aa06076724c4ed3ba6d71
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/842848
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
8 years agoof: plugin-manager: fix section mismatch error
Laxman Dewangan [Tue, 10 Nov 2015 02:49:53 +0000 (08:19 +0530)]
of: plugin-manager: fix section mismatch error

Fix following section mismatch error:

/**
WARNING: vmlinux.o(.text+0x8ba968): Section mismatch in reference
from the function update_target_node() to the variable .init.text:$x
The function update_target_node() references
the variable __init $x.
This is often because update_target_node lacks a __init
annotation or the annotation of $x is wrong.
**/

Change-Id: I853c3b4f77ebed587ec122be550acd024bb132a8
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/831096
(cherry picked from commit 5a0b1037f77e168e421e80598f924180ab2aeaa9)
Reviewed-on: http://git-master/r/842368
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Tested-by: Shreshtha Sahu <ssahu@nvidia.com>
8 years agoof: plugin-manager: add support for deleting property from target node
Laxman Dewangan [Wed, 28 Oct 2015 12:48:48 +0000 (18:18 +0530)]
of: plugin-manager: add support for deleting property from target node

Add support for deleting the property from the target node using
plugin-manager.

Change-Id: I404013473f4955e1e82f12670f1c207c005cf2dc
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/824182
(cherry picked from commit d460849d546c236c0797a7dfa9a6de79466ca1d2)
Reviewed-on: http://git-master/r/842367
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Tested-by: Shreshtha Sahu <ssahu@nvidia.com>
8 years agoof: plugin-manager: copy properties for adding/updating
Laxman Dewangan [Wed, 14 Oct 2015 08:56:18 +0000 (14:26 +0530)]
of: plugin-manager: copy properties for adding/updating

Create copied version of properties before updating or
adding in target node as this is permanently used by
target node.

Change-Id: I1831391097baaae8b345725180b71fe238960b75
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/817450
(cherry picked from commit 756d0ccd51f1f98b45766963c87094d91cf99a45)
Reviewed-on: http://git-master/r/842364
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Tested-by: Shreshtha Sahu <ssahu@nvidia.com>
8 years agogpu: nvgpu: IOCTL to disable timeouts
Deepak Nibade [Thu, 20 Aug 2015 14:16:16 +0000 (19:46 +0530)]
gpu: nvgpu: IOCTL to disable timeouts

Add IOCTL NVGPU_DBG_GPU_IOCTL_TIMEOUT to support
disabling/re-enabling scheduler timeout from user space

If user space application is closed without re-enabling
the timeouts, kernel will restore the timeouts' state
while releasing the debug session

This is needed for debugging purpose

Bug 1514061

Change-Id: I32efb47ad09d793f3e7fd8f0aaa9720c8bc91272
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/788176
(cherry picked from commit e338eb25e9177ca25a2035f10b93e378ac8bbf16)
Reviewed-on: http://git-master/r/841468
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
8 years agogpu: nvgpu: enable powergate always while releasing debug session
Deepak Nibade [Thu, 10 Sep 2015 10:40:21 +0000 (16:10 +0530)]
gpu: nvgpu: enable powergate always while releasing debug session

Currently, while releasing the debug session we enable powergate
only if a channel is bound to session

If a session has no channel bound to it, and has powergate
disabled, then we do not enable powergate when that session
is closed

Fix this by calling dbg_set_powergate(POWERGATE_ENABLE) always
while releasing the session

Refcounting and sanity checks in dbg_set_powergate() will take
care of situation if powergate was not disabled by the session
in first place

Bug 1679372

Change-Id: I4e027393c611d3e8ab4f20e195f31871086da736
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/796999
(cherry picked from commit 671dff8cb0605f865c5da32bd889e2a6fcf133fe)
Reviewed-on: http://git-master/r/841467
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
8 years agogpu: nvgpu: gm20b: use jiffies for wait on PMU
Vijayakumar [Tue, 24 Nov 2015 07:06:58 +0000 (12:36 +0530)]
gpu: nvgpu: gm20b: use jiffies for wait on PMU

bug 200153970
bug 1707442

Change-Id: Ia5f616269bfeb834540bf4da6ecfc6e399682819
Reviewed-on: http://git-master/r/836966
(cherry picked from commit 9bc019e3b62984b3d1f12da5edc3221ee44a86b1)
Signed-off-by: Vijayakumar <vsubbu@nvidia.com>
Reviewed-on: http://git-master/r/841356
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
Tested-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
8 years agovideo:tegra:nvmap: fix dump-stack for nvmap test
Jeetesh Burman [Thu, 26 Nov 2015 11:32:58 +0000 (17:02 +0530)]
video:tegra:nvmap: fix dump-stack for nvmap test

to get cpu-id use local_clock instead of smp_processor_id,
as it calls to debug_smp_processor_id, which causes stack_dump.

Bug 200155945

Change-Id: Ibd5c8990eca9a83c7e8384a375495dd18c4a18e6
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/838528
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
8 years agovideo: tegra: nvmap: support inserting pages on unreserve
Sri Krishna chowdary [Tue, 12 May 2015 07:12:49 +0000 (12:42 +0530)]
video: tegra: nvmap: support inserting pages on unreserve

Some times it is beneficial to insert pages into vma on unreserve.
This avoids page fault overhead for any accesses later. If user space
knows apriori which regions of a group of handles will be accessed for
sure, user space can pass relevant information with this new
NVMAP_INSERT_PAGE_ON_UNRESERVE option to reserve ioctl call.

Mark pages as writable, else write accesses after read fault nullifying the
purpose of the option.

Bug 200092803

Change-Id: Id44502b9a5d890d24f221e38c6ae781584ce7ace
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/781602
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
8 years agoRevert "media: tegra: ov5693: create node if HW is present"
Mrutyunjay Sawant [Tue, 8 Dec 2015 07:57:43 +0000 (23:57 -0800)]
Revert "media: tegra: ov5693: create node if HW is present"

bug 1710357

Change-Id: I1eff4db8dc5c65fa99f5148a22953afc3a9939b4
Reviewed-on: http://git-master/r/842800
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>
8 years agomm: consolidate code to setup pte
Kirill A. Shutemov [Thu, 3 Apr 2014 21:48:16 +0000 (14:48 -0700)]
mm: consolidate code to setup pte

Extract and consolidate code to setup pte from do_read_fault(),
do_cow_fault() and do_shared_fault().

Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Rik van Riel <riel@redhat.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Matthew Wilcox <matthew.r.wilcox@intel.com>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
(cherry picked from commit 3bb977946998ae0d756279c5a108435d04636e2b)
Change-Id: I2af7640de17d93d81c5f7f1d83662ac3909dd15f
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/840996
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
8 years agoiommu/tegra: smmu: fix iommu message
Jeetesh Burman [Tue, 24 Nov 2015 10:56:03 +0000 (16:26 +0530)]
iommu/tegra: smmu: fix iommu message

To fix below message:
"No iommus property found in DT node"

replacing dev_notice to dev_dbg.

Bug 200137948

Change-Id: I772f5e9750f50eeab812ed1e18a042fde7cfa02d
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/837095
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
8 years agomedia: tegra: ov5693: create node if HW is present
Shreshtha SAHU [Mon, 16 Nov 2015 15:46:31 +0000 (21:16 +0530)]
media: tegra: ov5693: create node if HW is present

Create video dev node ov5693.1 only if HW is present/detected.

Bug 1693452
Bug 1692979

Change-Id: Ic4c9172798f243471d2d87b6eddab81e79a240aa
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/833358
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agomedia: tegra_camera: support YUV CSI input
Frank Shi [Fri, 20 Nov 2015 03:13:48 +0000 (11:13 +0800)]
media: tegra_camera: support YUV CSI input

Program VI to support YUV CSI input

Bug 200153901

Change-Id: I791e55a24cea59ad32a9af99f8d0c3be8eb5919d
Signed-off-by: Frank Shi <fshi@nvidia.com>
Reviewed-on: http://git-master/r/835644
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bryan Wu <pengw@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
8 years agogpu: nvgpu: create sync_fence only if needed
Deepak Nibade [Wed, 7 Oct 2015 10:50:07 +0000 (16:20 +0530)]
gpu: nvgpu: create sync_fence only if needed

Currently, we create sync_fence (from nvhost_sync_create_fence())
for every submit
But not all submits request for a sync_fence.

Also, nvhost_sync_create_fence() API takes about 1/3rd of the total
submit path.

Hence to optimize, we can allocate sync_fence
only when user explicitly asks for it using
(NVGPU_SUBMIT_GPFIFO_FLAGS_FENCE_GET &&
NVGPU_SUBMIT_GPFIFO_FLAGS_SYNC_FENCE)

Also, in CDE path from gk20a_prepare_compressible_read(),
we reuse existing fence stored in "state" and that can
result into not returning sync_fence_fd when user asked
for it
Hence, force allocation of sync_fence when job submission
comes from CDE path

Bug 200141116

Change-Id: Ia921701bf0e2432d6b8a5e8b7d91160e7f52db1e
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/812845
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
8 years agopcie: host: tegra: fix port register access
Vidya Sagar [Tue, 24 Nov 2015 18:08:35 +0000 (23:38 +0530)]
pcie: host: tegra: fix port register access

access root port registers only if rootport is active

Bug 1705758

Change-Id: Iac2f2b673d30824188220ddddf3a037535ab1f34
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/837265
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agodrivers: media: platform: ov5693 gpio warning
David Wang [Wed, 2 Dec 2015 21:52:02 +0000 (13:52 -0800)]
drivers: media: platform: ov5693 gpio warning

Changing reset gpio error message to warning as
reset gpio pin is not a requirement for this sensor.

Bug 200143488

Change-Id: Ibb878f537fc279bd728e86f9522c29e3fd04b621
Signed-off-by: David Wang <davidw@nvidia.com>
Reviewed-on: http://git-master/r/840627
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bhanu Murthy V <bmurthyv@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Jeetesh Burman <jburman@nvidia.com>
Tested-by: Jeetesh Burman <jburman@nvidia.com>
8 years agoarm64: tegra210: fix DT for node xusb_padctl
Hans Yang [Wed, 25 Nov 2015 04:30:51 +0000 (12:30 +0800)]
arm64: tegra210: fix DT for node xusb_padctl

This commit fixed xusb_padctl node in DT source files
by means of "check_padctl_dt_auto_fix.sh".

It automatically checks .dtb and does following actions
in .dts/.dtsi files

1) Replace padctl@0 by xusb_padctl
2) Correct "nvidia,enable-sata-port" if sata is enabled/disabled.
3) Correct "nvidia,lane-map=0x??" if pcie is enabled/disabled.
4) Correct "status=??" depends on sata/pcie/xusb lane owner.
5) Add needed regulators depends on sata/pcie/xusb lane owner.

Bug 200153624

Change-Id: Ibd7407c2e52822ed28467cfedeb4602b18a0f745
Signed-off-by: Hans Yang <hansy@nvidia.com>
Reviewed-on: http://git-master/r/837607
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: WK Tsai <wtsai@nvidia.com>
Reviewed-by: TW Chiu <twchiu@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
8 years agoARM64: move regulator en_vdd_vcm_2v8 to E3233 dtb
Frank Shi [Thu, 26 Nov 2015 06:41:21 +0000 (14:41 +0800)]
ARM64: move regulator en_vdd_vcm_2v8 to E3233 dtb

The regulator en_vdd_vcm_2v8 is on E3233. It should be placed in device
tree file for E3233. Otherwise it may confilct with GPIO mapping on
other camera board

Bug 1651635

Change-Id: I240cd6a401ee1633db5ec58bbf7a2877906b5fa0
Signed-off-by: Frank Shi <fshi@nvidia.com>
Reviewed-on: http://git-master/r/838354
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: David Wang (SW-TEGRA) <davidw@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
8 years agogpu: nvgpu: move check_gp_put() and update_gp_get() to worker
Deepak Nibade [Mon, 30 Nov 2015 10:39:48 +0000 (16:09 +0530)]
gpu: nvgpu: move check_gp_put() and update_gp_get() to worker

We currently call check_gp_put() and update_gp_get()
in submit path and this takes about 5uS for both checks
check_gp_put() - 3.5 uS
update_gp_get() - 1.5 uS

But this book keeping can be moved to gk20a_channel_update()
to save some submit time

Note that check_gp_put() needs to be done inside submit
lock

Bug 200141116

Change-Id: I276400111be0421eb673695e2f2899ff52e344b4
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/839232
(cherry picked from commit 289617e8bf01bde9aab45dfa3a1c6a1241e6eb78)
Reviewed-on: http://git-master/r/839711
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
8 years agoSummary: Disable kernel SDMMC driver on SLT boards
Anand Bhatia [Mon, 13 Jul 2015 21:25:55 +0000 (14:25 -0700)]
Summary: Disable kernel SDMMC driver on SLT boards

Bug 1656029

For pad safety, interactions of kernel driver
post mods sd test need to be avoided. Kernel
SD driver are therefore disabled.

Change-Id: Ic96ac0bc8dbb82a9d790d9c19587bc881f97c332
Signed-off-by: Anand Bhatia <anandb@nvidia.com>
Reviewed-on: http://git-master/r/769512
Reviewed-by: Vivek Aseeja <vaseeja@nvidia.com>
8 years agotegra-alt: adsp: request ACK when closing PCM stream
Viraj Karandikar [Wed, 18 Nov 2015 07:01:13 +0000 (12:31 +0530)]
tegra-alt: adsp: request ACK when closing PCM stream

Request ACK and wait when closing PCM stream.

Bug 200100724

Change-Id: I1a12a3a8efff0e25152c148e4b74b163f0b4f63d
Signed-off-by: Viraj Karandikar <vkarandikar@nvidia.com>
Reviewed-on: http://git-master/r/834456
Reviewed-by: Uday Gupta <udayg@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
8 years agotegra: host: pcie: fix D3_Hot test code
Vidya Sagar [Fri, 27 Nov 2015 11:52:16 +0000 (17:22 +0530)]
tegra: host: pcie: fix D3_Hot test code

fixes D3_Hot test code w.r.t checking device's
entry into D3_Hot state

Bug 200143348

Change-Id: I74b874b8c0e105b69da086a9edc3f9a29718eb7e
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/838881
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
8 years agoarm: dt: vcm30_t124: otg: allow host gadget change
Haribabu Narayanan [Tue, 10 Nov 2015 01:24:31 +0000 (17:24 -0800)]
arm: dt: vcm30_t124: otg: allow host gadget change

vcm30_t124 based platforms don't physically use a OTG connector that allows for
ID pin based state changes.  Since SW based transitions use ID/VBUS changes
simultaneously, allow OTG to switch directly between HOST and DEVICE modes
without needing to go through a SUSPEND state.

Bug 1653886

Change-Id: Ibe131d6e087970c4a1fc2c391fb73bedc31486fd
Signed-off-by: Haribabu Narayanan <hnarayanan@nvidia.com>
Reviewed-on: http://git-master/r/831057
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>
8 years agomedia: soc_camera: add ov13860 v4l2 driver
Nine Feng [Mon, 19 Oct 2015 06:54:36 +0000 (14:54 +0800)]
media: soc_camera: add ov13860 v4l2 driver

Bug 1674463

Change-Id: Ic7aa8c864aae5bb21882bbcaffd0ca561200734d
Signed-off-by: Nine Feng <nfeng@nvidia.com>
Reviewed-on: http://git-master/r/819465
GVS: Gerrit_Virtual_Submit
Reviewed-by: David Wang (SW-TEGRA) <davidw@nvidia.com>
Reviewed-by: Arun Kannan <akannan@nvidia.com>
Reviewed-by: Kamal Balagopalan <kbalagopalan@nvidia.com>
8 years agoarm64: tegra21: config: enable USB_SERIAL_FTDI_SIO
Jeetesh Burman [Wed, 25 Nov 2015 06:04:31 +0000 (11:34 +0530)]
arm64: tegra21: config: enable USB_SERIAL_FTDI_SIO

Enable USB_SERIAL_FTDI_SIO.

Bug 1705825

Change-Id: I928642b23c8fcf561137edcd5d326ed5029bd03d
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/837612
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
8 years agovideo: tegra: dc: Setup hda presence on hotplug
Shaunak Gupte [Tue, 20 Oct 2015 07:00:31 +0000 (12:30 +0530)]
video: tegra: dc: Setup hda presence on hotplug

Setup hda presence automatically when hdmi is plugged in.

Bug 200130740
Bug 200128816

Change-Id: I3d220bc893f6821963a3a9be6eb0c71ff54938ed
Signed-off-by: Shaunak Gupte <shaunakg@nvidia.com>
Reviewed-on: http://git-master/r/820156
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rahul Mittal <rmittal@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dara Ramesh <dramesh@nvidia.com>
8 years agoiommu/tegra: smmu: make iova_to_phys debugfs more robust
Sri Krishna chowdary [Thu, 19 Nov 2015 08:57:14 +0000 (14:27 +0530)]
iommu/tegra: smmu: make iova_to_phys debugfs more robust

This fixes 2 things
1. Make sure user gets valid result only if read from the
same address space the iova originally was requested for
2. make sure not to proceed with iova translation to physical
address when no iova was ever programmed

Bug 200143318

Change-Id: If6af4780bfffa82bd9776137e343bcb8e27b49ad
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/835273
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
8 years agoarm64: t210: jetson_cv: update hdmi2.0 prod values
Naveen Kumar S [Mon, 23 Nov 2015 06:27:59 +0000 (11:57 +0530)]
arm64: t210: jetson_cv: update hdmi2.0 prod values

Updated prod settings for HDMI2.0 on Jetson-CV to ahere to
HDMI electrical compliance values.

bug 1699941
bug 1660935

Change-Id: Icb3909f67ae282d3bde528e99f820454680ce835
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/837320
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
8 years agotegra21: dvfs: Add support for SKU 0x8F
Alex Frid [Fri, 20 Nov 2015 19:56:50 +0000 (11:56 -0800)]
tegra21: dvfs: Add support for SKU 0x8F

Bug 1558421

Change-Id: Ib31ac17b0338d8916fb8e9b526b86b7cebbd45d0
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/836416
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Kerwin Wan <kerwinw@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
8 years agogpu: nvgpu: fixed NV_PBUS_INTR_0 value on pbus isr
Thomas Fleury [Thu, 19 Nov 2015 14:38:37 +0000 (15:38 +0100)]
gpu: nvgpu: fixed NV_PBUS_INTR_0 value on pbus isr

bug 200139995

Change-Id: I81d2eb4461e92fbb33db8554779f6566f6b002c1
Signed-off-by: Thomas Fleury <tfleury@nvidia.com>
Reviewed-on: http://git-master/r/835307
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
8 years agoARM64: DT: tegra210: disable KSO mode dump
Bitan Biswas [Thu, 29 Oct 2015 09:58:23 +0000 (15:28 +0530)]
ARM64: DT: tegra210: disable KSO mode dump

Disable SDMMC register dump after errors
like command index error in KSO sleep mode
for Jetson-cv board

bug 200138403

Change-Id: Iad087a16de2caa270c1fc30dbd0fe76da99c2792
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/824721
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
8 years agommc: host: tegra: disable kso mode reg dump
Bitan Biswas [Thu, 29 Oct 2015 09:54:37 +0000 (15:24 +0530)]
mmc: host: tegra: disable kso mode reg dump

On platforms with Broadcom Wifi over SDIO
support register dump in KSO sleep is disabled

bug 200138403

Change-Id: I49bded4df12fd0ce83be5bd791f4a9bd2e98b5b7
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/824720
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
8 years agobindings: mmc: tegra: disable SDIO register dump
Bitan Biswas [Thu, 29 Oct 2015 09:49:54 +0000 (15:19 +0530)]
bindings: mmc: tegra: disable SDIO register dump

Platforms with Broadcom Wifi over SDIO support
may use attribute
nvidia,bcm-sdio-supress-kso-dump to suppress
register dump in KSO sleep mode.

bug 200138403

Change-Id: Ib7258be0023df53cdf0f3910f947b5e56b5e2f82
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/824719
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
8 years agop2360: Add support for max20024-rtc
Vipin Kumar [Tue, 17 Nov 2015 09:58:34 +0000 (15:28 +0530)]
p2360: Add support for max20024-rtc

bug 200138527
bug 1687264

Change-Id: I8dc4c84e1e62aa11d87b1f874add89f37651ec40
Signed-off-by: Vipin Kumar <vipink@nvidia.com>
Reviewed-on: http://git-master/r/833904
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Seshagiri Holi <sholi@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>
8 years agomedia: v4l2-core: Migration from upstream
Bhanu Murthy V [Thu, 1 Oct 2015 21:32:03 +0000 (14:32 -0700)]
media: v4l2-core: Migration from upstream

Adds required upstream files to support
unified VI driver
Add minimal changes in existing files without
breaking the current interface

Bug 1617777

Change-Id: Iaa2b63aed4ac028fd3b3a7920a3781d7186ca03f
Signed-off-by: Bhanu Murthy V <bmurthyv@nvidia.com>
Reviewed-on: http://git-master/r/786823
(cherry picked from commit 230d024056fb256a741ac4da94624f463cad6574)
Reviewed-on: http://git-master/r/832143
GVS: Gerrit_Virtual_Submit
Reviewed-by: David Wang (SW-TEGRA) <davidw@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
8 years agodrivers: Restructure GRHOST_VI
Bhanu Murthy V [Fri, 30 Oct 2015 18:51:53 +0000 (11:51 -0700)]
drivers: Restructure GRHOST_VI

Remove GRHOST_VI. VI code moved from
drivers/video/tegra/host/ to
drivers/media/platform/tegra/vi/

Bug 1617777

Change-Id: I54350ddf178229c9975419a77d2fe0d9836e844f
Signed-off-by: Bhanu Murthy V <bmurthyv@nvidia.com>
Reviewed-on: http://git-master/r/825018
(cherry picked from commit 9bf60d57e2ddbc273e25ce7cb022ebaacedaac3a)
Reviewed-on: http://git-master/r/832137
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agoarch: arm64: configs: Moving VI config
Bhanu Murthy V [Thu, 29 Oct 2015 23:43:53 +0000 (16:43 -0700)]
arch: arm64: configs: Moving VI config

Remove GRHOST_VI as part of defconfig
Add TEGRA_VI for l4t to compile as module

Bug 1617777

Change-Id: Ia48be53d8529ab35a438a8abc16a94e7e38d83db
Signed-off-by: Bhanu Murthy V <bmurthyv@nvidia.com>
Reviewed-on: http://git-master/r/825017
(cherry picked from commit d9aed46d431443740cd82b15fccbface2d8d2dc0)
Reviewed-on: http://git-master/r/832136
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agoiio: proximity: IQS2x3 SAR v.20
Erik Lilliebjerg [Tue, 10 Nov 2015 03:58:12 +0000 (20:58 -0700)]
iio: proximity: IQS2x3 SAR v.20

- Add device tree options for the loop variables that checks for the RDY GPIO
  signal.
- Update the documentation for this.

Bug 200137195

Change-Id: Ie2b482ef7e71d5932ceea40072dd086624f18017
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/831117
(cherry picked from commit 9fb5f2d04cef94818977e7ec2412ac09a118bad5)
Reviewed-on: http://git-master/r/833377
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 agodrivers: usb: gadget: Add release fn for snd_uac2
Gaurav Singh [Thu, 5 Nov 2015 06:21:16 +0000 (11:51 +0530)]
drivers: usb: gadget: Add release fn for snd_uac2

Introducing a blank release fucntion to fix the warning issue
faced while unloading g_audio module.

Bug 200149372

Change-Id: Ia1fdd73ed2b1aa80f9d1bb2aed497ade6ed26608
Signed-off-by: Gaurav Singh <gaursingh@nvidia.com>
Reviewed-on: http://git-master/r/828208
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Rakesh Babu Bodla <rbodla@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
8 years agoarm64: mm: dma-mapping: fix the overflow issue
Krishna Reddy [Fri, 6 Nov 2015 22:21:20 +0000 (14:21 -0800)]
arm64: mm: dma-mapping: fix the overflow issue

Fix the overflow of variable "start" holding the start bit number.
It should be of same type mapping->bits, which is size_t, to avoid
overflow for IOVA range beyond 4GB boundary.

Bug 200150063

Change-Id: Ie2ab3ce12293beadac4a1a21d26ed6d1fef41176
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/834822
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Tested-by: Winnie Hsu <whsu@nvidia.com>
8 years agoplatform: tegra: pmc: silent debug print
Bibek Basu [Sat, 31 Oct 2015 21:03:53 +0000 (02:33 +0530)]
platform: tegra: pmc: silent debug print

pcm prod list not found list is made a
debug print as its not a mandatory error

Bug 200137939

Change-Id: I8b5523e015325ad940ff29b2b7ba1cad69d2d845
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/825874
(cherry picked from commit 5c9397de732d50acaf879ca1a77823a16410ac6e)
Reviewed-on: http://git-master/r/826864
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agogpu: nvgpu: disable ELPG while accessing gr_gpcs_tpcs_sm_sch_macro_sched_r
Thomas Fleury [Mon, 2 Nov 2015 14:26:54 +0000 (15:26 +0100)]
gpu: nvgpu: disable ELPG while accessing gr_gpcs_tpcs_sm_sch_macro_sched_r

bug 200139995

Any GR register access should disable ELPG and clock gating before
access and enable it back after it is done. Disable ELPG while tweaking
perf parameters in gk20a_alloc_obj_ctx.

Also output NV_PBUS_INTR_0 in case of interrupt.

Change-Id: Ic9ddc514207ff91631dbd96c5ab0c70ebae0b6d1
Signed-off-by: Thomas Fleury <tfleury@nvidia.com>
Reviewed-on: http://git-master/r/826272
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agoarm64: tegra210: fix DT for node xusb_padctl
TW Chiu [Sat, 10 Oct 2015 09:56:54 +0000 (17:56 +0800)]
arm64: tegra210: fix DT for node xusb_padctl

DT node xusb_padctl contains info to initialize PLLE and UPHY PLLs.

If pcie is enabled, xusb_padctl needs the following property copied
from pcie node:
nvidia,lane-map

If sata is enabled, xusb_padctl needs the following property copied
from sata node:
nvidia,enable-sata-port

XUSB uses the following property to assign lanes:
nvidia,lane_owner

To initialize PLLE and UPHY PLLs, xusb_padctl needs to know power
rails below:
avdd_pll_uerefe-supply
hvdd_pex_pll_e-supply
dvdd_pex_pll-supply
hvddio_pex-supply
dvddio_pex-supply
hvdd_sata-supply
dvdd_sata_pll-supply
hvddio_sata-supply
dvddio_sata-supply

Bug 1685150

DEPENDS ON: < None >

Change-Id: I5d3d227883d8c3f2148c9ea218f1312a2b54c20a
Signed-off-by: TW Chiu <twchiu@nvidia.com>
Reviewed-on: http://git-master/r/815639
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
GVS: Gerrit_Virtual_Submit