4 years agotegra-alt: Jetson-E/CV: Update DMIC DAI params
Viswanath L [Mon, 31 Aug 2015 12:46:21 +0000]
tegra-alt: Jetson-E/CV: Update DMIC DAI params

Update DAI params for "spdif-dit-2" (DMIC) so that DMIC driver
receives correct PCM configuration

Bug 200135303
Bug 200078772

Change-Id: Id65fea270483cff0953ad75f5d1e2142f508631f
Signed-off-by: Viswanath L <viswanathl@nvidia.com>
(cherry picked from commit af71a7ce59de6b2fa59cb886e586d66a24720d4f)
Reviewed-on: http://git-master/r/794222
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>

4 years agoARM: tegra210: hawkeye: add top level DTS file for P2290-A04
Laxman Dewangan [Thu, 3 Sep 2015 17:11:05 +0000]
ARM: tegra210: hawkeye: add top level DTS file for P2290-A04

Add top level DTS file for P2290-A04 DVT and MP.

bug 1679130

Change-Id: I27b518b323265f52b04ccef8fafacaca30d1f72d
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/793807
(cherry picked from commit 0f97b1f53881cc9db8e0b465839068133ae48e18)
Reviewed-on: http://git-master/r/794231

4 years agoARM64: t210: Hawkeye: remove GPU rail disable time configuration
Laxman Dewangan [Sat, 29 Aug 2015 08:20:20 +0000]
ARM64: t210: Hawkeye: remove GPU rail disable time configuration

There is no need to provide the disable time got GPU rail
and hence setting it as 2US instead of 60mS.

2uS is configured so that driver default based on datasheet
should be override with platform need.

Change-Id: Ie7d7a9f67edbfcd27ebf23521a4b8fc53b3ff04b
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/791405
(cherry picked from commit 9677f1f754bcc03e7ed803cf2fe01bb5db948fbb)
Reviewed-on: http://git-master/r/794230

4 years agovideo: tegra: hdmi: make clock_refcount atomic
Santosh Reddy Galma [Wed, 19 Aug 2015 14:08:45 +0000]
video: tegra: hdmi: make clock_refcount atomic

remove clock_refcount_lock mutex variable in tegra_hdmi
structure as it is not significant and make clock_refcount
variable atomic. Handle clock_refcount properly in
tegra_hdmi_get() and tegra_hdmi_put().

Bug 200132061

Change-Id: I21eff40e0c2884ca1f7bcac692ac23b32319f6fb
Signed-off-by: Santosh Reddy Galma <galmar@nvidia.com>
Reviewed-on: http://git-master/r/785977
(cherry picked from commit cd7597982918e864ac230374d350038daa2eb85a)
Reviewed-on: http://git-master/r/791717
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

4 years agopower: tegra21: Add trace prints for powergate
Sumit Singh [Mon, 31 Aug 2015 09:07:53 +0000]
power: tegra21: Add trace prints for powergate

Create a trace event for powergate, and add trace prints
in different powergate functions.

To enable powergate event, use:
echo 1 > /d/tracing/events/power/powergate

bug 200135730

Change-Id: Idc4fc2c78e36d42a118d9ba0df662b64b7f85ac3
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
Reviewed-on: http://git-master/r/791707
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agovideo: tegra: dp: port dp_cust.py to android
Shu Zhong [Thu, 23 Jul 2015 23:12:15 +0000]
video: tegra: dp: port dp_cust.py to android

dp_cust.py is a syseng script that allows the user to configure
certain DP settings with TegraShell in test mode. This patch ports
this functionality to android as a debugfs node. This debugfs node
is not meant to be used with a real DP sink. See bug below for usage
info.

Bug 1651088

Change-Id: If749fc0cb36d6aff7bbfa5e5472d413231071f2b
Signed-off-by: Shu Zhong <shuz@nvidia.com>
Reviewed-on: http://git-master/r/774160
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

4 years agovideo: tegra: dp: fix dpaux read/write while cond
Shu Zhong [Mon, 24 Aug 2015 20:18:10 +0000]
video: tegra: dp: fix dpaux read/write while cond

timeout_retries and defer_retries are declared as
u32, and are always >= 0. This is a coverity issue.

Bug 1416640

Change-Id: I8bacfea4f170bb7fcfd9090820e274679cfa71d5
Signed-off-by: Shu Zhong <shuz@nvidia.com>
Reviewed-on: http://git-master/r/788384
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>

4 years agodriver: thermal: pwm fan driver add tach feedback
Martin Gao [Fri, 28 Aug 2015 03:00:07 +0000]
driver: thermal: pwm fan driver add tach feedback

- use its irq counts to calculate realtime fan rpm
- expose debugfs nodes

Bug 1542391

Change-Id: Ib565ae97217a6bbd2622f4a6dd735f75d3cd9d19
Signed-off-by: Martin Gao <marting@nvidia.com>
Reviewed-on: http://git-master/r/790728
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>

4 years agoarch: arm64: boot: dts: pwm fan driver dtsi change
Martin Gao [Fri, 28 Aug 2015 22:55:54 +0000]
arch: arm64: boot: dts: pwm fan driver dtsi change

- create a tegra210-pwm-fan.dtsi for common shared data
- added tach period in dtsi to support tach feedback counting

Bug 1542391

Change-Id: I9b4d04f11b72b015ededd4c578e18fb3cbfa7c80
Signed-off-by: Martin Gao <marting@nvidia.com>
Reviewed-on: http://git-master/r/763892
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>
Tested-by: Raymond Poudrier <rapoudrier@nvidia.com>

4 years agogpu: nvgpu: cyclestats snapshot permissions rework
Leonid Moiseichuk [Tue, 11 Aug 2015 10:38:51 +0000]
gpu: nvgpu: cyclestats snapshot permissions rework

Cyclestats snapshot feature is expected for new devices.
The detection code was isolated in separate function and run-time
check added to validate/allow ioctl calls on the current GPU.

Bug 1674079

Change-Id: Icc2f1e5cc50d39b395d31d5292c314f99d67f3eb
Signed-off-by: Leonid Moiseichuk <lmoiseichuk@nvidia.com>
Reviewed-on: http://git-master/r/781697
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

4 years agovideo: tegra: camera: ISOMGR support
Sudhir Vyas [Fri, 28 Aug 2015 16:10:46 +0000]
video: tegra: camera: ISOMGR support

Add tegra_camera_ctrl as an iso client
to ISOMGR driver.

Bug 200133567

Change-Id: Idadaccdc9f1da5129018321a600f1d2c46903a57
Signed-off-by: Sudhir Vyas <svyas@nvidia.com>
Reviewed-on: http://git-master/r/774482
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Charles Kong <charlesk@nvidia.com>

4 years agoisomgr: Add tegra_camera_ctrl iso client
Sudhir Vyas [Fri, 28 Aug 2015 16:38:41 +0000]
isomgr: Add tegra_camera_ctrl iso client

tegra_camera_ctrl is common camera driver,
its iso bw requirements is camera's total
iso bw for given usecase. Add it as iso
client to ISOMGR.

Bug 200133567

Change-Id: I84ecd05daa1b074dbb556a3cec774df9be1b67ae
Signed-off-by: Sudhir Vyas <svyas@nvidia.com>
Reviewed-on: http://git-master/r/791102
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Charles Kong <charlesk@nvidia.com>

4 years agoarm64: jetson-cv: enable backlight for e3320
Shu Zhong [Thu, 2 Jul 2015 23:11:26 +0000]
arm64: jetson-cv: enable backlight for e3320

Bug 1662119

Change-Id: I286d80867cb7dd724d2ab27bbd0951a849b0d50f
Signed-off-by: Shu Zhong <shuz@nvidia.com>
Reviewed-on: http://git-master/r/765499
(cherry picked from commit 97487b644e6a06145f6813ba20b50fa704bf3afa)
Reviewed-on: http://git-master/r/792902
Tested-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-by: Dara Ramesh <dramesh@nvidia.com>

4 years agovideo: tegra: dp: WAR for CTS 400.3.2.*
Animesh Kishore [Tue, 25 Aug 2015 11:40:40 +0000]
video: tegra: dp: WAR for CTS 400.3.2.*

CTS description: Link re-train after irq_event
due to loss of symbol lock, clock recovery or
inter-lane alignment.

DPR-120 v1.9[r6] issues irq_event during link training.
Not expected but analyzer limitation. .Post irq_event,
analyzer waits for status offset 0x200-0x205 read. Once host
reads the offsets, analyzer expects next activity from host
to be link BW initialization followed by training pattern write.
This creates conflicts since host is already in link training
process and continues to do so in expectation of recovering from
loss of synchronization. VESA suggests irq_event post link training
by host. DPR-120 not aligned to this. Irrespective of this limitation,
issue would have mitigated if host delays read of status offset
till post link training. However, on tegra status offset read is
automatic by HW. Unlike dGPU, no control for SW to disable this.

The WAR does not enable default link training post unblank only for
affected CTS. Once irq_event is issued by analyzer we initiate link
training. This keeps the motive of irq_event intact within analyzer
limitations. No side effect on general driver functionality.

Bug 200103501

Change-Id: I8e2c3de71e9943c4d053cb9bbc04dd22c38eb7af
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/788850
Reviewed-by: Shu Zhong <shuz@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

4 years agoarm64: dts: ABCA: update sound node.
Harry Hong [Tue, 1 Sep 2015 01:08:50 +0000]
arm64: dts: ABCA: update sound node.

Audio is broken on ABCA platform which is
the same audio codec/usecase of Jetson-e.
Applying jetson-e update.

1.Add ADSP audio node.
  Add dai-link for I2S3.
 it's from http://git-master/r/#/c/748103/

2.Add DAI for dmic2 on jetson platform.
 it's from http://git-master/r/#/c/749289/

Bug 200078772
Bug 200104719
Bug 200113589

Change-Id: I3282c277f12ba74d492adae69aaa2c3a59c8cc31
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/792112
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>

4 years agoinput: touch: sharp: update to version 12.
Jordan Nien [Wed, 5 Aug 2015 02:33:32 +0000]
input: touch: sharp: update to version 12.

- Fixed an issue that FW is not loaded
  if service is killed in LP0 state.
- Disable touch power if "wakeup_enable" is 2.

Bug 1671750
Bug 1657085

Change-Id: Icbb3570fe9d6496acc8a7dd3f992f6ae81711811
Signed-off-by: Jordan Nien <jnien@nvidia.com>
Reviewed-on: http://git-master/r/785676
(cherry picked from commit ad7e18682c78505b8051d6588ed31deca07dff2d)
Reviewed-on: http://git-master/r/788747
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agomisc: tegra_cec: fix cec_logical_addr_store print
Spencer Sutterlin [Fri, 30 Jan 2015 01:45:06 +0000]
misc: tegra_cec: fix cec_logical_addr_store print

Bug 1637415

Change-Id: Ib165165b67f5ea3723914270215de06df48f6591
Signed-off-by: Spencer Sutterlin <ssutterlin@nvidia.com>
Reviewed-on: http://git-master/r/679245
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Xia Yang <xiay@nvidia.com>
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agoarm64: dt: odin: enable spidev
David Yu [Wed, 26 Aug 2015 06:04:11 +0000]
arm64: dt: odin: enable spidev

Bug 200133740

Change-Id: If8ff5af240814d230a0f8575534e3308d9caa5c7
Signed-off-by: David Yu <davyu@nvidia.com>
Reviewed-on: http://git-master/r/789402
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agovideo: tegra: dc: continue HDCP if Ainfo fails
Sharath Sarangpur [Fri, 21 Aug 2015 01:51:37 +0000]
video: tegra: dc: continue HDCP if Ainfo fails

Continue HDCP 1.x authentication if Ainfo write fails

Bug 200125552

Change-Id: I0856f84927392e2e3da741c1260ec21d86cbee60
Signed-off-by: Sharath Sarangpur <ssarangpur@nvidia.com>
Reviewed-on: http://git-master/r/786969
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>

4 years agoiio: sensors: bh1730fvc: fix debugfs stuck
David Yu [Thu, 27 Aug 2015 04:50:37 +0000]
iio: sensors: bh1730fvc: fix debugfs stuck

Bug 200108481
Bug 200113585

Change-Id: Ic3498a86c35cda33e127063851b9305152f2ad27
Signed-off-by: David Yu <davyu@nvidia.com>
Reviewed-on: http://git-master/r/790120
(cherry picked from commit 67531c3b4b4b2f28d51de43e7b9317ebf49f63a8)
Reviewed-on: http://git-master/r/790125
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-by: Robert Collins <rcollins@nvidia.com>

4 years agovideo: tegra: dc: set channel status register
Youngjin Kim [Fri, 28 Aug 2015 04:44:16 +0000]
video: tegra: dc: set channel status register

set channel status register value to disable
overriding channel data.

Bug 200132981

Change-Id: If7730dfa06a43c0236f954666619e36f0e28f507
Signed-off-by: Youngjin Kim <nkim@nvidia.com>
Reviewed-on: http://git-master/r/790778
(cherry picked from commit d161f42f5014f09767013b68631039dce1dcb33b)
Reviewed-on: http://git-master/r/791022
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rahul Mittal <rmittal@nvidia.com>
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>

4 years agoarm64: dts: add dmic controls
Sameer Pujar [Fri, 21 Aug 2015 14:21:45 +0000]
arm64: dts: add dmic controls

DMIC control paths are added to support capture
from dmic connected via codec.
SuperIO has rt5658 codec and the device address
is different from what we have on EVM. Added
entry in superIO dts to work for both

Note: The device needs to be flashed with proper
      DTB file to work for both EVM and SuperIO

Bug 200131501

Change-Id: Ifdc2867b7999648b76cb803a5df46f3b44e38b5c
Signed-off-by: Sameer Pujar <spujar@nvidia.com>
Signed-off-by: Diwakar Paliwal <dpaliwal@nvidia.com>
Reviewed-on: http://git-master/r/787365
Reviewed-by: Sharad Gupta <sharadg@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agopower: max17042: don't override 0x3B register
Harry Hong [Tue, 1 Sep 2015 02:33:52 +0000]
power: max17042: don't override 0x3B register

the register, 0x3B is specific to Max17042.
Override reg 0x3B only if chip type is Max17042.

Bug 200111955

Change-Id: I7a2f1a117442a65d289213041c74877be2723d9b
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/792148
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoASoC: Codec: Fix dmic capture in rt5659 driver
Sameer Pujar [Fri, 21 Aug 2015 14:14:44 +0000]
ASoC: Codec: Fix dmic capture in rt5659 driver

The change is needed for allowing the capture to
happen from connected dmic via codec.

Bug 200131501

Change-Id: I91bdcbcd96110d756e10b8ebdd4096e5eb485e91
Signed-off-by: Sameer Pujar <spujar@nvidia.com>
Reviewed-on: http://git-master/r/787362
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: Sharad Gupta <sharadg@nvidia.com>
Tested-by: Diwakar Paliwal <dpaliwal@nvidia.com>
Reviewed-by: Diwakar Paliwal <dpaliwal@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoARM64: DT: move sdmmc pinmux setting to right dt
Shawn Joo [Tue, 21 Jul 2015 03:14:10 +0000]
ARM64: DT: move sdmmc pinmux setting to right dt

move sdmmc pinmux and drv node from board pinmux
dt file to new sdmmc dt file

Bug 200124072

Change-Id: Ia63f11bba3897c28aab208640f359beaa2d7b8c5
Reviewed-on: http://git-master/r/772632
Signed-off-by: Shawn Joo <sjoo@nvidia.com>
Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/776196
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>

4 years agoext4: make sure ex.fe_logical is initialized
Theodore Ts'o [Thu, 20 Feb 2014 05:36:41 +0000]
ext4: make sure ex.fe_logical is initialized

The lowest levels of mballoc set all of the fields of struct
ext4_free_extent except for fe_logical, since they are just trying to
find the requested free set of blocks, and the logical block hasn't
been set yet.  This makes some static code checkers sad.  Set it to
various different debug values, which would be useful when
debugging mballoc if these values were to ever show up due to the
parts of mballoc triyng to use ac->ac_b_ex.fe_logical before it is
properly upper layers of mballoc failing to properly set, usually by
ext4_mb_use_best_found().

Manual cherry-pick from 4.0, commit ab0c00fcc

Coverity ID: 15724
Coverity ID: 15725

Bug 200083369

Change-Id: I3c99d17a241b3de8e900ca3d36021a7c63df3d2c
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Sajan Karumanchi <skarumanchi@nvidia.com>
Reviewed-on: http://git-master/r/736695
(cherry picked from commit bc524208f78798c945b22cbe4201a16fa51e3d65)
Reviewed-on: http://git-master/r/788059
Reviewed-by: Kirankumar Bobbu <kbobbu@nvidia.com>
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>

4 years agoARM:Fix deadlock scenario with smp_send_stop()
Stephen Boyd [Tue, 30 Jul 2013 22:09:46 +0000]
ARM:Fix deadlock scenario with smp_send_stop()

If one process calls sys_reboot and that process then stops other
CPUs while those CPUs are within a spin_lock() region we can
potentially encounter a deadlock scenario like below.

CPU 0                   CPU 1
-----                   -----
                        spin_lock(my_lock)
smp_send_stop()
 <send IPI>             handle_IPI()
                         disable_preemption/irqs
                          while(1);
 <PREEMPT>
spin_lock(my_lock) <--- Waits forever

We shouldn't attempt to run any other tasks after we send a stop
IPI to a CPU so disable preemption so that this task runs to
completion.

bug 200135541

Change-Id: Ib21cedb53bc08a0b9d434b37fa4d1eb7f3df74a2
Reported-by: Sundarajan Srinivasan <sundaraj@codeaurora.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Ian Chang <ianc@nvidia.com>
Reviewed-on: http://git-master/r/792119
Reviewed-by: Robert Shih <rshih@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agoAsoc:tegra:rt5639: Fix repeated HS notifications
Diwakar Paliwal [Tue, 18 Aug 2015 04:50:02 +0000]
Asoc:tegra:rt5639: Fix repeated HS notifications

In suspend state, enabling interrupt before cache syncing were giving
false interrupts. Upon activating screen, these were seen as multiple
HS connected and disconnected notifications. Changed the order to
enable interrupt after rt5639 resume to fix the issue.

Bug 200066074

Change-Id: Ifca0b42a7fdf7d99dc33e124214ad161b76cafe2
Signed-off-by: Diwakar Paliwal <dpaliwal@nvidia.com>
Reviewed-on: http://git-master/r/785320
(cherry picked from commit 889617fbc83b3bb29fd3d82cffc53ab73f6b7169)
Reviewed-on: http://git-master/r/791581
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>

4 years agoplatform: nvadsp: Add spinlock in empty Handler
Ajay Nandakumar [Thu, 6 Aug 2015 14:56:42 +0000]
platform: nvadsp: Add spinlock in empty Handler

Adding Spinlock in hwmbox_send_empty_int_handler to prevent dequeuing
when an enqueue is happening from a thread on a different CPU.

Replace check for spurious mbox in empty handler with just a print.

Also remove API nvadsp_hwmbox_send_data from global include.

Bug 200123443
Bug 200126739

Change-Id: Iec79ecd9c83f0a2e8fe2945e8b1078028deaf90f
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Reviewed-on: http://git-master/r/779903
(cherry picked from commit b3eb2b1378aae988658b296c22a00dd5ac2052b7)
Reviewed-on: http://git-master/r/783979
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agoplatform: nvadsp: Fix exit error path on start
Ajay Nandakumar [Wed, 29 Jul 2015 06:43:36 +0000]
platform: nvadsp: Fix exit error path on start

Fixing the error path of ADSP when nvadsp_os_start fails.
Otherwise, this is leading to a kernel panic and crashing the
kernel on accessing ADSP without starting the ADSPOS.

Increasing DFS mailbox timeout to allow more time on ADSP to
process ADSP frequency update request.

Setting ALLOWED_CRASHES to 1 as interrupt state (GIC) and
memory state cannot be cleaned up properly in normal
scenario i.e. with audio playback ongoing.

Also, fixing the print from wfe to wfi as ADSP enters WFI
when suspended or stopped and updating DFS mailbox error
messages.

Bug 200123443
Bug 200126739

Change-Id: I0ae39f32f9ff6e51b4875ce63f2e4c64f258f847
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-on: http://git-master/r/776195
(cherry picked from commit 70fbe992a1b208513198cd725925c73cc62db1e2)
Reviewed-on: http://git-master/r/785152
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agogboot/dts: Cfg Hawkeye INA forced continuous scan
Amith [Tue, 24 Mar 2015 18:41:45 +0000]
gboot/dts: Cfg Hawkeye INA forced continuous scan

Add key for forced continuous measurement mode for INA3221 device and
io-channel-cells key.

Bug 1628176

Change-Id: Ib4c151632b067e6c10def15a4c0904864382e5a8
Signed-off-by: Amith <aramachan@nvidia.com>
Reviewed-on: http://git-master/r/721926
(cherry picked from commit 011d15e806ef12d672e62f186c4c2a665e768f73)
Reviewed-on: http://git-master/r/788523
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: John Moser <jmoser@nvidia.com>
Tested-by: John Moser <jmoser@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoarm: tegra: t124: Enable CONFIG_DM_VERITY
Ian Chang [Fri, 21 Aug 2015 06:11:06 +0000]
arm: tegra: t124: Enable CONFIG_DM_VERITY

Enable dm-verity daemon for verified boot.
This is requirement of Android M.

bug 200130698

Change-Id: I21087d9561af948e69a9163f4208376cb4f16d0e
Signed-off-by: Ian Chang <ianc@nvidia.com>
Reviewed-on: http://git-master/r/788797
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

4 years agoiio: proximity: IQS2x3 v14 IRQ edge
Erik Lilliebjerg [Fri, 21 Aug 2015 15:26:21 +0000]
iio: proximity: IQS2x3 v14 IRQ edge

- Add a DT option to select interrupt trigger type.
- Change gpio_get_value calls to gpio_get_value_cansleep in case a GPIO
  expander is used.
- Update documentation for the DT option.

Bug 200129230

Change-Id: Iebdb89dabddf05a09c2c9d36cc3cf3592806b58e
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/787380
(cherry picked from commit efe0df79fc1f4313fa49673b5c6dedc3d5fb4fef)
Reviewed-on: http://git-master/r/792010
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Tested-by: Robert Collins <rcollins@nvidia.com>

4 years agodts: e2614: Add sensor support
Robert Collins [Wed, 12 Aug 2015 21:05:02 +0000]
dts: e2614: Add sensor support

Bug 200129230

Change-Id: I5abee35fc51751440e7fa75901030a740b27a5a4
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Reviewed-on: http://git-master/r/783890
(cherry picked from commit ca814d0eef4b989ba6d80321316f7445d7bc5bce)
Reviewed-on: http://git-master/r/782644
Reviewed-by: Automatic_Commit_Validation_User

4 years agoconfig: l4t: tegra21: disable wake_locks
Zheng Liu [Thu, 23 Jul 2015 18:57:02 +0000]
config: l4t: tegra21: disable wake_locks

Disable CONFIG_HAS_WAKELOCK and CONFIG_WAKELOCK for L4T since wake_locks are
not fully supported on Linux.

Bug 200114050

Change-Id: I3ea2d67ef0ad859dbaa7391f2c33e4520aedd362
Signed-off-by: Zheng Liu <zhliu@nvidia.com>
Reviewed-on: http://git-master/r/774039
(cherry picked from commit ddab9e975e7337f560ac04d06c2e4741357a16b8)
Reviewed-on: http://git-master/r/786052
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Allen Martin <amartin@nvidia.com>

4 years agoarm64: t210: update p2143-1170 emc tables to v07
Ishwarya Balaji Gururajan [Mon, 24 Aug 2015 21:52:57 +0000]
arm64: t210: update p2143-1170 emc tables to v07

update emc dvfs table and dvfs derating table to v07
* DVFS_gen_script update to V1.6 from V1.5 to support moving average method for
periodic calibration.
* It improves power supply noise margin (http://nvbugs/1659417)
* Update DVFS table format to rev0x7
* This requires DVFS sequence change V21021

Bug 1608816

Change-Id: Ib0d89c519a101eada4c23059a80c2f326742a825
Signed-off-by: Ishwarya Balaji Gururajan <igururajan@nvidia.com>
Reviewed-on: http://git-master/r/788420
Reviewed-by: Mitch Luban <mluban@nvidia.com>

4 years agogpu: nvgpu: dump PGRAPH_PRI on error
Sam Payne [Thu, 20 Aug 2015 22:47:21 +0000]
gpu: nvgpu: dump PGRAPH_PRI on error

dumps NV_PGRAPH_PRI_GPC0_GPCCS_FS_GPC
whenever pbus sends the 0xbadf13 error

bug 1662268

Change-Id: I302ffe5c86098e7235ecc8c071a5e2c852455565
Signed-off-by: Sam Payne <spayne@nvidia.com>
Reviewed-on: http://git-master/r/786883
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

4 years agovideo: tegra: nvmap: fix incorrect tag warning generation
Krishna Reddy [Fri, 28 Aug 2015 22:59:40 +0000]
video: tegra: nvmap: fix incorrect tag warning generation

Bug 1592678

Change-Id: If7f6ce717a8e99b30a24da5fb6c9bad08c802515
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/791310

4 years agovideo: tegra: host: remove nvhost_module_set_devfreq_rate()
Shridhar Rasal [Mon, 24 Aug 2015 11:36:57 +0000]
video: tegra: host: remove nvhost_module_set_devfreq_rate()

- API nvhost_module_set_devfreq_rate() is no more used
  remove it's definition

Bug 1645757

Change-Id: Ifce552981f155fc1f4ff01c9408c5fef901a15c1
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/788150

4 years agovideo: tegra: host: add emc scaling as ACM client
Shridhar Rasal [Mon, 24 Aug 2015 11:33:57 +0000]
video: tegra: host: add emc scaling as ACM client

Bug 1645757

Change-Id: Icc681ce41944e4dc296862a59488c207b81d5716
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/788149

4 years agovideo: tegra: host: add devfreq as acm client
Shridhar Rasal [Mon, 24 Aug 2015 11:10:25 +0000]
video: tegra: host: add devfreq as acm client

- This registers devfreq as acm client to update
  clk to replace nvhost_module_set_devfreq_rate().

Bug 1645757

Change-Id: Iac195bd8176a201f1d9fddeef407dfd3a969b621
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/788124

4 years agoarch: arm64: dts: enable fast maxim charger
Rakesh Babu Bodla [Fri, 21 Aug 2015 15:44:47 +0000]
arch: arm64: dts: enable fast maxim charger

Add DT support for maxim fast charger for hawkeye.

Bug 200131998

Change-Id: I5cf16bf5c0c57d5f04c349c0059eb7b9046424d4
Signed-off-by: Rakesh Babu Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/787391
(cherry picked from commit 272e4f20e14f180401c909ffe37a03fcb4f72099)
Reviewed-on: http://git-master/r/789498
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoarm64: tegra: jetson_cv: enable seamless display
Kerwin Wan [Thu, 6 Aug 2015 10:17:54 +0000]
arm64: tegra: jetson_cv: enable seamless display

Enable avdd and dvdd of panel during boot on
to enable seamless display.

Change-Id: Id298fb964a51d5cff42192692f8a30634ccce322
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/779737
(cherry picked from commit 7062af00c63b93be59d05bae553c7b5f198a3259)
Reviewed-on: http://git-master/r/791560
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

4 years agovideo: tegra: use simple ref_to_sync for yuv420
Ivan Raul Guadarrama [Mon, 17 Aug 2015 10:20:24 +0000]
video: tegra: use simple ref_to_sync for yuv420

When yuv420 modes are selected, use simple standard values for the ref_to_sync
parameter. In any other case, use the calculated values.

Bug 1668513
Bug 200129063

Change-Id: I1612cb59859b17f0ac60b4bcdcbafccf3392d74b
Signed-off-by: Ivan Raul Guadarrama <iguadarrama@nvidia.com>
Reviewed-on: http://git-master/r/785392
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Santosh Galma <galmar@nvidia.com>
Tested-by: Santosh Galma <galmar@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

4 years agoRevert "video: tegra: avoid zero for h_ref_to_sync calc"
Ivan Raul Guadarrama [Mon, 17 Aug 2015 10:09:31 +0000]
Revert "video: tegra: avoid zero for h_ref_to_sync calc"

This reverts commit 2b7d0c20b909021c071df2ca3aee4e3a151af3ec.

Bug 200129063

Change-Id: I6d3a4011004c0a9c53b321b5a391ccca8787a03c
Signed-off-by: Ivan Raul Guadarrama <iguadarrama@nvidia.com>
Reviewed-on: http://git-master/r/785389
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Santosh Galma <galmar@nvidia.com>
Tested-by: Santosh Galma <galmar@nvidia.com>
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

4 years agoqos: Priority based request disable knob
Sai Gurrappadi [Mon, 17 Aug 2015 22:07:13 +0000]
qos: Priority based request disable knob

/sys/module/qos/parameters/disable_priorities now allows users to
disable all requests made with priority values less than
disable_priorities. This is useful for testing and debugging.

Bug 1240893
Bug 200116272

Change-Id: I3d9d734739310fd773dfa5bd67d7c549ca547aa2
Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/786185
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agodrivers: media: platform: ov10823 60fps modes
Gary Fitzer [Tue, 30 Jun 2015 22:03:50 +0000]
drivers: media: platform: ov10823 60fps modes

Add 4336x1220 and 2168x1220 at 60fps sensor modes
to ov10823 table.

Bug 1661020.

Change-Id: I4bc169645e559a389401dc2db328b2891bbfae3d
Signed-off-by: Gary Fitzer <gfitzer@nvidia.com>
Reviewed-on: http://git-master/r/764428
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hu He <hhe@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: David Wang (SW-TEGRA) <davidw@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agoof: reserved_mem: fix cell count for memory-region property
Sri Krishna chowdary [Fri, 28 Aug 2015 05:37:15 +0000]
of: reserved_mem: fix cell count for memory-region property

cell count represents the number of cells following a phandle
that are relevant to the phandle. There are 0 such cells for
memory-region property, it contains phandles entirely

Bug 200133729

Change-Id: Iba39de7cd31ed48314689dae7219b5cbb55f6c58
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/790825
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

4 years agoARM: configs: tegra13: remove CONFIG_ANDROID
Sri Krishna chowdary [Mon, 24 Aug 2015 17:11:41 +0000]
ARM: configs: tegra13: remove CONFIG_ANDROID

remove android specific configs from l4t defconfig.

Bug 200027296

Change-Id: I2645442d9858e905ecd7e2c10a946691c4129487
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/788278
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

4 years agotegra: adma: fix reg offset in channel_set_field
Viraj Karandikar [Mon, 24 Aug 2015 06:21:01 +0000]
tegra: adma: fix reg offset in channel_set_field

Add missing channel base offset in channel_set_field().
Without the base offset, value from first channel was
read, modified and invalid value was being written to
the channel of interest.

When updating bits in CTRL register, the invalid value
can result in change of direction in middle of transfer.
Specific timing of this change of direction in middle
of transfer can hang ADMA state machine.

ADMA hang can result in incomplete transaction at ABRIDGE,
blocking all further transactions to/from APE modules.
In one particular case, ADSP transactions were getting
blocked causing ADSP hang.

Bug 200123443
Bug 1631557

Change-Id: I5d3392a052f400234ad2fb09e15123094a538132
Signed-off-by: Viraj Karandikar <vkarandikar@nvidia.com>
Reviewed-on: http://git-master/r/787974
(cherry picked from commit 7a34cae8d03cce61d763ee52f07125f3de46a7a3)
Reviewed-on: http://git-master/r/791041
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Dara Ramesh <dramesh@nvidia.com>

4 years agosecurity: tlk_driver: pass device info to DMA API
Amit Sharma (SW-TEGRA) [Tue, 25 Aug 2015 08:11:09 +0000]
security: tlk_driver: pass device info to DMA API

API: circ_buf_init() allocates a shared buffer in DMA memory for TLK logging.
For this it calls dma_alloc_coherent() API with first arg: device as NULL.
However, in order to monitor the DMA'able memory in debugfs "/d/dma/usage",
we need the device name info of each client which uses the DMA memory API's
like: dma_{alloc/free}_coherent.

Inorder to get the device info do following:
1) change  startup sequence from arch_initcall to module_init
2) extern declaration of tlk_misc_device in 'ote_protocol.h' and pass
   'tlk_misc_device.this_device' info to DMA API's.

Bug 200134203

Change-Id: Idfb805f84cfd9df1d4c1762740628852c0acca9c
Signed-off-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com>
Reviewed-on: http://git-master/r/788697
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agomm: disable kswapd for ZONE_HIGHMEM in android only
Amit Sharma (SW-TEGRA) [Fri, 14 Aug 2015 09:05:59 +0000]
mm: disable kswapd for ZONE_HIGHMEM in android only

Disable the kswapd for ZONE_HIGHMEM only for android when ZRAM is disabled.

Bug 200118847

Change-Id: If9c507ebd9cf9be375935321895830c3838916ec
Signed-off-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com>
Reviewed-on: http://git-master/r/783552
(cherry picked from commit 8a488335b059af9445296c217137cf6e2d1bd37f)
Reviewed-on: http://git-master/r/791513
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Tested-by: Sachin Nikam <snikam@nvidia.com>

4 years agomm: avoid kswapd for normal zone when dma32 zone exist in android only
Amit Sharma (SW-TEGRA) [Wed, 19 Aug 2015 05:30:57 +0000]
mm: avoid kswapd for normal zone when dma32 zone exist in android only

Disable the kswapd for normal zone only for android when dma32 zone exists and
ZRAM is disabled.

Bug 200118847

Change-Id: I0de08b194f9271a40f091278c8da8bc59ad14494
Signed-off-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com>
Reviewed-on: http://git-master/r/785745
(cherry picked from commit fa98a595b0b5029e02338a98e29617dd20e3ddee)
Reviewed-on: http://git-master/r/791514
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agoasoc: tegra-alt: fix admaif channel status check
Dara Ramesh [Thu, 20 Aug 2015 07:59:22 +0000]
asoc: tegra-alt: fix admaif channel status check

-fix incorrect channel status check for playback
and record path

Change-Id: I51ad4541e3e2b6eb68265ab1d712fb0c2082600a
Signed-off-by: Dara Ramesh <dramesh@nvidia.com>
Reviewed-on: http://git-master/r/786430
(cherry picked from commit c85528601c3f60ec94fab8b081088e4bd5365a15)
Reviewed-on: http://git-master/r/790885
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Viraj Karandikar <vkarandikar@nvidia.com>

4 years agoplatform: nvadsp: Support for static app instances
Ajay Nandakumar [Thu, 25 Jun 2015 17:42:55 +0000]
platform: nvadsp: Support for static app instances

Adding support multi-instance static apps for adsp as adsp build and
load format is changing from elf to bin format.

Bug 200118616

Change-Id: I589343cc6f0ccabae6b8145154e119d2c528c0e5
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Reviewed-on: http://git-master/r/762418
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agopower: max77620: power off the device with SFT_RST
Laxman Dewangan [Thu, 27 Aug 2015 10:41:36 +0000]
power: max77620: power off the device with SFT_RST

Power off device using SFT_RST = 1 and SFT_RST_WK=0 instead of
SFT_RST=1 and PWR_OFF =1.

This will avoid PMIC malfunctioning sometime and cause system to
not power on by power key.

bug 1676570

Change-Id: I58aaed9834e2a7f6458a1107b7950f2c5fcc162a
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit 715a7655eb535f2bbd140eb4fc222694d62df503)
Reviewed-on: http://git-master/r/791512

4 years agomfd: max77620: disable WK_EN0 on suspend only
Laxman Dewangan [Thu, 27 Aug 2015 11:05:00 +0000]
mfd: max77620: disable WK_EN0 on suspend only

Keep enabling WK_EN0 always and disable only when system
enters into suspend. The WK_EN0 need to disable to avoid
power on sequence violation.

This will avoid the system state where it is not getting power
on even after pressing power key.

Change-Id: I13e545985cdfa7b35f78646e2f5c83bb664ee06a
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit f93943056e7d3a2ea2da444bd922160a422580c2)
Reviewed-on: http://git-master/r/791511

4 years agoARM64: t210: always include non-shim DTB on shim DTB
Laxman Dewangan [Tue, 25 Aug 2015 14:56:01 +0000]
ARM64: t210: always include non-shim DTB on shim DTB

Make the SHIM-DTB such that it includes the non-shim DTB and
SHIM override.

This way it will avoid the duplications of nodes and entries.

Change-Id: I98cf233559233c6fffd3849baa9a5bc0c9b527d8
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit ab43f164784a67d990314bcf54eb5791c5efac8e)
Reviewed-on: http://git-master/r/790382

4 years agoARM64: t210: consider cable state VBUS+RID-B as RID-B cable
Laxman Dewangan [Tue, 25 Aug 2015 09:44:59 +0000]
ARM64: t210: consider cable state VBUS+RID-B as RID-B cable

Consider the cable state VBUS+RID-B as the RID-B cable.

bug 200134143

Change-Id: Iec8d7f27781a13ad57d7604b26c0e4ce1a293c1a
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/788772
(cherry picked from commit 657c09de572e11232030205401967dc21165c89b)
Reviewed-on: http://git-master/r/790381

4 years agoarm: dt: p1761: Add rid-b support for xlate
Mallikarjun Kasoju [Fri, 21 Aug 2015 13:48:01 +0000]
arm: dt: p1761: Add rid-b support for xlate

Add rid-b support for xlate and update the handle number
in udc dt.

Change-Id: Iaa7fad04da76640bbeeed67194e1067db28b2bb8
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
(cherry picked from commit 5bfc91e1c1cb885b348018435d2af80c27617e5c)
Reviewed-on: http://git-master/r/788554
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoextcon: cable-xlate: Increase cable detection delay
Mallikarjun Kasoju [Fri, 21 Aug 2015 13:44:35 +0000]
extcon: cable-xlate: Increase cable detection delay

Change-Id: I63595d9c00bc09bd826cc78db4dbb9770ad551b8
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
(cherry picked from commit 704b8e357a4485480fcb3bed49e71f1ac212c451)
Reviewed-on: http://git-master/r/788553
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agonet: wireless: bcmdhd: update disconnect event to upper layer
Om Prakash Singh [Wed, 19 Aug 2015 06:43:43 +0000]
net: wireless: bcmdhd: update disconnect event to upper layer

When driver receives back to back connect/disconnect events,
sometimes driver state gets stuck in DISCONNECTING state.
On next connect/disconnect cycle, disconnect is not propagated
to upper layers since driver is in DISCONNECTING state.
Originally DISCONNECTING state check was added to send DISASSOC
only if driver state is not DISCONNECTING but notification to
upper layers is also added in the condition. Moving the notification
out of the condition to resolve this issue.

Bug 200120612

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

4 years agoata: ahci: Place SATA in reset before uphy init
Preetham Chandru R [Fri, 21 Aug 2015 10:23:49 +0000]
ata: ahci: Place SATA in reset before uphy init

Place SATA, SATA cold and SATA OOB in reset state
before uphy is initialized.

Bug 200107569

Change-Id: Ia9c9175012406079182e5533856886c45e358bd0
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Signed-off-by: Venkata Jagadish <vjagadish@nvidia.com>
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/759448
(cherry picked from commit 267b7c1506782b8ad524728deadfe98115a9fae2)
Reviewed-on: http://git-master/r/775506
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

4 years agoARM: mm: init reserved-memory regions before mdesc->reserve()
Sri Krishna chowdary [Mon, 6 Jul 2015 06:46:28 +0000]
ARM: mm: init reserved-memory regions before mdesc->reserve()

reserved memory should be the only way to reserve any of the
carveouts in future. So, start giving preference to it.

Bug 200027296

Change-Id: I885dc6a6b9a902693a6232eeba44e77f40489266
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/766526
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agoARM64: dts: adding E3326 support on jetson cv
David Wang [Wed, 15 Jul 2015 02:31:02 +0000]
ARM64: dts: adding E3326 support on jetson cv

Adding necessary device tree changes for E3326 module with
ov5693 support.

Bug 1665026.

Change-Id: Ifa084f949561358c9bec11fa16fa75527ba79a23
Signed-off-by: David Wang <davidw@nvidia.com>
(cherry picked from commit 5cb50ca42c0ee4efd7cdac76fd6da1bd6351cb1b)
Reviewed-on: http://git-master/r/775199
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

4 years agovideo: tegra: hdmi: Add hdmi2.0 resume support
Aly Hirani [Tue, 26 May 2015 22:14:54 +0000]
video: tegra: hdmi: Add hdmi2.0 resume support

This adds the change to re-kick the hpd worker when the hdmi2.0 driver
comes out of suspend

Bug 200106797
Bug 200092037

Change-Id: I4d907a2c97add5ca9c6548f171ff6db6f2279842
Signed-off-by: Aly Hirani <ahirani@nvidia.com>
Reviewed-on: http://git-master/r/759098
(cherry picked from commit 5ead42a426e678a466c944a670b517568ebcb11d)
Reviewed-on: http://git-master/r/781244
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

4 years agogpu: nvgpu: use gk20a_free_sgtable to free sgtable
Yogish Kulkarni [Wed, 19 Aug 2015 10:20:03 +0000]
gpu: nvgpu: use gk20a_free_sgtable to free sgtable

Use gk20a_free_sgtable to free sgtable

Bug 200130473

Change-Id: I6ddffb848a289ce81804502b7628feb5a4a8d000
Signed-off-by: Yogish Kulkarni <yogishk@nvidia.com>
Reviewed-on: http://git-master/r/785884
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Supriya Sharatkumar <ssharatkumar@nvidia.com>
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agoselinux: enable genfscon labeling for sysfs and pstore files
Stephen Smalley [Wed, 20 May 2015 16:33:16 +0000]
selinux: enable genfscon labeling for sysfs and pstore files

Support per-file labeling of sysfs and pstore files based on
genfscon policy entries.  This is safe because the sysfs
and pstore directory tree cannot be manipulated by userspace,
except to unlink pstore entries.
This provides an alternative method of assigning per-file labeling
to sysfs or pstore files without needing to set the labels from
userspace on each boot.  The advantages of this approach are that
the labels are assigned as soon as the dentry is first instantiated
and userspace does not need to walk the sysfs or pstore tree and
set the labels on each boot.  The limitations of this approach are
that the labels can only be assigned based on pathname prefix matching.
You can initially assign labels using this mechanism and then change
them at runtime via setxattr if allowed to do so by policy.

Change-Id: If5999785fdc1d24d869b23ae35cd302311e94562
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Suggested-by: Dominick Grift <dac.override@gmail.com>
Reviewed-on: http://git-master/r/786336
Reviewed-by: Inamdar Sharif <isharif@nvidia.com>
Tested-by: Inamdar Sharif <isharif@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agoselinux: enable per-file labeling for debugfs files.
Stephen Smalley [Tue, 19 May 2015 17:59:12 +0000]
selinux: enable per-file labeling for debugfs files.

upstream commit 6f29997f4a3117169eeabd41dbea4c1bd94a739c

Add support for per-file labeling of debugfs files so that
we can distinguish them in policy.  This is particularly
important in Android where certain debugfs files have to be writable
by apps and therefore the debugfs directory tree can be read and
searched by all.

Since debugfs is entirely kernel-generated, the directory tree is
immutable by userspace, and the inodes are pinned in memory, we can
simply use the same approach as with proc and label the inodes from
policy based on pathname from the root of the debugfs filesystem.
Generalize the existing labeling support used for proc and reuse it
for debugfs too.

[sds:  Back-ported to 3.10.  superblock_security_struct flags field
is only unsigned char in 3.10 so we have to redefine SE_SBGENFS.
However, this definition is kernel-private, not exposed to userspace
or stored anywhere persistent.]

Change-Id: I6460fbed6bb6bd36eb8554ac8c4fdd574edf3b07
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Reviewed-on: http://git-master/r/786335
Reviewed-by: Inamdar Sharif <isharif@nvidia.com>
Tested-by: Inamdar Sharif <isharif@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agotegra-alt:rt565x/rt5639: add compr_ops for machine
Viswanath L [Wed, 19 Aug 2015 11:54:05 +0000]
tegra-alt:rt565x/rt5639: add compr_ops for machine

ALSA compress does not call hw_params. Add compr_ops so that
set_params gets called to configure hw params.

Also fix in es755 machine driver to set ops for both PCM devices.

Bug 200132890
Bug 200127533

Change-Id: Ifcfc6b5c4673961afd2d5e00318c97f8f2d0df18
Signed-off-by: Viswanath L <viswanathl@nvidia.com>
(cherry picked from commit d27fd571a4c1789732109b3a8c245e59db26909c)
Reviewed-on: http://git-master/r/787165
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>

4 years agotegra-alt: rt565x: Add control to set codec rate
Viswanath L [Wed, 19 Aug 2015 06:44:08 +0000]
tegra-alt: rt565x: Add control to set codec rate

Add control to set codec rate. This is used to force codec
rate when SFC is used.

Increase xbar clock to support 44.1kHz to 48kHz SRC.

Bug 200127533

Change-Id: Ie53660697d8506fdae203d9911ff13e2721fc049
Signed-off-by: Viswanath L <viswanathl@nvidia.com>
(cherry picked from commit 34a3131378ad641e4ee32b43b52f86bab680b067)
Reviewed-on: http://git-master/r/787161
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>

4 years agoarm64: dts: jetsonCV: add adsp_audio node
Viswanath L [Thu, 13 Aug 2015 09:32:31 +0000]
arm64: dts: jetsonCV: add adsp_audio node

Add ADSP audio node.
Add dai-link for I2S3.

Bug 200127533

Change-Id: I3a041a63f434e7651373159df6cf13721f855a11
Signed-off-by: Viswanath L <viswanathl@nvidia.com>
Reviewed-on: http://git-master/r/782917
(cherry picked from commit 0491b10082779e6d7a5262b5af816180a8d7fe76)
Reviewed-on: http://git-master/r/787114
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>

4 years agovideo: tegra: host: correct VI_IOCTL names
Shridhar Rasal [Fri, 21 Aug 2015 04:57:43 +0000]
video: tegra: host: correct VI_IOCTL names

Correct VI ioctl names for better readability.

Change-Id: Ifbe6e002715f979c48b7ceb7f0d95596eca2349d
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/787047
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sudhir Vyas <svyas@nvidia.com>
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>

4 years agoARM64: tegra210: hawkeye: set FPS timing to 5120us
Laxman Dewangan [Mon, 10 Aug 2015 18:32:18 +0000]
ARM64: tegra210: hawkeye: set FPS timing to 5120us

Set FPS period to 5120 to allow more discharge time to cpu and gpu.

Change-Id: I737a11d440d3b1c4bfde91371bc49b1d4268ac13
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit a84f0ef0b3732dc4194d4e23afd79859742fe42b)
Reviewed-on: http://git-master/r/787795
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

4 years agogpio: tegra: bypass pinctrl on gpio request, free on suspend
Laxman Dewangan [Tue, 18 Aug 2015 11:57:32 +0000]
gpio: tegra: bypass pinctrl on gpio request, free on suspend

Bypass the pinctrl APIs from GPIO driver  on gpio request
and gpio free if it is called from suspend.

bug 1650903

Change-Id: Ic5e70015d6d99d976191d67a7ff62b0955993432
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit 578e235224a81026d6027eba357fc651dde5705c)
Reviewed-on: http://git-master/r/787794
GVS: Gerrit_Virtual_Submit

4 years agogpio: lib: Add support to change pin in GPIO mode on suspend
Laxman Dewangan [Tue, 18 Aug 2015 11:50:11 +0000]
gpio: lib: Add support to change pin in GPIO mode on suspend

Add support to parse DT property "gpio-suspend-to-sfio" from
DT node of device which convert the pins in GPIO mode to
SFIO mode.

bug 1650903

Change-Id: Ia12e37de37f0dd1e376a7c1d840b3efc5a85dd00
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit d3d81839bb6afe319155321a53fa31b19090f8f5)
Reviewed-on: http://git-master/r/787793
GVS: Gerrit_Virtual_Submit

4 years agoarm: dts: panel-o-720p-6-0-01
Kenneth Kwak [Wed, 19 Aug 2015 08:18:33 +0000]
arm: dts: panel-o-720p-6-0-01

Fix the missing one line on LCD

Bug 200132480
Bug 1661203

Change-Id: I03b4c554934df68666619a30f78cf533007dbf9e
Signed-off-by: Kenneth Kwak <kkwak@nvidia.com>
Reviewed-on: http://git-master/r/785825
(cherry picked from commit fb74cd17ee9c92d4dca5c985b1eb51412a26320b)
Reviewed-on: http://git-master/r/786984
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Min-wuk Lee <mlee@nvidia.com>
Tested-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

4 years agoarm: dts64: abca2 panel orientation chnage
Min-wuk Lee [Tue, 4 Aug 2015 02:28:55 +0000]
arm: dts64: abca2 panel orientation chnage

set nvidia,out-rotation to 270 degree

Bug 1661203

Change-Id: I32a03b429e2386a109ae6d42898e737c957125e4
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/778161
(cherry picked from commit 6fd558095dd69f7bcf21e95cd3f24104180c6469)
Reviewed-on: http://git-master/r/786983
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agoarm64: dts: add panel-o-720p-6-0-01
Min-wuk Lee [Thu, 30 Jul 2015 07:29:38 +0000]
arm64: dts: add panel-o-720p-6-0-01

Add panel-o-720p-6-0-01 in the ABCA2 platform.

Bug 1661203

Change-Id: I5f22a0df95029991efaa888c87e2df83de8caa64
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/776663
(cherry picked from commit 68b792c4948feb420103720451cfab00dc79c585)
Reviewed-on: http://git-master/r/786982
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agoarm: tegra: panel-o-720p-6-0-01
Min-wuk Lee [Thu, 30 Jul 2015 06:45:35 +0000]
arm: tegra: panel-o-720p-6-0-01

Prepare panel-o-720p-6-0-01 panel file
and change common board-panel file,
accordingly. This is for internal panel
for ABCA2 platform.

Bug 1661203

Change-Id: I50d932b3b68f89dd0b50e279c8e414e24b369724
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/776641
(cherry picked from commit a065ab7b9ebc0a5d1cd072334abe35edc9fc0411)
Reviewed-on: http://git-master/r/786981
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

4 years agoarm: dts: panel-o-720p-6-0-01.
Min-wuk Lee [Thu, 30 Jul 2015 06:31:20 +0000]
arm: dts: panel-o-720p-6-0-01.

panel-o-720p-6-0-01 is for 720p 6" panel for ABCA2
platform.

Bug 1661203

Change-Id: I16f5af62164dbb6c10fb1a9929deb81e5d530f78
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/776635
(cherry picked from commit ee126f38005283523286eec3f6a4fd5700b17bc7)
Reviewed-on: http://git-master/r/786980
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

4 years agovideo: tegra: nvmap: cache sync even when CacheSyncAtReserve is present
Sri Krishna chowdary [Wed, 29 Jul 2015 05:54:59 +0000]
video: tegra: nvmap: cache sync even when CacheSyncAtReserve is present

user space takes responsibility of not calling reserve and cache op at same
time. Given that promise, some times it is better for performance to avoid zap
when concurrent access by cpu and device is guaranteed in some other way.

Bug 200092803

Change-Id: I20d7e2106fd6114712b63991204d5e556912af21
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/776097
(cherry picked from commit 464cb9fe1e6415446d8c9744761460abe628c8df)
Reviewed-on: http://git-master/r/787695
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agovideo: tegra: dc: handle tegra_dc_sync_windows error
Bibek Basu [Mon, 17 Aug 2015 11:18:59 +0000]
video: tegra: dc: handle tegra_dc_sync_windows error

In case tegra_dc_sync_windows is interrupted by signal,
return the error to caller application

Bug 200090492

Change-Id: Id69fbe38d0abe0b3e71eb5a413db241ebcf0a0ae
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/785146
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

4 years agoiio: nvi: Add ICM20630 support
Erik Lilliebjerg [Fri, 14 Aug 2015 19:48:53 +0000]
iio: nvi: Add ICM20630 support

Change-Id: I1a32d532adaa983b06e6fab2c90edc2375498651
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/783891
(cherry picked from commit 8c50d90ddf8239da58685de9bfb5b7e937724475)
Reviewed-on: http://git-master/r/786803
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Tested-by: Robert Collins <rcollins@nvidia.com>

4 years agodts: sensors: Move compass to bottom of board.
Robert Collins [Tue, 21 Jul 2015 23:04:28 +0000]
dts: sensors: Move compass to bottom of board.

Bug 1662566
Bug 200089138

Change-Id: I63154c944d5015840f133430332ff29331c7ff6b
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Reviewed-on: http://git-master/r/766725
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
(cherry picked from commit 9b872a01973e9734d527a307a5481b5194c75781)
Reviewed-on: http://git-master/r/786749
Reviewed-by: Automatic_Commit_Validation_User

4 years agoarm64: context-switch user tls register tpidr_el0 for compat tasks
Will Deacon [Wed, 27 May 2015 14:39:40 +0000]
arm64: context-switch user tls register tpidr_el0 for compat tasks

Since commit a4780adeefd0 ("ARM: 7735/2: Preserve the user r/w register
TPIDRURW on context switch and fork"), arch/arm/ has context switched
the user-writable TLS register, so do the same for compat tasks running
under the arm64 kernel.

Reported-by: AndrĂ© Hentschel <nerv@dawncrow.de>
Tested-by: AndrĂ© Hentschel <nerv@dawncrow.de>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Change-Id: I6badb27e7c4db282fbf8d5b416f155947afbc8f9
Reviewed-on: http://git-master/r/776455
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Tested-by: Bo Yan <byan@nvidia.com>

4 years agoASoC: tegra-alt: Add one more ADSP PCM device
Gaurav Tendolkar [Thu, 20 Aug 2015 11:25:03 +0000]
ASoC: tegra-alt: Add one more ADSP PCM device

Bug 200127533

Change-Id: Ie5ca287d0da4e180ab711e2816c28db18a60d601
Signed-off-by: Gaurav Tendolkar <gtendolkar@nvidia.com>
Reviewed-on: http://git-master/r/786550
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Tested-by: Ravindra Lokhande <rlokhande@nvidia.com>

4 years agovideo: tegra: dp: Fix CTS 4.2.2.9
Animesh Kishore [Thu, 20 Aug 2015 15:44:18 +0000]
video: tegra: dp: Fix CTS 4.2.2.9

CTS description: E-DDC 4 block edid read

Bug 200103501

Change-Id: I76503dc2a21369514816650d308d5b823d4540c7
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/786624
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

4 years agovideo: tegra: dp: add debugfs support to change bpp
Santosh Reddy Galma [Wed, 19 Aug 2015 15:45:32 +0000]
video: tegra: dp: add debugfs support to change bpp

support added to change the bits per pixel dynamically
through debugfs interface. Supported bpp values are 18
and 24.

Bug 200127167

Change-Id: I33a304d02598c665ed25e3d33e4fa68baae2ed38
Signed-off-by: Santosh Reddy Galma <galmar@nvidia.com>
Reviewed-on: http://git-master/r/786016
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

4 years agosysedp: Jetson-CV: Scale back reactive capping
Anand Prasad [Thu, 23 Jul 2015 19:11:16 +0000]
sysedp: Jetson-CV: Scale back reactive capping

Add warning node to the sysedp reactive capping device-tree structure.
Add specific warnings to be used for Jetson-CV.
Scale back Jetson sysedp reactive capping.
Disable soctherm h/w throttling for the battery overcurrent monitor.

Bug 1665297

Change-Id: I5611349ce25f1a6afe01a0c129fbde890979f6cc
Signed-off-by: Anand Prasad <anprasad@nvidia.com>
Reviewed-on: http://git-master/r/774643
(cherry picked from commit bd914fcb44d8b8d1fa7040a8d0fa0daf7c55c659)
Reviewed-on: http://git-master/r/786105
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sivaram Nair <sivaramn@nvidia.com>

4 years agosysedp: Add support for trip event Warnings
Anand Prasad [Thu, 23 Jul 2015 19:11:16 +0000]
sysedp: Add support for trip event Warnings

Add support to print out ratelimited warnings every time we receive a software
interrupt to reactively cap our budget.

Bug 1665297

Change-Id: Ie5c7c27d94f1f4ea3c6289fb097bde242c29575c
Signed-off-by: Anand Prasad <anprasad@nvidia.com>
Reviewed-on: http://git-master/r/774042
(cherry picked from commit 715683c58a89dca979f720c42f681dc8860fbef9)
Reviewed-on: http://git-master/r/786102
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sivaram Nair <sivaramn@nvidia.com>

4 years agodrivers:misc: Setup gamepad_reset gpio only on loki
Ankita Garg [Thu, 22 Jan 2015 21:29:54 +0000]
drivers:misc: Setup gamepad_reset gpio only on loki

Bug 1587415

Change-Id: I304bd5f92918e0dc9c1632f9abed66721c62ff17
Signed-off-by: Ankita Garg <ankitag@nvidia.com>
Reviewed-on: http://git-master/r/745798
(cherry picked from commit 432ac02d26e0515587202dd97d5333215018d8e0)
Reviewed-on: http://git-master/r/779479
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>

4 years agousb: xhci: reset gamepad when xhci controller dies
Ankita Garg [Tue, 7 Jul 2015 23:14:23 +0000]
usb: xhci: reset gamepad when xhci controller dies

Reset gamepad when device does not respond to set_address request
and the host controller dies

Bug 1587415

Change-Id: Ia4e6b9c5515451a90c50640331d4e78f2802fe2b
Signed-off-by: Ankita Garg <ankitag@nvidia.com>
Reviewed-on: http://git-master/r/767297
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
Tested-by: Ashutosh Jha <ajha@nvidia.com>

4 years agousb: xhci: reset gamepad after xhci reinit
Ankita Garg [Tue, 7 Jul 2015 23:07:53 +0000]
usb: xhci: reset gamepad after xhci reinit

Sometimes due to a potential bug in the loki JS firmware,
the gamepad does not respond to set address from the
USB host. This change triggers a gamepad reset
if this error happens.

Bug 1587415

Change-Id: I29bd526581359a215b1522d377c43fd5c4812870
Signed-off-by: Ankita Garg <ankitag@nvidia.com>
Reviewed-on: http://git-master/r/767293
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-by: ChihMin Cheng <ccheng@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

4 years agovideo: tegra: host: vi/isp: CLK-BW ioctls support
Sudhir Vyas [Fri, 24 Jul 2015 14:55:35 +0000]
video: tegra: host: vi/isp: CLK-BW ioctls support

Add new ioctls GET_CLK and SET_LA_BW support in
VI and ISP drivers.
These will replace SET_EMC ioctl, but still
keep it until user drivers are using it.

Bug 1666597

Change-Id: Ia63ad120e0f06eefc64bdb50753c2f6b974bd407
Signed-off-by: Sudhir Vyas <svyas@nvidia.com>
Reviewed-on: http://git-master/r/774484
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Charles Kong <charlesk@nvidia.com>

4 years agogpu: nvgpu: Handling null pointer
Gagan Grover [Fri, 10 Jul 2015 08:04:30 +0000]
gpu: nvgpu: Handling null pointer

Handling null pointer in gk20a_fence_is_expired.

Bug 200117724

Change-Id: I0f9307a5f8b82bf990b6ddaea1a408d4f3f376fb
Signed-off-by: Gagan Grover <ggrover@nvidia.com>
Reviewed-on: http://git-master/r/768831
(cherry picked from commit 82a613714ef75781a44499cdad8511a4bb0297cd)
Reviewed-on: http://git-master/r/777796
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agobcmdhd: fix set_channel api
Om Prakash Singh [Tue, 28 Jul 2015 09:37:21 +0000]
bcmdhd: fix set_channel api

set channel bandwidth as per capability in firmware.

Bug 200124304
Bug 1665253

Change-Id: I1b261a46404898fbee4599c45009dff0abce05ce
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/775611
(cherry picked from commit 04391244407dbeab7ea3d8bbb6ac206c833ef831)
Reviewed-on: http://git-master/r/785795
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agovideo: tegra: dp: Fix CTS 700.1.1.2
Animesh Kishore [Wed, 19 Aug 2015 09:13:51 +0000]
video: tegra: dp: Fix CTS 700.1.1.2

CTS description: Additional DPCD handling
test 2

- Fix corrupted DPCD link capabilities

Bug 200103501

Change-Id: I7ebeb055284f73140a5f284bf8dc74da5662dc3d
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/785852
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

4 years agovideo: tegra: dp: Fix CTS 4.2.2.7
Animesh Kishore [Tue, 18 Aug 2015 14:43:26 +0000]
video: tegra: dp: Fix CTS 4.2.2.7

CTS description: Branch device detection
upon HPD plug event

Bug 200103501

Change-Id: Ie6e1dd567f665c342303a8724b127d8d786fe579
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/785420
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

4 years agovideo: tegra: host: push adjacent words
Sam Payne [Fri, 24 Jul 2015 17:48:53 +0000]
video: tegra: host: push adjacent words

adds the ability to guarantee that a set
of words pushed to a buffer will be adjacent.
That is, the words will not be split across
the pushbuffer wrap around boundary.

If the set of words cannot be written before
the pushbuffer wrap around boundary, noops
will be pushed to the pushbuffer until the
boundary is passed.

This feature is in preparation for operations
which require more than two adjacent opcodes.

bug 1659110

Change-Id: I3ddd645c70626cf8d460ebd8c24966af6128d59f
Signed-off-by: Sam Payne <spayne@nvidia.com>
Reviewed-on: http://git-master/r/774517
GVS: Gerrit_Virtual_Submit
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>