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>

4 years agotegra-profiler: record offset of the stack pointer
Igor Nabirushkin [Tue, 2 Dec 2014 11:23:26 +0000]
tegra-profiler: record offset of the stack pointer

Tegra Profiler: when collecting backtraces, record
remaining data stack size.

Bug 1584533
Bug 1598009

Change-Id: I608ab73f8e1b7da84221a17a782080fdf5598111
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/658431
(cherry picked from commit 803c1a41e9b7ebcbf297bd7ce5caeed1d1f800ce)
Reviewed-on: http://git-master/r/672039
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agomisc: tegra-profiler: add Cortex-A57 events
Igor Nabirushkin [Mon, 24 Nov 2014 17:54:38 +0000]
misc: tegra-profiler: add Cortex-A57 events

Tegra Profiler: add ARMv8 Cortex-A57 specific pmu events.

Bug 1582354
Bug 1598009

Change-Id: I72b1e1ccea3d455d91492cb6ad8538f2405c3937
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/654818
(cherry picked from commit 0d4bbf2c837461aa1571d242be80907fbad14482)
Reviewed-on: http://git-master/r/672035
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agomisc: tegra-profiler: add lower bound of memory
Igor Nabirushkin [Wed, 5 Nov 2014 17:10:43 +0000]
misc: tegra-profiler: add lower bound of memory

Tegra Profiler: add lower bound of memory for unwinding.

Bug 1574379
Bug 1598009

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

4 years agomisc: tegra-profiler: use mmap for samples
Igor Nabirushkin [Sun, 19 Oct 2014 20:22:32 +0000]
misc: tegra-profiler: use mmap for samples

Tegra Profiler: send samples via memory mapping areas
to the user space.

Bug 1566270
Bug 1598009

Change-Id: I19aae4ca1f8d6a3ae7c36e99fb018d8fcd2152d3
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/559124
(cherry picked from commit 1a53b2fc3f15aeed1eee0f9aa6e259ae476acb82)
Reviewed-on: http://git-master/r/672026
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agomisc: tegra_profiler: fix build warnings
Igor Nabirushkin [Tue, 7 Oct 2014 05:10:31 +0000]
misc: tegra_profiler: fix build warnings

Fix build warnings for Tegra Profiler.

Bug 1562287
Bug 1598009

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

4 years agomisc: tegra_profiler: enable Werror flag
Igor Nabirushkin [Sun, 28 Sep 2014 20:40:57 +0000]
misc: tegra_profiler: enable Werror flag

Bug 1559160
Bug 1598009

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

4 years agomisc: tegra-profiler: fix broken call chains
Igor Nabirushkin [Mon, 1 Sep 2014 20:23:11 +0000]
misc: tegra-profiler: fix broken call chains

Dwarf unwinding on AArch64: fix broken call chains
for some types of functions.

Bug 1549713
Bug 1598009

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

4 years agomisc: tegra-profiler: support dwarf unwinding
Igor Nabirushkin [Fri, 22 Aug 2014 15:46:15 +0000]
misc: tegra-profiler: support dwarf unwinding

Add implementation of a dwarf unwinding for AArch64.

Bug 1465331
Bug 1598009

Change-Id: I1ff0c5411fe63ea5b7291c53c1d5a1d1cde59c25
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/486989
(cherry picked from commit f00783180ee09c5698463a39bed62c08ef17802a)
Reviewed-on: http://git-master/r/672019
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agomisc: tegra-profiler: fix copy_to_user fails
Igor Nabirushkin [Tue, 19 Aug 2014 19:13:41 +0000]
misc: tegra-profiler: fix copy_to_user fails

Do not use copy_to_user while holding a spinlock, it is not safely.
This patch fixes tegra_profiler_test fails on Android L.

Bug 1543109
Bug 1545325
Bug 1598009

Change-Id: Iea7b89d879e1f3a003cd26e06bf6c4dea0b7b1dc
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/482176
(cherry picked from commit 5ac6bc186cdff3efd0d71881dd510a85d3ffc629)
Reviewed-on: http://git-master/r/672018
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agomisc: tegra-profiler: fix Coverity issue of NULL dereference
Deepak Nibade [Fri, 25 Jul 2014 07:05:45 +0000]
misc: tegra-profiler: fix Coverity issue of NULL dereference

Pointer "pt_regs *regs" is first dereferenced and then checked for NULL
To fix this move NULL checking to beginning of function
Coverity id : 26686

Bug 1416640
Bug 1598009

Change-Id: I40e97e38e5a61a5d77ea68fa511e996f24385cfc
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/447532
(cherry picked from commit 4651be4faa111a0ff64a924889b69ec56ae19ace)
Reviewed-on: http://git-master/r/672015
GVS: Gerrit_Virtual_Submit
Reviewed-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Tested-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

4 years agomisc: tegra-profiler: rd_alloc
Shu Zhong [Tue, 1 Jul 2014 17:25:57 +0000]
misc: tegra-profiler: rd_alloc

quadd_unwind_start calls rd_alloc while holding a spinlock.
This is dangerous because rd_alloc allocates memory with
the GFP_KERNEL flag. This fix simply moves rd_alloc outside
the critical section.

Bug 1529894
Bug 1598009

Change-Id: I284e72d2fdd9089428d75f3c3efb79513a897b7e
Signed-off-by: Shu Zhong <shuz@nvidia.com>
Reviewed-on: http://git-master/r/433264
(cherry picked from commit e29a862f449b3f1831410162c4360041438017dc)
Reviewed-on: http://git-master/r/672012
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Tested-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agortc: as3722: add shutdown support
Bibek Basu [Wed, 28 Jan 2015 06:11:13 +0000]
rtc: as3722: add shutdown support

When shutdown process is ongoing, dont allow rtc
read/write/irq activity.Add shutdown hook to the
driver to disable irq and cancel any pending
irq_work

Bug 200072946

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

4 years agortc: add rtc_shutdown api to service pending work
Bibek Basu [Tue, 27 Jan 2015 11:40:15 +0000]
rtc: add rtc_shutdown api to service pending work

During shutdown/reboot process, its better to
finish any pending irqwork so that the work is
not scheduled after devices like i2c are shutdown.
This patch provides hook to be called from rtc driver after disabling
rtc irq. Also any further request to access rtc_class_ops will
be prohibited.

Bug 200072946

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

4 years agoconfig: add L4T tegra watchdog support
Ximing Chen [Thu, 22 Jan 2015 03:55:56 +0000]
config: add L4T tegra watchdog support

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

Bug 1557390

Change-Id: I0ee4f787336fc566900ffeb5c26c6fde6530b904
Signed-off-by: Ximing Chen <ximingc@nvidia.com>
Reviewed-on: http://git-master/r/674635
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agoFIQ: Implement WDT FIQ debugger
Renn Wu [Thu, 11 Dec 2014 08:11:12 +0000]
FIQ: Implement WDT FIQ debugger

Implement Tegra WDT FIQ debug function.
Default is disabled.

Bug 1581432

Change-Id: Ic81ab4cd3285080016b37191e6e0fab18e330a30
Signed-off-by: Renn Wu <rewu@nvidia.com>
Reviewed-on: http://git-master/r/#/c/271988
Reviewed-on: http://git-master/r/662550
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agotegra: dc: Unsetting DC to default mode in probe
Pankaj Dabade [Tue, 20 Jan 2015 06:36:15 +0000]
tegra: dc: Unsetting DC to default mode in probe

During probe, for L4t-HDMI, monitor specs are read and set
before DC is enabled. DC will fall back to default mode
only when a invalid request is made by monitor.

Bug 200020671
Bug 200031813

Change-Id: I5138e76afe8b2e5bfef1ee1941455827df34a1c0
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/673655
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agovideo: tegra: host: gk20a: invalidate TLB after PDE update
Deepak Nibade [Wed, 3 Dec 2014 13:17:38 +0000]
video: tegra: host: gk20a: invalidate TLB after PDE update

Invalidate TLB after PDE udpate and before freeing the Page
Table memory
Stale TLBs during unmap can lead us to access invalid PTEs

Bug 1577947

Change-Id: I46c6a7a9079570a8e2af8bb2a6687cfeec83a6f7
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/670324
(cherry-picked from commit e4cbdae09949d23ac338209924d35584c5d8d288)
Reviewed-on: http://git-master/r/671197
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
GVS: Gerrit_Virtual_Submit

4 years agovideo: tegra: host: gk20a: fix PDE update sequence
Deepak Nibade [Mon, 1 Dec 2014 10:55:41 +0000]
video: tegra: host: gk20a: fix PDE update sequence

Current sequence :
- delete page tables memory
- update PDE entry and mark above page tables invalid

With this sequence, it is possible to have valid PDE entries
with already freed page table and this could lead us to
invalid memory accesses.

Fix this by switching the sequence as follows :
- update PDE entry and mark page tables invalid
- delete page tables memory

Bug 1577947

Change-Id: Icc3a8c74bbf1bf59e41e0322cfc279d15690aa9d
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/670323
(cherry-picked from commit 56f738b4c4ee188ec1f69b91615cd9728ff18cf0)
Reviewed-on: http://git-master/r/671196
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
GVS: Gerrit_Virtual_Submit

4 years agoARM: config: tegra: add ramoops support for Jetson
Ximing Chen [Tue, 9 Dec 2014 10:26:30 +0000]
ARM: config: tegra: add ramoops support for Jetson

Enabling PSTORE configrations for L4T

Bug 1581073

Change-Id: Ic54616379a5a279117ae85cb0e3465ef5c2c70b8
Signed-off-by: Ximing Chen <ximingc@nvidia.com>
Reviewed-on: http://git-master/r/661347
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Rui Zhuo <rzhuo@nvidia.com>
Reviewed-by: Renn Wu <rewu@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agotegra: dc: Unsetting DC to default mode in probe
Pankaj Dabade [Fri, 2 Jan 2015 05:56:08 +0000]
tegra: dc: Unsetting DC to default mode in probe

During probe, for L4t, monitor specs are read and set
before DC is enabled. DC will fall back to default mode
only when a invalid request is made by monitor.

Bug 200020671

Change-Id: Ic78dc9883813d1ca6623ccfde47f8a2bd493cf76
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/668839
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Jong Kim <jongk@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

4 years agoedp: sysedp: NULL terminate of_device_id tables
Timo Alho [Fri, 11 Jul 2014 06:06:44 +0000]
edp: sysedp: NULL terminate of_device_id tables

of_device_id tables need to be NULL terminated. This patch fixes the
missing NULL termination within sysedp_batmon_calc module.

Bug 1539761

Change-Id: I7b1f48b85fce84337d8d2093fe7886f965d0b28f
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/437001
(cherry picked from commit 305fceeceed23782a1170ed60b87059010a83c61)
Reviewed-on: http://git-master/r/671006
Reviewed-by: Steve Rogers <srogers@nvidia.com>

4 years agogpu: nvgpu: Allow suppressing WFI on submit
Terje Bergstrom [Tue, 1 Apr 2014 05:28:44 +0000]
gpu: nvgpu: Allow suppressing WFI on submit

Allow suppressing WFI when submitting work and requesting a fence
back.

Bug 1491545

Change-Id: Ic3d061bb4f116cf7ea68dbd6a1b2ace9f11d0ab5
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/390457
Reviewed-on: http://git-master/r/671029
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sibashis Mohapatra <sibashism@nvidia.com>
Tested-by: Sibashis Mohapatra <sibashism@nvidia.com>
Reviewed-by: Yogesh Kini <ykini@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

4 years agoASoC: tegra: unset audio_engine
Bibek Basu [Thu, 8 Jan 2015 10:03:49 +0000]
ASoC: tegra: unset audio_engine

If firmware is not found in case of error, set audio_engine
to NULL so that kernel does not panic while further
processing

Bug 200067781

Change-Id: Ia854c978bd33a2615ab27715e83b4d78a1dbab3a
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/670625
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

4 years agoarm: tegra: dtb: set sata en to output high
Bibek Basu [Thu, 8 Jan 2015 06:12:48 +0000]
arm: tegra: dtb: set sata en to output high

Set Sata Enable to output High to get sata working

Bug 1551864
Bug 200070681

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

4 years agoarm: tegra12: jetson: Sensorhub power-on
Kamal Kannan Balagopalan [Thu, 4 Dec 2014 07:19:49 +0000]
arm: tegra12: jetson: Sensorhub power-on

Power-up and initialize sensor-hub MCU to start fetching code from
flash storage.

Bug 1560072

Change-Id: I993dc76f34cad8a3ef6aa11c2077a87f62e9ce58
Signed-off-by: Kamal Kannan Balagopalan <kbalagopalan@nvidia.com>
Reviewed-on: http://git-master/r/659365
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Arun Kannan <akannan@nvidia.com>
Tested-by: Arun Kannan <akannan@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agomisc: nv-sensorhub: tty line disc for sensorhub
Arun Kannan [Mon, 15 Dec 2014 22:58:31 +0000]
misc: nv-sensorhub: tty line disc for sensorhub

Line discipline driver for sensorhub stream.

Bug 1591540

Change-Id: Ic867019b4d06091d27b55ee2560fc337e2e59523
Signed-off-by: Arun Kannan <akannan@nvidia.com>
Reviewed-on: http://git-master/r/664091
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kamal Balagopalan <kbalagopalan@nvidia.com>
Tested-by: Kamal Balagopalan <kbalagopalan@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agogpu: nvgpu: reduce message severity to info
Naveen Kumar S [Thu, 11 Dec 2014 11:55:46 +0000]
gpu: nvgpu: reduce message severity to info

Shader informs user about context switch wait time.
This doesn't affect any functionality. Hence changing print to info.

bug 200015967

Change-Id: I7fbb562e43ee6ec1bc8ac01a51d3c9f19d5cb4cf
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/662657
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

4 years agoAR0261: validate with V4L2 for Jetson TK1
Bryan Wu [Wed, 28 May 2014 00:34:53 +0000]
AR0261: validate with V4L2 for Jetson TK1

Change-Id: I1c00d571e294ccf1c4d795bb90e71defd3395293
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/591333
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
(cherry picked from commit b87d110ddc52048944862fb8bf019922333b1dd5)
Reviewed-on: http://git-master/r/665999
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Tested-by: Winnie Hsu <whsu@nvidia.com>

4 years agomedia: tegra_v4l2_camera: add dual camera support
Bryan Wu [Wed, 29 Oct 2014 01:05:35 +0000]
media: tegra_v4l2_camera: add dual camera support

Change-Id: I3a358eb3f996917218798ae24eb1b0ef471a223f
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/591332
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
(cherry picked from commit 4011d6570ba8138348ccc45b2acb31526cb73863)
Reviewed-on: http://git-master/r/665998
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

4 years agomedia: tegra_v4l2_camera: disable line timeout
Bryan Wu [Wed, 24 Sep 2014 23:40:17 +0000]
media: tegra_v4l2_camera: disable line timeout

Disable line timeout, since some sensor like IMX208 doesn't work with
line timeout enabled.

Bug 1560636

Change-Id: I38e9a03e04ca206cbb65c13829c567d0c0de1c6c
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/539004
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
(cherry picked from commit 8cca4a716c25cecbbc7455d5dd92f3e7fc074b07)
Reviewed-on: http://git-master/r/665997
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

4 years agomedia: tegra_v4l2_camera: add CSI_B/CSI_C support
Bryan Wu [Fri, 19 Sep 2014 00:45:35 +0000]
media: tegra_v4l2_camera: add CSI_B/CSI_C support

Bug 1560636

Change-Id: I2d27c631da0f4b6540af9b4da9ba9e212a4a56c5
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/539003
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
(cherry picked from commit e9b82e8a6e6edf5fc00e88c8610b9c2bb67f3872)
Reviewed-on: http://git-master/r/665996
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

4 years agomedia: tegra_v4l2_camera: use port num to init clk
Bryan Wu [Thu, 18 Sep 2014 01:04:17 +0000]
media: tegra_v4l2_camera: use port num to init clk

Change clks_init() internal API to use CSI port number to enable clks
instead of using dev_id which is incorrect sometime, since vi.0 might
also assigned to CSI_B/CSI_C port.

Bug 1560636

Change-Id: I0e26308ec885e2e34fe8faa63fca404c911912c4
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/539002
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
(cherry picked from commit c66d8e5880589b0d95dba63d10daff53e47e8628)
Reviewed-on: http://git-master/r/665995
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

4 years agomedia: tegra_v4l2_camera: fix format support
Andrew Chew [Sat, 23 Aug 2014 01:36:00 +0000]
media: tegra_v4l2_camera: fix format support

This driver does not demosaic, so when we are working with a bayer sensor,
we can only report the various bayer formats.  Similarly, we only support
rgba for test pattern generator right now, so only report rgba if we are in
test pattern mode.

When in test pattern mode, don't ever query the sensor subdev, since it's
not involved at all.

Also, made some miscellaneous cleanup to some debug prints, and the
conditionals around how CSI gets programmed.

Bug 1560636

Change-Id: I9022ec6a489b20d0847dd9d2a79af2307b7a4af1
Signed-off-by: Andrew Chew <achew@nvidia.com>
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/489066
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: David Wang (SW-TEGRA) <davidw@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
(cherry picked from commit f211247b0151b926f21b989cc031dc928db61aaa)
Reviewed-on: http://git-master/r/665994
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

4 years agopcie: tegra: move err print to info print
Bibek Basu [Fri, 2 Jan 2015 08:48:20 +0000]
pcie: tegra: move err print to info print

Change link down print to info print

Bug 200042283

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

4 years agoASoC: Tegra: correct the print loglevel
Bibek Basu [Fri, 2 Jan 2015 08:45:25 +0000]
ASoC: Tegra: correct the print loglevel

Some info prints are wrongly processed as err print

Bug 200042283

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

4 years agofirmware: avoid firmware-loading console log spew
Rajkumar Kasirajan [Fri, 5 Dec 2014 07:02:17 +0000]
firmware: avoid firmware-loading console log spew

Disabled default printing of falcon firmware direct loading
to avoid console log spew.

Bug 200048667

Change-Id: I34b34864f64d44ef009586e7e847041b10b06d67
Signed-off-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
Reviewed-on: http://git-master/r/660016
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 agogpu: nvgpu: implement mapping for sparse allocation
Kirill Artamonov [Wed, 26 Feb 2014 20:58:43 +0000]
gpu: nvgpu: implement mapping for sparse allocation

Implement support for partial buffer mappings.

Whitelist gr_pri_bes_crop_hww_esr accessed by
fec during sparse texture initialization.

bug 1456562
bug 1369014
bug 1361532

Change-Id: Ib0d1ec6438257ac14b40c8466b37856b67e7e34d
Signed-off-by: Kirill Artamonov <kartamonov@nvidia.com>
Reviewed-on: http://git-master/r/375012
(cherry picked from commit a24470f69961508412402b9b06d5b71fbf6f7549)
Reviewed-on: http://git-master/r/601754
Tested-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

4 years agovideo: tegra: Wait PMU finishes booting
sujeet baranwal [Fri, 29 Aug 2014 20:56:49 +0000]
video: tegra: Wait PMU finishes booting

GPU PMU booting is in a separate thread(workqueue) and currently
there is a race condition that PMU booting doesn't finish when
"nvhost_gk20a_finalize_power_on" is returning.
If the GPU starts to runtime powergate(nvhost_gk20a_prepare_poweroff)
at that time, we left a unfinished PMU booting workqueue task there.
So next time when this task starts running, GPU will be put into
a bad state which causes lots of GPU errors.
This patch adds a wait at the end of "nvhost_gk20a_finalize_power_on"
, so that the race condition can be avoided.

Bug 200055546

Change-Id: I4f2d0798fcadb4effc555a66f3c3e3061b18d246
Signed-off-by: Mark Zhang <markz@nvidia.com>
Signed-off-by: sujeet baranwal <sbaranwal@nvidia.com>
Reviewed-on: http://git-master/r/494065
(cherry picked from commit 3b9866a952ba0a1dea05d20bf32b6bcc9113f38b)
Reviewed-on: http://git-master/r/655952
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

4 years agogpu: nvgpu: Add boost once GPU is initialized
Terje Bergstrom [Wed, 6 Aug 2014 07:41:07 +0000]
gpu: nvgpu: Add boost once GPU is initialized

Workaround for GPU hang if boost turns GPU on before it is
initialized.

Bug 1435870

Change-Id: I07d0617049612344ca7c494da8cb8d75789984e5
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/453375
(cherry picked from commit 260cf3d3fab941126eebf4bc977cb408587492eb)
Reviewed-on: http://git-master/r/655951
Tested-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

4 years agogpu: nvgpu: Initialize ELPG ref-count early.
Neil Gabriel [Thu, 26 Jun 2014 23:02:32 +0000]
gpu: nvgpu: Initialize ELPG ref-count early.

gk20a_pmu_disable_elpg can be called before the PMU driver has
received and processed the INIT message from the PMU. If change
ensures that the ELPG ref-count has been initialized to zero
before that can happen.

Bug 200016313
Bug 200055546

Change-Id: Ic80ec1ee69b1eb0499effb1abf556f78cb041f5e
Signed-off-by: Neil Gabriel <ngabriel@nvidia.com>
Reviewed-on: http://git-master/r/431927
Reviewed-on: http://git-master/r/436302
(cherry picked from commit dad127648262a76180259525ac660ffa8307f69b)
Reviewed-on: http://git-master/r/655950
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

4 years agoKernel: ar0330: add 960p resolution
Ming Wong [Tue, 2 Dec 2014 23:20:25 +0000]
Kernel: ar0330: add 960p resolution

Bug 1552628

Change-Id: I90fdbb99bcfb2c20ed1fa0125af6a999bad7b4fc
Signed-off-by: Ming Wong <miwong@nvidia.com>
Reviewed-on: http://git-master/r/658630
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kamal Balagopalan <kbalagopalan@nvidia.com>
Tested-by: Kamal Balagopalan <kbalagopalan@nvidia.com>

4 years agoarm: tegra: disable pinmux input clamping
Ximing Chen [Thu, 18 Dec 2014 11:15:46 +0000]
arm: tegra: disable pinmux input clamping

Pinmux global control could be configured CLAMP_INPUTS_WHEN_TRISTATED
in bootloader/U-Boot, here is to disable it.

Bug 1551864

Change-Id: If30042237ff4ce8c68ff840b11f438d333285723
Signed-off-by: Ximing Chen <ximingc@nvidia.com>
Reviewed-on: http://git-master/r/665717
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agotegra: dc: Check DC max pixel clock supported
Pankaj Dabade [Fri, 19 Dec 2014 06:32:40 +0000]
tegra: dc: 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 then fall back to default mode: 640x480.

Bug 200031813

Change-Id: Icf1f91fe36e29f2c8c6aefe34d3952948743c3a8
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/666089
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agotegra: jetson: Add support for flash module.
Jitendra Kumar [Wed, 17 Dec 2014 06:45:03 +0000]
tegra: jetson: Add support for flash module.

Bug 200062768

Change-Id: I18211dfd4735c868a03bbc62d7f9cea4d0d1af05
Signed-off-by: Jitendra Kumar <jitendrak@nvidia.com>
Reviewed-on: http://git-master/r/662717
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

4 years agoarm: tegra12: support for embedded 0x80 SKU
Bibek Basu [Fri, 28 Nov 2014 09:05:35 +0000]
arm: tegra12: support for embedded 0x80 SKU

Added DVFS support for CD575MI SKU 0x80
CPU DVFS: Max Freq 2116Mhz. Switch to PLLX below 0 DegC
          and fixed voltage
SOC DVFS: Vmax @ 1100mv constant below 0 DegC
          EMC dvfs max freq 924Mhz
GPU DVFS: Max Freq 924Mhz and thermal bump up of voltage
          by 50mv below 0 DegC. Max gpu freq below 0degC
  is 852Mhz

Bug 1563635

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

4 years agomedia: tegra_camera: correct the return value of vi2_capture_start
Kassey Li [Tue, 25 Nov 2014 20:08:57 +0000]
media: tegra_camera: correct the return value of vi2_capture_start

return the status of nvhost_syncpt_wait_timeout_ext
in vi2_capture_start.

Bug 1583009

Change-Id: I2b2ecaf868d0a05e2fa46b23e7eb40ee76aea380
Signed-off-by: Kassey Li <kasseyl@nvidia.com>
Reviewed-on: http://git-master/r/655521
Reviewed-by: Bryan Wu <pengw@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Bryan Wu <pengw@nvidia.com>
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

4 years agoata: ahci: enable devsleep only for m-sata
Preetham Chandru R [Thu, 11 Dec 2014 05:02:21 +0000]
ata: ahci: enable devsleep only for m-sata

enable devsleep only for m-sata connectors

Bug 1557711

Change-Id: If203e09ec005022e28aa2c4d7ac3816b83419c14
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/662454
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>

4 years agoARM: dts: tegra: add sata connector property node
Preetham Chandru R [Thu, 11 Dec 2014 04:58:49 +0000]
ARM: dts: tegra: add sata connector property node

Bug 1557711

Change-Id: I25dd3b4efb8e25c010f0173b8509785ebb9a9a3d
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/662418
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

4 years agopcie: tegra: boost emc frequency for gen1 and gen2
Jeetesh Burman [Thu, 11 Dec 2014 11:10:54 +0000]
pcie: tegra: boost emc frequency for gen1 and gen2

12MHz frequency for emc is not sufficient in case of high data
transfer using PCIE, hence need to increase emc frequency for
gen1 and gen2 pcie devices to 102MHz and 508MHz respectively.

Bug 1566598

Change-Id: I82c5592dc232ba32eaf6ed959ff78a9966dc6ff1
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/663267
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Vidya Sagar <vidyas@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agogpu: nvgpu: update regops whitelist
Matt Craighead [Fri, 12 Dec 2014 20:19:59 +0000]
gpu: nvgpu: update regops whitelist

Remove an undesired register from the regops whitelist.

Bug 1589712

Change-Id: I76e8ff1f4b68d6d5ce2c11adc08d984df7883e5e
Signed-off-by: Matt Craighead <mcraighead@nvidia.com>
Reviewed-on: http://git-master/r/663371
(cherry picked from commit 573a71d052ac18d34b5f4e984f8684cedea0396d)
Reviewed-on: http://git-master/r/663998
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Eric Brower <ebrower@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

4 years agoSATA: Add Port Multiplier support
Ximing Chen [Tue, 26 Aug 2014 11:40:04 +0000]
SATA: Add Port Multiplier support

Current SATA controller configuration disables PM.
This CL is to enable it.
Support for direct SATA devices has no change.

Bug 1544067

Change-Id: I8f5e2161b687e07608228b9aafb7018808fe0203
Signed-off-by: Ximing Chen <ximingc@nvidia.com>
Reviewed-on: http://git-master/r/488162
(Cherry-picked from commit 9a2e7092d0d4977ebbb296b3f1352e6847a2496c)
Reviewed-on: http://git-master/r/493955
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Preetham Chandru <pchandru@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

4 years agoARM: tegra12: update pinmux for jetson-tk1
Bibek Basu [Tue, 25 Nov 2014 06:22:10 +0000]
ARM: tegra12: update pinmux for jetson-tk1

Update pinmux for jetson-tk1 based on
Jetson_TK1_customer_pinmux.xlsm V08

Bug 1551864

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

4 years agoarm: tegra12: enable gpu edp capping for jetson
Bibek Basu [Mon, 27 Oct 2014 08:34:43 +0000]
arm: tegra12: enable gpu edp capping for jetson

Enable GPU edp capping for jetson-tk1.Also
update the max_cpu_current and max_gpu_current for
PM375

Bug 1563635

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