Will Deacon [Fri, 20 May 2011 11:19:58 +0000 (12:19 +0100)]
ARM: mm: fix racy ASID rollover broadcast on SMP platforms
If ASID rollover is detected on a CPU in an SMP system, a synchronous
IPI call is made to force the secondaries to reallocate their current
ASIDs.
There is a problem where a CPU may be interrupted in the cpu_switch_mm
code with the context ID held in r1. After servicing the IPI, the
context ID register will be updated with an ASID from the previous
generation, polluting the TLB for when that ASID becomes valid in the
new generation.
This patch disables interrupts during cpu_switch_mm for SMP systems,
preventing incoming rollover broadcasts from being serviced while the
register state is inconsistent. Additionally, the context resetting code
is modified to call cpu_switch_mm, rather than setting the context ID
register directly, so that the TTBR always agrees with the ASID.
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Colin Cross [Thu, 10 Feb 2011 10:08:32 +0000 (02:08 -0800)]
ARM: vfp: Use cpu pm notifiers to save vfp state
When the cpu is powered down in a low power mode, the vfp
registers may be reset.
This patch uses CPU_PM_ENTER and CPU_PM_EXIT notifiers to save
and restore the cpu's vfp registers.
Signed-off-by: Colin Cross <ccross@android.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Reviewed-by: Kevin Hilman <khilman@ti.com>
Tested-and-Acked-by: Shawn Guo <shawn.guo@linaro.org>
Tested-by: Vishwanath BS <vishwanath.bs@ti.com>
Santosh Shilimkar [Sat, 10 Sep 2011 06:00:28 +0000 (11:30 +0530)]
ARM: Enable CPU_PM notifiers on ARM machines.
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Tested-and-Acked-by: Shawn Guo <shawn.guo@linaro.org>
Tested-by: Vishwanath BS <vishwanath.bs@ti.com>
Colin Cross [Fri, 22 Jul 2011 21:57:09 +0000 (14:57 -0700)]
cpu_pm: call notifiers during suspend
Implements syscore_ops in cpu_pm to call the cpu and
cpu cluster notifiers during suspend and resume,
allowing drivers receiving the notifications to
avoid implementing syscore_ops.
Signed-off-by: Colin Cross <ccross@android.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Reviewed-by: Kevin Hilman <khilman@ti.com>
Tested-and-Acked-by: Shawn Guo <shawn.guo@linaro.org>
Tested-by: Vishwanath BS <vishwanath.bs@ti.com>
Colin Cross [Thu, 10 Feb 2011 10:04:45 +0000 (02:04 -0800)]
cpu_pm: Add cpu power management notifiers
During some CPU power modes entered during idle, hotplug and
suspend, peripherals located in the CPU power domain, such as
the GIC, localtimers, and VFP, may be powered down. Add a
notifier chain that allows drivers for those peripherals to
be notified before and after they may be reset.
Notified drivers can include VFP co-processor, interrupt controller
and it's PM extensions, local CPU timers context save/restore which
shouldn't be interrupted. Hence CPU PM event APIs must be called
with interrupts disabled.
Signed-off-by: Colin Cross <ccross@android.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Reviewed-by: Kevin Hilman <khilman@ti.com>
Tested-and-Acked-by: Shawn Guo <shawn.guo@linaro.org>
Tested-by: Kevin Hilman <khilman@ti.com>
Tested-by: Vishwanath BS <vishwanath.bs@ti.com>
Conflicts:
kernel/power/Kconfig
lw [Tue, 21 Feb 2012 07:57:06 +0000 (15:57 +0800)]
add gsensor mma8452 code support for board-rk30-sdk
黄涛 [Mon, 20 Feb 2012 09:46:43 +0000 (17:46 +0800)]
mfd: wm831x: add WM8326 support again
黄涛 [Mon, 20 Feb 2012 08:17:16 +0000 (16:17 +0800)]
rk: update board.h
move rk30_i2c_platform_data from plat to rk30
move boot mode, usb detect etc API from rk29 to plat
move spi_cs_gpio, rk29xx_spi_platform_data, rk29_bl_info from rk29/rk30 to plat
黄涛 [Mon, 20 Feb 2012 07:43:16 +0000 (15:43 +0800)]
rk30: timer: modernize clock event and clock source registration
黄涛 [Mon, 20 Feb 2012 07:17:28 +0000 (15:17 +0800)]
arm: head.S: port to rk platform
黄涛 [Mon, 20 Feb 2012 06:30:18 +0000 (14:30 +0800)]
rk: disable print_modules
黄涛 [Mon, 20 Feb 2012 06:28:26 +0000 (14:28 +0800)]
arm: pl330: revert REVISION change
黄涛 [Mon, 20 Feb 2012 06:24:32 +0000 (14:24 +0800)]
arm: gic: port to rk platform
lw [Mon, 20 Feb 2012 07:31:01 +0000 (15:31 +0800)]
rk30:add backlight config
lw [Mon, 20 Feb 2012 07:02:52 +0000 (15:02 +0800)]
rk30:add rk30 backlight support
黄涛 [Mon, 20 Feb 2012 03:56:46 +0000 (11:56 +0800)]
rk30: io: add pwm register mapping
lw [Fri, 17 Feb 2012 07:33:37 +0000 (15:33 +0800)]
rk30:add spim driver config
lw [Fri, 17 Feb 2012 07:26:18 +0000 (15:26 +0800)]
add dma support for spim driver
kfx [Thu, 16 Feb 2012 04:49:04 +0000 (12:49 +0800)]
update i2c driver for 'no ack'
kfx [Wed, 15 Feb 2012 12:17:42 +0000 (20:17 +0800)]
RK30 I2C drivers: new adapter(rk30) support
黄涛 [Tue, 14 Feb 2012 10:35:39 +0000 (18:35 +0800)]
rk30: timer: set clockevent irq, fix for smp
黄涛 [Fri, 10 Feb 2012 08:46:09 +0000 (16:46 +0800)]
rk30: add pmu.h
黄涛 [Fri, 10 Feb 2012 08:30:54 +0000 (16:30 +0800)]
rk30: add sram support
黄涛 [Fri, 10 Feb 2012 08:27:40 +0000 (16:27 +0800)]
rk: move sram.c from mach-rk29 to plat-rk
黄涛 [Fri, 10 Feb 2012 08:10:05 +0000 (16:10 +0800)]
rk30: clock: add spi clock for fpga
黄涛 [Fri, 10 Feb 2012 07:48:17 +0000 (15:48 +0800)]
rk30: indent devices.c
黄涛 [Fri, 10 Feb 2012 07:47:23 +0000 (15:47 +0800)]
rk29: io.h include rk29_iomap.h
lw [Fri, 10 Feb 2012 08:12:10 +0000 (16:12 +0800)]
rk30:add spi support
hhb [Fri, 10 Feb 2012 07:39:45 +0000 (15:39 +0800)]
rk30: DMA: modify 'include <mach/dma-pl330.h>' to '#include <plat/dma-pl330.h>' in devices.c and rk_serial.c
hhb [Fri, 10 Feb 2012 07:15:31 +0000 (15:15 +0800)]
rk30: DMA: update pl330 driver
hhb [Fri, 10 Feb 2012 07:09:52 +0000 (15:09 +0800)]
rk30:DMA:add driver for dma pl330
kfx [Thu, 9 Feb 2012 02:43:35 +0000 (10:43 +0800)]
update i2c drivers
黄涛 [Thu, 9 Feb 2012 02:31:47 +0000 (10:31 +0800)]
rk30: update board.h
黄涛 [Thu, 9 Feb 2012 02:15:42 +0000 (10:15 +0800)]
rk30: clock: add i2c clock for fpga
lw [Wed, 8 Feb 2012 06:22:13 +0000 (14:22 +0800)]
rk30:modify gpio pull up or down operation
kfx [Wed, 8 Feb 2012 03:47:32 +0000 (11:47 +0800)]
rename: board-rk30sdk-key.c --> board-rk30-sdk-key.c
kfx [Wed, 8 Feb 2012 03:37:48 +0000 (11:37 +0800)]
add rk30 key drivers
lw@rock-chips.com [Wed, 8 Feb 2012 03:11:52 +0000 (11:11 +0800)]
rk30:add INVALID_GPIO define for gpio.h
黄涛 [Wed, 8 Feb 2012 01:57:48 +0000 (09:57 +0800)]
rk30: sdk: reserve is after fixup, before map_io
黄涛 [Tue, 7 Feb 2012 10:59:30 +0000 (18:59 +0800)]
rk30: sdk: update defconfig
黄涛 [Tue, 7 Feb 2012 10:49:15 +0000 (18:49 +0800)]
rk30: add serial support
黄涛 [Tue, 7 Feb 2012 10:48:21 +0000 (18:48 +0800)]
rk29: add dma-pl330.h
黄涛 [Tue, 7 Feb 2012 10:47:47 +0000 (18:47 +0800)]
rk30: clock: add clk_get_rate
黄涛 [Tue, 7 Feb 2012 10:46:54 +0000 (18:46 +0800)]
rk30: add early printk
黄涛 [Tue, 7 Feb 2012 10:41:50 +0000 (18:41 +0800)]
rk30: timer: fix ic bug
黄涛 [Tue, 7 Feb 2012 10:24:58 +0000 (18:24 +0800)]
rk30: indent i2c code
kfx [Tue, 7 Feb 2012 10:06:57 +0000 (18:06 +0800)]
add rk30 i2c drvier
黄涛 [Tue, 7 Feb 2012 08:01:27 +0000 (16:01 +0800)]
rk30: move nand device from board to devices.c
黄涛 [Tue, 7 Feb 2012 07:47:02 +0000 (15:47 +0800)]
rk30: annotate rk30_iomux_init as __init
黄涛 [Tue, 7 Feb 2012 07:40:21 +0000 (15:40 +0800)]
rk30: add devices.c
黄涛 [Tue, 7 Feb 2012 07:33:13 +0000 (15:33 +0800)]
rk30: timer: fix for smp
zhaoyifeng [Tue, 7 Feb 2012 07:21:30 +0000 (15:21 +0800)]
rk30xxnand_ko.uu
zhaoyifeng [Tue, 7 Feb 2012 07:18:15 +0000 (15:18 +0800)]
Merge branch 'develop-3.0-rk30' of ssh://10.10.10.29/rk/kernel into develop-3.0-rk30
zhaoyifeng [Tue, 7 Feb 2012 07:16:46 +0000 (15:16 +0800)]
rk30 nand driver.
lw [Tue, 7 Feb 2012 06:53:06 +0000 (14:53 +0800)]
add iomux control for i2c bus
lw [Tue, 7 Feb 2012 06:34:24 +0000 (14:34 +0800)]
rk30:modify table key size to make iomux code aligned
lw [Tue, 7 Feb 2012 06:15:09 +0000 (14:15 +0800)]
rk30:add gpio support
黄涛 [Tue, 7 Feb 2012 01:40:40 +0000 (09:40 +0800)]
rk30: irqs.h: fix NR_GIC_IRQS to 160, NR_GPIO_IRQS to 192
lw@rock-chips.com [Mon, 6 Feb 2012 06:42:31 +0000 (14:42 +0800)]
rk30:add iomux support
kfx [Mon, 6 Feb 2012 05:21:51 +0000 (13:21 +0800)]
memory reserve: Initial Code
黄涛 [Sat, 4 Feb 2012 09:32:36 +0000 (17:32 +0800)]
rk30: sdk: add defconfig
黄涛 [Sat, 4 Feb 2012 09:26:15 +0000 (17:26 +0800)]
rk30: add timer support
黄涛 [Sat, 4 Feb 2012 06:20:41 +0000 (14:20 +0800)]
rk30: initial rk30 support
黄涛 [Fri, 3 Feb 2012 08:18:51 +0000 (16:18 +0800)]
driver: Makefile: build dbg subdirectories depend on config option
黄涛 [Fri, 3 Feb 2012 08:17:58 +0000 (16:17 +0800)]
hdmi: fix Makefile, build hdmi driver depend on config option
Dave Martin [Thu, 2 Feb 2012 01:34:19 +0000 (09:34 +0800)]
ARM: SMP: Refactor Kconfig to be more maintainable
Making SMP depend on (huge list of MACH_ and ARCH_ configs) is
bothersome to maintain and likely to lead to merge conflicts.
This patch moves the knowledge of which platforms are SMP-capable
to the individual machines. To enable this, a new HAVE_SMP config
option is introduced to allow machines to indicate that they can
run in a SMP configuration.
Signed-off-by: Dave Martin <dave.martin@linaro.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
(for nomadik, ux500)
Acked-by: Tony Lindgren <tony@atomide.com>
(for omap)
Acked-by: Kukjin Kim <kgene.kim@samsung.com>
(for exynos)
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
(for imx)
Acked-by: Olof Johansson <olof@lixom.net>
(for tegra)
Arnd Bergmann [Fri, 10 Jun 2011 14:05:22 +0000 (14:05 +0000)]
ARM: SMP depends on MMU
The SMP implementation on ARM heavily depends on MMU-only code.
As long as nobody is interested in fixing this, let's disable the
SMP option when building for nommu.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Dave Martin [Wed, 1 Feb 2012 12:13:06 +0000 (20:13 +0800)]
ARM: l2x0/pl310: Refactor Kconfig to be more maintainable
Making CACHE_L2X0 depend on (huge list of MACH_ and ARCH_ configs)
is bothersome to maintain and likely to lead to merge conflicts.
This patch moves the knowledge of which platforms have a L2x0 or
PL310 cache controller to the individual machines. To enable this,
a new MIGHT_HAVE_CACHE_L2X0 config option is introduced to allow
machines to indicate that they may have such a cache controller
independently of each other.
Boards/SoCs which cannot reliably operate without the L2 cache
controller support will need to select CACHE_L2X0 directly from
their own Kconfigs instead. This applies to some TrustZone-enabled
boards where Linux runs in the Normal World, for example.
Signed-off-by: Dave Martin <dave.martin@linaro.org>
Acked-by: Anton Vorontsov <cbouatmailru@gmail.com>
(for cns3xxx)
Acked-by: Tony Lindgren <tony@atomide.com>
(for omap)
Acked-by: Shawn Guo <shawn.guo@linaro.org>
(for imx)
Acked-by: Kukjin Kim <kgene.kim@samsung.com>
(for exynos)
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
(for imx)
Acked-by: Olof Johansson <olof@lixom.net>
(for tegra)
黄涛 [Wed, 1 Feb 2012 11:43:04 +0000 (19:43 +0800)]
rk: move vpu_service.c from mach-rk29 to plat-rk
黄涛 [Wed, 1 Feb 2012 11:41:34 +0000 (19:41 +0800)]
rk: move usb_detect.c from mach-rk29 to plat-rk
黄涛 [Wed, 1 Feb 2012 11:39:04 +0000 (19:39 +0800)]
rk: move last_log.c from mach-rk29 to plat-rk
黄涛 [Wed, 1 Feb 2012 11:30:57 +0000 (19:30 +0800)]
arm: rk: add plat-rk
邱建斌 [Wed, 1 Feb 2012 09:19:10 +0000 (17:19 +0800)]
td8801 : lineout mode change to diff
ddl [Wed, 1 Feb 2012 08:36:41 +0000 (16:36 +0800)]
camera: Improve test framerate method and version update to v0.x.6
lw [Wed, 1 Feb 2012 06:43:23 +0000 (14:43 +0800)]
a22:fix buiding error
zhanghao [Wed, 1 Feb 2012 03:35:25 +0000 (11:35 +0800)]
pixcir driver: fix a bug touchscreen cannot hold touching
杨云 [Tue, 31 Jan 2012 08:08:53 +0000 (16:08 +0800)]
K97:alter orientation of gsensor
yangyun [Tue, 31 Jan 2012 03:48:49 +0000 (11:48 +0800)]
alter path of toolchain in pack-kernel.sh
邱建斌 [Tue, 31 Jan 2012 03:29:18 +0000 (11:29 +0800)]
wm8994 : add some route
杨云 [Mon, 30 Jan 2012 10:52:29 +0000 (18:52 +0800)]
reset
04d70e6 and use board-rk29-ddr3sdk.c handle orientation
杨云 [Mon, 30 Jan 2012 10:30:13 +0000 (18:30 +0800)]
alter gsensor orientation of mma8452
ddl [Mon, 30 Jan 2012 07:17:53 +0000 (15:17 +0800)]
camera: Port all sensor driver for rockchip to 3.0 kernel
zwp [Wed, 18 Jan 2012 09:29:57 +0000 (17:29 +0800)]
solve laibao touch screen bug:
when we read a illegal touch gesture,touch work queue will loop for ever.
黄涛 [Wed, 18 Jan 2012 06:25:45 +0000 (14:25 +0800)]
yanXiaoJun [Wed, 18 Jan 2012 05:47:12 +0000 (13:47 +0800)]
move adc battery platform data from devices.c to board-rk29-k97.c
yang yong zong [Wed, 18 Jan 2012 03:30:37 +0000 (11:30 +0800)]
K97 项目相关修改
zwp [Tue, 17 Jan 2012 03:11:48 +0000 (11:11 +0800)]
modify laibao touch driver:
1.transmit all data of mutitouch point one time.
2.modify touch release code.
2.release touch when touch up or touch point number is 0.
root [Mon, 16 Jan 2012 09:58:31 +0000 (17:58 +0800)]
td8801:camera:add sensor frame rate macro in board and set the front camera to mirror in register 0x14
zwp [Mon, 16 Jan 2012 09:16:47 +0000 (17:16 +0800)]
update LAIBAO touch screen.
1.add touch point number reading.
2.add judgement of device id when device probe.
chenli [Mon, 16 Jan 2012 06:46:23 +0000 (14:46 +0800)]
modify the GPU's MMU mechanism to avoid accessing the freed pagetables
lw [Mon, 16 Jan 2012 03:42:48 +0000 (11:42 +0800)]
fix wm831x building warning
llj [Sat, 14 Jan 2012 02:55:48 +0000 (10:55 +0800)]
A22:fix mtk23d.c compile warning
zwp [Sat, 14 Jan 2012 06:09:46 +0000 (14:09 +0800)]
sovle laibao touch bug.
zwp [Sat, 14 Jan 2012 05:19:13 +0000 (13:19 +0800)]
modify mu509 driver to solve NULL pointer bug.
root [Fri, 13 Jan 2012 10:56:03 +0000 (18:56 +0800)]
touch screen:clean gt818_ts.c compile warning
邱建斌 [Fri, 13 Jan 2012 08:19:34 +0000 (16:19 +0800)]
wm8994: Add inverter to adapt
wdc [Fri, 13 Jan 2012 02:47:34 +0000 (10:47 +0800)]
clean warning for sdk rfkill
wdc [Fri, 13 Jan 2012 01:59:36 +0000 (09:59 +0800)]
clean warning for bt and rfkill
许盛飞 [Fri, 13 Jan 2012 01:26:11 +0000 (09:26 +0800)]
rk29: slove the warning of spi_sram.c
邱建斌 [Thu, 12 Jan 2012 08:33:28 +0000 (16:33 +0800)]
headset: if headset have not MIC will reported BIT_HEADSET_NO_MIC else reported BIT_HEADSET