540 Commits

Author SHA1 Message Date
tytung
499a1d65ed Revert "disable KSM"
This reverts commit c9ff1491834a531715dd5658ccf90b524545b7a9.
2012-09-23 19:28:36 +08:00
tytung
e41593d928 Merge remote-tracking branch 'securecrt/ics_HWA' into ics_HWA
Conflicts:
	arch/arm/configs/htcleo_defconfig
	build.sh
2012-09-23 17:22:13 +08:00
SecureCRT
7e72949381 Staging: android: binder: Add some missing binder_stat_br calls
Cached thread return errors, death notifications and new looper
requests were not included in the stats.

Change-Id: Iabe14b351b662d3f63009ecb3900f92fc3d72cc4
Signed-off-by: Arve Hjønnevåg <arve@android.com>
2012-09-22 20:39:45 +08:00
SecureCRT
00e4d55f8a base: genlock: handle error while creating lock/handle inode
base: genlock: add magic to protect attach from non-genlock file
base: genlock: protect kref counting with spinlock
2012-09-22 18:49:06 +08:00
securecrt
d6a9cabcb5 disable GENTLE FAIR SLEEPERS
Sleeper Fairness is a concept used by CFS which treat sleeping/waiting tasks as if they were in a run queue. This implies tasks which spend most of the time waiting for an user input and such will get a fair share of CPU when they need it. Disabling Gentle Fair Sleepers could improve UI responsiveness.
2012-09-21 13:59:41 +08:00
securecrt
c6861409a8 ashmem: Implement read(2) in ashmem driver
ashmem: Fix ASHMEM_SET_PROT_MASK.
ashmem: Support lseek(2) in ashmem driver
ashmem: Fix the build failure when OUTER_CACHE is enabled
ashmem: Fix ashmem vm range comparison to stop roll-over
2012-09-21 13:04:50 +08:00
SecureCRT
035e8b5999 change build sh 2012-09-09 22:55:52 +08:00
securecrt
c9ff149183 disable KSM 2012-08-23 12:45:29 +08:00
securecrt
4b10fc19b9 staging: Add Snappy compression support to zram
Zram currently uses LZO compression. With Snappy, it uses less CPU time and is
thus more useful. The sacrifice in compression ratio is small.
Zram's LZO and Snappy support can be independently enabled at compile time and
each zram device can switch between compression methods when unused.
When only a single compression method was enabled at compile time, no idirection
penalty is incurred.
http://driverdev.linuxdriverproject.org/pipermail/devel/2011-April/015114.html
2012-08-23 12:39:53 +08:00
SecureCRT
f3818c8864 Merge branch 'ics_HWA' of github.com:securecrt/android_kernel_htcleo-2.6.32-ics into ics_HWA 2012-08-23 02:50:19 +08:00
SecureCRT
2145485d7d mmc: change clock from 50Mhz to 64Mhz PCLK
mmc: change NR_SG from 32 to 128 for better performance
2012-08-23 02:45:27 +08:00
SecureCRT
4eade398cd mmc: msm: fix dma usage not to use internal APIs
Remove parts of this driver which use internal API calls. This
replaces the calls as suggested by Russell King.
2012-08-23 01:05:06 +08:00
SecureCRT
08802ee5be mmc: msm_sdcc: Fix bug in PIO mode when data size is not word aligned
The current code for PIO doesn't transfer whole data when data size
is not in multiple of 4 bytes. The last few bytes are not written to
the card resulting in no DATAEND interrupt from SDCC. This patch
allows data transfer for non-aligned data size in PIO mode.
2012-08-23 00:43:40 +08:00
SecureCRT
29e0f0df9d mmc: msm_sdcc: Add prog done interrupt support
Enable prog done interrupt for stop command(CMD12) that is sent
after a multi-block write(CMD25). The PROG_DONE bit is set when
the card has finished its programming and is ready for next data.

After every write request the card will be polled for ready status
using CMD13. For a multi-block write(CMD25) before sending CMD13,
stop command (CMD12) will be sent.  If we enable prog done interrupt
for CMD12, then CMD13 polling can be avoided. The prog done interrupt
means that the card is done with its programming and is ready for
next request.
2012-08-23 00:34:36 +08:00
SecureCRT
81d981629c mmc: msm_sdcc: Fix possible circular locking dependency warning
In the context of request processing thread, data mover lock is
acquired after the host lock.  In another context, in the completion
handler of data mover the locks are acquired in the reverse order,
resulting in possible circular lock dependency warning. Hence,
schedule a tasklet to process the dma completion so as to avoid
nested locks.
2012-08-23 00:10:19 +08:00
SecureCRT
04d584c634 drivers/mmc/host/msm-sdcc: remove dead config options
CONFIG_MMC_MSM7X00A_RESUME_IN_WQ and CONFIG_MMC_EMBEDDED_SDIO don't exist
in Kconfig and is never defined anywhere else, therefore removing all
references for it from the source code.
2012-08-23 00:00:26 +08:00
SecureCRT
5c726afbb6 Revert "mm: cleancache core ops functions and config"
This reverts commit e0c9143ea1ec510a41b347be043e98034eedf5c8.
2012-08-20 23:15:00 +08:00
SecureCRT
61eb7c5296 Revert "add zcache"
This reverts commit 8eb6724dbfb99bb1f17f3192483fafc1f9eb73fe.
2012-08-20 23:14:51 +08:00
SecureCRT
4cecd4ccb2 Revert "fs: add field to superblock to support cleancache"
This reverts commit 1abd4f495eaa84e73b597f238cce704f06c54dc4.
2012-08-20 23:12:22 +08:00
SecureCRT
0f794ead76 Revert "enable zcache & cleancache"
This reverts commit c2ff7098d4011efb6143305f62b71c0f95e38108.
2012-08-20 23:12:10 +08:00
SecureCRT
f3a9b636b3 Revert "mm/fs: add hooks to support cleancache"
This reverts commit 3d343ac32afc6eb933d98eb2dc4b3ad532de7f3a.
2012-08-20 23:10:46 +08:00
SecureCRT
7c50bd921f staging:lowmemkiller add Fudgeswap
fudgeswap acts as follows:

If set to non zero (defualt is 512k):
	Check for the amount of SWAP_FREE space avalible
	If > 0KB is avalible:
		if fudgeswap > swapfree:
			other_file += swapfree
		else:
			other_file += fugeswap

In short: we will add in fugeswap as long as its less then the free swap

Setting this to a very large positive number will indicate swap ought
to be fully used as free (and will slow the system down)

smaller numbers will allow you to put some pressure on SWAP without
slowing the system down as much.

small negitive numbers will allow the system to be faster at the same
minfree level.

default is 512 to give a very little bit of pressure to use some swap
but this can be modified at runtime via:
/sys/module/lowmemorykiller/parameters/fugeswap
originally by ezterry
 Please enter the commit message for your changes. Lines starting
2012-08-20 15:24:37 +08:00
SecureCRT
3d343ac32a mm/fs: add hooks to support cleancache 2012-08-20 12:10:10 +08:00
SecureCRT
b6c1977f35 revert #8b62d33 2012-08-20 00:57:38 +08:00
SecureCRT
c2ff7098d4 enable zcache & cleancache 2012-08-20 00:53:53 +08:00
SecureCRT
8b62d33820 enable zcache & cleancache 2012-08-20 00:52:57 +08:00
SecureCRT
1abd4f495e fs: add field to superblock to support cleancache 2012-08-20 00:51:37 +08:00
SecureCRT
8eb6724dbf add zcache 2012-08-20 00:51:06 +08:00
SecureCRT
e0c9143ea1 mm: cleancache core ops functions and config 2012-08-20 00:49:43 +08:00
SecureCRT
f1beec1b32 vmalloc(): adjust gfp mask passed on nested vmalloc() invocation 2012-08-18 23:45:48 +08:00
SecureCRT
7c81b7476d ksm: check for ERR_PTR from follow_page() 2012-08-17 01:49:14 +08:00
SecureCRT
8b041c69af mm/ksm.c is doing an unneeded _notify in write_protect_page. 2012-08-17 01:40:53 +08:00
SecureCRT
c95ed3371a staging: zram: fix zram locking
Staging: zram: Replace mutex lock by a R/W semaphore
Staging: zram: Add a missing GFP_KERNEL specifier in zram_init_device()
2012-08-17 01:21:55 +08:00
SecureCRT
cc0db50c33 ksm: remove unswappable max_kernel_pages
ksm: fix bad user data when swapping
thp: ksm: free swap when swapcache page is replaced
2012-08-17 01:19:24 +08:00
securecrt
0c4a37e304 change MSM_NAND_DMA_BUFFER_SIZE to SZ_1M 2012-08-15 18:07:29 +08:00
securecrt
cdcb35c854 pmem_adsp (user-space) as non-cached
pmem_venc (user-space) as non-cached
2012-08-15 18:06:24 +08:00
securecrt
fced437cd2 pmem: Check for valid virtual address while flushing
pmem: Correctly account for aligned blocks
2012-08-15 18:04:29 +08:00
securecrt
e04d028ecf reduced the log size 2012-08-15 18:03:44 +08:00
securecrt
9c3257d859 android: logger: Allow a UID to read it's own log entries
staging: logger: hold mutex while removing reader
staging: android: logger: clarify non-update of w_off in do_write_log_from_user
staging: android: logger: clarify code in clock_interval
staging: android: logger: reorder prepare_to_wait and mutex_lock
staging: android: logger: simplify and optimize get_entry_len
staging: android: logger: Change logger_offset() from macro to function
Staging: android: fixed white spaces coding style issue in logger.c
android: logger: bump up the logger buffer sizes
2012-08-15 14:56:37 +08:00
securecrt
d6b41b0def staging: android: lowmemorykiller: sysfs node and notifications
android, lowmemorykiller: remove task handoff notifier
staging: android: lowmemorykiller: Fix task_struct leak
staging: android/lowmemorykiller: Don't unregister notifier from atomic context
staging: android, lowmemorykiller: convert to use oom_score_adj
staging: android/lowmemorykiller: Do not kill kernel threads
staging: android/lowmemorykiller: No need for task->signal check
staging: android/lowmemorykiller: Better mm handling
staging: android/lowmemorykiller: Don't grab tasklist_lock
staging: android: lowmemorykiller: Don't wait more than one second for a process to die
Staging: android: fixed 80 characters warnings in lowmemorykiller.c
staging: android: lowmemorykiller: Ignore shmem pages in page-cache
staging: android: lowmemorykiller: Remove bitrotted codepath
staging: android: lowmemkiller: Substantially reduce overhead during reclaim
staging: android: lowmemorykiller: Don't try to kill the same pid over and over
2012-08-15 13:37:30 +08:00
securecrt
9b8229cafb Staging: android: binder: Don't call dump_stack in binder_vma_open
Staging: android: binder: Fix crashes when sharing a binder file between processes
drivers:staging:android Typos: fix some comments that have typos in them.
fs: Remove missed ->fds_bits from cessation use of fd_set structs internally
Staging:android: Change type for binder_debug_no_lock switch to bool
Staging: android: binder: Fix use-after-free bug
2012-08-14 16:48:25 +08:00
securecrt
e20f7d7077 base: genlock: Remove genlock_release_lock and associated ioctl
base: genlock: allow synchronization with a single gralloc handle
base: genlock: remove BIT macro usage
2012-08-14 13:45:36 +08:00
tytung
8d701dfec6 htcleo: updated htcleo_defconfig to tytung_HWA_r3.4 2012-08-07 00:04:47 +08:00
marc1706
83bc93927f power: ds2746: Add procfs interface for fast charge 2012-08-07 00:11:19 +08:00
securecrt
8bdae42d95 net: netfilter: enable bandwidth control
to be able to set mobile data limit
2012-08-01 10:55:06 +08:00
tytung
bc9444ab04 htcleo: updated htcleo_defconfig to tytung_HWA_r3.3 2012-08-01 00:21:30 +08:00
tytung
47e7119196 Merge branch 'ics_HWA' of git://github.com/securecrt/android_kernel_htcleo-2.6.32-ics into ics_HWA
update the KGSL driver to the latest version
2012-08-01 00:17:27 +08:00
securecrt
c6e8ee54ff msm: kgsl: rework ib checking
Separate ib parse checking from cffdump as it is useful
in other situations. This is controlled by a new debugfs
file, ib_check. All ib checking is off (0) by default,
because parsing and mem_entry lookup can have a performance
impact on some benchmarks. Level 1 checking verifies the
IB1's. Level 2 checking also verifies the IB2.
2012-07-26 16:14:35 +08:00
securecrt
d842173fc6 msm: kgsl: Add markers to identify IB sequence start and end
Add nop packets in ringbuffer at the start and end of IB buffers
subnmitted by user space driver. These nop packets serve as markers
that can be used during replay, recovery, and snapshot to get valid
data for a GPU hang dump
2012-07-26 15:37:36 +08:00
securecrt
1672c9446f msm: kgsl: Optimize page_alloc allocations
User memory needs to be zeroed out before it is sent to the user.
To do this, the kernel maps the page, memsets it to zero and then
unmaps it.  By virtue of mapping it, this forces us to flush the
dcache to ensure cache coherency between kernel and user mappings.
Originally, the page_alloc loop was using GFP_ZERO (which does a
map, memset, and unmap for each individual page) and then we were
additionally calling flush_dcache_page() for each page killing us
on performance.  It is far more efficient, especially for large
allocations (> 1MB), to allocate the pages without GFP_ZERO and
then to vmap the entire allocation, memset it to zero, flush the
cache and then unmap. This process is slightly slower for very
small allocations, but only by a few microseconds, and is well
within the margin of acceptability. In all, the new scheme is
faster than the default for all sizes greater than 16k, and is
almost 4X faster for 2MB and 4MB allocations which are common for
textures and very large buffer objects.

The downside is that if there isn't enough vmalloc room for the
allocation that we are forced to fallback to a slow page by
page memset/flush, but this should happen rarely (if at all) and
is only included for completeness.
2012-07-26 14:45:24 +08:00