4 years agopinctrl: tegra: uphy: fix Coverity issues
Deepak Nibade [Tue, 19 May 2015 09:24:59 +0000]
pinctrl: tegra: uphy: fix Coverity issues

remove logically dead code by using proper error check
on pointer
Coverity defect id : 30101

fix unsigned comparison against zero by declaring variable
"value" as int
Coverity defect id : 30105

Bug 1416640

Change-Id: I7acf0fa2f8726a9e5148a4cd07300ad2575b4760
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/744276
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Rakesh Babu Bodla <rbodla@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agomisc:cryptodev: Fix USE_AFTER_FREE coverity errors
Shravani Dingari [Mon, 18 May 2015 04:54:59 +0000]
misc:cryptodev: Fix USE_AFTER_FREE coverity errors

Fix coverity errors due to dereferencing freed
pointer ctx
Coverity id : 30088

Bug 1416640

Change-Id: I20ebb3d05ced4b7b5d1ce31315a4570e619e80fa
Signed-off-by: Shravani Dingari <shravanid@nvidia.com>
Reviewed-on: http://git-master/r/743598
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Tested-by: Sachin Nikam <snikam@nvidia.com>

4 years agoarm64: tegra21: config: enable DNOTIFY
Bibek Basu [Wed, 6 May 2015 10:02:30 +0000]
arm64: tegra21: config: enable DNOTIFY

Enable CONFIG_DNOTIFY for L4T kernel config.
This is needed for idmapd

Bug 1627091

Change-Id: I4f35325d4abca83f416385436b5fc3afbe78d1ab
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/739554
(cherry picked from commit dba8689deedfd22c0246a7ee7005812606e51771)
Reviewed-on: http://git-master/r/743708
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Tested-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agonet: wireless: bcmdhd: capture driver suspend/resume call
Rakesh Goyal [Tue, 5 May 2015 13:21:07 +0000]
net: wireless: bcmdhd: capture driver suspend/resume call

Bug 200042859

Change-Id: I5624fe017ff2508a11c06455549d968c5375b8bf
Signed-off-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-on: http://git-master/r/742612
(cherry picked from commit 1f536ca518c8e2765f2e2d864cef530c198882ca)
Reviewed-on: http://git-master/r/743779
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agommc: core: Enable Secure Feature support.
Naveen Kumar Arepalli [Wed, 6 May 2015 07:06:37 +0000]
mmc: core: Enable Secure Feature support.

-Currently this feature is not enabled for ext_csd version 7.
-This patch enables Secure Feature support.

Bug 1642823

Change-Id: Iaff6dff23f35718a8d72f735f925df97ad135f86
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/739473
(cherry picked from commit 59590e7c599ab2776e3dec6af7894b3831de3ba0)
Reviewed-on: http://git-master/r/742021
(cherry picked from commit a301b399176790a241feb40bbf862b1dea885bf0)
Reviewed-on: http://git-master/r/741475
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: David Dastous St Hilaire <ddastoussthi@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@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/744582

4 years agovideo: tegra: host: rename scale3d to scale_emc
Sam Payne [Mon, 18 May 2015 18:55:14 +0000]
video: tegra: host: rename scale3d to scale_emc

3d scaling has not been done in nvhost for over
a year

bug 1645757

Change-Id: Id455031a6935204d258e89b9fbebf9fa63455e62
Signed-off-by: Sam Payne <spayne@nvidia.com>
Reviewed-on: http://git-master/r/743940
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>

4 years agoiio: proximity: Fix auto-detect unload
Erik Lilliebjerg [Fri, 8 May 2015 15:52:26 +0000]
iio: proximity: Fix auto-detect unload

- In the previous version, if the device wasn't found, the early exit
  encountered a NULL pointer during driver unload.
- Added DT documentation for the configuration options of this driver.

Bug 1633231

Change-Id: I9ba8a5efd5e2fc8d874d72d8fff35a8a4526c929
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/740681
(cherry picked from commit 182edccee8122fdee48379f1f6639a3e24b24844)
Reviewed-on: http://git-master/r/743878
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Tested-by: Robert Collins <rcollins@nvidia.com>

4 years agoiio: proximity: IRQ driven SAR
Erik Lilliebjerg [Mon, 20 Apr 2015 18:06:07 +0000]
iio: proximity: IRQ driven SAR

- Add interrupt driven support.
- Fix I2C timeout.
- Add reseed.
- Add watchdog timer.
- Add streaming throttling.

By putting the IQS263 device in event mode and reseeding when necessary,
the device can be interrupt driven on proximity events without any polling.
When a proximity event occurs, the device is put in streaming mode.  Only
a single I2C read transaction is done (writes are still stacked) on each
streamed interrupt thereby reducing forced I2C transactions that cause I2C
timeouts.  Once all the reads are done, the device is put back in event
mode.  A watchdog thread forces an interrupt at a device tree programmable
rate.
Just streaming mode is supported as well.  Intead of normally going into
event mode, the interrupt is disabled for a device tree programmable
period, which upon expiration, reenables the interrupt.  This allows
throttling of the streaming interrupt.

Bug 1633231

Change-Id: If4262d7687eb06a603f6fad2980c3133aad1818f
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/739131
(cherry picked from commit 3c05f99061eb76d8461480009513e9d21a3c3296)
Reviewed-on: http://git-master/r/743877
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Tested-by: Robert Collins <rcollins@nvidia.com>

4 years agoarm64: dts: add IQS263 SAR driver data.
Erik Lilliebjerg [Tue, 5 May 2015 10:56:58 +0000]
arm64: dts: add IQS263 SAR driver data.

- The IQS263 SAR NVS driver is now data driven from the device tree.
  Register values for initialization and enable are from the device tree.

bug 1614729

Change-Id: I525acd1f6b9ec802237696a16b020e9b0264500a
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/739119
(cherry picked from commit 15cb4036d7f1f588b565c6e4cb2301d54d044cf8)
Reviewed-on: http://git-master/r/739040
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Robert Collins <rcollins@nvidia.com>

4 years agoiio: nvi: fix timestamps
Erik Lilliebjerg [Wed, 29 Apr 2015 09:08:18 +0000]
iio: nvi: fix timestamps

- The previous version of the INV driver used a timestamp FIFO that the
  interrupt handler added a timestamp to on each interrupt.  The waking
  thread pulled those timestamps and applied them to the data pulled
  from the data FIFO using a best-fit algorithm.  Although the algorithm
  worked pretty well, there were some loose ends in the mechanism where
  a local timestamp was used in places when the FIFO was disabled, for
  example, in low power mode, and wasn't synced with the FIFO timestamps,
  causing hiccups where timestamps went back in time.
  There were also issues of lost interrupts and too many interrupts since
  the interrupts are disabled at times.
  This version addresses these issues by removing the timestamp FIFO
  altogether, although the last timestamp is always stored to sync to.
  Already knowing when the sensor is enabled or the last timestamp used
  and at what rate the sensor provides data, the timestamp algorithm is
  much simpler by simply dividing the difference in time between data
  pulled now and since last pulled by the number of data samples.
  Obviously there is a little more to this but basically it works backwards
  with the known "now time" ensuring that timestamps never go back further
  than the previous one used.
- The main reason for the timestamp rewrite rather than fixing the trivial
  bugs in the previous version is that the timestamp FIFO mechanism won't
  work on the ICM part when in multiple FIFO mode since each FIFO can run
  at a separate rate causing inconsistent correlation between FIFO timestamps
  and the data pulled in each FIFO.  This timestamp algorithm allows us to
  move to a separate FIFO per sensor.

Bug 200093373

Change-Id: I2dbc6b93263d40b3f37e4d1536b5f434db730bcd
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/737406
(cherry picked from commit a3b9564764866a5103cd94de54c916a2ab85ab48)
Reviewed-on: http://git-master/r/737208
Reviewed-by: Robert Collins <rcollins@nvidia.com>

4 years agoiio: proximity: IRQ driven SAR
Erik Lilliebjerg [Mon, 20 Apr 2015 18:06:07 +0000]
iio: proximity: IRQ driven SAR

- Add interrupt driven support.
- Fix I2C timeout.
- Add reseed.
- Add watchdog timer.
- Add streaming throttling.

By putting the IQS263 device in event mode and reseeding when necessary,
the device can be interrupt driven on proximity events without any polling.
When a proximity event occurs, the device is put in streaming mode.  Only
a single I2C read transaction is done (writes are still stacked) on each
streamed interrupt thereby reducing forced I2C transactions that cause I2C
timeouts.  Once all the reads are done, the device is put back in event
mode.  A watchdog thread forces an interrupt at a device tree programmable
rate.
Just streaming mode is supported as well.  Intead of normally going into
event mode, the interrupt is disabled for a device tree programmable
period, which upon expiration, reenables the interrupt.  This allows
throttling of the streaming interrupt.

Bug 1633231

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

4 years agoRevert "Revert "gpu: nvgpu: New allocator for VA space""
Alex Waterman [Fri, 15 May 2015 16:13:28 +0000]
Revert "Revert "gpu: nvgpu: New allocator for VA space""

This reverts commit 7eb42bc239dbd207208ff491c3fb65c3d83274d8.

The original commit was actually fine.

Change-Id: Ib5e658b81ddb8805a7c296ba8da8f987cddbf165
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/743300
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>

4 years agodrivers: cpuquiet: Plug/unplug CPUs in order
Sai Gurrappadi [Wed, 22 Apr 2015 00:20:30 +0000]
drivers: cpuquiet: Plug/unplug CPUs in order

When satisfying the min/max constraints on online cpus, plug/unplug the
CPUs in order to make system behavior more predictable. There is
slightly higher penalty for the max case now as we need to find the last
online CPU but this shouldn't be significant. Also cleanup some code
while at it.

Change-Id: Ief4e4a76bbb960e476d6534bab30118b7326c91f
Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/733895
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: David Lock <dlock@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

4 years agoasoc: codec: es755: set SPI clock rate to 2Mhz
Srinivas Anne [Fri, 24 Apr 2015 00:12:07 +0000]
asoc: codec: es755: set SPI clock rate to 2Mhz

FW version:
M90.5.2.12_B52352_NVidia_Loki_MCFFillIn_STREAM.bin

Summary:
Reduced the SPI clock speed to 2Mhz.
Audience codec acheived rate lock within 15-16 millisec with
2Mhz clock speed.

FW change summary:
VP OFF API removed from algo preset as it is already present
in the route preset itself.

bug 1622994
bug 200095523

Change-Id: I31598df1eed3b25e66709501031a82e125464349
Signed-off-by: Srinivas Anne <sanne@nvidia.com>
Reviewed-on: http://git-master/r/735176
Reviewed-on: http://git-master/r/739211
Reviewed-on: http://git-master/r/740706
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>

4 years agoasoc: codec: es755: fix gain clipping for mic2
Srinivas Anne [Tue, 21 Apr 2015 19:54:36 +0000]
asoc: codec: es755: fix gain clipping for mic2

FW version:
M90.5.2.12_B52295_NVidia_Loki_MCFFillIn_STREAM.bin

Change summary:
FE-IN digital gain removed to see similar gain levels as before

bug: 1622994

Change-Id: Iffb9ed6f4799e15d6014ffbf31fad4ae4b7d4245
Signed-off-by: Srinivas Anne <sanne@nvidia.com>
Reviewed-on: http://git-master/r/733757
Reviewed-on: http://git-master/r/738180
Reviewed-on: http://git-master/r/740704
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>

4 years agoasoc: codec: es755: fix for audio corruption issue
Srinivas Anne [Wed, 15 Apr 2015 23:34:09 +0000]
asoc: codec: es755: fix for audio corruption issue

FW version:
M90.5.2.12_B52025_NVidia_Loki_MCFFillIn_STREAM.bin

summary:
Added change to supress the read response messages from the FW.
Host driver will not send 'sync' messages to the FW during route
setup

bug: 1622994

Change-Id: I88a9d2ea3a7a81e0c71b63fd80366029f2cd6a66
Reviewed-on: http://git-master/r/732332
Signed-off-by: Srinivas Anne <sanne@nvidia.com>
Reviewed-on: http://git-master/r/733756
Reviewed-on: http://git-master/r/738179
Reviewed-on: http://git-master/r/740702
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>

4 years agoasoc: codec: es755: update audience fw
Srinivas Anne [Tue, 7 Apr 2015 00:06:40 +0000]
asoc: codec: es755: update audience fw

New binary B51521 built based on the B49463

FW version:
M90.5.2.12_B51521_NVidia_Loki_MCFFillIn_STREAM.bin

Change summary:
1) Corrected the base preset to support external port rate to 192k
2) Fix added to clean the input data buffer before allocation
3) VP-off preset added to address the specific NVidia manufacturing
   use case. to validate the 2 PDM MIC HW, introduced the route where
   two streams should come out independently.
4) Fix added to run the PDM MIC filter start/stop sequences correctly.

Change-Id: I2447d8f38fbad62959753b779529cefd998d8315
(cherry picked from commit b63a731c78d2e6dfc72ff9eac7d9c29c655a7c1a)
Reviewed-on: http://git-master/r/729266
Signed-off-by: Srinivas Anne <sanne@nvidia.com>
Reviewed-on: http://git-master/r/731916
Reviewed-on: http://git-master/r/740700
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>

4 years agoarm64: configs: enable connector
David Lock [Thu, 7 May 2015 20:09:57 +0000]
arm64: configs: enable connector

Enable connector feature for tegra21 config.

Bug 1643998

Change-Id: I4e36f125ff7029251b1fbaaea8e69893970c749c
Signed-off-by: David Lock <dlock@nvidia.com>
Reviewed-on: http://git-master/r/740256
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

4 years agodrivers: cpuquiet: Change hotplug core order
David Lock [Fri, 17 Apr 2015 21:59:31 +0000]
drivers: cpuquiet: Change hotplug core order

Turn cores off in reverse order in which we turn them on
from last core to first.  This makes hotplug behavior more
predicatable to system components trying to optimize
scheduling.

Change-Id: I4040337bca3affb2ac311f5481a2f959da85e2ac
Signed-off-by: David Lock <dlock@nvidia.com>
Reviewed-on: http://git-master/r/732888
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

4 years agoarm64: configs: enable connector
David Lock [Tue, 31 Mar 2015 23:29:21 +0000]
arm64: configs: enable connector

Enable connector feature for tegra13 config.

Bug 1643998

Change-Id: I744a567d881ac735b886c88af1e06433ddd409f6
Signed-off-by: David Lock <dlock@nvidia.com>
Reviewed-on: http://git-master/r/728083
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

4 years agoarm: configs: enable connector
David Lock [Wed, 18 Mar 2015 22:29:58 +0000]
arm: configs: enable connector

Enable connector feature for tegra12.

Regenerate the defconfig file properly with ksavedefconfig
in order to clean it up.

Bug 1643998

Change-Id: I6ea1176badc234497f95cc0d9f7936cab4ad556d
Signed-off-by: David Lock <dlock@nvidia.com>
Reviewed-on: http://git-master/r/728082
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

4 years agomedia: tegra_v4l2_camera: update v4l2_imx214
David Wang [Mon, 27 Apr 2015 18:13:34 +0000]
media: tegra_v4l2_camera: update v4l2_imx214

Updating the v4l2_imx214 driver to add additional
modes, and controls.

Bug 1579861.

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

4 years agodrivers: media: tegra: add camera common
David Wang [Mon, 27 Apr 2015 18:14:12 +0000]
drivers: media: tegra: add camera common

Adding camera_common functions to combine v4l2
camera common and regmap utils.

Bug 1579861.

Change-Id: I40510461f2fdc02455c371767416d5994b3cf90e
Signed-off-by: David Wang <davidw@nvidia.com>
Reviewed-on: http://git-master/r/736385
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Wenjia Zhou <wenjiaz@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

4 years agoclock: tegra21: Assign clock IDs for EMC
Hoang Pham [Tue, 19 May 2015 00:06:34 +0000]
clock: tegra21: Assign clock IDs for EMC

Assign Tegra21 clock IDs for EMC, MC,
ISP, MCLK, MCLK2, MCLK3, CAM_MIPI_CAL

Bug 1608456

Change-Id: I92cac9adb71b4ba046d66189b38930fa624d6dfa
Signed-off-by: Hoang Pham <hopham@nvidia.com>
Reviewed-on: http://git-master/r/744084
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

4 years agoclock: tegra21: Assign clock IDs to super-clocks
Alex Frid [Fri, 15 May 2015 01:30:31 +0000]
clock: tegra21: Assign clock IDs to super-clocks

Assigned clock IDs to CPU, ADSP, and System complex clocks.

Bug 1608456

Change-Id: I9b75ee9613858438efe6901854d9a58b2796a1b9
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/743000
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hoang Pham <hopham@nvidia.com>
Tested-by: Hoang Pham <hopham@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

4 years agoarm64: tegra: prod: update spi pad prod
Krishna Yarlagadda [Thu, 30 Apr 2015 10:32:14 +0000]
arm64: tegra: prod: update spi pad prod

Prod settings for SPI pads has been changed.

Bug 200039141

Change-Id: I41eda7f76b1807989ff76e9b371d7a74195d9a67
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/737762
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoplatform: nvadsp: use single open for ADSP logger
Ajay Nandakumar [Mon, 30 Mar 2015 05:20:51 +0000]
platform: nvadsp: use single open for ADSP logger

ADSP logger will support just single client to read the buffer at
once. This will ensure that the logs will not be corrupted since
multiple clients will corrupt the read pointer.

Bug 200091129

Change-Id: I1bbbeb0c3e2b635d162651200c12fdff4fccd9da
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Reviewed-on: http://git-master/r/724794
(cherry picked from commit e88967fee37a46e08fe9470b4d61f9b3177888ad)
Reviewed-on: http://git-master/r/744244
GVS: Gerrit_Virtual_Submit
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>

4 years agomm: move mmu notifier call from change_protection to change_pmd_range
Rik van Riel [Mon, 7 Apr 2014 22:36:57 +0000]
mm: move mmu notifier call from change_protection to change_pmd_range

The NUMA scanning code can end up iterating over many gigabytes of
unpopulated memory, especially in the case of a freshly started KVM
guest with lots of memory.

This results in the mmu notifier code being called even when there are
no mapped pages in a virtual address range.  The amount of time wasted
can be enough to trigger soft lockup warnings with very large KVM
guests.

This patch moves the mmu notifier call to the pmd level, which
represents 1GB areas of memory on x86-64.  Furthermore, the mmu notifier
code is only called from the address in the PMD where present mappings
are first encountered.

The hugetlbfs code is left alone for now; hugetlb mappings are not
relocatable, and as such are left alone by the NUMA code, and should
never trigger this problem to begin with.

Signed-off-by: Rik van Riel <riel@redhat.com>
Acked-by: David Rientjes <rientjes@google.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Reported-by: Xing Gang <gang.xing@hp.com>
Tested-by: Chegu Vinod <chegu_vinod@hp.com>
Cc: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
(cherry picked from commit a5338093bfb462256f70f3450c08f73e59543e26)

Conflicts:
mm/mprotect.c

Bug 200074285

Change-Id: I8c2ae82503aa75a90feb5373cde08feb74ee7d7a
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/678257
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>

4 years agoshmem: allow shmem to use all memory
Alex Van Brunt [Mon, 18 May 2015 16:27:07 +0000]
shmem: allow shmem to use all memory

By default, shmem can only allocate half of memory. This prevents
large initramfs's from being able to be loaded. This adds an option to
allow shmem to use all of the memory.

Change-Id: I60fa9c1d5f990fe8cebb5c35b95d5824199c72fa
Signed-off-by: Alex Van Brunt <avanbrunt@nvidia.com>
Reviewed-on: http://git-master/r/743868
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

4 years agoARM: dts: ST8: change current limit for temp 45-50
Venkat Reddy Talla [Thu, 14 May 2015 05:13:28 +0000]
ARM: dts: ST8: change current limit for temp 45-50

change input current limit for battery temp
range 45-50C.

Change-Id: I84b4ca87aee94042d3a597a0fb5b5e674e5cacb1
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/742529
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoARM64: dts: change adc threshold value for rid-c
Venkat Reddy Talla [Thu, 30 Apr 2015 11:33:38 +0000]
ARM64: dts: change adc threshold value for rid-c

Update adc threshold range for rid-c cable.

Bug 200087348

Change-Id: I2a6ca9ad0735f4a4d9e426905efc23b210b14fdb
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/737781
(cherry picked from commit 0e7f4cd5ba4cca454e5f02e80a1f318e0ab0fda3)
Reviewed-on: http://git-master/r/740057
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoARM64: dts: Hawkeye: update adc threshold values for A01 platform
Venkat Reddy Talla [Wed, 29 Apr 2015 10:16:17 +0000]
ARM64: dts: Hawkeye: update adc threshold values for A01 platform

Updating adc threshold values for Hawkeye A01 platform to detect
input cable.

Bug 200087348

Change-Id: I0b9d18057677179ae41436ccd87f831e6fd751a3
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/737222
(cherry picked from commit 316e4cb2771520c23ad469db25ea7e8cc0edff74)
Reviewed-on: http://git-master/r/740056
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agopower: bq27441: return 0 while reporting last temp on read fail
Venkat Reddy Talla [Thu, 14 May 2015 09:08:07 +0000]
power: bq27441: return 0 while reporting last temp on read fail

Return 0 instead of error value to framework layer while
reproting previous temp value on battery temp read fail.

Bug 1643119

Change-Id: I7e440a2d52f185ca602b270e944e74977911a45e
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/742626
(cherry-picked from commit e2a5acf7deb58de970da3eef3e30634967b9fe9b)
Reviewed-on: http://git-master/r/743967
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agopower: bq27441: report last battery on read fail
Steve Rogers [Sun, 10 May 2015 20:07:47 +0000]
power: bq27441: report last battery on read fail

If the battery temperature is read through the IIO interface,
make sure to save and return the last good read through that
interface up to 50 total failures.

Bug 1643119

Change-Id: I1afdc68197c2d9f14995ce3313ccb3ad825578d6
Signed-off-by: Steve Rogers <srogers@nvidia.com>
Reviewed-on: http://git-master/r/741013
Reviewed-on: http://git-master/r/743966
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Tested-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agopower: bq27441: report battery temperature via PSY
Venkat Reddy Talla [Wed, 6 May 2015 06:59:27 +0000]
power: bq27441: report battery temperature via PSY

Read battery temperature through IIO channel interface
and report to framework layer using power supply node.

Bug 1643119

Change-Id: I9547085fa628ac2e9ebbb386d27b9ea9e8c70255
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/739471
(cherry picked from commit 18f14e30f305d0ce8e178a430907a86072addcf6)
Reviewed-on: http://git-master/r/740049
Reviewed-by: Steve Rogers <srogers@nvidia.com>
Tested-by: Steve Rogers <srogers@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoARM: tegra: Hawkeye: add battery thermal zone name to FG node
Laxman Dewangan [Tue, 5 May 2015 15:33:50 +0000]
ARM: tegra: Hawkeye: add battery thermal zone name to FG node

Adding battery thermal zone name to Bq27441 FG node
to reab battery temperature and report through power
supply node.

Bug 1643119

Change-Id: Ibb88612c159858d45d7dbd8cc534c97a67f9f053
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/739127
(cherry picked from commit 120e75e95e13079e2d4d71c5d28c64b836113ca9)
Reviewed-on: http://git-master/r/740048
Reviewed-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Tested-by: Venkat Reddy Talla <vreddytalla@nvidia.com>

4 years agothermal: generic-adc: fix compilation warning
Laxman Dewangan [Tue, 5 May 2015 15:39:49 +0000]
thermal: generic-adc: fix compilation warning

Fixing following warning when compiling by initialising
the variable appropriately.

of_generic_adc_thermal.c: In function 'gpadc_thermal_parse_dt':
of_generic_adc_thermal.c:226:20: warning: 'temp_offset' may be used
uninitialized in this function [-Wmaybe-uninitialized]
   gti->temp_offset = temp_offset;

bug 1643119

Change-Id: I62d30aab5ac2ea2f56658f127e997e9fa747340b
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit 1c067d8ad4f68bfab02057732bdf2281b369c496)
Reviewed-on: http://git-master/r/743691
Reviewed-by: Automatic_Commit_Validation_User

4 years agomisc:cryptodev: fix null_check coverity issue
Shravani Dingari [Fri, 15 May 2015 06:22:46 +0000]
misc:cryptodev: fix null_check coverity issue

Fix coverity issue of not returning when null_check
shows the memory allocated is NULL
Coverity id : 30087

Bug 1416640

Change-Id: Idfaa2968de6e4e4719bf0cc089267177a0a4f588
Signed-off-by: Shravani Dingari <shravanid@nvidia.com>
Reviewed-on: http://git-master/r/743120
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agot124: udc/otg: Add DT support for T124 power-domains
Sumit Singh [Wed, 6 May 2015 17:44:40 +0000]
t124: udc/otg: Add DT support for T124 power-domains

Make modifications so as to add otg device to
its powerdomain using device tree.

Bug 200070810

Change-Id: I8fa7d4b8e982fe890172a105d0727f874de5d672
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
Reviewed-on: http://git-master/r/739717
Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agousb: ehci: tegra: Add DT support for T124 power-domains
Sumit Singh [Wed, 6 May 2015 17:40:27 +0000]
usb: ehci: tegra: Add DT support for T124 power-domains

Make modifications so as to add ehci devices to their
power-domains using using device tree for T124 chip.

Bug 200070810

Change-Id: I1ff082375d810f6e4199288725448c8f16cbf0a9
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
Reviewed-on: http://git-master/r/739716
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agommc: sdhci: Add DT support for T124 power-domains
Sumit Singh [Wed, 6 May 2015 17:34:35 +0000]
mmc: sdhci: Add DT support for T124 power-domains

Make modifications so as to add sdhci devices to
their power-domains using using DT for T124 chip.

Bug 200070810

Change-Id: Iec1c3cdae6f43efba8637666548c0339b656477b
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
Reviewed-on: http://git-master/r/739715
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agovideo: tegra: host: DT support for host1x domains
Sumit Singh [Wed, 6 May 2015 16:26:22 +0000]
video: tegra: host: DT support for host1x domains

Add DT support for power domains for host1x clients
for T124 chip.

Bug 200070810

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

4 years agogpu: nvgpu: Add DT support for gpu power-domain
Sumit Singh [Wed, 6 May 2015 16:20:26 +0000]
gpu: nvgpu: Add DT support for gpu power-domain

Make modification to add DT support for gpu
power-domain for T124 chip.

Bug 200070810

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

4 years agoplatform: tegra: Add DT support for T124 power-domains
Sumit Singh [Wed, 6 May 2015 16:34:31 +0000]
platform: tegra: Add DT support for T124 power-domains

Add DT support for the following tegra power-domains:
-mc_clk
-nvavp
-sdhci

Also correct a typo for T210 nvavp entry.

Bug 200070810

Change-Id: Ie1dc44bb64f298f5a85501da4441151e323dfb9e
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
Reviewed-on: http://git-master/r/739704
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
GVS: Gerrit_Virtual_Submit

4 years agoPM/Domain: Add pd supporting functions
Sumit Singh [Wed, 6 May 2015 16:06:37 +0000]
PM/Domain: Add pd supporting functions

Add function, which we are using as a work-around to add
a few devices to their power-domains using device-tree.

Bug 200105664

Change-Id: I5a510f0bf5f3b213ec932dfd29878cb9e310be4f
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
Reviewed-on: http://git-master/r/739687
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>

4 years agoARM: dts: tegra: Add DT nodes for power-domains
Sumit Singh [Tue, 31 Mar 2015 05:23:42 +0000]
ARM: dts: tegra: Add DT nodes for power-domains

To add DT support for tegra power-domains, adding
nodes for tegra power-domains, filling the relevant
properties, and adding a phandle to devices pointing
to power-domain to which they belong.

Bug 200070810

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

4 years agoi2c: busses: make local function as static
Amit Sharma (SW-TEGRA) [Tue, 19 May 2015 04:27:34 +0000]
i2c: busses: make local function as static

Fixed the following sparse warnings by making the local function as static:
- warning: symbol 'tegra_vi_i2c_runtime_resume' was not declared.
   Should it be static?
- warning: symbol 'tegra_vi_i2c_runtime_suspend' was not declared.
   Should it be static?

Bug 200067946

Change-Id: I2d2b7be4ec24e4dd1f8afbaf3646900df302ccf6
Signed-off-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com>
Reviewed-on: http://git-master/r/744125
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agoplatform: tegra: emc: fix Coverity defects
Alex Waterman [Tue, 21 Apr 2015 20:01:12 +0000]
platform: tegra: emc: fix Coverity defects

Remove some dead code found by coverity
Coverity defect id : 26816

Remove unsigned comparison against zero
Coverity defect id : 29955

Bug 1416640

Change-Id: I9fdc53ed5974a6b61a2b1ef00b89544a722ef7c5
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/733719
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agoarm64: dts: p2530: disable charger-die
Naveen Kumar S [Wed, 15 Apr 2015 05:59:30 +0000]
arm64: dts: p2530: disable charger-die

Charger-die is not needed for any platform with P2530.
Removed the node from dtsi file.

bug 200093042

Change-Id: Ied012827148139d273fb6856484ec5877619d7a3
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/727984
(cherry picked from commit 6b94e373eb7fe5b84654fb252d814c7fcf8ab5a0)
Reviewed-on: http://git-master/r/739976
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 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
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dmitry Antipov <dantipov@nvidia.com>
Reviewed-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agodrivers: of: add return value to of_reserved_mem_device_init()
Marek Szyprowski [Wed, 29 Oct 2014 21:50:29 +0000]
drivers: of: add return value to of_reserved_mem_device_init()

Driver calling of_reserved_mem_device_init() might be interested if the
initialization has been successful or not, so add support for returning
error code.

This fixes a build warining caused by commit 7bfa5ab6fa1b ("drivers:
dma-coherent: add initialization from device tree"), which has been
merged without this change and without fixing function return value.

Bug 200027296

Fixes: 7bfa5ab6fa1b1 ("drivers: dma-coherent: add initialization from device tree")
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Cc: Michal Nazarewicz <mina86@mina86.com>
Cc: Grant Likely <grant.likely@linaro.org>
Cc: Laura Abbott <lauraa@codeaurora.org>
Cc: Josh Cartwright <joshc@codeaurora.org>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
(cherry picked from commit 47f29df7db78ee4fcdb104cf36918d987ddd0278)
Change-Id: I41bc730cf1d2a70a19a7797972d4af7a6635508d
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/740577
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agousb: gadget: tegra: fix kernel panic in test mode
BH Hsieh [Tue, 28 Apr 2015 04:49:40 +0000]
usb: gadget: tegra: fix kernel panic in test mode

Drivers should NOT use virt_to_phys,
use dma_map_single instead.

Bug 200098808

Change-Id: Ie86d64d5176b89c2ef68251a5dd4c18883ce7cf3
Signed-off-by: BH Hsieh <bhsieh@nvidia.com>
Reviewed-on: http://git-master/r/733600
Reviewed-by: Jui Chang Kuo <jckuo@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agotegra: fiq_debugger: use device node to attach debugger
dmitry pervushin [Mon, 20 Apr 2015 11:35:02 +0000]
tegra: fiq_debugger: use device node to attach debugger

Although FIQ debugger is a software entity, it makes sense to configure
it using device tree, as it is a hardware device. New device node with
compatible="nvidia,fiq-debugger" references another device nodes: console
port and interrupt source. Console port is specified using use-console-port
property, the interrupt source is referenced using use-wdt-irq. However,
in both cases it is possible to use "reg" and "interrupt" properties to
specify port and irq manually.

Bug 200081897

Change-Id: If33debe553653d5c753806320f203c3be49a51e8
Signed-off-by: dmitry pervushin <dpervushin@nvidia.com>
Signed-off-by: Allen Yu <alleny@nvidia.com>
Reviewed-on: http://git-master/r/733183
(cherry picked from commit c7bd7c485a7019aa41d8151b971500fa0e6b53b5)
Reviewed-on: http://git-master/r/741081
Reviewed-by: Mitch Luban <mluban@nvidia.com>

4 years agoarm64: Hawkeye: update emc DVFS table
Robert Shih [Thu, 2 Apr 2015 08:44:31 +0000]
arm64: Hawkeye: update emc DVFS table

bug 1608434

Change-Id: Id5dea6c212568a99b5995c3ecbff531cf90e169d
Signed-off-by: Robert Shih <rshih@nvidia.com>
Reviewed-on: http://git-master/r/726797
(cherry picked from commit a7315b4ef54063c28ed697fe9f6b858ca0d0408c)
Reviewed-on: http://git-master/r/730083
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>

4 years agoUSB: phy: disable PD_TX after delay
Suresh Mangipudi [Thu, 12 Mar 2015 13:44:38 +0000]
USB: phy: disable PD_TX after delay

Delay after disabling PD_TX could cause a glitch on the USB bus

Bug 1600315

Change-Id: I89e9eec228201ecca27dd750eaf8116704dd4315
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-on: http://git-master/r/734251
(cherry picked from commit 9e1005b01be24f09a7ee66e3c9e5dacfa139c03a)
Reviewed-on: http://git-master/r/740042
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agoarm: tegra: enable NTFS config for tegra210
Bibek Basu [Tue, 7 Apr 2015 10:39:34 +0000]
arm: tegra: enable NTFS config for tegra210

Enable CONFIG_NTFS_FS for tegra210

Bug 200093380

Change-Id: I3699f58919a8851aaff181b38b6b584c06a621b6
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/728487
(cherry picked from commit 07ece0487a58688fe06198549152180320a8d6d3)
Reviewed-on: http://git-master/r/731721
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agopcie: tegra: move err print to info print
Bibek Basu [Tue, 7 Apr 2015 10:45:24 +0000]
pcie: tegra: move err print to info print

Change link down print to info print

Bug 200094238

Change-Id: I7ea4ab4862609d34766c7cd1ea12870b0fa80eb5
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/728488
(cherry picked from commit e547fb5d0185c49704322ff406889cb1d3c0b277)
Reviewed-on: http://git-master/r/731722
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Tested-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agopcie: tegra: remove delay in resume code
Bibek Basu [Tue, 5 May 2015 04:28:44 +0000]
pcie: tegra: remove delay in resume code

regulator ramp delay will take care of voltage
stabilization, no need to add delay in driver

Bug 200088740

Change-Id: I0d672c0b91f2fcaa6938553976f65f3fd04ece60
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/738837
(cherry picked from commit 687c925788f933d2b4b14b9816682e3612d1d03c)
Reviewed-on: http://git-master/r/740969
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agohost: nvhost: fix the sparse warnings
Amit Sharma (SW-TEGRA) [Thu, 14 May 2015 04:59:47 +0000]
host: nvhost: fix the sparse warnings

Fixed the following sparse warnings by adding the '__user' cast
to user space pointers, this will notify the sparse that they are
user space pointer. Hence, remove the sparse error and warnings.

- bus_client.c:905:51: warning: incorrect type in argument 4
- bus_client.c:905:60: warning: incorrect type in argument 5
- host1x.c:325:51: warning: incorrect type in argument 4
- host1x.c:325:60: warning: incorrect type in argument 5
- vhost.c:231:43: warning: incorrect type in argument 2
- vhost.c:238:51: warning: cast removes address space of expression
- vhost.c:238:51: warning: incorrect type in argument 2
- vhost.c:254:35: warning: cast removes address space of expression
- vhost.c:254:35: warning: incorrect type in argument 1
- vhost.c:211:5: error: symbol 'vhost_rdwr_module_regs' redeclared
                 with different type (originally declared at - vhost.h:52)
                 - incompatible argument 4 (different address spaces)

Bug 200067946
Bug 200088648

Change-Id: Ib9b8172fa9aeea4e1be061d8d43c4a029a72aeb0
Signed-off-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com>
Reviewed-on: http://git-master/r/742685
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Peter Daifuku <pdaifuku@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agoarm64: tegra: enable tegra WDT on probe for t210
Allen Yu [Wed, 29 Apr 2015 07:55:03 +0000]
arm64: tegra: enable tegra WDT on probe for t210

For t210 we can use WDT IRQ handler for WDT petting so it's safe to
enable WDT by default on all t210 platforms. This helps device recover
from early hang/lockup condition.

Bug 200100035

Change-Id: I8cca435ed195e07c9ecede002cd24f1e2f663a9f
Signed-off-by: Allen Yu <alleny@nvidia.com>
Reviewed-on: http://git-master/r/737169
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>

4 years agowatchdog: tegra: revmap support for enable-on-init
Allen Yu [Tue, 28 Apr 2015 06:55:13 +0000]
watchdog: tegra: revmap support for enable-on-init

To recover device from early hang before userspace watchdog daemon starts,
WDT needs to be enabled on init and a kernel WDT petting routine is preferable
since the time to userspace boot is non-deterministic and it is possible that
userspace may not provide a watchdog daemon. This change does following:

- Request a threaded irq (WDT_IRQ) if enable-on-init is provided in DT
- Reload WDT in the threaded interrupt context to probe CPU lockup
- Remove the IRQ handler once userspace watchdog daemon takes over WDT

For legacy chips like t124 and t132, WDT_IRQ is not available for WDT petting
since it's used for FIQ debugger. So they still expect userspace to boot and
start petting the watchdog.

Bug 200100035

Change-Id: I9d6345aa2a154dcb91adf0d42c044902dece4744
Signed-off-by: Allen Yu <alleny@nvidia.com>
Reviewed-on: http://git-master/r/736803
Reviewed-by: Mitch Luban <mluban@nvidia.com>

4 years agowatchdog: tegra: get expiry count from DT
Allen Yu [Tue, 28 Apr 2015 06:08:21 +0000]
watchdog: tegra: get expiry count from DT

The total expiry count of Tegra WDTs is limited to HW design and depends
on skip configuration if supported. This change adds support to get the
expiry count through device tree. To be safe, we set the default expiry
count to 1, in case device tree doesn't provide the value.

Bug 200100035

Change-Id: I490dc21d3c1a217c3873a25cb60bba991bd80873
Signed-off-by: Allen Yu <alleny@nvidia.com>
Reviewed-on: http://git-master/r/736602
Reviewed-by: Mitch Luban <mluban@nvidia.com>

4 years agoARM: tegra: add DT properties for tegra WDT
Allen Yu [Wed, 29 Apr 2015 07:10:51 +0000]
ARM: tegra: add DT properties for tegra WDT

Add "interrupts" and "nvidia,expiry-count" DT properties
for tegra WDT to better support enable WDT on probe.

Bug 200100035

Change-Id: Ia4e43b196e1475dbbaee199b4c040fd05450a017
Signed-off-by: Allen Yu <alleny@nvidia.com>
Reviewed-on: http://git-master/r/737160
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

4 years agogpu: nvgpu: Disable channel when updating SMPC WAR
Terje Bergstrom [Mon, 11 May 2015 19:13:05 +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: Ia65bdb638cec7125021a8e60c365b83085efe0d4
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/741322
Reviewed-on: http://git-master/r/743859

4 years agopower: tegra12: Hot reset GPU MC client
Seshendra Gadagottu [Fri, 8 May 2015 17:59:10 +0000]
power: tegra12: Hot reset GPU MC client

Hot reset GPU MC client interface when GPU is powered ON
after boot or SC7 or rail-gate.

Bug 1642920

Change-Id: I421d535af4e9d627bf272814594ac3c7a50aaae7
Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/740730
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

4 years agogpu: nvgpu: Correction in allow_all flag usage
sujeet baranwal [Fri, 27 Mar 2015 00:51:11 +0000]
gpu: nvgpu: Correction in allow_all flag usage

The allow_all flag is used to avoid any kind of register's
offset being validate when called through regops. but the
current implementation was flawed. It printed error messages
and set the status of each operation invalid, even when
allow_all was set.

Change-Id: Ie5a70a3cdc2368715731cf1c9cd771fdcf6b0d57
Signed-off-by: sujeet baranwal <sbaranwal@nvidia.com>
Reviewed-on: http://git-master/r/723830
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>

4 years agommc: tegra: set max command queue depth to 32
Srinivas Vummadisingu [Thu, 14 May 2015 21:54:31 +0000]
mmc: tegra: set max command queue depth to 32

Modified the default cq depth from 16 to 32.

Bug 200093351

Change-Id: Ic268482c1e2509300c57795caf81956495862546
Signed-off-by: Srinivas Vummadisingu <srinivasv@nvidia.com>
Reviewed-on: http://git-master/r/742930
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

4 years agodrivers: thermal: enable reading sensors_active
Neil Patel [Thu, 16 Apr 2015 17:03:06 +0000]
drivers: thermal: enable reading sensors_active

Enable reading of the sensors_active attribute from user space to
help diagnose cases where the modem temperature readings are
returning an error.

Bug 1619534

Change-Id: I8672feb31a08f0c9d9c4ff6583abc2cbb9d270dc
Signed-off-by: Neil Patel <neilp@nvidia.com>
Reviewed-on: http://git-master/r/733234
(cherry picked from commit d8f8f464c405db08df05fe9cb5dd773759798e03)
Reviewed-on: http://git-master/r/732342
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rajkumar Jayaraman <rjayaraman@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Steve Lin <stlin@nvidia.com>

4 years agousb: gadget: xudc: Fix compiling warnings.
Hui Fu [Wed, 6 May 2015 22:00:02 +0000]
usb: gadget: xudc: Fix compiling warnings.

Enable -Werror option, and fixed all the compiling errors.

Bug 1454125

Change-Id: I5306e8f6f7046f423755d95ee9ac02bb37a067bb
Signed-off-by: Hui Fu <hfu@nvidia.com>
Reviewed-on: http://git-master/r/739802
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: ChihMin Cheng <ccheng@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

4 years agoARM: mm: dma-mapping: limit iova alignment
Sri Krishna chowdary [Mon, 11 May 2015 09:28:38 +0000]
ARM: mm: dma-mapping: limit iova alignment

iova space is prone to early exhaustion if the default alignment
rule is followed as alignment is of order of mapping size. This patch
tries to restrict arbitrarily large alignments by considering mapping's
alignment as the maximum.

bug 1483482

Change-Id: Id6ee1d8280ba934325bbfd6db733d24a68d05443
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/741186
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>

4 years agoARM: dt: tegra: cleanup alignment in address-space-prop
Sri Krishna chowdary [Mon, 11 May 2015 09:40:56 +0000]
ARM: dt: tegra: cleanup alignment in address-space-prop

{max}alignment within address space property is going to be used
currently by only GPU as the iova space is getting exhausted easily.
Rest devices can work fine.

Bug 1483482

Change-Id: I1740c2937b5d0be124b67561441a9aefeb032745
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/741185
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>

4 years agogpu: nvgpu: fix channel leak with immediate close
Deepak Nibade [Fri, 15 May 2015 12:29:59 +0000]
gpu: nvgpu: fix channel leak with immediate close

If a GPU channel is closed immediately after opening without
performing any operation on it, we leak that channel

e.g. below command leaks a channel
echo > /dev/nvhost-gpu

Fix this leak by releasing the channel before returning

Change-Id: I2598e3cabec6996cb1cf8066a1e6d7d5864ae02b
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/743235
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

4 years agoRevert "gpu: nvgpu: Disable channel when updating SMPC WAR"
Terje Bergstrom [Mon, 18 May 2015 15:36:05 +0000]
Revert "gpu: nvgpu: Disable channel when updating SMPC WAR"

This reverts commit 6cabe69b7b9e5767ae0305961cfba4f72f029807.

Change-Id: I00bfb83038e659a3caaf8a5549039d025417cd1c
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/743858

4 years agogpu: nvgpu: Disable channel when updating SMPC WAR
Terje Bergstrom [Mon, 11 May 2015 19:13:05 +0000]
gpu: nvgpu: Disable channel when updating SMPC WAR

Change-Id: I9b6d8e902c894e4ae0d8103bc56cb20f755b2065
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/741322

4 years agommu_notifier: call mmu_notifier_invalidate_range() from VMM
Joerg Roedel [Thu, 13 Nov 2014 02:46:09 +0000]
mmu_notifier: call mmu_notifier_invalidate_range() from VMM

Add calls to the new mmu_notifier_invalidate_range() function to all
places in the VMM that need it.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
Reviewed-by: Andrea Arcangeli <aarcange@redhat.com>
Reviewed-by: Jérôme Glisse <jglisse@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Rik van Riel <riel@redhat.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Johannes Weiner <jweiner@redhat.com>
Cc: Jay Cornwall <Jay.Cornwall@amd.com>
Cc: Oded Gabbay <Oded.Gabbay@amd.com>
Cc: Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Cc: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
(cherry picked from commit 34ee645e83b60ae3d5955f70ab9ab9a159136673)

Conflicts:
mm/huge_memory.c
mm/migrate.c

Bug 200074285

Change-Id: I9d8a923d744f043c77e2710c315b605def64cfa6
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/678256
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>

4 years agommu_notifier: add the callback for mmu_notifier_invalidate_range()
Joerg Roedel [Thu, 13 Nov 2014 02:46:09 +0000]
mmu_notifier: add the callback for mmu_notifier_invalidate_range()

Now that the mmu_notifier_invalidate_range() calls are in place, add the
callback to allow subsystems to register against it.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
Reviewed-by: Andrea Arcangeli <aarcange@redhat.com>
Reviewed-by: Jérôme Glisse <jglisse@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Rik van Riel <riel@redhat.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Johannes Weiner <jweiner@redhat.com>
Cc: Jay Cornwall <Jay.Cornwall@amd.com>
Cc: Oded Gabbay <Oded.Gabbay@amd.com>
Cc: Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Cc: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
(cherry picked from commit 0f0a327fa12cd55de5e7f8c05a70ac3d047f405e)
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>

Conflicts:
include/linux/mmu_notifier.h

Bug 200074285

Change-Id: Id559a6594db651ab986c56e8ea255d024d5f4478
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/679844
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>

4 years agoarm: tegra124: support for PSCIv0.2
Varun Wadekar [Wed, 8 Apr 2015 12:25:15 +0000]
arm: tegra124: support for PSCIv0.2

Enable "arm,psci-0.2" in the base dtsi file to switch over to the latest
kernel driver. The secure monitor running on T124 now implements the
PSCI spec, so let the monitor take care of PM functions.

To enter LP0, the monitor needs the IRAM vector address which is passed
using a new SMC during bootup.

Bug 1626796

Change-Id: I7261f740d275ccf8cb5723e7ac711d486c2edeb4
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/709757
GVS: Gerrit_Virtual_Submit

4 years agoarm64: jetson-e: Enable mass storage gadget driver
Preetham Chandru R [Wed, 13 May 2015 11:51:07 +0000]
arm64: jetson-e: Enable mass storage gadget driver

Bug 200089451

Change-Id: Ib0ef94a344cdb4c4b1c839c71218d9b877495a45
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/742181
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agoata: ahci: update L2P fifo depth
Preetham Chandru R [Fri, 8 May 2015 06:32:49 +0000]
ata: ahci: update L2P fifo depth

This change updates L2P fifo depth to the one specified by DT, if any or
it uses the recommended value as specified in the bug 1592893 for t210 and
bug 1368635 for t124

Bug 1368635
Bug 1592893

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

4 years agovideo: tegra: host: make get_aperture() public API
Deepak Nibade [Wed, 6 May 2015 15:25:35 +0000]
video: tegra: host: make get_aperture() public API

Make get_aperture() as public API by declaring it in bus_client.h

Also, add one more parameter to it which specifies index of
the aperture to be returned

Bug 1611482

Change-Id: I88877fc9a7c5660202d68981beaa5d680ddc0bba
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/741242
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Tested-by: Arto Merilainen <amerilainen@nvidia.com>

4 years agovideo: tegra: host: define and use nvhost_device_get_resources()
Deepak Nibade [Tue, 5 May 2015 13:27:17 +0000]
video: tegra: host: define and use nvhost_device_get_resources()

Define new generic API nvhost_device_get_resources() and use it for
clients (in nvhost_client_device_get_resources()) and also
for Host1x

Bug 1611482

Change-Id: Ida0548dd0779c8625da3c730ef0f59474dd3f3a1
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/741241
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Tested-by: Arto Merilainen <amerilainen@nvidia.com>

4 years agoRevert "Kconfig: fix TEGRA_USB_SHARED_PAD dependency"
Bharat Nihalani [Mon, 18 May 2015 04:44:04 +0000]
Revert "Kconfig: fix TEGRA_USB_SHARED_PAD dependency"

This reverts commit 1278f95982a143974317d7141a0dd981327f9a6e
since it causes build break.

Original bug 200084946
Bug 200105726

Change-Id: Ia0a7efd0535be4c972d787f563616b0876a4835f
Signed-off-by: Bharat Nihalani: <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/743594

4 years agoARM64: dt: odin: add dp dt file
Alvin Park [Fri, 8 May 2015 04:54:28 +0000]
ARM64: dt: odin: add dp dt file

include display port dt file and configure
'nvidia,sor1-output-type' as 'dp'.
And removed hdmi dt file.

Bug 200096610

Change-Id: I9dae488eaa25ded6d3b4633de8d9d89dee8a94d8
Signed-off-by: Alvin Park <apark@nvidia.com>
Reviewed-on: http://git-master/r/740464
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agopcie: host: tegra: program prod settings from DT
Vidya Sagar [Thu, 30 Apr 2015 12:15:37 +0000]
pcie: host: tegra: program prod settings from DT

fetches productions settings from DT of respective chip
instead of hardcoded values

Bug 200090097

Change-Id: I553a0f09f3084b442fd902dc298cc2d1cedd56fe
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/737796
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

4 years agoarm64: tegra: support pcie prod for T210
Vidya Sagar [Thu, 30 Apr 2015 12:14:51 +0000]
arm64: tegra: support pcie prod for T210

support production settings through DT for pcie
in T210 chip

Bug 200090097

Change-Id: I942cf0d17793952cfd335faa06b8e8679830fe74
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/737795
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoplatform: tegra: change scope of function
Prashant Gaikwad [Wed, 13 May 2015 10:41:01 +0000]
platform: tegra: change scope of function

tegra_bpmp_pasr_mask is not being used outside this file,
make it static. Include header where tegra21_pasr_init
is declared.

Fixed following coverity warnings:
- warning: symbol 'tegra_bpmp_pasr_mask' was not declared. Should it be static?
- warning: symbol 'tegra21_pasr_init' was not declared. Should it be static?

Bug 200067946

Change-Id: I222addeb787aacc98403b5969fec7ef488e81a2d
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/742150
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>

4 years agovideo: tegra: host: fix coverity issue
Shridhar Rasal [Fri, 8 May 2015 10:52:03 +0000]
video: tegra: host: fix coverity issue

Fix coverity issue "Dereference before null check"
coverity id : 30106

Bug 1416640

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

4 years agoclock: tegra21: Assign clock IDs for XUSB
Hoang Pham [Fri, 15 May 2015 19:56:20 +0000]
clock: tegra21: Assign clock IDs for XUSB

Assign Tegra21 clock IDs for XUSB_HOST_SRC, XUSB_FALCON_SRC,
XUSB_FS_SRC, XUSB_SS_SRC, XUSB_DEV_SRC, XUSB_SSP_SRC,
XUSB.EMC, XUSB_SS_DIV2, XUSB_HS_SRC

Bug 1608456

Change-Id: If40de67fd20910421d3e7e5005331b86d4e44521
Signed-off-by: Hoang Pham <hopham@nvidia.com>
Reviewed-on: http://git-master/r/742898
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

4 years agoarm64: tegra: support pcie prod for T132
Vidya Sagar [Thu, 30 Apr 2015 12:13:41 +0000]
arm64: tegra: support pcie prod for T132

support production settings through DT for pcie
in T132 chip

Bug 200090097

Change-Id: Ic25aa87cc2533ca274e89fd4adab81fcae98d813
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/737794
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Daniel Fu <danifu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

4 years agoarm: tegra: support pcie prod for T124
Vidya Sagar [Thu, 30 Apr 2015 12:11:38 +0000]
arm: tegra: support pcie prod for T124

support production settings through DT for pcie
in T124 chip

Bug 200090097

Change-Id: Ie02083b90f83eeaf0dcc8b0ad2ebd78576d3a538
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/737793
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Daniel Fu <danifu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

4 years agotegra: dc: remove extra dc unlock call in nvsd
Mitch Luban [Fri, 8 May 2015 00:30:07 +0000]
tegra: dc: remove extra dc unlock call in nvsd

Bug xxx

Change-Id: I22c12073367400433801c36a0f5b7da184670808
Signed-off-by: Mitch Luban <mluban@nvidia.com>
Reviewed-on: http://git-master/r/740365
Tested-by: Anshuman Kar <anshumank@nvidia.com>
Reviewed-by: Anshuman Kar <anshumank@nvidia.com>
GVS: Gerrit_Virtual_Submit

4 years agopower: tegra21: Hot reset GPU MC client after railgate
Seshendra Gadagottu [Tue, 5 May 2015 17:42:35 +0000]
power: tegra21: Hot reset GPU MC client after railgate

Execute complete GPU MC hot reset sequence as part of rail-ungate.

Bug 200096226

Change-Id: Ia9a92d17423eb03f1875844edfd222000668a122
Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/739402
(cherry picked from commit dea8eb9754170e2d8a3dde562c307920b02b7a69)
Reviewed-on: http://git-master/r/740733
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

4 years agoKconfig: fix TEGRA_USB_SHARED_PAD dependency
JC Kuo [Thu, 5 Mar 2015 08:05:10 +0000]
Kconfig: fix TEGRA_USB_SHARED_PAD dependency

tegra_usb_pad_ctrl driver supports NVIDIA Tegra210 and former
chips. For Tegra186 and later chips, there will be pinctrl-*
driver to take care of XUSB PADCTL and UPHY Lane/PLL programming.

bug 200084946

Change-Id: I5a289c75ec72419973bcd5967d856ad84cb03f9d
Signed-off-by: JC Kuo <jckuo@nvidia.com>
Reviewed-on: http://git-master/r/714162
Reviewed-by: WK Tsai <wtsai@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

4 years agoarm: tegra: hawkeye: extend delays in display power-on sequence
Daniel Solomon [Fri, 10 Apr 2015 21:52:39 +0000]
arm: tegra: hawkeye: extend delays in display power-on sequence

The VSN rail takes several ms to ramp up.
This, together with variable SW latency, causes the reset
pin to be enabled prematurely on some power-on attempts.

Bug 1630935

Change-Id: I8cec02dcac5ea59ffb42e419a4acfd3bc8a99650
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/730432
(cherry picked from commit a870b50d5b5781f18c44c51e62542b9b23f52c22)
Reviewed-on: http://git-master/r/741036
Reviewed-by: Mitch Luban <mluban@nvidia.com>

4 years agoarm: tegra: hawkeye: update panel timings
Daniel Solomon [Tue, 7 Apr 2015 20:57:01 +0000]
arm: tegra: hawkeye: update panel timings

The DSI block requires Htotal to be evenly
divisible across all data lanes in ganged mode.
The panel vendor provided an updated
set of panel timings that satisfies this
requirement.

Bug 1619492

Change-Id: I60ea7d739727eeca9baa5987388aaf6c24248842
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/728760
(cherry picked from commit 1cc89eea5f1d4be79d2c031c8d460525797c8a89)
Reviewed-on: http://git-master/r/741035
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>

4 years agoarm: tegra: eDP vs DP
Shu Zhong [Fri, 10 Apr 2015 20:01:59 +0000]
arm: tegra: eDP vs DP

Added new TEGRA_DC_EXT_EDP type so that hwcomposer
can distinguish between internal and external
dp panels. TEGRA_DC_EXT_EDP is set based on
the 'nvidia,is_ext_dp_panel' prop.

Bug 200041308

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

4 years agovideo: tegra: hdmi: Log scdc reconfiguration
Animesh Kishore [Tue, 14 Apr 2015 14:47:08 +0000]
video: tegra: hdmi: Log scdc reconfiguration

This patch adds a debug print when scdc reconfiguration is triggered.
Not expected to happen often, but this is to understand how often
it occurs.

Bug 200066983

Change-Id: Ia01a4fb0931998b9e7af83391fe45989b9dd8418
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Signed-off-by: Nitish <nrajguru@nvidia.com>
Reviewed-on: http://git-master/r/742162
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

4 years agovideo: tegra: fb: Fix vmode 420 bitmap
Animesh Kishore [Tue, 21 Apr 2015 13:37:33 +0000]
video: tegra: fb: Fix vmode 420 bitmap

FB_VMODE_420_ONLY is for userspace notification only.
For kernel use FB_VMODE_420 bit.

Bug 1626827

Change-Id: I3c4f4f3c8d483e9bbef24afa54b371abd9aad9ec
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Signed-off-by: Nitish <nrajguru@nvidia.com>
Reviewed-on: http://git-master/r/738455
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

4 years agovideo: tegra: hdmi: Fix aspect ratio
Animesh Kishore [Thu, 23 Apr 2015 10:47:49 +0000]
video: tegra: hdmi: Fix aspect ratio

Fixing aspect ratio selection logic during
VIC identification.

Bug 2000098530

Change-Id: Ied836a3ed6e6f5feecd1e4a929424af4bc303f54
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Signed-off-by: Nitish <nrajguru@nvidia.com>
Reviewed-on: http://git-master/r/742155
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>