4 years agopadctr: tegra210-pmc: add support to set IO pad voltage and dpd
Laxman Dewangan [Tue, 26 May 2015 14:12:03 +0000]
padctr: tegra210-pmc: add support to set IO pad voltage and dpd

Add support to configure voltage and IO-DPD mode from DT through
individual pad dt node.

This helps to set/unset the particular IO-pad instead of re-writing
untouched pads through ARRAY method. This also helps on better
managing the property override.

pmc {
::::
io-pad-defaults {
pex-clk1 {
nvidia,deep-power-down-enable;

gpio {
nvidia,io-pad-init-voltage = <IO_RAIL_VOLTAGE_1_8V>;
};
:::
};
};

bug 1648039

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

4 years agopadctrl: tegra210-pmc: clear DPD before setting platform specific
Laxman Dewangan [Sun, 24 May 2015 05:51:06 +0000]
padctrl: tegra210-pmc: clear DPD before setting platform specific

Clear DPD from PMC pad control driver before setting for platform
specific configuration.

Bug: 1648039, 200107223

Change-Id: I3dffe031926c68dbf80165351651feb93cf8b321
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Cyril Raju <craju@nvidia.com>
(cherry picked from commit 0c4909323a1f5b3d491f87f3ca88f7bb70d99499)
Reviewed-on: http://git-master/r/750843

4 years agopadctrl: tegra210-pmc: add DT binding doc for PAD power control
Laxman Dewangan [Thu, 21 May 2015 15:26:29 +0000]
padctrl: tegra210-pmc: add DT binding doc for PAD power control

Update DT binding document for Tegra 210 PAD power control
properties. Also add macro for dt-binding header which can
be use by the DTS file.

bug 1648039

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

4 years agopadctrl: tegra210-pmc: Add support for PAD DPD control
Laxman Dewangan [Thu, 21 May 2015 15:25:41 +0000]
padctrl: tegra210-pmc: Add support for PAD DPD control

Add support for PAD DPD control through padcontrol framework.
Implement the power enable/disable of the PAD group. It uses
the tegra pmc interface for pmc register access.

bug 1648039

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

4 years agoiio: adc: ads1015: cleanups on oneshot and continuous mode
Laxman Dewangan [Wed, 20 May 2015 14:15:39 +0000]
iio: adc: ads1015: cleanups on oneshot and continuous mode

Cleanup is done to have better readbility and reducing code size
and variable. Highlight of changes are:
- Renames variable for continuous config,
- remove redundant variables,
- rewrite big code on optimised way.

bug 200069173

Change-Id: I4ae51dfdf4cec089bdfc68d7d4ad5d5d296a105b
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
(cherry picked from commit 35ea290200e15611fc178d7c43cc60a38f9ad3f7)
Reviewed-on: http://git-master/r/750840

4 years agoarm64: tegra: pinmux: Amend GPIO K0 and K1 pinmux
Jay Bhukhanwala [Mon, 13 Apr 2015 23:04:48 +0000]
arm64: tegra: pinmux: Amend GPIO K0 and K1 pinmux

Cboot sets up the values for pinmuxes from DTB. Changing the values so that
they match the expectation on boot

Bug 1611427

Change-Id: I93b3e7796f2eb61c0a197181ec9d5ab6b0b31fdc
Signed-off-by: Jay Bhukhanwala <jbhukhanwala@nvidia.com>
Reviewed-on: http://git-master/r/731041
(cherry picked from commit 4245bad7f040588ec1dc579cfa15e8783bda5f52)
Reviewed-on: http://git-master/r/750958
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agoarm64: t210: Add fastboot-instructions in /chosen
Jay Bhukhanwala [Tue, 21 Apr 2015 00:30:26 +0000]
arm64: t210: Add fastboot-instructions in /chosen

Since fastboot instructions can differ for different platforms,
we need to retrieve them from DTB

Bug 200085098

Change-Id: I4632affc3766abd49311373196c85557cf8ae890
Signed-off-by: Jay Bhukhanwala <jbhukhanwala@nvidia.com>
Reviewed-on: http://git-master/r/733430
(cherry picked from commit 056d4f00d017db784991d053db406c84d4967c5b)
Reviewed-on: http://git-master/r/750959
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agovideo: tegra: host: remove unused debug categories
Sam Payne [Thu, 21 May 2015 21:32:24 +0000]
video: tegra: host: remove unused debug categories

debug catagories intr, pmu, map and gpu_dbg
are unused. this patch removes them.

bug 200097198

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

4 years agoiommu/arm-smmu: fix incorrect pte unmap
Krishna Reddy [Fri, 29 May 2015 18:30:26 +0000]
iommu/arm-smmu: fix incorrect pte unmap

When PTE is unmapped, the entire entry should be zero.
Bug 1610019

Change-Id: Ibf3d1889ea23b82e89942ec458473c93dd4d1501
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/748796

4 years agovideo: tegra: nvmap: Add ioctl for VPR allocation
Gaurav Sarode [Wed, 1 Oct 2014 00:39:07 +0000]
video: tegra: nvmap: Add ioctl for VPR allocation

This ioctl make sure that given memory is allocated before secure
playback starts.When size is passed as 0, memory is deallocated.

bug 1627029

Change-Id: I0bde6e7c601b3fe411d6195b777bf0e1c8186035
Signed-off-by: Gaurav Sarode <gsarode@nvidia.com>
Signed-off-by: Parag Mehendale <pmehendale@nvidia.com>
Reviewed-on: http://git-master/r/746592
(cherry picked from commit 960b465e685f9a249c268d4b24482ecfedefe185)
Reviewed-on: http://git-master/r/746701
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Tested-by: Krishna Reddy <vdumpa@nvidia.com>

4 years agoiommu/arm-smmu: flush tlb after map as well
Krishna Reddy [Fri, 29 May 2015 18:59:27 +0000]
iommu/arm-smmu: flush tlb after map as well

Flush tlb after map to workaround the invalid
pte entries seen from TLB on Linsim.

Bug 1610019

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

4 years agoarm64: mm: set memblock limit to 512MB
Krishna Reddy [Thu, 12 Feb 2015 18:25:05 +0000]
arm64: mm: set memblock limit to 512MB

This is to allow bigger contiguous chunk alloctions
succeed.
Bug 1602596

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

4 years agoarm: tegra: power: Fix utmipll power issue
Peter Yu [Sun, 27 Jul 2014 02:14:52 +0000]
arm: tegra: power: Fix utmipll power issue

Clear UTMIPLL_IDDQ_OVERRIDE_VALUE bit before power gate
xusb host mode partition to prevent UTMIPLL power
sequencer sticks in busy state and restore its original
value after power gate xusb host mode partition

Bug 1526691

Change-Id: Icd34d0bd83c7ee85d6267703241981a947c3a919
Signed-off-by: Peter Yu <pyu@nvidia.com>
Reviewed-on: http://git-master/r/449166
Reviewed-by: Jui Chang Kuo <jckuo@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

4 years agoplatform: tegra: emc: Move timer function defs
Alex Waterman [Tue, 26 May 2015 22:47:33 +0000]
platform: tegra: emc: Move timer function defs

Move the timer function defs to tegra_emc.h from tegra21_emc.h since
these function are visible to all chips even if they don't actually
do anything.

Change-Id: I91bc34ad9b10a0cadd1566d14f7fa866cd97652e
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/747447
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Alankrita G <alankritag@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

4 years agoRevert "platform: tegra: Fix sparse warning"
Alex Waterman [Tue, 26 May 2015 22:32:17 +0000]
Revert "platform: tegra: Fix sparse warning"

This reverts commit cdc959fe3748c9d6f09dbad96c91644fccaf060b.

The function tegra_check_disp_latency_allowance() will be used. The code
that will actually use this API is still being developed.

The change to the EMC timers code was also an incorrect fix. Including
chip specific header files in the emc_timers code is incorrect.

Change-Id: I018b7d7dc8e7565fd5b23ccf2d3fe0a22d5f5c0e
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/747436
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

4 years agoplatform: tegra: mcerr: Cleanup driver
Alex Waterman [Mon, 18 May 2015 20:56:08 +0000]
platform: tegra: mcerr: Cleanup driver

The mcerr driver has been suffering from legacy requirements that are
no longer necessary. This patc aims to clean up the driver and make it
more manageable. Major changes are:

  o  Modify the debugfs printing to be more simple. Instead of
     building the interrupt descriptions into the code directly
     they are now passed via a table.
  o  Remove explicit dual channel support. Niether t12x or t21x
     use this.
  o  Remove the 34 bit address define - it's always true at this
     point so compile that code unconditionally.
  o  Remove the int_count field from the DT - it is not useful
     any more.
  o  Allow the top and bottom halfs of the interrupt handler to
     be overwritten.

Change-Id: I8bee2a449ab97bb89745481e4fc9eb99ee5f4705
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/744000
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

4 years agoplatform: tegra: mc: Remove old and unused CONFIG
Alex Waterman [Mon, 18 May 2015 21:05:27 +0000]
platform: tegra: mc: Remove old and unused CONFIG

Remove CONFIG_TEGRA_ARBITRATION_EMEM_INTR - this is not used.
Instead whether this interrupt is recognized is passed in the
device tree via the int_mask field.

Change-Id: I8854f9c89be6f4427a00d721102a70b7bd274961
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/743999
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

4 years agoplatform: tegra: mc: Support N channel MC
Alex Waterman [Tue, 12 May 2015 22:51:45 +0000]
platform: tegra: mc: Support N channel MC

Support an aribtrary number of channels in the memory controller.

Change-Id: I155ad1b2b83a198bc070f8cc5d6798b62ec0114d
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/741916
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

4 years agoplatform: tegra: mc: Remove dead API
Alex Waterman [Mon, 11 May 2015 23:25:57 +0000]
platform: tegra: mc: Remove dead API

Remove an API to control a HW interface that no longer exists. Also delete
the code that uses this API in the display driver.

Change-Id: I51ef683e332c0438d08504d25aa24d489e5ec86c
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/741915
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Tested-by: Krishna Reddy <vdumpa@nvidia.com>

4 years agogpu: nvgpu: cyclestats mode E snapshots support
Leonid Moiseichuk [Fri, 8 May 2015 12:06:42 +0000]
gpu: nvgpu: cyclestats mode E snapshots support

That is a kernel supporting code for cyclestats mode E.
Cyclestats mode E implemented following Windows-design in user-space
and required the following operations to be implemented:
- attach a client for shared hardware buffer of device
- detach client from shared hardware buffer
- flush means copy of available data from hardware buffer to private
  client buffers according to perfmon IDs assigned for clients
- perfmon IDs management for user-space clients
- a NVGPU_GPU_FLAGS_SUPPORT_CYCLE_STATS_SNAPSHOT capability added

Bug 1573150

Change-Id: I9e09f0fbb2be5a95c47e6d80a2e23fa839b46f9a
Signed-off-by: Leonid Moiseichuk <lmoiseichuk@nvidia.com>
Reviewed-on: http://git-master/r/740653
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>

4 years agotegra: hv_comm: fix bugs in serial driver
Dennis Kou [Mon, 30 Mar 2015 19:23:25 +0000]
tegra: hv_comm: fix bugs in serial driver

Move IVC message processing into a thread context so that scheduling
can occur between IVC messages. However, we still process individual
IVC buffers in un-interruptible/atomic context to better conform
with the kernel UART driver model. Update documentation to explain
preemption boundaries are determined by IVC frame sizes.

Fix potential deadlock if during timer handling a IVC interrupt
happens to occur on the same core. In that scenario, deadlock
can occur if the IVC handler attempts to re-acquire the spin lock
already held by the timer handler.

Fix a hang in output that previously occurred when doing something
somewhat stressful, such as repeatedly running the 'dmesg' command.
There may have been other ways to reproduce the issue, but that was
the quickest technique.

Fix output corruption when the kernel tty buffer is full. The tty
layer relies on hard-coded buffer sizes which are entirely
insufficient for high speed serial links, so we need to do some
form of receiver-side flow control in addition to sender-side
flow control.

Remove special handling for supporting "x_char" and "magic sysrq"
function. These do not appear to be necessary for our use case, and
in the case of the "magic sysrq", was actually a nasty attack
surface.

Get rid of an intermediate copy between the IVC buffer and the
kernel serial buffer. Instead, use the direct pointer variants of
the IVC interface to directly copy between the shared memory
buffer and the kernel serial buffer.

Bug 1628676
Bug 1628926
Bug 1629272

Change-Id: Icf68915265b0624e9cdbfb537b8ff44aef32de6d
Signed-off-by: Dennis Kou <dkou@nvidia.com>
Reviewed-on: http://git-master/r/722869
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bahadir Balban <bbalban@nvidia.com>
Reviewed-by: Vladislav Buzov <vbuzov@nvidia.com>

4 years agoarm64: dts: new dts for T210 w/ DP rework
Shu Zhong [Tue, 26 May 2015 22:37:01 +0000]
arm64: dts: new dts for T210 w/ DP rework

Bug 200041308

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

4 years agoiommu/arm-smmu: handle context faults
Hiroshi Doyu [Thu, 28 May 2015 23:46:50 +0000]
iommu/arm-smmu: handle context faults

Global fault and Context faults are supported on a single IRQ line.
Find out the source of IRQ and invoke an appropriate IRQ handlers.
If it's not Global fault, invoke Context fault handler with appropriate
params set.

Bug 1638890

Change-Id: I6730edbb7bd89e1b52f8d7132ce88fb66fc538a3
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/748482

4 years agogpu: nvgpu: Use HAL for waiting for GR quiet
Terje Bergstrom [Thu, 21 May 2015 15:22:51 +0000]
gpu: nvgpu: Use HAL for waiting for GR quiet

Create a HAL for waiting for GR to become quiet. Use it forall cases
where we require GR to be quiet, but where it does not need to be
idle.

Bug 1640378

Change-Id: Ic0222d595a2d049e0fa8864b069ab94a97fac143
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/745639
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>

4 years agovideo: tegra: dp: add hotplug support
Shu Zhong [Sat, 18 Apr 2015 00:57:09 +0000]
video: tegra: dp: add hotplug support

Added hotplug support to dp driver for external
dp monitors.

Bug 200041308

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

4 years agoarm64: dts: add trim dts for smp configuration
Seth Eatinger [Tue, 26 May 2015 17:44:53 +0000]
arm64: dts: add trim dts for smp configuration

Change-Id: I01bba0a2967f30059ec519dd672430c33f908d52
Signed-off-by: Seth Eatinger <seatinger@nvidia.com>
Reviewed-on: http://git-master/r/747304
Tested-by: Matt Craighead <mcraighead@nvidia.com>
Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com>

4 years agopadctrl: core: add APIs for power enable/disable
Laxman Dewangan [Thu, 21 May 2015 14:46:35 +0000]
padctrl: core: add APIs for power enable/disable

Add pad control support to enable/disable power of the
pads. The HW driver need to implement the pad power
control.

bug 1648039

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

4 years agoplatform: tegra: pmc: add APIs for dpd enable/disable
Laxman Dewangan [Thu, 21 May 2015 14:37:23 +0000]
platform: tegra: pmc: add APIs for dpd enable/disable

Add public APIs from pmc driver to enable/disable the
IO_PAD DPD.

Pad control driver can call this APIs to implement public
interface for pad power up/down via padcontrol framework.

bug 1648039

Change-Id: I501432577c5e649d0cb1647ec21fc31277923539
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/745647
(cherry picked from commit 0104270bae78657f03e0050f45b6829fcca020c0)
Reviewed-on: http://git-master/r/746116

4 years agoARM: tegra: move mach/io-dpd.h to linux/platform/tegra
Laxman Dewangan [Thu, 21 May 2015 14:31:44 +0000]
ARM: tegra: move mach/io-dpd.h to linux/platform/tegra

Create new public header file for the io-dpd on linux/platform/tegra
to remove the dependency of inclusion of mach headers from client
file. Include this public header from existing mach/io_dpd.h so
client code can compile without any change.

bug 1648039

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

4 years agoiio: adc: ads1015: use single lock for all synchronization
Laxman Dewangan [Wed, 20 May 2015 12:39:23 +0000]
iio: adc: ads1015: use single lock for all synchronization

There should not be any operation on device once the device
is shutdown. To achieve this, the shutdown flag is set after
shutdown and check on start of channel read. The flag is
protected on different lock then iio_dev lock and there is
possibility to have shutdown during the channel read ie.e. adc
conversion. To avoid such case, use the same lock for channel
use and shutdown flag so that there will not be any race.

bug 200100664

Change-Id: I25bddfb030b13af5469191ca69c418f5de702fd4
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/744958
(cherry picked from commit 8140182723eb659815b07eabc53b9b4b10f29278)
Reviewed-on: http://git-master/r/746114

4 years agothermal: generic-adc: print message on probe success
Laxman Dewangan [Tue, 19 May 2015 17:31:14 +0000]
thermal: generic-adc: print message on probe success

Print message of thermal sensor registration with thermal
zone when it success.

bug 1645673

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

4 years agoiio: adc: initialise ADC channel for oneshot properly
Laxman Dewangan [Wed, 20 May 2015 09:15:11 +0000]
iio: adc: initialise ADC channel for oneshot properly

Initialise ADC channel for oneshot properly so that
oneshot config can get set correctly.

bug 200106640

Change-Id: I4a0269f1dab4db972ed7953547fb8c4ffbf2067b
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/744849
(cherry picked from commit 41bd32281c07d7451d24a7e1973159df45353047)
Reviewed-on: http://git-master/r/746112

4 years agoARM: tegra: hawkeye: provide adc sampling rate
Laxman Dewangan [Mon, 18 May 2015 05:46:40 +0000]
ARM: tegra: hawkeye: provide adc sampling rate

Provide ADC sampling rate for oneshot and continuous
sampling.

bug 200104628

Change-Id: I780bd8909c2f4c70e582239075fc00d96a71ab7c
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/743622
Tested-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
(cherry picked from commit eb99f0043c486a914c7a033a14f47c521ddbc873)
Reviewed-on: http://git-master/r/746111

4 years agoiio: adc: add conversion delay based on sampling rate
Laxman Dewangan [Mon, 18 May 2015 05:46:21 +0000]
iio: adc: add conversion delay based on sampling rate

Add conversion delay based on sampling rate selected for
conversion.

bug 200104628

Change-Id: Ife2f520cc3db00edebf29424de2398bc8ccd13db
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/743621
Tested-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
(cherry picked from commit 285eb2a39e262d40e7927f2c627b527dae60b508)
Reviewed-on: http://git-master/r/746110

4 years agoi2c: tegra: remove dead code
Shardar Shariff Md [Thu, 28 May 2015 05:11:58 +0000]
i2c: tegra: remove dead code

When I2C_M_IGNORE_NACK flag is set, NACK error
is not reported, removed the code that is not
going to hit under NACK error handling when
this flag is set.

Bug 200108401

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

4 years agotegra-alt: Add support for i2s4 loopback
Sumit Bhattacharya [Tue, 12 May 2015 07:02:34 +0000]
tegra-alt: Add support for i2s4 loopback

Add I2S4 node in hawkeye and loki DTS. This node will be used
for remote-submix loopback path.
Also remove unnecessary 'z Out' -> 'z Headphone' and 'z Mic' ->
'z In' paths to avoid error during bootup.

Bug 200104350

Change-Id: Ifb0fd1cd8d7541c18a72ba3dabfe73f1a6fdf5fe
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/741555
(cherry picked from commit f25c7d91e68b03641b7866b9f9f7fac5715f6d89)
Reviewed-on: http://git-master/r/749076
Reviewed-by: Dara Ramesh <dramesh@nvidia.com>

4 years agovideo: tegra: host: make nvhost_free_syncpt static
Deepak Nibade [Thu, 21 May 2015 13:57:32 +0000]
video: tegra: host: make nvhost_free_syncpt static

Make nvhost_free_syncpt() API as static and remove it from
global header file nvhost.h since this function should
no longer be called directly by any client

nvhost_free_syncpt() will be automatically called once
refcount of syncpoint drops to zero

Bug 1646883

Change-Id: I7511f80bec62f946966c2f0c50c78b1325c3248c
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/745619
GVS: Gerrit_Virtual_Submit
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>

4 years agomedia: tegra_camera: drop syncpoint refcount instead of direct free
Deepak Nibade [Thu, 21 May 2015 13:54:15 +0000]
media: tegra_camera: drop syncpoint refcount instead of direct free

Drop host1x syncpoint refcount with nvhost_syncpt_put_ref_ext()
instead of freeing it directly

Bug 1646883

Change-Id: I574aa597b89692c065620121d006270fcde6fd46
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/745618
GVS: Gerrit_Virtual_Submit
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>

4 years agogpu: nvgpu: drop syncpoint refcount instead of direct free
Deepak Nibade [Thu, 21 May 2015 12:01:41 +0000]
gpu: nvgpu: drop syncpoint refcount instead of direct free

Drop host1x syncpoint refcount with nvhost_syncpt_put_ref_ext()
instead of freeing it directly

Bug 1646883

Change-Id: Ib213e58031a9302e683f8d13ebb4e1f913206464
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/745617
GVS: Gerrit_Virtual_Submit
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>

4 years agovideo: tegra: host: get syncpoint refcounts in mark_used()
Deepak Nibade [Mon, 25 May 2015 11:11:56 +0000]
video: tegra: host: get syncpoint refcounts in mark_used()

Add "in_use" property to nvhost_syncpt which indicates if
syncpoint is currently in use by h/w (if supported)

Also, take syncpoint refcount when a syncpoint is first time
marked as "used" and drop the refcount when syncpoint is
marked as "unused"

Bug 1646883

Change-Id: Ib664a42a75e97ad4d8cf6b3b30c8f6122970e5ef
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/746884
GVS: Gerrit_Virtual_Submit
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>

4 years agovideo: tegra: host: get syncpoint refcounts for each job
Deepak Nibade [Thu, 21 May 2015 12:45:46 +0000]
video: tegra: host: get syncpoint refcounts for each job

Get refcount of all the syncpoints needed for nvhost_job
while submitting the job in nvhost_ioctl_channel_submit()

Drop these refcounts after job is complete and before
destroying the job i.e. in update_cdma_locked()

Bug 1646883

Change-Id: I802c2c55f09a7dc080cb18ca23aa0a5ebaf871b2
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/745616
GVS: Gerrit_Virtual_Submit
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>

4 years agovideo: tegra: host: drop syncpoint refcounts instead of direct free
Deepak Nibade [Thu, 21 May 2015 11:50:56 +0000]
video: tegra: host: drop syncpoint refcounts instead of direct free

Get syncpoint refcount in common allocation path nvhost_get_syncpt()
All the global syncpoint allocation APIs go through this API,
and hence each syncpoint request will automatically increment
syncpoint refcount

In nvhost_channelrelease() and in nvhost_channel_unmap_locked(),
drop syncpoint refcount with nvhost_syncpt_put_ref() instead of
freeing the syncpoint directly

Increment refcount for all already reserved syncpoints

Add current refcount value in syncpoint debug dump i.e. show_syncpts()

Also, drop TSEC syncpoint refcount with nvhost_syncpt_put_ref()

Bug 1646883

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

4 years agovideo: tegra: host: support syncpoint refcounting
Deepak Nibade [Wed, 20 May 2015 13:26:44 +0000]
video: tegra: host: support syncpoint refcounting

Support syncpoint refcounting by adding atomic variable
"ref" to struct nvhost_syncpt to track refcounts of
each syncpoint

Also, expose below APIs for refcount handling :

- int nvhost_syncpt_get_ref(struct nvhost_syncpt *sp, u32 id)
API to increment syncpoint refcount

- void nvhost_syncpt_put_ref(struct nvhost_syncpt *sp, u32 id)
API to decrement syncpoint refcount

- int nvhost_syncpt_read_ref(struct nvhost_syncpt *sp, u32 id)
API to read current refcount of syncpoint

- void nvhost_syncpt_put_ref_ext(u32 id)
Global API for clients to drop syncpoint refcount

Bug 1646883

Change-Id: I398a263050798356c2ed6e4b6081d0e9401b0469
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/745614
GVS: Gerrit_Virtual_Submit
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>

4 years agopcie: tegra: Read powergate partition-id from DT
Sumit Singh [Tue, 14 Apr 2015 05:58:52 +0000]
pcie: tegra: Read powergate partition-id from DT

Modify code in pcie-tegra.c, so that it reads
powergate partition-id from device tree.

Bug 200105664

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

4 years agoi2c: tegra: vi: Read pwrgate partition-id from DT
Sumit Singh [Tue, 14 Apr 2015 05:43:52 +0000]
i2c: tegra: vi: Read pwrgate partition-id from DT

Make modifications in i2c-tegra-vi.c, so that powergate
partition-id is read from device tree.

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

4 years agovideo: tegra: hdmi: Read powergate partition-id from DT
Sumit Singh [Tue, 14 Apr 2015 04:11:52 +0000]
video: tegra: hdmi: Read powergate partition-id from DT

Modify code in hdmi2.0.c, so that it reads
powergate partition-id from device tree.

Bug 200105664

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

4 years agovideo: tegra: dc: Read pwrgate partition-id from DT
Sumit Singh [Mon, 13 Apr 2015 13:45:25 +0000]
video: tegra: dc: Read pwrgate partition-id from DT

Make modifications in tegra/dc/dc.c, so that it reads
powergate partition-id from device tree.

Bug 200105664

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

4 years agoASoC: tegra-alt: Read pwrgate partition-id from DT
Sumit Singh [Mon, 13 Apr 2015 08:42:43 +0000]
ASoC: tegra-alt: Read pwrgate partition-id from DT

Make modifications in tegra210_i2s_alt.c, so that
powergate partition-id is read from device tree.

Bug 200105664

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

4 years agoata: ahci: Read powergate partition-id from DT
Sumit Singh [Sun, 12 Apr 2015 12:55:49 +0000]
ata: ahci: Read powergate partition-id from DT

Modify code in ahci-tegra.c file, so that it reads
powergate partition-id from device tree.

Bug 200105664

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

4 years agoplatform: tegra: Read XUSB powergate partition-id from DT
Sumit Singh [Sun, 12 Apr 2015 12:12:27 +0000]
platform: tegra: Read XUSB powergate partition-id from DT

Modify code in tegra_usb_pad_ctrl.c, so that it reads
powergate partition-id from device tree.

Bug 200105664

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

4 years agovideo: tegra: host: Read pwrgate partition-id from DT
Sumit Singh [Tue, 7 Apr 2015 08:29:32 +0000]
video: tegra: host: Read pwrgate partition-id from DT

Make modifications, so that powergate partition-id
is read from device tree.

Bug 200105664

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

4 years agoplatform: tegra: Read partition-id for APE from DT
Sumit Singh [Tue, 7 Apr 2015 06:16:53 +0000]
platform: tegra: Read partition-id for APE from DT

Make modifications, so that APE powergate partition-id
is read from device tree.

Bug 200105664

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

4 years agoalsa: hda: Read pwrgate partition-id from DT
Sumit Singh [Tue, 7 Apr 2015 04:09:00 +0000]
alsa: hda: Read pwrgate partition-id from DT

Make modifications in sound/pci/hda/hda_intel.c,
so that it reads powergate partition-id from device tree.

Bug 200105664

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

4 years agousb: gadget: xudc: Read pwrgate partition-id from DT
Sumit Singh [Mon, 6 Apr 2015 16:24:13 +0000]
usb: gadget: xudc: Read pwrgate partition-id from DT

Make modifications in drivers/platform/tegra/common.c,
so that it reads powergate partition-id from device tree.

Bug 200105664

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

4 years agoplatform: tegra: Read pwrgate partition-id from DT
Sumit Singh [Mon, 6 Apr 2015 15:42:05 +0000]
platform: tegra: Read pwrgate partition-id from DT

Make modifications in drivers/platform/tegra/common.c,
so that it reads powergate partition-id from device tree.

Bug 200105664

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

4 years agousb: xhci: Read powergate partition-id from DT
Sumit Singh [Wed, 13 May 2015 06:10:23 +0000]
usb: xhci: Read powergate partition-id from DT

Modify code in xhci-tegra.c, so that it reads
powergate partition-id from device tree.

Bug 200105664

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

4 years agoplatform: tegra: Add powergate supporting function
Sumit Singh [Fri, 3 Apr 2015 05:41:32 +0000]
platform: tegra: Add powergate supporting function

Add a function which provides powergate-id for a
powergate partition reading from device tree.

Bug 200105664

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

4 years agodrivers: gpu: nvgpu: make functions as static
Alankrita G [Mon, 25 May 2015 04:40:42 +0000]
drivers: gpu: nvgpu: make functions as static

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

Bug 200067946

Change-Id: I6eeb71f6c0d5fbfb99f6c43bbc4504fea1bc8d46
Signed-off-by: Alankrita G <alankritag@nvidia.com>
Reviewed-on: http://git-master/r/746583
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agoarm64: fix incorrect mask in pte_modify
Krishna Reddy [Fri, 12 Sep 2014 18:26:05 +0000]
arm64: fix incorrect mask in pte_modify

Bug 1552646
Bug 1641975

Change-Id: I2160d9ce2821036135f244b438045081e3767cf1
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/746228
GVS: Gerrit_Virtual_Submit
(cherry picked from commit 370202cf65694e0a1cde81301de4550ad69cf47a)
Reviewed-on: http://git-master/r/748329

4 years agovideo: tegra: disable NVMAP_CONVERT_IOVMM_TO_CARVEOUT
Krishna Reddy [Wed, 27 May 2015 21:10:54 +0000]
video: tegra: disable NVMAP_CONVERT_IOVMM_TO_CARVEOUT

Disable config option NVMAP_CONVERT_IOVMM_TO_CARVEOUT.

Bug 1628472

Change-Id: I7fcc7d4d703d084742fdf087d450b522f537b119
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/747950
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>

4 years agoARM64: dts: odin: modified common dt for dp
Alvin Park [Tue, 19 May 2015 05:39:36 +0000]
ARM64: dts: odin: modified common dt for dp

added status of dpaux1 and sor1 to odin common dt

Bug 200096512
Bug 200106509

Change-Id: I406dd282a752e94282d5e7d0a6d6faf721af9794
Signed-off-by: Alvin Park <apark@nvidia.com>
Reviewed-on: http://git-master/r/744154
(cherry picked from commit b93b217ebda2e25e5daba53e9d7c49f2ca8b5c91)
Reviewed-on: http://git-master/r/746092
Reviewed-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>

4 years agoarm64: dts: odin: set dp_hpd to DP SFIO
Alvin Park [Fri, 22 May 2015 08:13:07 +0000]
arm64: dts: odin: set dp_hpd to DP SFIO

Set dp_hpd to DP SFIO

- remove gpio setting to use as dp SFIO
- set tristate to ENABLE

Bug 200106509

Change-Id: Ia579c382249bb991ca535830d550bb2908e55994
Signed-off-by: Alvin Park <apark@nvidia.com>
Reviewed-on: http://git-master/r/746081
Reviewed-by: Mitch Luban <mluban@nvidia.com>

4 years agoiommu: arm-smmu: fix incorrect pte contiguous bit set
Krishna Reddy [Wed, 27 May 2015 21:06:09 +0000]
iommu: arm-smmu: fix incorrect pte contiguous bit set

Fix incorrect pte contiguous bit set in page tables.
Both IOVA and Phys address need to be aligned as necessary
when contiguous bit is set.

Bug 1628472
Bug 1638890

Change-Id: I4c187538f46968d5a3010f8b719c6cace1a43e46
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/747949
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>

4 years agogpu: nvgpu: Support >32bit addresses in simulation
Terje Bergstrom [Wed, 27 May 2015 17:29:13 +0000]
gpu: nvgpu: Support >32bit addresses in simulation

Change-Id: I96282b4e047ba8b5369dac039f0f51856c69235b
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/747935
Reviewed-by: Andy Sobczyk <asobczyk@nvidia.com>
Tested-by: Andy Sobczyk <asobczyk@nvidia.com>
GVS: Gerrit_Virtual_Submit

4 years agoRevert "arm64: configs: enable connector"
Hoang Pham [Thu, 28 May 2015 00:08:09 +0000]
Revert "arm64: configs: enable connector"

This reverts commit a32aa4ad88a0a56df84ed1e88dc031d3b9c7bb56.

Bug 200108302

Change-Id: I936acde3f396947780aaff9bdd234cfb60fb8820
Signed-off-by: Hoang Pham <hopham@nvidia.com>
Reviewed-on: http://git-master/r/748049
Reviewed-by: Sivaram Nair <sivaramn@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Tested-by: Juha Tukkinen <jtukkinen@nvidia.com>

4 years agogpu: nvgpu: restore 50ms unmap wait for fixed bufs
Konsta Holtta [Thu, 28 May 2015 10:06:42 +0000]
gpu: nvgpu: restore 50ms unmap wait for fixed bufs

Increase sync-unmap wait time from 5 ms to 50 ms.
6ccac11b4dd1a4eaf9c914fd567cdf7922184e28 decreased the wait tenfold, so
this puts it back.

Bug 1650025
Bug 200078514

Change-Id: I53a4ea115536ca2ff5d6aa701547c7477ac6e4ea
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/748224
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
GVS: Gerrit_Virtual_Submit

4 years agobcmdhd: fix bcmdhd_irq_number issue for pcie
Vidya Sagar [Tue, 19 May 2015 05:08:27 +0000]
bcmdhd: fix bcmdhd_irq_number issue for pcie

Fixes bcmdhd_irq_number issue for wifi over PCIe.
All initialization  of sysfs/nvcap variables should
present in sysfs files.

Bug 200105983

Change-Id: I9e6f8fd31194cea43288064126ea46c54e96274b
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/744728
Reviewed-by: Manikanta Maddireddy <mmaddireddy@nvidia.com>
Reviewed-by: Rakesh Goyal <rgoyal@nvidia.com>
Tested-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoarm64: dts: t18x: add support for linsim CL 34563539
Chetan Kumar [Mon, 20 Apr 2015 22:08:15 +0000]
arm64: dts: t18x: add support for linsim CL 34563539

Change-Id: I2bfb248b45895d4fab38a462e1ebb20ef5c22dfe
Signed-off-by: Chetan Kumar <chetankumarn@nvidia.com>
Signed-off-by: Krishna Sitaraman <ksitaraman@nvidia.com>
Reviewed-on: http://git-master/r/733310
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com>

4 years agoarm64: boot: dts: fix xusb prod settings for RX_DFE
Ajay Gupta [Wed, 20 May 2015 18:02:24 +0000]
arm64: boot: dts: fix xusb prod settings for RX_DFE

Recommended value of RX_DFE is 0xC0077F1F as per bug 1547690
Also added code to print prod settings.

Bug 1567693
Bug 1647326
Bug 1644248

Change-Id: I1d6602b35b03b27f01ed981dc9fe1808724763eb
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/745104
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

4 years agogpu: nvgpu: Fix overflow of alloc length
Alex Waterman [Tue, 26 May 2015 22:15:56 +0000]
gpu: nvgpu: Fix overflow of alloc length

Fix an issue where large ( > 4GB) allocations were not being computed
correctly. The two fields, pages and page_size, were both 32 bits so
when multiplied they easily overflowed. Simple fix is to cast them to
64 bits before multiplying them.

Change-Id: I63fa54679e485de5c3a99684cbeb72c6cdc65504
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/747429
Reviewed-by: Sami Kiminki <skiminki@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

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

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

Bug 200077334
Bug 1639610

Change-Id: I8a389317571060ba4716663c03ab75896aa13612
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/744719
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agoRevert "video: tegra: dp: add hotplug support"
Bharat Nihalani [Tue, 26 May 2015 05:19:22 +0000]
Revert "video: tegra: dp: add hotplug support"

This reverts commit 9102164802d145814716e036c7d38c8c7f7c9f5d
since it is suspected to have caused a regression in
graphics_submit.

Bug 1648877

Change-Id: I549b7b6e45baf07ce8d9936e3e1de267400faf86
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/747051
GVS: Gerrit_Virtual_Submit

4 years agoRevert "video: tegra: dc: ext: skip frames"
Parag Mehendale [Fri, 17 Apr 2015 17:36:30 +0000]
Revert "video: tegra: dc: ext: skip frames"

Bug 200082454
Bug 200094864
Bug 1624443
Bug 1628941

This reverts commit 3439bcf259cfefe8bc1d4ddd9eaeded914ebf80d.

Change-Id: I664f3499014ea3f4c1a91f0dde4c02f63077d13f
Signed-off-by: Parag Mehendale <pmehendale@nvidia.com>
Reviewed-on: http://git-master/r/732779
(cherry picked from commit ebedd431134b12e0d7b2bcf329d0b4c7b00b2406)
Reviewed-on: http://git-master/r/746683
Reviewed-by: Tuomas Kulve <tkulve@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agoplatform: tegra: Fix sparse warning
Alankrita G [Wed, 20 May 2015 10:39:41 +0000]
platform: tegra: Fix sparse warning

-Fixed the following sparse warnings by making the local function as static:
     warning: symbol 'tegra_emc_timer_training_start' was not declared.
     warning: symbol 'tegra_emc_timer_training_stop' was not declared.

- Removed unused function tegra_check_disp_latency_allowance
     warning: symbol 'tegra_check_disp_latency_allowance' was not declared.

Bug 200067946

Change-Id: I506b091c8b4ed41b70dd9ac5ebc9dbd214fb7e84
Signed-off-by: Alankrita G <alankritag@nvidia.com>
Reviewed-on: http://git-master/r/744909
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agomedia: platform: tegra: auto: switch i2c rw method
Charlie Huang [Tue, 14 Apr 2015 00:15:45 +0000]
media: platform: tegra: auto: switch i2c rw method

change the i2c r/w from regmap to i2c_master_send/i2c_master_rcv,
this can improve the i2c performance on i2c write, because regmap
split one write operation into two packets:
address packet + data packet
there will be a delay between two packets and reduce the performance.

bug 1609280

Change-Id: Ic3e38c260373cb009ad6cac6ceb142cb82691325
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/731424
(cherry picked from commit a3b52b8a0a3d502765fa9535d715b133a2b14c1e)
Reviewed-on: http://git-master/r/744093
Reviewed-by: Arun Shamanna Lakshmi <aruns@nvidia.com>
Tested-by: Arun Shamanna Lakshmi <aruns@nvidia.com>

4 years agomedia: platform: tegra: auto: set device mode
Songhee Baek [Tue, 19 May 2015 16:42:16 +0000]
media: platform: tegra: auto: set device mode

Setting the device mode as (S_IRUGO | S_IWUGO) is
not only for root but also for user to access the
isc-dev devices.

Bug 200082090
Bug 1641226

Change-Id: I1a8962759498e1ab9f38bdcb0ae88017e20130ed
Signed-off-by: Songhee Baek <sbaek@nvidia.com>
Reviewed-on: http://git-master/r/744427
(cherry picked from commit eb06ba83e14896af98e67a7ba6178454b5f3f97c)
Reviewed-on: http://git-master/r/745950
Reviewed-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-by: Arun Shamanna Lakshmi <aruns@nvidia.com>
Tested-by: Arun Shamanna Lakshmi <aruns@nvidia.com>

4 years agogpu: nvgpu: Infinite wait for fixed alloc unmap
Terje Bergstrom [Mon, 18 May 2015 23:12:05 +0000]
gpu: nvgpu: Infinite wait for fixed alloc unmap

In non-silicon wait infinitely for all jobs to complete before
unmapping a fixed allocation.

Bug 200078514

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

4 years agogpu: nvgpu: sysfs queries
Anders Kugler [Sat, 16 May 2015 02:02:40 +0000]
gpu: nvgpu: sysfs queries

Export the gpu's safe fmax_at_vmin frequency so it can be
queried from userspace (e.g. PHS).

Bug 1566108

Change-Id: I47326588ebd443f189a6051edbf95b35b35636d1
Signed-off-by: Anders Kugler <akugler@nvidia.com>
Reviewed-on: http://git-master/r/743501
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

4 years agogpu: nvgpu: use 64K hole for PMU VM
Vijayakumar [Fri, 8 May 2015 12:23:36 +0000]
gpu: nvgpu: use 64K hole for PMU VM

With 4K hole T186 PMU does not boot in NS
T186 has 64 bit DMA Base. We subtract IMEM
offset from GPUVA for PMU boot DMABASE setup
It becomes above 4GB because of that
So we will use a hole which is bigger than
IMEM size.

Change-Id: Ib87c39881299a4f5b14e28415195e00800250c46
Signed-off-by: Vijayakumar <vsubbu@nvidia.com>
Reviewed-on: http://git-master/r/740656
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>

4 years agogpu: nvgpu: Fix compbits mapping
Sami Kiminki [Wed, 20 May 2015 15:38:10 +0000]
gpu: nvgpu: Fix compbits mapping

Commit e99aa2485f8992eabe3556f3ebcb57bdc8ad91ff broke compbits
mapping. So, let's fix it.

Bug 200077571

Change-Id: I02dc150fbcb4cd59660f510adde9f029290efdfb
Signed-off-by: Sami Kiminki <skiminki@nvidia.com>
Reviewed-on: http://git-master/r/745001
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>

4 years agousb: xhci: tegra: reduce parse error msg to debug
Krishna Yarlagadda [Wed, 20 May 2015 12:39:53 +0000]
usb: xhci: tegra: reduce parse error msg to debug

utmi_pad subnode in dt is only required only when over current detection
is enabled. In other cases we default no oc and fixed regulators.

utmi_pad not found should be a debug info and not error

Bug 200094228

Change-Id: Ieec53fad997be5cf2b688caca46be5a4f3b07cc1
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/744959
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Tested-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agousb: xhci: Add quirk to enable U1/U2
Krishna Yarlagadda [Thu, 8 Jan 2015 10:29:42 +0000]
usb: xhci: Add quirk to enable U1/U2

Add a quirk to enable U1/U2 to a known list
of bad devices.

Bug 200036929

Change-Id: I73982e37e995ab93e40bf344cf5adac2b5cb79fc
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/670632
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agoarm64: dts: t132: Add DT support for powergating
Sumit Singh [Wed, 20 May 2015 08:29:24 +0000]
arm64: dts: t132: Add DT support for powergating

Add nodes in the device-tree to add DT support
for T132 power-gating.

Bug 200105664

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

4 years agoudc/otg: Add DT support for T132 power-domains
Sumit Singh [Wed, 20 May 2015 06:17:08 +0000]
udc/otg: Add DT support for T132 power-domains

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

Bug 200070810

Change-Id: Ic9b7cdeb8a1748f9089c0bcef3212127e54c361f
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
Reviewed-on: http://git-master/r/744736
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agousb: ehci: tegra: Add DT support for T132 power-domains
Sumit Singh [Wed, 20 May 2015 06:14:02 +0000]
usb: ehci: tegra: Add DT support for T132 power-domains

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

Bug 200070810

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

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

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

Bug 200070810

Change-Id: I51866d618fcf4aa7e4b821db4304d9a68809b92d
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
Reviewed-on: http://git-master/r/744731
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agovideo: tegra: host: DT support for host1x domains
Sumit Singh [Wed, 20 May 2015 06:02:18 +0000]
video: tegra: host: DT support for host1x domains

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

Bug 200070810

Change-Id: I493c471f74408a1c3ef736412de0807cecc3145a
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
Reviewed-on: http://git-master/r/744730
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agoplatform: tegra: Add DT support for T132 power-domains
Sumit Singh [Wed, 20 May 2015 05:51:23 +0000]
platform: tegra: Add DT support for T132 power-domains

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

Bug 200070810

Change-Id: Ic213d8fed3ac4c9fbfab5ca725c864a39ae98e69
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
Reviewed-on: http://git-master/r/744724
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agoarm64: t132: dt: Add DT nodes for power-domains
Sumit Singh [Wed, 20 May 2015 04:21:05 +0000]
arm64: t132: dt: Add DT nodes for power-domains

To add DT support for tegra power-domains for t132,
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: I069ef1c990741cd267fd512c6803d763d5d52bec
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
Reviewed-on: http://git-master/r/744720
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agodt-bindings: t132: Add powergate-ids
Sumit Singh [Wed, 20 May 2015 06:51:48 +0000]
dt-bindings: t132: Add powergate-ids

Create a header file that contains the powergate-ids
of different powergate partitions.

Bug 200105664

Change-Id: Ie46701c017c999068a814ee2f49e7224cf5d82a5
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
Reviewed-on: http://git-master/r/744751
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agoarm: dts: tegra: Add DT support for powergating for T124
Sumit Singh [Tue, 19 May 2015 10:26:41 +0000]
arm: dts: tegra: Add DT support for powergating for T124

Add nodes in the device-tree to add DT support
for T124 power-gating.

Bug 200105664

Change-Id: I54715c30f0146b2569e3d417f855670a733ded6d
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
Reviewed-on: http://git-master/r/744305
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agodt-bindings: t124: Add powergate-ids
Sumit Singh [Mon, 18 May 2015 05:45:49 +0000]
dt-bindings: t124: Add powergate-ids

Create a header file that contains the powergate-ids
of different powergate partitions.

Bug 200105664

Change-Id: I944eed7fa24b69ad88716176974bb3f71e8bfeeb
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
Reviewed-on: http://git-master/r/743619
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>

4 years agoarm64: tegra21: DT support for powergating
Sumit Singh [Thu, 2 Apr 2015 12:29:05 +0000]
arm64: tegra21: DT support for powergating

Add nodes in the device-tree to support DT support
for power-gating.

Bug 200105664

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

4 years agodt-bindings: t210: Add powergate-ids
Sumit Singh [Fri, 3 Apr 2015 05:38:44 +0000]
dt-bindings: t210: Add powergate-ids

Create a header file that contains the powergate-ids
of different powergate partitions.

Bug 200105664

Change-Id: I658fba51f0aee640311572d4d2683356c06065db
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
Reviewed-on: http://git-master/r/727338
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agostaging: iio: adc: increase delay before reading config REG
Venkat Reddy Talla [Fri, 8 May 2015 03:56:14 +0000]
staging: iio: adc: increase delay before reading config REG

Increase delay before reading ads1015 config register to know
single-shot conversion is completed or not.

Bug 1643119

Change-Id: Ie7e1a1acbc7b4911f8a1eed7811732c7229013d0
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/740449
(cherry picked from commit 0894c73a224d30b0ac01f18aab471634922ff15f)
Reviewed-on: http://git-master/r/745013
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoplatform: tegra: nvadsp: Add __init to probe func
Ajay Nandakumar [Wed, 8 Apr 2015 11:08:15 +0000]
platform: tegra: nvadsp: Add __init to probe func

Adding __init to functions called from nvadsp_func. This will make
sure that all the functions just called in probe are under one
section.

Change-Id: If063747255ca51f7d68a46e83a8fe3f71d64b287
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Reviewed-on: http://git-master/r/728981
(cherry picked from commit f173bd158bff40c36c87302a02d0c89d94377a29)
Reviewed-on: http://git-master/r/744246
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agoplatform: nvadsp: use lock after initialize check
Ajay Nandakumar [Wed, 15 Apr 2015 15:24:38 +0000]
platform: nvadsp: use lock after initialize check

In nvadsp_os_load, mutex lock must be acquired after driver
initialization check is made. If tried to acquire before the check, it
would lead to a NULL pointer exception.

Bug 1543792

Change-Id: I4af97a9bc7991726aaa8e321efb6c623030cd112
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Reviewed-on: http://git-master/r/731834
(cherry picked from commit 6c3bff4ef42e055d5c3c3d993053e59b4addb639)
Reviewed-on: http://git-master/r/744247
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

4 years agoplatform: tegra: nvadsp: debug nodes for apps
Ajay Nandakumar [Thu, 11 Dec 2014 08:54:31 +0000]
platform: tegra: nvadsp: debug nodes for apps

Create debug nodes for each app through which various attributes for
the app can be exposed.

Bug 200064076

Change-Id: Ie594168084f14b79b673b13f33a24a3e19869b3f
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Reviewed-on: http://git-master/r/721438
(cherry picked from commit 0d734a50644d5b113639e112cd5c409955bffb55)
Reviewed-on: http://git-master/r/662569
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Tested-by: Sachin Nikam <snikam@nvidia.com>

4 years agoplatform: tegra: nvadsp: Check handle in app init
Ajay Nandakumar [Tue, 28 Apr 2015 11:55:49 +0000]
platform: tegra: nvadsp: Check handle in app init

The NULL pointer check in nvadsp_app_init was removed as a result of
using the single app framework integration. Adding this check back
without which an exception would occur.

Bug 200069519

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

4 years agousb: xhci: tegra: init cpu boost early
Krishna Yarlagadda [Mon, 18 May 2015 18:28:09 +0000]
usb: xhci: tegra: init cpu boost early

Initialize pm qos request before interrupts
are enabled.

Bug 200091191

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