Subject: issues with 3.99.21 on SUN x4200
To: None <current-users@NetBSD.org>
From: Klaus Heinz <k.heinz.jun.sechs@onlinehome.de>
List: current-users
Date: 06/16/2006 22:48:49
Hi,

I had a short opportunity to boot a SUN x4200 (16GB RAM) with a NetBSD/i386
snapshot (HEAD/200606080000Z/i386/installation/cdrom/boot.iso).
I preferred i386 over amd64 because I thought this would show the fewest
problems...

===========================================================================
booting cd0a:netbsd
3890192+5224768+178328=0x8de0ac
WARNING: skipping large memory map entry: 0x100000000/0x300000000/0x1
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 3.99.21 (INSTALL) #0: Fri Jun  9 01:18:39 UTC 2006
        builds@b3.netbsd.org:/home/builds/ab/HEAD/i386/200606080000Z-obj/home/builds/ab/HEAD/src/sys/arch/i386/compile/INSTALL
total memory = 3967 MB
avail memory = 3889 MB
RTC BIOS diagnostic error 2
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: AMD Unknown K7 (Athlon) (686-class), 2393.27 MHz, id 0x20f12
cpu0: "Dual Core AMD Opteron(tm) Processor 280"
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
ppb0 at pci0 dev 1 function 0: vendor 0x1022 product 0x7450 (rev. 0x13)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
wm0 at pci1 dev 1 function 0: Intel i82546EB 1000BASE-T Ethernet, rev. 3
wm0: interrupting at irq 10
wm0: Ethernet address 00:14:4f:0f:72:fa
makphy0 at wm0 phy 1: Marvell 88E1011 Gigabit PHY, rev. 5
makphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
wm1 at pci1 dev 1 function 1: Intel i82546EB 1000BASE-T Ethernet, rev. 3
wm1: interrupting at irq 11
wm1: Ethernet address 00:14:4f:0f:72:fb
makphy1 at wm1 phy 1: Marvell 88E1011 Gigabit PHY, rev. 5
makphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
wm2 at pci1 dev 2 function 0: Intel i82546EB 1000BASE-T Ethernet, rev. 3
wm2: interrupting at irq 11
wm2: Ethernet address 00:14:4f:0f:73:00
makphy2 at wm2 phy 1: Marvell 88E1011 Gigabit PHY, rev. 5
makphy2: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
wm3 at pci1 dev 2 function 1: Intel i82546EB 1000BASE-T Ethernet, rev. 3
wm3: interrupting at irq 9
wm3: Ethernet address 00:14:4f:0f:73:01
makphy3 at wm3 phy 1: Marvell 88E1011 Gigabit PHY, rev. 5
makphy3: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
vendor 0x1022 product 0x7451 (interrupt system, interface 0x10, revision 0x01) at pci0 dev 1 function 1 not configured
ppb1 at pci0 dev 2 function 0: vendor 0x1022 product 0x7450 (rev. 0x13)
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled
vendor 0x1000 product 0x0050 (SCSI mass storage, revision 0x02) at pci2 dev 3 function 0 not configured
vendor 0x1022 product 0x7451 (interrupt system, interface 0x10, revision 0x01) at pci0 dev 2 function 1 not configured
ppb2 at pci0 dev 6 function 0: vendor 0x1022 product 0x7460 (rev. 0x07)
pci3 at ppb2 bus 3
pci3: i/o space, memory space enabled
ohci0 at pci3 dev 0 function 0: vendor 0x1022 product 0x7464 (rev. 0x0b)
ohci0: interrupting at irq 11
ohci0: OHCI version 1.0, legacy support
ohci0: SMM does not respond, resetting
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: vendor 0x1022 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ohci1 at pci3 dev 0 function 1: vendor 0x1022 product 0x7464 (rev. 0x0b)
ohci1: interrupting at irq 11
ohci1: OHCI version 1.0, legacy support
usb1 at ohci1: USB revision 1.0
uhub1 at usb1
uhub1: vendor 0x1022 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
vga1 at pci3 dev 3 function 0: vendor 0x1002 product 0x4752 (rev. 0x27)
wsdisplay0 at vga1 kbdmux 1
wsmux1: connecting to wsdisplay0
pcib0 at pci0 dev 7 function 0
pcib0: vendor 0x1022 product 0x7468 (rev. 0x05)
viaide0 at pci0 dev 7 function 1
viaide0: Advanced Micro Devices AMD8111 IDE Controller (rev. 0x03)
viaide0: bus-master DMA support present
viaide0: primary channel configured to compatibility mode
viaide0: primary channel interrupting at irq 14
atabus0 at viaide0 channel 0
viaide0: secondary channel configured to compatibility mode
viaide0: secondary channel ignored (disabled)
vendor 0x1022 product 0x746a (SMBus serial bus, revision 0x02) at pci0 dev 7 function 2 not configured
vendor 0x1022 product 0x746b (miscellaneous bridge, revision 0x05) at pci0 dev 7 function 3 not configured
pchb0 at pci0 dev 24 function 0
pchb0: vendor 0x1022 product 0x1100 (rev. 0x00)
pchb1 at pci0 dev 24 function 1
pchb1: vendor 0x1022 product 0x1101 (rev. 0x00)
pchb2 at pci0 dev 24 function 2
pchb2: vendor 0x1022 product 0x1102 (rev. 0x00)
pchb3 at pci0 dev 24 function 3
pchb3: vendor 0x1022 product 0x1103 (rev. 0x00)
pchb4 at pci0 dev 25 function 0
pchb4: vendor 0x1022 product 0x1100 (rev. 0x00)
pchb5 at pci0 dev 25 function 1
pchb5: vendor 0x1022 product 0x1101 (rev. 0x00)
pchb6 at pci0 dev 25 function 2
pchb6: vendor 0x1022 product 0x1102 (rev. 0x00)
pchb7 at pci0 dev 25 function 3
pchb7: vendor 0x1022 product 0x1103 (rev. 0x00)
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com0: console
pckbc0 at isa0 port 0x60-0x64
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff
isapnp0: no ISA Plug 'n Play devices found
timecounter: Timecounter "TSC" frequency 2393277950 Hz quality 800
timecounter: Timecounters tick every 10.000 msec
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
timecounter: selected timecounter "TSC" frequency 2393277950 Hz quality 800
Kernelized RAIDframe activated
md0: internal 5000 KB image area
atapibus0 at atabus0: 2 targets
cd0 at atapibus0 drive 0: <DV-28SL, , 1.0A> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
cd0(viaide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA)
uhidev0 at uhub0 port 3 configuration 1 interface 0umass0 at uhub1 port 1 configuration 1 interface 0
uhidev0: American Megatrends Inc. Virtual Keyboard and Mouse, rev 1.10/1.00, addr 2, iclass 3/1

umass0: American Megatrends Inc. Virtual Cdrom Device, rev 1.10/1.00, addr 2
umass0: using ATAPI over Bulk-Only
ukbd0 at uhidev0
atapibus1 at umass0: 2 targets
cd1 at atapibus1 drive 0: <AMI, Virtual CDROM, 1.00> cdrom removable
wskbd0 at ukbd0 mux 1
wskbd0: connecting to wsdisplay0
uhidev1 at uhub0 port 3 configuration 1 interface 1
===========================================================================

Issues on this machine:

 Memory:
  Obviously NetBSD did not recognize the whole 16GB RAM:

  WARNING: skipping large memory map entry: 0x100000000/0x300000000/0x1
  ...
  total memory = 3967 MB
  avail memory = 3889 MB

 Clock:
   I do not have the slightest idea what this means:

   RTC BIOS diagnostic error 2

 CPU:
  why does it say "Unknown K7"?

  cpu0: AMD Unknown K7 (Athlon) (686-class), 2393.27 MHz, id 0x20f12

 SAS Adapter (vendor 0x1000 product 0x0050):
  I realize that the LSI Adapter 1064 is not supported by the mpt
  driver and the vendor/product id was missing until yesterday.

 ATI (vendor id 0x1002) and AMD (vendor id 0x1022) devices:
  I do not understand why all those devices are only shown with their
  numerical id. As I just looked them up, all of them were already
  listed in pcidevs, so why does the autoconfiguration say

    ppb0 at pci0 dev 1 function 0: vendor 0x1022 product 0x7450 (rev. 0x13)

  instead of

    ppb0 at pci0 dev 1 function 0: AMD AMD8131 PCI-X Tunnel (rev. 0x13)
  ?

 USB problems:
  A USB keyboard directly attached to the x4200 worked correctly until I
  pulled the plug and got

  : at uhub2 port1 (addr 5) disconnected
  panic: config_detach: forced detach of  failed (45)
  Stopped in pid 4.1 (usb1) at    0xc02d3541:  leave
  ddb>

  An external USB floppy drive from NEC caused a panic when it was
  connected at boot time and disconnected later on:

  uvm_fault (0xc09d8ee9, 0, 1) -> 0xe
  kernel: supervisor trap page fault, code = 0
  Stopped in pid 4.1 (usb1) at 0xc029001f: cmpl $0,0x1c(%ebx)
  ddb>

  I was not able to get a trace because I ran out of time to provoke
  this error again with a serial console. Maybe I can do this sometime
  next week.


  The x4200 machines from SUN have a separate service processor board
  and the machine can be controlled by means of a Java applet from a
  remote system. This applet redirects the remote mouse and keyboard to
  the x4200 where the events appear to originate from a USB mouse and
  keyboard (see "Virtual Keyboard and Mouse" in the kernel output above).
  Even a remote ISO image can be redirected to the x4200 and appears as
  a local CDROM ("Virtual Cdrom Device" above).

  Unfortunately, the virtual keyboard did not work completely. While I
  could type characters, almost every key generated

   uhidev0: bad input length 8 != 0
   uhidev0: bad input length 8 != 0

  This distorted the sysinst screen slightly...


ciao
     Klaus