| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
In order to keep the code consistent with all other platforms, the
thread notifier is changed to profile event notifier.
Change-Id: I5b996c789927b42dacba10af6fe81a21866e2c8f
|
|
|
|
| |
Signed-off-by: Jin Qian <jinqian@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
|
|
| |
Conflicts:
drivers/misc/Makefile
Change-Id: Ie57d33003d1ce0a750ef2ec2cb15884a449df92a
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
|
|
|
|
|
|
|
| |
Change-Id: I2439ca6f40b4f16128941cc5bc5f41f95805e32f
Signed-off-by: Kyle Repinski <repinski23@gmail.com>
Conflicts:
drivers/misc/bmp180.c
|
| |
|
|
|
|
|
| |
Change-Id: I68624e1604a30c854843f3a2206e70a516cc57a0
Signed-off-by: Craig Stout <craig.stout@ti.com>
|
|
|
|
|
| |
Change-Id: I0bbe26fd4dba445bd9b9c5135fe99bc8099626ff
Signed-off-by: Alexei Shlychkov <x0177296@ti.com>
|
|
|
|
|
| |
Change-Id: I137acb5efc00bc3ea2dbb9ad596234061cf78257
Signed-off-by: Alexei Shlychkov <x0177296@ti.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
Packed YUV source rotation is enabled.
Change-Id: I0beaae011e576fcd8dd78e800cc5acde7de9311f
Signed-off-by: Alexei Shlychkov <x0177296@ti.com>
|
|
|
|
|
|
|
| |
Also fixed compiler warnings.
Change-Id: I254abc86fd08c1be1d2f904f0c10018bcbc5a8c6
Signed-off-by: Alexei Shlychkov <x0177296@ti.com>
|
|
|
|
|
| |
Change-Id: Ib08231c481533e349affd792ef944386dbcc0593
Signed-off-by: Alexei Shlychkov <x0177296@ti.com>
|
|
|
|
|
|
|
| |
Use GFP_ATOMIC instead of GFP_KERNEL to avoid potential blocking.
Change-Id: Id405a2aa609560b849adf0e096970d0251cfd140
Signed-off-by: Oleg Matcovschi <oleg.matcovschi@ti.com>
|
|
|
|
|
| |
Change-Id: I09b56c66bd594305557b226fb30e9d945657a799
Signed-off-by: Craig Stout <craig.stout@ti.com>
|
|
|
|
|
|
|
| |
Also debug logging improved.
Change-Id: I0fd42fc417080d163f55f1c58e12dd5713f3d8be
Signed-off-by: Alexei Shlychkov <x0177296@ti.com>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
Added special handling for rotation.
Added bandwidth optimizations.
Bug fixes.
Change-Id: I5f188b46355b51444e18a29ebcf0f62a557924d0
Signed-off-by: Alexei Shlychkov <x0177296@ti.com>
|
|
|
|
|
| |
Change-Id: I2041fdc3092ab04337c24f6a70ed3711da96894a
Signed-off-by: Alexei Shlychkov <x0177296@ti.com>
|
|
|
|
|
| |
Change-Id: I57a8a6f49fdf6bbfa150c25c78057fec5f7892d0
Signed-off-by: Alexei Shlychkov <x0177296@ti.com>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
Change-Id: I3d19564422501dd76772760e5c2fdb152d031825
Signed-off-by: Alexei Shlychkov <x0177296@ti.com>
|
|
|
|
|
|
|
| |
RGB and YUV formats are now generically supported.
Change-Id: I9911119c6323ac91a63e1fb7d0a3012038985d8e
Signed-off-by: Alexei Shlychkov <x0177296@ti.com>
|
|
|
|
|
|
|
| |
Determines the current speed of GC320 in megahertz.
Change-Id: I0aadf024193d8c1d2aac7ef79604367249939831
Signed-off-by: Alexei Shlychkov <x0177296@ti.com>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
Change-Id: I7302e6099f6fae8880e6f1406c040bfe56833439
Signed-off-by: Craig Stout <craig.stout@ti.com>
|
|
|
|
|
| |
Change-Id: I0e7172e2ddcf32571d745daed7b4e9e3bad1e0c6
Signed-off-by: Craig Stout <craig.stout@ti.com>
|
|
|
|
|
| |
Change-Id: If18483ae6a054f3fbdc036cedca10b3178cd16b0
Signed-off-by: Jack Yen <jyen@ti.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
Change-Id: I4556ac3ec2b4b3445fb96f3ec0e7849800768f88
Signed-off-by: Alexei Shlychkov <x0177296@ti.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
Includes support for nv12 source.
Change-Id: I6af32e3d38bfbcc804c0f64ae1b863f8327a5af1
Signed-off-by: Alexei Shlychkov <x0177296@ti.com>
|
|
|
|
|
|
|
| |
Also added GC_SHOW_TIME switch.
Change-Id: Ib166f4c58cefbdc9732c9f5cc5d077a157ef4bee
Signed-off-by: Alexei Shlychkov <x0177296@ti.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
Added a missing unlock.
Also minor refactoring of the suspend flag.
Change-Id: I4781a7d35d3fda9177405b15b39de4d2a490cbee
Signed-off-by: Alexei Shlychkov <x0177296@ti.com>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
Change-Id: I15ef0998d0ee676a5f90aa1df644adbf1044b856
Signed-off-by: Craig Stout <craig.stout@ti.com>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
Properly free kernel resources when userspace application gets killed
Change-Id: I9fe38949311d9b4f1d6a8f2bff94eaf0d4cf6b24
Signed-off-by: Jack Yen <jyen@ti.com>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|