summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)Author
2016-06-29kernel: add support for gcc 5Sasha Levin
We're missing include/linux/compiler-gcc5.h which is required now because gcc branched off to v5 in trunk. Just copy the relevant bits out of include/linux/compiler-gcc4.h, no new code is added as of now. This fixes a build error when using gcc 5. Signed-off-by: Sasha Levin <sasha.levin@oracle.com> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> (cherry picked from commit 71458cfc782eafe4b27656e078d379a34e472adf)
2016-05-20camera: tegra: Fix security vulnerability issueFrank Chen
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>
2016-03-16media: tegra: nvavp: Fix heap overflowSomasundaram S
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>
2015-06-18Revert "platform: tegra: Define DDR Tap/trim varibles"Jeetesh Burman
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>
2015-06-18Revert "mmc: tegra: select fixed tap hole margin values"Jeetesh Burman
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>
2015-06-08watchdog: use FIQ WDT for soft lockup stack dumpRenn Wu
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>
2015-05-29misc: tegra-profiler: add cpu notifierIgor Nabirushkin
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>
2015-05-29misc: tegra-profiler: fix broken backtracesIgor Nabirushkin
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>
2015-05-29misc: tegra-profiler: add unwind entry checkingDmitry Antipov
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>
2015-05-29misc: tegra-profiler: add unwind reason codesIgor Nabirushkin
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>
2015-05-29misc: tegra-profiler: add task statesIgor Nabirushkin
* 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>
2015-05-29misc: tegra-profiler: add unwind reason codesIgor Nabirushkin
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>
2015-05-29misc: tegra-profiler: support eh_frame sectionsIgor Nabirushkin
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>
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-04platform: tegra: Define DDR Tap/trim variblesNaveen Kumar Arepalli
Bug 1563244 Change-Id: Ic4a43df8d11f87b3f62c652109abf540874224c4 Reviewed-on: http://git-master/r/#/c/557255/ Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com> (cherry picked from commit fd23e040930d735191a4fcc85ba692496aeb8b56) Reviewed-on: http://git-master/r/737315 GVS: Gerrit_Virtual_Submit Reviewed-by: Jeetesh Burman <jburman@nvidia.com> Tested-by: Jeetesh Burman <jburman@nvidia.com> Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
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-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-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-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 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-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-14gpu: nvgpu: Allow suppressing WFI on submitTerje Bergstrom
Allow suppressing WFI when submitting work and requesting a fence back. Bug 1491545 Change-Id: Ic3d061bb4f116cf7ea68dbd6a1b2ace9f11d0ab5 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/390457 Reviewed-on: http://git-master/r/671029 GVS: Gerrit_Virtual_Submit Reviewed-by: Sibashis Mohapatra <sibashism@nvidia.com> Tested-by: Sibashis Mohapatra <sibashism@nvidia.com> Reviewed-by: Yogesh Kini <ykini@nvidia.com> Reviewed-by: Winnie Hsu <whsu@nvidia.com>
2015-01-09misc: nv-sensorhub: tty line disc for sensorhubArun Kannan
Line discipline driver for sensorhub stream. Bug 1591540 Change-Id: Ic867019b4d06091d27b55ee2560fc337e2e59523 Signed-off-by: Arun Kannan <akannan@nvidia.com> Reviewed-on: http://git-master/r/664091 GVS: Gerrit_Virtual_Submit Reviewed-by: Kamal Balagopalan <kbalagopalan@nvidia.com> Tested-by: Kamal Balagopalan <kbalagopalan@nvidia.com> Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
2015-01-07AR0261: validate with V4L2 for Jetson TK1Bryan Wu
Change-Id: I1c00d571e294ccf1c4d795bb90e71defd3395293 Signed-off-by: Bryan Wu <pengw@nvidia.com> Reviewed-on: http://git-master/r/591333 Reviewed-by: Venkat Moganty <vmoganty@nvidia.com> (cherry picked from commit b87d110ddc52048944862fb8bf019922333b1dd5) Reviewed-on: http://git-master/r/665999 Reviewed-by: Winnie Hsu <whsu@nvidia.com> Tested-by: Winnie Hsu <whsu@nvidia.com>
2015-01-06gpu: nvgpu: implement mapping for sparse allocationKirill Artamonov
Implement support for partial buffer mappings. Whitelist gr_pri_bes_crop_hww_esr accessed by fec during sparse texture initialization. bug 1456562 bug 1369014 bug 1361532 Change-Id: Ib0d1ec6438257ac14b40c8466b37856b67e7e34d Signed-off-by: Kirill Artamonov <kartamonov@nvidia.com> Reviewed-on: http://git-master/r/375012 (cherry picked from commit a24470f69961508412402b9b06d5b71fbf6f7549) Reviewed-on: http://git-master/r/601754 Tested-by: Rajkumar Kasirajan <rkasirajan@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Winnie Hsu <whsu@nvidia.com>
2014-12-18ARM: dts: tegra: add sata connector property nodePreetham Chandru R
Bug 1557711 Change-Id: I25dd3b4efb8e25c010f0173b8509785ebb9a9a3d Signed-off-by: Preetham Chandru R <pchandru@nvidia.com> Reviewed-on: http://git-master/r/662418 GVS: Gerrit_Virtual_Submit Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
2014-12-16ARM: tegra12: update pinmux for jetson-tk1Bibek Basu
Update pinmux for jetson-tk1 based on Jetson_TK1_customer_pinmux.xlsm V08 Bug 1551864 Change-Id: I3caee3e1485c95ff1a72b43529aa3c105397b5ac Signed-off-by: Bibek Basu <bbasu@nvidia.com> Reviewed-on: http://git-master/r/655141 GVS: Gerrit_Virtual_Submit Reviewed-by: Venkat Moganty <vmoganty@nvidia.com> Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
2014-11-21arm: tegra12: add support for CD575M 24x7 ChipBibek Basu
Added DVFS support for CD575M Always on behaviour. With this personality configuration for the chip,the lifetime of the chip increases to 5 Yrs Operating Temp : -25 to 105 degC CPU DVFS: Max Freq 1938Mhz. Max Voltage 1.12V SOC DVFS: Max Voltage0 1.01V EMC dvfs max freq 792Mhz GPU DVFS: Max Freq 804Mhz and Ma Voltage 1.09V Bug 1563635 Change-Id: If7fec38b83ae4de8c5435006207fa3cf717384c0 Signed-off-by: Bibek Basu <bbasu@nvidia.com> Reviewed-on: http://git-master/r/594855 GVS: Gerrit_Virtual_Submit Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
2014-11-14kernel: driver: modify ar0330 power sequenceMing Wong
Bug 1552628 Bug 1576621 Change-Id: Icc881724f0e4e5c0346aa44ffeb80dc8d498919c Signed-off-by: Ming Wong <miwong@nvidia.com> Reviewed-on: http://git-master/r/598929 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Frank Chen <frankc@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com>
2014-11-04kernel: add ar0330 supportMing Wong
add support for dual ar0330 Bug 1552628 Change-Id: I6ccd6ea0886f17710de3e241c408788cc608dce9 Signed-off-by: Ming Wong <miwong@nvidia.com> Reviewed-on: http://git-master/r/558147 GVS: Gerrit_Virtual_Submit Reviewed-by: Sachin Nikam <snikam@nvidia.com>
2014-10-29media: tegra: add regulator vana for dw9718Shreshtha Sahu
add regulator vana for dw9718 Bug 1259310 Change-Id: I654669b1f02af9b7afbf51e8077a4f8324ead403 Signed-off-by: Shreshtha Sahu <ssahu@nvidia.com> Signed-off-by: Mihir Thakkar <mthakkar@nvidia.com> Reviewed-on: http://git-master/r/555460 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Tested-by: Tushar Khinvasara <tkhinvasara@nvidia.com> Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
2014-09-26media: soc_camera: add imx135 sensor driverBryan Wu
Sony IMX135 camera sensor can be found on Ardbeg/Laguna. This patch introduced sensor driver for imx135 using soc_camera interface. Bug 1380143 Change-Id: Ifa0becf1ec2d9931ebf9ea3a4e9ea3e1013a9e36 Signed-off-by: Bryan Wu <pengw@nvidia.com> Reviewed-on: http://git-master/r/337469 (cherry picked from commit 94a04c2c9b614519aab6f718d60bcf1d8032aa8f) Reviewed-on: http://git-master/r/498935 GVS: Gerrit_Virtual_Submit Reviewed-by: Matthew Pedro <mapedro@nvidia.com> Reviewed-by: Winnie Hsu <whsu@nvidia.com>
2014-09-19edp: sysedp : CPU/GPU priority depends on fGPUMatt Longnecker
Provide sysedp_dynamic_capping with the instantaneous GPU frequency when notifying it of the GPU load. Modify the gpu/cpu priority decision logic to choose CPU priority until GPU frequency gets "near" the CPU-priority-limited-GPU-fmax. Introduce the priority_bias debugfs parameter to facilitate tuning of "near". priority_bias takes a value from 0 to 100. Change-Id: I57df17d50cd8077a512b5932f4a304ca5e6992aa Signed-off-by: Matt Longnecker <mlongnecker@nvidia.com> Reviewed-on: http://git-master/r/481720 (cherry picked from commit b2ac745a45e273e849d7b190913ee97092fdebc2) Reviewed-on: http://git-master/r/498901 GVS: Gerrit_Virtual_Submit Reviewed-by: Winnie Hsu <whsu@nvidia.com>
2014-09-16arm: tegra: power: add pcie dependency to xusb opsHaribabu Narayanan
Due to a HW bug 1320346 in t12x/t13x, PCIE needs to be unpowergated when XUSB is to be accessed. Currently PCIE powergating ops need to be invoked from XUSB driver since powergating module doesn't internally handle this dependency. This patch implements this dependency within the powergating module so that xhci-tegra driver can stay chip-agnostic. Bug 1451279 Bug 1524744 Bug 200027067 Change-Id: I57da2645c9bde1c98b73a906f2ff5e407a3a8380 Reviewed-on: http://git-master/r/424035 (cherry picked from commit ff373b04f297ee653c58a86c6642325037f5d10e) Signed-off-by: Vidya Sagar <vidyas@nvidia.com> Reviewed-on: http://git-master/r/498661 Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
2014-09-16arm: tegra: power: add reference counters for pcieHaribabu Narayanan
Due to HW Bug 1320346, both XUSB and PCIE modules need to control powergating on PCIE block. Implement reference counter mechanism so that powergating is done only when neither of these two drivers are active. Bug 1451279 Bug 1455032 Bug 200027067 Change-Id: I6866ba0fb47433e211360b722abbb1b2c1a05c35 Reviewed-on: http://git-master/r/418060 (cherry picked from commit 70be55b824632252be36f6ee0d495d4c0f4e507c) Signed-off-by: Vidya Sagar <vidyas@nvidia.com> Reviewed-on: http://git-master/r/498659 Reviewed-by: Matthew Pedro <mapedro@nvidia.com> Tested-by: Matthew Pedro <mapedro@nvidia.com>
2014-09-03pwm: Add sysfs interfaceH Hartley Sweeten
Add a simple sysfs interface to the generic PWM framework. /sys/class/pwm/ `-- pwmchipN/ for each PWM chip |-- export (w/o) ask the kernel to export a PWM channel |-- npwm (r/o) number of PWM channels in this PWM chip |-- pwmX/ for each exported PWM channel | |-- duty_cycle (r/w) duty cycle (in nanoseconds) | |-- enable (r/w) enable/disable PWM | |-- period (r/w) period (in nanoseconds) | `-- polarity (r/w) polarity of PWM (normal/inversed) `-- unexport (w/o) return a PWM channel to the kernel Based on work by Lars Poeschel. Bug 200028381 Change-Id: I0c9c6ad2ca7173e6fc3fbe1d3cd3963cde00539a Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Thierry Reding <thierry.reding@gmail.com> Cc: Lars Poeschel <poeschel@lemonage.de> Cc: Ryan Mallon <rmallon@gmail.com> Cc: Rob Landley <rob@landley.net> Signed-off-by: Thierry Reding <thierry.reding@gmail.com> Signed-off-by: Bibek Basu <bbasu@nvidia.com> (cherry picked from commit 76abbdde2d95a3807d0dc6bf9f84d03d0dbd4f3d) Reviewed-on: http://git-master/r/455068 (cherry picked from commit b1824bc0325f84ea04dab7d6d4f7c887c80b1982) Reviewed-on: http://git-master/r/488690 GVS: Gerrit_Virtual_Submit Reviewed-by: Winnie Hsu <whsu@nvidia.com> Tested-by: Winnie Hsu <whsu@nvidia.com>
2014-08-26cpufreq: Clean up header files included in the coreViresh Kumar
This patch addresses the following issues in the header files in the cpufreq core: - Include headers in ascending order, so that we don't add same many times by mistake. - <asm/> must be included after <linux/>, so that they override whatever they need to. - Remove unnecessary includes. - Don't include files already included by cpufreq.h or cpufreq_governor.h. Bug 1359622 [rjw: Changelog] Change-Id: I3d69d7243b982cd2e32abfdfb9dd750843a07629 Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> (cherry picked from commit 5ff0a268037d344f86df690ccb994d8bc015d2d9) Reviewed-on: http://git-master/r/482370 Tested-by: Rajkumar Kasirajan <rkasirajan@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: Winnie Hsu <whsu@nvidia.com>
2014-08-20media: platform: tegra: support 64 bit user codeCharlie Huang
Since the user space code may works in either 32 or 64 bit mode, attentions should be taken while passing pointers from user space to the kernel. In this case, the p_value of struct nvc_param and power_on/power_off of struct virtual_device received from the user space should be handled properly. The solution is to create a set of 32 bit version of structures nvc_param and virtual_device along with some dedicated 32 bit mode ioctl commands, then in the ioctl functions, the 32 bit user mode access will be handled separately. bug 1518359 Change-Id: I4cbbeeaef446ab962aaa1f92251ce1fd9d5723aa Signed-off-by: Charlie Huang <chahuang@nvidia.com> Reviewed-on: http://git-master/r/437390 (cherry picked from commit 3fdbc210fc9f33d0f89af079a89bdb1f41e73ecb) Reviewed-on: http://git-master/r/482230 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
2014-07-10devfreq: Account only powered time in trans_statArto Merilainen
This patch modifies devfreq to account only the time a device is powered in trans_stat. In addition, this patch also fixes a race in trans_stat maintenance in cases where the node is readed at the same time the transition table is being updated by frequency re-estimation. Change-Id: I6e4341317b6dda88d69028c9f67785400e5a7a65 Signed-off-by: Arto Merilainen <amerilainen@nvidia.com> Reviewed-on: http://git-master/r/435174 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com> Reviewed-by: Prajakta Gudadhe <pgudadhe@nvidia.com> Reviewed-by: Samuel Russell <samuelr@nvidia.com> Tested-by: Samuel Russell <samuelr@nvidia.com> Reviewed-by: Ilan Aelion <iaelion@nvidia.com>
2014-07-07misc: tegra-profiler: add time source optionIgor Nabirushkin
* Add time source option (CNTVCT or kernel monotonic clock). * Do not use arch timer if user does not have direct access to CNTVCT register. Bug 1508327 Change-Id: I0efc619146c1256ac57120b8646ecd8e819a1315 Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com> Reviewed-on: http://git-master/r/427620 (cherry picked from commit 5e375e6dbca8211bb2af04bd25d5e5d66371aa4f) Reviewed-on: http://git-master/r/433507 Reviewed-by: Andrey Trachenko <atrachenko@nvidia.com> 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-06-30base: dma-contiguous: add API to specify the start of allocationKrishna Reddy
Add API dma_alloc_at_from_contiguous to support allocations at specific phys address. Bug 200016405 Change-Id: I425a25af3163c391e6b7d9b8bc3299f3ffc7c7c8 Signed-off-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-on: http://git-master/r/431949 GVS: Gerrit_Virtual_Submit
2014-06-27input: touch: Raydium: v73.10 code dropAlex Chen
Bug 200004233 1. Raising service priority to avoid "service busy" issue while system fully loading 2. Test_mode function@driver (Change idle escape threshold at runtime) Usage: a. Disable: echo 0 > /sys/devices/virtual/misc/touch/test_mode b. Enable: echo 1 > /sys/devices/virtual/misc/touch/test_mode c. Set: echo 2 2 100 > /sys/devices/virtual/misc/touch/test_mode (take touch threshold 100 as example) d. Check: cat /sys/devices/virtual/misc/touch/test_mode 3. Coding style refine 4. Add mutex_lock/mutex_unlock protection in KRL_CMD_FLUSH_QU command table Change-Id: Iebfd42c359b510e7102d54c9b8537382c8788242 Signed-off-by: Alex Chen <alchen@nvidia.com> Reviewed-on: http://git-master/r/432095 Reviewed-by: Jordan Nien <jnien@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Xiaohui Tao <xtao@nvidia.com> Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
2014-06-25video: tegra: dc: accept CSC on window updateJon Mayo
This patch permits changing of the current CSC coefficients. It cannot be used with interlaced mode. Adds fields to skip window CSC programming if nothing has changed. Bug 1522546 Change-Id: If8fc6a5d634e4b300ef0de6a5913188fe1f1efb0 Signed-off-by: Jon Mayo <jmayo@nvidia.com> Reviewed-on: http://git-master/r/422885 (cherry picked from commit 4aa22cd32362f0d91ef030bc0942c303714141cf) Reviewed-on: http://git-master/r/425986 GVS: Gerrit_Virtual_Submit Reviewed-by: Michael Frydrych <mfrydrych@nvidia.com> Tested-by: Michael Frydrych <mfrydrych@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2014-06-24sched: defining relaxed version of idle_cpuSumit Singh
Defining relaxed version of idle_cpu, which uses macro cpu_relaxed_read_long, that will be used to enhance power efficiency. bug 1440421 Change-Id: I6ba2185632ad0fba766a2548b0ddac743defb1b9 Signed-off-by: Sumit Singh <sumsingh@nvidia.com> Reviewed-on: http://git-master/r/426484 Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com>
2014-06-24llist: defining relaxed version of llist_emptySumit Singh
Defining relaxed version of llist_empty as llist_empty_relaxed, which will be used for power-optimization. bug 1440421 Change-Id: I1c4c34b381e49775ed08ddd606d9744a7e7e1fba Signed-off-by: Sumit Singh <sumsingh@nvidia.com> Reviewed-on: http://git-master/r/426483 Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com>
2014-06-24seqlock: enhance power efficiencySumit Singh
Trying to improve the power efficiency in linux/seqlock.h, using macros cpu_relaxed_read and cpu_read_relax. Bug 1440421 Change-Id: I8dcc9dc9c72e5a6848c7823768c76f5d38e9f0d1 Signed-off-by: Sumit Singh <sumsingh@nvidia.com> Reviewed-on: http://git-master/r/398943 (cherry picked from commit ed77ee4d50641b1a5668545c946cda681c06fcd2) Reviewed-on: http://git-master/r/422258 GVS: Gerrit_Virtual_Submit Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com> Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com>
2014-06-23Revert "extcon: palmas: make aca detection platform dependent"Laxman Dewangan
This reverts commit aa55d35202b5895068bdf8eace842102bf134dab. Revert the change becasue it breaks the VUS and ID detection. With this change on some platforms, the VBUS and ID both are detected even only connnect the VBUS cable. This causes misbehaving of the drivers. bug 200013069 Change-Id: I8b10c9a7c1b0520c83118245a5e85c61e9777c81 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/424815 (cherry picked from commit 992d7b8c03b4787c4fa37a90804008eff4ce48b4) Reviewed-on: http://git-master/r/427032 GVS: Gerrit_Virtual_Submit