5 years agogpu: nvgpu: protect channel update callback access
Konsta Holtta [Fri, 31 Oct 2014 08:47:00 +0000]
gpu: nvgpu: protect channel update callback access

Protect callback races from spurious gk20a channel updates by testing if
the channel update callback still exists when in the scheduled work
(instead of only when scheduling the work to the queue), and by
canceling the work when the channel is freed. Protect access to the
callback and its data by accessing them together inside
spinlock-protected regions.

Bug 200051384

Change-Id: Ib4e1571c35f662195e1dec1e362df32ddc099eb3
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/592026
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agoARM: ARM64: boot: Remove MTK gps support
Shobek Sam Attupurath [Wed, 22 Oct 2014 10:22:01 +0000]
ARM: ARM64: boot: Remove MTK gps support

MTK is no longer used, remove it

Bug 200049136

Change-Id: Iebdd6c5de9a5055623b1594e1df2b1a55839ece1
Signed-off-by: Shobek Sam Attupurath <sattupurath@nvidia.com>
Reviewed-on: http://git-master/r/561943
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agoARM: ARM64: configs: Disable MTK GPS
Shobek Sam Attupurath [Thu, 30 Oct 2014 06:17:42 +0000]
ARM: ARM64: configs: Disable MTK GPS

Remove MTK gps support as it is no longer used.

Bug 200049136

Change-Id: I9b241bcc7153555c5c304c6dddd44880b3794a14
Signed-off-by: Shobek Sam Attupurath <sattupurath@nvidia.com>
Reviewed-on: http://git-master/r/561941
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Manikanta Maddireddy <mmaddireddy@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agogpio: tegra: Enable Werror flag
Sumit Singh [Fri, 31 Oct 2014 11:11:53 +0000]
gpio: tegra: Enable Werror flag

Enable Werror flags for all the files directly
under drivers/gpio directory.

Bug 1566945

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

5 years agopinctrl: tegra: Enable Werror
Sumit Singh [Fri, 31 Oct 2014 12:35:40 +0000]
pinctrl: tegra: Enable Werror

Enable Werror for all the files directly under
drivers/pinctrl directory.

Bug 1566945

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

5 years agoleds: Enable Werror flag
Sumit Singh [Fri, 31 Oct 2014 11:32:25 +0000]
leds: Enable Werror flag

Enable Werror flag for all the files directly under
drivers/leds directory.

Bug 1566945

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

5 years agogpu: nvgpu: cde: list for contexts, defer deletion
Konsta Holtta [Thu, 23 Oct 2014 11:10:57 +0000]
gpu: nvgpu: cde: list for contexts, defer deletion

Instead of current preallocated array plus dynamically allocated
temporary contexts, use a linked list in LRU fashion, always storing
free contexts at the beginning of the list. Initialize the preallocated
contexts to the list and store dynamically allocated temporaries there
too for quick reuse as needed, with a delayed scheduled work for
deleting temporaries when the high load has diminished.

Bug 200040211

Change-Id: Ibc75a0150109ec9c44b2eeb74607450990584b18
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/562856
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agoarm: dts: p2360: max pixclk prop to dts
Min-wuk Lee [Wed, 15 Oct 2014 05:34:48 +0000]
arm: dts: p2360: max pixclk prop to dts

max pixclk is board specific, hence move
nvidia,out-max-pixclk to dts file, rather than
having panel dtsi.

Bug 1559909
Bug 1371533

Change-Id: I46fab1ee0a25bc68057d7725e5eff8c50e5e4fd5
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/557175
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM64: fix build issue when supporting 64K pages
Sri Krishna chowdary [Mon, 27 Oct 2014 10:08:20 +0000]
ARM64: fix build issue when supporting 64K pages

CONFIG_COMPAT is disabled when CONFI_ARM64_64K_PAGES is enabled.
Hence, the following compilation error

arch/arm64/kernel/built-in.o: In function `el0_sync':
.../arch/arm64/kernel/entry.S:358: undefined reference to `el0_sync_tramp'

Fix it by removing CONFIG_COMPAT protection for el0_sync_tramp and
ret_from_exception so that the branch prediction optimization
stays for both 4K and 64K pages.

Bug 1526131

Change-Id: I1531809df536d6d93b6732b9dc1c28893eb1200e
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/454023
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoplatform: tegra: mc: fix sparse warning
Sri Krishna chowdary [Thu, 30 Oct 2014 07:02:24 +0000]
platform: tegra: mc: fix sparse warning

make mc0 static.

Bug 200032218

Change-Id: Icb4bbff3f6272a4b4e74ec752fdcdfe10d11f211
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/591573
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoserial: tegra: fix sparse warnings
Shardar Shariff Md [Sat, 1 Nov 2014 10:28:33 +0000]
serial: tegra: fix sparse warnings

fix sparse warnings by declaring local
structure variables as static

Bug 200032218

Change-Id: I3f0f2699f636284650c8f5a1dc24a067cf33c790
Signed-off-by: Shardar Shariff Md <smohammed@nvidia.com>
Reviewed-on: http://git-master/r/592313
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agommc: host: Fix NULL instead of integer
Amit Sharma [Thu, 30 Oct 2014 05:47:43 +0000]
mmc: host: Fix NULL instead of integer

Fixed sparse warning by using proper NULL instead of '0'. Function
'of_get_property' was expecting the NULL instead of '0'.

Bug 200032218

Change-Id: Ia19f3f2dc1dbb5cd631d35fd5d50e05319351654
Signed-off-by: Amit Sharma <amisharma@nvidia.com>
Reviewed-on: http://git-master/r/591532
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agodrivers: cpuidle: Fix NULL instead of integer
Amit Sharma [Thu, 30 Oct 2014 05:38:08 +0000]
drivers: cpuidle: Fix NULL instead of integer

Fixed sparse warning by using proper NULL instead of '0'. Function
'debugfs_create_dir' was expecting the NULL instead of '0'.

Bug 200032218

Change-Id: I41b67b4c8b7d62bae9d0a76252fa83ec73eb431b
Signed-off-by: Amit Sharma <amisharma@nvidia.com>
Reviewed-on: http://git-master/r/591526
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agopci: host: Fix NULL instead of integer
Amit Sharma [Thu, 30 Oct 2014 05:50:44 +0000]
pci: host: Fix NULL instead of integer

Fixed sparse warning by using proper NULL instead of '0'.

Bug 200032218

Change-Id: I81448f27c4d733ae89f024d369e94f9fc411be27
Signed-off-by: Amit Sharma <amisharma@nvidia.com>
Reviewed-on: http://git-master/r/591534
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoplatform: tegra: Fix NULL instead of integer
Amit Sharma [Thu, 30 Oct 2014 05:33:22 +0000]
platform: tegra: Fix NULL instead of integer

Fixed sparse warning by using proper NULL instead of '0'.

Bug 200032218

Change-Id: I7c24ed73c0f5ad6783aa9200f73b77024e96830f
Signed-off-by: Amit Sharma <amisharma@nvidia.com>
Reviewed-on: http://git-master/r/591525
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agomedia: tegra: nvavp: fix AVP status after LP0
Prashant Gaikwad [Sat, 25 Oct 2014 02:36:01 +0000]
media: tegra: nvavp: fix AVP status after LP0

Halt AVP after SC7 exit. Runtime PM will take care of
enabling it whenever required.

Bug 200043848

Change-Id: I657479db74e1f0809357226ce343b6fe1f23c0f0
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/590364
(cherry picked from commit 6c77d5675d871d1fdcb7254b05fc4ff80ad40f70)
Reviewed-on: http://git-master/r/591647
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Soumenkumar Dey <sdey@nvidia.com>
Reviewed-by: Somu Sundaram <somasundarams@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoarm: tegra: vcm30t124: update sdmmc dt properties
Seshagiri.H [Tue, 21 Oct 2014 11:44:19 +0000]
arm: tegra: vcm30t124: update sdmmc dt properties

- update tap and trim values for sdmmc as per
golden register configurations
- disable auto cal for all sdmmc instance

bug 200035711

Change-Id: I6000cacf4a853457f9aa4ea84548fcc57798963a
Signed-off-by: Seshagiri.H <sholi@nvidia.com>
Reviewed-on: http://git-master/r/559877
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>

5 years agousb: gadget: u_serial: fix NULL pointer access
Henry Lin [Tue, 21 Oct 2014 09:43:50 +0000]
usb: gadget: u_serial: fix NULL pointer access

The work item flush_to_ldisc() queued by tty_flip_buffer_push() may
cause callbacks in gs_tty_ops get called after tty device is closed.
We should check tty->driver_data in callbacks in gs_tty_ops to avoid
NULL pointer access.

Bug 200047066

Change-Id: Ie14c25cd63cb4c1d62c33e697fe6aeeeb1c3d7e2
Signed-off-by: Henry Lin <henryl@nvidia.com>
Reviewed-on: http://git-master/r/562890
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hui Fu <hfu@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

5 years agovideo: tegra: nvmap: remove dead code
Sri Krishna chowdary [Sat, 1 Nov 2014 17:17:29 +0000]
video: tegra: nvmap: remove dead code

Remove the functions which are no longer used.

Change-Id: Iccf91c1ea17e2e1f17b2a088360f250ab8bef818
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/592335
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Matt Craighead <mcraighead@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agogpu: nvgpu: Use generic clk_get_rate
Terje Bergstrom [Fri, 31 Oct 2014 09:10:51 +0000]
gpu: nvgpu: Use generic clk_get_rate

Instead of gk20a_clk_get_rate() use the generic clk_get_rate().

Bug 1567274

Change-Id: If955790408d2f4a5d917ea3993573ac3f254c7d3
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/592094
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>

5 years agoASoC: tegra-alt: Add power management for T124
Arun Shamanna Lakshmi [Wed, 29 Oct 2014 00:29:29 +0000]
ASoC: tegra-alt: Add power management for T124

1. Set idle_bias_off=1 for I2S, AMX, ADX, SPDIF, DAM, AFC
   for power management reasons. runtime_resume/suspend APIs
   are called when playback/record starts/stops accordingly.

2. Add suspend/resume APIs for I2S, AMX, ADX, SPDIF, DAM,
   AFC and XBAR for LP0 power cycle.

Bug 200046472

Change-Id: If241844859835d7cb17d34fded6ea5c96e69fca1
Signed-off-by: Arun Shamanna Lakshmi <aruns@nvidia.com>
Reviewed-on: http://git-master/r/591003
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Simon Je <sje@nvidia.com>
Tested-by: Simon Je <sje@nvidia.com>

5 years agogpu: nvgpu: disable cg in mmu error handler
Vijayakumar [Sat, 18 Oct 2014 13:52:51 +0000]
gpu: nvgpu: disable cg in mmu error handler

With CG enabled sometimes fifo could not be idled
during firmware load.

Bug 200042729

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

5 years agogpu: kernel support for suspending/resuming SMs
sujeet baranwal [Tue, 30 Sep 2014 17:54:57 +0000]
gpu: kernel support for suspending/resuming SMs

Kernel support for allowing a GPU debugger to suspend and resume
SMs. Invocation of "suspend" on a given channel will suspend all
SMs if the channel is resident, else remove the channel form the
runlist. Similarly, "resume" will either resume all SMs if the
channel was resident, or re-enable the channel in the runlist.

Change-Id: I3b4ae21dc1b91c1059c828ec6db8125f8a0ce194
Signed-off-by: sujeet baranwal <sbaranwal@nvidia.com>
Signed-off-by: Mayank Kaushik <mkaushik@nvidia.com>
Reviewed-on: http://git-master/r/552115
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agogpu: nvgpu: gm20b: halify tpc lookup
Mayank Kaushik [Thu, 18 Sep 2014 01:11:45 +0000]
gpu: nvgpu: gm20b: halify tpc lookup

Since the number of TPCs is different between GM20B and GK20a,
the function to look up the number of TPCs needs to be halified.

Change-Id: I19dab9a7105814f86c08c92283a0bb70abb6aa00
Signed-off-by: Mayank Kaushik <mkaushik@nvidia.com>
Reviewed-on: http://git-master/r/500064
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agousb: host: Fix const qualifier warning
Amit Sharma [Thu, 30 Oct 2014 07:16:17 +0000]
usb: host: Fix const qualifier warning

Fixed the following const qualifier sparse warning:
- assignment discards 'const' qualifier from pointer target type

variable 'static char* firmware_file' was violating the const-correctness
rules, since 'const char*' value was assigned to 'char*'. Therefore fix
this warning as:
'static char* firmware_file' --> 'static const char* firmware_file'.

Bug 200032218

Change-Id: I03b0983a325e54d309da150bed3a6a4d1dcb693d
Signed-off-by: Amit Sharma <amisharma@nvidia.com>

5 years agogpu: nvgpu: gk20a: regops: resident channel check
Mayank Kaushik [Fri, 26 Sep 2014 20:51:55 +0000]
gpu: nvgpu: gk20a: regops: resident channel check

Fix the code that checks if the channel passed in for
regops is resident by also accounting for the TSG id,
if the channel is part of a TSG.

Change-Id: I449344e2887a4de4d55122f4aae5d3d4efabf725
Signed-off-by: Mayank Kaushik <mkaushik@nvidia.com>

5 years agogpu: nvgpu: create a hal function for smpc war
Mayank Kaushik [Fri, 26 Sep 2014 00:21:24 +0000]
gpu: nvgpu: create a hal function for smpc war

Create a HAL function for applying the SMPC workaround.The workaround
is only needed on gk20a, and not on gm20b.

Change-Id: I9edc741df32ab7d1dad38ecc56f238828128bfef
Signed-off-by: Mayank Kaushik <mkaushik@nvidia.com>
Reviewed-on: http://git-master/r/539187
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agomedia: platform: tegra: Fix format specifier warning
Amit Sharma [Wed, 29 Oct 2014 11:47:39 +0000]
media: platform: tegra: Fix format specifier warning

Fixed the format specifier warning by changing the "%d" --> "%lu". In function
dev_err(): "%d" format specifier was expecting an 'int' value whereas
argument was a return value of 'size_of'. Therefore, change "%d" --> "%lu"
and typecast 'size_of' with 'unsigned long' to remove the warning and
make the code portable.

Bug 200032218

Change-Id: Ic3b3ed6e6a6cb4382db9d9970675878399aa3892
Signed-off-by: Amit Sharma <amisharma@nvidia.com>
Reviewed-on: http://git-master/r/591218
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agovideo: tegra: nvmap: fix sparse warning
Sri Krishna chowdary [Thu, 30 Oct 2014 05:26:30 +0000]
video: tegra: nvmap: fix sparse warning

limit the scope of local variables/functions by using
static keyword.

Bug 200032218

Change-Id: Id3165670e02c330a143349bff221378e053ea3d1
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/591553
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agommc: tegra: Fix nvquirk setting in t210 platform
R Raj Kumar [Tue, 7 Oct 2014 09:52:29 +0000]
mmc: tegra: Fix nvquirk setting in t210 platform

Added pin control flag in nvquirk.

Change-Id: I276f0b48ccf76a19ea3ded29231d014d95699a1b
Signed-off-by: R Raj Kumar <rrajk@nvidia.com>

5 years agogpu: nvgpu: T18x support
Kenneth Adams [Wed, 29 Oct 2014 06:28:27 +0000]
gpu: nvgpu: T18x support

nvgpu framework and build for T18x

Bug 1567274

Change-Id: I77835302a1110573008869d1106eface512bb9b1
Signed-off-by: Ken Adams <kadams@nvidia.com>
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agogpu: nvgpu: Per-chip interrupt processing
Terje Bergstrom [Mon, 27 Oct 2014 09:03:00 +0000]
gpu: nvgpu: Per-chip interrupt processing

Move accesses to MC registers under HAL so that they can be
reimplemented per chip.

Do chip detection and HAL initialization only once.

Bug 1567274

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

5 years agovideo: host: tegra: avoid linear mapping to iova space
Sri Krishna chowdary [Sat, 25 Oct 2014 05:35:32 +0000]
video: host: tegra: avoid linear mapping to iova space

Avoid dma_linear_map() call as virtualization can cause iova address
space to be split among the guest OSes.

So, map the carveout to iova space dynamically and pass the iova start
and size as parameters to the ucode.

Bug 200022149

Change-Id: Ie89d650c8b5959fc79fd11391b95c15ea97df9ee
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/563040
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sharath Sarangpur <ssarangpur@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agogpu: nvgpu: Changes to support LS sig
Supriya [Mon, 27 Oct 2014 12:01:04 +0000]
gpu: nvgpu: Changes to support LS sig

Support added to send PMU and FECS signatures
to ACR ucode

Bug 200046413

Change-Id: Ie1babb640be20a697ad4d6dd18bd11161edb263c
Signed-off-by: Vijayakumar <vsubbu@nvidia.com>
Signed-off-by: Supriya <ssharatkumar@nvidia.com>
Signed-off-by: Vijayakumar <vsubbu@nvidia.com>

5 years agoadma: tegra210: fix kernel panic
Vinayak Pane [Wed, 29 Oct 2014 02:39:50 +0000]
adma: tegra210: fix kernel panic

Check if tdc->isr_handler() is not NULL.

[  193.208760] Bad mode in Synchronous Abort handler detected, code 0x86000006
[  193.215745] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G   W3.10.33-g47949ee #15
[  193.223562] task: ffffffc0011b4870 ti: ffffffc0011a8000 task.ti:ffffffc0011a8000
[  193.231032] PC is at 0x0
[  193.233572] LR is at tegra_adma_isr+0x8c/0xf0
[  193.237918] pc : [<0000000000000000>] lr : [<ffffffc00045c7cc>]pstate: 800001c5

Change-Id: I4385f3f08da6eb8721518168f05f997b2263ec44
Signed-off-by: Vinayak Pane <vpane@nvidia.com>

5 years agodma: tegra210: fix sparse warning
Dara Ramesh [Fri, 31 Oct 2014 03:29:11 +0000]
dma: tegra210: fix sparse warning

Fix Sparse warnings for unused variable 'ret'

Bug 200032218

Change-Id: If6dc1bbccb9cb9242b8643d34b37a1ca45bbe2e8
Signed-off-by: Dara Ramesh <dramesh@nvidia.com>
Reviewed-on: http://git-master/r/591933
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoiommu/tegra: smmu: fix sparse warning
Sri Krishna chowdary [Thu, 30 Oct 2014 05:59:55 +0000]
iommu/tegra: smmu: fix sparse warning

limit the scope of local variables/functions by using
static keyword. Also, clean up dead code.

Bug 200032218

Change-Id: Id7e3b86ef35cfd282a8862f569bc527e455174df
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/591555
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoARM64: dt: tegra: Extend GPU IOVA space to 16 GB
Sri Krishna chowdary [Thu, 30 Oct 2014 05:04:29 +0000]
ARM64: dt: tegra: Extend GPU IOVA space to 16 GB

Set GPU IOVA address space upper limit to 16GB to
avoid iova allocation failure for some use cases.

Bug 1483482

Change-Id: I5608586bc5366718694da82eef0d92edff6d8b26
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/591520
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vandana Salve <vsalve@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoplatform: tegra: iommu: fix sparse warning
Sri Krishna chowdary [Thu, 30 Oct 2014 06:56:48 +0000]
platform: tegra: iommu: fix sparse warning

limit the scope of local variables/functions by using
static keyword.

Bug 200032218

Change-Id: I701e710f342c966a7d138c88e2aea367c6bfd068
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/591571
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agoARM: tegra: pm: remove save_se_context()
Sri Krishna chowdary [Thu, 30 Oct 2014 05:45:11 +0000]
ARM: tegra: pm: remove save_se_context()

Since, T14x is deprecated, save_se_context() is dead code already.

Removing this function helps us limit context of tegra_smmu_suspend()
and tegra_smmu_resume()

Bug 200032218

Change-Id: I66e7072f2ccaf121664ba591ace449455248dc0e
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/591554
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Shravani Dingari <shravanid@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

5 years agomisc: tegra-baseband: Fix NULL instead of integer
Amit Sharma [Thu, 30 Oct 2014 05:52:56 +0000]
misc: tegra-baseband: Fix NULL instead of integer

Fixed sparse warning by using proper NULL instead of '0'.

Bug 200032218

Change-Id: I5aaaf9e9a28e1c3bab4cc669ab855f687eb2fe5b
Signed-off-by: Amit Sharma <amisharma@nvidia.com>
Reviewed-on: http://git-master/r/591535
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Neil Patel <neilp@nvidia.com>

5 years agousb: host: Remove redefined preprocessor macros
Amit Sharma [Thu, 30 Oct 2014 06:20:08 +0000]
usb: host: Remove redefined preprocessor macros

Removed the follwoing redefined preprocessor macro:
- USB2_OTG_PD_CHRP_FORCE_POWERUP
- USB2_OTG_PD_DISC_FORCE_POWERUP

Bug 200032218

Change-Id: Ic3e0165088648f943a984bc1d9813f0f40571cb8
Signed-off-by: Amit Sharma <amisharma@nvidia.com>
Reviewed-on: http://git-master/r/591548
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agosound: soc: tegra-alt: Fix NULL instead of integer
Amit Sharma [Thu, 30 Oct 2014 05:42:13 +0000]
sound: soc: tegra-alt: Fix NULL instead of integer

Fixed sparse warning by using proper NULL instead of '0'.

Bug 200032218

Change-Id: I0985e42626888be48b061538372dd6cfec221a50
Signed-off-by: Amit Sharma <amisharma@nvidia.com>
Reviewed-on: http://git-master/r/591530
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-by: Viraj Karandikar <vkarandikar@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agotegra: adsp: Make data and funcs static to file
Sachin Nikam [Wed, 29 Oct 2014 13:11:11 +0000]
tegra: adsp: Make data and funcs static to file

To Fix Sparse warnings make data and funcs static to file
which are not used outside.

Bug 200032218

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

5 years agommc: tegra: run dll calib in device resume
R Raj Kumar [Thu, 30 Oct 2014 13:35:51 +0000]
mmc: tegra: run dll calib in device resume

Run dll calibration during device resume also
instead of restoring these values in resume
if the eMMC device is running in HS400 mode.

Bug 200048968

Change-Id: I2a2adbcc0062eed09a0716cc253bc00297e41f98
Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/591737
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

5 years agopower: bq2419x:enable suspend on battery charging
Venkat Reddy Talla [Mon, 27 Oct 2014 09:37:41 +0000]
power: bq2419x:enable suspend on battery charging

enable suspend during battery charging with high current
charging cable to enter device into LP0 through debugfs
interface.

Bug 1569877

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

5 years agotty: serial: Fix NULL instead of integer
Amit Sharma [Thu, 30 Oct 2014 05:55:52 +0000]
tty: serial: Fix NULL instead of integer

Fixed sparse warning by using proper NULL instead of '0'.

Bug 200032218

Change-Id: Ie8e2f322213da3f8b54940ed46b24e80ab20ebaf
Signed-off-by: Amit Sharma <amisharma@nvidia.com>
Reviewed-on: http://git-master/r/591537
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoextcon: Correct last_state_in_suspend updating issue
Jinyoung Park [Thu, 30 Oct 2014 08:50:49 +0000]
extcon: Correct last_state_in_suspend updating issue

The last_state_in_suspend value should be used to set the state of
extcon only when uevent_in_suspend is disabled.

Bug 200045359
Bug 200046713

Change-Id: Ia51acb2328ef58494b1617ab03a1c2f11459e80c
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/591601
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoarm64: dts: tegra: make vdd-hdmi-dp boot on
Vineel Kumar Reddy Kovvuri [Wed, 29 Oct 2014 13:14:02 +0000]
arm64: dts: tegra: make vdd-hdmi-dp boot on

This is required to enable HDMI seamless functionality

Bug 1551093

Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Change-Id: I98cf6aec6f8dc7b0b6e176068c2489cda41f54f4
Reviewed-on: http://git-master/r/591238
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoARM64: tegra: t210: direction for ov5693 in DT
David Wang [Tue, 21 Oct 2014 23:34:57 +0000]
ARM64: tegra: t210: direction for ov5693 in DT

Changing the direction of the ov5693 sensors in device
tree for 6 camera support.

bug 1545729

Change-Id: Ifb76872c17296cda090114ed69b23197425fcdae
Signed-off-by: David Wang <davidw@nvidia.com>
Reviewed-on: http://git-master/r/562985
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Frank Chen <frankc@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agomfd: Enable -Werror for drivers/mfd/*
Sumit Singh [Wed, 22 Oct 2014 05:51:57 +0000]
mfd: Enable -Werror for drivers/mfd/*

Enabling werror to prevent any compile time warnings for
all the files directly under drivers/mfd.

Bug 1566945

Change-Id: Ib9dc34ffbce343dd864aea2bf9d14a69cff97fe8
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
Reviewed-on: http://git-master/r/561859
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Tested-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoARM64: tegra: loki: add T210 loki E02 top level dts file
Mallikarjun Kasoju [Wed, 29 Oct 2014 12:03:43 +0000]
ARM64: tegra: loki: add T210 loki E02 top level dts file

Bug 200049144

Change-Id: I0aedf5a7ddb6426623523943b470a09055850164
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-on: http://git-master/r/591223
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoARM: tegra210: print bit state of CLAMP_INPUT_WHEN_TRISATETD
Laxman Dewangan [Fri, 31 Oct 2014 08:16:08 +0000]
ARM: tegra210: print bit state of CLAMP_INPUT_WHEN_TRISATETD

Print this bits setting of CLAMP_INPUT_WHEN_TRISTATED as this helps on
debugging the pinmux configuration.

Change-Id: I15d37c6c12f835aaa628d388cef1b7ec0c7a209d
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/592011

5 years agoARM: tegra: Keep SD2 rail to always ON on idle/suspend
Laxman Dewangan [Fri, 31 Oct 2014 06:18:15 +0000]
ARM: tegra: Keep SD2 rail to always ON on idle/suspend

SD2 rail feeds the supply to the LDO0 which is used for modem hsic
rail and it is require to not disable rail on suspend state also.

Setting SD2 to be always ON and FPS NONE to make it always ON.

bug 200044506

Change-Id: I3a772345ed717517569b5fe4c43a64349fdfcfab
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/591971
Reviewed-by: BH Hsieh <bhsieh@nvidia.com>
Tested-by: BH Hsieh <bhsieh@nvidia.com>

5 years agoregulator: core: produce warning on regulator_get() if client is in dt
Laxman Dewangan [Thu, 30 Oct 2014 09:00:29 +0000]
regulator: core: produce warning on regulator_get() if client is in dt

If regulator is in DT and client is also on DT but ask regulator with
supply-consumer map list then generate warning.

Do not generate warning if regulator is non-dt and client is in DT/Non-DT.

bug 200050873

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

5 years agoARM: tegra: add dtsfile name on all top level DTS file
Laxman Dewangan [Wed, 29 Oct 2014 11:41:56 +0000]
ARM: tegra: add dtsfile name on all top level DTS file

Every top level DTS file should have the file name property
as nvidia,dtsfilename to ease the OTA and debugging.

Adding this property on DTS file which do not have this property.

Change-Id: Ib6f10a2b7fbb706f8fc5601ace72bb48cc250d9f
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/591213

5 years agoof: annotate __reserved_mem_check_root with __init
Bo Yan [Wed, 29 Oct 2014 17:20:37 +0000]
of: annotate __reserved_mem_check_root with __init

__reserved_mem_check_root is called from several functions annotated
with __init, so __reserved_mem_check_root shall also be annotated with
__init.

Change-Id: Ic043532742dbaa2db941d61a5277bfdd1c6db774
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/591320
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoarm64: time: remove unused variable
Bo Yan [Wed, 29 Oct 2014 18:15:14 +0000]
arm64: time: remove unused variable

Unused variable triggers warning, which may be turned to error by
makefile setting.

Change-Id: I44499d89dc015ea187dbc63d57562b2947399951
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/591337
Reviewed-by: Peng Du <pdu@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agoplatform: tegra: flowctrl: fix Sparse warnings
Bo Yan [Wed, 29 Oct 2014 16:24:34 +0000]
platform: tegra: flowctrl: fix Sparse warnings

The Sparse analysis shows some variables in flowctrl.c are defined
without declaration. These variables should be made static since
they are not used outside of this module.

bug 200032218

Change-Id: I870e5251f2c7e2c92a0c12b04600b1316be62b81
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/591301
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com>

5 years agofiq_debugger: fix type mismatch in argument
Bo Yan [Wed, 29 Oct 2014 17:31:19 +0000]
fiq_debugger: fix type mismatch in argument

The second argument of function pointer "fiq" in fiq_glue_handler
is declared as  "void *", but function, fiq_debugger_fiq, which is
assigned to that function pointer later on, has a different function
signature. Fix the function pointer declaration to make them
consistent.

Change-Id: I246fa1ef9a609c810ab562e45814803c85185968
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/591322
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

5 years agoarm64: fix compiler warning in traps.c
Bo Yan [Wed, 29 Oct 2014 18:17:01 +0000]
arm64: fix compiler warning in traps.c

The local variable serr_status is only used when built for Denver,
so define it only for Denver.

Change-Id: I012403690b23f85e403f5164451d74eb2f290a91
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/591338
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Peng Du <pdu@nvidia.com>
Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agoedp: sysedp: support capping GPU by mW
Matt Longnecker [Tue, 28 Oct 2014 21:51:43 +0000]
edp: sysedp: support capping GPU by mW

Extend sysedp_dynamic_capping to support GPU power caps (in mW) as
an optional alternative to GPU frequency caps (in kHz)

Capping in mW has a notable limitation relative to capping in
kHz. When capping in kHz, the CPU vs GPU priority decision depends on
the relation between current GPU frequency and the
cpu-priority-cap-on-gpu-frequency. That logic is absent when capping
GPU in terms of mW.

Bug 1558347

Change-Id: I8e77ae48d35618d9dac3122f7493d790e4af7d78
Signed-off-by: Matt Longnecker <mlongnecker@nvidia.com>
Reviewed-on: http://git-master/r/590938
Reviewed-by: Timo Alho <talho@nvidia.com>
Reviewed-by: Steve Rogers <srogers@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>

5 years agoARM: Tegra: gpu-edp supports power capping
Matt Longnecker [Mon, 27 Oct 2014 23:09:21 +0000]
ARM: Tegra: gpu-edp supports power capping

Using pm_qos, extend gpu-edp.c to respect a dynamically varying GPU
power cap.

Bug 1558347

Change-Id: I746a676255f006bfa4f6635afcbdd3fa176198a2
Signed-off-by: Matt Longnecker <mlongnecker@nvidia.com>
Reviewed-on: http://git-master/r/590545
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Timo Alho <talho@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>

5 years agoARM: Tegra: cleanup resources in gpu-edp
Matt Longnecker [Wed, 29 Oct 2014 20:27:00 +0000]
ARM: Tegra: cleanup resources in gpu-edp

Correct the logic for handling resource cleanup in tegra_gpu_edp_probe.

Bug 1571853

Change-Id: I559f0ed84c5160dd78cb0d9199bad75c8f26eb92
Signed-off-by: Matt Longnecker <mlongnecker@nvidia.com>
Reviewed-on: http://git-master/r/591376
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Reviewed-by: Timo Alho <talho@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>

5 years agomisc: tegra_ppm: support resource deallocation
Matt Longnecker [Wed, 29 Oct 2014 19:51:01 +0000]
misc: tegra_ppm: support resource deallocation

Provide mechanisms for releasing the resouces originating with calls
to tegra_ppm_create or fv_relation_create.

Bug 1571853

Change-Id: I253d9dcad46cf0806e79e16e4fec1f5566afbb3a
Signed-off-by: Matt Longnecker <mlongnecker@nvidia.com>
Reviewed-on: http://git-master/r/591375
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Reviewed-by: Timo Alho <talho@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>

5 years agoRevert "gpu: nvgpu: GR and LTC HAL to use const structs"
Sam Payne [Fri, 31 Oct 2014 21:27:33 +0000]
Revert "gpu: nvgpu: GR and LTC HAL to use const structs"

This reverts commit 41b82e97164138f45fbdaef6ab6939d82ca9419e.

Change-Id: Iabd01fcb124e0d22cd9be62151a6552cbb27fc94
Signed-off-by: Sam Payne <spayne@nvidia.com>
Reviewed-on: http://git-master/r/592221
Tested-by: Hoang Pham <hopham@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agoRevert "arm64: dts: loki: display system device tree"
Min-wuk Lee [Thu, 30 Oct 2014 13:30:56 +0000]
Revert "arm64: dts: loki: display system device tree"

This reverts commit 49534358d14666d056fbfc07cb6f58bca4b2576d
because it fails to turn ON display after LP0 resume on Loki
T124 board.

Bug 1572047

Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Change-Id: I1ec06da0eaf1ff9c60e899d3b6daa845b7ec3bad
Reviewed-on: http://git-master/r/591734
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoRevert "arm: dts: loki: display system device tree"
Min-wuk Lee [Thu, 30 Oct 2014 13:30:30 +0000]
Revert "arm: dts: loki: display system device tree"

This reverts commit 2b32dca769322714f36c6cfb21f3d6e1f8dd98a5
because it fails to turn ON display after LP0 resume on Loki
T124 board.

Bug 1572047

Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Change-Id: Ia65c4ef4216559d822afd8ec8b51c28653398cd5
Reviewed-on: http://git-master/r/591733
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoRevert "arm: tegra: clean up loki disp board file"
Min-wuk Lee [Thu, 30 Oct 2014 13:30:07 +0000]
Revert "arm: tegra: clean up loki disp board file"

This reverts commit 3fbe685375eb2956b62a843c59227f27326981f3
because it fails to turn ON display after LP0 resume on Loki
T124 board.

Bug 1572047

Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Change-Id: I9289f13a8721e9747336e2c1efccbdfdd027f05b
Reviewed-on: http://git-master/r/591732
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoRevert "arm: tegra: loki: remove board-loki-panel.c"
Min-wuk Lee [Thu, 30 Oct 2014 13:29:34 +0000]
Revert "arm: tegra: loki: remove board-loki-panel.c"

This reverts commit 6259b49108a7fa070d772f39c62d1987b8a938e8
because it fails to turn ON display after LP0 resume on Loki
T124 board.

Bug 1572047

Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Change-Id: I114ceada33eb0470886f20c2e0b80751a3dd63c7
Reviewed-on: http://git-master/r/591731
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoRevert "arm: dts: loki: panel reset pin initial value"
Min-wuk Lee [Thu, 30 Oct 2014 13:22:16 +0000]
Revert "arm: dts: loki: panel reset pin initial value"

This reverts commit 2cf4a1a21b782db6206b8b4891d6b07cfcb65291
because it fails to turn ON display after LP0 resume on Loki
T124 board.

Bug 1572047

Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Change-Id: I274dc5757f1fe2f48ce8f441e5fc769a952578f1
Reviewed-on: http://git-master/r/591728
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agousb: gadget: android: Don't send uevent while suspending
Jinyoung Park [Wed, 22 Oct 2014 12:17:58 +0000]
usb: gadget: android: Don't send uevent while suspending

Don't send an uevent for USB state while suspending.
And then it will be handled after resume.
The system could not suspend due to a wakelock by epoll
if there is epoll waiting in the system.

Bug 200045359

Change-Id: Ia1a2177eddd309bf4092f3f8e850ae58ff14398b
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/562002
GVS: Gerrit_Virtual_Submit
Reviewed-by: Rakesh Babu Bodla <rbodla@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agotegra: dc: Add checks for Tegra_dc_set_vblank ioctl
Anshuman Nath Kar [Thu, 9 Oct 2014 16:13:43 +0000]
tegra: dc: Add checks for Tegra_dc_set_vblank ioctl

Change-Id: I7518bb6632bb622f1dfdf86ea08ee5e1c985546e
Signed-off-by: Anshuman Nath Kar <anshumank@nvidia.com>
Reviewed-on: http://git-master/r/555079
(cherry picked from commit 6e16eded41fafdf869a8d0b65469e5aa39111842)
Reviewed-on: http://git-master/r/590863
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoarm64: mm: Correcting the procedure defintion
Ishan Mittal [Thu, 16 Oct 2014 06:24:17 +0000]
arm64: mm: Correcting the procedure defintion

Procedure definition for __cortexa53_cpu_setup had
an erroneous END_PROC statement.
Fixing it with the right one.

Change-Id: Ia4f76085358ca276e6987b01eae96d7d34ddcb59
Signed-off-by: Ishan Mittal <imittal@nvidia.com>
Reviewed-on: http://git-master/r/558269
Reviewed-by: Antti Miettinen <amiettinen@nvidia.com>
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoT210: DTS: Deleting the deprecated DTBs
Jay Bhukhanwala [Wed, 29 Oct 2014 20:50:17 +0000]
T210: DTS: Deleting the deprecated DTBs

Bug 1566222

Change-Id: I91cc6d5dbf638bf5f668b0e784200bcba9199fc3
Signed-off-by: Jay Bhukhanwala <jbhukhanwala@nvidia.com>
Reviewed-on: http://git-master/r/591373
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: David Dastous St Hilaire <ddastoussthi@nvidia.com>
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agoarm64: Add AArch32 vDSO support
Alex Van Brunt [Fri, 7 Mar 2014 21:49:47 +0000]
arm64: Add AArch32 vDSO support

Support vDSO in AArch32 mode for clock_gettime and gettimeofday.

bug 1466303

Change-Id: Ib83f8a4126aaadf906de59c73ddb88edf8a75809
Signed-off-by: Alex Van Brunt <avanbrunt@nvidia.com>
Reviewed-on: http://git-master/r/590904

5 years agoarm64: remove exuma defconfig
Bo Yan [Wed, 29 Oct 2014 17:22:21 +0000]
arm64: remove exuma defconfig

This is an obsolete defconfig, remove it

Change-Id: I076f81ef5d8434d9618b6d77207eeefadc71ffed
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/591321
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com>
Reviewed-by: Peng Du <pdu@nvidia.com>

5 years agoarm: tegra: mcerr: Several minor fixes
Alex Waterman [Tue, 28 Oct 2014 21:55:48 +0000]
arm: tegra: mcerr: Several minor fixes

This patch ads several minor fixes. THey are:

 o Remove unnecessary pr_info() from probe()
 o Add a \n to a pr_err() that was missing a new line
 o Shuffle order of init and irq registering. Now the IRQ is
   registered after the iterrupt count is parsed from the DT.

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

5 years agoarm64: tegra21: mc: Add generalized CO err
Alex Waterman [Wed, 29 Oct 2014 17:55:04 +0000]
arm64: tegra21: mc: Add generalized CO err

Add a generalized carveout access violation error. This can happen
when a direct access to the carveout is made and the SMMU is either
disabled or doesn't fault during the translation.

Bug 1553823
Bug 200046514

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

5 years agoarm: tegra: mcerr: Add misc errors
Alex Waterman [Thu, 23 Oct 2014 00:14:21 +0000]
arm: tegra: mcerr: Add misc errors

Add a miscellaneous error to the mcerr list.

Bug 1569344

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

5 years agoarm: tegra: mcerr: Fix GSC entry
Alex Waterman [Thu, 23 Oct 2014 00:05:05 +0000]
arm: tegra: mcerr: Fix GSC entry

The status registers from which the GSC status was incorrect. Originally it
was reading from the general status error register; instead it should have
been reading from the GSC specific status registers.

Bug 1569344

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

5 years agousb: gadget: tegra: Fix nvudc_ep_dequeue
Venkat Tammineed [Tue, 8 Jul 2014 21:58:43 +0000]
usb: gadget: tegra: Fix nvudc_ep_dequeue

Currently if the dequeued request is at
the head of the list, we are pointing the
new dequeue pointer to the current value
only. Fixing it.

Bug 1528567

Change-Id: I93a18b0a62000b3c2383ab934a9f5b6b57c8fd20
Signed-off-by: Venkat Tammineedi <vtammineedi@nvidia.com>
Reviewed-on: http://git-master/r/435895
Reviewed-on: http://git-master/r/591404
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hui Fu <hfu@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

5 years agoPTM : tegra21 : Driver enhancements
Megha Dey [Fri, 24 Oct 2014 21:15:47 +0000]
PTM : tegra21 : Driver enhancements

    1. Obtain traces after a warm reset
    2. transfer the traces to user space
    3. Return Stack mode

Bug 1512961

Change-Id: I250501be3a7cdefb18e076d6352530f4c003d6bf
Signed-off-by: Megha Dey <mdey@nvidia.com>
Reviewed-on: http://git-master/r/562968
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>

5 years agocpuidle: tegra210: Update idle state residencies
Sai Gurrappadi [Fri, 24 Oct 2014 21:08:20 +0000]
cpuidle: tegra210: Update idle state residencies

Updated state residency and latency values. These numbers were collected
at 0.95V and will have to be re-updated to reflect changes in the DVFS
table. The slow cluster's residency for now just mirror the fast
cluster's values.

Bug 1568810

Change-Id: Id1cc0912e559c7a927b71483cc0169920254cf79
Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/590897
Reviewed-by: Bo Yan <byan@nvidia.com>
Tested-by: Bo Yan <byan@nvidia.com>

5 years agoRevert "t210: ers: update lp3 dtb"
Seema Khowala [Wed, 29 Oct 2014 21:35:45 +0000]
Revert "t210: ers: update lp3 dtb"

This reverts commit 047d3cdf2c321e9a16427f50a270b8f26c8eb481.

Causing SC7 to fail on A00 ERS

Change-Id: I276557eb97493c9e4f254b3d8d3088c3d6703b5a
Signed-off-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-on: http://git-master/r/591399
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agoARM64: tegra: configs: Enable DEBUG_ATOMIC_SLEEP
Allen Yu [Mon, 27 Oct 2014 12:28:52 +0000]
ARM64: tegra: configs: Enable DEBUG_ATOMIC_SLEEP

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

5 years agosysedp: DT: changes loki display consumer name
Sam Payne [Tue, 14 Oct 2014 20:24:27 +0000]
sysedp: DT: changes loki display consumer name

changes loki consumer name to be compatible with
display driver

Change-Id: I70e14161d0906b284220d9e94903fe9c1532edf2
Signed-off-by: Sam Payne <spayne@nvidia.com>
Reviewed-on: http://git-master/r/556885
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Tested-by: Jon Mayo <jmayo@nvidia.com>

5 years agodc: sysedp: registers and updates display state
Sam Payne [Wed, 1 Oct 2014 21:56:56 +0000]
dc: sysedp: registers and updates display state

Change-Id: I9efe4cd8edfdb3c9c6f157f1845bb885f94f8769
Signed-off-by: Sam Payne <spayne@nvidia.com>
Reviewed-on: http://git-master/r/552705
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Tested-by: Jon Mayo <jmayo@nvidia.com>

5 years agothermal: fix for when THERMAL not configured
Diwakar Tundlam [Tue, 28 Oct 2014 22:45:22 +0000]
thermal: fix for when THERMAL not configured

When CONFIG_THERMAL is not setup (for whatever reason), driver code
that implicitly depends on it fails to build. Fixed that.

This allows us to turn off the global THERMAL config in Kconfig or
platform specific defconfig when needed for making special builds.

Change-Id: Ie4e58c7763622756e3dd770b93d967b2f15b1f00
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/590963
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agoarm64: dts: tegra210: set vdd_lcd_bl_en boot on
Yunfan Zhang [Mon, 29 Sep 2014 09:54:10 +0000]
arm64: dts: tegra210: set vdd_lcd_bl_en boot on

set vdd_lcd_bl_en on during boot to ensure seamless display

Bug 1550642

Change-Id: I6a5dcbbe764904cfe7729dfc3e6477e9ed0eba66
Signed-off-by: Yunfan Zhang <yunfanz@nvidia.com>
Reviewed-on: http://git-master/r/542606
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>
Tested-by: Raymond Poudrier <rapoudrier@nvidia.com>

5 years agoarm64: dts: loki: set PV1 and PV2 as output
Yunfan Zhang [Mon, 29 Sep 2014 09:49:53 +0000]
arm64: dts: loki: set PV1 and PV2 as output

gpio PV1(LCD_BL_EN) and PV2(LCD_RST) should work at output mode

Bug 1550642

Change-Id: I051955bc0661fdc3b6a788c3fb1863d07ea8c056
Signed-off-by: Yunfan Zhang <yunfanz@nvidia.com>
Reviewed-on: http://git-master/r/542605
Reviewed-by: Ankita Garg <ankitag@nvidia.com>
Tested-by: Ankita Garg <ankitag@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>

5 years agoPCI: tegra: Enable -Werror for drivers/pci/host/*
Sumit Singh [Wed, 22 Oct 2014 05:53:33 +0000]
PCI: tegra: Enable -Werror for drivers/pci/host/*

Enabling werror to prevent any compile time warnings for
all the files directly under drivers/pci/host.

bug 1566945

Change-Id: If9e6bd10053cbb4d6cfa8ea85f7efb025ae8a000
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
Reviewed-on: http://git-master/r/561860
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Tested-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agopcie: host: tegra: Resolve build after Werror flag
Jay Agarwal [Tue, 28 Oct 2014 10:54:00 +0000]
pcie: host: tegra: Resolve build after Werror flag

Resolve below build error for 32b platforms:
"error: right shift count >= width of type"

Bug 1566945

Change-Id: I55d3e975d5f5bcba0d40b87e204e4af7ff1afdb2
Signed-off-by: Jay Agarwal <jagarwal@nvidia.com>
Reviewed-on: http://git-master/r/590743
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agopcie: host: tegra: Set MSEL config for WRAP mesg
Jay Agarwal [Wed, 22 Oct 2014 12:45:04 +0000]
pcie: host: tegra: Set MSEL config for WRAP mesg

Do required settings to enable WRAP transaction
generated by Normal NC and device_GRE type memory

Bug 200043376
Bug 200045084

Change-Id: I4513633827201f8d697b67b6ffbfbe06fe78663c
Signed-off-by: Jay Agarwal <jagarwal@nvidia.com>
Reviewed-on: http://git-master/r/562010
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoMerge "Merge branch 'android-3.10' into dev-kernel-3.10" into dev-kernel-3.10
Bharat Nihalani [Wed, 29 Oct 2014 18:02:01 +0000]
Merge "Merge branch 'android-3.10' into dev-kernel-3.10" into dev-kernel-3.10

5 years agoregulator: max77620: enable regulator before changing to FPS if boot on
Laxman Dewangan [Wed, 29 Oct 2014 09:51:01 +0000]
regulator: max77620: enable regulator before changing to FPS if boot on

If regulator constraints is boot-ON and need to change the FPS to NONE then
enable it before changing the FPS to NONE to avoid power-off glitch on the
rail.

Change-Id: Ie0f4ea066a4561f235108179057c044294dde6bd
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/591139
Reviewed-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Tested-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>

5 years agogpu: nvgpu: Allow compression on 64k pages
Terje Bergstrom [Mon, 27 Oct 2014 13:43:16 +0000]
gpu: nvgpu: Allow compression on 64k pages

Allow compression always when page size matches the big page
size for the context.

Bug 1558739

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

5 years agoextcon: Don't send uevent while suspending
Jinyoung Park [Fri, 24 Oct 2014 05:09:27 +0000]
extcon: Don't send uevent while suspending

Don't send an uevent for extcon state while suspending.
And then it will be handled after resume.
The system could not suspend due to a wake lock by epoll
if there is epoll waiting in the system.

Bug 200045359

Change-Id: Ia4a4cf274f983a77dbdd9e2b51cfc2287a391733
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/590263
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agogpu: nvgpu: Fix AS IOCTL return code for failed user write
Sami Kiminki [Tue, 28 Oct 2014 15:08:09 +0000]
gpu: nvgpu: Fix AS IOCTL return code for failed user write

Fix return code in gk20a_as_dev_ioctl() in case of failed
copy_to_user().

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

5 years agobacklight: Enable -Werror for video/backlight
Sumit Singh [Wed, 22 Oct 2014 06:01:34 +0000]
backlight: Enable -Werror for video/backlight

Enabling werror to prevent any compile time warnings
for files directly under video/backlight.

Bug 1566945

Change-Id: Iad86f56f1ecac6d88f339f4c32c02e179c05eca9
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
Reviewed-on: http://git-master/r/561864
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Tested-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>