[PATCH 5/6] save and restore etm state across core OFF modes

2010-05-01 Thread virtuoso
From: Alexander Shishkin This prevents ETM stalls whenever core enters OFF mode. Original patch author is Richard Woodruff . This version of the patch makes use of the ETM OS save/restore mechanism, which takes about 55 words in omap3_arm_context[] instead of 128. Also, saving ETM context can be

[PATCH 6/6] omap3: make coresight register save across OFF modes a sysfs option

2010-05-01 Thread virtuoso
From: Alexander Shishkin This adds a sysfs file at /sys/power/coresight_save which is used to control if the ETM and debug components' states should be saved and restored across OFF modes. Signed-off-by: Alexander Shishkin --- arch/arm/mach-omap2/Makefile|1 + arch/arm/mach-omap2/debug

[PATCH 4/6] omap3: move EMU peripheral addresses to a platform header

2010-05-01 Thread virtuoso
From: Alexander Shishkin These addresses are also needed for the OFF code to save/restore the contexts of the EMU peripherals correctly. Signed-off-by: Alexander Shishkin --- arch/arm/mach-omap2/emu.c| 14 -- arch/arm/plat-omap/include/plat/io.h | 20 +++

[PATCH 2/6] coresight: cosmetic fixes

2010-05-01 Thread virtuoso
From: Alexander Shishkin Use BIT() macro whenever it is sensible to do so. Signed-off-by: Alexander Shishkin --- arch/arm/include/asm/hardware/coresight.h | 22 +++--- 1 files changed, 11 insertions(+), 11 deletions(-) diff --git a/arch/arm/include/asm/hardware/coresight.h

[PATCH 1/6] coresight: add ETM management registers

2010-05-01 Thread virtuoso
From: Alexander Shishkin Add notion of ETM OS lock, save and restore registers. Signed-off-by: Alexander Shishkin --- arch/arm/include/asm/hardware/coresight.h |8 ++-- arch/arm/kernel/etm.c |2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/a

[PATCH 3/6] etm: do a dummy read from OSSRR during initialization

2010-05-01 Thread virtuoso
From: Alexander Shishkin The first read from ETM OS save and restore register after the power down bit deassertion returns garbage. Signed-off-by: Alexander Shishkin --- arch/arm/kernel/etm.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/arch/arm/kernel/etm.c b/ar

[RFC] ETM/JTAG components states across OFF modes

2010-05-01 Thread virtuoso
Hi, I've finally got around to doing this. This is a rework of the previously posted [1] patch that implements ETM and JTAG context saving. There are two major changes since previous version: * coresight OS save/restore mechanism is used for saving the ETM context, so that it actually occupi

[PATCH] [RFC] OMAP: eliminate OMAP_MAX_NR_PORTS

2009-10-08 Thread virtuoso
From: Alexander Shishkin Signed-off-by: Alexander Shishkin --- arch/arm/mach-omap1/serial.c |2 +- arch/arm/mach-omap2/serial.c |6 +++--- arch/arm/plat-omap/include/mach/serial.h |4 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/arch/ar

[PATCH 1/2] arm/omap3: a driver for on-chip ETM and ETB

2009-10-07 Thread virtuoso
From: Alexander Shishkin This driver implements /dev/tracebuf and some control files for ETM and ETB in sysfs. Signed-off-by: Alexander Shishkin --- arch/arm/Kconfig.debug|8 + arch/arm/include/asm/hardware/coresight.h | 164 arch/arm/kernel/Makefile