[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MP-C303 support is broken



> > 12月16日の-currentのソースで作ったカーネルでは、こんな具合になります。
> > デバッグしてくれる人募集中です:-)
> 
> 時間がとれたらみてみます.

動かなくなったのは, 4173 の cmu で reset するようになったからのようで
す.  vrc4173bcu.c の rev. 1.2 で追加された code のうち, cmu に関する部
分を comment out すると, とりあえずは以前のように認識されます

正しくは vrpciu が全部面倒をみる, かなあ.

enami.
*** dmesg.bad	Thu Dec 20 19:03:39 2001
--- dmesg.good	Thu Dec 20 19:03:26 2001
***************
*** 9,34 ****
  ExtEscape(GETVFRAMELEN) not implemented.
  VR41
  open file "\134RSX 60D^\134md-4m.fs"(4194304 byte).
! open file "\134RSX 60D^\134mpc303.gz"(1204333 byte).
  Loader: ELF
! file size: +0x20b760 = 0x23c000 byte
  address translation table 1616 pages.(12928 byte)
  allocated 1616 page. mapped 1616 page.
! 2nd bootloader vaddr=0x0075f000 paddr=0x01cff000
  2nd bootloader copy done.
! [1] vaddr 0x80030000 file size 0x20b760 mem size 0x24648c
! 	->load 0x80030000+0x0024648c=0x8027648c ofs=0x00001000+0x20b760
! [zero clear] ->0x8023b760+0x0003ad2c=0x8027648c
! 	->load 0x8027648c+0x00000298=0x80276724
! 	->load 0x80276724+0x00015468=0x8028bb8c ofs=0x002ed998+0x15468
! 	->load 0x8028bb8c+0x00017990=0x802a351c ofs=0x002d6008+0x17990
  open file "\134RSX 60D^\134md-4m.fs"(4194304 byte).
  [file system image]	->load 0x802a4000+0x00400000=0x806a4000 ofs=0x00000000+0x400000
  load link 1602 zero clear link 1.
  kernel entry address: 0x80030000
  framebuffer: 800x600 type=5 linebytes=0 addr=0x00000000
  console = 1
! jump to 0x81cff000 (info=0x81cfe000, pvec=0x816b0000)
  kdb_trap type 9
  Stopped in pid 0 () at  cpu_Debugger+0x4:       jr      ra
                  bdslot: nop
--- 9,34 ----
  ExtEscape(GETVFRAMELEN) not implemented.
  VR41
  open file "\134RSX 60D^\134md-4m.fs"(4194304 byte).
! open file "\134RSX 60D^\134mpc303.gz"(1204328 byte).
  Loader: ELF
! file size: +0x20b6d0 = 0x23c000 byte
  address translation table 1616 pages.(12928 byte)
  allocated 1616 page. mapped 1616 page.
! 2nd bootloader vaddr=0x0075f000 paddr=0x01cf6000
  2nd bootloader copy done.
! [1] vaddr 0x80030000 file size 0x20b6d0 mem size 0x2463fc
! 	->load 0x80030000+0x002463fc=0x802763fc ofs=0x00001000+0x20b6d0
! [zero clear] ->0x8023b6d0+0x0003ad2c=0x802763fc
! 	->load 0x802763fc+0x00000298=0x80276694
! 	->load 0x80276694+0x00015468=0x8028bafc ofs=0x002ed908+0x15468
! 	->load 0x8028bafc+0x00017990=0x802a348c ofs=0x002d5f78+0x17990
  open file "\134RSX 60D^\134md-4m.fs"(4194304 byte).
  [file system image]	->load 0x802a4000+0x00400000=0x806a4000 ofs=0x00000000+0x400000
  load link 1602 zero clear link 1.
  kernel entry address: 0x80030000
  framebuffer: 800x600 type=5 linebytes=0 addr=0x00000000
  console = 1
! jump to 0x81cf6000 (info=0x81cf5000, pvec=0x816a7000)
  kdb_trap type 9
  Stopped in pid 0 () at  cpu_Debugger+0x4:       jr      ra
                  bdslot: nop
***************
*** 42,48 ****
  Copyright (c) 1982, 1986, 1989, 1991, 1993
      The Regents of the University of California.  All rights reserved.
  
! NetBSD 1.5ZA (MPC303) #3: Thu Dec 20 18:33:52 JST 2001
      enami@euphoria.enami.but-b.or.jp:/misc/hpcmips/src/syssrc/sys/arch/hpcmips/compile/MPC303
  Victor InterLink MPC303 (NEC VR4122 rev0.3 180.633MHz)
  total memory = 32768 KB
--- 42,48 ----
  Copyright (c) 1982, 1986, 1989, 1991, 1993
      The Regents of the University of California.  All rights reserved.
  
! NetBSD 1.5ZA (MPC303) #4: Thu Dec 20 18:39:59 JST 2001
      enami@euphoria.enami.but-b.or.jp:/misc/hpcmips/src/syssrc/sys/arch/hpcmips/compile/MPC303
  Victor InterLink MPC303 (NEC VR4122 rev0.3 180.633MHz)
  total memory = 32768 KB
***************
*** 62,68 ****
  vrgiu0 at vrip0 addr 0xf000140-0xf00015f intr 8
  WIN setting:                                iiiiiiiiiiiiiiiiiioooooiiioioIII
  I/O setting:                                iiiiiiiiiiiiiiiiiioooooiiioioiii
!        data:,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,....................|.|||..|||..
  com0 at vrip0 addr 0xf000800-0xf000807 intr 9: ns16550a, working fifo
  com0: console
  com0: pwctl 0
--- 62,68 ----
  vrgiu0 at vrip0 addr 0xf000140-0xf00015f intr 8
  WIN setting:                                iiiiiiiiiiiiiiiiiioooooiiioioIII
  I/O setting:                                iiiiiiiiiiiiiiiiiioooooiiioioiii
!        data:,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,....................|.|||..||.||
  com0 at vrip0 addr 0xf000800-0xf000807 intr 9: ns16550a, working fifo
  com0: console
  com0: pwctl 0
***************
*** 110,116 ****
  pci0 at vrpciu0 bus 0
  pci0: i/o space, memory space enabled, rd/line ok
  vrc4173bcu0 at pci0 dev 19 function 0: NEC VRC4173 Bus Control Unit (rev. 0x00)
- vrc4173bcu0: default clock mask is 000f
  vrc4173cmu at vrc4173bcu0 not configured
  vrc4173giu at vrc4173bcu0 not configured
  vrc4173piu at vrc4173bcu0 not configured
--- 110,115 ----
***************
*** 122,141 ****
  ohci0 at pci0 dev 19 function 2: NEC USB Host Controller (rev. 0x01)
  ohci0: PCI configuration registers:
    Common header:
!     0x00: 0x00351033 0x02000000 0x0c031001 0x00800000
  
      Vendor Name: NEC (0x1033)
      Device Name: USB Host Controller (0x0035)
!     Command register: 0x0000
        I/O space accesses: off
!       Memory space accesses: off
!       Bus mastering: off
        Special cycles: off
        MWI transactions: off
        Palette snooping: off
        Parity error checking: off
        Address/data stepping: off
!       System error (SERR): off
        Fast back-to-back transactions: off
      Status register: 0x0200
        Capability List support: off
--- 121,140 ----
  ohci0 at pci0 dev 19 function 2: NEC USB Host Controller (rev. 0x01)
  ohci0: PCI configuration registers:
    Common header:
!     0x00: 0x00351033 0x02000106 0x0c031001 0x00808000
  
      Vendor Name: NEC (0x1033)
      Device Name: USB Host Controller (0x0035)
!     Command register: 0x0106
        I/O space accesses: off
!       Memory space accesses: on
!       Bus mastering: on
        Special cycles: off
        MWI transactions: off
        Palette snooping: off
        Parity error checking: off
        Address/data stepping: off
!       System error (SERR): on
        Fast back-to-back transactions: off
      Status register: 0x0200
        Capability List support: off
***************
*** 155,170 ****
      Revision ID: 0x01
      BIST: 0x00
      Header Type: 0x00+multifunction (0x80)
!     Latency Timer: 0x00
      Cache Line Size: 0x00
  
    Type 0 ("normal" device) header:
!     0x10: 0x00000000 0x00000000 0x00000000 0x00000000
      0x20: 0x00000000 0x00000000 0x00000000 0x00000000
!     0x30: 0x00000000 0x00000000 0x00000000 0x15010100
  
      Base address register at 0x10
!       not implemented(?)
      Base address register at 0x14
        not implemented(?)
      Base address register at 0x18
--- 154,170 ----
      Revision ID: 0x01
      BIST: 0x00
      Header Type: 0x00+multifunction (0x80)
!     Latency Timer: 0x80
      Cache Line Size: 0x00
  
    Type 0 ("normal" device) header:
!     0x10: 0x10c02000 0x00000000 0x00000000 0x00000000
      0x20: 0x00000000 0x00000000 0x00000000 0x00000000
!     0x30: 0x00000000 0x00000000 0x00000000 0x1501011f
  
      Base address register at 0x10
!       type: 32-bit nonprefetchable memory
!       base: 0x10c02000, size: 0x00001000
      Base address register at 0x14
        not implemented(?)
      Base address register at 0x18
***************
*** 184,190 ****
      Maximum Latency: 0x15
      Minimum Grant: 0x01
      Interrupt pin: 0x01 (pin A)
!     Interrupt line: 0x00
  
    Device-dependent header:
      0x40: 0x00000000 0x00000000 0x00000000 0x00000000
--- 184,190 ----
      Maximum Latency: 0x15
      Minimum Grant: 0x01
      Interrupt pin: 0x01 (pin A)
!     Interrupt line: 0x1f
  
    Device-dependent header:
      0x40: 0x00000000 0x00000000 0x00000000 0x00000000
***************
*** 202,208 ****
  
      Don't know how to pretty-print device-dependent header.
  
! ohci0: can't map mem space
  NEC VRC4173 PC-Card Unit (CardBus bridge, revision 0x01) at pci0 dev 1 function 0 not configured
  NEC VRC4173 PC-Card Unit (CardBus bridge, revision 0x01) at pci0 dev 2 function 0 not configured
  MediaQ Inc. MQ200 (miscellaneous display, revision 0x02) at pci0 dev 18 function 0 not configured
--- 202,214 ----
  
      Don't know how to pretty-print device-dependent header.
  
! vrpciu_intr_establish: 0xc0006c00
! ohci0: interrupting at vrc4173 intr 0
! ohci0: OHCI version 1.0
! usb0 at ohci0: USB revision 1.0
! uhub0 at usb0
! uhub0: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
! uhub0: 2 ports with 2 removable, self powered
  NEC VRC4173 PC-Card Unit (CardBus bridge, revision 0x01) at pci0 dev 1 function 0 not configured
  NEC VRC4173 PC-Card Unit (CardBus bridge, revision 0x01) at pci0 dev 2 function 0 not configured
  MediaQ Inc. MQ200 (miscellaneous display, revision 0x02) at pci0 dev 18 function 0 not configured