summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-01-07staging: android: lowmemorykiller: Don't wait more than one second for a ↵tegra-10.9.9Arve Hjønnevåg
process to die If a process forked and the child process was killed by the lowmemorykiller, the lowmemory killer would be disabled until the parent process reaped the child or it died itself. Change-Id: I49822d847ee54876b474a837743b4f4821fba57f Signed-off-by: Arve Hjønnevåg <arve@android.com> Reviewed-on: http://git-master/r/15091 Reviewed-by: Ching Kuang (Roger) Hsieh <rhsieh@nvidia.com> Tested-by: Ching Kuang (Roger) Hsieh <rhsieh@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2010-12-28lowmemorykiller: don't unregister notifier from atomic contextRabin Vincent
The lowmemorykiller registers an atomic notifier for notfication of when the task is freed. From this atomic notifier callback, it removes the atomic notifier via task_free_unregister(). This is incorrect because atomic_notifier_chain_unregister() calls syncronize_rcu(), which can sleep, which shouldn't be done from an atomic notifier. Fix this by registering the notifier during init, and only unregister it if the lowmemorykiller is unloaded. Change-Id: Ie9cf2f23d31c78e1fe1b9dd2e11af5267832ee94 Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com> Signed-off-by: Christian Bejram <christian.bejram@stericsson.com> Reviewed-on: http://git-master/r/13943 Reviewed-by: Ching Kuang (Roger) Hsieh <rhsieh@nvidia.com> Tested-by: Ching Kuang (Roger) Hsieh <rhsieh@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2010-12-20[tegra ALSA] set mode and i/o device.tegra-10.9.8Ravindra Lokhande
Set mode and input, output device for newly created device 1. Needed for bug 738770 Change-Id: I01ef4efb018a32cca8b1a0ff1e63f2a8de63dbfe Reviewed-on: http://git-master/r/12314 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com> Tested-by: Ravindra Lokhande <rlokhande@nvidia.com>
2010-12-16[tegra video] add param checking to mem functionsAndy Carman
(cherry picked from commit 9dc305371bfe820db10e554e0bd8e60b16f94ab8) Change-Id: Ie857ffa2ebdb2eec5b75bf93ae954798e74dad3f Reviewed-on: http://git-master/r/9847 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-12-14[ARM/tegra] RM: Set minimum voltage limitsAlex Frid
Set minimum CPU and core voltage limits required for AP25/T25 reliability. Bug 643434 Change-Id: I93735496d97cac742bdca3225b17f173f692821d Reviewed-on: http://git-master/r/12603 Tested-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Narendra Damahe <ndamahe@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
2010-12-13Revert "video: tegra: nvmap: Clean whole L1 instead of VA cleaning"Youngjin Kim
This reverts commit 6469f378a596f0572035cd27a17851ea86b763c9. Bug 758628 Bug 748669 Original commit attmpted to have a smarter cache cleaning code. But that work didn't work out well and just resulted in display corruption. Reviewed-on: http://git-master/r/11817 (cherry picked from commit 60207394cc16689f06ccbac993eefd2928565031) Change-Id: I92bd95154f372eb0a081a4c3919b87d576ea4cb5 Reviewed-on: http://git-master/r/12449 Reviewed-by: Youngjin Kim <nkim@nvidia.com> Tested-by: Youngjin Kim <nkim@nvidia.com> Reviewed-by: Markus Holtmanns <mholtmanns@nvidia.com> Tested-by: Markus Holtmanns <mholtmanns@nvidia.com> Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
2010-12-13[ARM/tegra] ventana: Enable PANJIT & ATMEL touchscreenRobert Collins
Enable CONFIG_TOUCHSCREEN_PANJIT_I2C and CONFIG_TOUCHSCREEN_ATMEL_MT_T9. Disable CONFIG_TOUCHSCREEN_TEGRA_ODM. Change-Id: I711f273add8c73be88b810d28049e53e6ad01a92 Reviewed-on: http://git-master/r/11726 Reviewed-by: Robert R Collins <rcollins@nvidia.com> Tested-by: Robert R Collins <rcollins@nvidia.com> Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-12-13[ARM/tegra] Panjit/Cypress & Atmel touchscreen board supportRobert Collins
Added Panjit/Cypress and Atmel touchscreen support for Ventana platform. Reviewed-on: http://git-master/r/10446 Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com> Tested-by: Yu-Huan Hsu <yhsu@nvidia.com> (cherry picked from commit 7d4de5dc49686923c6815a7c9eb1255fe9344774) Change-Id: I518923d57e83579b040e700844114f9ccc2fd31b Reviewed-on: http://git-master/r/11718 Reviewed-by: Robert R Collins <rcollins@nvidia.com> Tested-by: Robert R Collins <rcollins@nvidia.com> Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-12-13[ARM/tegra] Touchscreen : Added Atmel Max-Touch driverRobert Collins
Reviewed-on: http://git-master/r/10445 Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com> Tested-by: Yu-Huan Hsu <yhsu@nvidia.com> (cherry picked from commit 0a4752eb037a5d4492d108ec094dd5367f5faa09) Change-Id: I03a8224b8d3ccb4e7b0f682a75648ff9e9cda06f Reviewed-on: http://git-master/r/11717 Reviewed-by: Robert R Collins <rcollins@nvidia.com> Tested-by: Robert R Collins <rcollins@nvidia.com> Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-12-13[ARM/tegra] Touchscreen : Added Panjit/Cypress driverRobert Collins
(Cherry-Picked Panjit driver from cc8231d0ddef32343db199b6a668d572c079afc4) Reviewed-on: http://git-master/r/10443 Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com> Tested-by: Yu-Huan Hsu <yhsu@nvidia.com> (cherry picked from commit 208bbaaf873e202531e3d8045c9a5f534ba4906e) Change-Id: Ie08bc42669fad152931be095a8a549852dd9be12 Reviewed-on: http://git-master/r/11716 Tested-by: Robert R Collins <rcollins@nvidia.com> Reviewed-by: Robert R Collins <rcollins@nvidia.com> Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-12-01sdhci-tegra: Optimizing sdio suspend handlertegra-10.9.7Rahul Bansal
Bug: 730157 Change-Id: I8741f2be5c3c8933edf0dcc3b9d00006eeb86117 Reviewed-on: http://git-master/r/11682 Reviewed-by: Rahul Bansal <rbansal@nvidia.com> Tested-by: Rahul Bansal <rbansal@nvidia.com> Reviewed-by: Rakesh Kumar <krakesh@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-12-01[tegra ALSA] separated i2s1 and i2s2 pathRavindra Lokhande
In order to support concurrent playback/record from i2s1 and i2s2, separated i2s1 and i2s2 path. Change-Id: I2c19d76605d243e3e5375047ea0e799c4eb823b5 Reviewed-on: http://git-master/r/11677 Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com> Tested-by: Ravindra Lokhande <rlokhande@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-11-30[tegra/odm_kit]: Update copyright noticestegra-10.9.6Hoang Pham
Bug 744290 (cherry picked from commit 82ac01fbbab3ede7ad5b841ff74bb73e309753b2) Reviewed-on: http://git-master/r/10603 (cherry picked from commit 0d5ab28a613a878ef7bd0d931002c07334e63802) Change-Id: Ic2053adcd1bc5c4012ddc2795f8d991b734c774e Reviewed-on: http://git-master/r/11281 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com>
2010-11-30[ARM/tegra] RM: Stopped DVFS in PM_SUSPEND_PREPARE.Alex Frid
Bug 760630 Change-Id: If5e4ac1045cdb46d12a03bf47f24fb712fdbd11e Reviewed-on: http://git-master/r/11632 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com>
2010-11-30[ARM/tegra] RM: Disabled 3D power gating in LP1.Alex Frid
Bug 753226 Change-Id: I34e9e392580b38d4ebf805ce984a800097adf09a Reviewed-on: http://git-master/r/11527 Tested-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Narendra Damahe <ndamahe@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
2010-11-29[arm/tegra] Keep SDIO1 lines high on boot-up.Rahul Bansal
Internally pulling up SDIO lines from AP side should eliminate the need of external SDIO pullups or dependency on wifi driver to do the same. Bug: 760178 Change-Id: I021f21c83a679a4f823c06f1927c6f2f85483e32 Reviewed-on: http://git-master/r/11489 Reviewed-by: Rahul Bansal <rbansal@nvidia.com> Tested-by: Rahul Bansal <rbansal@nvidia.com> Reviewed-by: Udaykumar Rameshchan Raval <uraval@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2010-11-29[tegra ALSA] create two devices for audioRavindra Lokhande
Created two devices for alsa audio. Device 0 is connected to codec. Device 1 is connected to bt. Fixes bug 738770 Change-Id: I60c580bd4d792a41a109e458553f6295a21822e7 Reviewed-on: http://git-master/r/11603 Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com> Tested-by: Ravindra Lokhande <rlokhande@nvidia.com> Reviewed-by: Vijay Mali <vmali@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2010-11-29sdhci-tegra:Limiting clock based on platform clock limits.pkunapuli
The requested SD clock will be limited to the maximum supported clock on the platform. Bug 761966 Change-Id: I03cd76ae42f56675f47d185da73352e716f6d255 Reviewed-on: http://git-master/r/11429 Tested-by: Pavan Kunapuli <pkunapuli@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2010-11-29[Tegra NvRm]: Tristate MCLK if mediaserver crashbyan
for bug 728160 Tristate MCLK if mediaserver crash to save power. This is done by ref-tracking pinmux for MCLK. The change actually also tracks the other 2 external clock sources, so all external clocks are tracked and cleaned up upon user space application crash. Change-Id: Ie2bc40f680586c01a916abbe51c91a7eb2d1cb13 Reviewed-on: http://git-master/r/10451 Reviewed-on: http://git-master/r/11451 Reviewed-by: Bo Yan <byan@nvidia.com> Tested-by: Bo Yan <byan@nvidia.com> Reviewed-by: Venkata (Muni) Anda <vanda@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com> Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-11-24video: tegra: nvmap: Clean whole L1 instead of VA cleaningvdumpa
For large allocations, cleaning each page of the allocation can take a significant amount of time. If an allocation that nvmap needs to clean or invalidate out of the cache is significantly larger than the cache, just flush the entire cache. bug 711478 and bug 744221 Revert "video: tegra: nvmap: perform cache maintenance for rw_handle" This reverts commit d963f09c3ebb2d690d266f8f607b4876acaf2ab1. Reviewed-on: http://git-master/r/10213 (cherry picked from commit 6469f378a596f0572035cd27a17851ea86b763c9) Change-Id: I1e514f505db860eb01d575a98f0f80c8794e8463 Reviewed-on: http://git-master/r/10497 Reviewed-by: Eric Werness <ewerness@nvidia.com> Reviewed-by: Markus Holtmanns <mholtmanns@nvidia.com> Tested-by: Markus Holtmanns <mholtmanns@nvidia.com> Reviewed-by: Janne Hellsten <jhellsten@nvidia.com> Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-11-24[arm/tegra]dma: protecting the dma transfer count updateLaxman Dewangan
When client asked for the dma transfer count, then the dma status register read and update is protected by the spin lock so that it should not be updated incorrectly. If client asked for transfer count between dma interrupt occurs and dma isr thread executed and repeat mode is selected then updating the transfer count at the time of calculating transfer count. bug 732197 bug 731403 Change-Id: Id112d5bea9c2f4a1fc4d329d5ce04eed477f1dfa Reviewed-on: http://git-master/r/11019 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Udaykumar Rameshchan Raval <uraval@nvidia.com> Tested-by: Pradeep Goudagunta <pgoudagunta@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-11-22[arm/tegra] nvrm: open handle at postcore initialization.Laxman Dewangan
The rm handle is getting open in clock_init() which got called as arch_init time. Before this init, postcore init got called and it setup most of modules data and result as call of rm api without opening the rm handle. Adding code such that rm should be open at postcore init time and so all rm call should have proper rm handle. bug 759147 Change-Id: I0ce93c807c64eaef48f73007ff0f64a52c89590a Reviewed-on: http://git-master/r/11316 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-11-22[arm/tegra] serial: Getting dma transfer count with rts inactive.Laxman Dewangan
Getting the transfer count by dma with rts disable. In this way we can avoid the race condition arise by hw with incoming data. Change-Id: Ieeeadfeea9293c70fd2eb96ff9d82888a58b2b3a Reviewed-on: http://git-master/r/11020 Tested-by: Rakesh Goyal <rgoyal@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Udaykumar Rameshchan Raval <uraval@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-11-22[arm/tegra] serial: Support for break on console driver.Laxman Dewangan
There is sysrq feature which works from console with sending break and then character. The console driver uses the 8250 driver. In tegra uart controller, after receiving break, it needs to clear the rx fifo by reading fifo till empty to receive the another break/character. Fixing this issue in 8250 driver. bug 697978 Change-Id: I4eb71a67bafc186ec9934fce164e28ad86fa0ace Reviewed-on: http://git-master/r/8736 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-11-19[arm/config] Ventana: Enable suspend for USB.Rakesh Bodla
On Ventana Android, USB consumes high power in OS idle mode. Power consumption is reduced by enabling the suspend. Bug 746087 Change-Id: Ia7af9be9b91467034270e8d1e1d3e539b4c11a49 Reviewed-on: http://git-master/r/10483 Tested-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com> Reviewed-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-by: Narendra Damahe <ndamahe@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com> Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-11-19[arm/tegra/odm] ventana: Supporting pin multiplexing for i2c-1Laxman Dewangan
Supporting the i2c1 to have mutiplexed option in pin configuration. Changing the bus device info accordingly. bug 756254 Change-Id: Ifa74220c9fe3dfc4eb6928159f962de53634bd6a Reviewed-on: http://git-master/r/10413 Reviewed-by: Chun Keung (Denis) Chau <dchau@nvidia.com> Tested-by: Chun Keung (Denis) Chau <dchau@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-11-19[tegra/odm_kit]: Update copyright noticesHoang Pham
Update the appropriate licensing header for open source Bug 744290 (cherry picked from commit 9680517ed63ab99fbd80fd3f7795d4bc33e34b9c) Change-Id: Icc2e1dc3f9ec055e6d49dedd3d5ce32b84e3a17a Reviewed-on: http://git-master/r/10502 Tested-by: Hoang Pham <hopham@nvidia.com> Reviewed-by: John Davis <jodavis@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com> Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-11-17[arm/tegra] spi: Setting functional mode at open.Laxman Dewangan
Configuring the functional mode (master or slave) when opening the spi channel for communication. Change-Id: I7e7ed456cead7f1a84e8283bc9de29c520e205d3 Reviewed-on: http://git-master/r/10946 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Min-wuk Lee <mlee@nvidia.com> Tested-by: Min-wuk Lee <mlee@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-11-16[arm/tegra]gpio: GPIO A07 belongs to SDB pin group.Laxman Dewangan
As per pin group table of T20, the gpio pin A07 belongs to oin group "SDB". Fixing the gpio-pingroup table. Change-Id: I6006d2e743e4946ffbfa4b97574f81cb8dc1dd6e Reviewed-on: http://git-master/r/10856 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-11-15[arm/tegra] cache kfuses on boottegra-10.9.5Jon Mayo
Cache the fuse contents early in boot before DMA is active to ensure exclusive access on that bus. This cache is exposed at /sys/firmware/fuse/kfuse_raw and it can be read() or mmap()'d. Bug 741232 Change-Id: I83bc991c89beb837ec22b2e03ceac11ab696cb6f Reviewed-on: http://git-master/r/10482 Reviewed-by: Jonathan Mayo <jmayo@nvidia.com> Tested-by: Jonathan Mayo <jmayo@nvidia.com> Reviewed-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com> Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-11-15[ARM/Tegra] Solve DMA race condition on closeScott Peterson
Fixed a race condition when calling NvRmDmaAbort while a DMA transfer is in progress causing a kernel panic Bug 750317 Change-Id: I280971e509857d08e7bf28d676513814095c30ca Reviewed-on: http://git-master/r/10633 Reviewed-by: Scott Peterson <speterson@nvidia.com> Tested-by: Scott Peterson <speterson@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com> Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-11-15[arm/tegra] Support for Wake-On-Wireless Event.Rahul Bansal
Support for device wakeup on receiving SDIO interrupt in LP1/LP0 for incoming wifi pakcket. Bug: 730157 Change-Id: Ia2e9bf2af215f33d6d6d8d78ba0cdf2d71011917 Reviewed-on: http://git-master/r/9813 Reviewed-by: Rahul Bansal <rbansal@nvidia.com> Tested-by: Rahul Bansal <rbansal@nvidia.com> Reviewed-by: Rakesh Kumar <krakesh@nvidia.com> Tested-by: Rakesh Kumar <krakesh@nvidia.com> Reviewed-by: Udaykumar Rameshchan Raval <uraval@nvidia.com> Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com> Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-11-12[ARM/tegra] RM: Disabled 3D module power gating.Alex Frid
Dependency on tegra core commit a1d2bb33b65c991f6dd21db10e32e8f0c8a302cf. Bug 753226 Change-Id: I03f0cc42946994e6aeb4015f6bca9831d608de2c Reviewed-on: http://git-master/r/10407 Reviewed-by: Aleksandr Frid <afrid@nvidia.com> Tested-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com> Reviewed-by: Narendra Damahe <ndamahe@nvidia.com> Tested-by: Narendra Damahe <ndamahe@nvidia.com> Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-11-11[tegra/nvos] Handle -EINTR in NvOsSemaphoreWaitInterruptiblevdumpa
Handle the -EINTR case in NvOsSemaphoreWaitInterruptible API. This would avoid forcing user process to handle the error correctly. Bug 745410 Reviewed-on: http://git-master/r/8696 (cherry picked from commit 3ca38fe2c7851e7dc464cdd332c3eeb97a3089aa) Change-Id: Id71c7d82cb7d613bc3726c32d15779defe783723 Reviewed-on: http://git-master/r/9723 Tested-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com> Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-11-10[arm/tegra] i2c:Using direct native dma calls in i2c driver.Laxman Dewangan
RmI2c driver is using the nvrm dma calls which is implemented on top of the native dma calls. Changing the rm i2c driver to use directly the native dma apis for dma based transfer inplace of nvrm_dma apis. Change-Id: I247e5176e4e167c1e055058236899065740a9da4 Reviewed-on: http://git-master/r/10362 Reviewed-by: Harry Hong <hhong@nvidia.com> Tested-by: Harry Hong <hhong@nvidia.com> Reviewed-by: Gabby Lee <galee@nvidia.com> Tested-by: Gabby Lee <galee@nvidia.com> Reviewed-by: Amit Kamath <akamath@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-11-06[arm] harmony: Enable PCIe/SATA config in gnu_linux configuration.Winnie Hsu
Enable config flags to turn on PCIe and SATA in linux. Bug 744622 and bug 686766 Change-Id: I186dd44ffac054ba5f8785083c929028255cd076 Reviewed-on: http://git-master/r/9663 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Winnie Hsu <whsu@nvidia.com>
2010-11-06nvmap: Improved compaction algorithm implementedKirill Artamonov
Fast compaction algorithm: for every free block from the beginning of CO, try to reallocate block before and after the free block. Once enough free space for requested allocation is freed, return. Full compaction triggers if fast one fails: it works like fast one but also uses block moving algorithm which doesn't require extra CO memory. It compacts all heap, merging as much free space as possible. Also fixed few bugs. bug 740842 bug 746972 (cherry picked from commit 171edd17a191c8a4a4f9a8434dec796089cda141) Change-Id: I40ec2c49a3c3f37fd7149e8123eda59da4caef39 Reviewed-on: http://git-master/r/10149 Reviewed-by: Kirill Artamonov <kartamonov@nvidia.com> Tested-by: Kirill Artamonov <kartamonov@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2010-11-06[ARM/Tegra] nvmap fix for crash in spin_lock() callThomas Roell
Gate access to h->carveout.co_heap by (h->alloc && !h->pg_alloc) Bug 743185 (cherry picked from commit daba1dc0a3e050a2739293904cad9e65eb27a559) Change-Id: I5014fb40074e79e4db293767e3ef512ea35401d8 Reviewed-on: http://git-master/r/10148 Reviewed-by: Kirill Artamonov <kartamonov@nvidia.com> Tested-by: Kirill Artamonov <kartamonov@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2010-11-06[ARM/tegra] RM: Updated power ungating procedure.Alex Frid
Since core power partition can be un-gated at low voltage - e.g., on exit from LP1, disable partition clocks before de-asserting reset (instead of disabling clocks immediately after reset is de-asserted). Change-Id: Ic56685186d14525fcc1fca1c933e90b7879e7b6c Reviewed-on: http://git-master/r/10199 Tested-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Narendra Damahe <ndamahe@nvidia.com> Tested-by: Narendra Damahe <ndamahe@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
2010-11-04odm: enable bluetooth wake conditinal to CONFIG_BT_BLUESLEEPUday Raval
Enable bluetooth wake up only when CONFIG_BT_BLUESLEEP is defined. This is to prevent system wake up when bluetooth is not enabled. Bug 753730 Change-Id: Ia929881de0f57a0420a1ed2920a6abee2be71b1c Reviewed-on: http://git-master/r/10189 Reviewed-by: Udaykumar Rameshchan Raval <uraval@nvidia.com> Tested-by: Udaykumar Rameshchan Raval <uraval@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com> Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-11-04ARM: Add SWP/SWPB emulation for ARMv7 processors (v5)Leif Lindholm
The SWP instruction was deprecated in the ARMv6 architecture, superseded by the LDREX/STREX family of instructions for load-linked/store-conditional operations. The ARMv7 multiprocessing extensions mandate that SWP/SWPB instructions are treated as undefined from reset, with the ability to enable them through the System Control Register SW bit. This patch adds the alternative solution to emulate the SWP and SWPB instructions using LDREX/STREX sequences, and log statistics to /proc/cpu/swp_emulation. To correctly deal with copy-on-write, it also modifies cpu_v7_set_pte_ext to change the mappings to priviliged RO when user RO. Signed-off-by: Leif Lindholm <leif.lindholm@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> Change-Id: I10616601fb05643561e5301064c115ee268846bf (cherry picked from commit 81b437e0fabd3049f141bc5820970c325c478574) Reviewed-on: http://git-master/r/10091 Reviewed-by: Jonathan Mayo <jmayo@nvidia.com> Tested-by: Jonathan Mayo <jmayo@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
2010-11-04[arm/tegra] enable SWP/SWPB emulationJon Mayo
enable SWP emulation for 5 defconfigs. Bug 753223 Change-Id: I92137877cc50b6648541d6b6cd685fe670d7104b Reviewed-on: http://git-master/r/10092 Reviewed-by: Jonathan Mayo <jmayo@nvidia.com> Tested-by: Jonathan Mayo <jmayo@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
2010-10-29[ARM/tegra] RM: Increased PLLC VCO for HDMI config.tegra-10.9.4Alex Frid
Increased PLLC VCO for HDMI configuration to reduce jitter. Bug 734868 Change-Id: Ie898b3806e4e3c69310e9ea7e45c45fa7862de80 Reviewed-on: http://git-master/r/9660 Reviewed-by: Chih-Lung Huang <lhuang@nvidia.com> Tested-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
2010-10-29[ARM/tegra] RM: Updated PLL configuration procedure.Alex Frid
Updated PLL configuration procedure to stop PLL before new settings are loaded and to keep PLL's differential output disabled after PLL is re-started until it is locked. (cherry picked from commit cf47eb637bb505bf199710bdc2f8158b8ac9223c) Change-Id: I29ba04ea6d931b168eb47a11f12d0a1241d4a266 Reviewed-on: http://git-master/r/9788 Tested-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Chih-Lung Huang <lhuang@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
2010-10-28[tegra/bluesleep]enable BT_BLUESLEEP for csr boardsrgoyal
enabling kernel configuration variable BT_BLUESLEEP to support bluesleep functionility on csr based boards. BUG 691608 Change-Id: Ia51b39326d2333382ac2318f4d80a51b43975c02 Reviewed-on: http://git-master/r/9692 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-10-28csr lowpower mode:adding bluesleep support for csrrgoyal
Adding bluesleep support for CSR chip BUG 691608 Change-Id: I5cb9420201e99b36a9ee26a411c0312b3c6e3fa1 Reviewed-on: http://git-master/r/9678 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-10-27[ARM/TEGRA] ventana odm_kit power supply rail usage correctionNarendra Damahe
Bug 745437 (cherry picked from commit 40234b8f9194860cc6634a94b6b093ce42c2b45c) Change-Id: I3686f931edf8167b01175480a005dca909078166 Reviewed-on: http://git-master/r/9541 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-10-27[arm/tegra]ventana:Set pingroup SDD, SDC to lp on suspendSuresh Mangipudi
The POR value of SDD and SDC pin groups is PULL_UP. Now setting to NORMAL when entering lowpower state and reset back to PULL_UP when resuming from low power mode. Bug 718123 (cherry picked from commit e8de286c6c8e06f67c0102d26b52c3249e416e64) Change-Id: I7d97312a43953103493762720efc4cf678b6dc25 Reviewed-on: http://git-master/r/8863 Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com> Tested-by: Suresh Mangipudi <smangipudi@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-10-27[[ARM/Tegra] Clean up build warning messagelazhao
Clean up warning message caused by unused variable and improper struct type. Bug 682070 Change-Id: I3409ad22e67252df14d6d14898aa8792a0019574 Reviewed-on: http://git-master/r/8436 Reviewed-by: Lance Zhao <lazhao@nvidia.com> Tested-by: Lance Zhao <lazhao@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com> Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2010-10-27[ARM/tegra] RM: Restored core lock sysfs node.Alex Frid
Restored core lock sysfs node accidentally deleted by commit 41aebc5456d4c6ae5f8d1543b478739331d500ec Bug 749303 Change-Id: I87644bf90b7dfe24fb1e8c03f9bfda44048ecd11 Reviewed-on: http://git-master/r/9607 Reviewed-by: Jeff Weintraub <jweintraub@nvidia.com> Tested-by: Jeff Weintraub <jweintraub@nvidia.com> Tested-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com> Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>