Commit Graph

169986 Commits

Author SHA1 Message Date
柯飞雄
265556d2df del i2c.h 2010-06-21 13:34:51 +08:00
柯飞雄
fedb7b43e6 add i2c 2010-06-21 13:34:51 +08:00
柯飞雄
08e5c91a29 mod i2c 2010-06-21 13:34:51 +08:00
柯飞雄
73b03907bb add i2c 2010-06-21 13:34:51 +08:00
柯飞雄
c8822d746b add i2c 2010-06-21 13:34:50 +08:00
柯飞雄
5308e48a9e add i2c 2010-06-21 13:34:50 +08:00
柯飞雄
99e8fe779d add i2c 2010-06-21 13:34:50 +08:00
柯飞雄
f4d41f9ccf add i2c 2010-06-21 13:34:50 +08:00
柯飞雄
39baf1740b add i2c 2010-06-21 13:34:50 +08:00
柯飞雄
9128b02330 add i2c 2010-06-21 13:34:50 +08:00
林辉辉
50350fb320 add spi driver 2010-06-21 13:34:50 +08:00
黄涛
2fe0f135b9 map RK2818_SDRAMC_BASE 2010-06-21 13:34:50 +08:00
黄涛
4b5d517f8a add scu.h 2010-06-21 13:34:49 +08:00
倪振宇
0d43be70bd modify dwdma hardware connection 2010-06-21 13:34:49 +08:00
黄涛
01c55e4217 enable TCM 2010-06-21 13:34:49 +08:00
倪振宇
af5a5942bd disable dwdma testing switch 2010-06-21 13:34:49 +08:00
倪振宇
c16f9537c1 modify performance of dwdam interrupt method 2010-06-21 13:34:49 +08:00
倪振宇
bf70d5d56d modify method that get irq status 2010-06-21 13:34:49 +08:00
倪振宇
904be6454b modify interrupt type 2010-06-21 13:34:49 +08:00
沈睿汀
27a483a554 update for gpio 2010-06-21 13:34:49 +08:00
黄涛
b609179d36 support clk_set_parent 2010-06-21 13:34:49 +08:00
沈睿汀
9d8ef9b6c9 add for gpio 2010-06-21 13:34:48 +08:00
沈睿汀
08700a4d62 update for gpio 2010-06-21 13:34:48 +08:00
沈睿汀
65d56d9355 update for gpio 2010-06-21 13:34:48 +08:00
沈睿汀
d263011106 update for gpio 2010-06-21 13:34:48 +08:00
沈睿汀
904eb2f188 update for gpio 2010-06-21 13:34:48 +08:00
沈睿汀
f2f2ddf53b update for gpio 2010-06-21 13:34:48 +08:00
倪振宇
8847ae9cd5 delete macro test dma 2010-06-21 13:34:48 +08:00
倪振宇
7afb6cdc75 add dwdma driver 2010-06-21 13:34:48 +08:00
黄涛
b637f1ce14 set zreladdr to 0x60008000 2010-06-21 13:34:48 +08:00
黄涛
1c112ca231 update debug code 2010-06-21 13:34:47 +08:00
林辉辉
5e623a8256 update .config can run ramdisk 2010-06-21 13:34:47 +08:00
黄涛
e393c45cc7 more clock 2010-06-21 13:34:47 +08:00
林辉辉
7d91eb51dc add iomux driver 2010-06-21 13:34:47 +08:00
林辉辉
24da4f2bb4 update rk2818_serial 2010-06-21 13:34:47 +08:00
黄涛
e9146e9727 fix clock name from uart_clk to uart, uartclk get use clk_get_rate 2010-06-21 13:34:47 +08:00
黄涛
6af39fb5f6 add clock support 2010-06-21 13:34:47 +08:00
黄涛
673a8bce82 enable common clkdev 2010-06-21 13:34:47 +08:00
林辉辉
fca2f09cda add rk2818 serial and up iomap 2010-06-21 13:34:46 +08:00
林辉辉
cb338334b9 rk2818 for linux2.6.32 2010-06-21 13:34:46 +08:00
Bjorn Bringert
16fe6f1aa7 Implement read(2) in ashmem driver
Bug: 2595601
Change-Id: I47c0016f594f9354fb8658ccb26e3d395bcb137b
Signed-off-by: Bjorn Bringert <bringert@android.com>
2010-05-15 11:13:09 +01:00
San Mehat
ab24f9c8fd staging: android: lowmemorykiller: Remove bitrotted codepath
Now that we're murder-synchronous, this code path will never be
called (and if it does, it doesn't tell us anything useful other
than we killed a task that was already being killed by somebody
else but hadn't gotten its' signal yet)

Signed-off-by: San Mehat <san@google.com>
2010-05-06 15:51:17 -07:00
San Mehat
896c969afc staging: android: lowmemorykiller: Fix task_struct leak
As it turns out, the CONFIG_PROFILING interfaces leak a
task struct if the notifier chain returns NOTIFY_OK.. doh.

This patch reworks lowmemkiller to use the new generic task
free notifier chain.

Signed-off-by: San Mehat <san@google.com>
2010-05-06 15:51:08 -07:00
San Mehat
9e6cb2f4db sched: Add a generic notifier when a task struct is about to be freed
This patch adds a notifier which can be used by subsystems that may
be interested in when a task has completely died and is about to
have it's last resource freed.

  The Android lowmemory killer uses this to determine when a task
it has killed has finally given up its goods.

Signed-off-by: San Mehat <san@google.com>
2010-05-06 15:51:00 -07:00
Christopher Lais
6bdee543a3 binder: Fix memory corruption via page aliasing
binder_deferred_release was not unmapping the page from the buffer
before freeing it, causing memory corruption.  This only happened
when page(s) had not been freed by binder_update_page_range, which
properly unmaps the pages.

This only happens on architectures with VIPT aliasing.

To reproduce, create a program which opens, mmaps, munmaps, then closes
the binder very quickly.  This should leave a page allocated when the
binder is released.  When binder_deferrred_release is called on the
close, the page will remain mapped to the address in the linear
proc->buffer.  Later, we may map the same physical page to a different
virtual address that has different coloring, and this may cause
aliasing to occur.

PAGE_POISONING will greatly increase your chances of noticing any
problems.

Change-Id: I6941bf212881b8bf846bdfda43d3609c7ae4892e

Signed-off-by: Christopher Lais <chris+android@zenthought.org>
2010-05-05 15:53:29 -07:00
San Mehat
3508951576 staging: android: lowmemkiller: Substantially reduce overhead during reclaim
This patch optimizes lowmemkiller to not do any work when it has an outstanding
kill-request. This greatly reduces the pressure on the task_list lock
(improving interactivity), as well as improving the vmscan performance
when under heavy memory pressure (by up to 20x in tests).

Note: For this enhancement to work, you need CONFIG_PROFILING

Signed-off-by: San Mehat <san@google.com>
2010-05-05 12:11:41 -07:00
Dima Zavin
7bc14acfbb [ARM] Do not call flush_cache_user_range with mmap_sem held
We can't be holding the mmap_sem while calling flush_cache_user_range
because the flush can fault. If we fault on a user address, the
page fault handler will try to take mmap_sem again. Since both places
acquire the read lock, most of the time it succeeds. However, if another
thread tries to acquire the write lock on the mmap_sem (e.g. mmap) in
between the call to flush_cache_user_range and the fault, the down_read
in do_page_fault will deadlock.

Also, since we really can't be holding the mmap_sem while calling
flush_cache_user_range AND vma is actually unused by the flush itself,
get rid of vma as an argument.

Change-Id: If55409bde41ad1060fa4fe7cbd4ac530d4d9a106
Signed-off-by: Dima Zavin <dima@android.com>
2010-05-04 18:02:20 -07:00
Velempati Chiranjeevi
fd515513a3 USB: android gadget: mass storage: Fix format issue for Vista Host
As part of formating the mass storage device, Host sends the INQUIRY
scsi command. As per the standard, the command length for this
command should be 6 bytes, whereas the Vista host sends 12 bytes.

When the command length of the command is not equal to the standard
length, the device sends a phase error as part of the status phase.
When the host receives a phase error, it re-enumerates, hence the
error.

If the command is INQUIRY, and the command length is 12 bytes,
treating this as a good command and not sending the phase error
to the host fixes this issue.

Signed-off-by: Velempati Chiranjeevi <c_cvelem@qualcomm.com>
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-05-04 08:27:03 -04:00
San Mehat
65c9eb5fc0 lowmemorykiller: Don't try to kill the same pid over and over
Under certain circumstances, a process can take awhile to
handle a sig-kill (especially if it's in a scheduler group with
a very low share ratio). When this occurs, lowmemkiller returns
to vmscan indicating the process memory has been freed - even
though the process is still waiting to die. Since the memory
hasn't actually freed, lowmemkiller is called again shortly after,
and picks the same process to die; regardless of the fact that
it has already been 'scheduled' to die and the memory has already
been reported to vmscan as having been freed.

  Solution is to check fatal_signal_pending() on the selected
task, and if it's already pending destruction return; indicating
to vmscan that no resources were freed on this pass.

Signed-off-by: San Mehat <san@google.com>
2010-04-26 15:11:04 -07:00
Arve Hjønnevåg
64fa454e9d Staging: android: binder: Create dedicated workqueue for binder deferred work
Some drivers flush the global workqueue when closed. This would deadlock if
the last reference to the file was released from the binder.

Change-Id: Ifdabc0b383fecb20836d1bbb9786c632402a14e1
Signed-off-by: Arve Hjønnevåg <arve@android.com>
2010-04-22 15:53:23 -07:00