3 years agomedia:ar0330: add 4 lanes setting 2048x1296 l4t/l4t-r21.4 tegra-l4t-r21.4
Ming Wong [Fri, 12 Jun 2015 20:46:51 +0000]
media:ar0330: add 4 lanes setting 2048x1296

bug 1655159

Change-Id: I5c09cb63075f3465e90aee4f3619df02c34bca95
Signed-off-by: Ming Wong <miwong@nvidia.com>
Reviewed-on: http://git-master/r/757527
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

3 years agommc: tegra: reverify tuning best tap
Bibek Basu [Tue, 23 Jun 2015 05:41:44 +0000]
mmc: tegra: reverify tuning best tap

tuning best_tap_value at times throws wrong value leading
to data crc error. To make the SW robust, reverify tuning
best_tap_value with previously calculated and then only
proceed.

Bug 200107220
Bug 200102727

Change-Id: If58194bcfd1f025b15f827b233b534b8fc999327
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/761054
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Tested-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

3 years agomedia: tegra_camera: add start streaming call
Bryan Wu [Mon, 8 Jun 2015 22:01:25 +0000]
media: tegra_camera: add start streaming call

Queueing buffer might happen before starting streaming. So any queueing
buffer operation before starting streaming shouldn't trigger real
capture but just queue the buffer. After starting streaming, it will
wake up kernel workqueue to start real capture.

Bug 1639982

Change-Id: I66fd527bbd12790b2d688f320214976e70a658f3
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/754710
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: David Wang (SW-TEGRA) <davidw@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

3 years agomedia: tegra_camera: optimize single shot mode
Bryan Wu [Thu, 28 May 2015 00:09:45 +0000]
media: tegra_camera: optimize single shot mode

Current single shot mode, pixel parser is disabled after capture one
frame and software waits for memory write ack done syncpoint, which
only gives us half the frame rate.

Optimized single shot mode:
 - during capture setup, set single shot mode
 - for each frame, wait for FRAME_START syncpoint
 - arm single shot bit to start capture
 - for the last frame, wait for MWA_DONE syncpoint to make sure capture
   finished.

With optimized single shot mode, frame rate is about 4208x3120 @ 24fps
for IMX135 and 1920x1080 @ 30fps for AR0261.

Bug 1639982

Change-Id: I0b15d02c2853647d03f5b2d38a7fe5c145174bd5
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/754709
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: David Wang (SW-TEGRA) <davidw@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

3 years agoRevert "video: tegra: Wait PMU finishes booting"
Winnie Hsu [Thu, 18 Jun 2015 23:13:29 +0000]
Revert "video: tegra: Wait PMU finishes booting"

This reverts commit f69b7093accdacfa653b4bd45d78e04a2676dc2a.
Bug 200055546
Bug 200114503

Change-Id: I165a3da9f418657d86bf39fbe3db2adc13762c87
Signed-off-by: Winnie Hsu <whsu@nvidia.com>
Reviewed-on: http://git-master/r/759875

3 years agovideo: tegra: dsi: add delay after register write
Naveen Kumar S [Wed, 6 May 2015 07:21:43 +0000]
video: tegra: dsi: add delay after register write

Providing a small delay after writing to dc registers while
stopping dc stream helps in stabilizing the registers. This
helps in resolving the intermittent register read failure issue.

bug 200087039

Change-Id: I159d1d75aa2472b9e33bc42d890382f33def218a
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/746062
(cherry picked from commit d29669af88735a2aeeb87b26f8794c9bcbb9f058)
Reviewed-on: http://git-master/r/756015
Reviewed-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

3 years agoRevert "platform: tegra: Define DDR Tap/trim varibles"
Jeetesh Burman [Thu, 18 Jun 2015 05:51:46 +0000]
Revert "platform: tegra: Define DDR Tap/trim varibles"

This reverts commit 24584959ad4822e985e3a072ca8f44b69f2afc33.

Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Change-Id: I5a2b7c64f47643ef482caa8b2da81d018747109b
Reviewed-on: http://git-master/r/759478
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

3 years agoRevert "mmc: tegra: Fix missing tap hole margins print"
Jeetesh Burman [Thu, 18 Jun 2015 05:51:19 +0000]
Revert "mmc: tegra: Fix missing tap hole margins print"

This reverts commit 6ad6591bf83670f91ab5f7628b5a6c3db3e9da4c.

Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Change-Id: If31a8a2a53a804657ebc5878be8594230acba2aa
Reviewed-on: http://git-master/r/759477
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

3 years agoRevert "mmc: tegra: disable card clk before setting tap"
Jeetesh Burman [Thu, 18 Jun 2015 05:50:50 +0000]
Revert "mmc: tegra: disable card clk before setting tap"

This reverts commit f9b36d3b89f76cc48678eeb7a27cb980e89901d0.

Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Change-Id: Ie862afeda5e7e5b360775248fbbc49a031528a0b
Reviewed-on: http://git-master/r/759476
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

3 years agoRevert "mmc: tegra: Use 100000 precision instead of 1000"
Jeetesh Burman [Thu, 18 Jun 2015 05:50:20 +0000]
Revert "mmc: tegra: Use 100000 precision instead of 1000"

This reverts commit 3c5f4d1060669ec73dc0ceb4e9a876a55a89c5eb.

Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Change-Id: Ic0e3eb4bb892e69dbd808c1d55721290c561ac7c
Reviewed-on: http://git-master/r/759475
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

3 years agoRevert "mmc: tegra: Initialize margin addition variables"
Jeetesh Burman [Thu, 18 Jun 2015 05:49:52 +0000]
Revert "mmc: tegra: Initialize margin addition variables"

This reverts commit af2031797899b32504e32af377fa65875c06a746.

Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Change-Id: I21c89606f1eed0e7d4445c5dfcf7e6d2382829e7
Reviewed-on: http://git-master/r/759474
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

3 years agoRevert "mmc: tegra: select fixed tap hole margin values"
Jeetesh Burman [Thu, 18 Jun 2015 05:49:27 +0000]
Revert "mmc: tegra: select fixed tap hole margin values"

This reverts commit 8eadba170693964dc30b1e6ab0a80df012858bc0.

Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Change-Id: Icd990d1e9c8df4c66c46e7e29a03cc6233e206bd
Reviewed-on: http://git-master/r/759473
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

3 years agoRevert "mmc: sdhci: tegra: update T2T and Tap hole for VCM30T124"
Jeetesh Burman [Thu, 18 Jun 2015 05:49:03 +0000]
Revert "mmc: sdhci: tegra: update T2T and Tap hole for VCM30T124"

This reverts commit 28c9354b7cbade8813e0e5dbe9937300219fbeb9.

Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Change-Id: I4a809d75523513c939fa17a6dbeebee292aec77b
Reviewed-on: http://git-master/r/759472
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

3 years agoRevert "mmc: tegra: Abort tuning if device is removed"
Jeetesh Burman [Thu, 18 Jun 2015 05:48:33 +0000]
Revert "mmc: tegra: Abort tuning if device is removed"

This reverts commit 0bb08ee76692a7ded9fb063b3bd77e1848658ced.

Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Change-Id: I83df90d63845bc17bc1a4bf9d28cd47ac60fe9bd
Reviewed-on: http://git-master/r/759471
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

3 years agogpu: nvgpu: Disable channel when updating SMPC WAR
Sandarbh Jain [Thu, 11 Jun 2015 19:15:02 +0000]
gpu: nvgpu: Disable channel when updating SMPC WAR

When updating SMPC WAR for channel, it needs to be kicked out. This
ensures that the updated information is re-read from context header.

Bug 1579548

Change-Id: Ieadc6b65b057d7f48dc16fbc786c881ab7e5fcd5
Signed-off-by: Sandarbh Jain <sanjain@nvidia.com>
Reviewed-on: http://git-master/r/756639
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

3 years agowatchdog: use FIQ WDT for soft lockup stack dump
Renn Wu [Tue, 3 Feb 2015 02:27:18 +0000]
watchdog: use FIQ WDT for soft lockup stack dump

Using Tegra WDT to trigger FIQ when system is in soft lockup.

Bug 1581432

Change-Id: I853a88a3f6e9402c978db18c5a63e903c582040a
Signed-off-by: Renn Wu <rewu@nvidia.com>
Reviewed-on: http://git-master/r/265871
(cherry picked from commit f115f435d471af22ddec5e9d969662f79193f846)
Reviewed-on: http://git-master/r/680353
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

3 years agogpu: nvgpu: Do not touch gr status mask
Terje Bergstrom [Wed, 18 Mar 2015 22:28:23 +0000]
gpu: nvgpu: Do not touch gr status mask

GR status disable mask was never set, so driver always disabled all
engines from status rollup.

Change-Id: I500a127be9253294f73d1f42ce89b886471a9117
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/719141
(cherry picked from commit 34a5ffe7e7dcc4df5f3a11848b828e96c43d2c4d)
Reviewed-on: http://git-master/r/752092
GVS: Gerrit_Virtual_Submit

3 years agomedia: tegra_camera: change MIPI_CAL print level
Bryan Wu [Thu, 4 Jun 2015 23:21:06 +0000]
media: tegra_camera: change MIPI_CAL print level

Bug 1648875

Change-Id: I970a3eafcd7ec10f217f4c1cb13db9193dc037f6
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/752761
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Arun Kannan <akannan@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

3 years agoxhci: tegra: run firmware log thread only if need
JC Kuo [Wed, 20 May 2015 06:19:24 +0000]
xhci: tegra: run firmware log thread only if need

Driver doesn't need to run a kernel thread to collect firmware log
if release build firmware is loaded. Only debug build firmware is
capable of generating logs. This commit checks firmware CFGTBL to
know whether a firmware generates logs or not.

bug 1487603

Change-Id: I8b147710dae58332d68625fedd3173e2d2f6074b
Signed-off-by: JC Kuo <jckuo@nvidia.com>
Reviewed-on: http://git-master/r/663769
(cherry picked from commit bc339c3a63ea18fbbe568c99e33d06d637ad1f71)
Reviewed-on: http://git-master/r/744725
GVS: Gerrit_Virtual_Submit
Tested-by: Mark Kuo <mkuo@nvidia.com>
Reviewed-by: WK Tsai <wtsai@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

3 years agogpu: nvgpu: gk20a: dma_alloc only if needed
Bibek Basu [Fri, 22 May 2015 09:55:53 +0000]
gpu: nvgpu: gk20a: dma_alloc only if needed

if vpr memory is carved out, then only call dma_alloc
for secure memory.

Bug 200057068

Change-Id: I12557cfaa48f7db729ccab17d3151916d35ce0f1
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/746153
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

3 years agomedia: tegra_camera: clear MIPI_CAL flag
Bryan Wu [Wed, 3 Jun 2015 21:59:36 +0000]
media: tegra_camera: clear MIPI_CAL flag

MIPI calibration should be done when power on the VI/CSI hardware. So
clear the MIPI_CAL flag to trigger MIPI calibration for next power on
operation.

Bug 1648875

Change-Id: Ic0689a331a6058e4d54d5b41869f2e81feb4158c
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/752129
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Arun Kannan <akannan@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Arun Kannan <akannan@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

3 years agovideo: tegra: host: pod: change vic freq tuning
Arun Kannan [Tue, 12 May 2015 00:15:45 +0000]
video: tegra: host: pod: change vic freq tuning

Tune nvhost_podgov scaling algo params for
vic03 frequency scaling.

Bug 1640539

Change-Id: Id5583b5cd60d6b4449470d8c3df1e5d06bc4aedb
Signed-off-by: Arun Kannan <akannan@nvidia.com>
Reviewed-on: http://git-master/r/741438
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kamal Balagopalan <kbalagopalan@nvidia.com>
Reviewed-by: Ming Wong <miwong@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

3 years agomisc: tegra-profiler: add cpu notifier
Igor Nabirushkin [Wed, 29 Apr 2015 06:44:01 +0000]
misc: tegra-profiler: add cpu notifier

Detect when the CPU goes online/offline.

Bug 1634024

Change-Id: I989a9aefbc32a70070b37fe42ce5dcf75b18263b
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/729497
(cherry picked from commit a2eec5a5ea12fb50e073b322ca9d948818179968)
Reviewed-on: http://git-master/r/748094
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Andrey Trachenko <atrachenko@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

3 years agomisc: tegra-profiler: fix stop error
Igor Nabirushkin [Mon, 13 Apr 2015 13:00:37 +0000]
misc: tegra-profiler: fix stop error

Do not verify the existence of profiled process after
start of session.
It fixes the stop error on non-rooted devices when
application is terminated during the profile session.

Bug 1634968

Change-Id: I5384e6de3c7ff9791033d344b02acba9a729157b
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/730898
(cherry picked from commit 79fcedbbf7fbc984ec8b95900ee49af0a9be590b)
Reviewed-on: http://git-master/r/748093
GVS: Gerrit_Virtual_Submit
Reviewed-by: Andrey Trachenko <atrachenko@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

3 years agomisc: tegra-profiler: fix coverity issue
Igor Nabirushkin [Tue, 28 Apr 2015 06:04:15 +0000]
misc: tegra-profiler: fix coverity issue

Fix Coverity issue of out-of-bounds.
Coverity id: 29855

Bug 1416640

Change-Id: I112daaad55c1a2de9fdb411a0591e4ed7bf50e6e
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/730896
(cherry picked from commit 09c1b2add13aa7c6f4410c874ddad936913f5d19)
Reviewed-on: http://git-master/r/748092
GVS: Gerrit_Virtual_Submit
Reviewed-by: Andrey Trachenko <atrachenko@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

3 years agomisc: tegra-profiler: send all frequencies
Igor Nabirushkin [Tue, 28 Apr 2015 05:58:51 +0000]
misc: tegra-profiler: send all frequencies

Send CPU, EMC and GPU frequencies at the start of profiling.
It is needed so that initial frequencies are also displayed
in the profiler GUI.

Bug 1635012

Change-Id: I2e850c846b110da8aa4331ac700a20930da6841b
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/730895
(cherry picked from commit a00b48ad9e012bf17e0e3f8610e2732af53b2115)
Reviewed-on: http://git-master/r/748091
GVS: Gerrit_Virtual_Submit
Reviewed-by: Andrey Trachenko <atrachenko@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

3 years agomisc: tegra-profiler: cleanup unwinding rules
Igor Nabirushkin [Sat, 21 Mar 2015 16:33:09 +0000]
misc: tegra-profiler: cleanup unwinding rules

DWARF unwinding: cleanup unwinding rules for frames.
It fixes some broken backtraces.

Bug 1626528

Change-Id: Iaa62528cc0b6b97f1763934ef641791f196897b0
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/720600
(cherry picked from commit 3d68bdc1d81dce7176a8efec54dc5501e55e5eb5)
Reviewed-on: http://git-master/r/748090
GVS: Gerrit_Virtual_Submit
Reviewed-by: Andrey Trachenko <atrachenko@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

3 years agomisc: tegra-profiler: fix broken backtraces
Igor Nabirushkin [Sat, 21 Mar 2015 15:39:55 +0000]
misc: tegra-profiler: fix broken backtraces

Unwinding based on arm32 ehabi: fix broken backtraces when
all unwind entries are located in exidx section and
extab section is not exist.

Bug 1625585

Change-Id: I800e1347b04aa2c2c8802b81478931985c19feb2
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/720598
(cherry picked from commit dfc9e9e4ce081b3116e457711e2f4a67fabb169c)
Reviewed-on: http://git-master/r/748089
GVS: Gerrit_Virtual_Submit
Reviewed-by: Andrey Trachenko <atrachenko@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

3 years agomisc: tegra-profiler: simpler task status checking
Dmitry Antipov [Fri, 20 Mar 2015 12:24:41 +0000]
misc: tegra-profiler: simpler task status checking

Use PF_EXITING to check task status and simplify argument checking
in read_all_sources, adjust hrtimer_handler accordingly.

Bug 1625611

Signed-off-by: Dmitry Antipov <dantipov@nvidia.com>
Change-Id: Ida8f9e7ed5492f17868988e05328bfa8432a31e9
Reviewed-on: http://git-master/r/719460
(cherry picked from commit 316d507f4aaa04e9c91da3faa25c861260d6b194)
Reviewed-on: http://git-master/r/748088
GVS: Gerrit_Virtual_Submit
Reviewed-by: Andrey Trachenko <atrachenko@nvidia.com>
Tested-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

3 years agomisc: tegra-profiler: add unwind entry checking
Dmitry Antipov [Fri, 20 Mar 2015 12:23:53 +0000]
misc: tegra-profiler: add unwind entry checking

Use simple disassembler to verify unwind table entry against function code.

Bug 1618651

Signed-off-by: Dmitry Antipov <dantipov@nvidia.com>
Change-Id: Ib75b50f1bb753b7358fcc08107bfefc3133b4f0c
Reviewed-on: http://git-master/r/714784
(cherry picked from commit 3a68f6164a4652d027fd2e62d7eb7d5ec5906dbc)
Reviewed-on: http://git-master/r/748087
GVS: Gerrit_Virtual_Submit
Reviewed-by: Andrey Trachenko <atrachenko@nvidia.com>
Tested-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

3 years agomisc: tegra-profiler: add unwind reason codes
Igor Nabirushkin [Mon, 16 Mar 2015 15:13:33 +0000]
misc: tegra-profiler: add unwind reason codes

Unwinding: store individual URC codes for each method.

Bug 1624134

Change-Id: I3b2045f9c9147354f3440e326fd3aeccb5e0458d
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/717848
(cherry picked from commit e5ceff53d63e668a19d36196823f6c185ce48e88)
Reviewed-on: http://git-master/r/748086
GVS: Gerrit_Virtual_Submit
Reviewed-by: Andrey Trachenko <atrachenko@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

3 years agomisc: tegra-profiler: add task states
Igor Nabirushkin [Mon, 16 Mar 2015 14:08:36 +0000]
misc: tegra-profiler: add task states

* Add task states into sched samples.
* Store task exit_state field.

Bug 1624099

Change-Id: I4a25aa6c15b59da987688342478127dccc5c0a1c
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/717839
(cherry picked from commit 9c512cace5ad5d8719a5a8df553cd313e41f4402)
Reviewed-on: http://git-master/r/747753
GVS: Gerrit_Virtual_Submit
Reviewed-by: Andrey Trachenko <atrachenko@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

3 years agomisc: tegra-profiler: prevent infinite loop
Igor Nabirushkin [Mon, 9 Mar 2015 16:16:55 +0000]
misc: tegra-profiler: prevent infinite loop

* Prevent false recursion in mixed mode.
* Unwinding based on frame pointers: do not save lr address
  if previous frame is incorrect.

Bug 1619030

Change-Id: Iadeb8ca87ead576b18821964878cddf7aa94cf27
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/715291
(cherry picked from commit d8e79953332c96786da5f57475013b045d7ef817)
Reviewed-on: http://git-master/r/747752
GVS: Gerrit_Virtual_Submit
Reviewed-by: Andrey Trachenko <atrachenko@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

3 years agomisc: tegra-profiler: add cpufreq notifier
Igor Nabirushkin [Fri, 6 Mar 2015 13:36:42 +0000]
misc: tegra-profiler: add cpufreq notifier

Add cpufreq notifier into the profiler.

Bug 1618622

Change-Id: I06352c515c64f524fb88898dadefe1d07cedfe0f
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/714765
(cherry picked from commit b93eebf3afb92cfa97eb66067e5a5ef252a20ae8)
Reviewed-on: http://git-master/r/747751
GVS: Gerrit_Virtual_Submit
Reviewed-by: Andrey Trachenko <atrachenko@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

3 years agomisc: tegra-profiler: add unwind reason codes
Igor Nabirushkin [Thu, 26 Feb 2015 14:49:41 +0000]
misc: tegra-profiler: add unwind reason codes

Add unwind reason codes for dwarf unwinding.

Bug 1611073

Change-Id: Ic7f324f526ba34505e3b9bbedae7b98c29ce097d
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/711654
(cherry picked from commit ea2a41fa9056145e3f1cbe6f97c7725f51a08f3e)
Reviewed-on: http://git-master/r/747750
GVS: Gerrit_Virtual_Submit
Reviewed-by: Andrey Trachenko <atrachenko@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

3 years agomisc: tegra-profiler: fix broken call chains
Igor Nabirushkin [Thu, 26 Feb 2015 11:16:21 +0000]
misc: tegra-profiler: fix broken call chains

Fix broken call chains for thumb code with dwarf and
arm ehabi information simultaneously.

Bug 1615165

Change-Id: If34ecfac26657546170121c363cf89b8b7256dbb
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/711611
(cherry picked from commit 7d98345d6f2f1ba476161d91853dd82b23a92d1d)
Reviewed-on: http://git-master/r/747749
GVS: Gerrit_Virtual_Submit
Reviewed-by: Andrey Trachenko <atrachenko@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

3 years agomisc: tegra-profiler: fix return value check
Igor Nabirushkin [Sat, 14 Feb 2015 21:08:11 +0000]
misc: tegra-profiler: fix return value check

Tegra System Profiler: device is frozen when using clk events.
Fix return value check.

Bug 1611412

Change-Id: Ic9da6f02b222aaf0b3e5e84156103be39a28168b
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/708066
(cherry picked from commit d7f72918dd2c210fd991e61414da3b5f95916f25)
Reviewed-on: http://git-master/r/747748
GVS: Gerrit_Virtual_Submit
Reviewed-by: Andrey Trachenko <atrachenko@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

3 years agomisc: tegra-profiler: support debug frame sections
Igor Nabirushkin [Fri, 13 Feb 2015 19:21:22 +0000]
misc: tegra-profiler: support debug frame sections

DWARF unwinding: support debug frame sections (AArch32/AArch64).

Bug 1611073

Change-Id: Ia7a01c61843d35d8c5466623be7d8e44fc70f5a1
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/707910
(cherry picked from commit d39c08f5f586453c55c42a91bccd8452343c5236)
Reviewed-on: http://git-master/r/747747
GVS: Gerrit_Virtual_Submit
Reviewed-by: Andrey Trachenko <atrachenko@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

3 years agomisc: tegra-profiler: support eh_frame sections
Igor Nabirushkin [Fri, 13 Feb 2015 17:35:02 +0000]
misc: tegra-profiler: support eh_frame sections

Support dwarf unwinding for arm32 files (based on
eh_frame sections).

Bug 1611069

Change-Id: Ie057ebcfcff75ccb2d3e62aa7cb85ac4b090930c
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/707903
(cherry picked from commit 950855f44e647b22508f2d31fe373fffd9e0642f)
Reviewed-on: http://git-master/r/747745
GVS: Gerrit_Virtual_Submit
Reviewed-by: Andrey Trachenko <atrachenko@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

3 years agoxhci: tegra: load fw from filesystem earlier
Bibek Basu [Fri, 22 May 2015 07:30:54 +0000]
xhci: tegra: load fw from filesystem earlier

Loading firmware from filesystem takes much time. Enabing vbus regualtor
before loading firmware will cause the time gap between vbus ON and host
controller ready too large. So, we move the time of firmware loading
earlier.

Bug 200067006

Change-Id: I63ecbd9e65f3bb56db564f72cc417fc4f76adbc3
Signed-off-by: Henry Lin <henryl@nvidia.com>
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/736193
(cherry picked from commit 6875a1752b3ed4e121efcc3fddca0810ffd22546)
Reviewed-on: http://git-master/r/746074
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

3 years agodts: jetson-tk1: Add AR0261 sensor support
Tushar Khinvasara [Tue, 12 May 2015 13:16:38 +0000]
dts: jetson-tk1: Add AR0261 sensor support

Added AR0261 sensor support

Bug 200089114

Signed-off-by: Tushar Khinvasara <tkhinvasara@nvidia.com>
Change-Id: I8f6d6c6ea4905d9087fd6281bc8b215ec0a73fdb
Reviewed-on: http://git-master/r/741716
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ming Wong <miwong@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

3 years agovideo : hdmi: Add more checks in mode filter
Pankaj Dabade [Mon, 18 May 2015 07:12:48 +0000]
video : hdmi: Add more checks in mode filter

While programming DC controller it is decided at runtime
if a particular mode can be satisfied. This check relies
on the parent pixel clock settings. This patch adds same
check in the mode filter function for HDMI, eliminating
entries from modelist which will not be supported.

Bug 200080781

Change-Id: I6e39249e419bc83d549e561267a57ad25d4652ad
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/741686
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Miguel Angel Vico Moya <mvicomoya@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agovideo: tegra: hdmi: Fix potential crash when setting up HDMI
Alban Bedel [Tue, 12 May 2015 08:28:51 +0000]
video: tegra: hdmi: Fix potential crash when setting up HDMI

The HDMI state machine registers an IRQ handler before all the resources
it needs are available. Ideally the IRQ handler should be registered
later, however it would mean a quite large change. Instead we just add
some check to avoid running the state machine as long as the
framebuffer hasn't been registered.
While at it also prevent scheduling the state machine if it hasn't been
initialized yet.

Bug 1618089

Change-Id: I8f9dc07d2a4bf7e33e869206ad83ed80af93f566
Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/741616
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agousb: xhci: tegra: fix compilation with lockdep enabled
Alban Bedel [Tue, 12 May 2015 08:34:09 +0000]
usb: xhci: tegra: fix compilation with lockdep enabled

The sysfs_attr_init() macro expects a pointer to a struct attribute as
argument and not a pointer to a struct device_attribute. This was
bulding with lockdep disabled because in this case the
sysfs_attr_init() macro does nothing.

Bug 1618089

Change-Id: I6225c5c26beccae3848d8d5360a0efabcba60ce5
Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/741614
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agoarm: tegra: enable dnotify config for t124
Bibek Basu [Tue, 12 May 2015 05:42:29 +0000]
arm: tegra: enable dnotify config for t124

Enable CONFIG_DNOTIFY for L4T kernel config

Bug 1627091
Bug 200097847

Change-Id: I30d53089df825a776f03e1f0f08f1d6d8b1c9bb0
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/741517
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agovideo: tegra: nvmap: clean L1 on all cores
Krishna Reddy [Mon, 6 Apr 2015 18:32:33 +0000]
video: tegra: nvmap: clean L1 on all cores

Clean L2 by set/ways doesn't ensure that L1 is
cleaned on A15 and A57.
Clean L1 on all cores before cleaning L2.
Bug 20007733

Change-Id: I8a389317571060ba4716663c03ab75896aa13612
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/742255
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>

4 years agoarm64: mm: Add __clean_dcache_louis
Krishna Reddy [Mon, 6 Apr 2015 18:30:13 +0000]
arm64: mm: Add __clean_dcache_louis

This allows perform L1 cache clean alone.

Bug 200077334

Change-Id: I776de6e6726862e330b626fd19f8ae8f70055538
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/742254
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>

4 years agoarm: mm: Add v7_clean_kern_cache_louis
Krishna Reddy [Mon, 13 Apr 2015 23:12:33 +0000]
arm: mm: Add v7_clean_kern_cache_louis

This allows perform L1 cache clean alone.

Bug 200077334

Change-Id: I7a6106ed53755df33e09e3fa32a9e2524eb98649
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/742252
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>

4 years agousb: phy: tegra: set UTMIP_PCOUNT_UPDN_DIV to zero
Rakesh Babu Bodla [Mon, 27 Apr 2015 08:37:05 +0000]
usb: phy: tegra: set UTMIP_PCOUNT_UPDN_DIV to zero

Set UTMIP_PCOUNT_UPDN_DIV to zero to address hosts
having jitter issues.

Bug 200085253
Bug 200100469

Change-Id: I3f0202b74dbbbd697d52c386626112714f26834f
Signed-off-by: Rakesh Babu Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/736178
(cherry picked from commit 6d1f2be772751ebb0fb07dce2fc6992467c19eab)
Reviewed-on: http://git-master/r/740972
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Tested-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agoARM: ardbeg: enable cpu-balanced cooling device
Neil Chen [Wed, 13 May 2015 09:44:48 +0000]
ARM: ardbeg: enable cpu-balanced cooling device

enable cpu-balanced cooling device on jetson-tk1

Bug 1640651

Change-Id: Ice4c50044f4ac2bfb2bc61114e6264135a92b847
Signed-off-by: Neil Chen <neilc@nvidia.com>
Reviewed-on: http://git-master/r/742125
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>

4 years agoata: ahci: increase L2P FIFO Depth
Preetham Chandru R [Mon, 23 Feb 2015 07:26:43 +0000]
ata: ahci: increase L2P FIFO Depth

Bug 1592893

Change-Id: Iaa9c0673c928ce4ecaf9b374b997012522e88035
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/711902
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

4 years agovideo: tegra: nvmap: clean cache during page allocations into page pool
Krishna Reddy [Tue, 5 Aug 2014 21:43:37 +0000]
video: tegra: nvmap: clean cache during page allocations into page pool

Clean cache during page allocations into page pool to
avoid cache clean overhead at the time of allocation.
Increase page pool refill size to 1MB from 512KB.

Bug 1539190

Change-Id: I6c45782e54879541f7b518bbbb016383b24e376b
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/453197
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: Michael I Gold <gold@nvidia.com>
[ccross: moved on top of background zeroing patches, replaced
 atomic with bool since it has to be protected by a lock anyways]
Signed-off-by: Colin Cross <ccross@android.com>
Reviewed-on: http://git-master/r/664676
Reviewed-on: http://git-master/r/736430
Tested-by: Alex Waterman <alexw@nvidia.com>

4 years agonvmap: page pools: fix lockdep splat
Colin Cross [Wed, 13 Aug 2014 02:36:04 +0000]
nvmap: page pools: fix lockdep splat

lockdep complains about the alloc_page call under the pool lock
in nvmap_page_pool_init because the pool lock is also taken during
reclaim in nvmap_page_pool_shrink.  Rewrite nvmap_page_pool_init
to perform the allocation in PENDING_PAGES_SIZE chunks outside the
lock.  Also move the global pending_pages to a static copy in
nvmap_pp_do_background_zero_pages and a kcalloc'd array during
init to avoid conflicts when two threads try to use the same array.

[   57.734407] =================================
[   57.738786] [ INFO: inconsistent lock state ]
[   57.743198] 3.10.40-ge3b2801-dirty #145 Tainted: G        W
[   57.749135] ---------------------------------
[   57.753521] inconsistent {RECLAIM_FS-ON-W} -> {IN-RECLAIM_FS-W} usage.
[   57.760082] kswapd0/41 [HC0[0]:SC0[0]:HE1:SE1] takes:
[   57.765159]  (&pool->lock#2){+.+.?.}, at: [<ffffffc000404d28>] nvmap_page_pool_shrink+0x48/0x9c
[   57.773953] {RECLAIM_FS-ON-W} state was registered at:
[   57.779118]   [<ffffffc000106964>] mark_lock+0x1d0/0x7a8
[   57.784938]   [<ffffffc000107004>] mark_held_locks+0xc8/0x184
[   57.791543]   [<ffffffc000107bd0>] lockdep_trace_alloc+0xb4/0xf8
[   57.797594]   [<ffffffc00015ce24>] __alloc_pages_nodemask+0x98/0x7f8
[   57.803987]   [<ffffffc0004051d8>] nvmap_page_pool_init+0x19c/0x220
[   57.810287]   [<ffffffc0003fbf20>] nvmap_probe+0x9c/0x78c
[   57.815713]   [<ffffffc00049c588>] platform_drv_probe+0x18/0x24
[   57.821662]   [<ffffffc00049aadc>] driver_probe_device+0xa8/0x3a8
[   57.827783]   [<ffffffc00049aed0>] __driver_attach+0xa0/0xa8
[   57.833466]   [<ffffffc000498d64>] bus_for_each_dev+0x58/0x9c
[   57.839238]   [<ffffffc00049a9d0>] driver_attach+0x1c/0x28
[   57.844746]   [<ffffffc000499828>] bus_add_driver+0x1d8/0x294
[   57.850517]   [<ffffffc00049ba10>] driver_register+0x68/0x174
[   57.856289]   [<ffffffc00049cfe0>] platform_driver_register+0x54/0x60
[   57.862759]   [<ffffffc000d61354>] nvmap_init_driver+0x24/0x40
[   57.868617]   [<ffffffc000d328d4>] do_one_initcall+0xac/0x164
[   57.874387]   [<ffffffc000d32af8>] kernel_init_freeable+0x158/0x1f8
[   57.880678]   [<ffffffc0009e7d40>] kernel_init+0x10/0x158
[   57.886103]   [<ffffffc000084cfc>] ret_from_fork+0xc/0x1c
[   57.891526] irq event stamp: 803
[   57.894763] hardirqs last  enabled at (803): [<ffffffc0009fc208>] _raw_spin_unlock_irqrestore+0x64/0x94
[   57.904211] hardirqs last disabled at (802): [<ffffffc0009fbfa8>] _raw_spin_lock_irqsave+0x24/0x9c
[   57.913202] softirqs last  enabled at (0): [<ffffffc0000a508c>] copy_process.part.55+0x448/0x1150
[   57.922108] softirqs last disabled at (0): [<          (null)>]           (null)
[   57.929530]
[   57.929530] other info that might help us debug this:
[   57.936074]  Possible unsafe locking scenario:
[   57.936074]
[   57.942008]        CPU0
[   57.944456]        ----
[   57.946905]   lock(&pool->lock#2);
[   57.950338]   <Interrupt>
[   57.952960]     lock(&pool->lock#2);
[   57.956565]
[   57.956565]  *** DEADLOCK ***
[   57.956565]
[   57.962502] 1 lock held by kswapd0/41:
[   57.966257]  #0:  (shrinker_rwsem){++++..}, at: [<ffffffc0001651cc>] shrink_slab+0x54/0x3b0
[   57.974677]
[   57.974677] stack backtrace:
[   57.979063] CPU: 0 PID: 41 Comm: kswapd0 Tainted: G        W    3.10.40-ge3b2801-dirty #145
[   57.987434] Call trace:
[   57.989888] [<ffffffc0000887e4>] dump_backtrace+0x0/0x188
[   57.995300] [<ffffffc00008897c>] show_stack+0x10/0x1c
[   58.000363] [<ffffffc0009f3490>] dump_stack+0x1c/0x28
[   58.005428] [<ffffffc0009f0d6c>] print_usage_bug.part.37+0x28c/0x2a8
[   58.011799] [<ffffffc0001068f0>] mark_lock+0x15c/0x7a8
[   58.016951] [<ffffffc000109f50>] __lock_acquire+0x7c0/0xd24
[   58.022536] [<ffffffc00010ada8>] lock_acquire+0xa8/0x148
[   58.027862] [<ffffffc0009f870c>] mutex_lock_nested+0x80/0x3e0
[   58.033623] [<ffffffc000404d24>] nvmap_page_pool_shrink+0x44/0x9c
[   58.039731] [<ffffffc000165364>] shrink_slab+0x1ec/0x3b0
[   58.045056] [<ffffffc000168554>] balance_pgdat+0x4d0/0x5d4
[   58.050555] [<ffffffc0001687d0>] kswapd+0x178/0x45c
[   58.055448] [<ffffffc0000d0fa0>] kthread+0xd0/0xdc
[   69.502055] dhd_set_suspend: Remove extra suspend setting
[   69.787786] dhd_set_suspend: force extra Suspend setting

Change-Id: I41e908da9c51f353300f32c50354b4f48b2424c5
Signed-off-by: Colin Cross <ccross@android.com>
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/664675
GVS: Gerrit_Virtual_Submit
Reviewed-on: http://git-master/r/736429
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Tested-by: Alex Waterman <alexw@nvidia.com>

4 years agonvmap: page pools: replace background allocator with background zeroer
Colin Cross [Tue, 12 Aug 2014 00:33:09 +0000]
nvmap: page pools: replace background allocator with background zeroer

The background allocator rapidly becomes useless once the system
has filled memory with cached pages.  It refuses to allocate when
free memory < 128MB (which it always is, the kernel is aiming to
keep very little free), and freed pages are not returned to the
page pool when zero_memory=1.

Remove the background allocator completely, and instead return
freed memory to the page pool in a separate list to be zeroed
in the background.  This results in a self-balancing pool of
memory available to graphics, and reduces presure on the kernel's
page allocator.  If the pool grows too big it will get reduced
by the shrinker.  If it gets too small, the next allocation will
fall back to the page allocator, and then later return those pages
to the pool.

Before this change incremental page pool hit rate reported by
/d/nvmap/pagepool/page_pool_hits vs. /d/nvmap/pagepool/page_pool_misses
goes to 0% after boot.  After this change it is near 100% for small
app launches and 75% for larger app launches.

Change-Id: I4bc914498d7d0369eef9e621bda110d9b8be90b2
Signed-off-by: Colin Cross <ccross@android.com>
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/664674
GVS: Gerrit_Virtual_Submit
Reviewed-on: http://git-master/r/736428
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Tested-by: Alex Waterman <alexw@nvidia.com>

4 years agonvmap: page pool: fix background thread
Colin Cross [Mon, 11 Aug 2014 23:09:51 +0000]
nvmap: page pool: fix background thread

Fix a race condition in the background allocator where
wake_up_process could be called just before set_current_state
changed the state to TASK_INTERRUPTIBLE, causing the thread
not to wake.  Use a waitqueue instead.

Also make the background allocator nicer by marking it freezable
so it doesn't compete with suspend, and setting it SCHED_IDLE so
it only runs when no other threads want to run.

Change-Id: If95da005bb1fc4c9b5e802d40730803a57057fe1
Signed-off-by: Colin Cross <ccross@android.com>
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/664673
GVS: Gerrit_Virtual_Submit
Reviewed-on: http://git-master/r/736427
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Tested-by: Alex Waterman <alexw@nvidia.com>

4 years agonvmap: combine two methods of requesting zeroed memory
Colin Cross [Mon, 11 Aug 2014 21:25:20 +0000]
nvmap: combine two methods of requesting zeroed memory

Combine CONFIG_NVMAP_FORCE_ZEROED_USER_PAGES and the zero_memory
modparam into a single option by forcing zero_memory=1 when
CONFIG_NVMAP_FORCE_ZEROED_USER_PAGES is set, and always using
zero_memory to decided whether to zero or not.

Change-Id: I9ce0106cfaea950bd9494b697916fbc2a03329ea
Signed-off-by: Colin Cross <ccross@android.com>
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/664672
GVS: Gerrit_Virtual_Submit
Reviewed-on: http://git-master/r/736426
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Tested-by: Alex Waterman <alexw@nvidia.com>

4 years agonvmap: page pools: hide internal lock from nvmap_handle.c
Colin Cross [Mon, 11 Aug 2014 21:08:40 +0000]
nvmap: page pools: hide internal lock from nvmap_handle.c

The internal pool lock is exported so that nvmap_handle can lock
it, call a *_locked function, and then unlock it.  Provide a
version of the *_locked functions that takes the lock, remove
the lock and unlock helpers, and make the lock private to
the pools again.

Change-Id: I5a99753058e43161d50a0c61f3a984655cd7cd35
Signed-off-by: Colin Cross <ccross@android.com>
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/664671
GVS: Gerrit_Virtual_Submit
Reviewed-on: http://git-master/r/736425
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Tested-by: Alex Waterman <alexw@nvidia.com>

4 years agonvmap: replace page pool array with a list
Colin Cross [Fri, 8 Aug 2014 02:35:35 +0000]
nvmap: replace page pool array with a list

struct page already has a list node that is available to use by
whoever got the page with alloc_page.  Use it to keep the free
pages in the pool in a list instead of a circular buffer in an
array.

Change-Id: I0377633be7d620b59daf34799bd4ebc5fd9443fb
Signed-off-by: Colin Cross <ccross@android.com>
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/664670
GVS: Gerrit_Virtual_Submit
Reviewed-on: http://git-master/r/736424
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Tested-by: Alex Waterman <alexw@nvidia.com>

4 years agoRevert "video: tegra: nvmap: clean cache during page allocations into page pool"
Krishna Reddy [Tue, 16 Dec 2014 23:51:03 +0000]
Revert "video: tegra: nvmap: clean cache during page allocations into page pool"

This reverts commit b1d8c6c9415df111e4af1425a3d84b25c00a9c06.

Change-Id: Ide7e78780722bdd30426089f38155c7cabf28934
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/664669
GVS: Gerrit_Virtual_Submit
Reviewed-on: http://git-master/r/736423
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Tested-by: Alex Waterman <alexw@nvidia.com>

4 years agovga: Make absence of device message as debug print
Pankaj Dabade [Wed, 6 May 2015 11:23:17 +0000]
vga: Make absence of device message as debug print

This patch converts message of absence of vga device as a
debug print. This message comes when client tries to
access device on PCI which is absent, in this case DSI.

Bug 1481761

Change-Id: I7d83d39735e51bca8c789a86e517c0a040de57e8
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/739571
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

4 years agommc: tegra: Abort tuning if device is removed
Jeetesh Burman [Tue, 24 Mar 2015 17:46:48 +0000]
mmc: tegra: Abort tuning if device is removed

For removable devices, check for the card presence status before
issuing each tuning command. If the device is removed, abort tuning
and return -ENOMEDIUM error.

bug 1625262

Change-Id: I19d5dfe8e8bf4b9fc7ecc2c00cdfa01343012e68
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/398855
(cherry picked from commit 6e82d03dca5b421138e1c4f348efee71df2a865f)
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/721906
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>

4 years agommc: sdhci: tegra: update T2T and Tap hole for VCM30T124
Seshagir.H [Thu, 22 May 2014 08:05:02 +0000]
mmc: sdhci: tegra: update T2T and Tap hole for VCM30T124

bug 200007291

Change-Id: Ia1d8d4c8ea67a30c61e4178863e2f6f1bcb13753
Signed-off-by: Seshagir.H <sholi@nvidia.com>
Reviewed-on: http://git-master/r/413049
(cherry picked from commit 7564df85908c98b8fd6e5835cb02262091057d4e)
Reviewed-on: http://git-master/r/725517
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jeetesh Burman <jburman@nvidia.com>
Tested-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agommc: tegra: select fixed tap hole margin values
Seshagir.H [Thu, 25 Sep 2014 12:51:49 +0000]
mmc: tegra: select fixed tap hole margin values

bug 200035711

Change-Id: I2efdabe31ec2ab5b6b0253f54484365e61890e91
Signed-off-by: Seshagir.H <sholi@nvidia.com>
Reviewed-on: http://git-master/r/538920
(cherry picked from commit ef940296b6f41e4669fe7da4c48bf34091af2512)
Reviewed-on: http://git-master/r/725516
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jeetesh Burman <jburman@nvidia.com>
Tested-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agommc: tegra: Initialize margin addition variables
Jeetesh Burman [Tue, 24 Mar 2015 17:34:07 +0000]
mmc: tegra: Initialize margin addition variables

Initialize tap hole variables used in the temperature margin
calculations.

Bug 1532100

Change-Id: I494d5ab1600f13c8861de860532021107bfd745e
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/436633
(cherry picked from commit a106c31d73581db47c951b8cc196629993b96571)
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/721901
GVS: Gerrit_Virtual_Submit
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agommc: tegra: Use 100000 precision instead of 1000
Jeetesh Burman [Tue, 24 Mar 2015 17:25:34 +0000]
mmc: tegra: Use 100000 precision instead of 1000

-To derive estimated tuning data for other than boot_mv and vmin
we are using precision of 1000.
-Use precision of 100000 to derive data more accurately

Bug 1414513

Change-Id: I9caff04515980713a83f33c4cf6b524ba022d2b8
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/437992
(cherry picked from commit 36330ecf4ffe9333bf895f2e943f8b6b7201c012)
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/721897
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agommc: tegra: disable card clk before setting tap
Jeetesh Burman [Tue, 24 Mar 2015 17:22:02 +0000]
mmc: tegra: disable card clk before setting tap

-disable card clk.
-update the tap value.
-enable card clk.

Bug 1559166

Change-Id: Ib77bfed5d8a8569d458aaf2cd0cd3c8a9e00a60e
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/559812
(cherry picked from commit e2c098821a74ef1b5805c6bc5cb177a4fba05338)
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/721896
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agommc: tegra: Fix missing tap hole margins print
Jeetesh Burman [Tue, 24 Mar 2015 14:49:51 +0000]
mmc: tegra: Fix missing tap hole margins print

Avoid false warnings by reporting missing fixed tap hole margins only if
NVQUIRK_SELECT_FIXED_TAP_HOLE_MARGINS is set rather than printing the
message unconditionally.

bug 1625262

Change-Id: Ie5b75f3f73c6ce7e6283912f9ee41ae4d5d68901
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/599356
(cherry picked from commit 8f676f54519fa169c12f384ded3df1d6a87e8fd5)
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/721846
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>

4 years agoplatform: tegra: Define DDR Tap/trim varibles
Naveen Kumar Arepalli [Thu, 16 Oct 2014 09:20:11 +0000]
platform: tegra: Define DDR Tap/trim varibles

Bug 1563244

Change-Id: Ic4a43df8d11f87b3f62c652109abf540874224c4
Reviewed-on: http://git-master/r/#/c/557255/
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
(cherry picked from commit fd23e040930d735191a4fcc85ba692496aeb8b56)
Reviewed-on: http://git-master/r/737315
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jeetesh Burman <jburman@nvidia.com>
Tested-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agokernel: add ar0330 2304x1520 resolution
Ming Wong [Tue, 14 Apr 2015 22:44:34 +0000]
kernel: add ar0330 2304x1520 resolution

added 2304x1520 1 MIPI lane resolution

Bug 1552628

Change-Id: Ib2af3a77f9bede216e538a53d162839e9a249996
Signed-off-by: Ming Wong <miwong@nvidia.com>
Reviewed-on: http://git-master/r/731521
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agoarm:tegra: set cpu_lp to 804Mhz max for cd575mi AON
Bibek Basu [Fri, 17 Apr 2015 04:33:15 +0000]
arm:tegra: set cpu_lp to 804Mhz max for cd575mi AON

Set Mac freq for cpu_lp to 804Mhz for 24x7 cd575mi
personality

Bug 1563635

Change-Id: I72f4ffdcdcf7ce93b940f5b7c36726d63e5b3e87
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/732544
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agokernel: add imx185 sensor support
Kassey Li [Thu, 11 Dec 2014 09:54:31 +0000]
kernel: add imx185 sensor support

Bug 200044433

Change-Id: I792062649c247229270678a44d10323d2744b569
Signed-off-by: Kassey Li <kasseyl@nvidia.com>
Reviewed-on: http://git-master/r/721561
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>

4 years agoconfig: fix config conflict for wdt
Renn Wu [Tue, 3 Mar 2015 02:17:27 +0000]
config: fix config conflict for wdt

Fix config conflict for watchdog.
Tegra watchdog is disabled by default.
Users can access /dev/watchdog0 to operate it.

Bug 1557390

Change-Id: Ia1bb6c91dfbea85375d84bef10a10209b2fcef9f
Signed-off-by: Renn Wu <rewu@nvidia.com>
Reviewed-on: http://git-master/r/712938
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Tested-by: Winnie Hsu <whsu@nvidia.com>

4 years agoiommu/tegra: smmu: Fix race condition in writing PTC registers
Krishna Reddy [Fri, 27 Mar 2015 18:42:40 +0000]
iommu/tegra: smmu: Fix race condition in writing PTC registers

Fix race condition in programming PTC flush registers.
This race condition results in PTC flush not happening as intended and
can cause either SMMU fault or previous stale mapping access.

Bug 1625885
Bug 1603840

Change-Id: Ie94a8cfe947d8363a252f05dcd98fac10920586a
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/724503
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Tested-by: Hiroshi Doyu <hdoyu@nvidia.com>
GVS: Gerrit_Virtual_Submit

4 years agomedia: tegra_v4l2_camera: add CSI caliabration
Bryan Wu [Mon, 18 Aug 2014 23:27:27 +0000]
media: tegra_v4l2_camera: add CSI caliabration

Add calibration for T124 VI2.

Bug 1628147

Change-Id: If70b1562c1d6345b337e4a01236c392b79f14dad
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/678605
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

4 years agopinctrl: tegra: Add MIPI pad control
Bibek Basu [Thu, 26 Mar 2015 07:43:41 +0000]
pinctrl: tegra: Add MIPI pad control

This patch adds MIPI CSI/DSIB pad control mux register
from the APB misc block to tegra pinctrl.

Without writing to this register, the dsib pads are
muxed as csi, and cannot be used.

The register is not yet documented in the TRM, here is
the description:

70000820: APB_MISC_GP_MIPI_PAD_CTRL_0
     [31:02] RESERVED
     [01:01] DSIB_MODE       [CSI=0,DSIB=1]
     [00:00] RESERVED

Signed-off-by: Sean Paul <seanpaul@chromium.org>
Acked-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

BUG=chrome-os-partner:30799
TEST=Tested on ryu

(cherry picked from commit 489c8251776de8838547207acce199f50846ded1)

Change-Id: I424f488131e51ac793814d98d018162f0644509e
Reviewed-on: https://chromium-review.googlesource.com/219832
Reviewed-on: http://git-master/r/668725
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/723409
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agoarm: tegra: dtb: update jetson TK1 pinmux
Bibek Basu [Thu, 12 Feb 2015 06:12:04 +0000]
arm: tegra: dtb: update jetson TK1 pinmux

Updates based on v11 of Jetson_TK1_customer_pinmux.xlsm
configure pee2 as gpio
Added CSI_CD/DSI_B Muxing Option
Disable open drain for pwr_i2c

Bug 1551864

Change-Id: I708505e8664cbb56b7b4ac32e14e2e20618a3114
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/707204
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agoarm: tegra12: fix PTSA registers save/restore
Roger Hsieh [Mon, 2 Mar 2015 11:23:33 +0000]
arm: tegra12: fix PTSA registers save/restore

Some of PTSA regsiters are restored to wrong value that affects
other clients under memory controller. Correct it to fix audio
noise issue after LP0 resume.

Bug 1612520

Change-Id: I92f03cace5dcc81a33a71cdd4628c2112f7015ed
Signed-off-by: Roger Hsieh <rhsieh@nvidia.com>
Reviewed-on: http://git-master/r/712540
(cherry picked from commit 478e8e144acd8218421ddbf69e8dd2676a68ab8e)
Reviewed-on: http://git-master/r/713592
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agoxhci: Silence "xHCI xhci_drop_endpoint called with disabled ep ..." messages
Hans de Goede [Fri, 16 Jan 2015 15:54:02 +0000]
xhci: Silence "xHCI xhci_drop_endpoint called with disabled ep ..." messages

When re-applying the configuration after a successful usb device reset,
xhci_discover_or_reset_device has already dropped the endpoints, and free-ed
the rings.

The endpoints already being dropped is expected, and should not lead to
warnings. Use the fact that the rings are also free-ed in this scenario to
detect this, and suppress the "xHCI xhci_drop_endpoint called with disabled
ep ..." message in this case.

Bug 200040915

Signed-off-by: Hans de Goede <hdegoede@redhat.com>

--
Changes in v2:
Move the ring check to only guard the xhci_warn, so as to avoid side-effects
in case we have a scenario where the rings are free-ed, but the endpoint is
not yet dropped.
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Change-Id: I94392cf985208f96c7102e5115268c3460338a46
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-on: http://git-master/r/721398
Reviewed-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agousb: xhci: tegra: fix wake from LP1
Joy Wang [Tue, 2 Dec 2014 06:35:07 +0000]
usb: xhci: tegra: fix wake from LP1

We have VDD_CORE on when LP1. xusb use padctl interrupt to
wake from LP1. Keep interrupt enabled when system suspend.

Bug 1583860
Bug 200081242

Change-Id: I276594d69a051ea84034c32015589a6574ded7f1
Signed-off-by: Joy Wang <joyw@nvidia.com>
Reviewed-on: http://git-master/r/658281
(cherry picked from commit 0031edc18b385eb5dc67eb419f2c50aa5f0a15a2)
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-on: http://git-master/r/726127
Reviewed-by: Ajay Gupta <ajayg@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agoarm:tegra: increase cpu edp max limit for CD575MI
Bibek Basu [Wed, 25 Mar 2015 04:46:43 +0000]
arm:tegra: increase cpu edp max limit for CD575MI

For 70degC trip due to edp, increase the max limit further
to 76 as the driver applies a tolerance of 5 degC.
Also increase the shutdown limit to 105degC

Bug 1610806

Change-Id: Id6d7ed12c801e850e8147045fff03e5dbcf5d5ef
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/722316
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

4 years agoarm:tegra: updated fuse support for Jetson TK1
Bibek Basu [Mon, 23 Mar 2015 17:52:47 +0000]
arm:tegra: updated fuse support for Jetson TK1

Non negative value of cp_rev should be treated as
a newer properly fused chip

Bug 1610806

Change-Id: I7da1bec91996bbd5a522e2f043147b48272e0500
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/721053
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agovideo: tegra: hdmi: fix parent clock search
Ivan Raul Guadarrama [Tue, 25 Nov 2014 11:44:34 +0000]
video: tegra: hdmi: fix parent clock search

Fix the parent clock search for the display
controller. It addresses the corner case when
the divider difference is just smaller than the
chosen precision and wrongly assumed zero.
An explicit ceiling function is applied for
corretness.

Bug 1580265
Bug 1552739

Change-Id: I47312116c19813260941abcae42e4067a57f3d2c
Signed-off-by: Ivan Raul Guadarrama <iguadarrama@nvidia.com>
Reviewed-on: http://git-master/r/714972
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agoARM: config: Enable Android Sync on Linux
Naveen Kumar S [Fri, 6 Mar 2015 09:58:55 +0000]
ARM: config: Enable Android Sync on Linux

Currently Android sync framework is used only in Android side,
however, it provides a generic synchronization framework that
can be used also in Linux.

This patch enables Android Sync framework on T124, T132 and T210
on Linux.

Bug 1601262

Change-Id: I46530a9b1b2245c0ddf8f7bc52b28af247350e14
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/677655
(cherry picked from commit 5998cc1d0d861986e34a74787650a79f3b1cd999)
Reviewed-on: http://git-master/r/714740
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>

4 years agostaging: sync: make sync independent of android
Naveen Kumar S [Fri, 6 Mar 2015 09:41:39 +0000]
staging: sync: make sync independent of android

Until now Android Sync framework was being used only in Android,
however, it can be used in Linux too as it provides a generic
synchronization framework. Hence removing Sync framework's dependency
on Android.

bug 1543760
bug 1601262

Change-Id: Ia3c21f0171d0147d0a035ff02c0673b63eced54e
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/714736
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agoarm: tegra12: dvfs update for embedded SKU
Bibek Basu [Tue, 24 Feb 2015 06:09:40 +0000]
arm: tegra12: dvfs update for embedded SKU

CD575MI:
Max GPU freq is set to 852Mhz for 4/4/16
cpu_g powered by pllx is set to 1.5 and 1.8Ghz below 0 degC
Enable SOC dvfs for default personality
CD575M:
Lower CPU freq to 1912Mhz @ Max 1.12V
Lower GPU freq to 804Mhz @  Max 1.90V

Bug 1563635

Change-Id: Ib33f34fe2c0580d0f750de40f68560031f7266b0
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/711627
GVS: Gerrit_Virtual_Submit
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agotegra: ictlr: fix crash when an IRQ fire during the probe
Alban Bedel [Tue, 10 Mar 2015 11:19:45 +0000]
tegra: ictlr: fix crash when an IRQ fire during the probe

The IRQ handler use drvdata, however drvdata was set *after*
registering the IRQ handler. If an IRQ fired before drvdata was set it
would crash the kernel. Fix this by setting drvdata before registering
the IRQ handler.

Bug 200081502

Change-Id: Id8578b2446b167d2b3131bc6f28820fc6f5d9e11
Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/715722
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agotegra: dsi: Deselect CSI pads during calibration
Pankaj Dabade [Fri, 27 Feb 2015 13:45:26 +0000]
tegra: dsi: Deselect CSI pads during calibration

Zeroing out mipical register space during DSI
calibration may lead to timeouts with camera(CSI) interface.
Instead, This fix deselects the required CSI pads
for DSI calibration to succeed

Bug 1581879

Change-Id: I535debc233589924a9548a2a1839b617e8d9da0c
Reviewed-on: http://git-master/r/665124
(cherry picked from commit f01329808d2cb0f01d6add88ed6904dfff665d74)
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/711996
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agoRevert "DROP! Revert "ARM: 7419/1: vfp: fix VFP flushing regression on sigreturn...
Yogish Kulkarni [Mon, 23 Feb 2015 09:51:54 +0000]
Revert "DROP! Revert "ARM: 7419/1: vfp: fix VFP flushing regression on sigreturn path""

Reverting because this change causes __memcpy_neon() to corrupt if
interrupted by signal handler.

Bug 200046014

This reverts commit e700ffc891047182e16f53fc0238c8fd9bf72007.

Change-Id: I53d7214259fcff94e01bed141a4b9e6a7b29890e
Reviewed-on: http://git-master/r/710306
Signed-off-by: Yogish Kulkarni <yogishk@nvidia.com>
(cherry picked from commit d0ef94fa57264e047bf3873a60d01709a617887b)
Reviewed-on: http://git-master/r/710309
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

4 years agokernel: add support for ar1335
Ming Wong [Tue, 13 Jan 2015 20:02:31 +0000]
kernel: add support for ar1335

Bug 1598204

Change-Id: I453d18ce570e57c0feab8dc3b24cc2c957b95301
Signed-off-by: Ming Wong <miwong@nvidia.com>
Reviewed-on: http://git-master/r/672147
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agogk20a: Moved bind fecs to init_gr_support
Mahantesh Kumbar [Tue, 14 Oct 2014 12:14:34 +0000]
gk20a: Moved bind fecs to init_gr_support

-Moved bind fecs from work queue to init_gr_support.
-It makes all CPU->FECS communication to happen before
booting PMU, and after we boot PMU, only PMU talks to
FECS. So it removes possibility to race between CPU
and PMU talking to FECS.

Bug 200032923
Bug 1570774

Change-Id: I01d6d7f61f5e3c0e788d9d77fcabe5a91fe86c84
Reviewed-on: http://git-master/r/559733
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
(cherry picked from commit 1e63d8ae4056dbde82e1788decf7552f0b0af640)
Reviewed-on: http://git-master/r/666712
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

4 years agogpu: nvgpu: send ELPG init cmd after GR is ready
Vijayakumar [Fri, 26 Sep 2014 05:24:09 +0000]
gpu: nvgpu: send ELPG init cmd after GR is ready

bug 200040021
bug 200032923
bug 1570774

Change-Id: Ic162902bd2f05abab9ebd37392ed56dc4c164ba8
Reviewed-on: http://git-master/r/539995
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
(cherry picked from commit 62e9ba6c8fbabcb77e0ec6267463f51ae319a0b3)
Reviewed-on: http://git-master/r/666721
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

4 years agogu: nvgpu: Add PMU state ELPG booting
Terje Bergstrom [Wed, 18 Jun 2014 12:37:44 +0000]
gu: nvgpu: Add PMU state ELPG booting

Add PMU state ELPG booting. Prevent ISR processing when PMU is in OFF
state.

Bug 200006956

Change-Id: Ibcf69a2d81965cc87f520bf864c4425681f04531
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/424769
(cherry picked from commit f9ce5a2cdf667f8e41f7ed4035678cc1198dc308)
Reviewed-on: http://git-master/r/657487
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

4 years agovideo: fbcon: Keep atleast one mode in modelist
Pankaj Dabade [Thu, 12 Feb 2015 10:28:56 +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.

Bug 200036424

Change-Id: Ia34da6ab3814f667a485d23ef88e1a52f8b5519b
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/707309
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

4 years agotegra: add jetson-tk1 board_info DT node doc
Shreshtha SAHU [Wed, 15 Oct 2014 06:00:47 +0000]
tegra: add jetson-tk1 board_info DT node doc

Bug 200006918

Change-Id: Ibd9a004e10316ab817ca85c9093b094a5cb4fed3
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/557204
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agotegra: fb: Check DC max pixel clock supported
Pankaj Dabade [Tue, 10 Feb 2015 10:23:41 +0000]
tegra: fb: Check DC max pixel clock supported

Check max clock supported by DC before programming it with that mode.
If the requested pixel clock is greater than the maximum supported,
fall back to default mode.

Bug 200031813

Change-Id: I9c5d4373ff0ee8de039af42f46323909b0bec272
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/676941
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

4 years agovideo: tegra: host: Never release firmware
Arto Merilainen [Wed, 3 Sep 2014 16:01:19 +0000]
video: tegra: host: Never release firmware

Firmwares are currently released at the time we close the channel
device node. This causes unexpected side effects in cases where
the finalize_poweron is called only once to get the device booted
during the first time the device is accessed.

This patch fixes the issue by not releasing the firmware after it
has once loaded.

Bug 200033244

Change-Id: I8fc6748846e56ac0cc347feb170b239533a47252
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/495220
(cherry-picked from commit 69bce0a17ad1e5457cfce0d66f6e1b4add7e9820)
Reviewed-on: http://git-master/r/670671
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

4 years agoKernel: add ov4689 kernel driver
Hu He [Tue, 25 Nov 2014 22:59:07 +0000]
Kernel: add ov4689 kernel driver

Bug 1600299

Change-Id: I63f4d597bcc8b960407a7291fde6aa2ddb5bec25
Signed-off-by: Ming Wong <miwong@nvidia.com>
Reviewed-on: http://git-master/r/674099
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
GVS: Gerrit_Virtual_Submit

4 years agomisc: tegra-profiler: fix debug preempt warnings tegra-l4t-r21-er-2015-02-02 tegra-l4t-r21.3
Igor Nabirushkin [Mon, 29 Dec 2014 08:16:30 +0000]
misc: tegra-profiler: fix debug preempt warnings

Tegra Profiler: fix warnings with CONFIG_DEBUG_PREEMPT=y

* Add the missing preempt_disable/enable() pairs in start/stop ioctls.
* Untie mmap and some other samples from the current cpu.

Bug 200067410
Bug 1598009

Change-Id: I9f03facf3a0ecee20432019ea8094a349c7897d1
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/668123
(cherry picked from commit ee3374eb9983d1ccadbf3a54c977d3e6db97ec4a)
Reviewed-on: http://git-master/r/672042
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agomisc: tegra-profiler: fix sparse warnings
Igor Nabirushkin [Sun, 7 Dec 2014 12:26:34 +0000]
misc: tegra-profiler: fix sparse warnings

Tegra Profiler: fix sparse static warnings.

Bug 1587428
Bug 1598009

Change-Id: Ic07b4d6247a506109144ceb1b7401f25373d2137
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/660600
(cherry picked from commit c197f471258f8eb99aa1402ec3a1144b1b34dd65)
Reviewed-on: http://git-master/r/672041
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agomisc: tegra-profiler: fix vsp increment
Igor Nabirushkin [Tue, 2 Dec 2014 11:48:47 +0000]
misc: tegra-profiler: fix vsp increment

Decode the unwinding instructions (AArch32): fix incorrect
increment of virtual stack pointer (vsp).

Bug 1584541
Bug 1598009

Change-Id: I4ec64eb21a758b9283df9e6bd6b87a0555180eab
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/658441
(cherry picked from commit c963ce2532586098ddae159d19a2e241fc25cd1a)
Reviewed-on: http://git-master/r/672040
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>