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

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

Bug 1741516

Change-Id: Ie5370bc1538c8cf9a702904fb88eb850baeb063d
Signed-off-by: Somu Sundaram <somasundaram@nvidia.com>
Reviewed-on: http://git-master/r/1112711
(cherry picked from commit 1d58fc311d5eeb4e525c195c99593d8309a565a1)
Reviewed-on: http://git-master/r/1140881
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Tested-by: Winnie Hsu <whsu@nvidia.com>

3 years agomisc: bluedroid_pm: Fix module remove
Bibek Basu [Fri, 22 Apr 2016 09:22:36 +0000]
misc: bluedroid_pm: Fix module remove

Added dev_id to free_irq and checked for
valid gpio while freeing

Bug 200193367
Bug 200173713

Change-Id: I694b398fc7aab1628f01c7e47ea6f21d4beaab71
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/1130980
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Manikanta Maddireddy <mmaddireddy@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

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/1134078
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>

3 years agovideo: tegra: hdm2.0: l4t: filter out YUV modes
Naveen Kumar S [Fri, 22 Apr 2016 14:15:06 +0000]
video: tegra: hdm2.0: l4t: filter out YUV modes

L4T doesn't support YUV. Hence filter out YUV modes
in mode_filter so that they won't get added to FB modelist.

bug 200191922

Change-Id: I6da4a44f446257d9e0198071e997e679b4a319f5
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/1131120
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Tested-by: Winnie Hsu <whsu@nvidia.com>

3 years agoarch: arm64: dts: tegra210-plugin-manager
Mike Thompson [Thu, 21 Apr 2016 00:25:02 +0000]
arch: arm64: dts: tegra210-plugin-manager

Update fragment0 to ignore all revs <300

Bug 1755825

Change-Id: I5cb676131e655c5394840b25f68ce1ad0effb98f
Signed-off-by: Mike Thompson <mikthompson@nvidia.com>
Reviewed-on: http://git-master/r/1129941
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Tested-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

3 years agoRevert "bluetooth: Validate socket address length in sco_sock_bind()."
Rohit Vaswani [Thu, 21 Apr 2016 20:16:29 +0000]
Revert "bluetooth: Validate socket address length in sco_sock_bind()."

This reverts commit aea23834fd3daa60039be8773aa39fb039aac945.

Android commit 535dab900f19881485c4dab344fcf31e7763dbf1 adds a u16
member to the struct sockaddr_sco. This makes the structure different
from the one bluez linux userspace uses. Hence, the check added in
this patch always fails for L4T.
The Android commit actually uses only the minimum of the structure size
between userspace and kernel. So, we do not need the additional check
added in this patch.

Bug 200190810

Change-Id: Ib7d7ef5394d98472a3bd57f8afa87a39d4d6b94e
Signed-off-by: Rohit Vaswani <rvaswani@nvidia.com>
Reviewed-on: http://git-master/r/1130606
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

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

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

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

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

bug 1750159

Change-Id: I1223d7c8add653cd54505e0d98693f72a5c3c824
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/1119438
(cherry picked from commit d3a7f2399b1617a61f7cf2d5abb159ecf6fbf44d from dev-kernel-3.18 in linux-3.18)
Reviewed-on: http://git-master/r/1120768
(cherry picked from commit b0cb5e66ed570cf06ee3560fcf616930ba61cbf9)
Reviewed-on: http://git-master/r/1128341
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Tested-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

3 years agortc: tegra: fix continous set alarm
Jeetesh Burman [Tue, 12 Apr 2016 14:58:44 +0000]
rtc: tegra: fix continous set alarm

rtctest fails because of alarm doesn't set after triggering first
interrupt, to fix setting alarm, need to call "rtc_update_irq" after
calling "rtc_aie_update_irq".

Bug 200173988

Change-Id: Ic706fe58d29e47a501bceb2adce40036c8117e9b
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/1125484
(cherry picked from commit 6f9e7cd7f5b722f8f1f5e63600b76ee0044f9e46)
Reviewed-on: http://git-master/r/1126552
GVS: Gerrit_Virtual_Submit
Tested-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

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

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

bug 200168814
bug 200169212

Change-Id: I402ea50b8e9e12b370469bda4e0d7e8123663cea
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/1116012
(cherry picked from commit f78c0ce9e4190e72895b6c6cad6ecc8b2b5b0950)
Reviewed-on: http://git-master/r/1123702
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

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

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

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

replace alarm setting message from dev_info to dev_dbg.

Bug 200182843

Change-Id: I06b179adfdf1223327652b39e4d13c0e00baac55
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/1118244
(cherry picked from commit 9ff8130e84812fc54ff510cec69c247ae4661b76)
Reviewed-on: http://git-master/r/1120290
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

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

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

Bug 1736471

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

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

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

Bug 1736471

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

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

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

Bug 1748166

Change-Id: Ide593c7188c35e597e9c8efc94a8eab44a9bad57
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/1116938
(cherry picked from commit 1d77354b43cbe89d069995c15326abd1b9c5ff45)
Reviewed-on: http://git-master/r/1119900

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

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

Bug 200185995

Change-Id: Ib748eabb8bb14c7c334c250485d884e749933b15
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/1119336
(cherry picked from commit 0bca0f46fbce0d58306430dd6886fe8ab15bff06)
Reviewed-on: http://git-master/r/1120122
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

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

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

Bug 200161481

Change-Id: I1f6289ab3f12fcfefd5d877f2ac23d4850100028
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
(cherry picked from commit eaf3bb6817fd58cee5b87640af45ead2025471a8)
Reviewed-on: http://git-master/r/1118373
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

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

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

Bug 1736471

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

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

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

Bug 1617777
Bug 1736741

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

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

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

Bug 1617777
Bug 1736471

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

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

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

Bug 1617777
Bug 1736471

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

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

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

Bug 200170914

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

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

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

Bug 1698877

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

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

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

Bug 200164516

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

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

Bug 1695353

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

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

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

Bug 1716418

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

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

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

Bug 1716418

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

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

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

Bug 1716418

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

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

This reverts commit 023c33851af6c13455f024a9f5f1dc7645c177b0.

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

Bug 200176235

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

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

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

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

Bug 1688003
Bug 200176235

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

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

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

  P4 CL 20490253

Bug 200166877

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

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

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

Bug 1735599
Bug 200158722

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

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

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

Bug 1740664

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

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

Bug 1740664

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

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

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

Bug 1740664

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

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

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

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

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

Bug 200175874
Bug 200161377

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

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

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

Bug 1743521

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

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

Update nvram and firmware path strings for JetsonE board.

Bug 1716265

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

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

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

Bug 1741516

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

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

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

Bug 1737038

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

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

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

Bug 200168805
Bug 200179045
Bug 200177659

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

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

Add imx185 senosr support

Bug 200168141
Bug 200160365

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

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

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

Bug 200160365
Bug 200168141

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

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

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

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

Bug 1617777
Bug 1736471

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

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

Helps in reducing cold ouptput latency
to go below 100ms

Bug 200180104

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

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

bug 200179591

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

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

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

Bug 1734659
Bug 1730416

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

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

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

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

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

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

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

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

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

Bug 200167729

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

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

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

Bug 200167729

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

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

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

Bug 1732138

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

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

the dts is used for imx274

Bug 1715620
Bug 200142167

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

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

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

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

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

Bug 1739935

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

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

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

Bug 200149702

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

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/1030879
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoarm64: config: enable RTC_BACKUP_HCTOSYS_DEVICE
Jeetesh Burman [Fri, 11 Mar 2016 05:23:50 +0000]
arm64: config: enable RTC_BACKUP_HCTOSYS_DEVICE

without RTC_BACKUP_HCTOSYS_DEVICE=rtc1, hctosys code reads RTCSEC from
tegra-rtc and resetting date to default date (01-01-2013) if date is
set above 2013-year from user.

enable CONFIG_RTC_BACKUP_HCTOSYS_DEVICE and set to rtc1, so that
system reads RTCSEC from pmic-rtc instead of tegra-rtc.

Bug 200179622

Change-Id: Ifaed98381a4d41bbf50ea24b2402b2e17aa2a12e
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/1029297
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@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/1028757
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@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/1028145
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>

3 years agoiio: adc: retry the ads1015 configuration
Shardar Shariff Md [Thu, 3 Mar 2016 11:40:17 +0000]
iio: adc: retry the ads1015 configuration

Dont return for the first No ack error instead
retry the ads1015 configuration for 5 times.

Bug 200171619

Change-Id: I96f743dd418d9b7f9e9994ac23f538714a94bbe3
Signed-off-by: Shardar Shariff Md <smohammed@nvidia.com>
Reviewed-on: http://git-master/r/1023364
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@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/1028846
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Somu Sundaram <somasundarams@nvidia.com>
Reviewed-by: Soumen Dey <sdey@nvidia.com>

3 years agogpu: nvgpu: ZBC update without idle
Terje Bergstrom [Fri, 6 Nov 2015 17:45:56 +0000]
gpu: nvgpu: ZBC update without idle

Do ZBC updates without forcing engine idle first.

Bug 1698013

Change-Id: I99218c8cfd02be05dace2003b8d91921765f7ca9
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/829145
(cherry picked from commit 09f7a8a2459104ce0349212beadd38d885a8b6e3)
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/1029425
GVS: Gerrit_Virtual_Submit

3 years agogpu: nvpgu: disable all engine activity during poweroff
Deepak Nibade [Wed, 10 Feb 2016 16:52:16 +0000]
gpu: nvpgu: disable all engine activity during poweroff

Disable all engine activity with API
gk20a_fifo_disable_all_engine_activity() in prepare_poweroff()
and do this before suspending the channels

This API will disable scheduling, and preempt the channels
on pbdma and engine

Additionally, after disabling scheduling, send
NV_PGRAPH_PRI_FECS_METHOD_PUSH_ADR_WFI to ensure engines
are idle

Add new API gr_gk20a_submit_fecs_method_wfi() to submit
PUSH_ADR_WFI

Bug 1715732

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

3 years agogpu: nvgpu: APIs to disable/enable all engines' activity
Deepak Nibade [Mon, 14 Sep 2015 09:47:38 +0000]
gpu: nvgpu: APIs to disable/enable all engines' activity

Add below APIs to disable/re-enable activity on all
engines
gk20a_fifo_disable_all_engine_activity()
gk20a_fifo_enable_all_engine_activity()

Bug 200133289

Change-Id: Ie01a260d587807a3c1712ee32fe870fbcb08f9cd
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/798747
(cherry picked from commit b16ef2d4763b899dc632dbdbe8c48ea04f709da0)
Reviewed-on: http://git-master/r/1029423
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

3 years agoarm64: dts: Update wifi firmware/nvram path for T210 platforms
Srinivas Ramachandran [Fri, 5 Feb 2016 06:58:53 +0000]
arm64: dts: Update wifi firmware/nvram path for T210 platforms

Update corresponding nvram and firmware path strings for T210
platforms.

Bug 1716265

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

3 years agoarm: configs: Update wifi firmware path for T124 platform
Srinivas Ramachandran [Tue, 9 Feb 2016 01:25:18 +0000]
arm: configs: Update wifi firmware path for T124 platform

Bug 1716265

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

3 years agoarm64: dts: foster_e_hdd: update sata firmware partition
Eric Miao [Tue, 8 Mar 2016 23:34:26 +0000]
arm64: dts: foster_e_hdd: update sata firmware partition

As part of the effort not to hardcode the logic of sata firmware
upgrade in the bootloader, nor to hardcode the partition where
the firmware is stored, it was agreed to introduce a chosen
property in the device tree, hence the patch.

On Foster/HDD, this will be on RP4 partition as below:

  /chosen/satafw-partition = "RP4";

The sata firmware check/update will be skipped for any platforms
that:

  * do not have this property properly
  * or simply don't have a SATA storage device

Bug 200178475

Change-Id: I5aa1cbcc373d880cc4abfd09047bc2226bf033d6
Signed-off-by: Eric Miao <emiao@nvidia.com>
Reviewed-on: http://git-master/r/1028154
Reviewed-by: Jay Bhukhanwala <jbhukhanwala@nvidia.com>

3 years agoARM64: t210: Disable modem regulators for WIFI SKUs
Laxman Dewangan [Fri, 11 Mar 2016 15:53:29 +0000]
ARM64: t210: Disable modem regulators for WIFI SKUs

Disable modem regulators for WIFI SKUs.

bug 1735487

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

3 years agoARM64: t210: Add support for WIFI SKUs For A01/A02/A03
Laxman Dewangan [Fri, 11 Mar 2016 12:13:11 +0000]
ARM64: t210: Add support for WIFI SKUs For A01/A02/A03

Add WIFI only DTS file for the P2290-A01/A02/A03

This is just place holder to make the WIFI specific changes from
DT.

bug 1735487

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

3 years agoarm64: tegra: jetson-e: enable gpu rework
Prabhu Kuttiyam [Fri, 3 Apr 2015 04:24:12 +0000]
arm64: tegra: jetson-e: enable gpu rework

This commit enables gpu-dvfs-rework to get gpu scaling working.

Bug 1630967

Change-Id: I10ab85f0a53a6f172486dc0fb8b8427789650d4f
Signed-off-by: Prabhu Kuttiyam <pkuttiyam@nvidia.com>
Reviewed-on: http://git-master/r/727302
(cherry picked from commit e8e708066d8c53912ad17d6f8979f7663db52f98)
Reviewed-on: http://git-master/r/1029316
Tested-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ninad Malwade <nmalwade@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Tested-by: Shreshtha Sahu <ssahu@nvidia.com>

3 years agosoc_camera: imx230 power on sleep
Mihir Thakkar [Wed, 24 Feb 2016 21:46:02 +0000]
soc_camera: imx230 power on sleep

Change the power on sleep range to 1ms to fix random hangs while
running nvcamera_test. We need min of 1ms before first i2c
access. T6 event in the power up sequence in the reference manual

Bug 1726896
Bug 1726881

Change-Id: Ie7f8eb65a4d89776a541789afd6926fb0d4c139d
Signed-off-by: Mihir Thakkar <mthakkar@nvidia.com>
Reviewed-on: http://git-master/r/1018322
(cherry picked from commit 7e6fb7254cf7bceb3723e73ca516e7f9b2352fc3)
Reviewed-on: http://git-master/r/1021490
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Arun Kannan <akannan@nvidia.com>
Tested-by: Arun Kannan <akannan@nvidia.com>
Reviewed-by: Kamal Balagopalan <kbalagopalan@nvidia.com>

3 years agoARM: tegra: Disable PMIC WDT at boot
Gagan Grover [Wed, 2 Mar 2016 11:24:29 +0000]
ARM: tegra: Disable PMIC WDT at boot

PMIC WDT boot-timeout was 32 (less than Tegra WDT (180 sec)).
So, in case of non-LP0 hangs, PMIC WDT was causing system reset,
instead of Tegra WDT and hence we were missing FIQ dump as well.
Now, Tegra WDT should trigger reset in case of hangs.

Bug 1737038

Change-Id: Idc21149590fd5cb014f61ba70fabe93750d45ccb
Signed-off-by: Gagan Grover <ggrover@nvidia.com>
Reviewed-on: http://git-master/r/1022598
(cherry picked from commit 22be5469211d21d130911a28f7bff88236240582)
Reviewed-on: http://git-master/r/1024420
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>

3 years agotegra-alt:adsp: Allow "Min ADSP Clock" ctl always
Viswanath L [Wed, 9 Mar 2016 07:31:40 +0000]
tegra-alt:adsp: Allow "Min ADSP Clock" ctl always

"Min ADSP Clock" for the APM is set at the widget ON event, which
sometimes occurs immediately on closing the APM connections (like for
SPKPROT); allowing "Min ADSP Clock" setting only if APM is initialized
causes this to be missed at times

Allowing to set "Min ADSP Clock" before APM is initialized will ensure
that it's always available at the subsequent widget event

Bug 200170455

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

3 years agoasoc: es755: add routine es755_get_select_endpoint
Viraj Karandikar [Fri, 22 Jan 2016 11:54:14 +0000]
asoc: es755: add routine es755_get_select_endpoint

Setting control via tinymix requires get function
to be implemented.

Bug 200100724

Change-Id: I19795e943aca1ece8ddfba40670a1a7c0424501d
Signed-off-by: Viraj Karandikar <vkarandikar@nvidia.com>
Reviewed-on: http://git-master/r/936223
GVS: Gerrit_Virtual_Submit
Reviewed-by: Srinivas Anne <sanne@nvidia.com>
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>

3 years agoarm64: tegra210: jetson-tx1: rename top devkit DT
Shreshtha SAHU [Thu, 3 Mar 2016 06:25:04 +0000]
arm64: tegra210: jetson-tx1: rename top devkit DT

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

Bug 200178102

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

3 years agommc: tegra: Diasble async resume for sdmmc.
Naveen Kumar Arepalli [Thu, 3 Mar 2016 13:20:19 +0000]
mmc: tegra: Diasble async resume for sdmmc.

Bug 1723392

Change-Id: I95abc5576d4f5d2e868698515de5c154434e9db4
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/1023415
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Gagan Grover <ggrover@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

3 years agoarm64: t210: lp8557: increase pwm-period of BLC.
Prafull Suryawanshi [Thu, 3 Mar 2016 05:30:38 +0000]
arm64: t210: lp8557: increase pwm-period of BLC.

bug 1737550

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

Change-Id: I4dac1942f4750618ba18cde0e5d23ffb1665abdb
Signed-off-by: Prafull Suryawanshi <prafulls@nvidia.com>
Reviewed-on: http://git-master/r/1023041
(cherry picked from commit 5d6a4c090fe2e42fce3af6312b7cd67494677fdd)
Reviewed-on: http://git-master/r/1026060
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>

3 years agoARM64: dts: remove T18x dts files and references
Venkat Reddy Talla [Mon, 7 Mar 2016 05:17:52 +0000]
ARM64: dts: remove T18x dts files and references

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

Bug 1737918

Change-Id: I35236c6fa31bc91f6e2150803c8964e45302158c
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/1024568
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agogpu: nvgpu: recycle the cmdbuf instead of freeing after job done
Sagar Kadamati [Fri, 12 Feb 2016 11:45:34 +0000]
gpu: nvgpu: recycle the cmdbuf instead of freeing after job done

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

All allocated cmdbuf's are freed on channel release

we mostly avoid dynamic allocations for cmdbuf

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

Bug 1652936

Change-Id: Ia2d8441a728e5225ef3e1d3775bfae710c46f3d2
Signed-off-by: Sagar Kadamati <skadamati@nvidia.com>
Reviewed-on: http://git-master/r/1013178
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

3 years agoarm: tegra: prioritize board-id based panel init
Naveen Kumar S [Wed, 10 Feb 2016 13:23:20 +0000]
arm: tegra: prioritize board-id based panel init

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

bug 200140014

Change-Id: I2bf2edaf96eee9a7f45ee5f735e475a71ec62c00
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/1010459
(cherry picked from commit bcf25ac5f9a5357772fd64fa8b7e8f0b0eb50c99)
Reviewed-on: http://git-master/r/1026237
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoARM: tegra: read reset-reason for pmic watchdog
Jeetesh Burman [Thu, 24 Dec 2015 13:58:19 +0000]
ARM: tegra: read reset-reason for pmic watchdog

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

Bug 200160618

Change-Id: I6af708a875ccb92d47c4d854498273128e9720df
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/926861
(cherry picked from commit 06703423e5bb82cc540d752670b73dc1bc7d2a3c)
Reviewed-on: http://git-master/r/1023984
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>

3 years agovideo: tegra: eDP: l4t: enable auo 14" 1080p panel
Naveen Kumar S [Wed, 16 Sep 2015 14:37:21 +0000]
video: tegra: eDP: l4t: enable auo 14" 1080p panel

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

bug 200140014

Change-Id: I21e424e4432a572d6e1a17a9727ed9cae27c2f46
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/800150
(cherry picked from commit 38731cf7142723b75aeb2cfcc3d69ddaf5347550)
Reviewed-on: http://git-master/r/1009956
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agovideo: tegra: eDP: l4t: enable sharp 4k panel
Naveen Kumar S [Mon, 1 Feb 2016 16:08:52 +0000]
video: tegra: eDP: l4t: enable sharp 4k panel

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

bug 200140014

Change-Id: Ied631056ad2a5e77fa4357b54caca7373e556c91
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/1000925
(cherry picked from commit 28d27b52fc90dfe3f25ee66b5b8c219acf30be0b)
Reviewed-on: http://git-master/r/1009387
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agodrivers: video: tegra: Add full range HDMI support
Aly Hirani [Thu, 23 Apr 2015 23:41:15 +0000]
drivers: video: tegra: Add full range HDMI support

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

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

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

Bug 1611691

Change-Id: I9c42fea51211c6ed71945a17fe8f1353811951d9
Signed-off-by: Aly Hirani <ahirani@nvidia.com>
Reviewed-on: http://git-master/r/937115
(cherry picked from commit 235ae9a14be0e710232689c88be680ac856e1edf)
Reviewed-on: http://git-master/r/1013673
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoof: Fix __of_device_is_available check
Xiubo Li [Mon, 13 Jan 2014 03:07:28 +0000]
of: Fix __of_device_is_available check

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

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

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

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

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

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

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

Change-Id: I157ee216ca4abb927420273a37922a64680bbd5b
Signed-off-by: Bhadram Varka <vbhadram@nvidia.com>
Reviewed-on: http://git-master/r/1024552
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agoRevert "arm64: config: tegra21: Add CONFIG_HZ=300"
David Lock [Mon, 7 Mar 2016 17:40:57 +0000]
Revert "arm64: config: tegra21: Add CONFIG_HZ=300"

This reverts commit 360395e54cd3dc647dc7cbc0fa218e995eeb51e3.

Bug 200176856

Change-Id: Ieb5719fb8dee0c1d6e67481330141899219dc073
Signed-off-by: David Lock <dlock@nvidia.com>
Reviewed-on: http://git-master/r/1024886
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoarm64: dts: darcy: update fastboot instruction
Yunfan Zhang [Fri, 26 Feb 2016 01:53:50 +0000]
arm64: dts: darcy: update fastboot instruction

- Update fastboot instruction for navigation with Shield Controller

Bug 200176025
Bug 200140080

Change-Id: Ica51f0919e4ac5fff8111662e36d8b018cb41e63
Signed-off-by: Yunfan Zhang <yunfanz@nvidia.com>
Reviewed-on: http://git-master/r/1020393
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vinayak Pane <vpane@nvidia.com>

3 years agoarm64: dts: darcy: enable xusb in bootloader
Yunfan Zhang [Thu, 25 Feb 2016 04:59:57 +0000]
arm64: dts: darcy: enable xusb in bootloader

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

Bug 200140080

Change-Id: I09bc6d06efad6e018c194a3a35d2eb3b9a8800f5
Signed-off-by: Yunfan Zhang <yunfanz@nvidia.com>
Reviewed-on: http://git-master/r/1020392
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Martin Gao <marting@nvidia.com>
Reviewed-by: Vinayak Pane <vpane@nvidia.com>

3 years agoARM64: DT: Add auto detect support for E3333 board
Frank Chen [Thu, 3 Mar 2016 01:52:22 +0000]
ARM64: DT: Add auto detect support for E3333 board

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

Bug 1729926

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

3 years agoARM64: DT: Add support for E3333 camera board
Frank Chen [Thu, 11 Feb 2016 00:47:15 +0000]
ARM64: DT: Add support for E3333 camera board

Add E3333 (ov5693 x6) camera board support

Bug 1729926

Change-Id: Id55e48f5405a7e91d54e6f34b649d0ace931a68a
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/1011398
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Bryan Wu <pengw@nvidia.com>
Reviewed-by: Hayden Du <haydend@nvidia.com>

3 years agoARM64: DT: update auto detect graph settings
Frank Chen [Wed, 2 Mar 2016 22:48:13 +0000]
ARM64: DT: update auto detect graph settings

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

Bug 1737368

Change-Id: I31b47ebc5d603fd2f7888f7425445bb2114f05fb
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/1022862
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Bhanu Murthy V <bmurthyv@nvidia.com>
Reviewed-by: Hayden Du <haydend@nvidia.com>

3 years agoMerge 'Linux 3.10.96' into rel-24
Mrutyunjay Sawant [Mon, 7 Mar 2016 12:43:35 +0000]
Merge 'Linux 3.10.96' into rel-24

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

Bug 200176691

Change-Id: Ia4f0071f52aa0068c8eb8165739dab39414d97f5
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>

3 years agotegra: hdmi: Add support for graceful HDR exit
Arun Swain [Tue, 1 Mar 2016 03:24:15 +0000]
tegra: hdmi: Add support for graceful HDR exit

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

Bug 200122117

Change-Id: I6575cb742827bd83f7f60eac30c4c487733187a4
Chanae-Id: I6c37cc45ba8750b5a45cbe8b5818b5c16340b00c
Signed-off-by: Arun Swain <arswain@nvidia.com>
Reviewed-on: http://git-master/r/1022283
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agotegra: soctherm: fix negative temp debugfs output
Shreshtha SAHU [Mon, 22 Feb 2016 09:48:50 +0000]
tegra: soctherm: fix negative temp debugfs output

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

Bug 200168448

Change-Id: I1c7220c41d51f1a350db32cbf6f722cf97cdc258
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/1014847
(cherry picked from commit 43519725b7a82482dd715ab92033ad746ae28b94)
Reviewed-on: http://git-master/r/1020605
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agokconfig: Foster PRO no idle sata
David DSH [Thu, 3 Mar 2016 20:51:22 +0000]
kconfig: Foster PRO no idle sata

Idle doens't work properly with this feature in.

boot.img size is reduced by 2632 bytes

Bug 1579438
Bug 200176631
Bug 200173379

Change-Id: I4b1f9568bec4aed55ea98726dbbeb6831fcd7bf3
Signed-off-by: David DSH <ddastoussthi@nvidia.com>
(cherry picked from commit 223b9ecdb0321b06b225eb91d25802eaa330a6d8)
Reviewed-on: http://git-master/r/1023631
Reviewed-on: http://git-master/r/1024272
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vinayak Pane <vpane@nvidia.com>

3 years agoarm: tegra: ardbeg: set gpio_hp_det correctly
Byungkuk Seo [Fri, 26 Feb 2016 06:15:52 +0000]
arm: tegra: ardbeg: set gpio_hp_det correctly

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

Bug 200174456

Change-Id: I8b7e7ee766ccb34f920740a42dded58497370a4e
Signed-off-by: Byungkuk Seo <bseo@nvidia.com>
Reviewed-on: http://git-master/r/1023221
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

3 years agodts:jetson-cv: Use nvoice.elf for ADSP-AEC
Viswanath L [Fri, 26 Feb 2016 11:37:13 +0000]
dts:jetson-cv: Use nvoice.elf for ADSP-AEC

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

Bug 200164448

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

3 years agovideo: tegra: l4t: set dc blank on display timeout
Naveen Kumar S [Wed, 13 Jan 2016 11:05:05 +0000]
video: tegra: l4t: set dc blank on display timeout

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

bug 200136625
bug 200144212
bug 200171335

Change-Id: I5b1e172e6fddfddb7bfdcd9e54afa810baf2bbef
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/932191
(cherry picked from commit c4437f442f8927d2ac4c0190aa255e5fee756588)
Reviewed-on: http://git-master/r/1020615
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agogpu: nvgpu: Call ELPG enable/disable on condition
Mahantesh Kumbar [Tue, 1 Mar 2016 06:17:31 +0000]
gpu: nvgpu: Call ELPG enable/disable on condition

Call ELPG enable/disable if ELPG support enabled else ignore

Bug 200156347

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

3 years agovideo: tegra: use single timing constraints check
Ivan Raul Guadarrama [Mon, 29 Feb 2016 19:54:38 +0000]
video: tegra: use single timing constraints check

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

Bug 1721518

Change-Id: Icf88e9c3479a1a0f54a80de12c097130c7f2489b
Signed-off-by: Ivan Raul Guadarrama <iguadarrama@nvidia.com>
Reviewed-on: http://git-master/r/1021564
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agovideo: tegra: dc: address VRR monitor quirks
Daniel Solomon [Fri, 18 Dec 2015 05:14:12 +0000]
video: tegra: dc: address VRR monitor quirks

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

Bug 1711087

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

3 years agovideo: tegra: dc: tag vrr modes using vmode
Daniel Solomon [Sat, 14 Nov 2015 04:40:37 +0000]
video: tegra: dc: tag vrr modes using vmode

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

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

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

Bug 1637861

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