AArch64: KGDB support
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v6 Latest posting 3/30 of 3 patches 0 repliesNew
- v6 posting 2/30 of 3 patches 0 repliesSuperseded
- v6 posting 1/31 of 3 patches 0 repliesSuperseded
Earlier versions · 4
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v4 | 4 patches | 0 replies | Superseded | |
| v3 | 3 of 4 patches | 0 replies | Superseded | |
| v2 | 3 patches | 0 replies | Superseded | |
| v1 RFC | 2 patches | 0 replies | Superseded |
Patches in v6 posting 3/3 No applies recorded yet
None of the 3 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v6 yet.
Cover letter [PATCH v6 0/3] AArch64: KGDB support
Quoted 18 lines · Vijay Kilari
Quoted 5 lines · Vijay Kilari
Quoted 5 lines
Quoted 1 line · Will Deacon
That's a good point: I think we wait until our first exception before they are unmasked. Perhaps we should:
(1) Move local_dbg_{save,restore} from
debug-monitors.hintoirqflags.h
local_dbg_saveis setting bit #8 it should be bit #9?#define local_dbg_save(flags) \ do { \ typecheck(unsigned long, flags); \ asm volatile( \ "mrs %0, daif //
Quoted 2 lines
local_dbg_save\n" \
"msr daifset, #8"
That uses daifset, so #8 is bit 3 which is D.
Quoted 19 lines
Quoted 19 lines
Quoted 5 lines
(2) Add local_dbg_enable/local_dbg_disable macros
(3) Add a call tolocal_dbg_enablein theclear_os_lockfunction after theisb().Does that work for you?
Yes, only after first exception occurs the PSTATE.D is unmasked.
I have patched (temp) as below and now KGDB boot tests pass
arch/arm64/include/asm/debug-monitors.h +0
-0@@ -64,6 +111,24 @@ struct task_struct;#define DBG_ARCH_ID_RESERVED 0/* In case of ptrace ABI updates. */
Quoted 7 lines
arch/arm64/include/asm/debug-monitors.h struct task_struct; · line 120
Quoted 7 lines
arch/arm64/include/asm/debug-monitors.h +4
-0+#define local_dbg_enable () \ + do { \ + asm volatile( \ + "msr daifclr, #9 //
I think this is going to unmask fiq as well...
Will