2 years agodvfs: tegra: Validate CLDVFS register address rel-24-sb-r1-2
Alex Frid [Thu, 30 Jun 2016 01:21:46 +0000]
dvfs: tegra: Validate CLDVFS register address

Bug 1783583

Change-Id: I8b0e865db02c00f741dafb473d4bd39c5075f23f
(cherry picked from commit 453a77c5cd9a1316307458203365f9eb5bda62de)
Signed-off-by: Vaibhav Shinde <vashinde@nvidia.com>
Reviewed-on: http://git-master/r/1199574
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
Tested-by: Dhiren Parmar <dparmar@nvidia.com>

2 years agoUPSTREAM: ipv6: add complete rcu protection around np->opt
Eric Dumazet [Mon, 30 Nov 2015 03:37:57 +0000]
UPSTREAM: ipv6: add complete rcu protection around np->opt

[ Upstream commit 45f6fad84cc305103b28d73482b344d7f5b76f39 ]

This patch addresses multiple problems :

UDP/RAW sendmsg() need to get a stable struct ipv6_txoptions
while socket is not locked : Other threads can change np->opt
concurrently. Dmitry posted a syzkaller
(http://github.com/google/syzkaller) program desmonstrating
use-after-free.

Starting with TCP/DCCP lockless listeners, tcp_v6_syn_recv_sock()
and dccp_v6_request_recv_sock() also need to use RCU protection
to dereference np->opt once (before calling ipv6_dup_options())

This patch adds full RCU protection to np->opt

Reported-by: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Bug: 28746669
Change-Id: I81775b2269a8263c4e4760b94b9fdd0d5916b31e
Signed-off-by: Mithun Maragiri <mmaragiri@nvidia.com>
(cherry picked from commit 7b370290db9d0b32e80db546a35295c23e9a3792)
Reviewed-on: http://git-master/r/1201690
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
Tested-by: Dhiren Parmar <dparmar@nvidia.com>

2 years agoALSA: timer: Fix leak in events via snd_timer_user_tinterrupt
Kangjie Lu [Tue, 3 May 2016 20:44:32 +0000]
ALSA: timer: Fix leak in events via snd_timer_user_tinterrupt

The stack object “r1” has a total size of 32 bytes. Its field
“event” and “val” both contain 4 bytes padding. These 8 bytes
padding bytes are sent to user without being initialized.

Change-Id: I70d3702d220e0e192d8d582abc9fb0ac33566daf
Signed-off-by: Kangjie Lu <kjlu@gatech.edu>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Mithun Maragiri <mmaragiri@nvidia.com>
(cherry picked from commit bafe24cb6fbbb07348651dc6811b4f7080c51124)
Signed-off-by: Vaibhav Shinde <vashinde@nvidia.com>
Reviewed-on: http://git-master/r/1200997
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
Tested-by: Dhiren Parmar <dparmar@nvidia.com>

2 years agoALSA: timer: Fix leak in SNDRV_TIMER_IOCTL_PARAMS
Kangjie Lu [Tue, 3 May 2016 20:44:07 +0000]
ALSA: timer: Fix leak in SNDRV_TIMER_IOCTL_PARAMS

The stack object “tread” has a total size of 32 bytes. Its field
“event” and “val” both contain 4 bytes padding. These 8 bytes
padding bytes are sent to user without being initialized.

Change-Id: I2011f354d6ba6de55c8c8f3b5f4f4c7c19483094
Signed-off-by: Kangjie Lu <kjlu@gatech.edu>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Mithun Maragiri <mmaragiri@nvidia.com>
(cherry picked from commit 4daee9b8b14fa519eb30b6fc3460c3f997f5643b)
Signed-off-by: Vaibhav Shinde <vashinde@nvidia.com>
Reviewed-on: http://git-master/r/1200996
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
Tested-by: Dhiren Parmar <dparmar@nvidia.com>

2 years agonet: fix infoleak in rtnetlink
Kangjie Lu [Tue, 3 May 2016 20:46:24 +0000]
net: fix infoleak in rtnetlink

The stack object “map” has a total size of 32 bytes. Its last 4
bytes are padding generated by compiler. These padding bytes are
not initialized and sent out via “nla_put”.

Bug 1787007

Change-Id: I33c4a566efc17fc6a8c6d850bc3e9602d7a996ad
Signed-off-by: Kangjie Lu <kjlu@gatech.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Woojung Min <wmin@nvidia.com>
(cherry picked from commit 5f8e44741f9f216e33736ea4ec65ca9ac03036e6)
Reviewed-on: http://git-master/r/1196545
GVS: Gerrit_Virtual_Submit
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Signed-off-by: Mithun Maragiri <mmaragiri@nvidia.com>
(cherry picked from commit 87a091d594056f577fe79e410492fc2c853995b7)
Signed-off-by: Vaibhav Shinde <vashinde@nvidia.com>
Reviewed-on: http://git-master/r/1200995
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
Tested-by: Dhiren Parmar <dparmar@nvidia.com>

2 years agoarm64: configs: restrict access to perf events
Woojung Min [Tue, 9 Aug 2016 07:16:30 +0000]
arm64: configs: restrict access to perf events

Enable CONFIG_SECURITY_PERF_EVENTS_RESTRICT to restrict access to perf events
It is for android security patch CVE-2016-3843/ANDROID-29119870.

Bug 1787007

Change-Id: Icc6731a05752456d8d611ac723baff22df625d23
Signed-off-by: Woojung Min <wmin@nvidia.com>
Signed-off-by: Mithun Maragiri <mmaragiri@nvidia.com>
(cherry picked from commit 55ad767c3fc99fd0fa53afaad3bca37c60fdd293)
Signed-off-by: Vaibhav Shinde <vashinde@nvidia.com>
Reviewed-on: http://git-master/r/1200994
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
Tested-by: Dhiren Parmar <dparmar@nvidia.com>

2 years agoFROMLIST: security,perf: Allow further restriction of perf_event_open
Jeff Vander Stoep [Sun, 29 May 2016 21:22:32 +0000]
FROMLIST: security,perf: Allow further restriction of perf_event_open

When kernel.perf_event_open is set to 3 (or greater), disallow all
access to performance events by users without CAP_SYS_ADMIN.
Add a Kconfig symbol CONFIG_SECURITY_PERF_EVENTS_RESTRICT that
makes this value the default.

This is based on a similar feature in grsecurity
(CONFIG_GRKERNSEC_PERF_HARDEN).  This version doesn't include making
the variable read-only.  It also allows enabling further restriction
at run-time regardless of whether the default is changed.

https://lkml.org/lkml/2016/1/11/587

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>

Bug: 29054680
Bug 1787007

Change-Id: Iff5bff4fc1042e85866df9faa01bce8d04335ab8
(cherry picked from commit 012b0adcf7299f6509d4984cf46ee11e6eaed4e4)
Signed-off-by: Woojung Min <wmin@nvidia.com>
Signed-off-by: Mithun Maragiri <mmaragiri@nvidia.com>
(cherry picked from commit 95e053179b5adac26f16da316a72f26461afa08d)
Signed-off-by: Vaibhav Shinde <vashinde@nvidia.com>
Reviewed-on: http://git-master/r/1200993
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
Tested-by: Dhiren Parmar <dparmar@nvidia.com>

2 years agoBACKPORT: perf tools: Document the perf sysctls
Ben Hutchings [Tue, 19 Jan 2016 21:35:15 +0000]
BACKPORT: perf tools: Document the perf sysctls

perf_event_paranoid was only documented in source code and a perf error
message.  Copy the documentation from the error message to
Documentation/sysctl/kernel.txt.

perf_cpu_time_max_percent was already documented but missing from the
list at the top, so add it there.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: linux-doc@vger.kernel.org
Link: http://lkml.kernel.org/r/20160119213515.GG2637@decadent.org.uk
[ Remove reference to external Documentation file, provide info inline, as before ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

Bug: 29054680
Bug 1787007

Change-Id: I13e73cfb2ad761c94762d0c8196df7725abdf5c5
(cherry picked from commit 925d82a466131093dee9a301372f4c29a28d948b)
Signed-off-by: Woojung Min <wmin@nvidia.com>
Signed-off-by: Mithun Maragiri <mmaragiri@nvidia.com>
(cherry picked from commit 2531330dcd419eb9714b539a202ca3b1bddc83d6)
Signed-off-by: Vaibhav Shinde <vashinde@nvidia.com>
Reviewed-on: http://git-master/r/1200992
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
Tested-by: Dhiren Parmar <dparmar@nvidia.com>

2 years agoALSA: compress: fix an integer overflow check
Dan Carpenter [Wed, 16 Jul 2014 06:37:04 +0000]
ALSA: compress: fix an integer overflow check

I previously added an integer overflow check here but looking at it now,
it's still buggy.

The bug happens in snd_compr_allocate_buffer().  We multiply
".fragments" and ".fragment_size" and that doesn't overflow but then we
save it in an unsigned int so it truncates the high bits away and we
allocate a smaller than expected size.

Change-Id: I8123ec91a1befa6628151c8ab8ac0b1a6a9235fc
Fixes: b35cc8225845 ('ALSA: compress_core: integer overflow in snd_compr_allocate_buffer()')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
(cherry picked from commit 4ac28c0a5d6fe4d10983fc3d34e8f7a2273e98dc)
Signed-off-by: Vaibhav Shinde <vashinde@nvidia.com>
Reviewed-on: http://git-master/r/1200991
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
Tested-by: Dhiren Parmar <dparmar@nvidia.com>

2 years agonet: validate the range we feed to iov_iter_init() in sys_sendto/sys_recvfrom
Al Viro [Tue, 2 Aug 2016 09:21:30 +0000]
net: validate the range we feed to iov_iter_init() in sys_sendto/sys_recvfrom

Change-Id: Iec24dc91a140510c1666801f6204dced8d2318f9
Cc: stable@vger.kernel.org # v3.19
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit c759aa8f6b81b6c525cb93fbe3b38ac486f32a81)
Signed-off-by: Vaibhav Shinde <vashinde@nvidia.com>
Reviewed-on: http://git-master/r/1200988
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
Tested-by: Dhiren Parmar <dparmar@nvidia.com>

2 years agonvavp: Add mutex lock for all avp submit
Soumen Kumar Dey [Tue, 14 Jun 2016 09:01:57 +0000]
nvavp: Add mutex lock for all avp submit

Add mutex lock for nvavp_submit to avoid race condition.

bug 1775299

Change-Id: I11a66a58a1f048d6a0ee5aa949f852bfef56dc07
Signed-off-by: Soumen Kumar Dey <sdey@nvidia.com>
(cherry picked from commit fe20d48bb7fc453166806a2efe4e3905d12414fd)
Reviewed-on: http://git-master/r/1164121
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
Tested-by: Dhiren Parmar <dparmar@nvidia.com>

2 years agoUSB: fix invalid memory access in hub_activate()
Alan Stern [Wed, 16 Dec 2015 18:32:38 +0000]
USB: fix invalid memory access in hub_activate()

Commit 8520f38099cc ("USB: change hub initialization sleeps to
delayed_work") changed the hub_activate() routine to make part of it
run in a workqueue.  However, the commit failed to take a reference to
the usb_hub structure or to lock the hub interface while doing so.  As
a result, if a hub is plugged in and quickly unplugged before the work
routine can run, the routine will try to access memory that has been
deallocated.  Or, if the hub is unplugged while the routine is
running, the memory may be deallocated while it is in active use.

This patch fixes the problem by taking a reference to the usb_hub at
the start of hub_activate() and releasing it at the end (when the work
is finished), and by locking the hub interface while the work routine
is running.  It also adds a check at the start of the routine to see
if the hub has already been disconnected, in which nothing should be
done.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Reported-by: Alexandru Cornea <alexandru.cornea@intel.com>
Tested-by: Alexandru Cornea <alexandru.cornea@intel.com>
Fixes: 8520f38099cc ("USB: change hub initialization sleeps to delayed_work")
CC: <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit e50293ef9775c5f1cf3fcc093037dd6a8c5684ea)

CVE-2015-8816
Bug 1774591

Change-Id: Ifbbf8bfd456120b1e1720f4371c1ba15d1b948fa
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
(cherry picked from commit 32c1beb5a9adb0ff5072619a0a7fe4ff973fd7ae)
Signed-off-by: Vaibhav Shinde <vashinde@nvidia.com>
Reviewed-on: http://git-master/r/1190813
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

2 years agoUSB: usbfs: fix potential infoleak in devio
Kangjie Lu [Tue, 3 May 2016 20:32:16 +0000]
USB: usbfs: fix potential infoleak in devio

The stack object “ci” has a total size of 8 bytes. Its last 3 bytes
are padding bytes which are not initialized and leaked to userland
via “copy_to_user”.

CVE-2016-4482
Bug 1787007

Change-Id: I1488436e8322fd645f76c942aeae1daada6be995
(cherry picked from commit 681fef8380eb818c0b845fca5d2ab1dcbab114ee)

Signed-off-by: Kangjie Lu <kjlu@gatech.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Signed-off-by: Dhiren Parmar <dparmar@nvidia.com>
Change-Id: I1488436e8322fd645f76c942aeae1daada6be995
Reviewed-on: http://git-master/r/1190551

2 years agodtsi: sensors: Remove restrictions to run sensors at full speed
Robert Collins [Mon, 18 Jul 2016 22:48:22 +0000]
dtsi: sensors: Remove restrictions to run sensors at full speed

- Remove frequency restrictions on gyro, accel, compass, barometer.
- Remove barometer_disabled, if currently disabled.

Bug 200191681
Bug 200201316

Change-Id: If75f10034a4c14ebb4010ed4ae3a511e0bd2ade6
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Reviewed-on: http://git-master/r/1183090
GVS: Gerrit_Virtual_Submit
Reviewed-by: Akhilesh Khumbum <akhumbum@nvidia.com>
Reviewed-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Tested-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>

2 years agoiio: imu: nvi v.336 Add DMP AUX support
Erik Lilliebjerg [Mon, 18 Jul 2016 04:48:59 +0000]
iio: imu: nvi v.336 Add DMP AUX support

- Add DMP support for devices on the auxiliary ports behind the MPU/ICM.  Due
  to the differences between the MPU and ICM DMPs, the auxiliary port API was
  extended that allowed the DMP dependencies to be removed from the auxiliary
  device's external drivers.
- Updated the pressure calculations for the BMP280 driver to the latest BMP280
  specification.

Bug 200191681
Bug 200201316
Bug 200195822

Change-Id: Id4338b11094f8ef00df214c14649b7bc951a6891
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Reviewed-on: http://git-master/r/1182908
GVS: Gerrit_Virtual_Submit
Reviewed-by: Akhilesh Khumbum <akhumbum@nvidia.com>

2 years agovideo: tegra: host: add upper bound for num_syncpt_incrs
Deepak Nibade [Thu, 21 Jul 2016 09:22:31 +0000]
video: tegra: host: add upper bound for num_syncpt_incrs

Check if num_syncpt_incrs are not more than number of
syncpoints available

Bug 1781393

Change-Id: Iee5070c87c8db0d6c30eb55ca03ec27c7de379ee
Signed-off-by: Gagan Grover <ggrover@nvidia.com>
Reviewed-on: http://git-master/r/1184846
(cherry picked from commit d85d48ec37173633d8efbc394b2508c710a0cda1)
Reviewed-on: http://git-master/r/1190704
GVS: Gerrit_Virtual_Submit
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>

2 years agovideo: tegra: host: fix integer overflow
Deepak Nibade [Mon, 27 Jun 2016 08:43:26 +0000]
video: tegra: host: fix integer overflow

Below addition on 32 bit architecture machines could
cause integer overflow since we will assign overflowed
value to "num_unpins"
s64 num_unpins = num_cmdbufs + num_relocs

Fix this and other calculations by explicitly typecasting
variables to u64 first

Bug 1781393

Change-Id: Ib7d9c0be4ac61dc404512b4bb0331aa20a6978bc
Signed-off-by: Gagan Grover <ggrover@nvidia.com>
Reviewed-on: http://git-master/r/1171748
(cherry picked from commit 8f00b96c137b9c4cb43a8dbe2e153fae49524113)
Reviewed-on: http://git-master/r/1172522
Reviewed-on: http://git-master/r/1182025
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
Tested-by: Dhiren Parmar <dparmar@nvidia.com>

2 years agovideo: tegra: host: fix possible overflow with num_syncpt_incrs
Deepak Nibade [Mon, 27 Jun 2016 08:33:15 +0000]
video: tegra: host: fix possible overflow with num_syncpt_incrs

We allocate below without checking if num_syncpt_incrs
is valid or not
struct nvhost_ctrl_sync_fence_info pts[num_syncpt_incrs];

If UMD passes a negative value in num_syncpt_incrs, then
it is possible to corrupt the stack

Hence, first check if num_syncpt_incrs is valid (i.e.
not negative)
And then allocate the array dynamically using kzalloc
instead of allocating it on stack

Bug 1781393

Change-Id: I5389fd271149b457f63831a41c104c9814299ddf
Signed-off-by: Gagan Grover <ggrover@nvidia.com>
Reviewed-on: http://git-master/r/1171747
(cherry picked from commit 07fb347b4060a888b19df3524f36fcf7974a79d1)
Reviewed-on: http://git-master/r/1172521
Reviewed-on: http://git-master/r/1181862
GVS: Gerrit_Virtual_Submit
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
Tested-by: Dhiren Parmar <dparmar@nvidia.com>

2 years agoAIO: properly check iovec sizes
Greg Kroah-Hartman [Sat, 20 Feb 2016 01:36:21 +0000]
AIO: properly check iovec sizes

In Linus's tree, the iovec code has been reworked massively, but in
older kernels the AIO layer should be checking this before passing the
request on to other layers.

Many thanks to Ben Hawkes of Google Project Zero for pointing out the
issue.

Bug 1774591

Reported-by: Ben Hawkes <hawkes@google.com>
Acked-by: Benjamin LaHaise <bcrl@kvack.org>
Tested-by: Willy Tarreau <w@1wt.eu>
[backported to 3.10 - willy]
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit ff19ac8fb71e8a2bf07d61b959062998139c1104)
Signed-off-by: Gagan Grover <ggrover@nvidia.com>
Change-Id: Ia91c9dcbb605fefa8cd186bc0c896f1cd8aec4eb
Reviewed-on: http://git-master/r/1175560
Reviewed-on: http://git-master/r/1180073
GVS: Gerrit_Virtual_Submit
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>

2 years agotty: Fix unsafe ldisc reference via ioctl(TIOCGETD)
Peter Hurley [Mon, 11 Jan 2016 06:40:55 +0000]
tty: Fix unsafe ldisc reference via ioctl(TIOCGETD)

ioctl(TIOCGETD) retrieves the line discipline id directly from the
ldisc because the line discipline id (c_line) in termios is untrustworthy;
userspace may have set termios via ioctl(TCSETS*) without actually
changing the line discipline via ioctl(TIOCSETD).

However, directly accessing the current ldisc via tty->ldisc is
unsafe; the ldisc ptr dereferenced may be stale if the line discipline
is changing via ioctl(TIOCSETD) or hangup.

Wait for the line discipline reference (just like read() or write())
to retrieve the "current" line discipline id.

CVE-2016-0723
Bug 1774591

Cc: <stable@vger.kernel.org>
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 5c17c861a357e9458001f021a7afa7aab9937439)
Change-Id: Ie8de32a16a05fe7a5b444301ead0d5c32a805a13
Signed-off-by: Gagan Grover <ggrover@nvidia.com>
Reviewed-on: http://git-master/r/1175591
Reviewed-on: http://git-master/r/1180086
GVS: Gerrit_Virtual_Submit
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>

2 years agoiio: imu: nvi v.334 ICM SMD
Erik Lilliebjerg [Thu, 7 Jul 2016 03:53:55 +0000]
iio: imu: nvi v.334 ICM SMD

- Fix ICM DMP FW v.2 significant motion default parameters.
- Add realtime sensor configuration for significant motion.
- Fix ICM DMP FW v.2 maximum period by limiting accelerometer slowest clock
  setting to gyros since the FW v.2 WAR requires the same speed.

Bug 1768847

Change-Id: I8e3d2574019da6e2e9a0e0e574cc33cab363d490
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/1177151
(cherry picked from commit 24b210f89d2856b8ecedb5443e604788e3964680)
Reviewed-on: http://git-master/r/1178465
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Tested-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Akhilesh Khumbum <akhumbum@nvidia.com>
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>

2 years agoiio: imu: nvi v.333 ICM DMP FW v.2
Erik Lilliebjerg [Wed, 29 Jun 2016 01:57:07 +0000]
iio: imu: nvi v.333 ICM DMP FW v.2

- Implement Invensense ICM DMP FW v.2 that fixes sensor data timing gaps.

Bug 1768847

Change-Id: I0bde444d2cdfa0721541fad40589135a37a74acd
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/1172879
(cherry picked from commit c95d320e9a4b85d13261d2572a39608e1dbb5f43)
(cherry picked from commit c4c0c358b2eeca85496bbbfb931b9ad1d607f31e)
Reviewed-on: http://git-master/r/1176322
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Tested-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Akhilesh Khumbum <akhumbum@nvidia.com>
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>

2 years agoiio: imu: nvi v.330 MPL520 support
Erik Lilliebjerg [Tue, 7 Jun 2016 02:19:47 +0000]
iio: imu: nvi v.330 MPL520 support

- Add sensor dependency for wake interrupt.
- Sensor mounting matrix is now globally based.

Bug 1768847

Change-Id: I24c0db40ed7ef4ff75da5b629276ee950673eb1f
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/1159846
(cherry picked from commit 3a3706e3c23a2cfe50cb82581bb71223b7085a10)
Reviewed-on: http://git-master/r/1176320
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Tested-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Akhilesh Khumbum <akhumbum@nvidia.com>
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>

2 years agoiio: imu: nvi v.329 Fix ICM DMP period
Erik Lilliebjerg [Sun, 29 May 2016 12:16:55 +0000]
iio: imu: nvi v.329 Fix ICM DMP period

- Fix batch period calls that were getting dropped if the ICM DMP was enabled.

Bug 200199302

Change-Id: Iec7f9e4a8488890409d916bfecdaa98d12ac19f8
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/1155678
(cherry picked from commit f137e7d5218a2f2bd11479e3308eb701cdbe6a5b)
Reviewed-on: http://git-master/r/1176319
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Tested-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Akhilesh Khumbum <akhumbum@nvidia.com>
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>

2 years agocfboost: Boost on MSC_ACTIVITY and any ABS
Brian Harris [Thu, 1 May 2014 17:37:51 +0000]
cfboost: Boost on MSC_ACTIVITY and any ABS

Modifies cfboost to trigger on EV_MSC=MSC_ACTIVITY and any EV_ABS. Also added
a timeout between boosts equal to half the boost duration since it will be
getting a lot more events now. This makes cfboost more resilient to touch
driver changes.

Bug 1509022

Change-Id: I734cdce22b6a1f65466924a92768c2afd4992960
Signed-off-by: brianh@nvidia.com
Reviewed-on: http://git-master/r/404285
(cherry picked from commit 66f5b8b0b842c6792da6f70196a09f145182e972)
Reviewed-on: http://git-master/r/747674
(cherry picked from commit 6a79891def064c7c35f20edcee55f60ad33c3fb7)
Reviewed-on: http://git-master/r/1169136
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jordan Nien <jnien@nvidia.com>
Tested-by: Jordan Nien <jnien@nvidia.com>
Reviewed-by: David Pu <dpu@nvidia.com>
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>

2 years agoiio: imu: nvi v.328 fix wake IRQ
Erik Lilliebjerg [Tue, 24 May 2016 00:28:14 +0000]
iio: imu: nvi v.328 fix wake IRQ

- Some sensors require other sensors to be enabled (significant motion requires
  accelerometer) which caused the setting of the ICM DMP wake IRQ to be
  incorrect.  Fixed by basing the ICM DMP wake IRQ setting on only the intended
  enabled sensors (enabled from HAL as opposed to enabled due to dependency).

Bug 200199302

Change-Id: Ia8fe2f475c1cac1efc3606b4250633655facc874
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/1152136
(cherry picked from commit 97c50202f49092f7c762b96e7b417e27385a6c04)
Reviewed-on: http://git-master/r/1159656
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
Tested-by: Dhiren Parmar <dparmar@nvidia.com>

2 years agoplatform: tegra: enable motion_int wake
Akhilesh Reddy Khumbum [Fri, 20 May 2016 20:56:36 +0000]
platform: tegra: enable motion_int wake

- Enable wake63 for motion_int: The GPIO_PX2 to which the MPU hw irq
  is routed is currently not configured as a wake up source and because
  of this when the system goes into suspend, the MPU irq is unable to
  wake the system up.

Bug 200199302

Change-Id: If27acc8d077b691aa671ce6c1a59e9adcf0f3304
Signed-off-by: Akhilesh Reddy Khumbum <akhumbum@nvidia.com>
Reviewed-on: http://git-master/r/1151301
(cherry picked from commit 4bef08e949bce50908cacac793df159f141bb112)
Reviewed-on: http://git-master/r/1159655
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
Tested-by: Dhiren Parmar <dparmar@nvidia.com>

2 years agodts: sensors: Fix sensor orientation matrix
Robert Collins [Mon, 23 May 2016 14:33:26 +0000]
dts: sensors: Fix sensor orientation matrix

Bug 200189040

Change-Id: Ia22c592c95c85dc70cdff93c6805a47fac87227b
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Reviewed-on: http://git-master/r/1151869
GVS: Gerrit_Virtual_Submit
Reviewed-on: http://git-master/r/1159654
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
Tested-by: Dhiren Parmar <dparmar@nvidia.com>

2 years agoiio: imu: nvi v.327 ICM DMP matrix
Erik Lilliebjerg [Mon, 23 May 2016 14:13:46 +0000]
iio: imu: nvi v.327 ICM DMP matrix

- Change how the NVI driver handles sensor mounting matrix from a localized
  method to a global method.

Bug 200189040

Change-Id: I8842389e8a954945c0ea4219edef95dd730a3c19
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/1151863
(cherry picked from commit 0622db2cf9e89f03e72b8fb9ee92e19b29a3e4ae)
Reviewed-on: http://git-master/r/1159653
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
Tested-by: Dhiren Parmar <dparmar@nvidia.com>

2 years agoiio: imu: nvi v.326 DMP configuration
Erik Lilliebjerg [Mon, 23 May 2016 14:05:29 +0000]
iio: imu: nvi v.326 DMP configuration

- Add device tree ICM DMP sensor configuration allowing which sensors enable
  the ICM DMP.
- Add this configuration ability at runtime.

Bug 200189040

Change-Id: Ifb3c4e6cd2535b4271d1bc1cb931876b62f5486b
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/1151862
(cherry picked from commit 273dfcf8424192cfcced79a6e14b0b7a3230b0fe)
Reviewed-on: http://git-master/r/1159652
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
Tested-by: Dhiren Parmar <dparmar@nvidia.com>

2 years agoiio: imu: nvi v.325 ICM DMP support
Erik Lilliebjerg [Mon, 23 May 2016 08:27:46 +0000]
iio: imu: nvi v.325 ICM DMP support

The following done to support the Invensense ICM DMP:
- Add ability for AUX client to select the AUX port.
- Add efficient AUX device enable/disable.
- Add sensor accuracy.
- Add DMP initialization after AUX device registers.

Bug 200189040

Change-Id: Ibfb93703f9e10a69bb0164bde3b0d1c16f0fc0ec
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/1151696
(cherry picked from commit c3f4471e90fde5409cead50dfcbaf0a4700c69f5)
Reviewed-on: http://git-master/r/1159651
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
Tested-by: Dhiren Parmar <dparmar@nvidia.com>

2 years agoiio: imu: nvi v.324 Fix wakeup IRQ
Erik Lilliebjerg [Thu, 19 May 2016 19:44:43 +0000]
iio: imu: nvi v.324 Fix wakeup IRQ

- The DMP IRQ mode is selected by which sensors are enabled which is tracked
  by a bit mask.  The bug was that this bit mask was not clearing the bit
  pertaining to a disabled sensor and hence the DMP was programming the
  incorrect IRQ mode when suspending.

Bug 200199302

Change-Id: Id4fa3f1bc96041a3c5eb81689af0a5be04075697
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/1150633
(cherry picked from commit 73a907d169612ce79ca6363c7bbd7661e6a8c335)
Reviewed-on: http://git-master/r/1159650
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
Tested-by: Dhiren Parmar <dparmar@nvidia.com>

2 years agoiio: meter: Coverity: Use secure snprintf to prevent buffer overrun.
Robert Collins [Thu, 21 Apr 2016 21:31:25 +0000]
iio: meter: Coverity: Use secure snprintf to prevent buffer overrun.

Function sprintf has no safety checks for buffer length.  As a result,
it may overrun a buffer and create a potential security hazard or
crash the system.  Using snprintf will limit the number of characters
written and reduce or eliminate the risk of the security or crash
hazard.

For sysfs nodes, PAGE_SIZE buffers are allocated.  We can use PAGE_SIZE
to limit the size of snprintf output.
https://www.kernel.org/doc/Documentation/filesystems/sysfs.txt

Coverity ID: 27096
Coverity ID: 27097
Bug 200192580

Change-Id: Ie05749d5a402cec13e2a285f6b27728678686d27
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Reviewed-on: http://git-master/r/1130644
(cherry picked from commit 702369be010431715dc8a578e74fec2d116534fa)
Reviewed-on: http://git-master/r/1141583
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
Tested-by: Dhiren Parmar <dparmar@nvidia.com>

2 years agoiio: meter: Coverity: Use secure snprintf to prevent buffer overrun.
Robert Collins [Thu, 21 Apr 2016 21:25:33 +0000]
iio: meter: Coverity: Use secure snprintf to prevent buffer overrun.

Function sprintf has no safety checks for buffer length.  As a result,
it may overrun a buffer and create a potential security hazard or
crash the system.  Using snprintf will limit the number of characters
written and reduce or eliminate the risk of the security or crash
hazard.

For sysfs nodes, PAGE_SIZE buffers are allocated.  We can use PAGE_SIZE
to limit the size of snprintf output.
https://www.kernel.org/doc/Documentation/filesystems/sysfs.txt

Coverity ID: 27094
Coverity ID: 27095
Bug 200192580

Change-Id: I9d7e96e20439409b8a9d6a7c47bcf8e00e7f2076
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Reviewed-on: http://git-master/r/1130643
(cherry picked from commit f6666ddfc0a18cd049b14f536dbd4ff6da07fc59)
Reviewed-on: http://git-master/r/1141582
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
Tested-by: Dhiren Parmar <dparmar@nvidia.com>

2 years agoiio: meter: Coverity: Use secure snprintf to prevent buffer overrun.
Robert Collins [Thu, 21 Apr 2016 21:21:31 +0000]
iio: meter: Coverity: Use secure snprintf to prevent buffer overrun.

Function sprintf has no safety checks for buffer length.  As a result,
it may overrun a buffer and create a potential security hazard or
crash the system.  Using snprintf will limit the number of characters
written and reduce or eliminate the risk of the security or crash
hazard.

For sysfs nodes, PAGE_SIZE buffers are allocated.  We can use PAGE_SIZE
to limit the size of snprintf output.
https://www.kernel.org/doc/Documentation/filesystems/sysfs.txt

Coverity ID: 27093
Bug 200192580

Change-Id: I20996d11961f3cba261860f718d8c822ae5059aa
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Reviewed-on: http://git-master/r/1130642
(cherry picked from commit 9d77f97ffbddd011b5d346f8e8fd4dbfa4c31950)
Reviewed-on: http://git-master/r/1141581
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
Tested-by: Dhiren Parmar <dparmar@nvidia.com>

2 years agoiio: mag: Coverity: Correct data case to prevent endian confusion.
Robert Collins [Wed, 20 Apr 2016 19:23:23 +0000]
iio: mag: Coverity: Correct data case to prevent endian confusion.

Coverity(31776): Reliance on integer endianness (INCOMPATIBLE_CAST)
Pointer "&st->asa_q30[2]" points to an object whose effective type
is "unsigned long long" (64 bits, unsigned) but is dereferenced as
a narrower "unsigned int" (32 bits, unsigned).  This may lead to
unexpected results depending on machine endianness.

Coverity ID: 31776
Bug 200192580

Change-Id: I15b563be83e38b45ce97614cfc3ba39e54975055
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Reviewed-on: http://git-master/r/1130646
(cherry picked from commit 12359ce8cb10d456e599a6795738b7a3106bc034)
Reviewed-on: http://git-master/r/1141580
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
Tested-by: Dhiren Parmar <dparmar@nvidia.com>

2 years agoiio: mag: Coverity: Use secure snprintf to prevent buffer overrun.
Robert Collins [Wed, 20 Apr 2016 17:11:34 +0000]
iio: mag: Coverity: Use secure snprintf to prevent buffer overrun.

Function sprintf has no safety checks for buffer length.  As a result,
it may overrun a buffer and create a potential security hazard or
crash the system.  Using snprintf will limit the number of characters
written and reduce or eliminate the risk of the security or crash
hazard.

For sysfs nodes, PAGE_SIZE buffers are allocated.  We can use PAGE_SIZE
to limit the size of snprintf output.
https://www.kernel.org/doc/Documentation/filesystems/sysfs.txt

Coverity ID: 26797
Coverity ID: 26798
Coverity ID: 26799
Bug 200192580

Change-Id: I9452fe9d49d28b0127d331af0bee1731f4bff3d4
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Reviewed-on: http://git-master/r/1130645
(cherry picked from commit e8f792d026833f2c8eaf2ad06a606c276b6f018b)
Reviewed-on: http://git-master/r/1141579
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
Tested-by: Dhiren Parmar <dparmar@nvidia.com>

2 years agoiio: imu: NVI v.323 Fix ICM significant motion
Erik Lilliebjerg [Sun, 10 Apr 2016 20:16:38 +0000]
iio: imu: NVI v.323 Fix ICM significant motion

- Fix the ICM significant motion sensor.  There are two parts to the fix:
  - Fix SM retrigger.  Previously the sensor only triggered once and never
    retriggered.  The problem was that the enable bit is self-clearing when
    triggered and the cache saw it as always set and wouldn't execute the
    write to re-set it.
  - Even with the retrigger fixed the SM sensor triggered after a period of
    time regardless of motion.  To resolve the issue, all of the ICM DMP
    sensors are initialized.
- Add both versions of ICM DMP FW selectable by a build define for debug
  purposes.  The DMP FW version is added to the driver version debug dump.

Bug 200189044

Change-Id: I080a394e7ec4e0743824fee9f69960a5b1387d9f
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/1123793
(cherry picked from commit 62e30d27f8b65e16939b4128f6564a991615d4cf)
Reviewed-on: http://git-master/r/1141577
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
Tested-by: Dhiren Parmar <dparmar@nvidia.com>

2 years agodtsi: sensors: Limit gyroscope min frequency to 10hz
Robert Collins [Wed, 6 Apr 2016 16:36:45 +0000]
dtsi: sensors: Limit gyroscope min frequency to 10hz

Bug 1722103

Change-Id: I75bb22d45582180246e2ace7922c283299ea1c81
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Reviewed-on: http://git-master/r/1121205
(cherry picked from commit f866e77c54f509918c6d72c1f8d5d31ab73a917d)
Reviewed-on: http://git-master/r/1141576
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
Tested-by: Dhiren Parmar <dparmar@nvidia.com>

2 years agoiio: imu: NVI v.322 Fix sensor DT configuration
Erik Lilliebjerg [Wed, 6 Apr 2016 03:10:50 +0000]
iio: imu: NVI v.322 Fix sensor DT configuration

- Fix device tree configuration for each sensor.
  Although DT configuration was applied to each sensor, the DT values were
  overwritten later by initialization code.  Moved DT configuration to after
  the initialization code.

Change-Id: Ibab84a93e644c829f3024e0ea9a081c92ae85ddc
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/1120862
(cherry picked from commit 4a747645ff37546c4b55006adf26682246ae2412)
Reviewed-on: http://git-master/r/1141575
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
Tested-by: Dhiren Parmar <dparmar@nvidia.com>

2 years agoiio: imu: nvi: v.321 Spawn probe function into separate thread.
Akhilesh Reddy Khumbum [Tue, 5 Apr 2016 02:22:55 +0000]
iio: imu: nvi: v.321 Spawn probe function into separate thread.

Move the dmp_fw_load function to bottom half by spawing a kworker thread
that calls it.

Bug 1722103

Change-Id: If746c5ef338709cc6a9ebfd4cee262f40bf4c2dd
Signed-off-by: Akhilesh Reddy Khumbum <akhumbum@nvidia.com>
Reviewed-on: http://git-master/r/1120138
(cherry picked from commit a89c703da76d978433ce0b54f71d4221abef8d74)
Reviewed-on: http://git-master/r/1141574
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
Tested-by: Dhiren Parmar <dparmar@nvidia.com>

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

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

Coverity ID: 20453

Bug 1416640
Bug 1722103
Bug 100130656
Bug 200162691

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

2 years agoiio: common: nvs: NVS v212 Fix coverity
Erik Lilliebjerg [Fri, 19 Feb 2016 21:55:58 +0000]
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
(cherry picked from commit 6b1c3a86cc6a9b4b266b9c675ae0a4f8e418e62f)
Reviewed-on: http://git-master/r/1115009
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
Tested-by: Dhiren Parmar <dparmar@nvidia.com>

2 years agotegra:nvavp: Fix buffer overflow issue
Praveen Kumar Reddy M.V [Mon, 13 Jun 2016 11:38:32 +0000]
tegra:nvavp: Fix buffer overflow issue

Fixed possible buffer overflow issue in func
nvavp_pushbuffer_update().

Bug 1774401

Change-Id: Id0dec1cbf91d492335d0809c3c0bf146f6cb9d3d
Signed-off-by: Praveen Kumar Reddy M.V. <pkreddy@nvidia.com>
(cherry picked from commit ee1e48fa39e58bff973987b3c12f751a530c567c)
Reviewed-on: http://git-master/r/1164208
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

2 years agoPlatform: Tegra: Update OV5693 driver
Frank Chen [Fri, 3 Jun 2016 22:20:25 +0000]
Platform: Tegra: Update OV5693 driver

- Update OV5693 driver source code to not
  refernece DT entrieis from camera.pcl node.

  Camera.pcl will be removed from this kernel to avoid
  security vulnerability issues.

- Add dpd control to on/off function.

Bug 1768563

Change-Id: Iddad65ff1b43c009c0481d650121e85406324bfa
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/1158895
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

2 years agoARM64: DT: update DT for Shield Tablet
Frank Chen [Fri, 3 Jun 2016 20:50:07 +0000]
ARM64: DT: update DT for Shield Tablet

- remove all camera.pcl references
- register camera and focuser using i2c bus
- add module definition to tegra-camera-platform
  node

Bug 1768563

Change-Id: Iaff32f81160ee3b15a308f93a6179425a42ff69f
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/1158894
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

2 years agodrivers: video: camera: Fix build issue
Bhanu Murthy V [Tue, 5 Apr 2016 18:31:28 +0000]
drivers: video: camera: Fix build issue

Bug 1736471

Change-Id: Icd3f1934d535b14052ad40eda76d2675cdad4b8d
Signed-off-by: Bhanu Murthy V <bmurthyv@nvidia.com>
(cherry picked from commit a0cc4a775b29c8b0c94c2e4ad69cf69bfaefd372)
Reviewed-on: http://git-master/r/1120539
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/1141866
(cherry picked from commit c043b91fc26087ab835af04bf45f182942126ecb)
Reviewed-on: http://git-master/r/1157440
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Frank Chen <frankc@nvidia.com>
Tested-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

2 years agomedia: tegra: camera: Re-arch MFI (2/2)
Sudhir Vyas [Fri, 16 Oct 2015 12:58:18 +0000]
media: tegra: camera: Re-arch MFI (2/2)

* Disable MFI callback registration from camera PCL.
* Enable focuser drivers to use MFI APIs exposed by
  tegra_camera_platform driver.

Bug 1683491

Change-Id: I1b500b3d56615555b4475eb83e9059e55ae51d5e
Signed-off-by: Sudhir Vyas <svyas@nvidia.com>
Reviewed-on: http://git-master/r/818881
(cherry picked from commit d920978e696a279e4fb8443bde6f12e279b46def)
Reviewed-on: http://git-master/r/1118351
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/1141865
(cherry picked from commit 37d81277eb2b5ee59f129d26c58a3779d0c1420f)
Reviewed-on: http://git-master/r/1157439
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Frank Chen <frankc@nvidia.com>
Tested-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

2 years agovideo: tegra: camera: Re-arch MFI (1/2)
Sudhir Vyas [Fri, 16 Oct 2015 12:48:35 +0000]
video: tegra: camera: Re-arch MFI (1/2)

Add MFI support in tegra_camera_platform driver,
as part of MFI re-arch.

Bug 1683491

Change-Id: Ic40498ca400c26b117d21de30ffa6e7f2ede9523
Signed-off-by: Sudhir Vyas <svyas@nvidia.com>
Reviewed-on: http://git-master/r/818880
(cherry picked from commit cf4276904e81892666fae9847734d43e248122b5)
Reviewed-on: http://git-master/r/1118350
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/1141864
(cherry picked from commit db53e173a6d590c6e965b403156c157eea22d8b4)
Reviewed-on: http://git-master/r/1157438
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Frank Chen <frankc@nvidia.com>
Tested-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

2 years agonet: wireless: bcmdhd_88: check privilege on priv cmd
Jerry Lee [Wed, 23 Mar 2016 21:33:50 +0000]
net: wireless: bcmdhd_88: check privilege on priv cmd

ANDROID-26425765 fix from
  https://android.googlesource.com/kernel/tegra.git

Original commit message:
> (cherry pick from commit 7b4bd6e41ed514dddf9e403472b1fb6f808d3f4b)
>
> check net admin capability for ioctl calls
>
> Signed-off-by: Jerry Lee <jerrylee@broadcom.com>
> Bug: 26425765
> Bug: 27997075
> Change-Id: Iae1b53aa62fdc24530bb1b85cb69740c87d182e9

Bug 1761317

(cherry picked from commit 9f0aa0c3fede9abb0b5ccadeca95f848cc791fba)
Change-Id: I6ade4308b1763cbaf4d6291d8c08ee7a09048798
Signed-off-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-on: http://git-master/r/1154016
Reviewed-by: Om Prakash Singh <omp@nvidia.com>
Tested-by: Om Prakash Singh <omp@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Manikanta Maddireddy <mmaddireddy@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

2 years agonet: wireless: bcmdhd_88: Verify SSID length
Ashwin [Thu, 18 Feb 2016 22:37:04 +0000]
net: wireless: bcmdhd_88: Verify SSID length

ANDROID-26571522 fix from
  https://android.googlesource.com/kernel/msm.git

Original commit message:
> Ensure SSID length is correct before memcpy
>
> Bug: 26571522
> Bug: 27240072

Bug 1761317

Change-Id: I2b0279cd360fad613546c8aa280e0c6f4524763c
Signed-off-by: Ashwin <ashwin.bhat@broadcom.com>
Signed-off-by: Michael Hsu <mhsu@nvidia.com>
(cherry picked from commit c8a8d33845f07755f3bab9af3ac6a6fa18a09b3d)
Reviewed-on: http://git-master/r/1154017
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Om Prakash Singh <omp@nvidia.com>
Tested-by: Om Prakash Singh <omp@nvidia.com>

2 years agoinput: touch: raydium: fix touch not working.
Jordan Nien [Tue, 22 Dec 2015 13:42:35 +0000]
input: touch: raydium: fix touch not working.

- Issue: With partner build, there is no input
  disable/enable from frameworks to put touch into
  suspend state during lp0. It lead to touch
  stop working after lp0.
- enable device suspend/resume if input disable/enable
  is not called to fix this issue.

Bug 200162806
Bug 200203946

Change-Id: If09033197cfad8bd431a49cd8db3c5197c1ccbd9
Signed-off-by: Jordan Nien <jnien@nvidia.com>
Reviewed-on: http://git-master/r/925955
(cherry picked from commit 2ba7b886ea927b29e33382272acf9e6ac0a1c925)
Reviewed-on: http://git-master/r/1154213
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>

3 years agonet: wireless: bcmdhd_88: [WAR] increase wifi turn off delay
Om Prakash Singh [Tue, 9 Feb 2016 01:04:37 +0000]
net: wireless: bcmdhd_88: [WAR] increase wifi turn off delay

When wifi power on fails, turn wifi off for sometime before attempting
next power on. Incrementally increase this wifi off time to allow previous
(failing) SDIO work to finish. Without this extended wait time subsequent
wifi power on attempts will fail.

Bug 1725516

Change-Id: I30f91f48d8a11bb899258a5e51e3f6c551752d0a
Signed-off-by: Michael Hsu <mhsu@nvidia.com>
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/1133280
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
Tested-by: Dhiren Parmar <dparmar@nvidia.com>

3 years agoinput: touchscreen: raydium: Keep report mode across suspend/resume.
Jordan Nien [Tue, 26 Apr 2016 02:37:41 +0000]
input: touchscreen: raydium: Keep report mode across suspend/resume.

- Don't set default report mode in init stage
  and let touch daemon to handle it. This is
  to fix the report mode is changed to default
  after suspend/resume.

Bug 1757082

Change-Id: I05685b9420946c0eff6980d58658f5202640fc65
Signed-off-by: Jordan Nien <jnien@nvidia.com>
Reviewed-on: http://git-master/r/1132263
GVS: Gerrit_Virtual_Submit
Reviewed-by: David Pu <dpu@nvidia.com>
Reviewed-by: Vincent Chen <zochen@nvidia.com>
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>

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

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

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

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

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

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

3 years agogpu: nvgpu: Enable FB before initializing L2
Terje Bergstrom [Wed, 23 Mar 2016 19:22:49 +0000]
gpu: nvgpu: Enable FB before initializing L2

Deassert reset in L2 and FB before initializing L2. In gk20a L2 can
be off and thus writing registers results in a priv ring failure.

Change-Id: I680b8b1e77cf67a8269c6de59a15d9817301300e
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/1140482
GVS: Gerrit_Virtual_Submit

3 years agovideo: tegra: host: fix out-of-bound access in case of overflow
Deepak Nibade [Mon, 25 Apr 2016 12:28:28 +0000]
video: tegra: host: fix out-of-bound access in case of overflow

In nvhost_ioctl_ctrl_module_regrdwr(), we allocate a local buffer
of size (num_offsets * block_size), and use it to store
all the values passed from/to user space

In case erroneous values are passed from user space
(e.g. num_offsets=67108864 and block_size=64), buffer size
passed to kmalloc() overflows and is instead set as 64

And in that case, we end up accessing out-of-bounds values
from local buffer "vals"

To prevent this, allocate buffer "vals" of only one block size
and then copy it from/to user space in loop (i.e. copy the values
for each offset)

Remove variable "p1" and rename variable "remaining" as
"count" as it makes more sense

Add and use new API validate_max_size() to validate size of
register read/write. This API will check if requested read/write
block size is less than the memory resource size of device

kmalloc() might fail for any size > 4KB, hence fall back to
use vmalloc() if kmalloc() fails
Use kvfree() to free buffer allcoated with above

Bug 1739935

Change-Id: I2582e3bf7db6f47293838a4f14c260188f1564f5
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/1131916
(cherry picked from commit 58c9472407093c1975b07079b487914371de88ad)
Reviewed-on: http://git-master/r/1141019
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>

3 years agoapbdma: improve position reporting
Sumit Bhattacharya [Thu, 21 Jan 2016 10:51:36 +0000]
apbdma: improve position reporting

Return accurate dma position in device_tx_status()
callback.

Bug 200137565

Change-Id: Ida5b46fb3b33564d0210cf7a52991f64849a0f4a
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/1113217
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>

3 years agopipe: Fix buffer offset after partially failed read
Ben Hutchings [Sat, 13 Feb 2016 02:34:52 +0000]
pipe: Fix buffer offset after partially failed read

Quoting the RHEL advisory:

> It was found that the fix for CVE-2015-1805 incorrectly kept buffer
> offset and buffer length in sync on a failed atomic read, potentially
> resulting in a pipe buffer state corruption. A local, unprivileged user
> could use this flaw to crash the system or leak kernel memory to user
> space. (CVE-2016-0774, Moderate)

The same flawed fix was applied to stable branches from 2.6.32.y to
3.14.y inclusive, and I was able to reproduce the issue on 3.2.y.
We need to give pipe_iov_copy_to_user() a separate offset variable
and only update the buffer offset if it succeeds.

Bug 1744232
Bug 200188096

Change-Id: I988802f38acf40c7671fa0978880928b02d29b56
References: https://rhn.redhat.com/errata/RHSA-2016-0103.html
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
(cherry picked from commit feae3ca2e5e1a8f44aa6290255d3d9709985d0b2)
Reviewed-on: http://git-master/r/1130746
(cherry picked from commit 6d69c98d0c296c328aca1c1501c4d7230f3d578f)
Reviewed-on: http://git-master/r/1133067
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Todd Poynter <tpoynter@nvidia.com>
Reviewed-by: David Dastous St Hilaire <ddastoussthi@nvidia.com>
Tested-by: David Dastous St Hilaire <ddastoussthi@nvidia.com>
(cherry picked from commit cf799042b793d425486c93cad842963c6ea9781c)
Reviewed-on: http://git-master/r/1140379
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
Tested-by: Dhiren Parmar <dparmar@nvidia.com>

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

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

Bug 1745102

Change-Id: I4e7e5f9c186f980dcadfe52ec4284102255f19cf
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/1115302
(cherry picked from commit 2e5c355c904a19d71456a04c70f3fb4fc7d918b0)
Reviewed-on: http://git-master/r/1139725
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>

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

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

Bug 1745100

Change-Id: Idddd848f7dc1e864559ad219f9204325128484e5
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/1113818
(cherry picked from commit 5c7cb33118d1f966f22d56b156e5be298191838a)
Reviewed-on: http://git-master/r/1139724
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>

3 years agomm: use mutex only during CMA page replacement
Krishna Reddy [Tue, 19 Apr 2016 20:47:12 +0000]
mm: use mutex only during CMA page replacement

Limit the mutex to CMA page replacement only.
This would avoid unnecessary mutex contentions in
__get_user_pages() call.

Change-Id: Ia8e2e84c2827a8ac1496e6cc95bb8a8d2dcce005
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/1129399
Tested-by: Sumit Bhattacharya <sumitb@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

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

Helps in reducing cold ouptput latency
to go below 100ms

Bug 200180104

Change-Id: I468afa9b7444e5dfc3128833a0b4c8537163ebf0
Signed-off-by: Asha T <atalambedu@nvidia.com>
Reviewed-on: http://git-master/r/1030772
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
GVS: Gerrit_Virtual_Submit

3 years agoRevert "Revert "bcmdhd_88: add UPDATE_CHANNEL_LIST driver command""
Om Prakash Singh [Mon, 2 May 2016 06:58:27 +0000]
Revert "Revert "bcmdhd_88: add UPDATE_CHANNEL_LIST driver command""

This reverts commit 2250b327aa873de399aef1f6c002a5e4dfad9d64.

Bug 200179093
Bug 200127847

Change-Id: Ia0f8b001d2ceacb5a1e9521527fbe4456245cd5b
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/1139539
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>

3 years agoRevert "Revert "bcmdhd: add UPDATE_CHANNEL_LIST driver command""
Om Prakash Singh [Mon, 2 May 2016 06:57:44 +0000]
Revert "Revert "bcmdhd: add UPDATE_CHANNEL_LIST driver command""

This reverts commit be89d21bce8357468babe06df6f7fc21c499b901.

Bug 200179093
Bug 200127847

Change-Id: I2d4c40cf82fb46303fe6ed655876a169406dd13f
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/1139538
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>

3 years agoRevert "video: tegra: Don't allocate double buffered fb"
Pankaj Kumar [Mon, 21 Dec 2015 12:50:09 +0000]
Revert "video: tegra: Don't allocate double buffered fb"

This reverts commit 2bc194cac57ca30ff4c1ffc1d41df32a9e967824.

Bug 200150661

Change-Id: I9283bfe60a1fef29f4604a9b7ffbef7511f44751
Signed-off-by: Pankaj Kumar <pankumar@nvidia.com>
Reviewed-on: http://git-master/r/925527
(cherry picked from commit 14519fc9371255145e82afd49f0dcb9719b9e4d3)
Reviewed-on: http://git-master/r/1123430
Reviewed-by: Harry Lin <harlin@nvidia.com>
Tested-by: Harry Lin <harlin@nvidia.com>
Reviewed-by: Robert Shih <rshih@nvidia.com>
Reviewed-by: Eric Chuang <echuang@nvidia.com>

3 years agogpu: nvgpu: bitmap allocator for comptags
Konsta Holtta [Tue, 1 Dec 2015 09:55:27 +0000]
gpu: nvgpu: bitmap allocator for comptags

Restore comptags to be bitmap-allocated, like they were before we had
the buddy allocator.

The new buddy allocator introduced by
e99aa2485f8992eabe3556f3ebcb57bdc8ad91ff (originally
6ab2e0c49cb79ca68d2f83f1d4610783d2eaa79b) is fine for the big VAs, but
unsuitable for the small compbit store.

This commit reverts partially the combination of the above commit and
also one after it, 86fc7ec9a05999bea8de320840b962db3ee11410, that fixed
a bug which is not present when using a bitmap. With a bitmap allocator,
pruning the extra allocation necessary for user-mapped mode is possible,
so that is also restored.

The original generic bitmap allocator is not restored; instead, a
comptag-only allocator is introduced.

Bug 200145635

Change-Id: I87f3a911826a801124cfd21e44857dfab1c3f378
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/837180
(cherry picked from commit 5a504aeb54f3e89e6561932971158a397157b3f2)
Reviewed-on: http://git-master/r/842798
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
(cherry picked from commit 65f2e3ed5daf6d33f903dac42d08504945b1d5f4)
Reviewed-on: http://git-master/r/1130875
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
Tested-by: Dhiren Parmar <dparmar@nvidia.com>

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

Bug 1739780

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

3 years agoRevert "bcmdhd_88: add UPDATE_CHANNEL_LIST driver command"
Todd Poynter [Fri, 8 Apr 2016 15:03:08 +0000]
Revert "bcmdhd_88: add UPDATE_CHANNEL_LIST driver command"

DNI - just removing from our 67.30+ rel-24-sb-r1 base.  Will pick these up in rel-24-shield-r1.

Bug 200179093
Bug 200127847

This reverts commit 07026105159443408332f12db251c568fe16dc55.

Change-Id: Ie141935d11db2ae0ac0301a2ad1400a4a38017c3
Signed-off-by: Todd Poynter <tpoynter@nvidia.com>
Reviewed-on: http://git-master/r/1122510

3 years agoRevert "bcmdhd: add UPDATE_CHANNEL_LIST driver command"
Todd Poynter [Fri, 8 Apr 2016 15:02:36 +0000]
Revert "bcmdhd: add UPDATE_CHANNEL_LIST driver command"

DNI - just removing from our 67.30+ rel-24-sb-r1 base.  Will pick these up in rel-24-shield-r1.

Bug 200179093
Bug 200127847

This reverts commit e76eebb4e2067c76a57189e57bcc8268e3feaf62.

Change-Id: Iae1011349f1567362cd98f2e79d2a9f840e0ae04
Signed-off-by: Todd Poynter <tpoynter@nvidia.com>
Reviewed-on: http://git-master/r/1122508

3 years agobcmdhd_88: add UPDATE_CHANNEL_LIST driver command
Om Prakash Singh [Mon, 28 Mar 2016 11:27:06 +0000]
bcmdhd_88: add UPDATE_CHANNEL_LIST driver command

add UPDATE_CHANNEL_LIST driver command to force update channel
list to cfg80211 layer.

Bug 200179093
Bug 200127847

Change-Id: I1df43d56af9f5c2009cd981dd60f2e2166d42198
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/1111538
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agobcmdhd: add UPDATE_CHANNEL_LIST driver command
Om Prakash Singh [Mon, 28 Mar 2016 11:31:52 +0000]
bcmdhd: add UPDATE_CHANNEL_LIST driver command

add UPDATE_CHANNEL_LIST driver command to force update channel
list to cfg80211 layer.

Bug 200179093
Bug 200127847

Change-Id: Ib53d61dad84605a83628279a3d6981df582a609c
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/1111539
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

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

skip regulator_disable() if already disabled in
shutdown path.

Bug 200184433

Change-Id: Ic3217687a412f88c450cddd3337c725075fece07
Signed-off-by: Jordan Nien <jnien@nvidia.com>
Reviewed-on: http://git-master/r/1114775
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: David Pu <dpu@nvidia.com>
Reviewed-by: Eric Chuang <echuang@nvidia.com>

3 years agopipe: iovec: Fix memory corruption when retrying atomic copy as non-atomic
Ben Hutchings [Tue, 16 Jun 2015 21:11:06 +0000]
pipe: iovec: Fix memory corruption when retrying atomic copy as non-atomic

pipe_iov_copy_{from,to}_user() may be tried twice with the same iovec,
the first time atomically and the second time not.  The second attempt
needs to continue from the iovec position, pipe buffer offset and
remaining length where the first attempt failed, but currently the
pipe buffer offset and remaining length are reset.  This will corrupt
the piped data (possibly also leading to an information leak between
processes) and may also corrupt kernel memory.

This was fixed upstream by commits f0d1bec9d58d ("new helper:
copy_page_from_iter()") and 637b58c2887e ("switch pipe_read() to
copy_page_to_iter()"), but those aren't suitable for stable.  This fix
for older kernel versions was made by Seth Jennings for RHEL and I
have extracted it from their update.

CVE-2015-1805

Bug: 27275324
Change-Id: I459adb9076fcd50ff1f1c557089c4e421b036ec4
References: https://bugzilla.redhat.com/show_bug.cgi?id=1202855
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 85c34d007116f8a8aafb173966a605fb03532f45)
Reviewed-on: http://git-master/r/1114639
GVS: Gerrit_Virtual_Submit
Tested-by: Sharath Sarangpur <ssarangpur@nvidia.com>
Reviewed-by: Todd Poynter <tpoynter@nvidia.com>

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

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

Bug 1741516

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

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

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

Bug 200157906

Change-Id: Ie671050e3739a48fcdd97b2e18a5d14055610b8c
Signed-off-by: Jordan Nien <jnien@nvidia.com>
Reviewed-on: http://git-master/r/932135
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: David Pu <dpu@nvidia.com>
Reviewed-by: Gaurav Singh <gauravsingh@nvidia.com>

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

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

Bug 1741516

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

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

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

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

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

Bug 1739935

Change-Id: Iea2a07c60500af876b732a0e9d9d08535aa53b5c
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Signed-off-by: Gagan Grover <ggrover@nvidia.com>
Reviewed-on: http://git-master/r/1029405
(cherry picked from commit 422baa09a17a6a17f4e572aa5441ca174634de0d)
Reviewed-on: http://git-master/r/1032066
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gaurav Singh <gauravsingh@nvidia.com>

3 years agovideo: tegra: host: validate error notifier offset
Konsta Holtta [Tue, 8 Mar 2016 11:56:19 +0000]
video: tegra: host: validate error notifier offset

Make sure that the notifier object fits within the supplied buffer.

Bug 1739183

Change-Id: Ifbf46eddea86bedf0236851ea1c3f73e5f820beb
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/1026409
(cherry picked from commit 4086d2137e9b51137aa335fa264d924c73dea5fc)
Reviewed-on: http://git-master/r/1030855
Reviewed-by: Gagan Grover <ggrover@nvidia.com>
Reviewed-by: Gaurav Singh <gauravsingh@nvidia.com>

3 years agogpu: nvgpu: validate wait notification offset
Konsta Holtta [Tue, 8 Mar 2016 12:35:21 +0000]
gpu: nvgpu: validate wait notification offset

Make sure that the notification object fits within the supplied buffer.

Bug 1739182

Change-Id: Ifb66f848e3758438f37645be6f534f5b60260214
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/1026431
(cherry picked from commit 2484c47f123c717030aa00253446e8756e1a0807)
Reviewed-on: http://git-master/r/1030872
Reviewed-by: Gagan Grover <ggrover@nvidia.com>
Reviewed-by: Gaurav Singh <gauravsingh@nvidia.com>

3 years agomedia: tegra: nvavp: Fix heap overflow
Somasundaram S [Thu, 10 Mar 2016 12:03:11 +0000]
media: tegra: nvavp: Fix heap overflow

Bug 1739930

Increase NVAVP_MAX_RELOCATION_COUNT to max. possible value
and add check to return error if num_relocs in
nvavp_pushbuffer_submit_ioctl exceeds
NVAVP_MAX_RELOCATION_COUNT

Change-Id: Ief36cedd692aa53135fc6a0039b19f18609259dd
Signed-off-by: Somasundaram S <somasundaram@nvidia.com>
Reviewed-on: http://git-master/r/1030894
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Somu Sundaram <somasundarams@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

3 years agogpu: nvgpu: validate error notifier offset
Konsta Holtta [Tue, 8 Mar 2016 11:58:11 +0000]
gpu: nvgpu: validate error notifier offset

Make sure that the notifier object fits within the supplied buffer.

Bug 1739183
Bug 1739932

Change-Id: I713574ce797ffc23cec10b5114f469dbadc68f1e
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/1026410
(cherry picked from commit f476b93eb19b962b8760457102448bd533efc54d)
Reviewed-on: http://git-master/r/1030856
Reviewed-by: Gaurav Singh <gauravsingh@nvidia.com>
Tested-by: Gaurav Singh <gauravsingh@nvidia.com>

3 years agogpu: nvgpu: Protect sync by an own lock
Terje Bergstrom [Wed, 21 Oct 2015 20:14:09 +0000]
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/1020290
GVS: Gerrit_Virtual_Submit

3 years agosensors: light: Adjust light sensor calibration
Robert Collins [Tue, 2 Feb 2016 23:17:20 +0000]
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/1001919
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

3 years agoChanging endianness of buffer sent to tsec
Pranami Bhattacharya [Sat, 27 Feb 2016 04:05:33 +0000]
Changing endianness of buffer sent to tsec

This change addresses the stuttering issue when games are played on tablet device in console/mirror mode.
Initially the hwcomposer does an HDCP poll every 5 seconds.
This poll does SRM validation and vprime verification in TSEC.
Now the check is done on kernel side during HDCP authentication.
This avoids calls to TSEC every 5 seconds.
The receiver KSV list is passed to TSEC in the correct endianness order.
The checks are then performed in TSEC.
Bug 200177360

Change-Id: I0121d91c4cb6265ae2689a6aa4ace5247c5381d3
Signed-off-by: Pranami Bhattacharya <pranamib@nvidia.com>
Reviewed-on: http://git-master/r/1021033
Reviewed-by: Mitch Luban <mluban@nvidia.com>

3 years agommc: sdio: avoid suspend/resume claim host wait
Bitan Biswas [Wed, 6 Jan 2016 09:09:56 +0000]
mmc: sdio: avoid suspend/resume claim host wait

Using mmc_try_claim_host call instead of
mmc_claim_host in mmc_sdio_resume to bypass
DPM timeout due to already claimed host.
 - If mmc host is already claimed,
   mmc_sdio_resume is still being executed
   without the mmc_claim_host and
   mmc_release_host calls.

This is a short term change to avoid the
DPM device timeout error.

bug 1710498
bug 200177382

Change-Id: I593c3c285626837cb22a82904a00a93d7477369d
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/929424
(cherry picked from commit 1fd661920965a83a41af8d0c467e8cdab6402347)
Reviewed-on: http://git-master/r/1022001
Reviewed-by: Gaurav Singh <gauravsingh@nvidia.com>

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

Bug 1718973

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

3 years agoiio: imu: nvi: v.305 fix coverity
Erik Lilliebjerg [Sun, 21 Feb 2016 04:29:24 +0000]
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
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Tested-by: Robert Collins <rcollins@nvidia.com>

3 years agoiio: magnetometer: fix hal NULL ptr
Erik Lilliebjerg [Tue, 9 Feb 2016 15:01:39 +0000]
iio: magnetometer: fix hal NULL ptr

- Fix HAL NULL pointer by setting default HAL pointer even when device isn't
  found.

Bug 1727708

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

3 years agoiio: common: NVS light module v.103
Erik Lilliebjerg [Thu, 4 Feb 2016 10:28:50 +0000]
iio: common: NVS light module v.103

- Add ability to change dynamic resolution table index limits at runtime.
- Add ability to have individual thresholds per entry in the dynamic resolution
  table and the ability to change these thresholds at runtime as well as in the
  device tree.
- Add ability to have absolute HW value thresholds per entry in the dynamic
  resolution table that determines when to switch to the next table entry.  And
  these can be changed at runtime as well as be set in the device tree.
- Add the ability, as a WAR, to cap the maximum lux value.
- Fix dynamic resolution lux calculation.
- Fix threshold high calculation.
- Add above new features to cm3217 and cm3218x drivers.
- Add forced ARA to cm3218x driver as WAR for POR random registers.

Bug 1725551
Bug 200171152

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

3 years agoARM: config: tegra124: disable Marvell wifi driver
Michael Hsu [Thu, 11 Feb 2016 01:17:38 +0000]
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
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gaurav Singh <gauravsingh@nvidia.com>
Tested-by: Gaurav Singh <gauravsingh@nvidia.com>

3 years agoARM: t124: disable wlan default gpio
Laxman Dewangan [Wed, 10 Feb 2016 06:37:27 +0000]
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
GVS: Gerrit_Virtual_Submit

3 years agoRevert "arch: arm: tegra: Fix wifi power up"
Rajath Shetty [Thu, 11 Feb 2016 01:29:09 +0000]
Revert "arch: arm: tegra: Fix wifi power up"

This reverts commit a1ca17ab038c0387c70ab0a3b29def6e1316cb1a.

Bug 1725516
Signed-off-by: Rajath Shetty <rshetty@nvidia.com>
Change-Id: Ia1e0eaddeefef2c1ade3b126027da637d53f203f
Reviewed-on: http://git-master/r/1010676
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gaurav Singh <gauravsingh@nvidia.com>
Tested-by: Gaurav Singh <gauravsingh@nvidia.com>

3 years agoRevert "net: wireless: bcmdhd_88: wait for power rails to stabilize"
Rajath Shetty [Thu, 11 Feb 2016 01:28:12 +0000]
Revert "net: wireless: bcmdhd_88: wait for power rails to stabilize"

This reverts commit ca9e076fca1efe7d984806814972b36d5fcb9a50.

Bug 1725516
Signed-off-by: Rajath Shetty <rshetty@nvidia.com>
Change-Id: Ia4a37358761f54708f660041925e92b592254bf8
Reviewed-on: http://git-master/r/1010675
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gaurav Singh <gauravsingh@nvidia.com>
Tested-by: Gaurav Singh <gauravsingh@nvidia.com>

3 years agoRevert "net: wireless: bcmdhd_88: increase wifi turn off delay"
Rajath Shetty [Thu, 11 Feb 2016 01:26:57 +0000]
Revert "net: wireless: bcmdhd_88: increase wifi turn off delay"

This reverts commit 8e4babedaa7462424e36cfa51eda8bf49fe952ce.
Bug 1725516

Signed-off-by: Rajath Shetty <rshetty@nvidia.com>
Change-Id: I60f1a327d70faf15029e721c27d3808948206f31
Reviewed-on: http://git-master/r/1010674
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gaurav Singh <gauravsingh@nvidia.com>
Tested-by: Gaurav Singh <gauravsingh@nvidia.com>

3 years agoarch: arm: tegra: Fix wifi power up
Michael Hsu [Wed, 3 Feb 2016 08:14:08 +0000]
arch: arm: tegra: Fix wifi power up

Sometimes wifi chip get in bad hardware state.
Pulse the wifi chip power gpio to put it in known state.

Bug 1725516

Change-Id: I5891f8772690bd9249962314e70a8ee68c818c58
Signed-off-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-on: http://git-master/r/1002853
Reviewed-by: Gaurav Singh <gauravsingh@nvidia.com>
Tested-by: Gaurav Singh <gauravsingh@nvidia.com>

3 years agonet: wireless: bcmdhd_88: wait for power rails to stabilize
Michael Hsu [Sat, 6 Feb 2016 04:08:43 +0000]
net: wireless: bcmdhd_88: wait for power rails to stabilize

Wait for power rails to stabilize before prepowering wifi chip,
otherwise wifi chip might prepower into a bad nonresponsive state.

Bug 1725516

Change-Id: I8821bcab0ec91b17f06ed731fc8c00577747aa79
Signed-off-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-on: http://git-master/r/1009164
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: Om Prakash Singh <omp@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gaurav Singh <gauravsingh@nvidia.com>
Tested-by: Gaurav Singh <gauravsingh@nvidia.com>

3 years agonet: wireless: bcmdhd_88: increase wifi turn off delay
Michael Hsu [Tue, 9 Feb 2016 01:04:37 +0000]
net: wireless: bcmdhd_88: increase wifi turn off delay

When wifi power on fails, turn wifi off for some time before attempting
next power on.  Increase this wifi off time to allow previous (failing)
SDIO work to finish.  Without this extended wait time, then subsequent
wifi power on attempts will fail.

Bug 1725516

Change-Id: I3bed35092b9710128aae2a08bbeaae6c459f4be8
Signed-off-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-on: http://git-master/r/1009753
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: Om Prakash Singh <omp@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gaurav Singh <gauravsingh@nvidia.com>
Tested-by: Gaurav Singh <gauravsingh@nvidia.com>

3 years agoiio: imu: NVI v.304 DMP implementation
Erik Lilliebjerg [Mon, 1 Feb 2016 17:00:22 +0000]
iio: imu: NVI v.304 DMP implementation

- MPU6515:
  - Implement DMP.
  - Add Significant Motion sensor.
  - Add Quaternion sensor (fixes gravity)
  - Move compass to DMP driven for improved rate accuracy.
- ICM:
  - Fix auxiliary timing.
  - Add separate timing per sensor.
  - Add auxiliary data (compass) to its own FIFO.
  - Add separate FIFOs per ICM sensor.
- Both:
  - Improve suspend/resume time.

Bug 200162691
Bug 200159288
Bug 200130656
Bug 1699137

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