3 years agoext4: use old legacy direct I/O interface for 3.18 backport
Theodore Ts'o [Thu, 22 Jan 2015 20:40:07 +0000]
ext4: use old legacy direct I/O interface for 3.18 backport

Signed-off-by: Theodore Ts'o <tytso@mit.edu>

3 years agonon-ext4 portions of "direct-io: Implement generic deferred AIO completions"
Theodore Ts'o [Thu, 22 Jan 2015 20:20:55 +0000]
non-ext4 portions of "direct-io: Implement generic deferred AIO completions"

Originally from 7b7a8665edd8db73

Signed-off-by: Theodore Ts'o <tytso@mit.edu>

3 years agoext4: revert to old read/write/aio interface for 3.18 backport
Theodore Ts'o [Thu, 22 Jan 2015 19:59:19 +0000]
ext4: revert to old read/write/aio interface for 3.18 backport

Signed-off-by: Theodore Ts'o <tytso@mit.edu>

3 years agoext4: revert to old invalidatepage call function signature
Theodore Ts'o [Thu, 22 Jan 2015 19:50:42 +0000]
ext4: revert to old invalidatepage call function signature

Signed-off-by: Theodore Ts'o <tytso@mit.edu>

3 years agoext4: remove tmpfile, rename2, set_acl operations for 3.18 backport
Theodore Ts'o [Thu, 22 Jan 2015 19:49:04 +0000]
ext4: remove tmpfile, rename2, set_acl operations for 3.18 backport

Also switch to the rename operation.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>

3 years agosync: don't block the flusher thread waiting on IO
Dave Chinner [Tue, 2 Jul 2013 12:38:35 +0000]
sync: don't block the flusher thread waiting on IO

When sync does it's WB_SYNC_ALL writeback, it issues data Io and
then immediately waits for IO completion. This is done in the
context of the flusher thread, and hence completely ties up the
flusher thread for the backing device until all the dirty inodes
have been synced. On filesystems that are dirtying inodes constantly
and quickly, this means the flusher thread can be tied up for
minutes per sync call and hence badly affect system level write IO
performance as the page cache cannot be cleaned quickly.

We already have a wait loop for IO completion for sync(2), so cut
this out of the flusher thread and delegate it to wait_sb_inodes().
Hence we can do rapid IO submission, and then wait for it all to
complete.

Effect of sync on fsmark before the patch:

FSUse%        Count         Size    Files/sec     App Overhead
.....
     0       640000         4096      35154.6          1026984
     0       720000         4096      36740.3          1023844
     0       800000         4096      36184.6           916599
     0       880000         4096       1282.7          1054367
     0       960000         4096       3951.3           918773
     0      1040000         4096      40646.2           996448
     0      1120000         4096      43610.1           895647
     0      1200000         4096      40333.1           921048

And a single sync pass took:

  real    0m52.407s
  user    0m0.000s
  sys     0m0.090s

After the patch, there is no impact on fsmark results, and each
individual sync(2) operation run concurrently with the same fsmark
workload takes roughly 7s:

  real    0m6.930s
  user    0m0.000s
  sys     0m0.039s

IOWs, sync is 7-8x faster on a busy filesystem and does not have an
adverse impact on ongoing async data write operations.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
(cherry picked from commit 7747bd4bceb3079572695d3942294a6c7b265557)

3 years agofs: add inode_set_flags() for ext4 3.18 backport
Theodore Ts'o [Thu, 22 Jan 2015 19:10:26 +0000]
fs: add inode_set_flags() for ext4 3.18 backport

Excerpted from commit 5f16f3225b062

Signed-off-by: Theodore Ts'o <tytso@mit.edu>

3 years agoext4: use old interface for ext4_readdir()
Theodore Ts'o [Thu, 22 Jan 2015 19:08:16 +0000]
ext4: use old interface for ext4_readdir()

Signed-off-by: Theodore Ts'o <tytso@mit.edu>

3 years agoext4: fix up bio->bi_iter.bi_sector
Theodore Ts'o [Thu, 22 Jan 2015 18:39:38 +0000]
ext4: fix up bio->bi_iter.bi_sector

Signed-off-by: Theodore Ts'o <tytso@mit.edu>

3 years agosched: add bit_wait_io for 3.18 ext4 backport
Theodore Ts'o [Thu, 22 Jan 2015 18:05:19 +0000]
sched: add bit_wait_io for 3.18 ext4 backport

Excerpted from commit 743162013: "sched: Remove proliferation of
wait_on_bit() action functions"

Signed-off-by: Theodore Ts'o <tytso@mit.edu>

3 years agobuffer_head.h: add getblk_unmovable() for 3.18 ext4 backport
Theodore Ts'o [Thu, 22 Jan 2015 17:51:46 +0000]
buffer_head.h: add getblk_unmovable() for 3.18 ext4 backport

Signed-off-by: Theodore Ts'o <tytso@mit.edu>

3 years agoext4: backport mm portion of: fix data integrity sync in ordered mode
Theodore Ts'o [Thu, 22 Jan 2015 17:38:11 +0000]
ext4: backport mm portion of: fix data integrity sync in ordered mode

Commit 1c8349a17137: "ext4: fix data integrity sync in ordered mode"
included changes to include/linux/page-flags.h and
mm/page-writeback.c.  Apply them as part of the 3.18 ext4 backport.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>

3 years agoext4: use old truncate_pagecache() interface for ext4 3.18 backport
Theodore Ts'o [Thu, 22 Jan 2015 17:26:16 +0000]
ext4: use old truncate_pagecache() interface for ext4 3.18 backport

Signed-off-by: Theodore Ts'o <tytso@mit.edu>

3 years agoext4: use old percpu_counter_init() function signature
Theodore Ts'o [Thu, 22 Jan 2015 17:20:19 +0000]
ext4: use old percpu_counter_init() function signature

Older kernels don't pass in a gfp_flags argument.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>

3 years agoext4: use the old shrinker API
Theodore Ts'o [Thu, 22 Jan 2015 17:17:17 +0000]
ext4: use the old shrinker API

Signed-off-by: Theodore Ts'o <tytso@mit.edu>

3 years agoext4: disable ext4 acl handling for 3.18 backport
Theodore Ts'o [Thu, 22 Jan 2015 17:15:47 +0000]
ext4: disable ext4 acl handling for 3.18 backport

The ACL code changes too much between 3.18 and 3.10; so disable acl
handling so we don't have make things actually work.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>

3 years agouapi: add new system call ABI codepoints for ext4 3.18 backport
Theodore Ts'o [Thu, 22 Jan 2015 17:13:14 +0000]
uapi: add new system call ABI codepoints for ext4 3.18 backport

note: this doesn't guarantee that functionality provided by
FALLOC_FL_COLLAPSE_RANGE, FALLOC_FL_ZERO_RANGE, and FIEMAP_FLAG_CACHE
to necessarily _work_; it only allows ext4 from 3.18 to *compile*.

Fortunately, these are exotic bits of functionality that most people
never use.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>

3 years agomm.h: add truncate_inode_pages_final() for 3.18 ext4 backport
Theodore Ts'o [Thu, 22 Jan 2015 17:12:30 +0000]
mm.h: add truncate_inode_pages_final() for 3.18 ext4 backport

3 years agobitops.h: add smp_mb__after_atomic() for 3.18 backport
Theodore Ts'o [Thu, 22 Jan 2015 17:11:54 +0000]
bitops.h: add smp_mb__after_atomic() for 3.18 backport

Signed-off-by: Theodore Ts'o <tytso@mit.edu>

3 years agobuffer_head.h: add sb_bread_unmovable() for 3.18 ext4 backport
Theodore Ts'o [Thu, 22 Jan 2015 17:11:18 +0000]
buffer_head.h: add sb_bread_unmovable() for 3.18 ext4 backport

Signed-off-by: Theodore Ts'o <tytso@mit.edu>

3 years agopercpu: add raw_cpu_ptr() for 3.18 ext4 backport
Theodore Ts'o [Thu, 22 Jan 2015 17:10:43 +0000]
percpu: add raw_cpu_ptr() for 3.18 ext4 backport

3 years agomm: add find_get_page_flags() for 3.18 ext4 backport
Theodore Ts'o [Thu, 22 Jan 2015 17:09:47 +0000]
mm: add find_get_page_flags() for 3.18 ext4 backport

Signed-off-by: Theodore Ts'o <tytso@mit.edu>

3 years agoinclude/linux/fs.h: add dir_emit() and dir_relax() for 3.18 backport
Theodore Ts'o [Thu, 22 Jan 2015 17:08:39 +0000]
include/linux/fs.h: add dir_emit() and dir_relax() for 3.18 backport

Signed-off-by: Theodore Ts'o <tytso@mit.edu>

3 years agofs: add {lock,unlock}_two_nondirectories for 3.18 backport
Theodore Ts'o [Thu, 22 Jan 2015 17:06:09 +0000]
fs: add {lock,unlock}_two_nondirectories for 3.18 backport

Signed-off-by: Theodore Ts'o <tytso@mit.edu>

3 years agorbtree: add rbtree_postorder_for_each_entry_safe() helper
Cody P Schafer [Wed, 11 Sep 2013 21:25:11 +0000]
rbtree: add rbtree_postorder_for_each_entry_safe() helper

Because deletion (of the entire tree) is a relatively common use of the
rbtree_postorder iteration, and because doing it safely means fiddling
with temporary storage, provide a helper to simplify postorder rbtree
iteration.

Signed-off-by: Cody P Schafer <cody@linux.vnet.ibm.com>
Reviewed-by: Seth Jennings <sjenning@linux.vnet.ibm.com>
Cc: David Woodhouse <David.Woodhouse@intel.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Michel Lespinasse <walken@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

3 years agorbtree: add postorder iteration functions
Cody P Schafer [Wed, 11 Sep 2013 21:25:10 +0000]
rbtree: add postorder iteration functions

Postorder iteration yields all of a node's children prior to yielding the
node itself, and this particular implementation also avoids examining the
leaf links in a node after that node has been yielded.

In what I expect will be its most common usage, postorder iteration allows
the deletion of every node in an rbtree without modifying the rbtree nodes
(no _requirement_ that they be nulled) while avoiding referencing child
nodes after they have been "deleted" (most commonly, freed).

I have only updated zswap to use this functionality at this point, but
numerous bits of code (most notably in the filesystem drivers) use a hand
rolled postorder iteration that NULLs child links as it traverses the
tree.  Each of those instances could be replaced with this common
implementation.

1 & 2 add rbtree postorder iteration functions.
3 adds testing of the iteration to the rbtree runtime tests
4 allows building the rbtree runtime tests as builtins
5 updates zswap.

This patch:

Add postorder iteration functions for rbtree.  These are useful for safely
freeing an entire rbtree without modifying the tree at all.

Signed-off-by: Cody P Schafer <cody@linux.vnet.ibm.com>
Reviewed-by: Seth Jennings <sjenning@linux.vnet.ibm.com>
Cc: David Woodhouse <David.Woodhouse@intel.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Michel Lespinasse <walken@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

3 years agoext4: insert 3.18 version of fs/ext4, fs/jbd2 and associated header files
Ian Chang [Tue, 10 May 2016 04:37:37 +0000]
ext4: insert 3.18 version of fs/ext4, fs/jbd2 and associated header files

This will cause ext3 and gfs2 to not compile correctly, but allows us
to get a modern version of ext4 into 3.10.  This makes it easier to
backport newer features such as ext4 encryption into a downrev kernel.
It also fixes a number of xfstest failures that were fixed since 3.10.

The subsequent commits will fix up the 3.18 ext4 codebase so it will
compile against 3.10.

Change-Id: I866e28baf4f11e5ef3fbb3ea9f205a18f4576303
Signed-off-by: Ian Chang <ianc@nvidia.com>

3 years agoselinux: Android kernel compatibility with M userspace
Jeff Vander Stoep [Thu, 22 Oct 2015 16:30:40 +0000]
selinux: Android kernel compatibility with M userspace

NOT intended for new Android devices - this commit is unnecessary
for a target device that does not have a previous M variant.

DO NOT upstream. Android only.

Motivation:

This commit mitigates a mismatch between selinux kernel and
selinux userspace. The selinux ioctl white-listing binary policy
format that was accepted into Android M differs slightly from what
was later accepted into the upstream kernel. This leaves Android
master branch kernels incompatible with Android M releases. This
patch restores backwards compatibility. This is important because:

1. kernels may be updated on a different cycle than the rest of the
   OS e.g. security patching.
2. Android M bringup may still be ongoing for some devices. The
   same kernel should work for both M and master.

Backwards compatibility is achieved by checking for an Android M
policy characteristic during initial policy read and converting to
upstream policy format. The inverse conversion is done for policy
write as required for CTS testing.

Bug: 22846070
Change-Id: I2f1ee2eee402f37cf3c9df9f9e03c1b9ddec1929
Signed-off-by: Jeff Vander Stoep <jeffv@google.com>
Signed-off-by: Roger Ma <roma@nvidia.com>
Reviewed-on: http://git-master/r/1155637

3 years agoselinux: extended permissions for ioctls
Jeff Vander Stoep [Fri, 10 Jul 2015 21:19:56 +0000]
selinux: extended permissions for ioctls

(cherry picked from commit fa1aa143ac4a682c7f5fd52a3cf05f5a6fe44a0a)

Add extended permissions logic to selinux. Extended permissions
provides additional permissions in 256 bit increments. Extend the
generic ioctl permission check to use the extended permissions for
per-command filtering. Source/target/class sets including the ioctl
permission may additionally include a set of commands. Example:

allowxperm <source> <target>:<class> ioctl unpriv_app_socket_cmds
auditallowxperm <source> <target>:<class> ioctl priv_gpu_cmds

Where unpriv_app_socket_cmds and priv_gpu_cmds are macros
representing commonly granted sets of ioctl commands.

When ioctl commands are omitted only the permissions are checked.
This feature is intended to provide finer granularity for the ioctl
permission that may be too imprecise. For example, the same driver
may use ioctls to provide important and benign functionality such as
driver version or socket type as well as dangerous capabilities such
as debugging features, read/write/execute to physical memory or
access to sensitive data. Per-command filtering provides a mechanism
to reduce the attack surface of the kernel, and limit applications
to the subset of commands required.

The format of the policy binary has been modified to include ioctl
commands, and the policy version number has been incremented to
POLICYDB_VERSION_XPERMS_IOCTL=30 to account for the format
change.

The extended permissions logic is deliberately generic to allow
components to be reused e.g. netlink filters

Signed-off-by: Jeff Vander Stoep <jeffv@google.com>
Acked-by: Nick Kralevich <nnk@google.com>
Signed-off-by: Paul Moore <pmoore@redhat.com>
Bug: 22846070
Change-Id: I7c6bdc0362657b47aa1388936c5a1300bc5c0b42
Signed-off-by: Roger Ma <roma@nvidia.com>
Reviewed-on: http://git-master/r/1155636

3 years agoselinux: remove unnecessary pointer reassignment
Jeff Vander Stoep [Thu, 26 Feb 2015 21:54:17 +0000]
selinux: remove unnecessary pointer reassignment

(cherry pick from commit 83d4a806ae46397f606de7376b831524bd3a21e5)

Commit f01e1af445fa ("selinux: don't pass in NULL avd to avc_has_perm_noaudit")
made this pointer reassignment unnecessary. Avd should continue to reference
the stack-based copy.

Signed-off-by: Jeff Vander Stoep <jeffv@google.com>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
[PM: tweaked subject line]
Signed-off-by: Paul Moore <pmoore@redhat.com>
Bug: 22846070
Change-Id: I8fcba45a5acc4de862bd5b3f07bf4980f67133c4
Signed-off-by: Roger Ma <roma@nvidia.com>
Reviewed-on: http://git-master/r/1155634

3 years agoRevert "SELinux: per-command whitelisting of ioctls"
Jeff Vander Stoep [Thu, 30 Jul 2015 04:10:52 +0000]
Revert "SELinux: per-command whitelisting of ioctls"

This reverts commit ba733f9857b966459316d0cd33b8da2e22f62d7d.

Bug: 22846070
Change-Id: I4b5d9ce72996b7cf5b972dbcae22fbd6aff05149
Signed-off-by: Jeff Vander Stoep <jeffv@google.com>
Signed-off-by: Roger Ma <roma@nvidia.com>
Reviewed-on: http://git-master/r/1155632

3 years agosecurity: add ioctl specific auditing to lsm_audit
Jeff Vander Stoep [Fri, 10 Jul 2015 21:19:55 +0000]
security: add ioctl specific auditing to lsm_audit

(cherry pick from commit 671a2781ff01abf4fdc8904881fc3abd3a8279af)

Add information about ioctl calls to the LSM audit data. Log the
file path and command number.

Signed-off-by: Jeff Vander Stoep <jeffv@google.com>
Acked-by: Nick Kralevich <nnk@google.com>
[PM: subject line tweak]
Signed-off-by: Paul Moore <pmoore@redhat.com>
Bug: 22846070
Change-Id: I88a6ecdd59297a315a6fb9c82c0a798bdb6bafaa
Signed-off-by: Roger Ma <roma@nvidia.com>
Reviewed-on: http://git-master/r/1155635

3 years agoRevert "SELinux: use deletion-safe iterator to free list"
Jeff Vander Stoep [Thu, 30 Jul 2015 04:10:11 +0000]
Revert "SELinux: use deletion-safe iterator to free list"

This reverts commit e623b152f30f6f1204919315df37244d69e5d55e.

Bug: 22846070
Change-Id: Ief7a906b613adcf316e734270a1da2fbd1ce6cb8
Signed-off-by: Jeff Vander Stoep <jeffv@google.com>
Signed-off-by: Roger Ma <roma@nvidia.com>
Reviewed-on: http://git-master/r/1155631

3 years agoRevert "SELinux: ss: Fix policy write for ioctl operations"
Jeff Vander Stoep [Thu, 30 Jul 2015 04:09:33 +0000]
Revert "SELinux: ss: Fix policy write for ioctl operations"

This reverts commit 6bdf36786e225facf5ad2ed383a29ffd488e60ac.

Bug: 22846070
Change-Id: I47ae4ef40c688d96e2e5062506998808b9e4f603
Signed-off-by: Jeff Vander Stoep <jeffv@google.com>
Signed-off-by: Roger Ma <roma@nvidia.com>
Reviewed-on: http://git-master/r/1155630

3 years ago[Android-N] Add default value
Eric Zhang [Fri, 26 Feb 2016 03:21:38 +0000]
[Android-N] Add default value

Bug 1733015

Change-Id: Ied6bdffa0c45e5bf8e38239b3a75b1c64899fe6c
Signed-off-by: Eric Zhang <ericz@nvidia.com>
Reviewed-on: http://git-master/r/1020420
Reviewed-on: http://git-master/r/1122271
Reviewed-by: David Pearce <dpearce@nvidia.com>
Tested-by: David Pearce <dpearce@nvidia.com>
Reviewed-on: http://git-master/r/1155638
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Roger Ma <roma@nvidia.com>
Tested-by: Roger Ma <roma@nvidia.com>

3 years agoRevert "security: lsm_audit: add ioctl specific auditing"
Jeff Vander Stoep [Thu, 30 Jul 2015 04:11:21 +0000]
Revert "security: lsm_audit: add ioctl specific auditing"

This reverts commit b9417e527039f72073a0d368955bd1267f92ba70.

Bug: 22846070
Change-Id: I11d8880135a32b54e8eb8b95091b0226aa16735e
Signed-off-by: Jeff Vander Stoep <jeffv@google.com>
Signed-off-by: Roger Ma <roma@nvidia.com>
Reviewed-on: http://git-master/r/1155633

3 years agoarch: arm64: boot: dts: HDMI support
Bhanu Murthy V [Mon, 28 Mar 2016 20:23:02 +0000]
arch: arm64: boot: dts: HDMI support

Support HDMI for 8 CSI lanes with single
video node.

Bug 200169351

Change-Id: I4ab57f2554eda284029ba8c3ebe7a3a8a2d73e56
Signed-off-by: Bhanu Murthy V <bmurthyv@nvidia.com>
Reviewed-on: http://git-master/r/1116576
(cherry picked from commit 698e4ec3eb74df562ccde8f96638871f201e8413)
Reviewed-on: http://git-master/r/1149892
(cherry picked from commit bb87e10ec4af49e8c805b860978872ed19be9573)
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/1153888
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

3 years agodrivers: media: camera: Graph parsing update
Bhanu Murthy V [Tue, 8 Mar 2016 08:52:53 +0000]
drivers: media: camera: Graph parsing update

Current set of APIs provided by media controller
asynchronization sub-device registration allows
graph linking only when the last expected
sub-device is registered with framework.
The current change does graph linking for the
sub-devices registered when VI driver is
being registered.

Change addresses the problem of missing modules
in platforms. Unregsiters video node if no
modules are found.

Bug 1737952
Bug 200191959

Change-Id: I311395a331da1ce7668c5cda45535edf4046e0e6
Signed-off-by: Bhanu Murthy V <bmurthyv@nvidia.com>
(cherry picked from commit 01fa10a9d8e1c81184ebb7c190bebb5694102ff1)
Reviewed-on: http://git-master/r/1129868
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/1026377
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

3 years agomedia: tc358840: add 720p support in edid
Ahung Cheng [Mon, 28 Mar 2016 18:55:28 +0000]
media: tc358840: add 720p support in edid

bug 200169351

Change-Id: Icbc05b28e5829e5aabbd11c145118d987ed1d4bf
Signed-off-by: Ahung Cheng <ahcheng@nvidia.com>
Reviewed-on: http://git-master/r/1116539
(cherry picked from commit d6b422e406f31531efc112ca3a5e062434abd277)
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/1147957
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

3 years agotegra: adsp: Max ADSP clock at APM active
Viswanath L [Wed, 25 May 2016 08:06:24 +0000]
tegra: adsp: Max ADSP clock at APM active

Spike ADSP freq. to max when app transitions to active so that ADSP
does not starve

Bug 200196267

Change-Id: I11863b2449cfecc47aefd9bc41059b634b3b2acd
Signed-off-by: Viswanath L <viswanathl@nvidia.com>
Reviewed-on: http://git-master/r/1142024
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Viraj Karandikar <vkarandikar@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>

3 years agoadsp: dfs: override adsp dfs and reinit actmon
Puneet Saxena [Wed, 18 May 2016 10:03:28 +0000]
adsp: dfs: override adsp dfs and reinit actmon

To fix sudden adsp freq scaling, exporting an adsp_dfs
interface. The interface overrides actmon requested
freq and reinitialize actmon to settle down at suitable freq
as per the current load.

Bug 200198367
Bug 200196267

Change-Id: Iad542e527f50ff365225f23128e398cd9c216a5b
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Signed-off-by: Viswanath L <viswanathl@nvidia.com>
Reviewed-on: http://git-master/r/1149683
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Viraj Karandikar <vkarandikar@nvidia.com>
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>

3 years agovideo: tegra: Add deep color support
Santosh Reddy Galma [Mon, 19 Oct 2015 11:08:14 +0000]
video: tegra: Add deep color support

This change adds support for YUV422, YUV444 and RGB444 deep color
formats. It also fixes the associated masks and values.

Bug 1750555

Change-Id: Iea8551df9783a1f5c05679d971d62cb5d8ef3ba8
Signed-off-by: Aly Hirani <ahirani@nvidia.com>
Signed-off-by: Michael I. Gold <gold@nvidia.com>
Reviewed-on: http://git-master/r/1134544
(cherry picked from commit 8a923dc3bdcb2c94344374acfcd65f542793b3f9)
Reviewed-on: http://git-master/r/1152722
Reviewed-by: Vinayak Pane <vpane@nvidia.com>

3 years agohid: jarvis: Fix error in printing seq num
Ankita Garg [Fri, 13 May 2016 01:16:51 +0000]
hid: jarvis: Fix error in printing seq num

The driver prints out the sequence number from
wrong byte offset of sbc_input[1] instead of
sbc_input[0]

Bug 1765850

Change-Id: I6d39c903ef314d00170c7504f3cc98242fc896fb
Signed-off-by: Ankita Garg <ankitag@nvidia.com>
Reviewed-on: http://git-master/r/1147751
(cherry picked from commit 79a9bdf3250fe05c746dc1a0ee44c54692bd18f2)
Reviewed-on: http://git-master/r/1152012
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>

3 years agomedia: ov5693: remove 1296x972 mode table
Bryan Wu [Mon, 25 Apr 2016 20:25:37 +0000]
media: ov5693: remove 1296x972 mode table

Bug 1736471

Change-Id: I47a539eb5e31feee7f5d32f48337204d3547beb2
Signed-off-by: Bryan Wu <pengw@nvidia.com>
(cherry picked from commit 8c93380639ac5b3061a3a90e6e1a7ed65a40c889)
Reviewed-on: http://git-master/r/1132089
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/1141923
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Wenjia Zhou <wenjiaz@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

3 years agoALSA: hda: Allow 192khz for EAC3 capable sinks
Rahul Mittal [Fri, 13 May 2016 09:20:15 +0000]
ALSA: hda: Allow 192khz for EAC3 capable sinks

If the sink is eac3 decode capable, but not supporting 192khz
in its ELD, ALSA card doesn't add 192khz in supported rates.
Add 192khz in ALSA card for eac3 decode capable sinks, so
that user-space can open pcm device and play EAC3 content.

Bug 1764782

Change-Id: Iac5cdc5eb0acd448cec88ab0cacecc9c8a77c155
Signed-off-by: Rahul Mittal <rmittal@nvidia.com>
Reviewed-on: http://git-master/r/1147326
(cherry picked from commit cd5587dc8015dce523a408950b4a4114b71ee846)
Reviewed-on: http://git-master/r/1151760
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>

3 years agonet: wireless: bcmdhd abort ongoing-scan for disconnection
nagaraj [Wed, 27 Apr 2016 19:42:56 +0000]
net: wireless: bcmdhd abort ongoing-scan for disconnection

Original commit message:
sometimes we cannot get WLC_E_DEAUTH due to ongoing-scan
We need to abort ongoing-scan for disconnection

Bug: 18634452
Signed-off-by: Ecco park <eccopark@broadcom.com>
Link: https://android.googlesource.com/kernel/common.git/+/87466a9b218b4b0ad04efce8354589822478ea00%5E!/

Bug 200186891
Bug 200190639
Bug 200191534

Signed-off-by: Nagaraj Annaiah <nannaiah@nvidia.com>
Change-Id: I7494dca90087014d82da8282dd139d509b0ed796
Reviewed-on: http://git-master/r/1139859
(cherry picked from commit 241f350a0c3418d0968cd2e33e236a7e9b6ff505)
Reviewed-on: http://git-master/r/1147077
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agospi: tegra: Update cmd1 before cs enable
Krishna Yarlagadda [Wed, 11 May 2016 11:19:35 +0000]
spi: tegra: Update cmd1 before cs enable

SPI mode has to be selected before enabling chip select
Write to register only if mode is different than default

Also set mode bits of default chip select during setup

Bug 1731138

Change-Id: I4dd18fbc0da03a4218914028590846baaf5a2a8e
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/1145631
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agospi: tegra: read back register before start xfer
Krishna Yarlagadda [Wed, 11 May 2016 11:22:50 +0000]
spi: tegra: read back register before start xfer

Writes to SPI registers are not ensured to be in order.
Read register just before enabling transfer to ensure
all previous writes to any SPI registers are complete

Bug 1731138

Change-Id: I8872ffff98dcccc3a1c3087348fbff00fd401c85
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/1145632
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agospi: tegra: option to disable runtime pm
Krishna Yarlagadda [Wed, 11 May 2016 09:38:10 +0000]
spi: tegra: option to disable runtime pm

Runtime pm calls can be a overhead for smaller SPI transfers
where each microsecond counts. SPI takes very less power and
can ignore runtime power management.
Provided a dt option to disable runtime power management and
run with clocks always on.

Bug 1731138

Change-Id: Ia4b8c092e43208388cb09a82f603bbba6a6b7f9d
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/1145630
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agospi: tegra: Support autosuspend delay
Krishna Yarlagadda [Wed, 11 May 2016 05:26:24 +0000]
spi: tegra: Support autosuspend delay

After each meassage transfer the spi block is disabled
which requires a sync at each new transfer. The use of
pm_runtime_put_autosupend instead of pm_runtime_put will
disable the block only after a certain amount of time

Bug 1731138

Change-Id: I668c37d56c765c3f9118795998501109dcb6a03f
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/1145629
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agospi: tegra: set INTR_MASK only once
Krishna Yarlagadda [Wed, 11 May 2016 04:54:16 +0000]
spi: tegra: set INTR_MASK only once

INTR_MASK does not change for each transfer and all interrupts
are enabled always. Write to register only during setup and resume

Bug 1731138

Change-Id: I53f600bd86cb7d605c3f26f6dbbf25ec28346f71
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/1145628
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agospi: tegra: write to DMA_CTL only when needed
Krishna Yarlagadda [Wed, 11 May 2016 04:06:44 +0000]
spi: tegra: write to DMA_CTL only when needed

SPI_DMA_CTL register control interrupts for chips
before T210. Write to this register only for those
chips

Bug 1731138

Change-Id: Ie0979ea15e01faca9e4ee0643499ce7ee5bffb68
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/1145627
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agomedia: mipi_cal: fix building errors for T124
Bryan Wu [Fri, 20 May 2016 00:55:21 +0000]
media: mipi_cal: fix building errors for T124

Bug 1686313

Change-Id: I92fe398998cbd877c7e39f81687bf24cacb90293
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/1150781
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

3 years agodrivers:media:platform:tegra: Fix pll_d clk_get
Wenjia Zhou [Thu, 19 May 2016 01:01:46 +0000]
drivers:media:platform:tegra: Fix pll_d clk_get

NVHOST_VI_IOCTL_ENABLE_TPG need pll_d clk, however when dev_id is present, it
has higher priority than con_id, thus causing clk_get return unexpected result.
Remove dev_id to make sure "pll_d" is returned.

bug 1686313

Change-Id: Iceb12835ffeca3c3fd309fbd496a42974263fc61
Signed-off-by: Wenjia Zhou <wenjiaz@nvidia.com>
Reviewed-on: http://git-master/r/1150109
Reviewed-by: Bryan Wu <pengw@nvidia.com>
Tested-by: Bryan Wu <pengw@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

3 years agodrivers: media: camera: Ring buffer management
Bhanu Murthy V [Sat, 16 Apr 2016 02:54:08 +0000]
drivers: media: camera: Ring buffer management

Implement ring buffer which holds two buffers
before delivering frames from VI. This is to
ensure there is no performance impact using
single thread and memory write of the buffer
is complete.

Add logic to store buffers at the start,
release one buffer every frame once the queue
has only one free slot left.

Free all buffers once the stop streaming
is signalled.
Clean up for two thread implementation and
improve state mechanism in single thread

Bug 200092604
Bug 1736471

Change-Id: Ia9784ee0c7925b5ec4dd6ca5f0b3354af8323662
Signed-off-by: Bhanu Murthy V <bmurthyv@nvidia.com>
(cherry picked from commit 39a3d10573140a98aea3b67044f056772fa2be9f)
Reviewed-on: http://git-master/r/1127760
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/1141924
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

3 years agodrivers: media: camera: CSI closure for hotplug
Bhanu Murthy V [Sun, 17 Apr 2016 01:33:33 +0000]
drivers: media: camera: CSI closure for hotplug

Adds required routine for CSI HW to reach
idle state after hotplug. Resolves the mc-err
and zero writing issue in case of resolution
change.

Bug 200092604
Bug 1736471

Change-Id: I265736b185c3de206edcae017703840ae006e368
Signed-off-by: Bhanu Murthy V <bmurthyv@nvidia.com>
(cherry picked from commit 96fa5e4ae547dbe7af15bbefd47d6118566da806)
Reviewed-on: http://git-master/r/1127813
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/1141922
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

3 years agodrivers: media: camera: Hotplug fixes
Bhanu Murthy V [Wed, 13 Apr 2016 19:47:40 +0000]
drivers: media: camera: Hotplug fixes

Add check to block immediate hotplug event being
processed before start of streaming.
Do sync point re-init to a clean state before
starting streaming.

Bug 200092604

Change-Id: I4be38edff61eb06e1bd52a63ba288610ca7bb52d
Signed-off-by: Bhanu Murthy V <bmurthyv@nvidia.com>
Signed-off-by: Jihoon Bang <jbang@nvidia.com>
(cherry picked from commit 1d76ef9f6822d88b2e486ecfb21429494e7abdff)
Reviewed-on: http://git-master/r/1126327
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/1141921
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

3 years agomedia:platform:tegra: Add mipical in VI
Wenjia Zhou [Thu, 7 Apr 2016 23:21:41 +0000]
media:platform:tegra: Add mipical in VI

Call mipi calibration in start_streaming call

bug 1686313

Change-Id: Ifbfc5f9125e5c5fec0ad959da0b54ad6a05379c0
Signed-off-by: Wenjia Zhou <wenjiaz@nvidia.com>
(cherry picked from commit 0fecec602ec32b13ee1d6fdad72cf166cdbe166b)
Reviewed-on: http://git-master/r/1122127
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/1141916
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

3 years agomedia:platform:tegra: Aggregate VI LA BW
Wenjia Zhou [Wed, 13 Apr 2016 22:35:20 +0000]
media:platform:tegra: Aggregate VI LA BW

Add an aggregation function in tegra_vi. It will combine camera userspace VI LA
bw request and V4L2 usecase.

Bug 1736471

Change-Id: Ic9255cb4fdfc5260f1478bda622d8b43d3b8f447
Signed-off-by: Wenjia Zhou <wenjiaz@nvidia.com>
(cherry picked from commit 2deba04c9d680b17c31671548f792d0ae575f838)
Reviewed-on: http://git-master/r/1126384
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/1141907
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

3 years agomedia: tegra: adding enumerations to csi driver
Bryan Wu [Wed, 30 Mar 2016 23:57:22 +0000]
media: tegra: adding enumerations to csi driver

Adding support for enum_framesize and enum_frameinterval to csi driver.
Now just support TPG and need to revisit support for real sensors

Bug 1736471

Change-Id: I73ad38a394b44661a01e672ff16ef4fdf98140f5
Signed-off-by: David Wang <davidw@nvidia.com>
Signed-off-by: Bryan Wu <pengw@nvidia.com>
(cherry picked from commit c0f605b124b7fd0ca4502fb74c8d8f47e96bc48b)
Reviewed-on: http://git-master/r/1118014
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/1141904
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

3 years agomedia: tegra: return busy when tpg is opened
Bryan Wu [Mon, 4 Apr 2016 21:32:44 +0000]
media: tegra: return busy when tpg is opened

When TPG device channel is opened, openning a real sensor should get a
device busy failure and vice versa.

Bug 1736471

Change-Id: Idb2d68a96d1f5463f154e4604a310c133f127ac2
Signed-off-by: Bryan Wu <pengw@nvidia.com>
(cherry picked from commit 547df5f7ffbc0c420bd524cacfabbbc4355298de)
Reviewed-on: http://git-master/r/1119974
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/1141903
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

3 years agomedia: tegra: move TPG setup before bypass check
Bryan Wu [Fri, 1 Apr 2016 01:13:34 +0000]
media: tegra: move TPG setup before bypass check

Bypass mode doesn't want to treat TPG as a sepecial subdevice but
handle it as a normal sensor. So move TPG programming before bypass
check will setup TPG register in kernel even for bypass mode.

Bug 1736471

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

3 years agomedia: tegra: add completion sync
Bryan Wu [Fri, 8 Apr 2016 06:52:26 +0000]
media: tegra: add completion sync

When stop streaming, 2 kernel threads need synchronization. Using
completion framework in kernel to sync between kthreads.

Also remove lock and flags for HDMI unplug operation, which can be
achieved by completion sync.

Bug 1736471

Change-Id: I10df7499426a6d7b5489d836590f095f2d1baf12
Reviewed-on: http://git-master/r/1122379
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Signed-off-by: Ahung Cheng <ahcheng@nvidia.com>
(cherry picked from commit 2caab0bb07458efecd8934493677477a129d5d5e)
Reviewed-on: http://git-master/r/1124256
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/1141898
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

3 years agomedia: tegra: revise tpg set/get_fmt ops
Ken Chang [Tue, 12 Apr 2016 08:00:48 +0000]
media: tegra: revise tpg set/get_fmt ops

Reuse the working *_mbus_fmt callbacks in set_fmt
and get_fmt pad ops.

This change also adds input_status callback, returns
the status based on the current tpg mode.

Bug 200184502

Change-Id: I9ad5f67465fa3d8a2d956d55e3c7cf5e08dd0cd7
Signed-off-by: Ken Chang <kenc@nvidia.com>
(cherry picked from commit 3131eba1e9a94c8666bd7ad726750d5573dd7880)
Reviewed-on: http://git-master/r/1124154
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/1141897
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

3 years agomedia: tegra: camera: revise try_fmt callback
Ken Chang [Thu, 7 Apr 2016 07:40:31 +0000]
media: tegra: camera: revise try_fmt callback

Return a supported format for invalid formats with return
code '0'. Return -EINVAL only for the mbus format code is
not supported.

Bug 200184502

Change-Id: Iaecb17162625fd70454143b436e841c36d8556d4
Signed-off-by: Ken Chang <kenc@nvidia.com>
(cherry picked from commit 9265594cf94bf7dfadb3a939428732ed65035166)
Reviewed-on: http://git-master/r/1121723
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/1141896
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

3 years agodrivers: media: camera: Dual capture fixes
Bhanu Murthy V [Fri, 8 Apr 2016 18:45:29 +0000]
drivers: media: camera: Dual capture fixes

Fix init routine for bypass mode not to reset
CSI block mode to 2x bricks by default
Fix unbalanced and duplicated dpd disable call
for sensor flow. VI driver enables the required
CSI lanes power.

Bug 1736471
Bug 1683411

Change-Id: I345ff6e081c558bd2f3a0216d6c8122491a28dbe
Signed-off-by: Bhanu Murthy V <bmurthyv@nvidia.com>
(cherry picked from commit 62c47fb8d584f846b671506b642d0e67d2ea2831)
Reviewed-on: http://git-master/r/1122646
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/1141893
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

3 years agodrivers:media:camera: Add VI mode clk,bw control
Wenjia Zhou [Fri, 1 Apr 2016 23:12:29 +0000]
drivers:media:camera: Add VI mode clk,bw control

- Every time when a channel is open/close, it will update its requested vi bw
  and clock. And call API to update the final vi bw/clock.
- Use vi_v4l2.cbus to avoid conflict with userspace
- Add vi_v4l2_update_isobw API
  - When userspace call this API, it will take account into
    current VI mode request. Vice versa.

Bug 1736471

Change-Id: Ibf0926d20517a92c268f68008abfd7561bebe957
Signed-off-by: Wenjia Zhou <wenjiaz@nvidia.com>
(cherry picked from commit 6de786b5427e3f91f6d31bb15dc1ab022907e3ac)
Reviewed-on: http://git-master/r/1118118
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/1141875
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

3 years agodrivers:video:tegra:host: Change vi clk name
Wenjia Zhou [Fri, 13 May 2016 23:57:04 +0000]
drivers:video:tegra:host: Change vi clk name

change to vi_bypass which is a client under vi bus

Bug 1683411

Change-Id: I4fea799b7b3eb2fd5825ec01a95f8dd477537666
Signed-off-by: Wenjia Zhou <wenjiaz@nvidia.com>
Reviewed-on: http://git-master/r/1147819
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bryan Wu <pengw@nvidia.com>
Tested-by: Bryan Wu <pengw@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

3 years agoplatform:tegra:tegra12_clock: Add clients under vi
Wenjia Zhou [Fri, 13 May 2016 23:54:11 +0000]
platform:tegra:tegra12_clock: Add clients under vi

vi.c4bus
--vi_v4l2.c4bus
--vi_bypass.c4bus

Bug 1683411

Change-Id: I9b54fcac441019966ddaba5280472d19b3685aac
Signed-off-by: Wenjia Zhou <wenjiaz@nvidia.com>
Reviewed-on: http://git-master/r/1147818
Reviewed-by: Bryan Wu <pengw@nvidia.com>
Tested-by: Bryan Wu <pengw@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

3 years agotegra-alt: adsp: add adsp recovery mechanism
Viraj Karandikar [Wed, 20 Apr 2016 11:37:30 +0000]
tegra-alt: adsp: add adsp recovery mechanism

ADSP recovery mechanism can get triggered by two ways.
First is by ADSP OS driver calling crash handler callback.
This can happen when watchdog timer expires and sends
interrupt to CPU. Second way is when any communication
with ADSP timesout.

In both cases crash handler is called which stops ADSP
and does cleanup work. It then kills parent process
(mediaserver) to trigger reload ADSP OS and apps.

Read only control "ADSP Recovery Count" indicates number
of times the ADSP was recovered.

Bug 200178310

Change-Id: I7db07d0716443aad972f946412bd75d31643e901
Signed-off-by: Viraj Karandikar <vkarandikar@nvidia.com>
Reviewed-on: http://git-master/r/1129606
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>

3 years agotegra-alt: adsp: fixes for adsp recovery
Viraj Karandikar [Fri, 20 May 2016 08:35:51 +0000]
tegra-alt: adsp: fixes for adsp recovery

Preparatory changes for enabling ADSP recovery.
Update tegra210_adsp_deinit function.
Request ACK for connect messages.
Add checks for successful ADSP resume.

Bug 200178310

Change-Id: I59a87dbc88adcbe4766a448d75565afbdd45f909
Signed-off-by: Viraj Karandikar <vkarandikar@nvidia.com>
Reviewed-on: http://git-master/r/1151021
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>

3 years agoARM64: DT: Hawkeye: Use DTB for Wi-Fi card detect
Mohan Thadikamalla [Thu, 19 May 2016 05:40:23 +0000]
ARM64: DT: Hawkeye: Use DTB for Wi-Fi card detect

- Enable card detect from DT and set sdhci_host
as sdhci-tegra.1
- Use power retry country from DT and set
pwr_retry_cnt as 5

Bug 200166355

Change-Id: I0527161a46642fd55415be3bd499cb5e7d64047e
Signed-off-by: Mohan Thadikamalla <mohant@nvidia.com>
Reviewed-on: http://git-master/r/1132565
(cherry picked from commit a8428740a5083f5cb12b3c28da8f7b6232d94231)
Reviewed-on: http://git-master/r/1132556
Reviewed-by: Manikanta Maddireddy <mmaddireddy@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agonet: wireless: bcmdhd: Add card detect for DT
Mohan Thadikamalla [Thu, 19 May 2016 05:06:56 +0000]
net: wireless: bcmdhd: Add card detect for DT

- Implement set_carddetect platform call back for DT
- Remove TEGRA_PREPOWER_WIFI config check for adapter power up
and use pwr_retry_cnt DT parameter for no of retries
- Add sdhci_host and pwr_retry_cnt DT parameter support
- Request wifi power and reset gpio's

Bug 200166355

Change-Id: Ib3aced1d60f7e5242bfcff7b26cbf99610faca5a
Signed-off-by: Mohan Thadikamalla <mohant@nvidia.com>
(cherry picked from commit 81349e483d9526a9730ff56332c86fc9498f5baa)
Reviewed-on: http://git-master/r/1128873
Reviewed-by: Manikanta Maddireddy <mmaddireddy@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agodriver: media: add V4L2_MBUS_FMT_SRGGB12_1X12
esen chen [Fri, 6 May 2016 07:52:13 +0000]
driver: media: add V4L2_MBUS_FMT_SRGGB12_1X12

fix the 12 bit crash issue

Bug 200168141

Change-Id: I8a4321d7e8d4a5cb7db67036c247f8793c4b3441
Signed-off-by: esen chen <esenc@nvidia.com>
Reviewed-on: http://git-master/r/1142603
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: David Wang (SW-TEGRA) <davidw@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

3 years agoarch: arm64: config: enable IMX185 sensor
esen chen [Thu, 28 Apr 2016 05:17:14 +0000]
arch: arm64: config: enable IMX185 sensor

for android

Bug 200168141

Signed-off-by: esen chen <esenc@nvidia.com>
Change-Id: I9ebfb6959b7210f6d6c625014c060d1a50105242
Reviewed-on: http://git-master/r/1134940
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agonet: wireless: bcmdhd: Add command to restrict p2p AGO bw
Srinivas Ramachandran [Tue, 3 May 2016 22:27:27 +0000]
net: wireless: bcmdhd: Add command to restrict p2p AGO bw

When device is operating with 50Hz HDMI refresh rate
1. If AP is not associated, restrict the bw of p2p AGO to 20Mhz
2. If AP is associated, follow the AP bw

This is a WAR to prevent controller connectivity issues
in 1080p50Hz mode due to Wi-Fi desense.

Bug 200176240
Bug 200193305

Change-Id: I759aefe2ad175f195dc26239e77839bf0abb12f5
Signed-off-by: Srinivas Ramachandran <srinivasra@nvidia.com>
Reviewed-on: http://git-master/r/1146622
(cherry picked from commit 1aff341bd28a5824e16dea4b1c7b63262b0589e6)
Reviewed-on: http://git-master/r/1148786
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agobcmdhd: added set and get btcparams functions
Mahesh Patil [Mon, 18 Jan 2016 20:32:43 +0000]
bcmdhd: added set and get btcparams functions
support to driver

Bug 1719066

Change-Id: I9f75026c841195dad6725dac2399a5d35edbb410
Signed-off-by: Mahesh Patil <maheshp@nvidia.com>
Reviewed-on: http://git-master/r/933954
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoASoC: Codec: fix jack detection in suspend state
Sameer Pujar [Mon, 16 May 2016 15:23:21 +0000]
ASoC: Codec: fix jack detection in suspend state

Jack interrupt is disabled when system is supspended and any jack event
happens during suspend is not acknowledged by cpu and results in wrong
h2w state value, causing audio routing issue. This fix allows re-check
of jack status when the device resumes and updates h2w state properly.

Bug 200199970

Reviewed-on: http://git-master/r/1148349
(manual cherry pick from commit 130cb108a2d71302916f7c96db9d99762b9f3161)

Change-Id: I5e32aa0fdf107e34f0d5a237910efd9970655da5
Signed-off-by: Sameer Pujar <spujar@nvidia.com>
Reviewed-on: http://git-master/r/1149862
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dara Ramesh <dramesh@nvidia.com>

3 years agoRevert "iio: imu: NVI v.323 Fix ICM significant motion"
Kerwin Wan [Tue, 17 May 2016 06:46:27 +0000]
Revert "iio: imu: NVI v.323 Fix ICM significant motion"

This reverts commit 0f67637c74e564c814380f24be1d1730dcec67ce.

Bug 200199736

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

3 years agomedia: tc358840: fix code for format update
Ken Chang [Thu, 31 Mar 2016 11:37:04 +0000]
media: tc358840: fix code for format update

mbus_fmt_code shall be update only for
V4L2_SUBDEV_FORMAT_ACTIVE.

Bug 200184254

Change-Id: I8ed3e81ff50fe663fc33ea2b6380ef6ce4c33e10
Signed-off-by: Ken Chang <kenc@nvidia.com>
(cherry picked from commit 53f3463519b9ea393fc6b482603926b5cd383117)
Reviewed-on: http://git-master/r/1118318
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/1141888
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

3 years agomedia: platform: tegra: update channel format correctly
Ken Chang [Thu, 31 Mar 2016 11:35:50 +0000]
media: platform: tegra: update channel format correctly

The channel format shall be set based on the current used
format from the subdev not the capabilities.
And shall be updated only when s_dv_timings is successful.

Bug 200184254

Change-Id: I76ffc239f65371f3b01eaf62144677d77e447bdb
Signed-off-by: Ken Chang <kenc@nvidia.com>
(cherry picked from commit b17eeac5e29bb595f3fb21f280cb6fc42d7e11cf)
Reviewed-on: http://git-master/r/1118317
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/1141887
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

3 years agomedia: platform: tegra: revise try/set_fmt
Ken Chang [Thu, 31 Mar 2016 07:20:53 +0000]
media: platform: tegra: revise try/set_fmt

video *_mbus_fmt ops are removded from upstream kernel thus
use pad set/get/try_fmt ops instead.

set_fmt shall first check if the pixelformat is supported,
if not, pick up the default then call try_fmt, which with
which set to V4L2_SUBDEV_FORMAT_TRY to query the device
capaibility.
Then set the format with which set to V4L2_SUBDEV_FORMAT_ACTIVE
to make the subdev use this format.

Bug 200184254

Change-Id: I523b6548ba24dda7360b7f3be2ccd76e840094f3
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Ken Chang <kenc@nvidia.com>
(cherry picked from commit 735b6a9464daa7634f2cc4576fd8ff376dd0079f)
Reviewed-on: http://git-master/r/1118316
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/1141883
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

3 years agomedia: tegra: camera: add missing image format info
Ken Chang [Thu, 24 Mar 2016 05:46:19 +0000]
media: tegra: camera: add missing image format info

Add below missing info for v4l2_pix_format in the v4l2
ioctl .vidioc_g_fmt_vid_cap callback:
- pixelformat
- bytesperline
- sizeimage

Bug 200184254

Change-Id: I0ce64689649aa4314f7f87ae6af18d8a6644c941
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Ken Chang <kenc@nvidia.com>
(cherry picked from commit 7ff3e648aafba9b21500781f78016e5101d25112)
Reviewed-on: http://git-master/r/1117405
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/1141882
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

3 years agomedia: tc358840: move callbacks to pad ops
Ken Chang [Wed, 30 Mar 2016 05:00:43 +0000]
media: tc358840: move callbacks to pad ops

Move enum_dv_timings and dv_timings_cap callbacks
from video ops to pad ops because video ops are
removed from upstream kernel.

Bug 200184254

Change-Id: I7d18d4bd176ef51e0cfde2da6d43c2bf9ff6ea65
Signed-off-by: Ken Chang <kenc@nvidia.com>
(cherry picked from commit c53733af6527d09c37380aed9e3f8ef384a0fd6b)
Reviewed-on: http://git-master/r/1117404
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/1141881
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

3 years agodrivers: media: camera: avoid unnecessary power on/off calls
Ken Chang [Fri, 25 Mar 2016 06:21:02 +0000]
drivers: media: camera: avoid unnecessary power on/off calls

The CSI/sensor power related calls should be done only
when the open filehandle number is 1, i.e., the first
to open; and the last to close.
Thus protect the power related callbacks by calling
v4l2_fh_is_singular_file().

Bug 1736471

Change-Id: Ia5e095daa7a6acde2eaece654d8f6bf27ec6ebc3
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Ken Chang <kenc@nvidia.com>
(cherry picked from commit 1bd6e1d2407fbd86dc3407350ffad6f02db10c7c)
Reviewed-on: http://git-master/r/1115315
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/1141879
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

3 years agodrivers: media: camera: fix v4l2-compliance VIDIOC_ENUM_FMT test
Ken Chang [Wed, 23 Mar 2016 09:32:07 +0000]
drivers: media: camera: fix v4l2-compliance VIDIOC_ENUM_FMT test

This change fix the failure of VIDIOC_ENUM_FMT test by:
1) Extend the supported video formats
2) Add format description
3) move tegra_channel_fmts_bitmap_init() to
tegra_channel_open() thus pad enum_mbus_code can go to
the real subdevs.

Bug 200184254

Change-Id: Ib4d02c0b3ceca95ce512c6783cc824a28e1bb855
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Ken Chang <kenc@nvidia.com>
Reviewed-on: http://git-master/r/1114503
(cherry picked from commit 8bc9b656cca1a567b8838196fc6eac3236772663)
Reviewed-on: http://git-master/r/1115296
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/1141878
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

3 years agodrivers: media: camera: enable use_fh_prio
Ken Chang [Thu, 24 Mar 2016 04:56:16 +0000]
drivers: media: camera: enable use_fh_prio

Set V4L2_FL_USE_FH_PRIO to enable v4l2 framework to handle
VIDIOC_G/S_PRIORITY ioctls.

Bug 200184254

Change-Id: Icedae53962bcf942d4a58efc8e2c85825397aaee
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Ken Chang <kenc@nvidia.com>
(cherry picked from commit 2de13a41fa1e1f253db78477133f310b236cc9d2)
Reviewed-on: http://git-master/r/1115295
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/1141877
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

3 years agodrivers: media: camera: extended pixel format
Bhanu Murthy V [Fri, 25 Mar 2016 01:43:17 +0000]
drivers: media: camera: extended pixel format

Add extended pixel format to the capabilities.

Bug 200184254

Change-Id: Ic197e0da95823c98b8ec8f1883e2efde6f198923
Signed-off-by: Bhanu Murthy V <bmurthyv@nvidia.com>
(cherry picked from commit e40ddf883213d3d17d9a01c0e5a400ad2840cb8f)
Reviewed-on: http://git-master/r/1115245
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/1141876
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

3 years agodrivers:video: Add 3 API in tegra_camera_platform
Wenjia Zhou [Fri, 1 Apr 2016 22:58:53 +0000]
drivers:video: Add 3 API in tegra_camera_platform

- Reorganize the tegra_camera_platform driver
  - Move clk_get to probe
  - Move driver private struct from header to c file
  - Move header file to include/media/
  - Export function to update isobw
  - Export function to enable/disable emc clk
  - Add debugfs to help show isobw request breakdown

Bug 1736471

Change-Id: Ie62570f7ad881c7b264cced445f30b97b412a3ee
Signed-off-by: Wenjia Zhou <wenjiaz@nvidia.com>
(cherry picked from commit fffdce33aa5bab686e9693bb499b793b2501924b)
Reviewed-on: http://git-master/r/1119249
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/1141874
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

3 years agonet: ethernet: realtek: fix pgdrv remove for r8168 driver
Martin Gao [Tue, 3 May 2016 01:03:12 +0000]
net: ethernet: realtek: fix pgdrv remove for r8168 driver

- in r8168 realtek ethernet driver, we added pgtool functionality, and
pgdrv_remove wasn't checking for null pointer, and thus caused null pointer
exception.

Bug 200196087

Change-Id: Ib170fc4b1d3ef496d75def62924adf119f068324
Signed-off-by: Martin Gao <marting@nvidia.com>
(cherry picked from commit fa3352ceffe25cc86cf25ebc86e6d519bb7b6316)
Reviewed-on: http://git-master/r/1146186
GVS: Gerrit_Virtual_Submit
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>

3 years agodrivers: thermal: cancel delayed work
Martin Gao [Mon, 18 Apr 2016 20:11:40 +0000]
drivers: thermal: cancel delayed work

This change fixes cancel delayed work before scheduling another one,
which was a race condition.

Bug 1751479

Change-Id: Idd0bab7e6ec1fd9022ef24fb73d8ef2fa1e84909
Signed-off-by: Martin Gao <marting@nvidia.com>
(cherry picked from commit 7a770ad9041c731de45b56a2f8dc134ac0a87656)
Reviewed-on: http://git-master/r/1128368
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>

3 years agoRevert "gpu: nvgpu: recycle the cmdbuf instead of freeing after job done"
Deepak Nibade [Wed, 11 May 2016 14:22:21 +0000]
Revert "gpu: nvgpu: recycle the cmdbuf instead of freeing after job done"

This reverts commit da7e702365007ab23dfb00c75e8babf749b21f9a.

Commit 21b759 (gpu: nvgpu: add lock for priv_cmd_queue list accesses)
was needed to protect a crash introduced with this patch,
but above patch is getting reverted with http://git-master/r/#/c/1145913/

Hence revert this patch as well

Bug 1755244

Change-Id: I29289ec32588492c5054c3b7183e9e3d7e49c897
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/1145914
Reviewed-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

3 years agoRevert "gpu: nvgpu: add lock for priv_cmd_queue list accesses"
Deepak Nibade [Wed, 11 May 2016 14:21:35 +0000]
Revert "gpu: nvgpu: add lock for priv_cmd_queue list accesses"

This reverts commit 21b7595b0ca4d3931b73246eb0f4fd3665379a2b.

Original patch introduces variance in nvgpu submit times

Also, it should be fine to remove the lock since the races
it protects will also be removed with revert patch
http://git-master/r/#/c/1145914/

Hence revert this patch

Bug 1755244

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

3 years agoarm64: tegra: jetson_tx1: disable dsi by default
Kerwin Wan [Tue, 8 Mar 2016 06:46:29 +0000]
arm64: tegra: jetson_tx1: disable dsi by default

jetson tx1 devkit does not use dsi so disable it.

Bug 200161650

Change-Id: I074f5230810cd9ecc48256fe69a1aec9361d3606
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/1026249
(cherry picked from commit 85f233aa3207e5a300a8903504774e523784699f)
Reviewed-on: http://git-master/r/1149421
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

3 years agopower: extcon: Avoid race condition
Laxman Dewangan [Fri, 6 May 2016 11:50:19 +0000]
power: extcon: Avoid race condition

When power supply get registers, it schedule the work queue
for getting property and then return back to caller.

If caller has not initialised all the parameters for reading
property and if initialise after power supply registration
then there is race for work queue get scheduled and use the
parameters which are not initialised and it can cause the
system hang.

Fixing this to initialise parameters for get properties property.

bug 200196661

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

3 years agowatchdog: tegra: support nowayout config
Krishna Yarlagadda [Mon, 9 May 2016 14:33:11 +0000]
watchdog: tegra: support nowayout config

Disabling of watchdog is not allowed when
nowayout config is enabled and will restart device
if watchdog deamon is disabled or crashed

Bug 200160105

Change-Id: I496d8b3f7dae4ce8ee26198ee4930c5962eeb255
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/1143663
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bibek Basu <bbasu@nvidia.com>

3 years agodrivers: media: camera: Ignore unbound entities
Kai Lee [Thu, 5 May 2016 20:25:39 +0000]
drivers: media: camera: Ignore unbound entities

Do not build graph for unbound entities.

Bug 200194286

Change-Id: I5f8efe7a9f76048cef60372042c36bd736b66fad
Signed-off-by: Kai Lee <kailee@nvidia.com>
Reviewed-on: http://git-master/r/1142287
Reviewed-by: Bhanu Murthy V <bmurthyv@nvidia.com>
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: David Wang (SW-TEGRA) <davidw@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-on: http://git-master/r/1143756
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoARM: kernel: remove the __init from register_persistent_clock
Laxman Dewangan [Thu, 17 Mar 2016 10:57:40 +0000]
ARM: kernel: remove the __init from register_persistent_clock

To avoid the section mismatch error:
WARNING: vmlinux.o(.text+0x6cc3f4): Section mismatch in reference from
the function tegra_rtc_probe() to the function .init.text:register_persistent_clock()
The function tegra_rtc_probe() references
the function __init register_persistent_clock().
This is often because tegra_rtc_probe lacks a __init
annotation or the annotation of register_persistent_clock is wrong.

Bug 200170914

Change-Id: If677c41f46bb4e3adb354a16e44c1c59c78df356
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/1112203
(cherry picked from commit 6348c498d00bf13cda7b4c6324104942e7792574)
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/1131704
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
Tested-by: Shridhar Rasal <srasal@nvidia.com>
GVS: Gerrit_Virtual_Submit
(cherry picked from commit d7bf977ad074482e5613204c9fc52291a68d6a46)
Reviewed-on: http://git-master/r/1145614
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>

3 years agopower: reset: max77620: ignore GPIO configuration if not supported
Venkat Reddy Talla [Fri, 13 May 2016 11:01:59 +0000]
power: reset: max77620: ignore GPIO configuration if not supported

ignore MAX77620 PMIC GPIO configuration, if GPIO status information
not provided through DTS, ignore GPIO config from restart notifier
call instead of prepare_system_power_off.

Bug 200200532

Change-Id: I78f5266ae67ac1f7f8ccaf114b9265eda6adac2d
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/1147531
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

3 years agoplatform: nvadsp: Reset ADSP driver on crash
Viraj Karandikar [Wed, 20 Apr 2016 11:36:59 +0000]
platform: nvadsp: Reset ADSP driver on crash

When ADSP crashes, the audio server is restarted so that it can
resume its operations. Hence, on crash ADSP driver recovers itself
by doing the following :

 1) resetting queues of software mailboxes
 2) resetting global send hw mailbox queue
 3) Unloading all apps
 4) making a callback to the registered client when ADSP WDT
    is triggered.

 Also, nvadsp_os_stop is removed from restart work thread.

Bug 200178310

Change-Id: Iffa033ec60165c9a7322e9224e45637b212bff65
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Signed-off-by: Viraj Karandikar <vkarandikar@nvidia.com>
Reviewed-on: http://git-master/r/1024573
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>