* MSR loses DE bit in 3.3, BDI2000 cant handle breakpoints?
@ 2012-05-29 12:00 Joakim Tjernlund
2012-05-29 18:13 ` Bob Cochran
0 siblings, 1 reply; 4+ messages in thread
From: Joakim Tjernlund @ 2012-05-29 12:00 UTC (permalink / raw)
To: linuxppc-dev
I cannot make simple break points using BDI2000 work in 3.3, abatro suggests that it
depends on MSR[DE] is cleared by the kernel. With the emulator I can see that
MSR[DE] is off quite often by just stopping at random times and looking at MSR so
it seems like the kernel is turning MSR[DE] off most of the time.
Anyone else having success debugging 3.3 with BDI2000?
This is on a P2010(E500/BOOKE) CPU.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: MSR loses DE bit in 3.3, BDI2000 cant handle breakpoints?
2012-05-29 12:00 MSR loses DE bit in 3.3, BDI2000 cant handle breakpoints? Joakim Tjernlund
@ 2012-05-29 18:13 ` Bob Cochran
2012-05-29 18:29 ` Joakim Tjernlund
2012-05-29 20:13 ` Wolfgang Denk
0 siblings, 2 replies; 4+ messages in thread
From: Bob Cochran @ 2012-05-29 18:13 UTC (permalink / raw)
To: Joakim Tjernlund; +Cc: linuxppc-dev
On 05/29/2012 08:00 AM, Joakim Tjernlund wrote:
>
> I cannot make simple break points using BDI2000 work in 3.3, abatro suggests that it
> depends on MSR[DE] is cleared by the kernel. With the emulator I can see that
> MSR[DE] is off quite often by just stopping at random times and looking at MSR so
> it seems like the kernel is turning MSR[DE] off most of the time.
> Anyone else having success debugging 3.3 with BDI2000?
>
> This is on a P2010(E500/BOOKE) CPU.
>
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev@lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/linuxppc-dev
>
I debug using Freescale CodeWarrior and a USB tap, which also rely on
MSR[DE] being set. I develop from the mainline & have a patch set that
I just recently re-tweaked to support kernel debugging.
If you want, I'll send you my set of patches for the kernel. They might
be useful (not sure since I don't use BDI).
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: MSR loses DE bit in 3.3, BDI2000 cant handle breakpoints?
2012-05-29 18:13 ` Bob Cochran
@ 2012-05-29 18:29 ` Joakim Tjernlund
2012-05-29 20:13 ` Wolfgang Denk
1 sibling, 0 replies; 4+ messages in thread
From: Joakim Tjernlund @ 2012-05-29 18:29 UTC (permalink / raw)
To: Bob Cochran; +Cc: linuxppc-dev, support
Bob Cochran <ppc@mindchasers.com> wrote on 2012/05/29 20:13:21:
>
> On 05/29/2012 08:00 AM, Joakim Tjernlund wrote:
> >
> > I cannot make simple break points using BDI2000 work in 3.3, abatro suggests that it
> > depends on MSR[DE] is cleared by the kernel. With the emulator I can see that
> > MSR[DE] is off quite often by just stopping at random times and looking at MSR so
> > it seems like the kernel is turning MSR[DE] off most of the time.
> > Anyone else having success debugging 3.3 with BDI2000?
> >
> > This is on a P2010(E500/BOOKE) CPU.
> >
> > _______________________________________________
> > Linuxppc-dev mailing list
> > Linuxppc-dev@lists.ozlabs.org
> > https://lists.ozlabs.org/listinfo/linuxppc-dev
> >
>
> I debug using Freescale CodeWarrior and a USB tap, which also rely on
> MSR[DE] being set. I develop from the mainline & have a patch set that
> I just recently re-tweaked to support kernel debugging.
>
> If you want, I'll send you my set of patches for the kernel. They might
> be useful (not sure since I don't use BDI).
Thanks, that could be useful, however I just figured something out.
Changing
diff --git a/arch/powerpc/include/asm/reg_booke.h b/arch/powerpc/include/asm/reg_booke.h
index 500fe1d..0cb259b 100644
--- a/arch/powerpc/include/asm/reg_booke.h
+++ b/arch/powerpc/include/asm/reg_booke.h
@@ -37,7 +37,7 @@
#define MSR_KERNEL (MSR_ME|MSR_RI|MSR_IR|MSR_DR|MSR_CE)
#define MSR_USER (MSR_KERNEL|MSR_PR|MSR_EE)
#else
-#define MSR_KERNEL (MSR_ME|MSR_RI|MSR_CE)
+#define MSR_KERNEL (MSR_ME|MSR_RI|MSR_CE|MSR_DE)
#define MSR_USER (MSR_KERNEL|MSR_PR|MSR_EE)
#endif
Made it work(possible one should change MSR_USER too?)
Question now is why MSR_DE is not on by default? Especially since
BDI2000 is supported by the kernel(CONFIG_BDI_SWITCH=y) is on in my kernel?
Jocke
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: MSR loses DE bit in 3.3, BDI2000 cant handle breakpoints?
2012-05-29 18:13 ` Bob Cochran
2012-05-29 18:29 ` Joakim Tjernlund
@ 2012-05-29 20:13 ` Wolfgang Denk
1 sibling, 0 replies; 4+ messages in thread
From: Wolfgang Denk @ 2012-05-29 20:13 UTC (permalink / raw)
To: Bob Cochran; +Cc: linuxppc-dev
Dear Bob,
In message <4FC511C1.4050007@mindchasers.com> you wrote:
>
> I debug using Freescale CodeWarrior and a USB tap, which also rely on
> MSR[DE] being set. I develop from the mainline & have a patch set that
> I just recently re-tweaked to support kernel debugging.
>
> If you want, I'll send you my set of patches for the kernel. They might
> be useful (not sure since I don't use BDI).
Please rather submit as a patch on the mailing list.
Thanks.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
egrep patterns are full regular expressions; it uses a fast determi-
nistic algorithm that sometimes needs exponential space.
- unix manuals
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-05-29 20:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-29 12:00 MSR loses DE bit in 3.3, BDI2000 cant handle breakpoints? Joakim Tjernlund
2012-05-29 18:13 ` Bob Cochran
2012-05-29 18:29 ` Joakim Tjernlund
2012-05-29 20:13 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).