]>
rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/log
Jeetesh Burman [Thu, 18 Jun 2015 05:49:03 +0000 (11:19 +0530)]
Revert "mmc: sdhci: tegra: update T2T and Tap hole for VCM30T124"
This reverts commit
28c9354b7cbade8813e0e5dbe9937300219fbeb9 .
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Change-Id: I4a809d75523513c939fa17a6dbeebee292aec77b
Reviewed-on: http://git-master/r/759472
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Jeetesh Burman [Thu, 18 Jun 2015 05:48:33 +0000 (11:18 +0530)]
Revert "mmc: tegra: Abort tuning if device is removed"
This reverts commit
0bb08ee76692a7ded9fb063b3bd77e1848658ced .
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Change-Id: I83df90d63845bc17bc1a4bf9d28cd47ac60fe9bd
Reviewed-on: http://git-master/r/759471
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Sandarbh Jain [Thu, 11 Jun 2015 19:15:02 +0000 (00:45 +0530)]
gpu: nvgpu: Disable channel when updating SMPC WAR
When updating SMPC WAR for channel, it needs to be kicked out. This
ensures that the updated information is re-read from context header.
Bug
1579548
Change-Id: Ieadc6b65b057d7f48dc16fbc786c881ab7e5fcd5
Signed-off-by: Sandarbh Jain <sanjain@nvidia.com>
Reviewed-on: http://git-master/r/756639
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Renn Wu [Tue, 3 Feb 2015 02:27:18 +0000 (10:27 +0800)]
watchdog: use FIQ WDT for soft lockup stack dump
Using Tegra WDT to trigger FIQ when system is in soft lockup.
Bug
1581432
Change-Id: I853a88a3f6e9402c978db18c5a63e903c582040a
Signed-off-by: Renn Wu <rewu@nvidia.com>
Reviewed-on: http://git-master/r/265871
(cherry picked from commit
f115f435d471af22ddec5e9d969662f79193f846 )
Reviewed-on: http://git-master/r/680353
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Terje Bergstrom [Wed, 18 Mar 2015 22:28:23 +0000 (15:28 -0700)]
gpu: nvgpu: Do not touch gr status mask
GR status disable mask was never set, so driver always disabled all
engines from status rollup.
Change-Id: I500a127be9253294f73d1f42ce89b886471a9117
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/719141
(cherry picked from commit
34a5ffe7e7dcc4df5f3a11848b828e96c43d2c4d )
Reviewed-on: http://git-master/r/752092
GVS: Gerrit_Virtual_Submit
Bryan Wu [Thu, 4 Jun 2015 23:21:06 +0000 (16:21 -0700)]
media: tegra_camera: change MIPI_CAL print level
Bug
1648875
Change-Id: I970a3eafcd7ec10f217f4c1cb13db9193dc037f6
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/752761
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Arun Kannan <akannan@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
JC Kuo [Wed, 20 May 2015 06:19:24 +0000 (14:19 +0800)]
xhci: tegra: run firmware log thread only if need
Driver doesn't need to run a kernel thread to collect firmware log
if release build firmware is loaded. Only debug build firmware is
capable of generating logs. This commit checks firmware CFGTBL to
know whether a firmware generates logs or not.
bug
1487603
Change-Id: I8b147710dae58332d68625fedd3173e2d2f6074b
Signed-off-by: JC Kuo <jckuo@nvidia.com>
Reviewed-on: http://git-master/r/663769
(cherry picked from commit
bc339c3a63ea18fbbe568c99e33d06d637ad1f71 )
Reviewed-on: http://git-master/r/744725
GVS: Gerrit_Virtual_Submit
Tested-by: Mark Kuo <mkuo@nvidia.com>
Reviewed-by: WK Tsai <wtsai@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
Bibek Basu [Fri, 22 May 2015 09:55:53 +0000 (15:25 +0530)]
gpu: nvgpu: gk20a: dma_alloc only if needed
if vpr memory is carved out, then only call dma_alloc
for secure memory.
Bug
200057068
Change-Id: I12557cfaa48f7db729ccab17d3151916d35ce0f1
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/746153
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Bryan Wu [Wed, 3 Jun 2015 21:59:36 +0000 (14:59 -0700)]
media: tegra_camera: clear MIPI_CAL flag
MIPI calibration should be done when power on the VI/CSI hardware. So
clear the MIPI_CAL flag to trigger MIPI calibration for next power on
operation.
Bug
1648875
Change-Id: Ic0689a331a6058e4d54d5b41869f2e81feb4158c
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/752129
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Arun Kannan <akannan@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Arun Kannan <akannan@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Arun Kannan [Tue, 12 May 2015 00:15:45 +0000 (17:15 -0700)]
video: tegra: host: pod: change vic freq tuning
Tune nvhost_podgov scaling algo params for
vic03 frequency scaling.
Bug
1640539
Change-Id: Id5583b5cd60d6b4449470d8c3df1e5d06bc4aedb
Signed-off-by: Arun Kannan <akannan@nvidia.com>
Reviewed-on: http://git-master/r/741438
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kamal Balagopalan <kbalagopalan@nvidia.com>
Reviewed-by: Ming Wong <miwong@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Igor Nabirushkin [Wed, 29 Apr 2015 06:44:01 +0000 (10:44 +0400)]
misc: tegra-profiler: add cpu notifier
Detect when the CPU goes online/offline.
Bug
1634024
Change-Id: I989a9aefbc32a70070b37fe42ce5dcf75b18263b
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/729497
(cherry picked from commit
a2eec5a5ea12fb50e073b322ca9d948818179968 )
Reviewed-on: http://git-master/r/748094
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Andrey Trachenko <atrachenko@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Igor Nabirushkin [Mon, 13 Apr 2015 13:00:37 +0000 (17:00 +0400)]
misc: tegra-profiler: fix stop error
Do not verify the existence of profiled process after
start of session.
It fixes the stop error on non-rooted devices when
application is terminated during the profile session.
Bug
1634968
Change-Id: I5384e6de3c7ff9791033d344b02acba9a729157b
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/730898
(cherry picked from commit
79fcedbbf7fbc984ec8b95900ee49af0a9be590b )
Reviewed-on: http://git-master/r/748093
GVS: Gerrit_Virtual_Submit
Reviewed-by: Andrey Trachenko <atrachenko@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Igor Nabirushkin [Tue, 28 Apr 2015 06:04:15 +0000 (10:04 +0400)]
misc: tegra-profiler: fix coverity issue
Fix Coverity issue of out-of-bounds.
Coverity id: 29855
Bug
1416640
Change-Id: I112daaad55c1a2de9fdb411a0591e4ed7bf50e6e
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/730896
(cherry picked from commit
09c1b2add13aa7c6f4410c874ddad936913f5d19 )
Reviewed-on: http://git-master/r/748092
GVS: Gerrit_Virtual_Submit
Reviewed-by: Andrey Trachenko <atrachenko@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Igor Nabirushkin [Tue, 28 Apr 2015 05:58:51 +0000 (09:58 +0400)]
misc: tegra-profiler: send all frequencies
Send CPU, EMC and GPU frequencies at the start of profiling.
It is needed so that initial frequencies are also displayed
in the profiler GUI.
Bug
1635012
Change-Id: I2e850c846b110da8aa4331ac700a20930da6841b
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/730895
(cherry picked from commit
a00b48ad9e012bf17e0e3f8610e2732af53b2115 )
Reviewed-on: http://git-master/r/748091
GVS: Gerrit_Virtual_Submit
Reviewed-by: Andrey Trachenko <atrachenko@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Igor Nabirushkin [Sat, 21 Mar 2015 16:33:09 +0000 (20:33 +0400)]
misc: tegra-profiler: cleanup unwinding rules
DWARF unwinding: cleanup unwinding rules for frames.
It fixes some broken backtraces.
Bug
1626528
Change-Id: Iaa62528cc0b6b97f1763934ef641791f196897b0
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/720600
(cherry picked from commit
3d68bdc1d81dce7176a8efec54dc5501e55e5eb5 )
Reviewed-on: http://git-master/r/748090
GVS: Gerrit_Virtual_Submit
Reviewed-by: Andrey Trachenko <atrachenko@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Igor Nabirushkin [Sat, 21 Mar 2015 15:39:55 +0000 (19:39 +0400)]
misc: tegra-profiler: fix broken backtraces
Unwinding based on arm32 ehabi: fix broken backtraces when
all unwind entries are located in exidx section and
extab section is not exist.
Bug
1625585
Change-Id: I800e1347b04aa2c2c8802b81478931985c19feb2
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/720598
(cherry picked from commit
dfc9e9e4ce081b3116e457711e2f4a67fabb169c )
Reviewed-on: http://git-master/r/748089
GVS: Gerrit_Virtual_Submit
Reviewed-by: Andrey Trachenko <atrachenko@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Dmitry Antipov [Fri, 20 Mar 2015 12:24:41 +0000 (15:24 +0300)]
misc: tegra-profiler: simpler task status checking
Use PF_EXITING to check task status and simplify argument checking
in read_all_sources, adjust hrtimer_handler accordingly.
Bug
1625611
Signed-off-by: Dmitry Antipov <dantipov@nvidia.com>
Change-Id: Ida8f9e7ed5492f17868988e05328bfa8432a31e9
Reviewed-on: http://git-master/r/719460
(cherry picked from commit
316d507f4aaa04e9c91da3faa25c861260d6b194 )
Reviewed-on: http://git-master/r/748088
GVS: Gerrit_Virtual_Submit
Reviewed-by: Andrey Trachenko <atrachenko@nvidia.com>
Tested-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Dmitry Antipov [Fri, 20 Mar 2015 12:23:53 +0000 (15:23 +0300)]
misc: tegra-profiler: add unwind entry checking
Use simple disassembler to verify unwind table entry against function code.
Bug
1618651
Signed-off-by: Dmitry Antipov <dantipov@nvidia.com>
Change-Id: Ib75b50f1bb753b7358fcc08107bfefc3133b4f0c
Reviewed-on: http://git-master/r/714784
(cherry picked from commit
3a68f6164a4652d027fd2e62d7eb7d5ec5906dbc )
Reviewed-on: http://git-master/r/748087
GVS: Gerrit_Virtual_Submit
Reviewed-by: Andrey Trachenko <atrachenko@nvidia.com>
Tested-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Igor Nabirushkin [Mon, 16 Mar 2015 15:13:33 +0000 (19:13 +0400)]
misc: tegra-profiler: add unwind reason codes
Unwinding: store individual URC codes for each method.
Bug
1624134
Change-Id: I3b2045f9c9147354f3440e326fd3aeccb5e0458d
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/717848
(cherry picked from commit
e5ceff53d63e668a19d36196823f6c185ce48e88 )
Reviewed-on: http://git-master/r/748086
GVS: Gerrit_Virtual_Submit
Reviewed-by: Andrey Trachenko <atrachenko@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Igor Nabirushkin [Mon, 16 Mar 2015 14:08:36 +0000 (18:08 +0400)]
misc: tegra-profiler: add task states
* Add task states into sched samples.
* Store task exit_state field.
Bug
1624099
Change-Id: I4a25aa6c15b59da987688342478127dccc5c0a1c
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/717839
(cherry picked from commit
9c512cace5ad5d8719a5a8df553cd313e41f4402 )
Reviewed-on: http://git-master/r/747753
GVS: Gerrit_Virtual_Submit
Reviewed-by: Andrey Trachenko <atrachenko@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Igor Nabirushkin [Mon, 9 Mar 2015 16:16:55 +0000 (20:16 +0400)]
misc: tegra-profiler: prevent infinite loop
* Prevent false recursion in mixed mode.
* Unwinding based on frame pointers: do not save lr address
if previous frame is incorrect.
Bug
1619030
Change-Id: Iadeb8ca87ead576b18821964878cddf7aa94cf27
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/715291
(cherry picked from commit
d8e79953332c96786da5f57475013b045d7ef817 )
Reviewed-on: http://git-master/r/747752
GVS: Gerrit_Virtual_Submit
Reviewed-by: Andrey Trachenko <atrachenko@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Igor Nabirushkin [Fri, 6 Mar 2015 13:36:42 +0000 (17:36 +0400)]
misc: tegra-profiler: add cpufreq notifier
Add cpufreq notifier into the profiler.
Bug
1618622
Change-Id: I06352c515c64f524fb88898dadefe1d07cedfe0f
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/714765
(cherry picked from commit
b93eebf3afb92cfa97eb66067e5a5ef252a20ae8 )
Reviewed-on: http://git-master/r/747751
GVS: Gerrit_Virtual_Submit
Reviewed-by: Andrey Trachenko <atrachenko@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Igor Nabirushkin [Thu, 26 Feb 2015 14:49:41 +0000 (18:49 +0400)]
misc: tegra-profiler: add unwind reason codes
Add unwind reason codes for dwarf unwinding.
Bug
1611073
Change-Id: Ic7f324f526ba34505e3b9bbedae7b98c29ce097d
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/711654
(cherry picked from commit
ea2a41fa9056145e3f1cbe6f97c7725f51a08f3e )
Reviewed-on: http://git-master/r/747750
GVS: Gerrit_Virtual_Submit
Reviewed-by: Andrey Trachenko <atrachenko@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Igor Nabirushkin [Thu, 26 Feb 2015 11:16:21 +0000 (15:16 +0400)]
misc: tegra-profiler: fix broken call chains
Fix broken call chains for thumb code with dwarf and
arm ehabi information simultaneously.
Bug
1615165
Change-Id: If34ecfac26657546170121c363cf89b8b7256dbb
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/711611
(cherry picked from commit
7d98345d6f2f1ba476161d91853dd82b23a92d1d )
Reviewed-on: http://git-master/r/747749
GVS: Gerrit_Virtual_Submit
Reviewed-by: Andrey Trachenko <atrachenko@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Igor Nabirushkin [Sat, 14 Feb 2015 21:08:11 +0000 (01:08 +0400)]
misc: tegra-profiler: fix return value check
Tegra System Profiler: device is frozen when using clk events.
Fix return value check.
Bug
1611412
Change-Id: Ic9da6f02b222aaf0b3e5e84156103be39a28168b
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/708066
(cherry picked from commit
d7f72918dd2c210fd991e61414da3b5f95916f25 )
Reviewed-on: http://git-master/r/747748
GVS: Gerrit_Virtual_Submit
Reviewed-by: Andrey Trachenko <atrachenko@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Igor Nabirushkin [Fri, 13 Feb 2015 19:21:22 +0000 (23:21 +0400)]
misc: tegra-profiler: support debug frame sections
DWARF unwinding: support debug frame sections (AArch32/AArch64).
Bug
1611073
Change-Id: Ia7a01c61843d35d8c5466623be7d8e44fc70f5a1
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/707910
(cherry picked from commit
d39c08f5f586453c55c42a91bccd8452343c5236 )
Reviewed-on: http://git-master/r/747747
GVS: Gerrit_Virtual_Submit
Reviewed-by: Andrey Trachenko <atrachenko@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Igor Nabirushkin [Fri, 13 Feb 2015 17:35:02 +0000 (21:35 +0400)]
misc: tegra-profiler: support eh_frame sections
Support dwarf unwinding for arm32 files (based on
eh_frame sections).
Bug
1611069
Change-Id: Ie057ebcfcff75ccb2d3e62aa7cb85ac4b090930c
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/707903
(cherry picked from commit
950855f44e647b22508f2d31fe373fffd9e0642f )
Reviewed-on: http://git-master/r/747745
GVS: Gerrit_Virtual_Submit
Reviewed-by: Andrey Trachenko <atrachenko@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Bibek Basu [Fri, 22 May 2015 07:30:54 +0000 (13:00 +0530)]
xhci: tegra: load fw from filesystem earlier
Loading firmware from filesystem takes much time. Enabing vbus regualtor
before loading firmware will cause the time gap between vbus ON and host
controller ready too large. So, we move the time of firmware loading
earlier.
Bug
200067006
Change-Id: I63ecbd9e65f3bb56db564f72cc417fc4f76adbc3
Signed-off-by: Henry Lin <henryl@nvidia.com>
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/736193
(cherry picked from commit
6875a1752b3ed4e121efcc3fddca0810ffd22546 )
Reviewed-on: http://git-master/r/746074
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Tushar Khinvasara [Tue, 12 May 2015 13:16:38 +0000 (18:46 +0530)]
dts: jetson-tk1: Add AR0261 sensor support
Added AR0261 sensor support
Bug
200089114
Signed-off-by: Tushar Khinvasara <tkhinvasara@nvidia.com>
Change-Id: I8f6d6c6ea4905d9087fd6281bc8b215ec0a73fdb
Reviewed-on: http://git-master/r/741716
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ming Wong <miwong@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Pankaj Dabade [Mon, 18 May 2015 07:12:48 +0000 (12:42 +0530)]
video : hdmi: Add more checks in mode filter
While programming DC controller it is decided at runtime
if a particular mode can be satisfied. This check relies
on the parent pixel clock settings. This patch adds same
check in the mode filter function for HDMI, eliminating
entries from modelist which will not be supported.
Bug
200080781
Change-Id: I6e39249e419bc83d549e561267a57ad25d4652ad
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/741686
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Miguel Angel Vico Moya <mvicomoya@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Alban Bedel [Tue, 12 May 2015 08:28:51 +0000 (13:58 +0530)]
video: tegra: hdmi: Fix potential crash when setting up HDMI
The HDMI state machine registers an IRQ handler before all the resources
it needs are available. Ideally the IRQ handler should be registered
later, however it would mean a quite large change. Instead we just add
some check to avoid running the state machine as long as the
framebuffer hasn't been registered.
While at it also prevent scheduling the state machine if it hasn't been
initialized yet.
Bug
1618089
Change-Id: I8f9dc07d2a4bf7e33e869206ad83ed80af93f566
Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/741616
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Alban Bedel [Tue, 12 May 2015 08:34:09 +0000 (14:04 +0530)]
usb: xhci: tegra: fix compilation with lockdep enabled
The sysfs_attr_init() macro expects a pointer to a struct attribute as
argument and not a pointer to a struct device_attribute. This was
bulding with lockdep disabled because in this case the
sysfs_attr_init() macro does nothing.
Bug
1618089
Change-Id: I6225c5c26beccae3848d8d5360a0efabcba60ce5
Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/741614
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Bibek Basu [Tue, 12 May 2015 05:42:29 +0000 (11:12 +0530)]
arm: tegra: enable dnotify config for t124
Enable CONFIG_DNOTIFY for L4T kernel config
Bug
1627091
Bug
200097847
Change-Id: I30d53089df825a776f03e1f0f08f1d6d8b1c9bb0
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/741517
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Krishna Reddy [Mon, 6 Apr 2015 18:32:33 +0000 (11:32 -0700)]
video: tegra: nvmap: clean L1 on all cores
Clean L2 by set/ways doesn't ensure that L1 is
cleaned on A15 and A57.
Clean L1 on all cores before cleaning L2.
Bug
20007733
Change-Id: I8a389317571060ba4716663c03ab75896aa13612
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/742255
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Krishna Reddy [Mon, 6 Apr 2015 18:30:13 +0000 (11:30 -0700)]
arm64: mm: Add __clean_dcache_louis
This allows perform L1 cache clean alone.
Bug
200077334
Change-Id: I776de6e6726862e330b626fd19f8ae8f70055538
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/742254
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Krishna Reddy [Mon, 13 Apr 2015 23:12:33 +0000 (16:12 -0700)]
arm: mm: Add v7_clean_kern_cache_louis
This allows perform L1 cache clean alone.
Bug
200077334
Change-Id: I7a6106ed53755df33e09e3fa32a9e2524eb98649
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/742252
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Rakesh Babu Bodla [Mon, 27 Apr 2015 08:37:05 +0000 (14:07 +0530)]
usb: phy: tegra: set UTMIP_PCOUNT_UPDN_DIV to zero
Set UTMIP_PCOUNT_UPDN_DIV to zero to address hosts
having jitter issues.
Bug
200085253
Bug
200100469
Change-Id: I3f0202b74dbbbd697d52c386626112714f26834f
Signed-off-by: Rakesh Babu Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/736178
(cherry picked from commit
6d1f2be772751ebb0fb07dce2fc6992467c19eab )
Reviewed-on: http://git-master/r/740972
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Tested-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Neil Chen [Wed, 13 May 2015 09:44:48 +0000 (17:44 +0800)]
ARM: ardbeg: enable cpu-balanced cooling device
enable cpu-balanced cooling device on jetson-tk1
Bug
1640651
Change-Id: Ice4c50044f4ac2bfb2bc61114e6264135a92b847
Signed-off-by: Neil Chen <neilc@nvidia.com>
Reviewed-on: http://git-master/r/742125
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>
Preetham Chandru R [Mon, 23 Feb 2015 07:26:43 +0000 (12:56 +0530)]
ata: ahci: increase L2P FIFO Depth
Bug
1592893
Change-Id: Iaa9c0673c928ce4ecaf9b374b997012522e88035
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/711902
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Krishna Reddy [Tue, 5 Aug 2014 21:43:37 +0000 (14:43 -0700)]
video: tegra: nvmap: clean cache during page allocations into page pool
Clean cache during page allocations into page pool to
avoid cache clean overhead at the time of allocation.
Increase page pool refill size to 1MB from 512KB.
Bug
1539190
Change-Id: I6c45782e54879541f7b518bbbb016383b24e376b
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/453197
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: Michael I Gold <gold@nvidia.com>
[ccross: moved on top of background zeroing patches, replaced
atomic with bool since it has to be protected by a lock anyways]
Signed-off-by: Colin Cross <ccross@android.com>
Reviewed-on: http://git-master/r/664676
Reviewed-on: http://git-master/r/736430
Tested-by: Alex Waterman <alexw@nvidia.com>
Colin Cross [Wed, 13 Aug 2014 02:36:04 +0000 (19:36 -0700)]
nvmap: page pools: fix lockdep splat
lockdep complains about the alloc_page call under the pool lock
in nvmap_page_pool_init because the pool lock is also taken during
reclaim in nvmap_page_pool_shrink. Rewrite nvmap_page_pool_init
to perform the allocation in PENDING_PAGES_SIZE chunks outside the
lock. Also move the global pending_pages to a static copy in
nvmap_pp_do_background_zero_pages and a kcalloc'd array during
init to avoid conflicts when two threads try to use the same array.
[ 57.734407] =================================
[ 57.738786] [ INFO: inconsistent lock state ]
[ 57.743198]
3.10.40-ge3b2801 -dirty #145 Tainted: G W
[ 57.749135] ---------------------------------
[ 57.753521] inconsistent {RECLAIM_FS-ON-W} -> {IN-RECLAIM_FS-W} usage.
[ 57.760082] kswapd0/41 [HC0[0]:SC0[0]:HE1:SE1] takes:
[ 57.765159] (&pool->lock#2){+.+.?.}, at: [<
ffffffc000404d28 >] nvmap_page_pool_shrink+0x48/0x9c
[ 57.773953] {RECLAIM_FS-ON-W} state was registered at:
[ 57.779118] [<
ffffffc000106964 >] mark_lock+0x1d0/0x7a8
[ 57.784938] [<
ffffffc000107004 >] mark_held_locks+0xc8/0x184
[ 57.791543] [<
ffffffc000107bd0 >] lockdep_trace_alloc+0xb4/0xf8
[ 57.797594] [<
ffffffc00015ce24 >] __alloc_pages_nodemask+0x98/0x7f8
[ 57.803987] [<
ffffffc0004051d8 >] nvmap_page_pool_init+0x19c/0x220
[ 57.810287] [<
ffffffc0003fbf20 >] nvmap_probe+0x9c/0x78c
[ 57.815713] [<
ffffffc00049c588 >] platform_drv_probe+0x18/0x24
[ 57.821662] [<
ffffffc00049aadc >] driver_probe_device+0xa8/0x3a8
[ 57.827783] [<
ffffffc00049aed0 >] __driver_attach+0xa0/0xa8
[ 57.833466] [<
ffffffc000498d64 >] bus_for_each_dev+0x58/0x9c
[ 57.839238] [<
ffffffc00049a9d0 >] driver_attach+0x1c/0x28
[ 57.844746] [<
ffffffc000499828 >] bus_add_driver+0x1d8/0x294
[ 57.850517] [<
ffffffc00049ba10 >] driver_register+0x68/0x174
[ 57.856289] [<
ffffffc00049cfe0 >] platform_driver_register+0x54/0x60
[ 57.862759] [<
ffffffc000d61354 >] nvmap_init_driver+0x24/0x40
[ 57.868617] [<
ffffffc000d328d4 >] do_one_initcall+0xac/0x164
[ 57.874387] [<
ffffffc000d32af8 >] kernel_init_freeable+0x158/0x1f8
[ 57.880678] [<
ffffffc0009e7d40 >] kernel_init+0x10/0x158
[ 57.886103] [<
ffffffc000084cfc >] ret_from_fork+0xc/0x1c
[ 57.891526] irq event stamp: 803
[ 57.894763] hardirqs last enabled at (803): [<
ffffffc0009fc208 >] _raw_spin_unlock_irqrestore+0x64/0x94
[ 57.904211] hardirqs last disabled at (802): [<
ffffffc0009fbfa8 >] _raw_spin_lock_irqsave+0x24/0x9c
[ 57.913202] softirqs last enabled at (0): [<
ffffffc0000a508c >] copy_process.part.55+0x448/0x1150
[ 57.922108] softirqs last disabled at (0): [< (null)>] (null)
[ 57.929530]
[ 57.929530] other info that might help us debug this:
[ 57.936074] Possible unsafe locking scenario:
[ 57.936074]
[ 57.942008] CPU0
[ 57.944456] ----
[ 57.946905] lock(&pool->lock#2);
[ 57.950338] <Interrupt>
[ 57.952960] lock(&pool->lock#2);
[ 57.956565]
[ 57.956565] *** DEADLOCK ***
[ 57.956565]
[ 57.962502] 1 lock held by kswapd0/41:
[ 57.966257] #0: (shrinker_rwsem){++++..}, at: [<
ffffffc0001651cc >] shrink_slab+0x54/0x3b0
[ 57.974677]
[ 57.974677] stack backtrace:
[ 57.979063] CPU: 0 PID: 41 Comm: kswapd0 Tainted: G W
3.10.40-ge3b2801 -dirty #145
[ 57.987434] Call trace:
[ 57.989888] [<
ffffffc0000887e4 >] dump_backtrace+0x0/0x188
[ 57.995300] [<
ffffffc00008897c >] show_stack+0x10/0x1c
[ 58.000363] [<
ffffffc0009f3490 >] dump_stack+0x1c/0x28
[ 58.005428] [<
ffffffc0009f0d6c >] print_usage_bug.part.37+0x28c/0x2a8
[ 58.011799] [<
ffffffc0001068f0 >] mark_lock+0x15c/0x7a8
[ 58.016951] [<
ffffffc000109f50 >] __lock_acquire+0x7c0/0xd24
[ 58.022536] [<
ffffffc00010ada8 >] lock_acquire+0xa8/0x148
[ 58.027862] [<
ffffffc0009f870c >] mutex_lock_nested+0x80/0x3e0
[ 58.033623] [<
ffffffc000404d24 >] nvmap_page_pool_shrink+0x44/0x9c
[ 58.039731] [<
ffffffc000165364 >] shrink_slab+0x1ec/0x3b0
[ 58.045056] [<
ffffffc000168554 >] balance_pgdat+0x4d0/0x5d4
[ 58.050555] [<
ffffffc0001687d0 >] kswapd+0x178/0x45c
[ 58.055448] [<
ffffffc0000d0fa0 >] kthread+0xd0/0xdc
[ 69.502055] dhd_set_suspend: Remove extra suspend setting
[ 69.787786] dhd_set_suspend: force extra Suspend setting
Change-Id: I41e908da9c51f353300f32c50354b4f48b2424c5
Signed-off-by: Colin Cross <ccross@android.com>
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/664675
GVS: Gerrit_Virtual_Submit
Reviewed-on: http://git-master/r/736429
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Tested-by: Alex Waterman <alexw@nvidia.com>
Colin Cross [Tue, 12 Aug 2014 00:33:09 +0000 (17:33 -0700)]
nvmap: page pools: replace background allocator with background zeroer
The background allocator rapidly becomes useless once the system
has filled memory with cached pages. It refuses to allocate when
free memory < 128MB (which it always is, the kernel is aiming to
keep very little free), and freed pages are not returned to the
page pool when zero_memory=1.
Remove the background allocator completely, and instead return
freed memory to the page pool in a separate list to be zeroed
in the background. This results in a self-balancing pool of
memory available to graphics, and reduces presure on the kernel's
page allocator. If the pool grows too big it will get reduced
by the shrinker. If it gets too small, the next allocation will
fall back to the page allocator, and then later return those pages
to the pool.
Before this change incremental page pool hit rate reported by
/d/nvmap/pagepool/page_pool_hits vs. /d/nvmap/pagepool/page_pool_misses
goes to 0% after boot. After this change it is near 100% for small
app launches and 75% for larger app launches.
Change-Id: I4bc914498d7d0369eef9e621bda110d9b8be90b2
Signed-off-by: Colin Cross <ccross@android.com>
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/664674
GVS: Gerrit_Virtual_Submit
Reviewed-on: http://git-master/r/736428
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Tested-by: Alex Waterman <alexw@nvidia.com>
Colin Cross [Mon, 11 Aug 2014 23:09:51 +0000 (16:09 -0700)]
nvmap: page pool: fix background thread
Fix a race condition in the background allocator where
wake_up_process could be called just before set_current_state
changed the state to TASK_INTERRUPTIBLE, causing the thread
not to wake. Use a waitqueue instead.
Also make the background allocator nicer by marking it freezable
so it doesn't compete with suspend, and setting it SCHED_IDLE so
it only runs when no other threads want to run.
Change-Id: If95da005bb1fc4c9b5e802d40730803a57057fe1
Signed-off-by: Colin Cross <ccross@android.com>
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/664673
GVS: Gerrit_Virtual_Submit
Reviewed-on: http://git-master/r/736427
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Tested-by: Alex Waterman <alexw@nvidia.com>
Colin Cross [Mon, 11 Aug 2014 21:25:20 +0000 (14:25 -0700)]
nvmap: combine two methods of requesting zeroed memory
Combine CONFIG_NVMAP_FORCE_ZEROED_USER_PAGES and the zero_memory
modparam into a single option by forcing zero_memory=1 when
CONFIG_NVMAP_FORCE_ZEROED_USER_PAGES is set, and always using
zero_memory to decided whether to zero or not.
Change-Id: I9ce0106cfaea950bd9494b697916fbc2a03329ea
Signed-off-by: Colin Cross <ccross@android.com>
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/664672
GVS: Gerrit_Virtual_Submit
Reviewed-on: http://git-master/r/736426
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Tested-by: Alex Waterman <alexw@nvidia.com>
Colin Cross [Mon, 11 Aug 2014 21:08:40 +0000 (14:08 -0700)]
nvmap: page pools: hide internal lock from nvmap_handle.c
The internal pool lock is exported so that nvmap_handle can lock
it, call a *_locked function, and then unlock it. Provide a
version of the *_locked functions that takes the lock, remove
the lock and unlock helpers, and make the lock private to
the pools again.
Change-Id: I5a99753058e43161d50a0c61f3a984655cd7cd35
Signed-off-by: Colin Cross <ccross@android.com>
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/664671
GVS: Gerrit_Virtual_Submit
Reviewed-on: http://git-master/r/736425
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Tested-by: Alex Waterman <alexw@nvidia.com>
Colin Cross [Fri, 8 Aug 2014 02:35:35 +0000 (19:35 -0700)]
nvmap: replace page pool array with a list
struct page already has a list node that is available to use by
whoever got the page with alloc_page. Use it to keep the free
pages in the pool in a list instead of a circular buffer in an
array.
Change-Id: I0377633be7d620b59daf34799bd4ebc5fd9443fb
Signed-off-by: Colin Cross <ccross@android.com>
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/664670
GVS: Gerrit_Virtual_Submit
Reviewed-on: http://git-master/r/736424
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Tested-by: Alex Waterman <alexw@nvidia.com>
Krishna Reddy [Tue, 16 Dec 2014 23:51:03 +0000 (15:51 -0800)]
Revert "video: tegra: nvmap: clean cache during page allocations into page pool"
This reverts commit
b1d8c6c9415df111e4af1425a3d84b25c00a9c06 .
Change-Id: Ide7e78780722bdd30426089f38155c7cabf28934
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/664669
GVS: Gerrit_Virtual_Submit
Reviewed-on: http://git-master/r/736423
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Tested-by: Alex Waterman <alexw@nvidia.com>
Pankaj Dabade [Wed, 6 May 2015 11:23:17 +0000 (16:53 +0530)]
vga: Make absence of device message as debug print
This patch converts message of absence of vga device as a
debug print. This message comes when client tries to
access device on PCI which is absent, in this case DSI.
Bug
1481761
Change-Id: I7d83d39735e51bca8c789a86e517c0a040de57e8
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/739571
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Jeetesh Burman [Tue, 24 Mar 2015 17:46:48 +0000 (23:16 +0530)]
mmc: tegra: Abort tuning if device is removed
For removable devices, check for the card presence status before
issuing each tuning command. If the device is removed, abort tuning
and return -ENOMEDIUM error.
bug
1625262
Change-Id: I19d5dfe8e8bf4b9fc7ecc2c00cdfa01343012e68
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/398855
(cherry picked from commit
6e82d03dca5b421138e1c4f348efee71df2a865f )
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/721906
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>
Seshagir.H [Thu, 22 May 2014 08:05:02 +0000 (13:35 +0530)]
mmc: sdhci: tegra: update T2T and Tap hole for VCM30T124
bug
200007291
Change-Id: Ia1d8d4c8ea67a30c61e4178863e2f6f1bcb13753
Signed-off-by: Seshagir.H <sholi@nvidia.com>
Reviewed-on: http://git-master/r/413049
(cherry picked from commit
7564df85908c98b8fd6e5835cb02262091057d4e )
Reviewed-on: http://git-master/r/725517
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jeetesh Burman <jburman@nvidia.com>
Tested-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Seshagir.H [Thu, 25 Sep 2014 12:51:49 +0000 (18:21 +0530)]
mmc: tegra: select fixed tap hole margin values
bug
200035711
Change-Id: I2efdabe31ec2ab5b6b0253f54484365e61890e91
Signed-off-by: Seshagir.H <sholi@nvidia.com>
Reviewed-on: http://git-master/r/538920
(cherry picked from commit
ef940296b6f41e4669fe7da4c48bf34091af2512 )
Reviewed-on: http://git-master/r/725516
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jeetesh Burman <jburman@nvidia.com>
Tested-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Jeetesh Burman [Tue, 24 Mar 2015 17:34:07 +0000 (23:04 +0530)]
mmc: tegra: Initialize margin addition variables
Initialize tap hole variables used in the temperature margin
calculations.
Bug
1532100
Change-Id: I494d5ab1600f13c8861de860532021107bfd745e
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/436633
(cherry picked from commit
a106c31d73581db47c951b8cc196629993b96571 )
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/721901
GVS: Gerrit_Virtual_Submit
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Jeetesh Burman [Tue, 24 Mar 2015 17:25:34 +0000 (22:55 +0530)]
mmc: tegra: Use 100000 precision instead of 1000
-To derive estimated tuning data for other than boot_mv and vmin
we are using precision of 1000.
-Use precision of 100000 to derive data more accurately
Bug
1414513
Change-Id: I9caff04515980713a83f33c4cf6b524ba022d2b8
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/437992
(cherry picked from commit
36330ecf4ffe9333bf895f2e943f8b6b7201c012 )
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/721897
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Jeetesh Burman [Tue, 24 Mar 2015 17:22:02 +0000 (22:52 +0530)]
mmc: tegra: disable card clk before setting tap
-disable card clk.
-update the tap value.
-enable card clk.
Bug
1559166
Change-Id: Ib77bfed5d8a8569d458aaf2cd0cd3c8a9e00a60e
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/559812
(cherry picked from commit
e2c098821a74ef1b5805c6bc5cb177a4fba05338 )
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/721896
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Jeetesh Burman [Tue, 24 Mar 2015 14:49:51 +0000 (20:19 +0530)]
mmc: tegra: Fix missing tap hole margins print
Avoid false warnings by reporting missing fixed tap hole margins only if
NVQUIRK_SELECT_FIXED_TAP_HOLE_MARGINS is set rather than printing the
message unconditionally.
bug
1625262
Change-Id: Ie5b75f3f73c6ce7e6283912f9ee41ae4d5d68901
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/599356
(cherry picked from commit
8f676f54519fa169c12f384ded3df1d6a87e8fd5 )
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/721846
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>
Naveen Kumar Arepalli [Thu, 16 Oct 2014 09:20:11 +0000 (14:50 +0530)]
platform: tegra: Define DDR Tap/trim varibles
Bug
1563244
Change-Id: Ic4a43df8d11f87b3f62c652109abf540874224c4
Reviewed-on: http://git-master/r/#/c/557255/
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
(cherry picked from commit
fd23e040930d735191a4fcc85ba692496aeb8b56 )
Reviewed-on: http://git-master/r/737315
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jeetesh Burman <jburman@nvidia.com>
Tested-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Ming Wong [Tue, 14 Apr 2015 22:44:34 +0000 (15:44 -0700)]
kernel: add ar0330 2304x1520 resolution
added 2304x1520 1 MIPI lane resolution
Bug
1552628
Change-Id: Ib2af3a77f9bede216e538a53d162839e9a249996
Signed-off-by: Ming Wong <miwong@nvidia.com>
Reviewed-on: http://git-master/r/731521
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Bibek Basu [Fri, 17 Apr 2015 04:33:15 +0000 (10:03 +0530)]
arm:tegra: set cpu_lp to 804Mhz max for cd575mi AON
Set Mac freq for cpu_lp to 804Mhz for 24x7 cd575mi
personality
Bug
1563635
Change-Id: I72f4ffdcdcf7ce93b940f5b7c36726d63e5b3e87
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/732544
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Kassey Li [Thu, 11 Dec 2014 09:54:31 +0000 (17:54 +0800)]
kernel: add imx185 sensor support
Bug
200044433
Change-Id: I792062649c247229270678a44d10323d2744b569
Signed-off-by: Kassey Li <kasseyl@nvidia.com>
Reviewed-on: http://git-master/r/721561
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>
Renn Wu [Tue, 3 Mar 2015 02:17:27 +0000 (10:17 +0800)]
config: fix config conflict for wdt
Fix config conflict for watchdog.
Tegra watchdog is disabled by default.
Users can access /dev/watchdog0 to operate it.
Bug
1557390
Change-Id: Ia1bb6c91dfbea85375d84bef10a10209b2fcef9f
Signed-off-by: Renn Wu <rewu@nvidia.com>
Reviewed-on: http://git-master/r/712938
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Tested-by: Winnie Hsu <whsu@nvidia.com>
Krishna Reddy [Fri, 27 Mar 2015 18:42:40 +0000 (11:42 -0700)]
iommu/tegra: smmu: Fix race condition in writing PTC registers
Fix race condition in programming PTC flush registers.
This race condition results in PTC flush not happening as intended and
can cause either SMMU fault or previous stale mapping access.
Bug
1625885
Bug
1603840
Change-Id: Ie94a8cfe947d8363a252f05dcd98fac10920586a
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/724503
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Tested-by: Hiroshi Doyu <hdoyu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Bryan Wu [Mon, 18 Aug 2014 23:27:27 +0000 (16:27 -0700)]
media: tegra_v4l2_camera: add CSI caliabration
Add calibration for T124 VI2.
Bug
1628147
Change-Id: If70b1562c1d6345b337e4a01236c392b79f14dad
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/678605
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Bibek Basu [Thu, 26 Mar 2015 07:43:41 +0000 (13:13 +0530)]
pinctrl: tegra: Add MIPI pad control
This patch adds MIPI CSI/DSIB pad control mux register
from the APB misc block to tegra pinctrl.
Without writing to this register, the dsib pads are
muxed as csi, and cannot be used.
The register is not yet documented in the TRM, here is
the description:
70000820 : APB_MISC_GP_MIPI_PAD_CTRL_0
[31:02] RESERVED
[01:01] DSIB_MODE [CSI=0,DSIB=1]
[00:00] RESERVED
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Acked-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
BUG=chrome-os-partner:30799
TEST=Tested on ryu
(cherry picked from commit
489c8251776de8838547207acce199f50846ded1 )
Change-Id: I424f488131e51ac793814d98d018162f0644509e
Reviewed-on: https://chromium-review.googlesource.com/219832
Reviewed-on: http://git-master/r/668725
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/723409
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Bibek Basu [Thu, 12 Feb 2015 06:12:04 +0000 (11:42 +0530)]
arm: tegra: dtb: update jetson TK1 pinmux
Updates based on v11 of Jetson_TK1_customer_pinmux.xlsm
configure pee2 as gpio
Added CSI_CD/DSI_B Muxing Option
Disable open drain for pwr_i2c
Bug
1551864
Change-Id: I708505e8664cbb56b7b4ac32e14e2e20618a3114
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/707204
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Roger Hsieh [Mon, 2 Mar 2015 11:23:33 +0000 (19:23 +0800)]
arm: tegra12: fix PTSA registers save/restore
Some of PTSA regsiters are restored to wrong value that affects
other clients under memory controller. Correct it to fix audio
noise issue after LP0 resume.
Bug
1612520
Change-Id: I92f03cace5dcc81a33a71cdd4628c2112f7015ed
Signed-off-by: Roger Hsieh <rhsieh@nvidia.com>
Reviewed-on: http://git-master/r/712540
(cherry picked from commit
478e8e144acd8218421ddbf69e8dd2676a68ab8e )
Reviewed-on: http://git-master/r/713592
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Hans de Goede [Fri, 16 Jan 2015 15:54:02 +0000 (17:54 +0200)]
xhci: Silence "xHCI xhci_drop_endpoint called with disabled ep ..." messages
When re-applying the configuration after a successful usb device reset,
xhci_discover_or_reset_device has already dropped the endpoints, and free-ed
the rings.
The endpoints already being dropped is expected, and should not lead to
warnings. Use the fact that the rings are also free-ed in this scenario to
detect this, and suppress the "xHCI xhci_drop_endpoint called with disabled
ep ..." message in this case.
Bug
200040915
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
--
Changes in v2:
Move the ring check to only guard the xhci_warn, so as to avoid side-effects
in case we have a scenario where the rings are free-ed, but the endpoint is
not yet dropped.
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Change-Id: I94392cf985208f96c7102e5115268c3460338a46
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-on: http://git-master/r/721398
Reviewed-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Joy Wang [Tue, 2 Dec 2014 06:35:07 +0000 (14:35 +0800)]
usb: xhci: tegra: fix wake from LP1
We have VDD_CORE on when LP1. xusb use padctl interrupt to
wake from LP1. Keep interrupt enabled when system suspend.
Bug
1583860
Bug
200081242
Change-Id: I276594d69a051ea84034c32015589a6574ded7f1
Signed-off-by: Joy Wang <joyw@nvidia.com>
Reviewed-on: http://git-master/r/658281
(cherry picked from commit
0031edc18b385eb5dc67eb419f2c50aa5f0a15a2 )
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-on: http://git-master/r/726127
Reviewed-by: Ajay Gupta <ajayg@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Bibek Basu [Wed, 25 Mar 2015 04:46:43 +0000 (10:16 +0530)]
arm:tegra: increase cpu edp max limit for CD575MI
For 70degC trip due to edp, increase the max limit further
to 76 as the driver applies a tolerance of 5 degC.
Also increase the shutdown limit to 105degC
Bug
1610806
Change-Id: Id6d7ed12c801e850e8147045fff03e5dbcf5d5ef
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/722316
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Bibek Basu [Mon, 23 Mar 2015 17:52:47 +0000 (23:22 +0530)]
arm:tegra: updated fuse support for Jetson TK1
Non negative value of cp_rev should be treated as
a newer properly fused chip
Bug
1610806
Change-Id: I7da1bec91996bbd5a522e2f043147b48272e0500
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/721053
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Ivan Raul Guadarrama [Tue, 25 Nov 2014 11:44:34 +0000 (13:44 +0200)]
video: tegra: hdmi: fix parent clock search
Fix the parent clock search for the display
controller. It addresses the corner case when
the divider difference is just smaller than the
chosen precision and wrongly assumed zero.
An explicit ceiling function is applied for
corretness.
Bug
1580265
Bug
1552739
Change-Id: I47312116c19813260941abcae42e4067a57f3d2c
Signed-off-by: Ivan Raul Guadarrama <iguadarrama@nvidia.com>
Reviewed-on: http://git-master/r/714972
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Naveen Kumar S [Fri, 6 Mar 2015 09:58:55 +0000 (15:28 +0530)]
ARM: config: Enable Android Sync on Linux
Currently Android sync framework is used only in Android side,
however, it provides a generic synchronization framework that
can be used also in Linux.
This patch enables Android Sync framework on T124, T132 and T210
on Linux.
Bug
1601262
Change-Id: I46530a9b1b2245c0ddf8f7bc52b28af247350e14
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/677655
(cherry picked from commit
5998cc1d0d861986e34a74787650a79f3b1cd999 )
Reviewed-on: http://git-master/r/714740
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Naveen Kumar S [Fri, 6 Mar 2015 09:41:39 +0000 (15:11 +0530)]
staging: sync: make sync independent of android
Until now Android Sync framework was being used only in Android,
however, it can be used in Linux too as it provides a generic
synchronization framework. Hence removing Sync framework's dependency
on Android.
bug
1543760
bug
1601262
Change-Id: Ia3c21f0171d0147d0a035ff02c0673b63eced54e
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/714736
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Bibek Basu [Tue, 24 Feb 2015 06:09:40 +0000 (11:39 +0530)]
arm: tegra12: dvfs update for embedded SKU
CD575MI:
Max GPU freq is set to 852Mhz for 4/4/16
cpu_g powered by pllx is set to 1.5 and 1.8Ghz below 0 degC
Enable SOC dvfs for default personality
CD575M:
Lower CPU freq to 1912Mhz @ Max 1.12V
Lower GPU freq to 804Mhz @ Max 1.90V
Bug
1563635
Change-Id: Ib33f34fe2c0580d0f750de40f68560031f7266b0
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/711627
GVS: Gerrit_Virtual_Submit
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Alban Bedel [Tue, 10 Mar 2015 11:19:45 +0000 (16:49 +0530)]
tegra: ictlr: fix crash when an IRQ fire during the probe
The IRQ handler use drvdata, however drvdata was set *after*
registering the IRQ handler. If an IRQ fired before drvdata was set it
would crash the kernel. Fix this by setting drvdata before registering
the IRQ handler.
Bug
200081502
Change-Id: Id8578b2446b167d2b3131bc6f28820fc6f5d9e11
Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/715722
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Pankaj Dabade [Fri, 27 Feb 2015 13:45:26 +0000 (19:15 +0530)]
tegra: dsi: Deselect CSI pads during calibration
Zeroing out mipical register space during DSI
calibration may lead to timeouts with camera(CSI) interface.
Instead, This fix deselects the required CSI pads
for DSI calibration to succeed
Bug
1581879
Change-Id: I535debc233589924a9548a2a1839b617e8d9da0c
Reviewed-on: http://git-master/r/665124
(cherry picked from commit
f01329808d2cb0f01d6add88ed6904dfff665d74 )
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/711996
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Yogish Kulkarni [Mon, 23 Feb 2015 09:51:54 +0000 (15:21 +0530)]
Revert "DROP! Revert "ARM: 7419/1: vfp: fix VFP flushing regression on sigreturn path""
Reverting because this change causes __memcpy_neon() to corrupt if
interrupted by signal handler.
Bug
200046014
This reverts commit
e700ffc891047182e16f53fc0238c8fd9bf72007 .
Change-Id: I53d7214259fcff94e01bed141a4b9e6a7b29890e
Reviewed-on: http://git-master/r/710306
Signed-off-by: Yogish Kulkarni <yogishk@nvidia.com>
(cherry picked from commit
d0ef94fa57264e047bf3873a60d01709a617887b )
Reviewed-on: http://git-master/r/710309
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Ming Wong [Tue, 13 Jan 2015 20:02:31 +0000 (12:02 -0800)]
kernel: add support for ar1335
Bug
1598204
Change-Id: I453d18ce570e57c0feab8dc3b24cc2c957b95301
Signed-off-by: Ming Wong <miwong@nvidia.com>
Reviewed-on: http://git-master/r/672147
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Mahantesh Kumbar [Tue, 14 Oct 2014 12:14:34 +0000 (17:44 +0530)]
gk20a: Moved bind fecs to init_gr_support
-Moved bind fecs from work queue to init_gr_support.
-It makes all CPU->FECS communication to happen before
booting PMU, and after we boot PMU, only PMU talks to
FECS. So it removes possibility to race between CPU
and PMU talking to FECS.
Bug
200032923
Bug
1570774
Change-Id: I01d6d7f61f5e3c0e788d9d77fcabe5a91fe86c84
Reviewed-on: http://git-master/r/559733
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
(cherry picked from commit
1e63d8ae4056dbde82e1788decf7552f0b0af640 )
Reviewed-on: http://git-master/r/666712
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Vijayakumar [Fri, 26 Sep 2014 05:24:09 +0000 (10:54 +0530)]
gpu: nvgpu: send ELPG init cmd after GR is ready
bug
200040021
bug
200032923
bug
1570774
Change-Id: Ic162902bd2f05abab9ebd37392ed56dc4c164ba8
Reviewed-on: http://git-master/r/539995
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
(cherry picked from commit
62e9ba6c8fbabcb77e0ec6267463f51ae319a0b3 )
Reviewed-on: http://git-master/r/666721
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Terje Bergstrom [Wed, 18 Jun 2014 12:37:44 +0000 (15:37 +0300)]
gu: nvgpu: Add PMU state ELPG booting
Add PMU state ELPG booting. Prevent ISR processing when PMU is in OFF
state.
Bug
200006956
Change-Id: Ibcf69a2d81965cc87f520bf864c4425681f04531
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/424769
(cherry picked from commit
f9ce5a2cdf667f8e41f7ed4035678cc1198dc308 )
Reviewed-on: http://git-master/r/657487
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Pankaj Dabade [Thu, 12 Feb 2015 10:28:56 +0000 (15:58 +0530)]
video: fbcon: Keep atleast one mode in modelist
Framebuffer console init requires atleast one valid
mode to exist for it to succeed.
Virtual terminals relies on the success of fbcon_init
without really checking the return value of this function.
Bug
200036424
Change-Id: Ia34da6ab3814f667a485d23ef88e1a52f8b5519b
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/707309
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Shreshtha SAHU [Wed, 15 Oct 2014 06:00:47 +0000 (11:30 +0530)]
tegra: add jetson-tk1 board_info DT node doc
Bug
200006918
Change-Id: Ibd9a004e10316ab817ca85c9093b094a5cb4fed3
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/557204
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Pankaj Dabade [Tue, 10 Feb 2015 10:23:41 +0000 (15:53 +0530)]
tegra: fb: Check DC max pixel clock supported
Check max clock supported by DC before programming it with that mode.
If the requested pixel clock is greater than the maximum supported,
fall back to default mode.
Bug
200031813
Change-Id: I9c5d4373ff0ee8de039af42f46323909b0bec272
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/676941
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Arto Merilainen [Wed, 3 Sep 2014 16:01:19 +0000 (19:01 +0300)]
video: tegra: host: Never release firmware
Firmwares are currently released at the time we close the channel
device node. This causes unexpected side effects in cases where
the finalize_poweron is called only once to get the device booted
during the first time the device is accessed.
This patch fixes the issue by not releasing the firmware after it
has once loaded.
Bug
200033244
Change-Id: I8fc6748846e56ac0cc347feb170b239533a47252
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/495220
(cherry-picked from commit
69bce0a17ad1e5457cfce0d66f6e1b4add7e9820 )
Reviewed-on: http://git-master/r/670671
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Hu He [Tue, 25 Nov 2014 22:59:07 +0000 (14:59 -0800)]
Kernel: add ov4689 kernel driver
Bug
1600299
Change-Id: I63f4d597bcc8b960407a7291fde6aa2ddb5bec25
Signed-off-by: Ming Wong <miwong@nvidia.com>
Reviewed-on: http://git-master/r/674099
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Igor Nabirushkin [Mon, 29 Dec 2014 08:16:30 +0000 (12:16 +0400)]
misc: tegra-profiler: fix debug preempt warnings
Tegra Profiler: fix warnings with CONFIG_DEBUG_PREEMPT=y
* Add the missing preempt_disable/enable() pairs in start/stop ioctls.
* Untie mmap and some other samples from the current cpu.
Bug
200067410
Bug
1598009
Change-Id: I9f03facf3a0ecee20432019ea8094a349c7897d1
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/668123
(cherry picked from commit
ee3374eb9983d1ccadbf3a54c977d3e6db97ec4a )
Reviewed-on: http://git-master/r/672042
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Igor Nabirushkin [Sun, 7 Dec 2014 12:26:34 +0000 (15:26 +0300)]
misc: tegra-profiler: fix sparse warnings
Tegra Profiler: fix sparse static warnings.
Bug
1587428
Bug
1598009
Change-Id: Ic07b4d6247a506109144ceb1b7401f25373d2137
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/660600
(cherry picked from commit
c197f471258f8eb99aa1402ec3a1144b1b34dd65 )
Reviewed-on: http://git-master/r/672041
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Igor Nabirushkin [Tue, 2 Dec 2014 11:48:47 +0000 (15:48 +0400)]
misc: tegra-profiler: fix vsp increment
Decode the unwinding instructions (AArch32): fix incorrect
increment of virtual stack pointer (vsp).
Bug
1584541
Bug
1598009
Change-Id: I4ec64eb21a758b9283df9e6bd6b87a0555180eab
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/658441
(cherry picked from commit
c963ce2532586098ddae159d19a2e241fc25cd1a )
Reviewed-on: http://git-master/r/672040
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Igor Nabirushkin [Tue, 2 Dec 2014 11:23:26 +0000 (15:23 +0400)]
tegra-profiler: record offset of the stack pointer
Tegra Profiler: when collecting backtraces, record
remaining data stack size.
Bug
1584533
Bug
1598009
Change-Id: I608ab73f8e1b7da84221a17a782080fdf5598111
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/658431
(cherry picked from commit
803c1a41e9b7ebcbf297bd7ce5caeed1d1f800ce )
Reviewed-on: http://git-master/r/672039
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Igor Nabirushkin [Mon, 24 Nov 2014 17:54:38 +0000 (21:54 +0400)]
misc: tegra-profiler: add Cortex-A57 events
Tegra Profiler: add ARMv8 Cortex-A57 specific pmu events.
Bug
1582354
Bug
1598009
Change-Id: I72b1e1ccea3d455d91492cb6ad8538f2405c3937
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/654818
(cherry picked from commit
0d4bbf2c837461aa1571d242be80907fbad14482 )
Reviewed-on: http://git-master/r/672035
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Igor Nabirushkin [Wed, 5 Nov 2014 17:10:43 +0000 (21:10 +0400)]
misc: tegra-profiler: add lower bound of memory
Tegra Profiler: add lower bound of memory for unwinding.
Bug
1574379
Bug
1598009
Change-Id: Ia3c412caa0c2adfe603c08b3916bd57f3ea14255
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/594457
(cherry picked from commit
e94dc4b70c045322c27d83fbe56a3c9690258443 )
Reviewed-on: http://git-master/r/672029
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Igor Nabirushkin [Sun, 19 Oct 2014 20:22:32 +0000 (00:22 +0400)]
misc: tegra-profiler: use mmap for samples
Tegra Profiler: send samples via memory mapping areas
to the user space.
Bug
1566270
Bug
1598009
Change-Id: I19aae4ca1f8d6a3ae7c36e99fb018d8fcd2152d3
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/559124
(cherry picked from commit
1a53b2fc3f15aeed1eee0f9aa6e259ae476acb82 )
Reviewed-on: http://git-master/r/672026
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Igor Nabirushkin [Tue, 7 Oct 2014 05:10:31 +0000 (09:10 +0400)]
misc: tegra_profiler: fix build warnings
Fix build warnings for Tegra Profiler.
Bug
1562287
Bug
1598009
Change-Id: I3bab0fdea33a217a8f13284329e6edec9fe35c50
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
(cherry picked from commit
27796155c4a7d33878c0c82c955d6c467d162651 )
Reviewed-on: http://git-master/r/672024
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Igor Nabirushkin [Sun, 28 Sep 2014 20:40:57 +0000 (00:40 +0400)]
misc: tegra_profiler: enable Werror flag
Bug
1559160
Bug
1598009
Change-Id: I73fcaed4f6fb97d2dce6efe16573c5b90c82fde0
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/542493
(cherry picked from commit
bbb307ed7ce749dc7425a50b45c5db773067362a )
Reviewed-on: http://git-master/r/672022
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Igor Nabirushkin [Mon, 1 Sep 2014 20:23:11 +0000 (00:23 +0400)]
misc: tegra-profiler: fix broken call chains
Dwarf unwinding on AArch64: fix broken call chains
for some types of functions.
Bug
1549713
Bug
1598009
Change-Id: Ia3d51723f6381befe01481a5d4d3b4041ad7b411
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/494632
(cherry picked from commit
ec10a69ec9999ff7937a520caa9e562c38b826c6 )
Reviewed-on: http://git-master/r/672020
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Igor Nabirushkin [Fri, 22 Aug 2014 15:46:15 +0000 (19:46 +0400)]
misc: tegra-profiler: support dwarf unwinding
Add implementation of a dwarf unwinding for AArch64.
Bug
1465331
Bug
1598009
Change-Id: I1ff0c5411fe63ea5b7291c53c1d5a1d1cde59c25
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/486989
(cherry picked from commit
f00783180ee09c5698463a39bed62c08ef17802a )
Reviewed-on: http://git-master/r/672019
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Igor Nabirushkin [Tue, 19 Aug 2014 19:13:41 +0000 (23:13 +0400)]
misc: tegra-profiler: fix copy_to_user fails
Do not use copy_to_user while holding a spinlock, it is not safely.
This patch fixes tegra_profiler_test fails on Android L.
Bug
1543109
Bug
1545325
Bug
1598009
Change-Id: Iea7b89d879e1f3a003cd26e06bf6c4dea0b7b1dc
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/482176
(cherry picked from commit
5ac6bc186cdff3efd0d71881dd510a85d3ffc629 )
Reviewed-on: http://git-master/r/672018
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Deepak Nibade [Fri, 25 Jul 2014 07:05:45 +0000 (12:35 +0530)]
misc: tegra-profiler: fix Coverity issue of NULL dereference
Pointer "pt_regs *regs" is first dereferenced and then checked for NULL
To fix this move NULL checking to beginning of function
Coverity id : 26686
Bug
1416640
Bug
1598009
Change-Id: I40e97e38e5a61a5d77ea68fa511e996f24385cfc
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/447532
(cherry picked from commit
4651be4faa111a0ff64a924889b69ec56ae19ace )
Reviewed-on: http://git-master/r/672015
GVS: Gerrit_Virtual_Submit
Reviewed-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Tested-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Shu Zhong [Tue, 1 Jul 2014 17:25:57 +0000 (10:25 -0700)]
misc: tegra-profiler: rd_alloc
quadd_unwind_start calls rd_alloc while holding a spinlock.
This is dangerous because rd_alloc allocates memory with
the GFP_KERNEL flag. This fix simply moves rd_alloc outside
the critical section.
Bug
1529894
Bug
1598009
Change-Id: I284e72d2fdd9089428d75f3c3efb79513a897b7e
Signed-off-by: Shu Zhong <shuz@nvidia.com>
Reviewed-on: http://git-master/r/433264
(cherry picked from commit
e29a862f449b3f1831410162c4360041438017dc )
Reviewed-on: http://git-master/r/672012
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Tested-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Bibek Basu [Wed, 28 Jan 2015 06:11:13 +0000 (11:41 +0530)]
rtc: as3722: add shutdown support
When shutdown process is ongoing, dont allow rtc
read/write/irq activity.Add shutdown hook to the
driver to disable irq and cancel any pending
irq_work
Bug
200072946
Change-Id: I1a68d17ec49ee32e849ad965a144b84be19ba6c5
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/677751
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>