Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1465099
| From | Gabriel Paubert <paubert@iram.es> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] powerpc/8xx: fix single_step debug |
| Date | 2016-08-18 12:20 +0200 |
| Message-ID | <s7sAy-6Nh-39@gated-at.bofh.it> (permalink) |
| References | <s7s7w-6mS-11@gated-at.bofh.it> <s7shc-6qu-17@gated-at.bofh.it> <s7sAy-6Nh-41@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, Aug 18, 2016 at 12:13:21PM +0200, Christophe Leroy wrote:
>
>
> Le 18/08/2016 à 11:58, Gabriel Paubert a écrit :
> >On Thu, Aug 18, 2016 at 11:44:20AM +0200, Christophe Leroy wrote:
> >>SPRN_ICR must be read for clearing the internal freeze signal which
> >>is asserted by the single step exception, otherwise the timebase and
> >>decrementer remain freezed
> >
> >Minor nit: s/freezed/frozen/
> >
> >If the timebase and decrementer are frozen even for a few cycles, this
> >probably upsets timekeeping. I consider this a completely stupid design
> >decision, and maybe I'm not alone.
> >
> > Gabriel
>
> We could also unset TBF bit (TimeBase Freeze enable) in TBSCR
> register (today it is set in
> arch/powerpc/platforms/8xx/m8xx_setup.c) but then it would impact
> debug done with an external BDM system which expects the decrementer
> and TB frozen when it freezes the execution.
Ok, I believe that systematically setting it is a mistake, but then I'm
always a bit nervous about screwing up timekeeping (it certainly is
always a very bad idea when you are driving telescopes).
Gabriel
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] powerpc/8xx: fix single_step debug Christophe Leroy <christophe.leroy@c-s.fr> - 2016-08-18 11:50 +0200
Re: [PATCH] powerpc/8xx: fix single_step debug Gabriel Paubert <paubert@iram.es> - 2016-08-18 12:00 +0200
Re: [PATCH] powerpc/8xx: fix single_step debug Gabriel Paubert <paubert@iram.es> - 2016-08-18 12:20 +0200
Re: [PATCH] powerpc/8xx: fix single_step debug Christophe Leroy <christophe.leroy@c-s.fr> - 2016-08-18 14:00 +0200
Re: [PATCH] powerpc/8xx: fix single_step debug Christophe Leroy <christophe.leroy@c-s.fr> - 2016-08-18 12:30 +0200
csiph-web