summaryrefslogtreecommitdiff
path: root/drivers/misc
AgeCommit message (Collapse)Author
2014-05-29misc: nct1008: set standby mode while configuringJosh Kuo
Make sure sensor enters standby mode before reprogramming shutdown limit with extended temp range. Bug 1510704 Change-Id: Id7e92ceee2b4b8dea32af8d3d524b83c178b4b7f Signed-off-by: Josh Kuo <joshk@nvidia.com> Reviewed-on: http://git-master/r/411271 (cherry picked from commit 501bfc8976a63ca7dbe5e53e7607deb08e0f3cb1) Reviewed-on: http://git-master/r/415515 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Jinyoung Park <jinyoungp@nvidia.com> Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
2014-05-13arm: tegra: thermal: new ATE rev and marginsDiwakar Tundlam
Added check for new ATE rev (0.9+). Added WAR for ATE revs 0.9-0.11 - continue to use PLL-TSOSC for thermals. Updated thermal thresholds and CPU and GPU EDP margins per thermal margins spreadsheet. Bug 1429685 Bug 1510809 Bug 1511626 Change-Id: I78528be0ed6b01625dd464054fbbf39c810c8873 Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com> Reviewed-on: http://git-master/r/407793 Reviewed-by: Automatic_Commit_Validation_User
2014-05-07arm: tegra: thermal: clean up fuse check apisDiwakar Tundlam
Allow fuse check api to be called only to check the fuse revision. Bug 1429685 Change-Id: I0370f237c4562814af0f41a162bccff2b3db5371 Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com> Reviewed-on: http://git-master/r/405474 Reviewed-on: http://git-master/r/405990 Reviewed-by: Riham Haidar <rhaidar@nvidia.com> Tested-by: Riham Haidar <rhaidar@nvidia.com>
2014-05-06mei: me: do not load the driver if the FW doesn't support MEI interfaceTomas Winkler
commit 5e6533a6f52f1a8283b2f818f5828be99a417dd6 upstream. NM and SPS FW types that may run on ME device on server platforms do not have valid MEI/HECI interface and driver should not be bound to it as this might lead to system hung. In practice not all BIOSes effectively hide such devices from the OS and in some cases it is not possible. We determine FW type by examining Host FW status registers in order to unbind the driver. In this patch we are adding check for ME on Cougar Point, Lynx Point Devices Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Tested-by: Nikola Ciprich <nikola.ciprich@linuxbox.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-05tegra: cec: Driver reworkXia Yang
Change write() to work per frame. Change write() to return -1 on error and set up errno write() API: -Userspace is responsible for re-transmission. -Read from user-space byte by byte, each byte representing a block, up to 16 bytes as specified by HDMI standard. -Return 0 on success transmission, -1 otherwise, with errno setup as follows: EIO - TX_REGISTER_UNDERRUN, should not happen, otherwise driver is have serious timing issue. ECOMM - BUS arbitration failure or anomaly BUS activity. Transmission is abandoned. ECONNRESET - For broadcast message only, someone on the BUS asserted NAK during transmission. EHOSTUNREACH - For direct message only, message was not ACK'd. (Required by logical address allocation) EMSGSIZE - Message size > 16 bit. EFAULT - Page fault accessing message buffer. EINTR - call interrupted by singal. read() API is unchanged, works per packet with no error report. Change-Id: Iabdd92b5658dd63c7b500a7ec88d79a64c8c0a43 Signed-off-by: Xia Yang <xiay@nvidia.com> Reviewed-on: http://git-master/r/304664 (cherry picked from commit 6ab7a446c4a3e8e4970ceec5a3c715453a24e4a5) Signed-off-by: Xia Yang <xiay@nvidia.com> Reviewed-on: http://git-master/r/404052 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2014-05-02drivers: misc: Put CPU1 online before LP0Sai Gurrappadi
If CPU1 is offline before suspend, bring it back online so that it can enter a low enough C-state (C7) for system suspend. Otherwise, CPU1 could potentially be stuck in a lower C-state causing the device to hang on a LP0 request from CPU0. Bug 1427140 Change-Id: Ib254b653f63cad401d7b24fa2c4a83801c9e7377 Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com> Reviewed-on: http://git-master/r/404108 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Peng Du <pdu@nvidia.com> Reviewed-by: Krishna Sitaraman <ksitaraman@nvidia.com> Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
2014-04-29misc: tegra-baseband: support mdm power report interruptNeil Patel
Upon assertion of the MDM_POWER_REPORT signal the AP should set the highest EDP state for the modem. When the signal deasserts the AP should set the previous modem EDP state request. The goal of the signal is to reduce latency of state requests for power increases as USB messaging can easily take longer than the time the modem can stay within its power budget. Bug 1468546 Change-Id: I49ce7a0fc917a26acb6ae282a2c77d76957dceff Signed-off-by: Neil Patel <neilp@nvidia.com> Reviewed-on: http://git-master/r/387882 (cherry picked from commit e487a96a400ad1b850d4f831dbbcd04200bfef0a) Reviewed-on: http://git-master/r/402517 Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com> Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>
2014-04-29misc: tegra-fuse: add Tegra13 A03 revisionAdeel Raza
Add the Tegra13 A03 chip revision. Change-Id: Iffc1ecfb4f64f3ee2a93be3974969ab17aa39e80 Signed-off-by: Adeel Raza <araza@nvidia.com> Reviewed-on: http://git-master/r/401769 GVS: Gerrit_Virtual_Submit Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com>
2014-04-23tegra: fuse: correct START_BIT for arm_debug_disJosh Kuo
correct START_BIT for arm_debug_dis Bug 1496187 Change-Id: I991313f1db8b55191984eca3c2078b83556c4013 Signed-off-by: Josh Kuo <joshk@nvidia.com> Reviewed-on: http://git-master/r/395848 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
2014-04-23misc: mods: Add more MODS tegra dc debugfs filesLael Jones
- Export DSI ganged/instance for DSI heads - Add writable border color interface Signed-off-by: Lael Jones <lajones@nvidia.com> Change-Id: Iba8922ef87de046bfef4b42ca4183fe8f6aefb9d Reviewed-on: http://git-master/r/396615 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Chris Dragan <kdragan@nvidia.com> Reviewed-by: Bo Yan <byan@nvidia.com>
2014-04-23arm: tegra: soctherm: T13x fuse correction updateDiwakar Tundlam
Added check for fuse revisions in T13x and pick the new fuse corrections table for CP revs 0.9 or higher. Bug 1429685 Change-Id: Ib0bfec7e122c22e67ef07b16a0ff7d9642c43644 Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com> Reviewed-on: http://git-master/r/397819 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit
2014-04-23misc: mods: Various updates related to tegra DCLael Jones
- Add ioctl for checking/retrieving bandwidth of a tegra DC window configuration - Add debugfs interfaces setting/getting debug mask - Add debugfs interfaces for setting/getting multi-instance mode - Remove all references to Nv* types Signed-off-by: Lael Jones <lajones@nvidia.com> Change-Id: Ic1a2fb2600ac5175d80c847d7fc9977795b2b822 Reviewed-on: http://git-master/r/390838 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Chris Dragan <kdragan@nvidia.com> Reviewed-by: Bo Yan <byan@nvidia.com>
2014-04-22drivers: misc: therm_est: Fixed factory reset issueHyungwoo Yang
Thermal Estimator tries to access device no more usable during factory reset. Bug 1320678 Bug 1500287 Change-Id: Ic56f550c029ad5b9d9a117ad79ccf5bd03292f86 Signed-off-by: Hyungwoo Yang <hyungwooy@nvidia.com> Reviewed-on: http://git-master/r/255172 (cherry picked from commit 74bc970458ca04c70af2fefc1911acc99d2b9ede) Reviewed-on: http://git-master/r/398360 Reviewed-by: Sujeet Baranwal <sbaranwal@nvidia.com> Tested-by: Sujeet Baranwal <sbaranwal@nvidia.com> Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com> Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
2014-04-10arm: tegra: fuse: Export tegra_get_chipid()Arto Merilainen
Tegra chip ip may be used from modules. This patch adds the necessary exports to allow this Bug 1476801 Change-Id: Ifaaf8839178b36169ec7ec271336454ef3d27ede Signed-off-by: Arto Merilainen <amerilainen@nvidia.com> Reviewed-on: http://git-master/r/387611 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
2014-04-10misc: tegra-profiler: add additional validationsIgor Nabirushkin
Unwinding: add additional validations for stack pointer and instruction pointer. Bug 1495325 Change-Id: Idc8b88be51925b67b8cfc5416ae2204f82f24b41 Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: http://git-master/r/392927 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Tested-by: Maxim Morin <mmorin@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2014-04-10misc: tegra-profiler: fix start hrtimer bugIgor Nabirushkin
Tegra Profiler: device sometimes hangs up when hrtimer_start wakeup flag is enabled (especially on high frequency - more than 10 kHz). Use __hrtimer_start_range_ns function with disabled wakeup flag instead of hrtimer_start. Bug 1495033 Change-Id: I2437df2ee1cd25ab7a76384ba124328d2158b44e Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: http://git-master/r/392698 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Tested-by: Maxim Morin <mmorin@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2014-04-10misc: tegra-profiler: fix backtracesIgor Nabirushkin
Tegra Profiler: fix backtraces from the kernel context. There should be at least one user space address for such chains. Bug 1487562 Change-Id: Ibf1f6d78b5f744f397fbcbab54e45f70b6548fbd Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: http://git-master/r/394493 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Tested-by: Maxim Morin <mmorin@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2014-04-09misc: palmas: Add ldousb input selection driverMallikarjun Kasoju
Palmas LDOUSB has two inputs. This driver supports the selection of inputs based on system voltage which get monitored periodically. The input will get switched to different input based on system voltage. Bug 1451748 Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com> Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Change-Id: Iac686ba5712d4c13a073895782181dd3335ed4c9 Reviewed-on: http://git-master/r/394186 GVS: Gerrit_Virtual_Submit
2014-04-08misc: tegra-profiler: add mixed unwinding modeIgor Nabirushkin
Tegra Profiler: do not break the chains for mixed code - code with exception-handling tables and code with frame pointers Bug 1487488 Change-Id: I4fdc6708ef2b4e86b354e5a9daeaa19689abb2dd Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: http://git-master/r/386241 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Tested-by: Maxim Morin <mmorin@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2014-04-07misc: tegra132: Denver idle test drivervenkatajagadish
Add a driver for testing Denver idle power states. Bug 1419566 Change-Id: I0a925f9602cbd79962a422917ccb0ae496fb30b1 Signed-off-by: Peter Boonstoppel <pboonstoppel@nvidia.com> Signed-off-by: Peng Du <pdu@nvidia.com> Reviewed-on: http://git-master/r/380697 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com>
2014-04-03misc: bluedroid_pm: Added support the cansleep.Phoenix Jung
As we need to call gpio_get/set_value_cansleep() instead of gpio_get/set_value() if the GPIO can sleep, added code to check if a GPIO can sleep. bug 1440706 bug 1481623 Change-Id: I7addd03c5bc78e49e27ab82d5415b3fc7e2ca8a1 Signed-off-by: Phoenix Jung <pjung@nvidia.com> Reviewed-on: http://git-master/r/390655 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Nagarjuna Kristam <nkristam@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
2014-04-03misc: tegra-profiler: correct err data typeSachin Nikam
Coverity defect:25979:Unsigned comparison against 0 is fixed by making err as signed. Bug 1416640 Change-Id: If21cd922f2d274d544178ac9b26c5e56ebb0542d Signed-off-by: Sachin Nikam <snikam@nvidia.com> Reviewed-on: http://git-master/r/384854 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit
2014-03-26misc: tegra-baseband: remove legacy edp codeNeil Patel
With the new sysedp framework in place the older EDP framework code has been removed. The modem driver references to the old framework are removed in this patch. Bug 1486840 Change-Id: Ieeaa5cbce9d493a145db56389f17bae5ece2b7eb Signed-off-by: Neil Patel <neilp@nvidia.com> Reviewed-on: http://git-master/r/385657 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Owain Jones <ojones@nvidia.com> Reviewed-by: Steve Lin <stlin@nvidia.com>
2014-03-25misc: gps: remove pre-check for power stateRakesh Goyal
In some specific cases, power_on variable is not getting updated before next call which cause no actual toggling of force_on GPIO. Removing this logic as GPIO driver takes care of current line state. Bug 1483048 Change-Id: I7e9d5cabb905ba082eb8ee266af14ae99946c39f Signed-off-by: Rakesh Goyal <rgoyal@nvidia.com> Reviewed-on: http://git-master/r/384146 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2014-03-25misc: mods: Add MODS debugfs interfaceLael Jones
Add export of Tegra DC driver features through the MODS debugfs interface Signed-off-by: Lael Jones <lajones@nvidia.com> Change-Id: Ibc3b3a031aca1339fd9b02db816a38b4c32d6730 Reviewed-on: http://git-master/r/382091 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Jon Mayo <jmayo@nvidia.com> Reviewed-by: Dan Merget <dmerget@nvidia.com> Reviewed-by: Chris Dragan <kdragan@nvidia.com> Tested-by: Chris Dragan <kdragan@nvidia.com> Reviewed-by: Bo Yan <byan@nvidia.com> Tested-by: Bo Yan <byan@nvidia.com>
2014-03-21misc: nct1008: use signed long for tempDiwakar Tundlam
Avoid setting signed temperature value into unsigned long pointer Bug 1454792 Change-Id: I583f2296c294b6d499fcdf8e1b9338cce5b8344d Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com> Reviewed-on: http://git-master/r/384655 Reviewed-by: Automatic_Commit_Validation_User
2014-03-20misc: cryptodev: modify driver for 64 bit safenessShravani Dingari
Bug 1466403 Change-Id: I9d122df6ab05d2e7c86ca79fcef144aadf17405d Signed-off-by: Shravani Dingari <shravanid@nvidia.com> Reviewed-on: http://git-master/r/381399 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com> Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
2014-03-19misc: tegra-profiler: support special mappingsIgor Nabirushkin
Tegra Profiler: support special architecture mappings Bug 1480667 Change-Id: I2f1bd67d99888d39bc713a5c58d295b121ad18b2 Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: http://git-master/r/381407 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Tested-by: Maxim Morin <mmorin@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2014-03-19misc: tegra-profiler: Add t132 supportIgor Nabirushkin
Tegra Profiler: add support for t132 Bug 1475730 Change-Id: Id54fe70713c038757e3dfab9fa8b35682f50da73 Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: http://git-master/r/378297 GVS: Gerrit_Virtual_Submit Tested-by: Maxim Morin <mmorin@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2014-03-13arm : tegra: fuse: replace pr_err with dev_errShardar Shariff Md
- replace pr_err with dev_err, pr_dbg with dev_debg - correct the "compatible" name Change-Id: I8ce6b218506792952ca7715835cedd8fde0541b1 Signed-off-by: Shardar Shariff Md <smohammed@nvidia.com> Reviewed-on: http://git-master/r/380938 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
2014-03-13Merge branch 'linux-3.10.33' into dev-kernel-3.10Deepak Nibade
Bug 1456092 Change-Id: Ic563f451abb08754fea0e2bbf0ce065ca2e6e770 Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
2014-03-13Merge branch 'linux-3.10.33' into dev-kernel-3.10Deepak Nibade
Bug 1456092 Change-Id: I3021247ec68a3c2dddd9e98cde13d70a45191d53 Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
2014-03-12arm: tegra: fuse: fix input length checkByungkuk Seo
Fix a mistake that includes hex string prefixes when it counts its input length Bug 1448959 Change-Id: I3f9f07bccc2297c06199290666e27df08596525d Signed-off-by: Byungkuk Seo <bseo@nvidia.com> Reviewed-on: http://git-master/r/366392 Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com> Tested-by: Venu Byravarasu <vbyravarasu@nvidia.com>
2014-03-12misc: tegra: fuse: add dt support for tegra fuseSalona Sinha
Add bindings file for tegra-fuse driver and add tegra fuse specific read and write functions to tegra-fuse driver. Bug 1449516 Change-Id: I1d15dd1341b27eb370fd56be0ecce40726701499 Signed-off-by: Salona Sinha <salonas@nvidia.com> Reviewed-on: http://git-master/r/367716 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Shardar Mohammed <smohammed@nvidia.com> Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com> Tested-by: Nitin Kumbhar <nkumbhar@nvidia.com>
2014-03-11misc: cryptodev: Fix 64 vs 32bit compatibilityShravani Dingari
- Compatibility changes for handling SE structures passed from userspace Bug 1414788 Bug 1459057 Change-Id: Id05b9e5a3a04516e2a80530880bef5564c54d03d Signed-off-by: Shravani Dingari <shravanid@nvidia.com> Reviewed-on: http://git-master/r/350391 Reviewed-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com> Tested-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com> Reviewed-by: Mallikarjun Kasoju <mkasoju@nvidia.com> Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com> Reviewed-on: http://git-master/r/379756 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
2014-03-11misc: nct1008: change overheat enable messageDiwakar Tundlam
Avoid using the word 'warning' in the log message that reports successful setup of the overheat warning message. This confuses tests that scan for errors and warnings on console. Also changed the level of the message to pr_debug. Bug 1436329 Change-Id: Idbc6cc5eed42265a1487a9809969bce7edc7a620 Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com> Reviewed-on: http://git-master/r/378669 Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> Tested-by: Bitan Biswas <bbiswas@nvidia.com>
2014-03-11misc: tegra-profiler: unwinding: add auto modeIgor Nabirushkin
Tegra Profiler: automatic selection of unwinding method (frame pointers or exception-handling tables) Bug 1465331 Change-Id: I8ae85e78b32198c685aab44102f919f33a2bad55 Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: http://git-master/r/377071 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Tested-by: Maxim Morin <mmorin@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2014-03-07driver: misc: Add NVIDIA MODS driver 3.42Chris Dragan
Change-Id: I814c889ffd61f8f751eb26364e46f071885d0a48 Signed-off-by: Chris Dragan <kdragan@nvidia.com> Reviewed-on: http://git-master/r/376625 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Lael Jones <lajones@nvidia.com> Reviewed-by: Vivek Aseeja <vaseeja@nvidia.com> Reviewed-by: Bo Yan <byan@nvidia.com>
2014-03-06mei: set client's read_cb to NULL when flow control failsChao Bi
commit accb884b32e82f943340688c9cd30290531e73e0 upstream. In mei_cl_read_start(), if it fails to send flow control request, it will release "cl->read_cb" but forget to set pointer to NULL, leaving "cl->read_cb" still pointing to random memory, next time this client is operated like mei_release(), it has chance to refer to this wrong pointer. Fixes: PANIC at kfree in mei_release() [228781.826904] Call Trace: [228781.829737] [<c16249b8>] ? mei_cl_unlink+0x48/0xa0 [228781.835283] [<c1624487>] mei_io_cb_free+0x17/0x30 [228781.840733] [<c16265d8>] mei_release+0xa8/0x180 [228781.845989] [<c135c610>] ? __fsnotify_parent+0xa0/0xf0 [228781.851925] [<c1325a69>] __fput+0xd9/0x200 [228781.856696] [<c1325b9d>] ____fput+0xd/0x10 [228781.861467] [<c125cae1>] task_work_run+0x81/0xb0 [228781.866821] [<c1242e53>] do_exit+0x283/0xa00 [228781.871786] [<c1a82b36>] ? kprobe_flush_task+0x66/0xc0 [228781.877722] [<c124eeb8>] ? __dequeue_signal+0x18/0x1a0 [228781.883657] [<c124f072>] ? dequeue_signal+0x32/0x190 [228781.889397] [<c1243744>] do_group_exit+0x34/0xa0 [228781.894750] [<c12517b6>] get_signal_to_deliver+0x206/0x610 [228781.901075] [<c12018d8>] do_signal+0x38/0x100 [228781.906136] [<c1626d1c>] ? mei_read+0x42c/0x4e0 [228781.911393] [<c12600a0>] ? wake_up_bit+0x30/0x30 [228781.916745] [<c16268f0>] ? mei_poll+0x120/0x120 [228781.922001] [<c1324be9>] ? vfs_read+0x89/0x160 [228781.927158] [<c16268f0>] ? mei_poll+0x120/0x120 [228781.932414] [<c133ca34>] ? fget_light+0x44/0xe0 [228781.937670] [<c1324e58>] ? SyS_read+0x68/0x80 [228781.942730] [<c12019f5>] do_notify_resume+0x55/0x70 [228781.948376] [<c1a7de5d>] work_notifysig+0x29/0x30 [228781.953827] [<c1a70000>] ? bad_area+0x5/0x3e Signed-off-by: Chao Bi <chao.bi@intel.com> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-03-05misc: nct1008: unregister thermal before shutdownDiwakar Tundlam
Unregister the device from thermal_zone to stop polling and tracing initiated temp reads once the device is shutdown. Bug 1470029 Change-Id: I3a5512b2460c8bffe4686ccaef8768a3cc5a5910 Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com> Reviewed-on: http://git-master/r/377406 Reviewed-by: Seema Khowala <seemaj@nvidia.com> Tested-by: Seema Khowala <seemaj@nvidia.com>
2014-03-04misc: tegra-throughput: 64-bit compatibilityArto Merilainen
This patch modifies the ioctls to be 64-bit compatible by: - making the tegra_throughput_target_fps_args size explicit - adding .compat_ioctl to support 32bit userspace Bug 1468697 Change-Id: Ib92894e733012171e29096105604353f3ff881df Signed-off-by: Arto Merilainen <amerilainen@nvidia.com> Reviewed-on: http://git-master/r/376948 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
2014-03-04misc: tegra-throughput: check target timeSamuel Russell
Do not send hints if target_frame_time is 0. A target of 0 indicates that the target has not successfully been set. Bug 1432878 Change-Id: Ib3895e11a2aaa152b546f899ae334bd4de9154c8 Signed-off-by: Samuel Russell <samuelr@nvidia.com> Reviewed-on: http://git-master/r/375039 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Arto Merilainen <amerilainen@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2014-03-04misc: nct1008: avoid reading bogus temperatureDiwakar Tundlam
Added a check for temperature above max value and return error when that happens to avoid showing insane temperature values to user. Bogus temperature readout happens rarely due to the NCT device still being initialized and unprepared while interrupts happen. Bug 1454792 Change-Id: I05264a728b8b7bf830d67fc5dd74e1a91c7d6eba Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com> Reviewed-on: http://git-master/r/376832 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit
2014-03-04drivers: tegra-fuse: add AID fuseRich Wiley
bug 1382403 Change-Id: If50fb708639804a4579df5d558f6a9d51a8cb1aa Signed-off-by: Rich Wiley <rwiley@nvidia.com> Reviewed-on: http://git-master/r/373804 Reviewed-by: Adeel Raza <araza@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Chao Xu <cxu@nvidia.com>
2014-03-03misc: tegra_profiler: add unwindingIgor Nabirushkin
Tegra Profiler: unwinding based on exception-handling tables Bug 1465331 Change-Id: I9e8bb2eb342c5dadf82af05bb87040c0925cca1b Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: http://git-master/r/370036 GVS: Gerrit_Virtual_Submit Tested-by: Maxim Morin <mmorin@nvidia.com> Reviewed-by: Mitch Luban <mluban@nvidia.com>
2014-02-26arm: tegra13: soctherm: Ignore fuse check errorDiwakar Tundlam
Until soctherm fuse calibration and correction data is published, assume all fuse values are valid and initialize soctherm accordingly. Also added PMU board_id check to enable THERMTRIP using palmas PMIC info. Bug 1454792 Change-Id: I28c4693d12fb09360dfc42979ff7b8202f6fbf6b Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com> (cherry picked from commit 101d59944e6a1811d6d88e1fe9b341a1dfadac9f)
2014-02-26misc: nct1008: handle remote sensor circuit openDiwakar Tundlam
One some boards, tdiode is not connected the nct device. Detect this state and skip registering the tdiode zone with thermal framework. This avoids spurious error messages and inaccurate thermal cooling device actions. Replaced the old warning about flex connector which was too specific to 'ardbeg/T114' platform with a more device specific error that remote circuit is open. Bug 1454792 Change-Id: I3f5f74765c4ae5fbc9cb06ee53adb8037db6446f Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
2014-02-25ARM: tegra: move timerinfo to drivers/misc/Sumit Singh
Bug 1380001 Change-Id: I0cb9a887ad85b67ba14626e3ab5543525cf26a00 Signed-off-by: Sumit Singh <sumsingh@nvidia.com> Reviewed-on: http://git-master/r/354930 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com>
2014-02-22mei: don't unset read cb ptr on resetAlexander Usyskin
commit 5cb906c7035f03a3a44fecece9d3ff8fcc75d6e0 upstream. Don't set read callback to NULL during reset as this leads to memory leak of both cb and its buffer. The memory is correctly freed during mei_release. The memory leak is detectable by kmemleak if application has open read call while system is going through suspend/resume. unreferenced object 0xecead780 (size 64): comm "AsyncTask #1", pid 1018, jiffies 4294949621 (age 152.440s) hex dump (first 32 bytes): 00 01 10 00 00 02 20 00 00 bf 30 f1 00 00 00 00 ...... ...0..... 00 00 00 00 00 00 00 00 36 01 00 00 00 70 da e2 ........6....p.. backtrace: [<c1a60aec>] kmemleak_alloc+0x3c/0xa0 [<c131ed56>] kmem_cache_alloc_trace+0xc6/0x190 [<c16243c9>] mei_io_cb_init+0x29/0x50 [<c1625722>] mei_cl_read_start+0x102/0x360 [<c16268f3>] mei_read+0x103/0x4e0 [<c1324b09>] vfs_read+0x89/0x160 [<c1324d5f>] SyS_read+0x4f/0x80 [<c1a7b318>] syscall_call+0x7/0xb [<ffffffff>] 0xffffffff unreferenced object 0xe2da7000 (size 512): comm "AsyncTask #1", pid 1018, jiffies 4294949621 (age 152.440s) hex dump (first 32 bytes): 00 6c da e2 7c 00 00 00 00 00 00 00 c0 eb 0c 59 .l..|..........Y 1b 00 00 00 01 00 00 00 02 10 00 00 01 00 00 00 ................ backtrace: [<c1a60aec>] kmemleak_alloc+0x3c/0xa0 [<c131f127>] __kmalloc+0xe7/0x1d0 [<c162447e>] mei_io_cb_alloc_resp_buf+0x2e/0x60 [<c162574c>] mei_cl_read_start+0x12c/0x360 [<c16268f3>] mei_read+0x103/0x4e0 [<c1324b09>] vfs_read+0x89/0x160 [<c1324d5f>] SyS_read+0x4f/0x80 [<c1a7b318>] syscall_call+0x7/0xb [<ffffffff>] 0xffffffff Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-02-22mei: clear write cb from waiting list on resetAlexander Usyskin
commit 30c54df7cb9b15b222529a028390b9c9582dd65e upstream. Clear write callbacks sitting in write_waiting list on reset. Otherwise these callbacks are left dangling and cause memory leak. Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>