]>
rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/log
Preetham Chandru R [Tue, 23 Feb 2016 06:24:34 +0000 (11:54 +0530)]
ata: ahci_tegra: disable DIPM
DIPM is not a POR for Tegra AHCI Sata Controller
Bug
200087528
Change-Id: I5a742170177c9f57426f3756a8cfafefa88af92b
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/
1013776
(cherry picked from commit
7ebd3b1058491ee87686e9e731b79ecd914e00d9 )
Reviewed-on: http://git-master/r/
1031624
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Bhushan Rupde [Fri, 13 May 2016 09:00:19 +0000 (14:30 +0530)]
platform: tegra: nvavp: fix for pre-decrement of clk_enabled cntr
Bug
1729847
Change-Id: Ie455b0469a1d4e35453ca9e36c5e90dfdc6f56a2
Signed-off-by: Bhushan Rupde <brupde@nvidia.com>
Reviewed-on: http://git-master/r/
1147432
Reviewed-by: Mohan Nimaje <mnimaje@nvidia.com>
Reviewed-by: Soumen Dey <sdey@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Arto Merilainen [Tue, 10 May 2016 06:16:03 +0000 (09:16 +0300)]
video: tegra: host: Fix ch open error handling
In case kernel fails to open a channel (e.g. due to inability to
allocate hardware context or turn on the device), the channel open
function releases the resources that were already allocated
successfully.
However, currently the error path additionally calls the channel
release function for putting the channel pointer after the private
data structures have been freed - thereby causing use-after-free
memory usage.
This patch reworks error handling in channel open to release
channel without risking usage of already freed memory.
Bug
1763577
Change-Id: Ic7562e69f2babad653afc7a11e413701494a30b4
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/
1148081
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Tested-by: Winnie Hsu <whsu@nvidia.com>
Deepak Nibade [Fri, 11 Mar 2016 08:29:20 +0000 (13:59 +0530)]
video: tegra: host: check if offset is u32 aligned
In nvhost_ioctl_ctrl_module_regrdwr(), we copy offset
to read/write from user space but we do not have
any check on it
So it is possible for user space to add unaligned
offset and request read/write which would crash the
system
Fix this by explicitly checking alignment of the
offset passed by user space
Bug
1739935
Change-Id: Iea2a07c60500af876b732a0e9d9d08535aa53b5c
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/
1029405
(cherry picked from commit
422baa09a17a6a17f4e572aa5441ca174634de0d )
Reviewed-on: http://git-master/r/
1123363
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>
Frank Chen [Fri, 25 Mar 2016 05:37:18 +0000 (22:37 -0700)]
camera: tegra: Fix security vulnerability issue
Deprecate outdated UPDATE_GPIO function in camera.pcl
driver. This function is not used by any code anymore
and is a security vulnerability since it is trying to
access user mode pointer directly.
Bug
1745102
Change-Id: I4e7e5f9c186f980dcadfe52ec4284102255f19cf
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/
1115302
(cherry picked from commit
2e5c355c904a19d71456a04c70f3fb4fc7d918b0 )
Reviewed-on: http://git-master/r/
1123362
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>
Frank Chen [Mon, 21 Mar 2016 17:40:45 +0000 (10:40 -0700)]
camera: tegra: Fix security vulnerability issue
We need to validate power on/off function size passed
in from user mode in order to avoid integer overflow
or out of memory failures.
Bug
1745100
Change-Id: Idddd848f7dc1e864559ad219f9204325128484e5
Signed-off-by: Frank Chen <frankc@nvidia.com>
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/
1114354
(cherry picked from commit
8b3afcc132882f3102083f9a24de7f55476ca59b )
Reviewed-on: http://git-master/r/
1150944
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Amey Asgaonkar [Mon, 16 May 2016 23:33:15 +0000 (16:33 -0700)]
media: tegra: camera: Fix stack overread
We are not checking a variable which is user
controlled. This can lead to reading of the
stack data. Adding a check to ensure it is
less than the max possible value of the variable.
Bug
1763649
Change-Id: I395e882d030199bdd7684837906a9b5d60741650
Signed-off-by: Amey Asgaonkar <aasgaonkar@nvidia.com>
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/
1150943
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Bibek Basu [Fri, 6 May 2016 10:08:26 +0000 (15:38 +0530)]
arm: tegra: new dvfs update for aging factor
Following support added
DVFS for Gauranteed freq considering aging
CPU freq limit at higher temperature
EDP max current limits for each SKU
Bug
200195229
Change-Id: If00f3fd6b891cf366047dda331bd7ab1c15b40f7
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/
1146577
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Bibek Basu [Tue, 10 May 2016 10:31:17 +0000 (16:01 +0530)]
arm: tegra: emc dvfs selection based on ddr
select emc evfs table based on DDR present
using RAMCODE
Bug
200195279
Change-Id: I7fbc693383c9e231b2c2119020eebc7bba544c6e
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/
1144528
Reviewed-by: Jimmy Zhang <jimmzhang@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Ninad Malwade [Fri, 29 Apr 2016 06:55:48 +0000 (14:55 +0800)]
arm: config: T124: L4T: systemd related configs
Added kernel configurations to support
systemd functionality
boot.img size is increased by 69632 bytes
Bug
1731796
Change-Id: I4209fee15843ac645600500ed8c9fc37b7ff0c04
Signed-off-by: Ninad Malwade <nmalwade@nvidia.com>
Reviewed-on: http://git-master/r/
1134828
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Sri Krishna chowdary [Wed, 27 Apr 2016 04:14:15 +0000 (09:44 +0530)]
video: tegra: nvmap: Add ref count in nvmap_vma_list
Add ref count to prevent invalid vma removal from the h->vmas list
and also allow addition of a different vma which also has same
nvmap_vma_priv as vm_private_data into the h->vmas list. Both cases
are allowed in valid usage of nvmap_vma_open/nvmap_vma_close.
Bug
200164002
Change-Id: Ifc4d281dd91e1d072a9a3ee85e925040bd65a6bc
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/
1133708
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Sri Krishna chowdary [Tue, 12 Jan 2016 10:24:08 +0000 (15:54 +0530)]
[media] v4l: vb2-dma-contig: fix vb2_get_vma()
nvmap expects that same VMA is opened and closed to disallow
memory leaks. So, nvmap panics if a previously non-existent vma
is being closed through it.
Hence modify the sequence in vb2_get_vma() to
open the vma_copy before returning it. This way nvmap sees that
the vma_copy exists in its list and will close the vma.
Bug
200164002
Change-Id: I45dfb8ca710375a0e70d9802ebdcc9fd4d0b4600
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/931997
(cherry picked from commit
bf1d15d8a879a599f9801310cecbbb61ea60e931 )
Reviewed-on: http://git-master/r/
1133707
Tested-by: Bryan Wu <pengw@nvidia.com>
Reviewed-by: Bryan Wu <pengw@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Somu Sundaram [Fri, 18 Mar 2016 07:22:59 +0000 (12:52 +0530)]
media: tegra: nvavp: Fix reloc offset check
- Check whether command buffer data offset is 32-bit
aligned
- Check whether relocation offset is 32-bit aligned
and calculated offset is within command buffer size
- Check whether target offset is 32-bit aligned
and derived address is within target buffer size
Bug
1741516
Change-Id: Ie5370bc1538c8cf9a702904fb88eb850baeb063d
Signed-off-by: Somu Sundaram <somasundaram@nvidia.com>
Reviewed-on: http://git-master/r/
1113949
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Somu Sundaram <somasundarams@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Somu Sundaram [Tue, 15 Mar 2016 13:01:57 +0000 (18:31 +0530)]
media: tegra: nvavp: Fix arbitrary kernel write
Add checks for command buffer offset, relocation
offset in command buffer and target offset for patching
relocation to prevent aritrary kernel write
Bug
1741516
Change-Id: Ia6183ca75f983c0ede23606be9e5d824aa5fa41d
Signed-off-by: Somu Sundaram <somasundaram@nvidia.com>
Reviewed-on: http://git-master/r/
1111699
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Somu Sundaram <somasundarams@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Ben Hutchings [Tue, 16 Jun 2015 21:11:06 +0000 (22:11 +0100)]
pipe: iovec: Fix memory corruption when retrying atomic copy as non-atomic
pipe_iov_copy_{from,to}_user() may be tried twice with the same iovec,
the first time atomically and the second time not. The second attempt
needs to continue from the iovec position, pipe buffer offset and
remaining length where the first attempt failed, but currently the
pipe buffer offset and remaining length are reset. This will corrupt
the piped data (possibly also leading to an information leak between
processes) and may also corrupt kernel memory.
This was fixed upstream by commits
f0d1bec9d58d ("new helper:
copy_page_from_iter()") and
637b58c2887e ("switch pipe_read() to
copy_page_to_iter()"), but those aren't suitable for stable. This fix
for older kernel versions was made by Seth Jennings for RHEL and I
have extracted it from their update.
CVE-2015-1805
Bug
1744232
References: https://bugzilla.redhat.com/show_bug.cgi?id=
1202855
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit
14f81062f365fa9e3839bb2a16862217b71a553c )
Change-Id: Ia5f97a4cfdaa2eb0e2a4974c2f04bc9a75934bd4
Reviewed-on: http://git-master/r/
1111957
(cherry picked from commit
e5bc77c0676277fd0b58ee469bd5638019a65d95 )
Reviewed-on: http://git-master/r/
1112337
GVS: Gerrit_Virtual_Submit
Tested-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Somasundaram S [Thu, 10 Mar 2016 12:03:11 +0000 (17:33 +0530)]
media: tegra: nvavp: Fix heap overflow
Increase NVAVP_MAX_RELOCATION_COUNT to max. possible value
and add check to return error if num_relocs in
nvavp_pushbuffer_submit_ioctl exceeds
NVAVP_MAX_RELOCATION_COUNT
Bug
1739930
Change-Id: Ief36cedd692aa53135fc6a0039b19f18609259dd
Signed-off-by: Somasundaram S <somasundaram@nvidia.com>
Reviewed-on: http://git-master/r/
1030885
Tested-by: Somu Sundaram <somasundarams@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Konsta Holtta [Tue, 8 Mar 2016 12:35:21 +0000 (14:35 +0200)]
gpu: nvgpu: validate wait notification offset
Make sure that the notification object fits within the supplied buffer.
Bug
1739182
Change-Id: Ifb66f848e3758438f37645be6f534f5b60260214
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/
1026431
(cherry picked from commit
2484c47f123c717030aa00253446e8756e1a0807 )
Reviewed-on: http://git-master/r/
1030663
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>
Konsta Holtta [Tue, 8 Mar 2016 11:58:11 +0000 (13:58 +0200)]
gpu: nvgpu: validate error notifier offset
Make sure that the notifier object fits within the supplied buffer.
Bug
1739183
Bug
1739932
Change-Id: I713574ce797ffc23cec10b5114f469dbadc68f1e
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/
1026410
(cherry picked from commit
f476b93eb19b962b8760457102448bd533efc54d )
Reviewed-on: http://git-master/r/
1029379
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Konsta Holtta [Tue, 8 Mar 2016 11:56:19 +0000 (13:56 +0200)]
video: tegra: host: validate error notifier offset
Make sure that the notifier object fits within the supplied buffer.
Bug
1739183
Change-Id: Ifbf46eddea86bedf0236851ea1c3f73e5f820beb
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/
1026409
(cherry picked from commit
4086d2137e9b51137aa335fa264d924c73dea5fc )
Reviewed-on: http://git-master/r/
1029074
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Jeetesh Burman [Tue, 29 Dec 2015 09:59:40 +0000 (15:29 +0530)]
watchdog: remove timeout setting in open call
timeout should not be set as part of open call.
It should be set as part of Probe if watchdog enabled on
probe, Otherwise timeout should be 0 since watchdog is not enabled.
Bug
200160105
Change-Id: I2bc0f35436dafd01d17e3ea2ec5459fd0d75af5a
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/927429
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Jeetesh Burman [Tue, 29 Dec 2015 12:01:11 +0000 (17:31 +0530)]
watchdog: enable TEGRA_WATCHDOG_ENABLE_ON_PROBE
enable TEGRA_WATCHDOG_ENABLE_ON_PROBE to set "timeout" in probe call
Bug
200160105
Change-Id: Ifcef77b3229acee821c5cdd2f31e449e010b9d2f
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/927464
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Bibek Basu [Tue, 8 Dec 2015 05:21:02 +0000 (10:51 +0530)]
tegra: ictlr: clear error status register
Clear error status register during init
Bug
1709814
Change-Id: I348526828015c84027b647bc728355ac9271a5fe
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/842868
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Preetham Chandru R [Mon, 26 Oct 2015 11:51:46 +0000 (17:21 +0530)]
ata: ahci: Enable 40 bit alignment detection
Bug
1694187
Change-Id: Idb8d95f0a7bc099989cc5b7b0bc97bf5cc896b32
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/837972
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Sudhir Vyas [Mon, 18 Aug 2014 13:59:58 +0000 (19:29 +0530)]
video: tegra: host: Query vi/isp max clk-rate
Query max vi/isp clk-rate runtime to calcuate max BW.
Remove max-bw defines.
Bug
1538490
Bug
1695435
Change-Id: I86a5c22fa3c7c9582351bbe9a95776aaea6a613d
Signed-off-by: Sudhir Vyas <svyas@nvidia.com>
Reviewed-on: http://git-master/r/461278
(cherry picked from commit
bbcd86c917430ceea1603e03964296ca4e26ac3a )
Reviewed-on: http://git-master/r/825139
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Tested-by: Frank Shi <fshi@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Bryan Wu [Thu, 15 Oct 2015 20:10:29 +0000 (13:10 -0700)]
media: tegra_camera: introduce 2 kthreads for capture
Use one kthread to start capture a frame and wait for next frame start.
Before waiting, it will move the current buffer to another queue which
will be handled another kthread.
The second kthread (capture_done) will wait for memory output done sync
point event and handle the buffer to videobuffer2 framework as capture
done.
Bug
1686911
Change-Id: Ia092c708ecca3b2e7cbc657a96fd247ea4a00d2f
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/819177
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Bryan Wu [Wed, 14 Oct 2015 18:52:57 +0000 (11:52 -0700)]
media: tegra_camera: replace workqueue with kthread
Use kthread instead of workqueue, which will create a dedicated kernel
thread for capture.
Remove useless mutex and convert spin_lock_irq() to normal spin_lock().
Bug
1686911
Change-Id: Ib236a7ebbdd0359f2705774a979825f1f9e9d82a
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/819176
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Bryan Wu [Tue, 13 Oct 2015 19:47:09 +0000 (12:47 -0700)]
media: tegra_camera: add line alignment check
bytes_per_line should be 64 bytes aligned in Tegra. Add a function to
check that and return the right value for LINE_STRIDE register.
Bug
1694764
Change-Id: I1bb926a416719d19cad509f9a9a7c4fce06b851a
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/816975
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Peter Chiang [Fri, 25 Sep 2015 10:04:17 +0000 (18:04 +0800)]
usb: gadget: composite: Fix cdev null after rmmod
Avoid to disconnect gadget again after unbinding
bug
200141741
Change-Id: I6fadcb4c5b5262d861a865f24ba2d8666e126923
Signed-off-by: Peter Chiang <pchiang@nvidia.com>
Reviewed-on: http://git-master/r/805175
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Hui Fu <hfu@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
Deepak Nibade [Wed, 9 Sep 2015 16:33:56 +0000 (22:03 +0530)]
gpu: nvgpu: re-order POWERGATE_ENABLE operations
re-order POWERGATE_ENABLE operations in opposite
order of POWERGATE_DISABLE
Bug
1679372
Change-Id: Ib72a0b80929e2dee2cf88a6d3d0f96d61c02307b
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/796459
(cherry picked from commit
7e2668f924a986d4bd7d1d2c383431a5e80d9968 )
Reviewed-on: http://git-master/r/801977
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Deepak Nibade [Thu, 10 Sep 2015 10:40:21 +0000 (16:10 +0530)]
gpu: nvgpu: enable powergate always while releasing debug session
Currently, while releasing the debug session we enable powergate
only if a channel is bound to session
If a session has no channel bound to it, and has powergate
disabled, then we do not enable powergate when that session
is closed
Fix this by calling dbg_set_powergate(POWERGATE_ENABLE) always
while releasing the session
Refcounting and sanity checks in dbg_set_powergate() will take
care of situation if powergate was not disabled by the session
in first place
Bug
1679372
Change-Id: I4e027393c611d3e8ab4f20e195f31871086da736
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/796999
cherry picked from commit
671dff8cb0605f865c5da32bd889e2a6fcf133fe )
Reviewed-on: http://git-master/r/801986
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Jeetesh Burman [Sat, 5 Sep 2015 11:55:46 +0000 (17:25 +0530)]
dts: jetson-tk1: change regulator-init-microvolt
change regulator-init-microvolt for ams-as3722.
Bug
1634862
Change-Id: Ie4b9d1976fca9f8bdebfb039ef2c0337e1b55dfd
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/794739
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: R Raj Kumar <rrajk@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Arun Kannan [Fri, 29 May 2015 00:32:44 +0000 (17:32 -0700)]
Kernel: ar0330: change 720p settings
Based on latest info from Aptina, change 720p settings.
Bug
1643556
Change-Id: Ia1ea066ebf265670bb8e0503e9502ac9f24a27ff
Signed-off-by: Arun Kannan <akannan@nvidia.com>
Reviewed-on: http://git-master/r/748499
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Tested-by: Winnie Hsu <whsu@nvidia.com>
Bibek Basu [Mon, 17 Aug 2015 11:18:59 +0000 (16:48 +0530)]
video: tegra: dc: handle tegra_dc_sync_windows error
In case tegra_dc_sync_windows is interrupted by signal,
return the error to caller application
Bug
200090492
Change-Id: Id69fbe38d0abe0b3e71eb5a413db241ebcf0a0ae
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/784754
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Freddy Xin [Tue, 22 Oct 2013 07:32:10 +0000 (15:32 +0800)]
ax88179_178a: Correct the RX error definition in RX header
Correct the definition of AX_RXHDR_CRC_ERR and
AX_RXHDR_DROP_ERR. They are BIT29 and BIT31 in pkt_hdr
seperately.
bug
200009821
Change-Id: Ib55e13899a68a86a847708500dccd475e2f0712a
Signed-off-by: Freddy Xin <freddy@asix.com.tw>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: wtsai <wtsai@nvidia.com>
Reviewed-on: http://git-master/r/434739
Reviewed-on: http://git-master/r/450229
(cherry picked from commit
67e4ec14734d8343116fe7a486de6ec0ad3b9e73 )
Reviewed-on: http://git-master/r/784056
GVS: Gerrit_Virtual_Submit
Reviewed-by: ChihMin Cheng <ccheng@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
Arun Kannan [Tue, 19 May 2015 22:51:08 +0000 (15:51 -0700)]
AR0330: validate with V4L2 for Jetson TK1
Bug
1643556
Change-Id: I7330bd3ec33e2309577c75bac79e120167b0f81e
Signed-off-by: Arun Kannan <akannan@nvidia.com>
Reviewed-on: http://git-master/r/748395
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Tested-by: Winnie Hsu <whsu@nvidia.com>
Bibek Basu [Fri, 7 Aug 2015 05:12:41 +0000 (10:42 +0530)]
arm: tegra12: disable USB_NET_RAW_IP
drop support for USB_NET_RAW_IP as its unused
Bug
200092344
Change-Id: I085330c2ed8a83f83c027d91a03d13d1ce23e4f0
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/780277
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Bibek Basu [Tue, 4 Aug 2015 06:43:23 +0000 (12:13 +0530)]
tegra: ictlr: decrease error severity
Don't panic in case of mselect error
Bug
1652598
Change-Id: Ia07380dae0c10cdea24a865046e7f6bbec7389bc
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/778344
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Bibek Basu [Tue, 4 Aug 2015 06:07:07 +0000 (11:37 +0530)]
arm: tegra: correct dap2_sclk direction
dap2_sclk direction should be input to
take care of the bidirectional nature of the clk
for codec as master and interface as master
Bug
1643925
Change-Id: Iab4f1a30edd3542fbfc0e1f53dd6ea9f604ed42f
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/778298
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Bibek Basu [Fri, 24 Jul 2015 07:22:20 +0000 (12:52 +0530)]
arm64: tegra13: enable shared memory config
enable shared memory config
Bug
1632724
Change-Id: I629eaa63ea54063dc713e21a848768378b3354a3
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/774295
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Varun Wadekar [Wed, 21 May 2014 07:27:04 +0000 (12:57 +0530)]
arm: tegra: headsmp: fix tegra_with_secure_firmware access with MMU off
There are places during the CPU resume path where we access this variable
with MMU off. In such scenarios we should use the physical address for this
variable.
This fixes the virtualisation team's issue, since they were the ones who
reported it in the first place. Fix a case where the code running from
iRAM was accessing the variable from DRAM instead of the one cached in
iRAM.
Bug
1411345
Change-Id: I9005c30329d38bae305a4a7b31ae7e2ca83e8a5d
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/412540
(cherry picked from commit
a0553bb8f3fa7c76c2c0a6528d0c106ee22c7a59 )
Reviewed-on: http://git-master/r/771679
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Tested-by: Bibek Basu <bbasu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Bibek Basu [Tue, 21 Jul 2015 07:17:37 +0000 (12:47 +0530)]
arm: tegra: fix secure firmware check during boot
psci status node should also be checked along with
compatible node to enable secure fimrware
Bug
200124907
Change-Id: Ieb336bc7d1cc2c68d94157222770a6da6a8dcfd1
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/772755
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Bibek Basu [Mon, 20 Jul 2015 08:56:31 +0000 (14:26 +0530)]
arm: tegra: fix debug build issue
Initialize uninitialized variables to get the
build through
Bug
1640594
Change-Id: Ia0788c5852bb8d68a79004e3f2fa1b3d2b9ca2fe
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/772239
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Bibek Basu [Tue, 30 Jun 2015 12:08:02 +0000 (17:38 +0530)]
arm: tegra12: disable CONFIG_UID_STAT
CONFIG_UID_STAT is buggy and not needed
Bug
200115637
Change-Id: I105a46e91cba63508115be6fdd1c2e49962d25e8
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/764550
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Pankaj Dabade [Wed, 24 Jun 2015 09:36:43 +0000 (15:06 +0530)]
backlight: pwm: Converting benign message to info
Making message "unable to request PWM, trying legacy API".
However, failure with legacy API will be treated as error.
Bug
200113810
Change-Id: Ie7bae0c62837a4fde89706d1b9600600c2a49651
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/761732
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Ming Wong [Fri, 12 Jun 2015 20:46:51 +0000 (13:46 -0700)]
media:ar0330: add 4 lanes setting 2048x1296
bug
1655159
Change-Id: I5c09cb63075f3465e90aee4f3619df02c34bca95
Signed-off-by: Ming Wong <miwong@nvidia.com>
Reviewed-on: http://git-master/r/757527
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 [Tue, 23 Jun 2015 05:41:44 +0000 (11:11 +0530)]
mmc: tegra: reverify tuning best tap
tuning best_tap_value at times throws wrong value leading
to data crc error. To make the SW robust, reverify tuning
best_tap_value with previously calculated and then only
proceed.
Bug
200107220
Bug
200102727
Change-Id: If58194bcfd1f025b15f827b233b534b8fc999327
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/761054
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Tested-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Bryan Wu [Mon, 8 Jun 2015 22:01:25 +0000 (15:01 -0700)]
media: tegra_camera: add start streaming call
Queueing buffer might happen before starting streaming. So any queueing
buffer operation before starting streaming shouldn't trigger real
capture but just queue the buffer. After starting streaming, it will
wake up kernel workqueue to start real capture.
Bug
1639982
Change-Id: I66fd527bbd12790b2d688f320214976e70a658f3
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/754710
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: David Wang (SW-TEGRA) <davidw@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Bryan Wu [Thu, 28 May 2015 00:09:45 +0000 (17:09 -0700)]
media: tegra_camera: optimize single shot mode
Current single shot mode, pixel parser is disabled after capture one
frame and software waits for memory write ack done syncpoint, which
only gives us half the frame rate.
Optimized single shot mode:
- during capture setup, set single shot mode
- for each frame, wait for FRAME_START syncpoint
- arm single shot bit to start capture
- for the last frame, wait for MWA_DONE syncpoint to make sure capture
finished.
With optimized single shot mode, frame rate is about 4208x3120 @ 24fps
for IMX135 and 1920x1080 @ 30fps for AR0261.
Bug
1639982
Change-Id: I0b15d02c2853647d03f5b2d38a7fe5c145174bd5
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/754709
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: David Wang (SW-TEGRA) <davidw@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Winnie Hsu [Thu, 18 Jun 2015 23:13:29 +0000 (16:13 -0700)]
Revert "video: tegra: Wait PMU finishes booting"
This reverts commit
f69b7093accdacfa653b4bd45d78e04a2676dc2a .
Bug
200055546
Bug
200114503
Change-Id: I165a3da9f418657d86bf39fbe3db2adc13762c87
Signed-off-by: Winnie Hsu <whsu@nvidia.com>
Reviewed-on: http://git-master/r/759875
Naveen Kumar S [Wed, 6 May 2015 07:21:43 +0000 (12:51 +0530)]
video: tegra: dsi: add delay after register write
Providing a small delay after writing to dc registers while
stopping dc stream helps in stabilizing the registers. This
helps in resolving the intermittent register read failure issue.
bug
200087039
Change-Id: I159d1d75aa2472b9e33bc42d890382f33def218a
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/746062
(cherry picked from commit
d29669af88735a2aeeb87b26f8794c9bcbb9f058 )
Reviewed-on: http://git-master/r/756015
Reviewed-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Jeetesh Burman [Thu, 18 Jun 2015 05:51:46 +0000 (11:21 +0530)]
Revert "platform: tegra: Define DDR Tap/trim varibles"
This reverts commit
24584959ad4822e985e3a072ca8f44b69f2afc33 .
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Change-Id: I5a2b7c64f47643ef482caa8b2da81d018747109b
Reviewed-on: http://git-master/r/759478
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Jeetesh Burman [Thu, 18 Jun 2015 05:51:19 +0000 (11:21 +0530)]
Revert "mmc: tegra: Fix missing tap hole margins print"
This reverts commit
6ad6591bf83670f91ab5f7628b5a6c3db3e9da4c .
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Change-Id: If31a8a2a53a804657ebc5878be8594230acba2aa
Reviewed-on: http://git-master/r/759477
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Jeetesh Burman [Thu, 18 Jun 2015 05:50:50 +0000 (11:20 +0530)]
Revert "mmc: tegra: disable card clk before setting tap"
This reverts commit
f9b36d3b89f76cc48678eeb7a27cb980e89901d0 .
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Change-Id: Ie862afeda5e7e5b360775248fbbc49a031528a0b
Reviewed-on: http://git-master/r/759476
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Jeetesh Burman [Thu, 18 Jun 2015 05:50:20 +0000 (11:20 +0530)]
Revert "mmc: tegra: Use 100000 precision instead of 1000"
This reverts commit
3c5f4d1060669ec73dc0ceb4e9a876a55a89c5eb .
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Change-Id: Ic0e3eb4bb892e69dbd808c1d55721290c561ac7c
Reviewed-on: http://git-master/r/759475
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Jeetesh Burman [Thu, 18 Jun 2015 05:49:52 +0000 (11:19 +0530)]
Revert "mmc: tegra: Initialize margin addition variables"
This reverts commit
af2031797899b32504e32af377fa65875c06a746 .
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Change-Id: I21c89606f1eed0e7d4445c5dfcf7e6d2382829e7
Reviewed-on: http://git-master/r/759474
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Jeetesh Burman [Thu, 18 Jun 2015 05:49:27 +0000 (11:19 +0530)]
Revert "mmc: tegra: select fixed tap hole margin values"
This reverts commit
8eadba170693964dc30b1e6ab0a80df012858bc0 .
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Change-Id: Icd990d1e9c8df4c66c46e7e29a03cc6233e206bd
Reviewed-on: http://git-master/r/759473
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
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>