From: Niklaus Giger Subject: Re: [Xenomai-core] Problem with periodic timer on PPC40x solved Date: Tue, 26 Sep 2006 20:39:13 +0200 References: <200609232013.27649.niklaus.giger@domain.hid> <200609252315.38689.niklaus.giger@domain.hid> <1159280478.5084.117.camel@domain.hid> In-Reply-To: <1159280478.5084.117.camel@domain.hid> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200609262039.14094.niklaus.giger@domain.hid> Reply-To: niklaus.giger@domain.hid List-Id: "Xenomai life and development \(bug reports, patches, discussions\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: rpm@xenomai.org Cc: xenomai@xenomai.org Am Dienstag, 26. September 2006 16:21 schrieb Philippe Gerum: > > On Mon, 2006-09-25 at 22:29 +0200, Niklaus Giger wrote: > > > > Am Montag, 25. September 2006 17:57 schrieb Philippe Gerum: > > > > > On Sun, 2006-09-24 at 23:07 +0200, Wolfgang Grandegger wrote: > > > > > > Niklaus Giger wrote: > > > > <..> > > > > > > Is the output of lines like "Xenomai: Switching display-3238 to > > > > secondary mode after exception #1025 from user-space at 0x100033c4 > > > > (pid 3240)" harmless or the result of a activated > > > > CONFIG_XENO_OPT_DEBUG<..> option? > > A known hw issue seems to exist with the 405GP (revD), which causes the > ESR to be incorrectly set upon FPU emulation trap, which would in turn > cause the spurious exception to be relayed to the nucleus by Adeos. The > patch below is _not_ the final fix, but rather a way to check if this > message is indeed related to the FPU emulation on your board. Does it > silence the exception without breaking the box? > > --- arch/ppc/kernel/traps.c~ 2006-09-25 17:10:48.000000000 +0200 > +++ arch/ppc/kernel/traps.c 2006-09-26 16:14:30.000000000 +0200 > @@ -638,9 +638,6 @@ > unsigned int reason = get_reason(regs); > extern int do_mathemu(struct pt_regs *regs); > > - if (ipipe_trap_notify(IPIPE_TRAP_PCE,regs)) > - return; > - > #ifdef CONFIG_MATH_EMULATION > /* (reason & REASON_ILLEGAL) would be the obvious thing here, > * but there seems to be a hardware bug on the 405GP (RevD) > @@ -655,6 +652,9 @@ > } > #endif /* CONFIG_MATH_EMULATION */ > > + if (ipipe_trap_notify(IPIPE_TRAP_PCE,regs)) > + return; > + > if (reason & REASON_FP) { > /* IEEE FP exception */ > int code = 0; Tried your patch against adeos-ipipe 1.3. But I still get the same behaviour. Here is my proc/cpuinfo. $ cat /proc/cpuinfo processor : 0 cpu : 405GPr clock : 400MHz revision : 9.81 (pvr 5091 0951) bogomips : 398.33 machine : Netstal HCU3 plb bus clock : 133MHz U-Boot printed the following info: CPU: AMCC PowerPC 405GPr Rev. B at 400 MHz (PLB=133, OPB=33, EBC=33 MHz) , PCI sync clock at 33 MHz 16 kB I-Cache 16 kB D-Cache Best regards -- Niklaus Giger