aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc
Commit message (Collapse)AuthorAgeFilesLines
* proc: uid: Changes the thread notifier to profile event notifier.Ruchi Kandoi2016-01-172-34/+19
| | | | | | | In order to keep the code consistent with all other platforms, the thread notifier is changed to profile event notifier. Change-Id: I5b996c789927b42dacba10af6fe81a21866e2c8f
* proc: uid_cputime: fix show_uid_stat permissionJin Qian2016-01-171-1/+1
| | | | Signed-off-by: Jin Qian <jinqian@google.com>
* proc: uid: Adds accounting for the cputimes per uid.jinqian2016-01-173-0/+260
| | | | | | | | | | | | | | | | Adds proc files /proc/uid_cputime/show_uid_stat and /proc/uid_cputime/remove_uid_range. show_uid_stat lists the total utime and stime for the active as well as terminated processes for each of the uids. Writing a range of uids to remove_uid_range will delete the accounting for all the uids within that range. Change-Id: I21d9210379da730b33ddc1a0ea663c8c9d2ac15b Conflicts: drivers/misc/Makefile
* misc: inv_mpu: include time spent in suspend for irqtimeKyle Repinski2016-01-174-4/+4
| | | | | | | Android is (now?) expecting input event timestamps to do this. Resolves screen rotation issue after suspend in Marshmallow. Signed-off-by: Kyle Repinski <repinski23@gmail.com>
* drivers: misc: do not enable color control by defaultZiyan2015-04-111-1/+1
|
* Added Color Control version 4.Ezekeel2014-12-163-0/+230
| | | | | | | Conflicts: drivers/misc/Makefile Change-Id: Ie57d33003d1ce0a750ef2ec2cb15884a449df92a
* misc: uidstat: avoid create_stat() race and blockage.JP Abgrall2014-11-201-21/+31
| | | | | | | | | | | | | * create_stat() race would lead to: [ 58.132324] proc_dir_entry 'uid_stat/10061' already registered * blocking kmalloc reported by sbranden tcp_read_sock() uid_stat_tcp_rcv() create_stat() kmalloc(GFP_KERNEL) Signed-off-by: JP Abgrall <jpa@google.com>
* bmp180: Report ambient temperature through ABS_MISC.Kyle Repinski2014-10-031-1/+8
| | | | | | | | Change-Id: I2439ca6f40b4f16128941cc5bc5f41f95805e32f Signed-off-by: Kyle Repinski <repinski23@gmail.com> Conflicts: drivers/misc/bmp180.c
* bmp180.c: fix unused variable warningZiyann2014-10-031-1/+0
|
* gcx: version update to 2.2.2Craig Stout2014-10-011-3/+3
| | | | | Change-Id: I68624e1604a30c854843f3a2206e70a516cc57a0 Signed-off-by: Craig Stout <craig.stout@ti.com>
* gcx: fixed YUV planar odd location origin.Alexei Shlychkov2014-10-012-45/+41
| | | | | Change-Id: I0bbe26fd4dba445bd9b9c5135fe99bc8099626ff Signed-off-by: Alexei Shlychkov <x0177296@ti.com>
* gcx: fixed scaler temp parameter calculations.Alexei Shlychkov2014-10-011-63/+111
| | | | | Change-Id: I137acb5efc00bc3ea2dbb9ad596234061cf78257 Signed-off-by: Alexei Shlychkov <x0177296@ti.com>
* gcx: two pass filter fixes.Alexei Shlychkov2014-10-013-52/+62
| | | | | | | | | | | | Use the destination format (RGB) for the temporary buffer if destination angle is not 0 degree due to a hardware limitation for 4:2:2 rotated destination. Performance is optimized for temporary buffer by setting proper buffer geomerty. Change-Id: Ie53da18fe854adeaaf3d568605bb8630288aee5d Signed-off-by: Alexei Shlychkov <x0177296@ti.com>
* gcx: fixed surface offset calculations.Alexei Shlychkov2014-10-015-203/+361
| | | | | | | | This is primarily to fix YUV plane location calculations, but RGB formats are affected as well. Change-Id: I2877c3c0ec35c03425903c2df9de08ba201cf091 Signed-off-by: Alexei Shlychkov <x0177296@ti.com>
* gcx: source setup optimization.Alexei Shlychkov2014-10-014-444/+665
| | | | | | | | | Share the same setup routines for blitting and scaling. Use old-style registers for source 0 in blit setup due to a hardware problem. Change-Id: Ic9ed5c95d37833521f2eda21d818f8a8696bcd4c Signed-off-by: Alexei Shlychkov <x0177296@ti.com>
* gcx: feature support checks revised.Alexei Shlychkov2014-10-012-52/+65
| | | | | | | Packed YUV source rotation is enabled. Change-Id: I0beaae011e576fcd8dd78e800cc5acde7de9311f Signed-off-by: Alexei Shlychkov <x0177296@ti.com>
* gcx: changed debug module names for consistency.Alexei Shlychkov2014-10-017-21/+23
| | | | | | | Also fixed compiler warnings. Change-Id: I254abc86fd08c1be1d2f904f0c10018bcbc5a8c6 Signed-off-by: Alexei Shlychkov <x0177296@ti.com>
* gcx: improved MMU table dumping.Alexei Shlychkov2014-10-014-70/+220
| | | | | Change-Id: Ib08231c481533e349affd792ef944386dbcc0593 Signed-off-by: Alexei Shlychkov <x0177296@ti.com>
* gcx: Use GFP_ATOMIC flag for opp_freqs table.Oleg Matcovschi2014-10-011-1/+1
| | | | | | | Use GFP_ATOMIC instead of GFP_KERNEL to avoid potential blocking. Change-Id: Id405a2aa609560b849adf0e096970d0251cfd140 Signed-off-by: Oleg Matcovschi <oleg.matcovschi@ti.com>
* gcx: version update to 2.2.1Craig Stout2014-10-011-3/+3
| | | | | Change-Id: I09b56c66bd594305557b226fb30e9d945657a799 Signed-off-by: Craig Stout <craig.stout@ti.com>
* gcx: added source rectangle validation.Alexei Shlychkov2014-10-015-108/+161
| | | | | | | Also debug logging improved. Change-Id: I0fd42fc417080d163f55f1c58e12dd5713f3d8be Signed-off-by: Alexei Shlychkov <x0177296@ti.com>
* gcx: fix main thread looping.Alexei Shlychkov2014-10-011-3/+12
| | | | | | | | | If the thread has no work scheduled and is kicked off by a soft trigger, it would start looping until the next work gets scheduled. Change-Id: Ia7256622c61f45c9483c722dd968a1dfec752f89 Signed-off-by: Alexei Shlychkov <x0177296@ti.com>
* gcx: added geometry check.Alexei Shlychkov2014-10-011-17/+41
| | | | | | | | An additional geometry check to prevent the user from supplying invalid geometry and causing L3 errors. Change-Id: I5c22dbc36ca1e4a64fa240aff0f052673b5a4116 Signed-off-by: Alexei Shlychkov <x0177296@ti.com>
* gcx: scaler update.Alexei Shlychkov2014-10-014-258/+859
| | | | | | | | | Added special handling for rotation. Added bandwidth optimizations. Bug fixes. Change-Id: I5f188b46355b51444e18a29ebcf0f62a557924d0 Signed-off-by: Alexei Shlychkov <x0177296@ti.com>
* gcx: added generic YUV programming for the blitter.Alexei Shlychkov2014-10-012-92/+114
| | | | | Change-Id: I2041fdc3092ab04337c24f6a70ed3711da96894a Signed-off-by: Alexei Shlychkov <x0177296@ti.com>
* gcx: fix format parsing/usage dependency.Alexei Shlychkov2014-10-012-10/+12
| | | | | Change-Id: I57a8a6f49fdf6bbfa150c25c78057fec5f7892d0 Signed-off-by: Alexei Shlychkov <x0177296@ti.com>
* gcx: destination setup enhanced.Alexei Shlychkov2014-10-016-193/+288
| | | | | | | | | | Separated common setup shared between all operations from parameters that only apply for bitblt. Scaler will have different setup for those parameters (for ex. rotation). Change-Id: Ib85e288dbc59aa5b86b6dc810d3eb8c78471d91d Signed-off-by: Alexei Shlychkov <x0177296@ti.com>
* gcx: error handling improvements and fixes.Alexei Shlychkov2014-10-013-74/+106
| | | | | Change-Id: I3d19564422501dd76772760e5c2fdb152d031825 Signed-off-by: Alexei Shlychkov <x0177296@ti.com>
* gcx: added generic format parser.Alexei Shlychkov2014-10-015-378/+408
| | | | | | | RGB and YUV formats are now generically supported. Change-Id: I9911119c6323ac91a63e1fb7d0a3012038985d8e Signed-off-by: Alexei Shlychkov <x0177296@ti.com>
* gcx: added gcpwr_get_speed function and cur_freq debugfs entry.Alexei Shlychkov2014-10-013-1/+54
| | | | | | | Determines the current speed of GC320 in megahertz. Change-Id: I0aadf024193d8c1d2aac7ef79604367249939831 Signed-off-by: Alexei Shlychkov <x0177296@ti.com>
* gcx: change uvshift for NV12 rotation to work properlyJack Yen2014-10-011-4/+17
| | | | | | | | | 90/270 degree rotation is fixed by adjusting the uv plane address to get the proper uvplane starting address after the rotation. Change-Id: I350b83a77bd80efef6d470a30a46386c53628082 Signed-off-by: Jack Yen <jyen@ti.com>
* gcx: update version to 2.2.Craig Stout2014-10-011-4/+4
| | | | | Change-Id: I7302e6099f6fae8880e6f1406c040bfe56833439 Signed-off-by: Craig Stout <craig.stout@ti.com>
* gcx: make gccmdthread interruptible to avoid false hung task detection.Craig Stout2014-10-011-2/+5
| | | | | Change-Id: I0e7172e2ddcf32571d745daed7b4e9e3bad1e0c6 Signed-off-by: Craig Stout <craig.stout@ti.com>
* gcx: adjust cache rect based on orientationJack Yen2014-10-011-6/+15
| | | | | Change-Id: If18483ae6a054f3fbdc036cedca10b3178cd16b0 Signed-off-by: Jack Yen <jyen@ti.com>
* gcx: validate dest rect after clippingCraig Stout2014-10-011-17/+39
| | | | | | | | | | | | According to bltsville spec, rectangles should not be checked for validity until clipping has been applied. So we must clip the dest rect before validating it. Removed the error checking from the generic rect converter macro. Added error checking specifically for clip rect and dest rect, post clipping. Proper validity checking of other rects is TBD. Change-Id: Ic42ad7d7cf7bffa1af6423772a657ef357de0a1b Signed-off-by: Craig Stout <craig.stout@ti.com>
* gcx: fixed pulse skipping init bug.Alexei Shlychkov2014-10-012-72/+99
| | | | | Change-Id: I4556ac3ec2b4b3445fb96f3ec0e7849800768f88 Signed-off-by: Alexei Shlychkov <x0177296@ti.com>
* gcx: fix race conditions on suspend.Craig Stout2014-10-011-8/+20
| | | | | | | | | | | | | There was a race between the suspend thread waiting for idle and an app thread attempting to push more into the gcqueue, which could cause the suspend to block until the max retry count was reached. Also, it was possible for the gccmdthread to notice gc320 is idle while attempting to suspend and simultanesouly gc320 completed processing some cmd buffers that require proper interrupt-aware cleanup. Change-Id: Ia7fdb29c5e2936d07b4c7ce58638b57c1f10c955 Signed-off-by: Craig Stout <craig.stout@ti.com>
* gcx: fix mmu context switch issues.Craig Stout2014-10-011-0/+6
| | | | | | | | | | | | On an mmu context switch, an mmu flush is required. When the mmu is enabled after a power off, the mmu context at the head of the cmd buffer queue is made current but the cached current context was not updated so the next process to try a commit would throw an l3 bus error. Change-Id: Ifc5e315e2c237644399db39c60bf8d6dfcd6e491 Signed-off-by: Craig Stout <craig.stout@ti.com>
* gcx: added scaling support.Alexei Shlychkov2014-10-0115-893/+2937
| | | | | | | Includes support for nv12 source. Change-Id: I6af32e3d38bfbcc804c0f64ae1b863f8327a5af1 Signed-off-by: Alexei Shlychkov <x0177296@ti.com>
* gcx: split in several files by function.Alexei Shlychkov2014-10-0114-3778/+4527
| | | | | | | Also added GC_SHOW_TIME switch. Change-Id: Ib166f4c58cefbdc9732c9f5cc5d077a157ef4bee Signed-off-by: Alexei Shlychkov <x0177296@ti.com>
* gcbv: improve check for fill conditionTony Lofthouse2014-10-011-5/+6
| | | | | | | | | | | | When a usecase generates a fill with a 1x1 destination we were hitting the blt rather than fill path. This change improves the check for fill to validate whether there is a virtual address which the fill code needs anyway as it directly accessing the memory provided by the src1 buffer descriptor. Change-Id: Iafae2dcb8a9b7020d07c6ac7f46a950efb6e4996 Signed-off-by: Tony Lofthouse <a0741364@ti.com>
* gcx: changed GC_THREAD_TIMEOUT valueVictor Kleinik2014-10-011-1/+1
| | | | | | | | GC_THREAD_TIMEOUT value was changed from 1000 to 20. This change gives us nearly 60mA power saving. Change-Id: If5a2e3af2e1771f25c1697424151a822312e91f5 Signed-off-by: Victor Kleinik <x0150886@ti.com>
* gcx: fixed thread lockup.Alexei Shlychkov2014-10-013-9/+15
| | | | | | | | Added a missing unlock. Also minor refactoring of the suspend flag. Change-Id: I4781a7d35d3fda9177405b15b39de4d2a490cbee Signed-off-by: Alexei Shlychkov <x0177296@ti.com>
* gcx: fixed suspend synchronization.Alexei Shlychkov2014-10-014-42/+76
| | | | | | | | | | It's possible for suspend to be called while the gcgpu is busy. Switching to power off in this state doesn't shutdown cleanly and the device can't sleep. Have suspend wait for gpu activity to complete. Change-Id: I280bda56a2017491aa5e812cbeed2bd3a625056a Signed-off-by: Craig Stout <craig.stout@ti.com>
* gcx: fixed suspend issue.Alexei Shlychkov2014-10-011-24/+7
| | | | | | | | | | Clipping was only set during init. When GC320 was shut down in full system suspend, clipping was reset to the hardware default (0,0)-(0,0), which caused all primitived to be clipped after resume. Change-Id: I9d263c6d56950e4e29bb352ed53b70f034f7382a Signed-off-by: Alexei Shlychkov <x0177296@ti.com>
* gcx: bump version to 2.1.2Craig Stout2014-10-011-3/+3
| | | | | Change-Id: I15ef0998d0ee676a5f90aa1df644adbf1044b856 Signed-off-by: Craig Stout <craig.stout@ti.com>
* gcx: rotation fixes.Alexei Shlychkov2014-10-014-84/+116
| | | | | | | | | | Fixed 90/270 degree rotation. Fixed clipping for multi-source setup. Fixed thread racing condition. Also adds 8-pixel source stride check. Change-Id: If718d8b84565ea5da4c48e6387c4e41242c4dff7 Signed-off-by: Alexei Shlychkov <x0177296@ti.com>
* gcx: process cleanupJack Yen2014-10-013-6/+48
| | | | | | | Properly free kernel resources when userspace application gets killed Change-Id: I9fe38949311d9b4f1d6a8f2bff94eaf0d4cf6b24 Signed-off-by: Jack Yen <jyen@ti.com>
* gcx: yuv support improvements.Craig Stout2014-10-011-8/+62
| | | | | | | | | Added UYVY and YUY2 formats for input and output. Also fixes some issues with alignment for NV12. Also adds destination stride check for all surfaces. Change-Id: I7a3c99f5fba1c95474039300d1cc11ee19f01398 Signed-off-by: Craig Stout <craig.stout@ti.com>
* gcx: driver optimizations.Alexei Shlychkov2014-10-013-161/+175
| | | | | | | | | | Optimized interrupt usage. Optimize throughput by having the main thread program the hardware directly rather than handing off cmd buffers to the gccmdthread. Change-Id: I4159dbf425ecc495734e59f17382148067ac7010 Signed-off-by: Craig Stout <craig.stout@ti.com>