3 years agoarm64: max77620: jetson-cv: update fps-time-period l4t/l4t-r23.1 tegra-l4t-r23.1
Shreshtha SAHU [Sat, 7 Nov 2015 05:50:42 +0000]
arm64: max77620: jetson-cv: update fps-time-period

Fix fps-time-period for Jetson-CV board as provided by syseng

Bug 200149755

Change-Id: Ia1be5dc98143b6b25821235381dbd191b3803893
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/829392
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
Tested-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

3 years agogpu: nvgpu: Do not panic if no page tables
Terje Bergstrom [Thu, 5 Nov 2015 23:09:17 +0000]
gpu: nvgpu: Do not panic if no page tables

Do not panic at channel free time if page table allocation has
failed.

Bug 200150063

Change-Id: If31a4086cda07964dcce9cebdb11332d2a2d7c2c
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/828690
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

3 years agoRevert "video: tegra: dc: make SOR instance configurable"
Jong Kim [Wed, 4 Nov 2015 18:07:19 +0000]
Revert "video: tegra: dc: make SOR instance configurable"

This reverts commit 5b78fbb15ed1ab233a1017fdb17abb8c5bae11d0.

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

bug 1700729

Change-Id: Ic917e9b721cbcc5e183d0f83c69087e7022c0a7d
Signed-off-by: Jong Kim <jongk@nvidia.com>
Reviewed-on: http://git-master/r/827849
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

3 years agomedia: tegra_camera: fix potential race condition
Bryan Wu [Mon, 2 Nov 2015 22:15:11 +0000]
media: tegra_camera: fix potential race condition

Make sure increase sync point max value for arming the single shot.

Bug 1700868

Change-Id: I9a429150dad0851a3da34ee8ad75339728f3ed81
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/826439
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

3 years agomedia: tegra_camera: introduce 2 kthreads for capture
Bryan Wu [Thu, 29 Oct 2015 01:19:03 +0000]
media: tegra_camera: introduce 2 kthreads for capture

Use one kthread to start capture a frame and wait for next frame start.
Before waiting, it will move the current buffer to another queue which
will be handled another kthread.

The second kthread (capture_done) will wait for memory output done sync
point event and handle the buffer to videobuffer2 framework as capture
done.

Bug 1686911

Change-Id: I6805e47ab5252aa75ba70f62747c845c7dd2ba71
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/824954
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

3 years agomedia: tegra_camera: replace workqueue with kthread
Bryan Wu [Wed, 28 Oct 2015 00:48:32 +0000]
media: tegra_camera: replace workqueue with kthread

Use kthread instead of workqueue, which will create a dedicated kernel
thread for capture.

Remove useless mutex and convert spin_lock_irq() to normal spin_lock().

Bug 1686911

Change-Id: Ie90320ccff9b46a53719bf8924afe38b24dda64c
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/824953
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

3 years agoplatform: tegra: pmc: silent debug print
Bibek Basu [Sat, 31 Oct 2015 21:03:53 +0000]
platform: tegra: pmc: silent debug print

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

Bug 200137939

Change-Id: I8b5523e015325ad940ff29b2b7ba1cad69d2d845
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/825874
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agogpu: nvgpu: support skipping buffer refcounting in submit
Deepak Nibade [Thu, 29 Oct 2015 09:50:50 +0000]
gpu: nvgpu: support skipping buffer refcounting in submit

In job submission path, we always take refcount on all
the mapped buffers to safeguard against case where user
space releases the buffer early

But in case user space itself is doing proper buffer
management, kernel need not take refcounts on all the
buffers - which is also a overhead in submit path

Hence, provide a new submit flag
NVGPU_SUBMIT_GPFIFO_FLAGS_SKIP_BUFFER_REFCOUNTING to
optionally skip taking refcounts on all the buffers

Also, if we do not take refcounts, then no need to drop
any refcounts in gk20a_channel_update() as well

Bug 1698667
Bug 200141116

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

3 years agommc: tegra: Disable SD_CLK before calibration start
R Raj Kumar [Mon, 10 Aug 2015 09:27:09 +0000]
mmc: tegra: Disable SD_CLK before calibration start

Disabled SD_CLK before auto-calibration start and
enabled it after completion of auto-calibration

Bug 1670647

Change-Id: I3e0d2dd757430cb6f29c1dfeabcf55c96f0a29f5
Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/781006
Reviewed-on: http://git-master/r/823882
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Tested-by: Shreshtha Sahu <ssahu@nvidia.com>

3 years agovideo: tegra: fb: intimate fbcon to blank/unblank
Naveen Kumar S [Tue, 20 Oct 2015 14:55:55 +0000]
video: tegra: fb: intimate fbcon to blank/unblank

Upon a hotplug/unplug, intimate fbcon to unblank or
blank accordingly. This helps in keeping dc and fbcon
in sync.

bug 1693204

Change-Id: I96b83bd8420e68ebb6048d50d9d9a422cd1fb706
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/820409
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jong Kim <jongk@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

3 years agovideo: fb: update VC before fbcon during hotplug
Naveen Kumar S [Sat, 10 Oct 2015 14:01:35 +0000]
video: fb: update VC before fbcon during hotplug

fbcon depends on the modes known to virtual console while updating
its own mode. Hence during a hotplug event, update virtual consoles
with new modes before updating fbcon mode.

bug 1693204

Change-Id: I6430ef27d186b8ac529a7e2c2929e383b0c2806e
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/815661
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

3 years agodvfs: tegra21: Integrate CPU DVFS tables p4v54
Alex Frid [Wed, 30 Sep 2015 01:39:31 +0000]
dvfs: tegra21: Integrate CPU DVFS tables p4v54

Integrated CPU DVFS tables p4v54.

Bug 1689490

Change-Id: Id18408e310498073c9773a676919ddcd4abade13
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/807191
GVS: Gerrit_Virtual_Submit
Reviewed-by: Steve Rogers <srogers@nvidia.com>
(cherry picked from commit be52f56009847b8f0e5f640a48a165515668e59c)
Reviewed-on: http://git-master/r/812389
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Tested-by: Winnie Hsu <whsu@nvidia.com>

3 years agoarch: dt: Disable periodic-calibration
Anubhav jain [Wed, 23 Sep 2015 08:51:34 +0000]
arch: dt: Disable periodic-calibration

Change-Id: I4af08987516ea3aebacf57f65846a038b5cba6bd
Signed-off-by: Anubhav jain <anubhavj@nvidia.com>
Reviewed-on: http://git-master/r/803546
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hayden Du <haydend@nvidia.com>
(cherry picked from commit 8115919a5e4d4903e81a756c2601bef86fc1e534)
Reviewed-on: http://git-master/r/811956
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

3 years agoarm64: config: l4t: update defconfig
Bibek Basu [Wed, 30 Sep 2015 11:19:03 +0000]
arm64: config: l4t: update defconfig

enable SLUB allocator and disable some kernel
debugging configs

Bug 1674408

Change-Id: Ia7922dc6f5f2fa84d1e16367f7eca7f0cb2a1d14
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/811951
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

3 years agoarm64: tegra: add property to skip display init
Shreshtha SAHU [Tue, 29 Sep 2015 12:24:55 +0000]
arm64: tegra: add property to skip display init

Add "/chosen/bootloader/nvidia,skip-display-init" node
to inform bootloader to skip display initialization.
Display will be initialized by kernel.

Bug 200140476

Change-Id: I92fd5eb10e235137eba33d3b36ce3f777d2c9e87
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/808389
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>

3 years agonvdumper: print based on event
Bibek Basu [Wed, 23 Sep 2015 08:32:17 +0000]
nvdumper: print based on event

Print reboot path based on state

Bug 200140065

Change-Id: I46d4b61f12a1f45468b887ec3e54802b9a8dff78
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/803539
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agoarm64: tegra: jetson_cv: disable INA on CVM by default
Kerwin Wan [Tue, 22 Sep 2015 07:25:42 +0000]
arm64: tegra: jetson_cv: disable INA on CVM by default

The INA on CVM will be fixed on DVT which is not avaliable
right now. In order not to confuse the consumers with the
wrong data reported by INA on CVM, disable it right now.
It will be enabled on DVT.

Bug 1657022

Change-Id: I6eff0365089f7716b93df107ab2df5d6bc8c3830
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/802711
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hayden Du <haydend@nvidia.com>

3 years agovideo: tegra: sor: fix sor detach sequence
Santosh Reddy Galma [Mon, 28 Sep 2015 16:03:13 +0000]
video: tegra: sor: fix sor detach sequence

fix sequence of polling for head op mode sleep
completion in tegra_dc_sor_pre_detach

Bug 200140339

Change-Id: I7ac54669d930b9efafab64e80cf97947c0419d3c
Signed-off-by: Santosh Reddy Galma <galmar@nvidia.com>
Reviewed-on: http://git-master/r/806079
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Naveen Kumar S <nkumars@nvidia.com>
Tested-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

3 years agoarm: tegra: audio: add dt support for audience fw
Srinivas Anne [Tue, 22 Sep 2015 00:11:40 +0000]
arm: tegra: audio: add dt support for audience fw

Hawkeye and Loki use different mic tuning parameters and these params
are part of Audience firmware binary.

Updated Audience device tree node to store firmware binary name.
Driver will read FW binary info from DT and load appropriate firmware.

bug 1689236

Change-Id: I9baf8b081ad5c9e8922018a4a9fc6e731c54f61a
Signed-off-by: Srinivas Anne <sanne@nvidia.com>
Reviewed-on: http://git-master/r/803893
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Pierre Gervais <pgervais@nvidia.com>

3 years agonet: wireless: bcmdhd: boost wifi performance
Michael Hsu [Thu, 20 Aug 2015 19:34:13 +0000]
net: wireless: bcmdhd: boost wifi performance

Calculate network throughput and boost clock frequencies if data
rate exceeds configured threshold.

Bug 1602374
Bug 1653975

Change-Id: I3a786c60910ea7553b5accd109bb3d3ef823c00b
Signed-off-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-on: http://git-master/r/786751
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoclock: tegra21: Add SCLK shared user for WIFI
Alex Frid [Tue, 16 Jun 2015 04:32:32 +0000]
clock: tegra21: Add SCLK shared user for WIFI

Bug 1653975

Change-Id: I7eb2f6b4509bfd2efaeaa47eb5ae38ac66394faf
Signed-off-by: Alex Frid <afrid@nvidia.com>
(cherry picked from commit f8ba29eacd89d49bd1049c62eccbf68c1ec659a8)
Reviewed-on: http://git-master/r/767988
Reviewed-by: Michael Hsu <mhsu@nvidia.com>
Tested-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

3 years agosched: Move CFS tasks to CPUs with higher capacity
Sai Gurrappadi [Wed, 1 Jul 2015 01:06:40 +0000]
sched: Move CFS tasks to CPUs with higher capacity

Original commit message:

"When a CPU is used to handle a lot of IRQs or some RT tasks, the remaining
capacity for CFS tasks can be significantly reduced. Once we detect such
situation by comparing cpu_capacity_orig and cpu_capacity, we trig an idle
load balance to check if it's worth moving its tasks on an idle CPU.

It's worth trying to move the task before the CPU is fully utilized to
minimize the preemption by irq or RT tasks.

Once the idle load_balance has selected the busiest CPU, it will look for an
active load balance for only two cases:

  - There is only 1 task on the busiest CPU.

  - We haven't been able to move a task of the busiest rq.

A CPU with a reduced capacity is included in the 1st case, and it's worth to
actively migrate its task if the idle CPU has got more available capacity for
CFS tasks. This test has been added in need_active_balance.

As a sidenote, this will not generate more spurious ilb because we already
trig an ilb if there is more than 1 busy cpu. If this cpu is the only one that
has a task, we will trig the ilb once for migrating the task.

The nohz_kick_needed function has been cleaned up a bit while adding the new
test.

env.src_cpu and env.src_rq must be set unconditionnally because they are used
in need_active_balance which is called even if busiest->nr_running equals 1"

Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Morten.Rasmussen@arm.com
Cc: dietmar.eggemann@arm.com
Cc: efault@gmx.de
Cc: kamalesh@linux.vnet.ibm.com
Cc: linaro-kernel@lists.linaro.org
Cc: nicolas.pitre@linaro.org
Cc: preeti@linux.vnet.ibm.com
Cc: riel@redhat.com
Link: http://lkml.kernel.org/r/1425052454-25797-12-git-send-email-vincent.guittot@linaro.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>

Partial backport of upstream commit: 1aaf90a4b88aae26a4535ba01dacab520a310d17

Doesn't apply cleanly to k3.10 so did a manual backport.

Only intended for k3.10 kernels.

Change-Id: Idb88d844725aec934a7c0376b4fb0965c965da7c
Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/764514
Reviewed-by: Michael Hsu <mhsu@nvidia.com>
Tested-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

3 years agovideo: tegra: fix panel node detection
Shreshtha SAHU [Wed, 23 Sep 2015 19:07:38 +0000]
video: tegra: fix panel node detection

detect correct panel using presence of disp-default-out
inside the panel node

Bug 200140476

Change-Id: I9e53e4ff236052eae16fdc2eea251af5025e253f
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/803949
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Reviewed-by: Naveen Kumar S <nkumars@nvidia.com>
GVS: Gerrit_Virtual_Submit

3 years agoarch64: tegra210: DT file for Jetson-TX1
Shreshtha SAHU [Sat, 19 Sep 2015 05:28:55 +0000]
arch64: tegra210: DT file for Jetson-TX1

Create DT file for Jetson-TX1 devkit board.
It is shipped without display panel hence DSI display is disabled.

Bug 200140476

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

3 years agot210: video: tegra: dc: set cursor start address
Naveen Kumar S [Wed, 23 Sep 2015 11:32:07 +0000]
t210: video: tegra: dc: set cursor start address

Initalise cursor start address and update cursor registers
while enabling dc controller. This is needed as driver depends
on HW state.

bug 200119332

Change-Id: If791cd5bf4719e90e7de19e03621814174bb2622
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/803745
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agovideo: tegra: dc: fix memory leak
Sagar Kadamati [Fri, 14 Aug 2015 11:02:22 +0000]
video: tegra: dc: fix memory leak

Fix memory leak within tegra_dc_probe

Bug 200130473
Bug 200102293

Change-Id: I138822422b45807b097b090108c43e9c7c095080
Signed-off-by: Sagar Kadamati <skadamati@nvidia.com>
Reviewed-on: http://git-master/r/789475
(cherry picked from commit f7dc4cf349ffc73c002a903cbd3608eae52652e1)
Signed-off-by: Yogish Kulkarni <yogishk@nvidia.com>
Reviewed-on: http://git-master/r/759443
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoarm64: tegra: jetson_cv: add support for e2614 b00
Sharad Gupta [Wed, 23 Sep 2015 19:18:54 +0000]
arm64: tegra: jetson_cv: add support for e2614 b00

Added support for B00 version of Super I/O. B00 will be a
default option. Also added separate DT for A00.

Bug 200140981

Change-Id: I3048b03a0cf9b1db9b02213ef8e3123737dba5d7
Signed-off-by: Sharad Gupta <sharadg@nvidia.com>
Reviewed-on: http://git-master/r/803861
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Wenju Zhang <wenjuz@nvidia.com>
Reviewed-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-by: Hayden Du <haydend@nvidia.com>

3 years agovideo: tegra: set dc blank on display timeout
Naveen Kumar S [Wed, 23 Sep 2015 08:51:20 +0000]
video: tegra: set dc blank on display timeout

While unblanking FB, all available windows are sync'd again only
if dc is in blanked state. Hence, set dc blank state to true
when dc is disabled during display timeout.

bug 200136625

Change-Id: Ic3f23801c1799b48477f512c6c319896a088afce
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/803552
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>

3 years agonet: wireless: bcmdhd: Fix compilation warnings
Michael Hsu [Tue, 22 Sep 2015 01:55:46 +0000]
net: wireless: bcmdhd: Fix compilation warnings

Fix compiler warning messages.

Bug 1454125

Change-Id: Id61b77731e6ba989d7f6ecae37afb3442f36ba0d
Signed-off-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-on: http://git-master/r/802585
Reviewed-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-by: Mahesh Patil <maheshp@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

3 years agoARM64: dtsi: Enable ov5693 sensor on Jetson-CV
Tushar Khinvasara [Wed, 23 Sep 2015 10:05:15 +0000]
ARM64: dtsi: Enable ov5693 sensor on Jetson-CV

Enable ov5693 sensor on Jetson-CV
Bug 1688223

Change-Id: I217d2397a63deac36725510c4edd716a79da29b0
Signed-off-by: Tushar Khinvasara <tkhinvasara@nvidia.com>
Reviewed-on: http://git-master/r/803620
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: David Wang (SW-TEGRA) <davidw@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kaustubh Purandare <kpurandare@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

3 years agoRevert "mmc: tegra: Disable async suspend for sdhci."
Jeetesh Burman [Tue, 22 Sep 2015 11:59:24 +0000]
Revert "mmc: tegra: Disable async suspend for sdhci."

This patch causing stack dump during LP0 resume, if SD card
used to wake-up from LP0.

Bug 200108407

This reverts commit 3b4cf3f6d1f3ae2d33dbc22c69433a50746b0ad1.

Change-Id: Ib7c9e0d82226deb4d019e05504f77931cc59d84e
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/802946
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

3 years agomm: Coverity fixes
Pavitrakumar [Fri, 19 Jun 2015 15:35:35 +0000]
mm: Coverity fixes

Coverity fixes
Initialized the dummy1 & dummy2 variables to 0, to avoid
using these two un-initialized. Though the returned count
value is not used in the calling function, its better to
have clean code.

Coverity ID 13508 13509

Bug 200083369

Change-Id: Ia9d1d9eccd9079c2973d07ce9e2ce17f2e33ee9b
Signed-off-by: Pavitrakumar <pavitrak@nvidia.com>
Reviewed-on: http://git-master/r/760156
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>

3 years agoPCI: Fix use of uninitialized MPS value
Bjorn Helgaas [Tue, 29 Apr 2014 18:51:55 +0000]
PCI: Fix use of uninitialized MPS value

If "pcie_bus_config == PCIE_BUS_PERFORMANCE", we don't initialize "smpss",
so we pass a pointer to garbage into pcie_bus_configure_set(), where we
compute "mps" based on the garbage.  We then pass the garbage "mps" to
pcie_write_mps(), which ignores it in the PCIE_BUS_PERFORMANCE case.

Coverity isn't smart enough to deduce that we ignore the garbage (it's a
lot to expect from a human, too), so initialize "smpss" to a safe value in
all cases.

Cherry-picked from vanilla kernel commit ID 1e358f94c0

Coverity ID 13477

Bug 200083369

Change-Id: I33131de68a8e47d65e9ae1a01a931cb76116a886
Signed-off-by: Pavitrakumar <pavitrak@nvidia.com>
Reviewed-on: http://git-master/r/759248
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>

3 years agoRevert "ARM64: tegra210: hawkeye: set FPS timing to 5120us"
Todd Poynter [Tue, 15 Sep 2015 15:57:13 +0000]
Revert "ARM64: tegra210: hawkeye: set FPS timing to 5120us"

Test revert for 200138938 on iBeta branch.

Bug 200138938
Bug 1675404

This reverts commit 026cfb24edbf6628af4826137d3669735acdbf56.

Change-Id: I188d02762065e45ed9a9aad80a65243b0eb92c74
Signed-off-by: Todd Poynter <tpoynter@nvidia.com>
Reviewed-on: http://git-master/r/799448
(cherry picked from commit 7655ce60d946bee88b5dbe952c036e691b60779c)
Reviewed-on: http://git-master/r/802972

3 years agoALSA: hda: hdmi: remove check for HBR caps
Ashok Mudithanapalli [Wed, 16 Sep 2015 05:42:14 +0000]
ALSA: hda: hdmi: remove check for HBR caps

By assuming HW always suuports HBR, remove
the HBR caps check on pinwidget.

Bug 200135860

Change-Id: Id97ac8a9e8e96f2512637d191589d01aff3ac210
Signed-off-by: Ashok Mudithanapalli <ashokm@nvidia.com>
Reviewed-on: http://git-master/r/799963
(cherry picked from commit 510d429a7125685c6599da018d6c24224a903037)
Reviewed-on: http://git-master/r/802267
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rahul Mittal <rmittal@nvidia.com>
Reviewed-by: Dara Ramesh <dramesh@nvidia.com>

3 years agovideo: tegra: dc: make SOR instance configurable
Shu Zhong [Fri, 18 Sep 2015 23:53:59 +0000]
video: tegra: dc: make SOR instance configurable

Allow SOR configuration to attach to any DC via
new "nvidia,dc-or-node" DT property. Force DPAUX configuration
to be the same as the SOR instance number.

Bug 1684922

Change-Id: I9df348cdb873cb47d17bf9af9d772326c0a81ecc
Signed-off-by: Shu Zhong <shuz@nvidia.com>
Reviewed-on: http://git-master/r/801569
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agovideo: tegra: dc: fix changing min refresh rate
Daniel Solomon [Sat, 5 Sep 2015 04:24:05 +0000]
video: tegra: dc: fix changing min refresh rate

Fix ability to change minimum refresh rate during
runtime.

Bug 1682873

Change-Id: I6d1f38c0e7084557e50ce967649106a69d0c8392
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/794672
(cherry picked from commit 584f05bea8f88674f38c0f6fa719da449387d998)
Reviewed-on: http://git-master/r/799518
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>

3 years agotegra210: update P2143 sku emc tables
Anand Bhatia [Fri, 4 Sep 2015 00:08:38 +0000]
tegra210: update P2143 sku emc tables

Bug 1613337
Update MID table to V07

Change-Id: I7b2dfef973a8c390231113337d126950701edfa7
Signed-off-by: Anand Bhatia <anandb@nvidia.com>
Reviewed-on: http://git-master/r/793995
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>

3 years agovideo: tegra: hdmi: read scdc status flags
Emma Yan [Thu, 17 Sep 2015 08:55:48 +0000]
video: tegra: hdmi: read scdc status flags

According to 6.1.3.1 of HDMI 2.0, source shall poll
the Scrambling_Status bit following the writeof
Scrambling_Enable to a 1 and following transmission of
scrambled video. Moreover, the 10.4 section indicated
that source shall verify a valid HF-VSDB in the EDID
and set the scdc_present bit before accessing SCDC.

Bug 1661387

Change-Id: I97a867f6589f920c2a7ae3aa43c459dd8122edf8
Signed-off-by: Emma Yan <eyan@nvidia.com>
Reviewed-on: http://git-master/r/800691
(cherry picked from commit dd1ea4a985cb2b3ec96037d8761de5f2c12203d0)
Reviewed-on: http://git-master/r/802082
Reviewed-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

3 years agogpu: nvgpu: dbg level for per-write ctx patch msg
Konsta Holtta [Wed, 22 Apr 2015 14:39:58 +0000]
gpu: nvgpu: dbg level for per-write ctx patch msg

The message "per-write ctx patch begin?" is a legacy message for warning
about probably inefficient code, but it's written at error loglevel.
Silence it out a bit by using gk20a_dbg_info(). The inefficient paths
can be fixed later.

Bug 200075565

Change-Id: Idae821aef3001ea5016de22a1a87fec747c42d31
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/734248
(cherry picked from commit e10ba74d3eb7cd9f0547be16d740b1b06b0af112)
Reviewed-on: http://git-master/r/800693
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sandarbh Jain <sanjain@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Sandarbh Jain <sanjain@nvidia.com>

3 years agoRe-order bus header field before payload msg
Srinivas Ramachandran [Wed, 16 Sep 2015 21:42:20 +0000]
Re-order bus header field before payload msg

The DHD driver implementation derives the bus header
pointer based on the msg payload pointer, assuming
the header memory is always before the msg payload.

DHD ver 1.201.82 has swapped the order of msg payload
field to be before bus header in struct dhd_prot_t.
This causes memory corruption when the driver tries to
access header contents by seeking the msg pointer
backwards.

Previous versions of the DHD driver do not have this
issue, and later versions 1.363.x have the correct order
(Header before the payload)

Bug 200128157

Change-Id: I33c1c99fad970c6aa221537a5bf0496666ea6d00
Signed-off-by: Srinivas Ramachandran <srinivasra@nvidia.com>
Reviewed-on: http://git-master/r/800359
Reviewed-by: Manikanta Maddireddy <mmaddireddy@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

3 years agoASoC: tegra-alt: Enable DCR and DMIC Boost Gain
Viswanath L [Thu, 23 Jul 2015 12:04:22 +0000]
ASoC: tegra-alt: Enable DCR and DMIC Boost Gain

 - DCR filter enabled
 - Mixer control "Boost Gain" provided (with 100x factor); gain
   is applied in LP filter configured for passthrough

Bug 200108603

Change-Id: If1e3cfa8cc0b5a3a186ebd6ecdeba9a5a3cc2ef3
Signed-off-by: Viswanath L <viswanathl@nvidia.com>
Reviewed-on: http://git-master/r/773917
Tested-by: Siva Simanapalli <ssimanapalli@nvidia.com>
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

3 years agoASoC: tegra-alt: Update DMIC DCR coeff to T186 POR
Viswanath L [Tue, 15 Sep 2015 09:55:08 +0000]
ASoC: tegra-alt: Update DMIC DCR coeff to T186 POR

TEGRA210_DMIC_DCR_BIQUAD_0_COEF_4 is corrected to 0x0
(as per T186 POR)

Bug 200134942
Bug 200078772

Change-Id: I628c2d3e18615df476b67761553762a23f1fe47e
Signed-off-by: Viswanath L <viswanathl@nvidia.com>
Reviewed-on: http://git-master/r/799353
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Siva Simanapalli <ssimanapalli@nvidia.com>
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>

3 years agotegra-nor: Coverity fixes
Pavitrakumar [Tue, 7 Jul 2015 13:54:12 +0000]
tegra-nor: Coverity fixes

Coverity fixes
memsetting 'nor_cs_info' to avoid uninitialzied usage of
the fields in code.

Coverity ID 18089

Bug 200083369

Change-Id: I08f1b308feb08a8953a51ec868fb493c00f29790
Signed-off-by: Pavitrakumar <pavitrak@nvidia.com>
Reviewed-on: http://git-master/r/767141
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>

3 years agoARM64: dtsi: Disable sdmmc3.
Naveen Kumar Arepalli [Fri, 18 Sep 2015 01:31:42 +0000]
ARM64: dtsi: Disable sdmmc3.

-SD is unable to mount because the mount point of SD has
changed as sdmmc3 is enabled.

Bug 200140103

Change-Id: I2b9a67e798c7b43a21b216894b968cf8a3bc0287
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/801030
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hayden Du <haydend@nvidia.com>

3 years agoplatform: tegra: emc: Fix logic in EMC CC
Alex Waterman [Thu, 27 Aug 2015 17:50:18 +0000]
platform: tegra: emc: Fix logic in EMC CC

Fix some logic in the EMC clock change. The problem was that a bitwise and
operation was compared against the literal value 1. The idea was to actually
test if the bit was set.

Bug 1416640

Change-Id: Ib30c36bb59206b1637ff1fe0443b918c2e493ebe
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/791570
Reviewed-by: Robert Shih <rshih@nvidia.com>
Tested-by: Robert Shih <rshih@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Steve Rogers <srogers@nvidia.com>

3 years agonet: bcmdhd: Fix DT unregister
Michael Hsu [Mon, 13 Jul 2015 00:18:17 +0000]
net: bcmdhd: Fix DT unregister

Unregister platform driver if it was registered due to device tree
settings.

Bug 1630780

Change-Id: I9dd77a7ede32e73edbcbc5b93b536aacd74487d7
Signed-off-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-on: http://git-master/r/769164
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agommc: sdhci: reduce card detect latency
Jeetesh Burman [Wed, 16 Sep 2015 04:31:52 +0000]
mmc: sdhci: reduce card detect latency

Card detection delay (700ms) was added early, this should
apply during resume from LP only, for running system, this delay
should be reduced to 200ms.

Bug 200108407

Change-Id: I5a9f51dd92c72f5af22b24e0d6c7d784f6011b62
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/799915
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: R Raj Kumar <rrajk@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

3 years agoiio: proximity: configurable SAR resume
Erik Lilliebjerg [Fri, 11 Sep 2015 12:29:04 +0000]
iio: proximity: configurable SAR resume

- Add a device tree parameter to set the deferred resume execution delay.
  This allows no IQS device interactions when there are fast system resume
  suspends.
- Add a device tree parameter to set the SAR GPIO assertion level when the
  IQS device is configured as a non-wake device.  In other words, when the
  device is configured for sleep during suspend, this DT setting determines
  the SAR GPIO state during the suspend period.

Bug 200133919.

Change-Id: I5c26835d673b65c00742307dc9454f20baa91988
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/797723
(cherry picked from commit ea3ea28b324ab87139404bb26490e1f58a0653a5)
Reviewed-on: http://git-master/r/800399
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Tested-by: Robert Collins <rcollins@nvidia.com>

3 years agoiio: proximity: Configure SAR deferred resume time
wahsu [Mon, 14 Sep 2015 03:22:18 +0000]
iio: proximity: Configure SAR deferred resume time

Set the deferred resume execution delay to 3000ms.
This allows no IQS device interactions when there are fast system resume
suspends.

Bug 200133919

Change-Id: Ie06254b5961a62c41dd95fabd7e2cd0477c6b51a
Signed-off-by: wahsu <wahsu@nvidia.com>
Reviewed-on: http://git-master/r/798536
(cherry picked from commit b0cc84877373dd5078de7ba321b9fa2732a57942)
Reviewed-on: http://git-master/r/800398
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Tested-by: Robert Collins <rcollins@nvidia.com>

3 years agodriver: soc_camera: enable ov23850 driver contrls
David Wang [Wed, 16 Sep 2015 21:27:45 +0000]
driver: soc_camera: enable ov23850 driver contrls

enabling ov23850 driver with gain and exposure controls.

bug 1651635.

Change-Id: If37c504f49a9c0fa68590f50e60ed6b30c101024
Signed-off-by: David Wang <davidw@nvidia.com>
(cherry picked from commit 39ba701eea6910ee6c2b5ceb9dc5eb87ac60a4d3)
Reviewed-on: http://git-master/r/800352
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Rakesh Sharma <rasharma@nvidia.com>
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

3 years agoIQS2x3: Disable SAR wake up interrupt flag
wahsu [Thu, 10 Sep 2015 03:03:57 +0000]
IQS2x3: Disable SAR wake up interrupt flag

SAR interrupt is not a wake up GPIO, therefore, these bits should be cleared
with DTS setting which overrides the defaults.
Also, by clearing these bits, it tells the SAR kernel driver to put the device
to sleep during system suspend instead of being operational.

Change-Id: If3fc1747c35deb274f2846c354c5dda8a09d550a
Signed-off-by: wahsu <wahsu@nvidia.com>
Reviewed-on: http://git-master/r/796753
(cherry picked from commit 77fc6c96d34c8e656583c27707cd3d1240b833f2)
Reviewed-on: http://git-master/r/798612
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Robert Collins <rcollins@nvidia.com>

3 years agodrivers: soc_camera: add OV23850 driver support
David Wang [Thu, 3 Sep 2015 00:07:28 +0000]
drivers: soc_camera: add OV23850 driver support

Adding support OV23850 with drivers as soc_camera
v4l2 subdevices.

bug 1651635.

Change-Id: I14f2006490269bb7a2133c3b0ed2803a00197432
Signed-off-by: David Wang <davidw@nvidia.com>
Reviewed-on: http://git-master/r/793427
GVS: Gerrit_Virtual_Submit
Reviewed-by: Rakesh Sharma <rasharma@nvidia.com>
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

3 years agoARM64: adding OV23850 on E3323 jetson_cv
David Wang [Mon, 14 Sep 2015 18:47:55 +0000]
ARM64: adding OV23850 on E3323 jetson_cv

Adding the DT and board file support for the OV23850
camera sensor on the E3323 for jetson_cv

bug 1651635.

Change-Id: I47415aba608aa361151763ea7b3d073a22a9c2c6
Signed-off-by: David Wang <davidw@nvidia.com>
Reviewed-on: http://git-master/r/786233
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Rakesh Sharma <rasharma@nvidia.com>
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

3 years agopci: host: tegra: don't free pcie port stuctures
Vidya Sagar [Tue, 18 Aug 2015 15:08:05 +0000]
pci: host: tegra: don't free pcie port stuctures

some pcie port specific controls are present only in
rootport-0 registers which are applicable for all the ports
Hence, instead of freeing port specific structures, this patch
just disables the port on which no device is enumerated
As per MBIST bug, it also applies MBIST WAR for RP-0 always
even if there is no device enumerated on it

Bug 200122328

Change-Id: I2644144ba0e3be86abc25eeba70e86df0791231c
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/785436
(cherry picked from commit 0865f5492b1d60e457c3d928394a4e61d1eef5a0)
Reviewed-on: http://git-master/r/796900
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agobacklight: lp855x: set zero brightness at FBBLANK
Shingo Nakao [Tue, 2 Jul 2013 12:15:54 +0000]
backlight: lp855x: set zero brightness at FBBLANK

When backlight turns on early from display, a white line can be
seen on the screen. Therefore make sure backlight is off when we
are under an fb blank event.

Bug 200089489

Change-Id: I5cd70bfda9902a982d168f2c5b4388424e7d800c
Signed-off-by: Shingo Nakao <shingo.x.nakao@sonymobile.com>
Cc: Milo Kim <milo.kim@ti.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Oskar Andero <oskar.andero@sonymobile.com>
Acked-by: Milo Kim <milo.kim@ti.com>
Acked-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
(cherry picked from commit 9f0a511f4a227c58c45b65c10fd2b85586360f67)
Signed-off-by: Shu Zhong <shuz@nvidia.com>

backlight: lp855x: Don't clear level on suspend/blank

Don't clear the backlight level when we're going into suspend or
blanking. Instead, just temporarily set the level to 0 so we retain
the value when we resume.

Bug 200089489

Change-Id: If86de80c15400db7ed28832f369328b5031d6d02
Reported-by: Benson Leung <bleung@chromium.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Tested-by: Stephen Barber <smbarber@chromium.org>
Reviewed-by: Benson Leung <bleung@chromium.org>
Acked-by: Milo Kim <milo.kim@ti.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
(cherry picked from commit 61c1c6147f69d8dea31fd133d2ec0b1594c9a3eb)
Signed-off-by: Shu Zhong <shuz@nvidia.com>
Reviewed-on: http://git-master/r/789222
(cherry picked from commit a9c396f9f0e3d4075be7d04a3d8b349c5000b24a)
Reviewed-on: http://git-master/r/797976
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agodrivers: mmc: disable deferred resume for sd card
Jeetesh Burman [Mon, 31 Aug 2015 03:51:10 +0000]
drivers: mmc: disable deferred resume for sd card

Enable MMC_BLOCK_DEFERRED_RESUME only for mmc0.

And disabling same for SD card by setting
bus_resume_flags and rescan_disable to 0 after its
enumeration successfully done.

Bug 200130799

Change-Id: If54eceb3661516a3db4e3dcef44920e7c6e75da3
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/791579
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agommc: sdhci: resume mmc_rescan at 700ms in LP0 exit
Jeetesh Burman [Thu, 27 Aug 2015 05:56:23 +0000]
mmc: sdhci: resume mmc_rescan at 700ms in LP0 exit

While resuming from LP0, all interrupts for sd card are not
enabled in early resume and during that if system sends any
command (e.g enumeration CMDs by plugin SD card), system
doesn't get any response for transmitted command, this causes,
driver throw sd dump registers.

350ms is not sufficient for Jetson-CV.

To fix this issue, resuming from LP0/1, "mmc_rescan" delayed
by 700ms, so that interrupts for SD card get enabled during this
period.

Bug 200108407

Change-Id: I64122764f5dd59aadb2d6e7b8963c8b6a87317c8
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/790156
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

3 years agoARM: tegra: Hawkeye: make pin pex_l0_rst common
Daniel Solomon [Fri, 14 Aug 2015 00:05:24 +0000]
ARM: tegra: Hawkeye: make pin pex_l0_rst common

The pin pex_l0_rst is used by the bootloader as an
output GPIO. In order for this pin's pinmux to be
configured correctly by the bootloader, it needs to
be part of the common group. In addition, since it's
an output GPIO, this pin is no longer tristated.

(Previously all this was configured by the kernel, but now
we need this functionality in bootloader as well.)

Bug 1649961

Change-Id: If458767ecb191476d778630f1152e7636cb85a51
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/783341
(cherry picked from commit c4961707ae44c77ce588568873643a6d38b248ca)
Reviewed-on: http://git-master/r/785015
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agoarm64: dts: hawkeye: Remove unused dt prop
Harry Lin [Thu, 20 Aug 2015 06:45:13 +0000]
arm64: dts: hawkeye: Remove unused dt prop

long-press-power-key-on-enable is deprecated.
We now use only long-press-power-key-on-time.

Bug 200111953

Change-Id: Ia779db97e203b30bf33fabf620a6b1fd7bba9eb4
Signed-off-by: Harry Lin <harlin@nvidia.com>
Reviewed-on: http://git-master/r/786378
(cherry picked from commit de93e92c64caa188d06a8e260f0f73ef7067a211)
Reviewed-on: http://git-master/r/790202
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agostaging: ozwpan: don't use audio priority for none audio packets
Om Prakash Singh [Sat, 16 May 2015 06:08:03 +0000]
staging: ozwpan: don't use audio priority for none audio packets

Bug 1522708
Bug 200094897

Change-Id: Ied5ec5f428084beddad110a8e11718d76e0fab38
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/743515
(cherry picked from commit 233117f0474df197b87ba7b16b91e68d7e5cf4e5)
Reviewed-on: http://git-master/r/768437
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agovideo: tegra: dsi: poll for end of DC stream
Daniel Solomon [Tue, 18 Aug 2015 22:15:25 +0000]
video: tegra: dsi: poll for end of DC stream

The function tegra_dsi_stop_dc_stream_at_frame_end()
is used to stop the DC stream and block until either
this happens or a timeout occurs. To determine that
DC stream stopped, it waits for on a conditional
variable that gets signaled in dc_irq(). However, since
this function gets called in dc->mutex locked context,
dc_irq() cannot acquire the mutex in order to signal
the frame-end conditional variable, so the function
consistently times out. This causes a noticeable pause
in data stream to the display, which is a problem on
some displays.

Instead of using a conditional variable, switch to a
simple polling loop and wait on GENERAL_ACT_REQ to
clear. Polling time is expected to be short,
less than 1 frame, and happens only during major
transitions (display on/off, MIPI command
transmission, etc.).

Bug 1673450

Change-Id: Icdf457c72c45820f18f8a66b55c32d6b1a48f817
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/785601
(cherry picked from commit 44fa2c85094232c34f0afa4a05f05d0dd2017e83)
Reviewed-on: http://git-master/r/796603
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agonet: wireless: bcmdhd: bump thread priority
Bibhay Ranjan [Fri, 4 Sep 2015 09:03:47 +0000]
net: wireless: bcmdhd: bump thread priority

For the latency sensitive data on wifi, the
thread priority needs to be increased.

Bug 200122028

Change-Id: Ia350ecb6f78fac7a5397296a8549b7dd845b374b
Signed-off-by: Bibhay Ranjan <bibhayr@nvidia.com>
Reviewed-on: http://git-master/r/794251
(cherry picked from commit 803af873c1f8f663c3134d53e4af1254e52646ef)
Reviewed-on: http://git-master/r/798610
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

3 years agobacklight: lp855x: add check_fb to bl ops
Shu Zhong [Fri, 4 Sep 2015 02:09:17 +0000]
backlight: lp855x: add check_fb to bl ops

Add check_fb function to bl ops so that lp855x driver
only responds when correct fb device is blanked/unblanked.

Change-Id: I944d5dbbaf2deb6f721fd62c754b5738438957e9
Signed-off-by: Shu Zhong <shuz@nvidia.com>
Reviewed-on: http://git-master/r/794055
(cherry picked from commit bdedec2028e9af1fd7ad8386a29c7e68702fcf18)
Reviewed-on: http://git-master/r/797980
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>

3 years agodvfs: tegra: update dvfs table as per POR sheet
Praveen Mallaiah [Thu, 13 Aug 2015 00:51:57 +0000]
dvfs: tegra: update dvfs table as per POR sheet

Updated CPU DVFS table as per POR sheet

Bug 1661819

Change-Id: I69cf4d87d48298870b3b7fc7a51bbfc13352199b
Signed-off-by: Praveen Mallaiah <pmallaiah@nvidia.com>
Reviewed-on: http://git-master/r/782705
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yue-Herng Lin <yueherngl@nvidia.com>
Reviewed-by: Luis Dib <ldib@nvidia.com>
Reviewed-by: Vipin Kumar <vipink@nvidia.com>
Reviewed-by: Sreenivasulu Velpula <svelpula@nvidia.com>
Reviewed-by: Paul Giglio <pgiglio@nvidia.com>

3 years agotegra: nvmap: fix the possible dead lock
Xianhui Wang [Wed, 19 Aug 2015 04:26:42 +0000]
tegra: nvmap: fix the possible dead lock

bug 200107851

When a process call nvmap_iovmm_get_client_mss it will hold mutex_lock(&h->lock)

and try to get down_read(&mm->mmap_sem), at the same time if the related

process is calling nvmap_vma_close, it have hold mm->mmap_sem for write when

it entering vm_munmap, and try to get mutex_lock(&h->lock). Then the problem

happen, many process become "uninterruptable sleep" with the two process.

Then bugreport will not work.

Try to fix the problem and let nvmap_iovmm_get_client_mss get mmap_sem firstly

then it will align with nvmap_vma_close.

The call stack:

<6>[68949.696132] memory_usage.sh D ffffffc000086b1c    0 2771     1 0x00000000
<7>[68949.696140] Call trace:
<7>[68949.696146] [<ffffffc000086b1c>] __switch_to+0x3c/0x48
<7>[68949.696151] [<ffffffc000b90410>] __schedule+0x4b4/0x5e0
<7>[68949.696156] [<ffffffc000b90588>] schedule+0x4c/0x68
<7>[68949.696161] [<ffffffc000b91234>] __down_read+0xb8/0xe0
<7>[68949.696166] [<ffffffc000b8f85c>] down_read+0x28/0x38
<7>[68949.696174] [<ffffffc0004705b8>] nvmap_iovmm_get_client_mss+0xf8/0x1ac
<7>[68949.696180] [<ffffffc0004706fc>] nvmap_debug_iovmm_procrank_show+0x90/0x124
<7>[68949.696185] [<ffffffc0001c8b94>] seq_read+0x178/0x3d4
<7>[68949.696190] [<ffffffc0001a30c8>] vfs_read+0x94/0x158
<7>[68949.696195] [<ffffffc0001a3a78>] SyS_read+0xbc/0x16c
<6>[68949.696870] nvtest64       D ffffffc000086b1c    0 9220     1 0x00000000
<7>[68949.696877] Call trace:
<7>[68949.696883] [<ffffffc000086b1c>] __switch_to+0x3c/0x48
<7>[68949.696888] [<ffffffc000b90410>] __schedule+0x4b4/0x5e0
<7>[68949.696893] [<ffffffc000b90588>] schedule+0x4c/0x68
<7>[68949.696898] [<ffffffc000b90a04>] schedule_preempt_disabled+0x10/0x24
<7>[68949.696904] [<ffffffc000b8f42c>] __mutex_lock_slowpath+0x19c/0x264
<7>[68949.696909] [<ffffffc000b8f534>] mutex_lock+0x40/0x60
<7>[68949.696914] [<ffffffc00046ede8>] nvmap_vma_close+0x64/0x234
<7>[68949.696919] [<ffffffc000182e64>] remove_vma+0x3c/0x6c
<7>[68949.696924] [<ffffffc000184110>] remove_vma_list+0x68/0x9c
<7>[68949.696928] [<ffffffc000184b60>] do_munmap+0x1d8/0x250
<7>[68949.696932] [<ffffffc000184c18>] vm_munmap+0x40/0x64
<7>[68949.696937] [<ffffffc000184cc8>] SyS_munmap+0x8c/0x11c

Change-Id: Icee67329c2dbbd05b10a7ddf0dcc4167191623d3
Signed-off-by: Xianhui Wang <xianhuiw@nvidia.com>
Reviewed-on: http://git-master/r/785721
(cherry picked from commit 306af7c0b904d04300c8a6e202bdf7eea6acd5af)
Reviewed-on: http://git-master/r/788685
Reviewed-by: Maneet Maneet Singh <mmaneetsingh@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

3 years agovideo: tegra: hdmi: fix mode_filter mode rejection
Naveen Kumar S [Mon, 24 Aug 2015 11:54:41 +0000]
video: tegra: hdmi: fix mode_filter mode rejection

When comparing Pixel clock in Pico Seconds, we should reject
those modes which are less than maximum supported pixel clock
in pico seconds. This is equivalent to rejecting modes that
need a higher pixel clock frequency than maximum pixel clock.

bug 200130894

Change-Id: Ie9b0f64867533ad9b4234216d15c56e9062d4a4e
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/788160
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Tested-by: Venu Byravarasu <vbyravarasu@nvidia.com>

3 years agoarm64: tegra: jetson_cv: disable SAR on super module
Kerwin Wan [Thu, 10 Sep 2015 10:39:39 +0000]
arm64: tegra: jetson_cv: disable SAR on super module

SAR will cause gpio expander fail to work and system
become very stuck. Disable it now until the issue is
fixed.

Bug 200137392

Change-Id: Ia7c453a6f5e5667fd767707a66d27b57b135e005
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/796998
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hayden Du <haydend@nvidia.com>

3 years agoplatform: tegra: add support for board specific prod
Laxman Dewangan [Fri, 11 Sep 2015 14:18:32 +0000]
platform: tegra: add support for board specific prod

Add support for board specific prod settign also.
Currently, prod settings are chip specific. On this,
add the board specific prod setting as child node to
configure for given board.

prod-device {
prod = < chip specific>;
board-specific {
prod = <board specific>;
};
};

bug 200119447

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

3 years agonet:wireless:bcmdhd: Enable PMF support
Dhruvaraja Kunjar [Fri, 6 Feb 2015 04:39:08 +0000]
net:wireless:bcmdhd: Enable PMF support

Enable the Protected Management Frames feature which
is mandatory for 802.11-ac certification.
Bug 200060786

Change-Id: I60cf958f9320fc3e92712d9aff192f8d21a3d190
Signed-off-by: Kasturi Raghavender <kraghavender@nvidia.com>
Reviewed-on: http://git-master/r/681820
(cherry picked from commit f3c9e1de630a0ae2a6fd9f055ea372644521f27b)
Reviewed-on: http://git-master/r/696336
Reviewed-on: http://git-master/r/791749
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
Reviewed-on: http://git-master/r/796415
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agonet: wireless: bcmdhd: Synchronize p2p deletion
kraghavender [Thu, 3 Sep 2015 18:58:06 +0000]
net: wireless: bcmdhd: Synchronize p2p deletion

dhd_dpc thread gets tainted when 'dhd_rx_frame' access the p2p
interface data strcuture which is deleted by cfg layer
asyncronous call back 'wl_cfg80211_del_virtual_iface'.
There is no proper synchronization between p2p interface deletion by
cfg and interface access data structure in 'dhd_rx_frame'.
This will fix syncronization issues between cfglayer p2p
interface deletion and 'dhd_rx_frame' access of p2p interface data
structure. Instead of deleting the p2p interface in cfglayer
asynchronous call, mark the p2p interfacelist as NULL when p2p firwmare
delete event is given to DHD and delete it in cfg layer delete
virtual interface call.

Bug 200134576

Change-Id: I17a29d2fa355436003af734ae994a42dcf7a7726
Signed-off-by: Kasturi Raghavender <kraghavender@nvidia.com>
Reviewed-on: http://git-master/r/796406
GVS: Gerrit_Virtual_Submit
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

3 years agovideo: tegra: dsi: attempt retry for dsi write fail
Prafull Suryawanshi [Thu, 20 Aug 2015 09:03:52 +0000]
video: tegra: dsi: attempt retry for dsi write fail

This logic adds retry attempts for possible dsi write
failure. It also takes care of error to be propagated to
caller.

bug 200124422

Change-Id: I652ac4c6e513585a4f94048b6596e4aec9f22b4b
Signed-off-by: Prafull Suryawanshi <prafulls@nvidia.com>
Reviewed-on: http://git-master/r/786469
(cherry picked from commit e9f89cda70103526c1a524576de6d310fed434f2)
Reviewed-on: http://git-master/r/786467
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agovideo: tegra: dc: mark crc_pending false frame end
Prafull Suryawanshi [Thu, 3 Sep 2015 10:45:46 +0000]
video: tegra: dc: mark crc_pending false frame end

In one of the instance, found that crc_pending needs
to set false at the time of frame end interrupt. It is
already handled for one shot irq and now adding for
continuous irq.

bug 200117718

Change-Id: I6c071ce95804cf07ba4eadc0e8004a4d8369ed70
Signed-off-by: Prafull Suryawanshi <prafulls@nvidia.com>
Reviewed-on: http://git-master/r/793706
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 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
(cherry picked from commit da2221aad86f84908072420b975c5ef0d6502a53)
Reviewed-on: http://git-master/r/795624
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoxhci: tegra: Set trigger to boost frequency
Krishna Yarlagadda [Mon, 6 Jul 2015 18:07:52 +0000]
xhci: tegra: Set trigger to boost frequency

Boost cpu frequency only when buffer of bulk and isoc
transfers exceeds particular size configured by dt

Bug 200115844

Change-Id: Ia6948395d893e426600ba0554f50f209f6d921d4
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/769451
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Tested-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

3 years agoarm64: jetson: dts: set default boost for xhci
Krishna Yarlagadda [Mon, 6 Jul 2015 18:24:23 +0000]
arm64: jetson: dts: set default boost for xhci

Jetson boards have ethernet device on xhci and this
will cause cpu boost to be always on which is not desired
Removed dt change to load default boost frequency 800MHz

Bug 200115844

Change-Id: Iad8d370f4036b08b5491b033d1d8e147c522845e
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/769452
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoARM64: dtsi: Support eMMC on sdmmc3
Naveen Kumar Arepalli [Tue, 8 Sep 2015 04:05:40 +0000]
ARM64: dtsi: Support eMMC on sdmmc3

-Add eMMC Support on SDMMC for jetson-cv-p2597-2180

Bug 200137330

Change-Id: I6409dc7567c578f16ae576607e115c3c9a0f6b8f
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/795312
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hayden Du <haydend@nvidia.com>

3 years agoarm64: dts: enable INA3221 in P2180
Shreshtha SAHU [Mon, 7 Sep 2015 11:36:07 +0000]
arm64: dts: enable INA3221 in P2180

Enable INA3221 in P2180 for power measurements.

Bug 1674705

Change-Id: Ib65e3349943b815b0d5e31c7f4f703e4f4bf5fa4
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/795255
Reviewed-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Hayden Du <haydend@nvidia.com>

3 years agoARM: 7829/1: Add ".text.unlikely" and ".text.hot" to arm unwind tables
Douglas Anderson [Wed, 28 Aug 2013 23:08:01 +0000]
ARM: 7829/1: Add ".text.unlikely" and ".text.hot" to arm unwind tables

It appears that gcc may put some code in ".text.unlikely" or
".text.hot" sections.  Right now those aren't accounted for in unwind
tables.  Add them.

I found some docs about this at:
  http://gcc.gnu.org/onlinedocs/gcc-4.6.2/gcc.pdf

Without this, if you have slub_debug turned on, you can get messages
that look like this:
  unwind: Index not found 7f008c50

bug 200110987
bug 200120060

Change-Id: I5f70de5aa2ecc71e00e32908ca8d690e1edb9032

Signed-off-by: Doug Anderson <dianders@chromium.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Vipin Kumar <vipink@nvidia.com>
(cherry picked from commit 849b882b52df0f276d9ffded01d85654aa0da422)
Change-Id: I82456cd2d538f8635ecba34bfad107d2a5145170
Reviewed-on: http://git-master/r/784820
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>

3 years agoFinally eradicate CONFIG_HOTPLUG
Stephen Rothwell [Tue, 21 May 2013 03:49:35 +0000]
Finally eradicate CONFIG_HOTPLUG

Ever since commit 45f035ab9b8f ("CONFIG_HOTPLUG should be always on"),
it has been basically impossible to build a kernel with CONFIG_HOTPLUG
turned off.  Remove all the remaining references to it.

bug 200110987
bug 200120060

Change-Id: I36c04ae841a55cd2c85b6cf2483ae3f691ee8c9f

Cc: Russell King <linux@arm.linux.org.uk>
Cc: Doug Thompson <dougthompson@xmission.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Steven Whitehouse <swhiteho@redhat.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Vipin Kumar <vipink@nvidia.com>
(cherry picked from commit 40b313608ad4ea655addd2ec6cdd106477ae8e15)
Change-Id: Ia685a4b416755a918c6f0c760a85d75e4dd29043
Reviewed-on: http://git-master/r/784819
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>

3 years agoHID: hidraw: Fix potential memory leak in list->buffer
Ankita Garg [Tue, 25 Aug 2015 23:15:03 +0000]
HID: hidraw: Fix potential memory leak in list->buffer

Bug 1677312

Change-Id: I4fe6296b3d944c7ebf81f3af2aa73256688a4613
Signed-off-by: Ankita Garg <ankitag@nvidia.com>
Reviewed-on: http://git-master/r/789231
(cherry picked from commit 78d9ee9ad113e31193fdfae30f3743a0febcb8ca)
Signed-off-by: Ankita Garg <ankitag@nvidia.com>
Reviewed-on: http://git-master/r/791185
GVS: Gerrit_Virtual_Submit
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>
Reviewed-by: Eric Chuang <echuang@nvidia.com>

3 years agoHID: hidraw: Fix memory leak in list->buffer
Ankita Garg [Tue, 25 Aug 2015 22:55:39 +0000]
HID: hidraw: Fix memory leak in list->buffer

Deallocate memory allocated to list->buffer[x].value on
release

Bug 1677312

Change-Id: Iaf320327e917b3e78b07230819d51053e43e2c25
Signed-off-by: Ankita Garg <ankitag@nvidia.com>
Reviewed-on: http://git-master/r/791189
GVS: Gerrit_Virtual_Submit
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>
Reviewed-by: Eric Chuang <echuang@nvidia.com>

3 years agoarm64: dts: hawkeye: set gen2 prod settings
Shardar Shariff Md [Tue, 8 Sep 2015 14:20:52 +0000]
arm64: dts: hawkeye: set gen2 prod settings

set gen2 recommended prod settings for 100KHz
and remove earlier settings done for 400KHz

Bug 200114347

Change-Id: Iae0b89e071233fbca3b24e8668242b21dc833b63
Signed-off-by: Shardar Shariff Md <smohammed@nvidia.com>
Reviewed-on: http://git-master/r/795802
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agot124: vcm30t124: Enable disable-clock-request for PCIE ports
Vipin Kumar [Tue, 25 Aug 2015 04:42:19 +0000]
t124: vcm30t124: Enable disable-clock-request for PCIE ports

Because of a HW bug in T124, clkreq line from the endpoint is not
honored by the PCIE host. A new DT property "disable-clock-request"
handles it such that the driver enables clkref irrespective of clkreq.

Both vcm30t124 based platfroms (p1859 and p2360) use clkreq line from
the EP. So, this patch defines this property for all vcm30t124 based
platforms.

bug 200132704

Change-Id: Iaff60db64ed2512aa21058f576072f97336bf1ad
Signed-off-by: Vipin Kumar <vipink@nvidia.com>
Reviewed-on: http://git-master/r/788587
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>

3 years agoHACK: modify smc calls mapping for foster_e
Josh Kuo [Fri, 21 Aug 2015 08:14:54 +0000]
HACK: modify smc calls mapping for foster_e

rel-23 will enable retail foster_e with a stock android build.

The fused unit of foster_e uses the existing tos prebuilt from rel-22,
which is based on legacy smc calls mapping.

Need to roll back the smc mapping to legacy ones for retail foster_e

Bug 1676875
Bug 200116003

Change-Id: I3dd1fcef04c96034455badae3d5154a6f4494697
Signed-off-by: Josh Kuo <joshk@nvidia.com>
Reviewed-on: http://git-master/r/787163
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hayden Du <haydend@nvidia.com>

3 years agoHACK: dt: roll back psci version for foster_e
Josh Kuo [Fri, 21 Aug 2015 08:10:21 +0000]
HACK: dt: roll back psci version for foster_e

rel-23 will enable retail foster_e with a stock android build.

The fused unit of foster_e uses existing bootloader prebuilt on unit,
which is based on legacy bpmp.

roll back psci version due to bpmp compatibility.

Bug 1676875
Bug 200116003

Change-Id: I670b795bd2309354892f4695391b80f2a0da335a
Signed-off-by: Josh Kuo <joshk@nvidia.com>
Reviewed-on: http://git-master/r/787155
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hayden Du <haydend@nvidia.com>

3 years agoHID: Fix Blake vibration
Spencer Sutterlin [Wed, 29 Jul 2015 19:03:11 +0000]
HID: Fix Blake vibration

Remove the check for application in HID report. Blake fails this
check and doesn't initialize Force Feedback.

Bug 1625921

Change-Id: Ifb4d7b82c63aee4535022d7b6bb697275b721ac1
Signed-off-by: Spencer Sutterlin <ssutterlin@nvidia.com>
Reviewed-on: http://git-master/r/776459
(cherry picked from commit 11dbd3089a693df4923244c2b83d13f0ee19d1b3)
Reviewed-on: http://git-master/r/792805
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>

3 years agoRevert "Revert "HID: remove extra kfree""
Spencer Sutterlin [Wed, 29 Jul 2015 19:12:26 +0000]
Revert "Revert "HID: remove extra kfree""

Needed to prevent system hangs when Blake disconnects/connects
with force feedback (FF) enabled

Bug 1625921

This reverts commit 4e22eef0777eddfef50687395c87997a16498aac.

Change-Id: Ie423f456a3305325a9f87d273eeb5511cf6092b7
Signed-off-by: Spencer Sutterlin <ssutterlin@nvidia.com>
Reviewed-on: http://git-master/r/776458
(cherry picked from commit dcfe20d7df7cd303c7c8fe8630e961b21574c970)
Reviewed-on: http://git-master/r/792804
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>

3 years agonet: wireless: bcmdhd: Send DISASSOC to FW if status of wlan is connecting
Om Prakash Singh [Fri, 21 Aug 2015 06:24:19 +0000]
net: wireless: bcmdhd: Send DISASSOC to FW if status of wlan is connecting

Bug 200094442
Bug 200104476

Change-Id: I18a1f633f2019cd160cd342f39319a313637ffd6
Signed-off-by: lungtsai_lin <lungtsai_lin@htc.com>
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/744280
(cherry picked from commit a1418f5f2b871f362050ca858c7c7aa6c6815a83)
Reviewed-on: http://git-master/r/787093
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agovideo: fbcon: Keep atleast one mode in modelist
Naveen Kumar S [Tue, 1 Sep 2015 06:35:54 +0000]
video: fbcon: Keep atleast one mode in modelist

Framebuffer console init requires atleast one valid
mode to exist for it to succeed.
Virtual terminals relies on the success of fbcon_init
without really checking the return value of this function.

tegra_dc_vga_mode already defined in dc.c. Removed duplicate
defination in hdmi.c and hdmi2.0.c

bug 200036424
bug 200130124
bug 200129681

Change-Id: Ia34da6ab3814f667a485d23ef88e1a52f8b5519b
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/707309
(cherry picked from commit 73a561a53469912d94c0dea866646c87ec257bef)
Reviewed-on: http://git-master/r/792235
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoclock: tegra21: boosting sclk clock
Anubhav jain [Tue, 18 Aug 2015 10:09:38 +0000]
clock: tegra21: boosting sclk clock

Bug 200128606

Change-Id: Ia3c9ba840d6897a2052f5aaa10e1cf2bf451ef7a
Signed-off-by: Anubhav jain <anubhavj@nvidia.com>
Reviewed-on: http://git-master/r/781812
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Tested-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-on: http://git-master/r/793613
GVS: Gerrit_Virtual_Submit

3 years agovideo: tegra: use vga mode if no edid upon hotplug
Naveen Kumar S [Fri, 4 Sep 2015 13:34:06 +0000]
video: tegra: use vga mode if no edid upon hotplug

When hdmi cable is connected but we do not get EDID from
sink for some reason, fallback to default vga mode so that
upper layers won't hang due to null mode.

bug 200102964

Change-Id: I0c898f26644472e39101ade4aa04be741487089d
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/794362
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agogpu: nvgpu: Add CDE bits in FECS header
sujeet baranwal [Mon, 31 Aug 2015 22:32:13 +0000]
gpu: nvgpu: Add CDE bits in FECS header

In case of CDE channel, T1 (Tex) unit needs to be promoted to 128B
aligned, otherwise causes a HW deadlock. Gpu driver makes changes in
FECS header which FECS uses to configure the T1 promotions to aligned
128B accesses.

Bug 200096226

Change-Id: Ic006b2c7035bbeabe1081aeed968a6c6d11f9995
Signed-off-by: sujeet baranwal <sbaranwal@nvidia.com>
Reviewed-on: http://git-master/r/792051
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agotegra: dc: ext: fix Coverity dead code issue
Daniel Solomon [Tue, 1 Sep 2015 23:14:35 +0000]
tegra: dc: ext: fix Coverity dead code issue

Forcing has_timestamp to flase on Android causes
dead code.
Fix for Coverity CID 19586.

Bug 200116059

Change-Id: I3082f660d0a3d3c63d2d37e0cbbb80230e57a431
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/792746
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>

3 years agoarm-dt: Enable DT proc updates.
Laxman Dewangan [Sat, 5 Sep 2015 00:40:53 +0000]
arm-dt: Enable DT proc updates.

This simple patch enables dynamic changes of the DT tree on runtime
to be visible to the device-tree proc interface.

This is based on patch
31982e52f0f5d6d51e69d5c4c4a7be5d52307c6e

bug 200137206

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

3 years agoof: add support for plugin manager for board-id based DT update
Laxman Dewangan [Sat, 5 Sep 2015 00:33:37 +0000]
of: add support for plugin manager for board-id based DT update

Add support for plugin manager which identify the board ID
of platform and update the DT before kernel populate devices
based on the DT.

This way, the single DTS file can work with multiple module with
proper overlay.

bug 200137206

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

3 years agovideo: tegra: dc: no hotplug for eDP
Shu Zhong [Thu, 20 Aug 2015 23:18:35 +0000]
video: tegra: dc: no hotplug for eDP

tegra_dc_hotplug_supported should be false for
eDP panels. Currently, we still need it to return
true for VCM30T124 to prevent inadvertent sanity failures
on p1859.

Bug 200113686

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

3 years agovideo: tegra: dp: WAR to disable hdcp for dp
Santosh Reddy Galma [Mon, 17 Aug 2015 11:51:40 +0000]
video: tegra: dp: WAR to disable hdcp for dp

Change-Id: Iee25c4486f530ac53b4d5ceab8d6279d793e7abe
Signed-off-by: Santosh Reddy Galma <galmar@nvidia.com>
Reviewed-on: http://git-master/r/784761
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Shu Zhong <shuz@nvidia.com>
Tested-by: Shu Zhong <shuz@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>

3 years agovideo: tegra: dp: fix dp switch handling
Santosh Reddy Galma [Mon, 10 Aug 2015 14:49:52 +0000]
video: tegra: dp: fix dp switch handling

skip hpd switch and audio switch registration for
eDP as they are not required for eDP. Also perform
switch related calls only for DP.

Bug 200128097

Change-Id: Ic320f4be2be92a80ba4d62fa9e7d65af2139deb5
Signed-off-by: Santosh Reddy Galma <galmar@nvidia.com>
Reviewed-on: http://git-master/r/781143
(cherry picked from commit b187863c5f4cc112e125f83a7ac996f2edf943be)
Reviewed-on: http://git-master/r/782806
(cherry picked from commit c13abf6e77a5e59d4f3a476c63c5f11466dfc385)
Reviewed-on: http://git-master/r/784730
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Shu Zhong <shuz@nvidia.com>
Tested-by: Shu Zhong <shuz@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>

3 years agovideo: tegra: dp: fix integration errors
Santosh Reddy Galma [Mon, 17 Aug 2015 10:19:52 +0000]
video: tegra: dp: fix integration errors

fixed compilation errors caused for integrations to
rel23 codetree.

Bug 200128097

Change-Id: Ia825fafae8830b9f13eb4ff25f6e78f5d13c38ee
Signed-off-by: Santosh Reddy Galma <galmar@nvidia.com>
Reviewed-on: http://git-master/r/784713
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Shu Zhong <shuz@nvidia.com>
Tested-by: Shu Zhong <shuz@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>