Commit Graph

270645 Commits

Author SHA1 Message Date
Erik Gilling
a5716d51da sync: use correct signed type when handling SYNC_IOC_WAIT
Change-Id: Ic7d5adf9b145765e52b23186b8c3c793ccf29be7
Signed-off-by: Erik Gilling <konkers@android.com>
2013-02-22 17:47:09 +08:00
Erik Gilling
d3a7d79571 sync: dump sync state to console on timeout
Change-Id: I74bca6b4a2afa7ed5b1f5233c5165d2edddf269a
Signed-off-by: Erik Gilling <konkers@android.com>
2013-02-22 17:47:08 +08:00
Erik Gilling
5d1bc19902 sync: clean up compiler warnings
Change-Id: I8a2ec5db652c61fd04571402067b37273b91e78f
Signed-off-by: Erik Gilling <konkers@android.com>
2013-02-22 17:47:06 +08:00
Erik Gilling
ef87732efa sync: fix erase-o in sync_fence_wait
Change-Id: I189707cf658a9f1f2943515c891b43961994e774
Signed-off-by: Erik Gilling <konkers@android.com>
2013-02-22 17:47:05 +08:00
Erik Gilling
c9ac59a938 sync: change wait timeout to mirror poll semantics
Change-Id: Ib38e6d339d41885a33027752690d65a52b6897f6
Signed-off-by: Erik Gilling <konkers@android.com>
2013-02-22 17:47:04 +08:00
Rebecca Schultz Zavin
8c83534550 sync: Fix error paths
Check the return value of get_unused_fd to make sure a valid
file descriptor is returned.

Make sure to call put_unused_fd even if an error occurs before
the fd can be used.

Change-Id: I0fe8f78d9e30ecfc4d271c5d875424543dae2d0f
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2013-02-22 17:47:02 +08:00
Erik Gilling
b84b847376 sync: add reference counting to timelines
If a timeline is destroyed while fences still hold pts on it, the reworked
fence release handler can cause the timeline to be freed before all it's points
are freed.

Change-Id: I1cd8ddb638eded7db9db446ff6b37f3dd165d6c4
Signed-off-by: Erik Gilling <konkers@android.com>
2013-02-22 17:47:01 +08:00
Erik Gilling
3162da1d18 sync: add internal refcounting to fences
If a fence is released while a timeline that one of it's pts is on is being
signaled, it is possible for that fence to be deleted before it is signaled.
This patch adds a refcount for internal references such as signaled pt
processing.

Change-Id: Ie8605e6fd2ac026c207220a03d84e1c1078ec719
Signed-off-by: Erik Gilling <konkers@android.com>
2013-02-22 17:46:59 +08:00
Erik Gilling
f7b21468ff sync: optimize fence merges
If the two fences being merged contain sync_pts from the same timeline,
those two pts will be collapsed into a single pt representing the latter
of the two.

Change-Id: Iced7ebb7e5a17a0c8b1a2969ba3388a4edb9ecaf
Signed-off-by: Erik Gilling <konkers@android.com>
2013-02-22 17:46:58 +08:00
Erik Gilling
7b6920244b sync: reorder sync_fence_release
Previously fence's pts were freed before the were the fence was removed from the
global fence list.  This led to a race with the debugfs support where it would
iterate over sync_pts that had been freed.

Change-Id: Ia3ddbf77de42ca593fc2dc353b5d04e42ddf3946
Signed-off-by: Erik Gilling <konkers@android.com>
2013-02-22 17:46:57 +08:00
Erik Gilling
4f605a26c1 sync: export sync API symbols
This is needed to allow modules to link against the sync subsystem

Change-Id: I15c1818de329f24e4113ef1d0923413b22fd0eff
Signed-off-by: Erik Gilling <konkers@android.com>
2013-02-22 17:46:56 +08:00
Erik Gilling
064f4dd519 sync: allow async waits to be canceled
In order to allow drivers to cleanly handled teardown we need to allow them
to cancel pending async waits.  To do this cleanly, we move allocation of
sync_fence_waiter to the driver calling sync_async_wait().

Change-Id: Ifcd95648be6ec07026d67f810070a4310f099989
Signed-off-by: Erik Gilling <konkers@android.com>
2013-02-22 17:46:54 +08:00
Paul Gortmaker
7b59177a62 module.h: split out the EXPORT_SYMBOL into export.h
A lot of files pull in module.h when all they are really
looking for is the basic EXPORT_SYMBOL functionality. The
recent data from Ingo[1] shows that this is one of several
instances that has a significant impact on compile times,
and it should be targeted for factoring out (as done here).

Note that several commonly used header files in include/*
directly include <linux/module.h> themselves (some 34 of them!)
The most commonly used ones of these will have to be made
independent of module.h before the full benefit of this change
can be realized.

We also transition THIS_MODULE from module.h to export.h,
since there are lots of files with subsystem structs that
in turn will have a struct module *owner and only be doing:

	.owner = THIS_MODULE;

and absolutely nothing else modular. So, we also want to have
the THIS_MODULE definition present in the lightweight header.

[1] https://lkml.org/lkml/2011/5/23/76

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
2013-02-22 17:46:53 +08:00
hjc
2d5f6170b2 rk3168_86v: xbw:delete SDCARD_DET_FROM_GPIO 2013-02-22 16:19:32 +08:00
hjc
e3efe344cb rk3168_86v: xbw SDMMC IO voltage 2013-02-22 16:11:06 +08:00
wuhao
e591148c1c rk3188 ds1006h: sync logo 2013-02-22 16:04:56 +08:00
黄涛
83e7b770ba rk: Kconfig add RK3168M support, add SOC_RK3168M config, add RK3168M TB config 2013-02-22 15:49:18 +08:00
黄涛
37cafcd206 rk: power_supply: add rk_get_system_battery_capacity and rk_get_system_battery_status api 2013-02-22 15:10:57 +08:00
hjc
4c62b9987e rk3168_86v: increase the arm and logic voltage 2013-02-22 14:27:21 +08:00
chenxing
135c26aa3e rk3168: dvfs support voltage diff = 0 2013-02-22 11:46:58 +08:00
wuhao
7cb48b21e8 rk3188 ds1006h : sync board-rk3188-ds1006h-sdmmc-config.c 2013-02-22 10:58:08 +08:00
xbw
845ce1bdcc MT6620 wifi: add the support for MT6620 wifi in RK31XX porject. 2013-02-22 09:26:15 +08:00
xbw
72d076d4e3 MT6620 wifi: mt6620 use 2.8v power. 2013-02-22 09:20:58 +08:00
xbw
46d8e4e587 SDMMC IO voltage:
Modify a numerical definition of small flaws.Not suitable for the use of the original property is double.
  Please modify your own board-xxx-sdmmc-config.c youself, Reference to this example.
2013-02-22 09:11:07 +08:00
xbw
3a52ad0c5f SDMMC-RK31XX:
Eliminate the problem of card as unidentified during the open-device or insert-removal in suspend-resume.
2013-02-21 19:09:29 +08:00
xbw
cca4647d97 SDMMC:
For example, how to modify the voltage of sdmmc0-gpio group in RK CPU.
Please modify your board-xxx-sdmmc-config.c youself , if you want to use 1.8V for SDMMC0-PIN.
2013-02-21 19:01:55 +08:00
xbw
877a539472 SDMMC:
add the control for the voltage of sdmmc0-pin in RK-host gpio group.
2013-02-21 18:58:19 +08:00
黄涛
974cc09a3e rk: rm video_state.c which replace by ddr_freq.c 2013-02-21 18:30:03 +08:00
yzq
5902ccc576 hdmi: set hdmi probe later than codec,
fix codec not close when system start with hdmi plug
2013-02-21 17:28:53 +08:00
xxx
77ab6aeb99 remove printk in last updateing 2013-02-21 17:25:46 +08:00
xxx
e01c79a6b5 dvfs support list regulator volt 2013-02-21 17:17:49 +08:00
hjc
9e59fa4f79 rk3168_86v: deconfig add SDCARD_DET_FROM_GPIO and watchdog 2013-02-21 17:00:55 +08:00
hhb
bb7e7b9fe4 add rgb2mipi display drivers for tc358768 and ssd2828 2013-02-21 15:45:14 +08:00
yangkai
4b955ffded EHCI&HSIC support 2013-02-21 15:01:21 +08:00
yxj
b841c569c6 rk3066b lcdc:support 1.8V io 2013-02-21 14:46:04 +08:00
yxj
7543702e19 rk3066b lcdc:enable color key for win1,this will be used in pcba for camera test 2013-02-21 14:08:29 +08:00
yxj
20b183557b rk fb:fix bug for one lcdc dual display 2013-02-21 11:53:48 +08:00
yxj
0ef233d715 rk3188 lcdc:modify DBG 2013-02-21 11:53:48 +08:00
kfx
ebc5e698fd iomux: default mode: uart2&uart3: add ctsn&rtsn 2013-02-21 09:12:01 +08:00
hhb
d883f0096e rk_gps: fix bug when disable gps aclk 2013-02-20 15:13:14 +08:00
yzq
465d9da7df it66121 hdmi: remove debug message 2013-02-20 09:16:09 +08:00
yxj
e76fe0f87b LR097 defconfig:add camera GC2035 SP2518 support 2013-02-19 14:34:47 +08:00
yxj
941f5446a1 board LR097:update camera,charger,ddr freq 2013-02-19 14:31:26 +08:00
yxj
bfbe073cf7 board LR097:ddr 533MHZ 2013-02-19 10:30:05 +08:00
yxj
bef5ab1ef8 rk3188 lcdc:add alpah config 2013-02-19 10:30:05 +08:00
yxj
9acd972b65 rk3188 lcdc:support set fps by sys 2013-02-19 10:30:05 +08:00
hjc
7ff013247a rk3168_86v: front camera gc0308 turn upside down 2013-02-19 10:06:13 +08:00
hjc
1616511599 rk3168_86v: deconfig delete HDMI 2013-02-19 09:56:51 +08:00
邱建斌
16478d8a39 rk610 codec : The headphone playback the probability of loss of a channel 2013-02-18 20:00:54 +08:00
邱建斌
af88ef1a9d rt5631 : fix RT5631 high frequency indicators 2013-02-18 19:45:18 +08:00