Subject: Re: kern/36188: pkgsrc/misc/screen exits with "select: Invalid argument" when used with XEN2_DOM0
To: None <gnats-bugs@NetBSD.org>
From: None <fukumoto@imasy.or.jp>
List: netbsd-bugs
Date: 04/22/2007 21:14:42
Matthias Scheler wrote:
>>  That with an unchanged "XEN2_DOM0" kernel configuration? Do did you
>>  perhaps comment out "COMPAT_BSDPTY"?
>>  

It was XEN2_DOM0 with following changes:
I've changed GENERIC.local (which is included from XEN2_DOM0) to add a
few options: BRIDGE_IPF, POWERNOW_K8, and it(4) device.
it(4) device is a modified version (pr/35796)

Now I tried with stock XEN2_DOM0 kernel and it has same symptom.
(Though it's Feb 11 2007 version.  I couldn't find a newer one on
ftp.netbsd.org.)

I tried XEN3_DOM0 with xen-3.0.3 and it does not have the problem.

Attached is dmesg output from the XEN2_DOM0 kernel (stock one).  Xen
kernel is xen-2.0.7 by pkgsrc xenkernel20, although I copied it by
hand as /xen-2 to make it coexist with xen-3 kernel.  Somehow I can't
obtain xen's dmesg.  ("xm dmesg" returns "server internal error".)  In
fact, I experienced this "select: Invalid argument" while I was
tracking the reason why xm dmesg is returning error.


						FUKUMOTO Atsushi
						fukumoto@imasy.or.jp


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 4.0_BETA2 (XEN2_DOM0) #0: Sun Feb 11 06:18:10 UTC 2007
	builds@b0.netbsd.org:/home/builds/ab/netbsd-4/i386/200702090000Z-obj/home/builds/ab/netbsd-4/src/sys/arch/i386/compile/XEN2_DOM0
total memory = 65536 KB
avail memory = 55084 KB
BIOS32 rev. 0 found at 0xf1fc0
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: AMD Unknown K7 (Athlon) (686-class), 2204.62 MHz, id 0x40fb2
cpu0: features 178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features 178bfbff<PGE,MCA,CMOV,PAT,PSE36,MPC,MMX>
cpu0: features 178bfbff<FXSR,SSE,SSE2,HTT>
hypervisor0 at mainbus0
debug virtual interrupt using event channel 1
misdirect virtual interrupt using event channel 0
Domain controller: using event channel 2
xencons0 at hypervisor0: Xen Virtual Console Driver
npx0 at hypervisor0: using exception 16
PCI_PROBE_ROOT_BUSES: 0x11 0x0 0x0 0x0 0x0 0x0 0x0 0x0 
pci0 at hypervisor0 bus 0
pci0: i/o space, memory space enabled
NVIDIA product 0x02f0 (RAM memory, revision 0xa2) at pci0 dev 0 function 0 not configured
NVIDIA product 0x02fa (RAM memory, revision 0xa2) at pci0 dev 0 function 1 not configured
NVIDIA product 0x02fe (RAM memory, revision 0xa2) at pci0 dev 0 function 2 not configured
NVIDIA product 0x02f8 (RAM memory, revision 0xa2) at pci0 dev 0 function 3 not configured
NVIDIA product 0x02f9 (RAM memory, revision 0xa2) at pci0 dev 0 function 4 not configured
NVIDIA product 0x02ff (RAM memory, revision 0xa2) at pci0 dev 0 function 5 not configured
NVIDIA product 0x027f (RAM memory, revision 0xa2) at pci0 dev 0 function 6 not configured
NVIDIA product 0x027e (RAM memory, revision 0xa2) at pci0 dev 0 function 7 not configured
ppb0 at pci0 dev 2 function 0: NVIDIA product 0x02fc (rev. 0xa1)
pci at ppb0 bus 1 not configured
ppb1 at pci0 dev 3 function 0: NVIDIA product 0x02fd (rev. 0xa1)
pci at ppb1 bus 2 not configured
ppb2 at pci0 dev 4 function 0: NVIDIA product 0x02fb (rev. 0xa1)
pci at ppb2 bus 3 not configured
vga0 at pci0 dev 5 function 0: NVIDIA product 0x0240 (rev. 0xa2)
vga0: WARNING: ignoring 64-bit BAR @ 0x14
vga0: WARNING: ignoring 64-bit BAR @ 0x1c
wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
wsdisplay0: screen 1-3 added (80x25, vt100 emulation)
NVIDIA product 0x0270 (RAM memory, revision 0xa2) at pci0 dev 9 function 0 not configured
pcib0 at pci0 dev 10 function 0
pcib0: NVIDIA nForce430 PCI-ISA bridge (rev. 0xa3)
NVIDIA nForce430 SMBus Controller (SMBus serial bus, revision 0xa3) at pci0 dev 10 function 1 not configured
NVIDIA product 0x0272 (RAM memory, revision 0xa3) at pci0 dev 10 function 2 not configured
ohci0 at pci0 dev 11 function 0: NVIDIA nForce430 USB Controller (rev. 0xa3)
ohci0: interrupting at irq 5, event channel 4
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: NVIDIA OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 8 ports with 8 removable, self powered
ehci0 at pci0 dev 11 function 1: NVIDIA nForce430 USB2 Controller (rev. 0xa3)
ehci0: interrupting at irq 5, event channel 4
ehci0: BIOS has given up ownership
ehci0: EHCI version 1.0
ehci0: companion controller, 8 ports each: ohci0
usb1 at ehci0: USB revision 2.0
uhub1 at usb1
uhub1: NVIDIA EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub1: 8 ports with 8 removable, self powered
viaide0 at pci0 dev 13 function 0
viaide0: NVIDIA nForce430 IDE Controller (rev. 0xa1)
viaide0: bus-master DMA support present
viaide0: primary channel configured to compatibility mode
viaide0: primary channel using event channel 5 for irq 14
atabus0 at viaide0 channel 0
viaide0: secondary channel configured to compatibility mode
viaide0: secondary channel using event channel 6 for irq 15
atabus1 at viaide0 channel 1
viaide1 at pci0 dev 14 function 0
viaide1: NVIDIA nForce430 Serial ATA Controller (rev. 0xa1)
viaide1: bus-master DMA support present
viaide1: primary channel wired to native-PCI mode
viaide1: using irq 5, event channel 4 for native-PCI interrupt
atabus2 at viaide1 channel 0
viaide1: secondary channel wired to native-PCI mode
atabus3 at viaide1 channel 1
viaide2 at pci0 dev 15 function 0
viaide2: NVIDIA nForce430 Serial ATA Controller (rev. 0xa1)
viaide2: bus-master DMA support present
viaide2: primary channel wired to native-PCI mode
viaide2: using irq 5, event channel 4 for native-PCI interrupt
atabus4 at viaide2 channel 0
viaide2: secondary channel wired to native-PCI mode
atabus5 at viaide2 channel 1
ppb3 at pci0 dev 16 function 0: NVIDIA product 0x026f (rev. 0xa2)
pci at ppb3 bus 4 not configured
NVIDIA nForce430 High Definition Audio Controller (multimedia subclass 0x03, revision 0xa2) at pci0 dev 16 function 1 not configured
nfe0 at pci0 dev 20 function 0: NVIDIA nForce430 Gigabit Ethernet Controller (rev. 0xa3)
nfe0: interrupting at irq 11, event channel 7
nfe0: Ethernet address 00:0e:a6:f9:aa:47
ukphy0 at nfe0 phy 1: Generic IEEE 802.3u media interface
ukphy0: OUI 0x000ac2, model 0x0021, rev. 1
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
pchb0 at pci0 dev 24 function 0
pchb0: Advanced Micro Devices AMD64 HyperTransport configuration (rev. 0x00)
pchb1 at pci0 dev 24 function 1
pchb1: Advanced Micro Devices AMD64 Address Map configuration (rev. 0x00)
pchb2 at pci0 dev 24 function 2
pchb2: Advanced Micro Devices AMD64 DRAM configuration (rev. 0x00)
pchb3 at pci0 dev 24 function 3
pchb3: Advanced Micro Devices AMD64 Miscellaneous configuration (rev. 0x00)
isa0 at pcib0
lpt0 at isa0 port 0x378-0x37b irq 7
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pmsprobe: reset error 5
pci1 at hypervisor0 bus 4
pci1: i/o space, memory space enabled
fwohci0 at pci1 dev 5 function 0: Texas Instruments TSB43AA22/A IEEE 1394 Host Controller (rev. 0x00)
fwohci0: interrupting at irq 11, event channel 7
fwohci0: OHCI version 1.10 (ROM=1)
fwohci0: No. of Isochronous channels is 4.
fwohci0: EUI64 00:11:d8:00:01:0d:5b:3a
fwohci0: Phy 1394a available S400, 2 ports.
fwohci0: Link S400, max_rec 2048 bytes.
ieee1394if0 at fwohci0: IEEE1394 bus
fwip0 at ieee1394if0: IP over IEEE1394
fwohci0: Initiate bus reset
ne0 at pci1 dev 9 function 0: Realtek 8029 Ethernet
ne0: Ethernet address 52:54:00:dc:d9:3d
ne0: 10base2, 10baseT, 10baseT-FDX, auto, default [0x03 0x30] auto
ne0: interrupting at irq 11, event channel 7
fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode
ieee1394if0: 1 nodes, maxhop <= 0, cable IRM = 0 (me)
ieee1394if0: bus manager 0 (me)
Xen clock: using event channel 11
crypto: assign driver 0, flags 2
crypto: driver 0 registers alg 1 flags 0 maxoplen 0
crypto: driver 0 registers alg 2 flags 0 maxoplen 0
crypto: driver 0 registers alg 3 flags 0 maxoplen 0
crypto: driver 0 registers alg 4 flags 0 maxoplen 0
crypto: driver 0 registers alg 5 flags 0 maxoplen 0
crypto: driver 0 registers alg 17 flags 0 maxoplen 0
crypto: driver 0 registers alg 6 flags 0 maxoplen 0
crypto: driver 0 registers alg 7 flags 0 maxoplen 0
crypto: driver 0 registers alg 15 flags 0 maxoplen 0
crypto: driver 0 registers alg 8 flags 0 maxoplen 0
crypto: driver 0 registers alg 16 flags 0 maxoplen 0
crypto: driver 0 registers alg 9 flags 0 maxoplen 0
crypto: driver 0 registers alg 10 flags 0 maxoplen 0
crypto: driver 0 registers alg 13 flags 0 maxoplen 0
crypto: driver 0 registers alg 14 flags 0 maxoplen 0
crypto: driver 0 registers alg 11 flags 0 maxoplen 0
crypto: driver 0 registers alg 18 flags 0 maxoplen 0
raidattach: Asked for 8 units
Kernelized RAIDframe activated
wd0 at atabus0 drive 0: <Maxtor 6Y080L0>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 78167 MB, 158816 cyl, 16 head, 63 sec, 512 bytes/sect x 160086528 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd0(viaide0:0:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using DMA)
Searching for RAID components...
boot device: wd0
root on wd0a dumps on wd0b
mountroot: trying lfs...
mountroot: trying ffs...
root file system type: ffs
init: copying out path `/sbin/init' 11