ARM: hw_breakpoint: silent EPERM when setting ARM_DSCR_MDBGEN on ARM_DEBUG_ARCH_V7_ECP14

Valentin Pistol pistol at cs.duke.edu
Fri Sep 14 04:08:24 EDT 2012


> Hi Valentin,

Hi Will,

> You might want to configure your mail client to wrap lines at 76-80 columns
> in order to make your mails more readable.

Thanks for the good suggestion.

>> Summary:
>> Kernel is compiled with CONFIG_HAVE_HW_BREAKPOINT but after boot the DSCR register does not have monitor mode enabled which is required for debug register use.
>
> That means that hardware breakpoints are unusable on your platform, likely
> because it has been locked down in the hardware (there is a signal that
> can be tied off to prevent monitor mode debug).

Is there a reliable way to determine that they are locked down?
Any particular register/bit I can check to confirm?
If they're really locked down I think getting a development board is
likely the only way to have full support (considering a PandaBoard).

> Completely untested patch below, please let me know how you get on...

Looks good, I'll give it a try.

Thanks a lot for your help!
Valentin



More information about the linux-arm-kernel mailing list