summaryrefslogtreecommitdiff
path: root/drivers
AgeCommit message (Collapse)Author
2015-05-12nvmap: page pool: fix background threadColin Cross
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>
2015-05-12nvmap: combine two methods of requesting zeroed memoryColin Cross
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>
2015-05-12nvmap: page pools: hide internal lock from nvmap_handle.cColin Cross
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>
2015-05-12nvmap: replace page pool array with a listColin Cross
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>
2015-05-12Revert "video: tegra: nvmap: clean cache during page allocations into page pool"Krishna Reddy
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>
2015-05-11vga: Make absence of device message as debug printPankaj Dabade
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>
2015-05-04mmc: tegra: Abort tuning if device is removedJeetesh Burman
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>
2015-05-04mmc: sdhci: tegra: update T2T and Tap hole for VCM30T124Seshagir.H
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>
2015-05-04mmc: tegra: select fixed tap hole margin valuesSeshagir.H
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>
2015-05-04mmc: tegra: Initialize margin addition variablesJeetesh Burman
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>
2015-05-04mmc: tegra: Use 100000 precision instead of 1000Jeetesh Burman
-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>
2015-05-04mmc: tegra: disable card clk before setting tapJeetesh Burman
-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>
2015-05-04mmc: tegra: Fix missing tap hole margins printJeetesh Burman
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>
2015-04-17kernel: add ar0330 2304x1520 resolutionMing Wong
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>
2015-04-15kernel: add imx185 sensor supportKassey Li
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>
2015-04-15iommu/tegra: smmu: Fix race condition in writing PTC registersKrishna Reddy
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
2015-04-14media: tegra_v4l2_camera: add CSI caliabrationBryan Wu
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>
2015-04-07pinctrl: tegra: Add MIPI pad controlBibek Basu
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>
2015-04-06xhci: Silence "xHCI xhci_drop_endpoint called with disabled ep ..." messagesHans de Goede
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>
2015-04-06usb: xhci: tegra: fix wake from LP1Joy Wang
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>
2015-03-18video: tegra: hdmi: fix parent clock searchIvan Raul Guadarrama
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>
2015-03-17staging: sync: make sync independent of androidNaveen Kumar S
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>
2015-03-11tegra: ictlr: fix crash when an IRQ fire during the probeAlban Bedel
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>
2015-03-02tegra: dsi: Deselect CSI pads during calibrationPankaj Dabade
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>
2015-02-26kernel: add support for ar1335Ming Wong
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>
2015-02-17gk20a: Moved bind fecs to init_gr_supportMahantesh Kumbar
-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>
2015-02-17gpu: nvgpu: send ELPG init cmd after GR is readyVijayakumar
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>
2015-02-17gu: nvgpu: Add PMU state ELPG bootingTerje Bergstrom
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>
2015-02-17video: fbcon: Keep atleast one mode in modelistPankaj Dabade
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>
2015-02-10tegra: fb: Check DC max pixel clock supportedPankaj Dabade
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>
2015-02-10video: tegra: host: Never release firmwareArto Merilainen
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>
2015-02-09Kernel: add ov4689 kernel driverHu He
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
2015-01-29misc: tegra-profiler: fix debug preempt warningstegra-l4t-r21.3tegra-l4t-r21-er-2015-02-02Igor Nabirushkin
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>
2015-01-29misc: tegra-profiler: fix sparse warningsIgor Nabirushkin
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>
2015-01-29misc: tegra-profiler: fix vsp incrementIgor Nabirushkin
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>
2015-01-29tegra-profiler: record offset of the stack pointerIgor Nabirushkin
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>
2015-01-29misc: tegra-profiler: add Cortex-A57 eventsIgor Nabirushkin
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>
2015-01-29misc: tegra-profiler: add lower bound of memoryIgor Nabirushkin
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>
2015-01-29misc: tegra-profiler: use mmap for samplesIgor Nabirushkin
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>
2015-01-29misc: tegra_profiler: fix build warningsIgor Nabirushkin
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>
2015-01-29misc: tegra_profiler: enable Werror flagIgor Nabirushkin
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>
2015-01-29misc: tegra-profiler: fix broken call chainsIgor Nabirushkin
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>
2015-01-29misc: tegra-profiler: support dwarf unwindingIgor Nabirushkin
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>
2015-01-29misc: tegra-profiler: fix copy_to_user failsIgor Nabirushkin
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>
2015-01-29misc: tegra-profiler: fix Coverity issue of NULL dereferenceDeepak Nibade
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>
2015-01-29misc: tegra-profiler: rd_allocShu Zhong
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>
2015-01-29rtc: as3722: add shutdown supportBibek Basu
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>
2015-01-29rtc: add rtc_shutdown api to service pending workBibek Basu
During shutdown/reboot process, its better to finish any pending irqwork so that the work is not scheduled after devices like i2c are shutdown. This patch provides hook to be called from rtc driver after disabling rtc irq. Also any further request to access rtc_class_ops will be prohibited. Bug 200072946 Change-Id: I8eb20e5214a31fbc8a280ccfff8e190a5fabbb96 Signed-off-by: Bibek Basu <bbasu@nvidia.com> Reviewed-on: http://git-master/r/677750 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Venkat Moganty <vmoganty@nvidia.com> Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
2015-01-20FIQ: Implement WDT FIQ debuggerRenn Wu
Implement Tegra WDT FIQ debug function. Default is disabled. Bug 1581432 Change-Id: Ic81ab4cd3285080016b37191e6e0fab18e330a30 Signed-off-by: Renn Wu <rewu@nvidia.com> Reviewed-on: http://git-master/r/#/c/271988 Reviewed-on: http://git-master/r/662550 Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
2015-01-20tegra: dc: Unsetting DC to default mode in probePankaj Dabade
During probe, for L4t-HDMI, monitor specs are read and set before DC is enabled. DC will fall back to default mode only when a invalid request is made by monitor. Bug 200020671 Bug 200031813 Change-Id: I5138e76afe8b2e5bfef1ee1941455827df34a1c0 Signed-off-by: Pankaj Dabade <pdabade@nvidia.com> Reviewed-on: http://git-master/r/673655 Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>