mvme3100 problem w/ PMC

Daron Chabot daron.chabot at gmail.com
Wed Nov 4 14:49:33 UTC 2009


On behalf of Michael:


---------- Forwarded message ----------
From: Davidsaver, Michael <mdavidsaver at bnl.gov>
Date: Wed, Nov 4, 2009 at 9:25 AM
Subject: FW: mvme3100 problem w/ PMC
To: "Chabot, Daron" <dchabot at bnl.gov>


Daron,

I tried to send this to rtems-users last week, but it doesn't seem to
have made it.  Could you post this for me.

Thanks,
Michael

-----Original Message-----
From: Davidsaver, Michael
Sent: Friday, October 30, 2009 2:13 PM
To: rtems-users at rtems.org
Subject: mvme3100 problem w/ PMC

All,

I am having a problem using PMC cards on a mvme3100 with rtems.  What I
see is that somehow the base address registers on the PMC cards are
getting zeroed after the OS loads.  Note, this is the first time I have
tried to install a PMC card.  Complete logs are attached.

I have two PMC cards, one is a Camera Link card known to work with rtems
on a mvme6100, while the other is new.  In motload I run 'pciShow -p'
and see:

...
Bus/Device/Function      : 01 00 00
Vendor/Device Identifier : 10B5 9030
Class    : 11 Data Acquisition and Signal Processing Controller
Subclass : 80 Other Data Acquisition and Signal Processing Controller
Type 0000  10 B5 90 30 01 42 02 90  01 00 80 11 08 00 00 00
...0.B..........
0010  80 20 00 00 00 00 00 00  80 21 00 00 00 00 00 00  . .......!......
0020  00 00 00 00 00 00 00 00  00 00 00 00 1A 3E 11 E6  .............>..
0030  00 00 00 00 40 00 00 00  00 00 00 00 14 01 00 00  .... at ...........

Bus/Device/Function      : 01 02 00
Vendor/Device Identifier : 123D 0034
Class    : FF Unidentifiable Class Code
Subclass : 80 Unidentifiable Subclass Code 0000  12 3D 00 34 01 46 02 20
00 00 80 FF 08 80 00 00  .=.4.F. ........
0010  80 22 00 00 00 00 00 00  00 00 00 00 00 00 00 00  ."..............
0020  00 00 00 00 00 00 00 00  00 00 00 00 12 3D 00 34  .............=.4
0030  00 00 00 00 00 00 00 00  00 00 00 00 16 01 09 01  ..............

Device 0 is the new card and 1 is the Camara Link card.  I can see that
the base address registers are being set as they should be.  While rtems
is booting I then see:

...
Number of PCI buses found is : 2
BUS:SLOT:FUN  VENDOR-DEV_ID: COMMAND STATUS BASE_ADDR0 BASE_ADDR1
IRQ_PIN -> IRQ_LINE
 0:0x00:0    0x1057-0x0008:  0x0006 0x20B0 0x80000000 0x00000000
0 ->   0 (=0x00)
 0:0x11:0    0x10E3-0x0148:  0x0146 0x02B0 0x80100004 0x00000000
1 ->   0 (=0x00)
 0:0x12:0    0x10B5-0x6520:  0x0147 0x02B0 0x00000000 0x00000000
0 ->   0 (=0x00)
 0:0x14:0    0x8086-0x3200:  0x0145 0x02B0 0x00011001 0x00012001
1 ->   2 (=0x02)
 1:0x00:0    0x10B5-0x9030:  0x0000 0x0290 0x00000000 0x00000000
1 ->   0 (=0x00)
 1:0x02:0    0x123D-0x0034:  0x0000 0x0220 0x00000000 0x00000000
1 ->   0 (=0x00)
Memory:                             268435456 bytes
...

Now it looks like both cards on bus 1 have been reset.  I am at a loss
to explain or correct this, any suggestions would be much appreciated.

Michael Davidsaver
NSLSII Controls Group
Brookhaven National Lab
-------------- next part --------------
MVME3100> pciShow -p
Bus/Device/Function      : 00 00 00
Vendor/Device Identifier : 1057 0008
Class    : 0B Processor
Subclass : 20 PowerPC
0000  10 57 00 08 00 06 20 B0  20 00 20 0B 00 00 00 00  .W.... . . .....
0010  80 00 00 00 00 00 00 00  00 00 00 04 00 00 00 00  ................
0020  00 00 00 0C 00 00 00 00  00 00 00 00 00 00 00 00  ................
0030  00 00 00 00 60 00 00 00  00 00 00 00 00 00 00 00  ....`...........

Bus/Device/Function      : 00 11 00
Vendor/Device Identifier : 10E3 0148
Class    : 06 Bridge Controller/Device
Subclass : 80 Other Bridge Controller Type
0000  10 E3 01 48 01 46 02 B0  01 00 80 06 08 80 00 00  ...H.F..........
0010  80 10 00 04 00 00 00 00  00 00 00 00 00 00 00 00  ................
0020  00 00 00 00 00 00 00 00  00 00 00 00 10 E3 00 00  ................
0030  00 00 00 00 40 00 00 00  00 00 00 00 10 01 00 00  .... at ...........

Bus/Device/Function      : 00 12 00
Vendor/Device Identifier : 10B5 6520
Class    : 06 Bridge Controller/Device
Subclass : 04 PCI-to-PCI Bridge
0000  10 B5 65 20 01 47 02 B0  CB 00 04 06 08 80 01 00  ..e .G..........
0010  00 00 00 00 00 00 00 00  00 01 01 80 01 01 22 A0  ..............".
0020  80 20 80 20 FF F1 00 01  FF FF FF FF 00 00 00 00  . . ............
0030  00 01 00 01 DC 00 00 00  00 00 00 00 00 00 00 00  ................

Bus/Device/Function      : 00 14 00
Vendor/Device Identifier : 8086 3200
Class    : 01 Mass Storage Controller
Subclass : 01 IDE Controller
0000  80 86 32 00 01 45 02 B0  00 85 01 01 08 80 00 00  ..2..E..........
0010  00 01 10 01 00 01 20 01  00 01 30 01 00 01 40 01  ...... ...0... at .
0020  00 01 50 01 00 01 60 01  00 00 00 00 80 86 32 00  ..P...`.......2.
0030  00 00 00 00 E0 00 00 00  00 00 00 00 12 01 10 01  ................

Bus/Device/Function      : 01 00 00
Vendor/Device Identifier : 10B5 9030
Class    : 11 Data Acquisition and Signal Processing Controller
Subclass : 80 Other Data Acquisition and Signal Processing Controller Type
0000  10 B5 90 30 01 42 02 90  01 00 80 11 08 00 00 00  ...0.B..........
0010  80 20 00 00 00 00 00 00  80 21 00 00 00 00 00 00  . .......!......
0020  00 00 00 00 00 00 00 00  00 00 00 00 1A 3E 11 E6  .............>..
0030  00 00 00 00 40 00 00 00  00 00 00 00 14 01 00 00  .... at ...........

Bus/Device/Function      : 01 02 00
Vendor/Device Identifier : 123D 0034
Class    : FF Unidentifiable Class Code
Subclass : 80 Unidentifiable Subclass Code
0000  12 3D 00 34 01 46 02 20  00 00 80 FF 08 80 00 00  .=.4.F. ........
0010  80 22 00 00 00 00 00 00  00 00 00 00 00 00 00 00  ."..............
0020  00 00 00 00 00 00 00 00  00 00 00 00 12 3D 00 34  .............=.4
0030  00 00 00 00 00 00 00 00  00 00 00 00 16 01 09 01  ................

-------------- next part --------------
Copyright Motorola Inc. 1999-2005, All Rights Reserved
MOTLoad RTOS Version 2.0,  PAL Version 1.1 RM03
Wed Oct 19 17:29:08 MST 2005

MPU-Type             =MPC8540
MPU-Int Clock Speed  =666MHz
MPU-CCB Clock Speed  =333MHz
MPU-DDR Clock Speed  =166MHz
MPU-PCI Clock Speed  =66MHz, PCI, 64-bit
MPU-Int Cache(L2) Enabled, 256KB, L2CTL =A8000300

Reset/Boot Vector    =Flash0

Local Memory Found   =10000000 (&268435456)
User Download Buffer =014D3000:016D2FFF

MVME3100> bootmem=malloc 0x40000
return = 01950000 (&26542080)
errno  = 00000000
MVME3100> netBoot -d/dev/enet0 -v -abootmem -p
Network Loading from: /dev/enet0

Locating BOOTP Server... Found It!

Client IP Address      = 192.168.90.52
Server IP Address      = 192.168.90.161
Gateway IP Address     = 0.0.0.0
Subnet IP Address Mask = 255.255.255.0
Boot File Name         = mad/run.boot
Load Address           = 01950000
Buffer Size = FFFFFFFF

Network Boot File Load Start - Press <ESC> to Bypass, <SPC> to Continue

Network Boot File Load in Progress - Press <CTRL-C> to Abort[]><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<


Bytes Received =&2169472, Bytes Loaded =&2169472
Bytes/Second   =&542368, Elapsed Time =4 Second(s)

Boot Device       =/dev/enet0
Boot File         =mad/run.boot
Load Address      =01950000
Load Size         =00211A80
Execution Address =01950000
Execution Offset  =00000000

Passing control to the loaded file/image.
-----------------------------------------
Welcome to rtems-4.9.2(PowerPC/Generic (no FPU)/mvme3100)
BSP: mvme3100, CVS Release ($Name: rtems-4-9-2 $)
CPU 0x8020 - rev 0x20
Additionnal boot options are
Initial system stack at 239BE8
Software IRQ stack starts at 239CE0 with size 8192
Going to start PCI buses scanning and initialization
Build Date: Mon Jun 29 11:03:44 EDT 2009
Board Type: MVME3100-1152 (S/N 9032187)
External (=PCI Bus) Clock Freq   :   66666666 Hz
Core Complex Bus (CCB) Clock Freq:  333333330 Hz
CPU Clock Freq:                     133333332 Hz
Ethernet 0                  00:01:AF:2D:74:70
Ethernet 1                  00:01:AF:2D:74:71
Ethernet 2                  00:01:AF:2D:74:72
Number of PCI buses found is : 2
BUS:SLOT:FUN  VENDOR-DEV_ID: COMMAND STATUS BASE_ADDR0 BASE_ADDR1 IRQ_PIN -> IRQ_LINE
  0:0x00:0    0x1057-0x0008:  0x0006 0x20B0 0x80000000 0x00000000       0 ->   0 (=0x00)
  0:0x11:0    0x10E3-0x0148:  0x0146 0x02B0 0x80100004 0x00000000       1 ->   0 (=0x00)
  0:0x12:0    0x10B5-0x6520:  0x0147 0x02B0 0x00000000 0x00000000       0 ->   0 (=0x00)
  0:0x14:0    0x8086-0x3200:  0x0145 0x02B0 0x00011001 0x00012001       1 ->   2 (=0x02)
  1:0x00:0    0x10B5-0x9030:  0x0000 0x0290 0x00000000 0x00000000       1 ->   0 (=0x00)
  1:0x02:0    0x123D-0x0034:  0x0000 0x0220 0x00000000 0x00000000       1 ->   0 (=0x00)
Memory:                             268435456 bytes
Cleared PCI errors: pci_stat was 0x20B0
Configuration.work_space_size = 500000
OpenPIC Version 1.2 (1 CPUs and 56 IRQ sources) at 0xE1040000
OpenPIC Vendor 0 (Unknown), Device 0 (Unknown), Stepping 0
OpenPIC timer frequency is not set
MSR is 0x00001000, TCR 0x04000000
-----------------------------------------
Exit from bspstart
Tundra Tsi148 PCI-VME bridge detected at 0x80100000, IRQ 0
Tsi148 Outbound Ports:
Port  VME-Addr   Size       PCI-Adrs   Mode:
0:    0x20000000 0x0E000000 0xC0000000 A32, SUP, D32, SCT
1:    0x00000000 0x00FF0000 0xCF000000 A24, SUP, D32, SCT
2:    0x00000000 0x00010000 0xCFFF0000 A16, SUP, D32, SCT
7:    0x00000000 0x01000000 0xCE000000 CSR, SUP, D32, SCT
Tsi148 Inbound Ports:
Port  VME-Addr   Size       PCI-Adrs   Mode:
0:    0xC0000000 0x10000000 0x00000000 A32, PGM, DAT, SUP, USR, MBLT, BLT
vmeTsi148 IRQ manager: looking for registers on VME...
Trying to find CSR on VME...
vmeTsi148 - IRQ manager using VME CSR to flush FIFO
6 I2C devices registered
Registering /dev/console as minor 0 (==/dev/ttyS0)
libbspExt - Warning: it seems that MCP support is not available on your CPU
                     or not implemented by your board. Address probing must
                     be performed in polling mode with interrupts disabled
Welcome to RTEMS GeSys
This system $Name: GeSys_2_4 $ was built on 20090811EDT16:19:34
$Id: init.c,v 1.43 2008/03/22 20:36:13 guest Exp $
Installing TIOCGWINSZ line discipline: ok.
To skip initialization, press a key now...
bootpc_init: using network interface 'tse1'
bootpc hw address is 0:1:af:2d:74:70
My ip address is 192 .168 .90 .52
Time Server is 192 .168 .90 .161
Domain name is controls.nsls2.local
Boot file is mad/run.boot
Subnet mask is 255 .255 .255 .0
Server ip address is 192 .168 .90 .161
Gateway ip address is 192 .168 .90 .161
Log server ip address is 192 .168 .90 .161
Trying to synchronize NTP...OK
yr:2009 m:10 d:30 hr:18 min:6 sec:23
Change Dir to 'mad/'
Trying symfile 'BUILTIN', system script 'st.sys'
Type 'cexpsh.help()' for help (no quotes)
'st.sys':
  ####### useful aliasing... #######
      ld    = cexpModuleLoad
0x0000c754 (51028)
      unld  = cexpModuleUnload
0x0000d1a4 (53668)
      lsmod = cexpModuleInfo
0x0000dad4 (56020)
      reboot = bsp_reset
0x000ba9e0 (764384)
  ####### calender-time info... #######################################
      setenv("TZ","EST5EDT,M3.2.0,M11.1.0",1)
0x00000000 (0)
      tzset()
0x00000000 (0)
  ##################################################################################
  #### NOTE: everything below here is IOC-specific and should be segregated as such!
  #### It'd be really cool if we could use DHCP option xxx to pass such IOC-specifics
  ##################################################################################
  ####### start syslogger (see <sys/syslog.h>): ################################
  ####### openlog(default-prompt, LOG_CONS|LOG_PERROR, LOG_LOCAL6) ###
      openlog(0, 0x22, 0xB0)
0x00000000 (0)
  ####### as of rtems-4.8, NFS client is built as part of librtemscpu.a :-) ###
  ##### nfsMount("uid.gid at srvName", "/export/dir", "/local/dir") #####
      rpcUdpInit()
RTEMS-RPCIOD $Release$, Till Straumann, Stanford/SLAC/SSRL 2002, See LICENSE file for licensing info.
0x00000000 (0)
      nfsInit(0,0)
RTEMS-NFS $Release$, Till Straumann, Stanford/SLAC/SSRL 2002, See LICENSE file for licensing info.
0x00000000 (0)
      nfsMount("192.168.90.161","/srv/tftp/mad","/mnt")
Trying to mount 192.168.90.161:/srv/tftp/mad on /mnt
0x00000000 (0)
  #   nfsMountsShow(0)
  #####################################################################
      chdir("/mnt")
0x00000000 (0)
  ####### load pty driver & telnet daemon (automagically started...) #######
      telnetHdl = ld("telnetd.obj")
This is rtems-telnetd (modified by Till Straumann)
$Id: telnetd.c,v 1.18 2007-D0e5v-i0c9 e22::4 1:/0d3e tvi/ll pEtxyp0 .$.
/Rdeelvea/spe t$Nya4me :( 5R)_tpeslenuedtod-_t1_e3r $m
inals registered.
rtems_telnetd() started with stacksize=32000,priority=150
0x002d5190 (2970000)
  ####### load & start Till's rtems-gdb-stub ###############################
      gdbstubHdl = ld("rtems-gdb-stub.obj")
0x002ec698 (3065496)
      rtems_gdb_start(0,0)
GDB daemon (Release $Name: RTEMS_gdb_stub_1_5 $): starting up

0x00000000 (0)
  ####### set PATH for Till's gdb-stub to find object-files... #######
      setenv("PATH","/mnt/bin/RTEMS-mvme3100:/mnt",1)
0x00000000 (0)
  #    chdir("/mnt/bin/RTEMS-mvme3100")

  ld("evrmrm.obj")
0x002f7848 (3110984)
  #chdir("/mnt")
Type 'cexpsh.help()' for help (no quotes)
Cexp>


More information about the users mailing list