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.)
- 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)?
Mit freundlichen Gruessen / Best Regards
Ulrich Weigand
-- Dr. Ulrich Weigand | Phone: +49-7031/16-3727 STSM, GNU compiler and toolchain for Linux on System z and Cell/B.E. IBM Deutschland Research & Development GmbH Vorsitzender des Aufsichtsrats: Martin Jetter | Geschäftsführung: Dirk Wittkopp Sitz der Gesellschaft: Böblingen | Registergericht: Amtsgericht Stuttgart, HRB 243294