On Mon, 21 Feb 2011, Ulrich Weigand wrote:
Hi Nicolas, hi John,
during tests of hardware watchpoint support for GDB I run into a couple of Linux kernel issues:
- On (some versions of?) Versatile Express SMP Cortex-A9 SMP boards, a CPU
errata (#720789) causes TLB flushes to sometime fail, which can lead to random problems when running GDB in SMP mode (and probably elsewhere). There is a kernel work-around for this problem activated by CONFIG_ARM_ERRATA_720789, but this is unfortuantely not active on the Linaro kernels. (On OMAP4, this happens automatically due to an entry in mach-omap2/Kconfig. There is no such entry in mach-vexpress/Kconfig currently.)
Could you send a patch to Russell for that?
- On machines that do not support watchpoints (e.g. IGEP with current
kernels), this fact is not reported properly to user space. Will Deacon posted a patch to fix this: http://lists.infradead.org/pipermail/linux-arm-kernel/2011-February/041492.h...
Can we get fixes for these issues included in the Linaro kernel (git tree and/or packages ... not sure where the best place would be)?
This is included in the Linaro kernel repository already:
http://git.linaro.org/gitweb?p=kernel/linux-linaro-2.6.37.git%3Ba=commit%3Bh...
Next packaging of the kernel will pick it up.
Nicolas