Changes between Version 6 and Version 7 of TBR/BSP/Mvme2700


Ignore:
Timestamp:
Jan 27, 2009, 5:24:30 AM (11 years ago)
Author:
Mrippa
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • TBR/BSP/Mvme2700

    v6 v7  
    3636 *  Four 32-bit timers, one watchdog timer
    3737 *  One VME slot, even when configured with PMC module
     38= Known Issues =
     39= Issuing bsp_reset() does not reset the board =
     40
     41There's a bug that likely occurs in mvme2300-2700. A call in libbsp/powerpc/shared/console/reboot.c attempted to board reset via the keyboard port. This resulted in a NOOP (i.e., nothing happened and the board did not reset). I have submitted a PR with a proposed patch which sets bit 1, port 0x92. This successfully resets *only* the board and I've also verified it does not reset the VME bus as described below.
     42
     43Tests performed:
     44
     451. I set bit 1 port 0x92 and removed the vmeUniverseBusReset call. I verified that exit did (at least) a board reset. That works.
     46
     472. I also performed an exit with the board SYSCON disabled (J20). I again verified the exit performed a board reset, but it did not affect any peripheral boards.
     48
     493. SYSCON reenabled now, I included a peripheral board (vmic5588) and initialized it to make the fail light turn off. I again issued an exit and the 5588 fail light remained off, while the 2700 reset.
     50
     514. I verified pushing the RST on the 2700 that my 5588 fail light transition from OFF->fail, implying this is what I should see during a VME bus reset.
     52
     53So I think this is a sufficient test indicating the board reset works independently of resetting the VME bus, which has also been verified with vmeUniverseResetBus().
     54
     55Patch:
     56{{{
     57--- /tmp/rtems-4.9.1/c/src/lib/libbsp/powerpc/shared/console/reboot.c   2008-10-23 03:45:55.000000000 -1000
     58+++ reboot.c    2009-01-26 09:30:30.295646000 -1000
     59@@ -16,10 +16,14 @@
     60   printk("Printing a stack trace for your convenience :-)\n");
     61   CPU_print_stack();
     62   /* shutdown and reboot */
     63-#if defined(BSP_KBD_IOBASE)
     64-  kbd_outb(0x4, 0xFE);      /* use keyboard controler to do the job... */
     65-#endif
     66+
     67 #if defined(mvme2100)
     68   *(unsigned char*)0xffe00000 |= 0x80;
     69+#else
     70+   /* Memory-mapped Port 92 PIB device access
     71+   *(unsigned char*)0x80000092 |= 0x01;
     72+   */
     73+   outb(1, 0x92);
     74+
     75 #endif
     76 } /* bsp_reset */
     77}}}
    3878= Configure Params =
    3979