黄涛 [Mon, 4 Aug 2014 08:52:07 +0000 (16:52 +0800)]
Merge remote-tracking branch 'origin/develop-3.10' into develop-3.10-next
Conflicts:
drivers/staging/android/ion/ion.c
include/linux/rockchip/sysmmu.h
Minchan Kim [Mon, 12 Aug 2013 06:13:56 +0000 (15:13 +0900)]
zram: don't grab mutex in zram_slot_free_noity
[1] introduced down_write in zram_slot_free_notify to prevent race
between zram_slot_free_notify and zram_bvec_[read|write]. The race
could happen if somebody who has right permission to open swap device
is reading swap device while it is used by swap in parallel.
However, zram_slot_free_notify is called with holding spin_lock of
swap layer so we shouldn't avoid holing mutex. Otherwise, lockdep
warns it.
This patch adds new list to handle free slot and workqueue
so zram_slot_free_notify just registers slot index to be freed and
registers the request to workqueue. If workqueue is expired,
it holds mutex_lock so there is no problem any more.
If any I/O is issued, zram handles pending slot-free request
caused by zram_slot_free_notify right before handling issued
request because workqueue wouldn't be expired yet so zram I/O
request handling function can miss it.
Lastly, when zram is reset, flush_work could handle all of pending
free request so we shouldn't have memory leak.
NOTE: If zram_slot_free_notify's kmalloc with GFP_ATOMIC would be
failed, the slot will be freed when next write I/O write the slot.
[1] [
57ab0485, zram: use zram->lock to protect zram_free_page()
in swap free notify path]
* from v2
* refactoring
* from v1
* totally redesign
Cc: Nitin Gupta <ngupta@vflare.org>
Cc: Jiang Liu <jiang.liu@huawei.com>
Cc: stable@vger.kernel.org
Signed-off-by: Minchan Kim <minchan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit
a0c516cbfc7452c8cbd564525fef66d9f20b46d1)
Conflicts:
drivers/staging/zram/zram_drv.c
xxm [Mon, 4 Aug 2014 06:46:13 +0000 (14:46 +0800)]
rockchip: mali400: change gpu to built-in temp
wdc [Mon, 4 Aug 2014 06:36:57 +0000 (14:36 +0800)]
rk312x: set logic 1.2v
wdc [Mon, 4 Aug 2014 06:28:33 +0000 (14:28 +0800)]
rk312x: fix i2c base address error
luowei [Mon, 4 Aug 2014 01:14:23 +0000 (09:14 +0800)]
spi:fix the bug while read one byte
zwl [Mon, 4 Aug 2014 03:55:52 +0000 (11:55 +0800)]
rk312x lvds: fix no display
luowei [Mon, 4 Aug 2014 01:51:47 +0000 (09:51 +0800)]
pinctrl:fix debug command bug for rk3036/rk312x
cat /sys/kernel/debug/rockchip_pinctrl/registers
luowei [Mon, 4 Aug 2014 01:14:23 +0000 (09:14 +0800)]
spi:fix the bug while read one byte
郭毅 [Mon, 4 Aug 2014 01:06:22 +0000 (09:06 +0800)]
inv_mpu: only setup timer once.
Zheng Yang [Sat, 2 Aug 2014 11:03:44 +0000 (19:03 +0800)]
rk3036 lcdc:
add set_overscan callback function to set overscan.
zwl [Sat, 2 Aug 2014 10:53:35 +0000 (18:53 +0800)]
rk312x lcdc: fix win vir_stride err
zwl [Sat, 2 Aug 2014 10:48:02 +0000 (18:48 +0800)]
rk312x lvds: fix no signal output
许盛飞 [Fri, 1 Aug 2014 10:46:33 +0000 (18:46 +0800)]
rk312x: change BL-EN pin config
Signed-off-by: 许盛飞 <xsf@rock-chips.com>
hjc [Fri, 1 Aug 2014 09:04:55 +0000 (17:04 +0800)]
rk3036 hdmi: add support HDMI CEC function
lintao [Fri, 1 Aug 2014 08:55:15 +0000 (16:55 +0800)]
mmc: rk_sdmmc: increase max_blk_count for edmac
Zheng Yang [Fri, 1 Aug 2014 08:42:06 +0000 (16:42 +0800)]
rk312x tve: display is ok.
陈亮 [Fri, 1 Aug 2014 08:09:25 +0000 (01:09 -0700)]
rk312x: add rk3128-box.dts
Signed-off-by: 陈亮 <cl@rock-chips.com>
lyz [Fri, 1 Aug 2014 07:36:44 +0000 (15:36 +0800)]
rk312x: support usb-uart debug
张晴 [Fri, 1 Aug 2014 06:25:45 +0000 (14:25 +0800)]
rk3036&rk312x:clk:modify gpu clk name for dvfs
xxm [Fri, 1 Aug 2014 06:26:10 +0000 (14:26 +0800)]
rockchip:mali400:fix gpu clk name:clk_gpu
Zheng Yang [Fri, 1 Aug 2014 05:36:25 +0000 (13:36 +0800)]
rk3036 hdmi:
When system power up, hdmi irq will be enabled twice for
hwc will call fb unblack notifier. So if hdmi is not in suspend
mode, it is no need to call rk3036_hdmi_early_resume when fb unblank
event is triggered.
wdc [Fri, 1 Aug 2014 03:51:50 +0000 (11:51 +0800)]
rk3036: set cma reverse memory o kb
xxm [Fri, 1 Aug 2014 03:32:38 +0000 (11:32 +0800)]
rockchip:mali400:enable gpu pd
张晴 [Fri, 1 Aug 2014 02:48:01 +0000 (10:48 +0800)]
rk312x:clk:support clk pd,set cpll for any freq
hjc [Fri, 1 Aug 2014 02:22:20 +0000 (10:22 +0800)]
rk3036 lcdc: update lcdc resume and suspend func
陈亮 [Thu, 31 Jul 2014 13:18:55 +0000 (06:18 -0700)]
set clk_ignore_unused, disable core dvfs
Signed-off-by: 陈亮 <cl@rock-chips.com>
陈亮 [Thu, 31 Jul 2014 13:07:55 +0000 (06:07 -0700)]
Revert "rk312x: set clk_ignore_unused = true"
This reverts commit
f0db0fef3bf5caac542281f13c1d449d9b0f975d.
陈亮 [Thu, 31 Jul 2014 13:06:33 +0000 (06:06 -0700)]
rk312x: set clk_ignore_unused = true
Signed-off-by: 陈亮 <cl@rock-chips.com>
许盛飞 [Thu, 31 Jul 2014 12:49:36 +0000 (20:49 +0800)]
rk312x:add pwm0 status-okay
Signed-off-by: 许盛飞 <xsf@rock-chips.com>
陈亮 [Thu, 31 Jul 2014 12:37:07 +0000 (05:37 -0700)]
Merge branch 'develop-3.10-next' of ssh://10.10.10.29/rk/kernel into develop-3.10-next
zwl [Thu, 31 Jul 2014 12:32:53 +0000 (20:32 +0800)]
rk fb: fix error judge for screen1
陈亮 [Thu, 31 Jul 2014 12:21:43 +0000 (05:21 -0700)]
rk312x: init rockchip_pmu_ops
zwl [Thu, 31 Jul 2014 12:02:14 +0000 (20:02 +0800)]
rk312x dts: different lcdc dt node config for rk3126 and rk3128
Zheng Yang [Thu, 31 Jul 2014 10:06:34 +0000 (18:06 +0800)]
rk321x.dtsi: add tve node.
Zheng Yang [Thu, 31 Jul 2014 10:05:01 +0000 (18:05 +0800)]
rk3036 tve: register fb notifier.
zyc [Thu, 31 Jul 2014 09:58:15 +0000 (17:58 +0800)]
camsys_drv : v0.0x12.0 ,camsys_head : v0.0x8.0
CMY [Tue, 22 Jul 2014 07:35:12 +0000 (15:35 +0800)]
Revert "rk: cma: attempt to allocate same range memory while cma allocation failure"
This reverts commit
17beed5e65b338169ff45cfc6f9c4f28f86b3899.
xxm [Thu, 31 Jul 2014 09:35:15 +0000 (17:35 +0800)]
rockchip:iommu:1,fix build error 2,disable invalid tlb when iovmm_unmap
xxm [Thu, 31 Jul 2014 08:16:47 +0000 (16:16 +0800)]
rockchip:iommu:fix build error when iommu disabled
郭毅 [Thu, 31 Jul 2014 03:41:29 +0000 (11:41 +0800)]
rk3288: Adjust the temp-limit to 100 degrees Celsius
zwl [Thu, 31 Jul 2014 07:31:56 +0000 (15:31 +0800)]
rk312x dtsi: enable hdmi dt node
wdc [Thu, 31 Jul 2014 07:27:53 +0000 (15:27 +0800)]
rk312x: fix i2c3 pclk
zwl [Thu, 31 Jul 2014 07:18:45 +0000 (15:18 +0800)]
rk312x hdmi: add support rk312x at hdmi driver
zwl [Thu, 31 Jul 2014 07:12:07 +0000 (15:12 +0800)]
rk312x lvds: remove some unused code
zwl [Thu, 31 Jul 2014 06:50:16 +0000 (14:50 +0800)]
rk312x pinctrl: add rk312x lcdc_d pinctrl for rgb output
wdc [Thu, 31 Jul 2014 06:21:42 +0000 (14:21 +0800)]
rk312x: include pinctrl at dtsi
黄涛 [Thu, 31 Jul 2014 05:59:15 +0000 (13:59 +0800)]
ARM: rockchip: rk312x: enable rockchip timer as broadcast timer
CMY [Thu, 31 Jul 2014 03:49:02 +0000 (11:49 +0800)]
rk: ion: dts: add ion configure to rk312x dts file
zwl [Thu, 31 Jul 2014 03:43:11 +0000 (11:43 +0800)]
rk312x lvds: add pinctrl set for rgb output
xxm [Thu, 31 Jul 2014 03:32:35 +0000 (11:32 +0800)]
rockchip:iommu:define function use inline instead of #define when iommu disabled
陈亮 [Thu, 31 Jul 2014 01:58:07 +0000 (18:58 -0700)]
rk312x: add pie init
Signed-off-by: 陈亮 <cl@rock-chips.com>
陈亮 [Thu, 31 Jul 2014 01:43:49 +0000 (18:43 -0700)]
add rk312x-sdk.dtsi for the common between 3126&&3128, add rk3128-sdk.dts for 3128
Signed-off-by: 陈亮 <cl@rock-chips.com>
zwl [Wed, 30 Jul 2014 14:48:32 +0000 (22:48 +0800)]
rk312x lvds: add iomux to lcdc_d for RGB
许盛飞 [Wed, 30 Jul 2014 12:04:14 +0000 (20:04 +0800)]
rk312x: add rk818-battery
Signed-off-by: 许盛飞 <xsf@rock-chips.com>
dkl [Wed, 30 Jul 2014 11:54:01 +0000 (19:54 +0800)]
rk312x dts: add reset node in dts
ljf [Wed, 30 Jul 2014 11:55:49 +0000 (19:55 +0800)]
rk3036: remove mutex lock in irq service
lyz [Wed, 30 Jul 2014 10:30:52 +0000 (18:30 +0800)]
rk312x: add usb
xxm [Wed, 30 Jul 2014 09:28:33 +0000 (17:28 +0800)]
rockchip:iommu:fix build error when iommu disabled
wdc [Wed, 30 Jul 2014 08:45:09 +0000 (16:45 +0800)]
3126: add key node at dts file
wdc [Wed, 30 Jul 2014 08:38:30 +0000 (16:38 +0800)]
Revert "312x: add key dts node"
This reverts commit
1b62e7546ef43aeb6eab7f5eafd2392c4a8e80bb.
hjc [Wed, 30 Jul 2014 07:35:59 +0000 (15:35 +0800)]
rk3036 hdmi: update hdcp coding style
hjc [Wed, 30 Jul 2014 03:55:11 +0000 (11:55 +0800)]
rk3036 hdmi: add support HDCP function
wdc [Wed, 30 Jul 2014 07:30:48 +0000 (15:30 +0800)]
312x: add key dts node
Zheng Yang [Wed, 30 Jul 2014 05:52:29 +0000 (13:52 +0800)]
rk312x dts: add hdmi in dts.
lintao [Wed, 30 Jul 2014 03:16:42 +0000 (11:16 +0800)]
block: partitions: add rockchip partition support
zwl [Wed, 30 Jul 2014 01:17:23 +0000 (09:17 +0800)]
rk312x dts: fpga use RGB screen
xjh [Wed, 30 Jul 2014 00:43:23 +0000 (08:43 +0800)]
rk312x: add TP at dts
xjh [Tue, 29 Jul 2014 07:09:33 +0000 (15:09 +0800)]
TP: add 312x sdk TP
zwl [Tue, 29 Jul 2014 09:40:34 +0000 (17:40 +0800)]
rk312x dts: fix fpga dts compile err
Zheng Yang [Tue, 29 Jul 2014 09:38:41 +0000 (17:38 +0800)]
rk3036 lcdc: map fb0 to win1 and fb1 to win0.
zwl [Tue, 29 Jul 2014 09:30:41 +0000 (17:30 +0800)]
Kconfig: add rk312x lcdc and rk31xx lvds option
zwl [Tue, 29 Jul 2014 09:22:47 +0000 (17:22 +0800)]
rk312x lcdc: fix compile err
hjc [Tue, 29 Jul 2014 09:11:59 +0000 (17:11 +0800)]
rk3036 hdmi: add hdmi driver register for hdmi status
xxm [Tue, 29 Jul 2014 06:15:25 +0000 (14:15 +0800)]
rockchip:midgard:1,update gpu version to r4p1-00rel0 2,add input handler when runtime on/off 3,version to 0x09
zwl [Tue, 29 Jul 2014 06:17:19 +0000 (14:17 +0800)]
rk31xx lvds: change defined 'BIT' to 'BITS'
zwl [Tue, 29 Jul 2014 03:38:57 +0000 (11:38 +0800)]
rk312x dts: add screen disp_timings
zwl [Tue, 29 Jul 2014 03:30:00 +0000 (11:30 +0800)]
rk312x dts: add fb/screen/lcdc/lvds dt node
wlf [Tue, 29 Jul 2014 02:32:44 +0000 (10:32 +0800)]
USB: Fix usb debug log
Zheng Yang [Tue, 29 Jul 2014 02:31:26 +0000 (10:31 +0800)]
rk3036 lcdc: bcsh is ok.
zyc [Tue, 29 Jul 2014 01:38:12 +0000 (09:38 +0800)]
camsys_drv : v0.0x11.0
zwl [Mon, 28 Jul 2014 14:52:38 +0000 (22:52 +0800)]
Makefile: add compile rk31xx lvds and rk312x lcdc
zwl [Mon, 28 Jul 2014 14:46:12 +0000 (22:46 +0800)]
rk fb: add support scaler for one lcdc dual disp
zwl [Mon, 28 Jul 2014 14:25:17 +0000 (22:25 +0800)]
rk31xx lvds: add pwr_on and pwr_off function
zwl [Mon, 28 Jul 2014 14:19:45 +0000 (22:19 +0800)]
rk312x lcdc: add support scaler function
陈亮 [Mon, 28 Jul 2014 11:51:31 +0000 (04:51 -0700)]
rockchip: kernel add efuse support
Signed-off-by: 陈亮 <cl@rock-chips.com>
许盛飞 [Mon, 28 Jul 2014 08:39:29 +0000 (16:39 +0800)]
rk3126-sdk: add backlight
CMY [Mon, 28 Jul 2014 08:28:33 +0000 (16:28 +0800)]
rk: ion: iommu: fix build error
CMY [Mon, 28 Jul 2014 08:26:04 +0000 (16:26 +0800)]
rk: ion: iommu: fix build error
黄涛 [Mon, 28 Jul 2014 08:09:07 +0000 (16:09 +0800)]
Merge remote-tracking branch 'origin/develop-3.10' into develop-3.10-next
陈亮 [Mon, 28 Jul 2014 07:52:25 +0000 (00:52 -0700)]
rk312x: add dvfs config
Signed-off-by: 陈亮 <cl@rock-chips.com>
xjh [Mon, 28 Jul 2014 07:54:37 +0000 (15:54 +0800)]
MIPI: fix merge error with develop-3.10
dgl [Mon, 28 Jul 2014 07:04:38 +0000 (15:04 +0800)]
audio: rk3036 spdif
debug rk3036 spdif, add DTS node and math dts node name.
Signed-off-by: dgl@rock-chips.com
xxm [Mon, 28 Jul 2014 06:24:57 +0000 (14:24 +0800)]
rockchip:mali400:ump no longer exist,so define map_errcode in mali.ko permanent
许盛飞 [Mon, 28 Jul 2014 03:49:39 +0000 (11:49 +0800)]
rk312x: add pwm at dtsi
dgl [Mon, 28 Jul 2014 02:46:53 +0000 (10:46 +0800)]
audio: rk3036 audio format check
change some scripts checkpatch ERROR and Warning,
do not care this version.
Signed-off-by: dgl@rock-chips.com
dgl [Mon, 28 Jul 2014 02:07:40 +0000 (10:07 +0800)]
audio: rk3036 codec driver
add rk3036 audio codec driver program, include DTS node.
Signed-off-by: dgl@rock-chips.com
sugar [Fri, 25 Jul 2014 09:57:14 +0000 (17:57 +0800)]
dts: rk312x: add i2s_2ch, i2s_8ch, spdif.
Signed-off-by: sugar <sugar.zhang@rock-chips.com>
dkl [Fri, 25 Jul 2014 09:51:54 +0000 (17:51 +0800)]
rockchip: rockchip_defconfig select rk818
xjh [Fri, 25 Jul 2014 08:36:36 +0000 (16:36 +0800)]
MIPI: add mipi for rk312x(note: not verify on board)