cbb attach failed

2002-12-14 Thread FUJITA Kazutoshi
hi,

i've just 'make buildworld'  'make buildkernel' on my thinkpad x23,
but cardbus doesn't work.

here is the 'boot -v' message around the cbb,


cbb0: RF5C476 PCI-CardBus Bridge mem 0x5000-0x5fff irq 11 at device 3.0 on 
pci2
pcib2: device cbb0 requested unsupported memory range 0x0-0x0 (decoding 
0xc020-0xcfff, 0xe800-0xf00f)
cbb0: Could not map register memory
device_probe_and_attach: cbb0 attach returned 12
cbb0: RF5C476 PCI-CardBus Bridge mem 0x5010-0x50100fff irq 11 at device 3.1 on 
pci2
pcib2: device cbb0 requested unsupported memory range 0x0-0x0 (decoding 
0xc020-0xcfff, 0xe800-0xf00f)
cbb0: Could not map register memory
device_probe_and_attach: cbb0 attach returned 12


any suggestion?


regards,

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: cbb attach failed

2002-12-15 Thread FUJITA Kazutoshi
From: KT Sin [EMAIL PROTECTED]
Subject: Re: cbb attach failed
Date: Sun, 15 Dec 2002 13:29:42 +0800
Message-ID: [EMAIL PROTECTED]

 If your CURRENT is pretty recent, please add into your /boot/loader.conf
 
   hw.pci.allow_unsupported_io_range=1
 
 and then reboot.

it works file.
thanks a lot.


regards,

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



SiS5591(?) ATA

2003-03-15 Thread FUJITA Kazutoshi
Hi,


I've upgraded to -CURRENT from -STABLE yesterday.
But something strange with ATA.
It can't be used in UDMA100 mode.


In boot message,
...
pci0: mass storage, ATA at device 2.5 (no driver attached)
...
ad0: 78533MB IC35L080AVVA07-0 [159560/16/63] at ata0-master PIO4
ad1: 39266MB IC35L040AVER07-0 [79780/16/63] at ata0-slave PIO4
acd0: DVD-R MATSHITADVD-RAM SW-9571 at ata1-master PIO4
...


It works in UDMA100 with -STABLE,
...
atapci0: SiS 5591 ATA100 controller port 0xff00-0xff0f at device 2.5 on pci0
...
ad0: 78533MB IC35L080AVVA07-0 [159560/16/63] at ata0-master UDMA100
ad1: 39266MB IC35L040AVER07-0 [79780/16/63] at ata0-slave UDMA100
acd0: DVD-R MATSHITADVD-RAM SW-9571 at ata1-master UDMA66
...


Here is pciconf -lv output

# pciconf -lv
[EMAIL PROTECTED]:0:0:  class=0x06 card=0x chip=0x06501039 rev=0x01 
hdr=0x00
vendor   = 'Silicon Integrated Systems (SiS)'
device   = 'SiS 650 Host-to-PCI Bridge'
class= bridge
subclass = HOST-PCI
[EMAIL PROTECTED]:1:0: class=0x060400 card=0x chip=0x00011039 rev=0x00 hdr=0x01
vendor   = 'Silicon Integrated Systems (SiS)'
device   = 'SiS 530 Virtual PCI-to-PCI bridge (AGP)'
class= bridge
subclass = PCI-PCI
[EMAIL PROTECTED]:2:0: class=0x060100 card=0x chip=0x00081039 rev=0x00 hdr=0x00
vendor   = 'Silicon Integrated Systems (SiS)'
device   = 'SiS85C503/5513 PCI to ISA Bridge (LPC Bridge)'
class= bridge
subclass = PCI-ISA
[EMAIL PROTECTED]:2:2: class=0x0c0310 card=0x70011039 chip=0x70011039 rev=0x07 hdr=0x00
vendor   = 'Silicon Integrated Systems (SiS)'
device   = 'SiS5597/8 Universal Serial Bus Controller'
class= serial bus
subclass = USB
[EMAIL PROTECTED]:2:3: class=0x0c0310 card=0x70011039 chip=0x70011039 rev=0x07 hdr=0x00
vendor   = 'Silicon Integrated Systems (SiS)'
device   = 'SiS5597/8 Universal Serial Bus Controller'
class= serial bus
subclass = USB
[EMAIL PROTECTED]:2:5: class=0x010180 card=0x55131039 chip=0x55131039 rev=0xd0 hdr=0x00
vendor   = 'Silicon Integrated Systems (SiS)'
device   = 'SiS5513 EIDE Controller (A,B step)'
class= mass storage
subclass = ATA
[EMAIL PROTECTED]:2:7:  class=0x040100 card=0x030013f6 chip=0x70121039 rev=0xa0 
hdr=0x00
vendor   = 'Silicon Integrated Systems (SiS)'
device   = 'SiS7012 PCI Audio Accelerator'
class= multimedia
subclass = audio
[EMAIL PROTECTED]:3:0:  class=0x02 card=0x09001039 chip=0x09001039 rev=0x90 
hdr=0x00
vendor   = 'Silicon Integrated Systems (SiS)'
device   = 'SiS900 Fast Ethernet/Home Networking Ctrlr'
class= network
subclass = ethernet


What's wrong ?


Regards,

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message


crash: bremfree: removing a buffer not on a queue

2003-03-15 Thread FUJITA Kazutoshi
Hi,

My -CURRENT(2003/03/12) box crashes while using linux-mozilla.


# gdb -k kernel.debug.0 vmcore.0
GNU gdb 5.2.1 (FreeBSD)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for details.
This GDB was configured as i386-undermydesk-freebsd...
panic: bremfree: removing a buffer not on a queue
panic messages:
---
panic: bwrite: buffer is not busy???

syncing disks, buffers remaining... panic: bremfree: removing a buffer not on a queue
Uptime: 12h48m16s
Dumping 639 MB
ata0: resetting devices ..
done
[CTRL-C to abort]  16 32 48 64 80 96[CTRL-C to abort] [CTRL-C to abort] [CTRL-C to 
abort]  112 128 144 160 176 192 208 224 240 256 272 288 304 320 336 352 368 384 400 
416 432 448 464 480 496 512 528 544 560 576 592 608 624
---
#0  doadump () at ../../../kern/kern_shutdown.c:239
239 dumping++;
(kgdb) bt
#0  doadump () at ../../../kern/kern_shutdown.c:239
#1  0xc039bf4a in boot (howto=260) at ../../../kern/kern_shutdown.c:371
#2  0xc039c1b3 in panic () at ../../../kern/kern_shutdown.c:542
#3  0xc03e0130 in bremfreel (bp=0xd1955320) at ../../../kern/vfs_bio.c:630
#4  0xc03e0042 in bremfree (bp=0x0) at ../../../kern/vfs_bio.c:612
#5  0xc03e20e0 in vfs_bio_awrite (bp=0x0) at ../../../kern/vfs_bio.c:1682
#6  0xc04fb61a in ffs_fsync (ap=0xedd138b8) at ../../../ufs/ffs/ffs_vnops.c:257
#7  0xc04fa6c7 in ffs_sync (mp=0xc5565800, waitfor=2, cred=0xc1c31e80, 
td=0xc064f4c0) at vnode_if.h:612
#8  0xc03f6f9b in sync (td=0xc064f4c0, uap=0x0)
at ../../../kern/vfs_syscalls.c:138
#9  0xc039bb0c in boot (howto=256) at ../../../kern/kern_shutdown.c:280
#10 0xc039c1b3 in panic () at ../../../kern/kern_shutdown.c:542
#11 0xc03e05b2 in bwrite (bp=0xd1857e50) at ../../../kern/vfs_bio.c:795
#12 0xc03e0f2c in bawrite (bp=0x0) at ../../../kern/vfs_bio.c:1138
#13 0xc03e8f8f in cluster_wbuild (vp=0xc5f2aa44, size=16384, start_lbn=51, 
len=2) at ../../../kern/vfs_cluster.c:966
#14 0xc03e858f in cluster_write (bp=0xd1955320, filesize=884736, seqcount=4)
at ../../../kern/vfs_cluster.c:566
#15 0xc04fc23c in ffs_write (ap=0xedd13bc4) at ../../../ufs/ffs/ffs_vnops.c:728
#16 0xc03ff261 in vn_write (fp=0xc5919a8c, uio=0xedd13c70, 
active_cred=0xc5a3a780, flags=0, td=0xc59a7b40) at vnode_if.h:417
#17 0xc03bf198 in dofilewrite (td=0xc59a7b40, fp=0xc5919a8c, fd=0, 
buf=0x9f2fb90, nbyte=0, offset=0, flags=0) at file.h:239
#18 0xc03befd9 in write (td=0xc59a7b40, uap=0xedd13d10)
at ../../../kern/sys_generic.c:329
#19 0xc05607da in syscall (frame=
  {tf_fs = 153944111, tf_es = 47, tf_ds = -1078001617, tf_edi = 166919056, tf_esi 
= 512, tf_ebp = -1077940260, tf_isp = -305054348, tf_ebx = 31, tf_edx = 512, tf_ecx = 
166919056, tf_eax = 4, tf_trapno = 22, tf_err = 2, tf_eip = 677762996, tf_cs = 31, 
tf_eflags = 662, tf_esp = -1077940308, tf_ss = 47})
at ../../../i386/i386/trap.c:1030
#20 0xc054f49d in Xint0x80_syscall () at {standard input}:138
---Can't read userspace from dump, or kernel process---


Regards,

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message


crash: lockmgr: locking against myself

2003-03-15 Thread FUJITA Kazutoshi
Hi,

My -CURRENT(2003/03/14) box crashes when I tried to mount UDF(DVD-RAM).

# mount -t udf -o ro /dev/acd0 /dvdram


Here is the stack trace,

# gdb -k kernel.debug.0 vmcore.0
GNU gdb 5.2.1 (FreeBSD)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for details.
This GDB was configured as i386-undermydesk-freebsd...
panic: (fmt null)

panic messages:
---
panic: lockmgr: locking against myself

syncing disks, buffers remaining... 3848 3848 Copyright (c) 1992-2003 The FreeBSD 
Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 5.0-CURRENT-20030314-JPSNAP #1: Sat Mar 15 18:59:26 JST 2003
[EMAIL PROTECTED]:/usr/src/sys/i386/compile/FAITHIA
Preloaded elf kernel /boot/kernel/kernel at 0xc0802000.
Preloaded elf module /boot/kernel/acpi.ko at 0xc08020a8.
Timecounter i8254  frequency 1193182 Hz
Timecounter TSC  frequency 282900 Hz
CPU: Intel(R) Pentium(R) 4 CPU 2.00GHz (2000.08-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0xf24  Stepping = 4
  Features=0x3febf9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,P
AT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM
real memory  = 536805376 (511 MB)
avail memory = 512778240 (489 MB)
Allocating major#253 to net
Allocating major#252 to pci
Pentium Pro MTRR support enabled
npx0: math processor on motherboard
npx0: INT 16 interface
acpi0: AMIINT SiS645XX on motherboard
ACPI-0625: *** Info: GPE Block0 defined as GPE0 to GPE15
ACPI-0625: *** Info: GPE Block1 defined as GPE16 to GPE31
pcibios: BIOS version 2.10
Using $PIR table, 8 entries at 0xc00f7ae0
acpi0: power button is handled as a fixed feature programming model.
Timecounter ACPI-fast  frequency 3579545 Hz
:acpi_timer0: 24-bit timer at 3.579545MHz port 0x808-0x80b on acpi0
acpi_cpu0: CPU port 0x530-0x537 on acpi0
acpi_button0: Power Button on acpi0
pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0
pci0: ACPI PCI bus on pcib0
agp0: SIS Generic host to PCI bridge mem 0xe000-0xe3ff at device 0.0 on pci0
pcib1: PCIBIOS PCI-PCI bridge at device 1.0 on pci0
pci1: PCI bus on pcib1
pci1: display, VGA at device 0.0 (no driver attached)
isab0: PCI-ISA bridge at device 2.0 on pci0
isa0: ISA bus on isab0
ohci0: SiS 5571 USB controller mem 0xdfffe000-0xdfffefff irq 11 at device 2.2 on pci0
usb0: OHCI version 1.0, legacy support
usb0: SiS 5571 USB controller on ohci0
usb0: USB revision 1.0
uhub0: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ohci1: SiS 5571 USB controller mem 0xd000-0xdfff irq 5 at device 2.3 on pci0
usb1: OHCI version 1.0, legacy support
usb1: SiS 5571 USB controller on ohci1
usb1: USB revision 1.0
uhub1: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
pci0: mass storage, ATA at device 2.5 (no driver attached)
pcm0: SiS 7012 port 0xd800-0xd87f,0xdc00-0xdcff irq 11 at device 2.7 on pci0
pcm0: C-Media Electronics CMI9738 AC97 Codec
sis0: SiS 900 10/100BaseTX port 0xd400-0xd4ff mem 0xdfff9000-0xdfff9fff irq 5 at 
device 3.0 on pci0
sis0: Ethernet address: 00:07:95:c0:de:e2
miibus0: MII bus on sis0
rlphy0: RTL8201L 10/100 media interface on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
em0: Intel(R) PRO/1000 Network Connection, Version - 1.4.10 port 0xd000-0xd03f mem 
0xdff8-0xdff9,0xdffa-0xdffb irq 11 at device 9.0 on pci0
em0:  Speed:100 Mbps  Duplex:Full
fxp0: Intel 82557/8/9 EtherExpress Pro/100(B) Ethernet port 0xcc00-0xcc3f mem 
0xdff4-0xdff5,0xdfff8000-0xdfff8fff irq 5 at device 11.0 on pci0
fxp0: Ethernet address 00:02:b3:a6:83:2d
inphy0: i82555 10/100 media interface on miibus1
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
acpi_button1: Sleep Button on acpi0
atkbdc0: Keyboard controller (i8042) port 0x64,0x60 irq 1 on acpi0
atkbd0: AT Keyboard flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: PS/2 Mouse irq 12 on atkbdc0
psm0: model IntelliMouse Explorer, device ID 4
fdc0: cmd 3 failed at out byte 1 of 3
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A
sio1 port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
ppc0 port 0x778-0x77b,0x378-0x37f irq 7 drq 3 on acpi0
ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/16 bytes threshold
plip0: PLIP network interface on ppbus0
lpt0: Printer on ppbus0
lpt0: Interrupt-driven port
ppi0: Parallel I/O on ppbus0
fdc0: cmd 3 failed at out byte 1 of 3
orm0: Option ROMs at iomem 
0xcf000-0xd4fff,0xcd800-0xcefff,0xcc000-0xcd7ff,0xc-0xcbfff on isa0
pmtimer0 on isa0
ata0 at port 0x3f6,0x1f0-0x1f7 irq 14 on isa0
ata1 at port 0x376,0x170-0x177 irq 15 on isa0
fdc0: cannot 

Re: SiS5591(?) ATA

2003-03-15 Thread FUJITA Kazutoshi
From: Soeren Schmidt [EMAIL PROTECTED]
Subject: Re: SiS5591(?) ATA
Date: Sat, 15 Mar 2003 20:06:33 +0100 (CET)
Message-ID: [EMAIL PROTECTED]

 Hmm, OK, try this patch:

become better.
but still it does't work in UDMA100.


atapci0: SiS 961 UDMA100 controller port 0xff00-0xff0f at device 2.5 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
ad0: DMA limited to UDMA33, non-ATA66 cable or device
ad0: 78533MB IC35L080AVVA07-0 [159560/16/63] at ata0-master UDMA33
ad1: DMA limited to UDMA33, non-ATA66 cable or device
ad1: 39266MB IC35L040AVER07-0 [79780/16/63] at ata0-slave UDMA33
ata1-master: DMA limited to UDMA33, non-ATA66 cable or device
acd0: DVD-R MATSHITADVD-RAM SW-9571 at ata1-master UDMA33


Regards,

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message


Re: crash: lockmgr: locking against myself

2003-03-15 Thread FUJITA Kazutoshi
From: Tim Robbins [EMAIL PROTECTED]
Subject: Re: crash: lockmgr: locking against myself
Date: Sun, 16 Mar 2003 00:36:41 +1100
Message-ID: [EMAIL PROTECTED]

 Here's a simple untested patch to try which makes udf_allocv() return
 an unlocked vnode. I'm not sure whether the locking in udf_hashins()
 is right.

It looks good for me.
At least, crash is avoided and mount successfully.


Regards,

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message


Re: SiS5591(?) ATA

2003-03-15 Thread FUJITA Kazutoshi
From: Soeren Schmidt [EMAIL PROTECTED]
Subject: Re: SiS5591(?) ATA
Date: Sat, 15 Mar 2003 21:14:16 +0100 (CET)
Message-ID: [EMAIL PROTECTED]

 Hmm, the cable detection sems to be failing somehow...
 
 Now is the chip found correctly ? is it *really* a SiS 961 (old ATA100 model)?

How can I make it sure?


According to the M/B manual, it looks having SiS961.

My M/B is MS9317E which chipset is SiS650.
(http://www.matsonic.com.tw/eng/productsdata/ms9317e.htm)


Regards,

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message


UDF: bad file descriptor

2003-03-15 Thread FUJITA Kazutoshi
From: FUJITA Kazutoshi [EMAIL PROTECTED]
Subject: Re: crash: lockmgr: locking against myself
Date: Sun, 16 Mar 2003 05:23:51 +0900 (JST)
Message-ID: [EMAIL PROTECTED]

 It looks good for me.
 At least, crash is avoided and mount successfully.

I could mount DVD-RAM successfully.
(This media was formatted by TOSHIBA HDDDVD video recorder;-p)
But, some files can't be read.
How can I solve this?


# /bin/ls
.   ..  VR_MANGR.BUPVR_MANGR.IFOVR_MOVIE.VRO

# /bin/ls -l
ls: VR_MOVIE.VRO: Bad file descriptor
total 111
drw-rw-rw-  1 root  wheel   2048 Mar 12 13:33 .
drw-rw-rw-  4 root  wheel   2048 Mar 16 18:00 ..
-rw-rw-rw-  1 root  wheel  56980 Mar 16 18:01 VR_MANGR.BUP
-rw-rw-rw-  1 root  wheel  56980 Mar 16 18:01 VR_MANGR.IFO


Regards,

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message


Re: UDF: bad file descriptor

2003-03-15 Thread FUJITA Kazutoshi
From: Andre Guibert de Bruet [EMAIL PROTECTED]
Subject: Re: UDF: bad file descriptor
Date: Sat, 15 Mar 2003 21:09:55 -0500 (EST)
Message-ID: [EMAIL PROTECTED]

  # /bin/ls -l
  ls: VR_MOVIE.VRO: Bad file descriptor
  total 111
  drw-rw-rw-  1 root  wheel   2048 Mar 12 13:33 .
  drw-rw-rw-  4 root  wheel   2048 Mar 16 18:00 ..
  -rw-rw-rw-  1 root  wheel  56980 Mar 16 18:01 VR_MANGR.BUP
  -rw-rw-rw-  1 root  wheel  56980 Mar 16 18:01 VR_MANGR.IFO
 
 Sounds like the lstat on VR_MOVIE.VRO is failing. Does 'truss ls -l'
 display anything relevant?

It seems there is no relevant.

# truss /bin/ls -l
ioctl(1,TIOCGETA,0xbfbff3b0) = 0 (0x0)
ioctl(1,TIOCGWINSZ,0xbfbff414)   = 0 (0x0)
getuid() = 0 (0x0)
readlink(/etc/malloc.conf,0xbfbff300,63)   ERR#2 'No such file or directory'
issetugid()  = 0 (0x0)
getuid() = 0 (0x0)
mmap(0x0,4096,0x3,0x1002,-1,0x0) = 671887360 (0x280c3000)
break(0x80d5000) = 0 (0x0)
break(0x80d6000) = 0 (0x0)
break(0x80d7000) = 0 (0x0)
break(0x80d8000) = 0 (0x0)
lstat(.,0x80d7148) = 0 (0x0)
open(.,0x0,00) = 3 (0x3)
fchdir(0x3)  = 0 (0x0)
open(.,0x0,00) = 4 (0x4)
stat(.,0xbfbff2c0) = 0 (0x0)
open(.,0x4,00) = 5 (0x5)
fstat(5,0xbfbff2c0)  = 0 (0x0)
fcntl(0x5,0x2,0x1)   = 0 (0x0)
__sysctl(0xbfbff170,0x2,0x80cf4dc,0xbfbff16c,0x0,0x0) = 0 (0x0)
fstatfs(0x5,0xbfbff1c0)  = 0 (0x0)
break(0x80d9000) = 0 (0x0)
fstat(5,0xbfbff2c0)  = 0 (0x0)
fchdir(0x5)  = 0 (0x0)
getdirentries(0x5,0x80d8000,0x1000,0x80d5054)= 96 (0x60)
lstat(.,0x80d7248) = 0 (0x0)
lstat(..,0x80d7348)= 0 (0x0)
lstat(VR_MOVIE.VRO,0x80d7448)  ERR#9 'Bad file descriptor'
lstat(VR_MANGR.BUP,0x80d7548)  = 0 (0x0)
lstat(VR_MANGR.IFO,0x80d7648)  = 0 (0x0)
getdirentries(0x5,0x80d8000,0x1000,0x80d5054)= 0 (0x0)
lseek(5,0x0,0)   = 0 (0x0)
close(5) = 0 (0x0)
fchdir(0x3)  = 0 (0x0)
fchdir(0x4)  = 0 (0x0)
close(4) = 0 (0x0)
stat(/etc/nsswitch.conf,0xbfbfed60)= 0 (0x0)
open(/etc/nsswitch.conf,0x0,0666)  = 4 (0x4)
break(0x80da000) = 0 (0x0)
ioctl(4,TIOCGETA,0xbfbfec60) ERR#25 'Inappropriate ioctl for 
device'
fstat(4,0xbfbfebb0)  = 0 (0x0)
break(0x80de000) = 0 (0x0)
read(0x4,0x80da000,0x4000)   = 0 (0x0)
ioctl(4,TIOCGETA,0xbfbfec40) ERR#25 'Inappropriate ioctl for 
device'
close(4) = 0 (0x0)
geteuid()= 0 (0x0)
stat(/etc/spwd.db,0xbfbfeca0)  = 0 (0x0)
open(/etc/spwd.db,0x0,00)  = 4 (0x4)
fcntl(0x4,0x2,0x1)   = 0 (0x0)
read(0x4,0x80d8200,0x104)= 260 (0x104)
lseek(4,0x5000,0)= 20480 (0x5000)
read(0x4,0x80da000,0x1000)   = 4096 (0x1000)
lseek(4,0x4000,0)= 16384 (0x4000)
read(0x4,0x80db000,0x1000)   = 4096 (0x1000)
open(/etc/group,0x0,0666)  = 5 (0x5)
fstat(5,0xbfbfec80)  = 0 (0x0)
break(0x80e2000) = 0 (0x0)
lseek(5,0x0,1)   = 0 (0x0)
lseek(5,0x0,0)   = 0 (0x0)
stat(/etc/nsswitch.conf,0xbfbfed40)= 0 (0x0)
read(0x5,0x80de000,0x4000)   = 378 (0x17a)
ls: write(2,0xbfbfe4d0,4)= 4 (0x4)
VR_MOVIE.VRO: Bad file descriptorwrite(2,0xbfbfe4f0,33) = 33 
(0x21)

write(2,0x80c4733,1) = 1 (0x1)
fstat(1,0xbfbfe850)  = 0 (0x0)
ioctl(1,TIOCGETA,0xbfbfe890) = 0 (0x0)
total 111
write(1,0x80dc000,10)= 10 (0xa)
pathconf(0xbfbfe9d0,0x3b)ERR#22 'Invalid argument'
gettimeofday(0xbfbfed78,0x0) = 0 (0x0)
access(/etc/localtime,4)   = 0 (0x0)
open(/etc/localtime,0x0,00)= 6 (0x6)

Re: SiS5591(?) ATA

2003-03-16 Thread FUJITA Kazutoshi
From: Soeren Schmidt [EMAIL PROTECTED]
Subject: Re: SiS5591(?) ATA
Date: Sun, 16 Mar 2003 11:50:30 +0100 (CET)
Message-ID: [EMAIL PROTECTED]

 Could I have you both try this patch and mail me the entire output og
 dmesg with it applied ? (patch against a clean -current)

ata-chipset.c can't be compiled which applied your patch ;-)


 Index: ata-chipset.c

 @@ -1576,6 +1577,7 @@
   }
  }
  else {
 +printf(1 reg 0x48=%02x\n, pci_read_config(dev, 0x48, 1));

= printf(1 reg 0x48=%02x\n, pci_read_config(parent, 0x48, 1));

so I modified like above by hand, and compile  install kernel.


The full dmesg output is followings.

Copyright (c) 1992-2003 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 5.0-CURRENT-20030314-JPSNAP #3: Sun Mar 16 23:32:29 JST 2003
[EMAIL PROTECTED]:/usr/src/sys/i386/compile/FAITHIA
Preloaded elf kernel /boot/kernel/kernel at 0xc0802000.
Preloaded elf module /boot/kernel/acpi.ko at 0xc08020a8.
Timecounter i8254  frequency 1193182 Hz
Timecounter TSC  frequency 283012 Hz
CPU: Intel(R) Pentium(R) 4 CPU 2.00GHz (2000.08-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0xf24  Stepping = 4
  
Features=0x3febf9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM
real memory  = 536805376 (511 MB)
avail memory = 512778240 (489 MB)
Allocating major#253 to net
Allocating major#252 to pci
Pentium Pro MTRR support enabled
npx0: math processor on motherboard
npx0: INT 16 interface
acpi0: AMIINT SiS645XX on motherboard
ACPI-0625: *** Info: GPE Block0 defined as GPE0 to GPE15
ACPI-0625: *** Info: GPE Block1 defined as GPE16 to GPE31
pcibios: BIOS version 2.10
Using $PIR table, 8 entries at 0xc00f7ae0
acpi0: power button is handled as a fixed feature programming model.
Timecounter ACPI-fast  frequency 3579545 Hz
acpi_timer0: 24-bit timer at 3.579545MHz port 0x808-0x80b on acpi0
acpi_cpu0: CPU port 0x530-0x537 on acpi0
acpi_button0: Power Button on acpi0
pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0
pci0: ACPI PCI bus on pcib0
agp0: SIS Generic host to PCI bridge mem 0xe000-0xe3ff at device 0.0 on pci0
pcib1: PCIBIOS PCI-PCI bridge at device 1.0 on pci0
pci1: PCI bus on pcib1
pci1: display, VGA at device 0.0 (no driver attached)
isab0: PCI-ISA bridge at device 2.0 on pci0
isa0: ISA bus on isab0
ohci0: SiS 5571 USB controller mem 0xdfffe000-0xdfffefff irq 11 at device 2.2 on pci0
usb0: OHCI version 1.0, legacy support
usb0: SiS 5571 USB controller on ohci0
usb0: USB revision 1.0
uhub0: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ohci1: SiS 5571 USB controller mem 0xd000-0xdfff irq 5 at device 2.3 on pci0
usb1: OHCI version 1.0, legacy support
usb1: SiS 5571 USB controller on ohci1
usb1: USB revision 1.0
uhub1: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
atapci0: SiS 961 UDMA100 controller port 0xff00-0xff0f at device 2.5 on pci0
0 reg 0x48=08
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pcm0: SiS 7012 port 0xd800-0xd87f,0xdc00-0xdcff irq 11 at device 2.7 on pci0
pcm0: C-Media Electronics CMI9738 AC97 Codec
sis0: SiS 900 10/100BaseTX port 0xd400-0xd4ff mem 0xdfff9000-0xdfff9fff irq 5 at 
device 3.0 on pci0
sis0: Ethernet address: 00:07:95:c0:de:e2
miibus0: MII bus on sis0
rlphy0: RTL8201L 10/100 media interface on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fwohci0: VIA VT6306 port 0xd000-0xd07f mem 0xdfff8800-0xdfff8fff irq 5 at device 9.0 
on pci0
fwohci0: PCI bus latency was changing to 250.
fwohci0: OHCI version 1.0 (ROM=1)
fwohci0: No. of Isochronous channel is 8.
fwohci0: EUI64 00:40:26:01:06:04:21:f1
fwohci0: Phy 1394a available S400, 3 ports.
fwohci0: Link S400, max_rec 2048 bytes.
firewire0: IEEE1394(FireWire) bus on fwohci0
if_fwe0: Ethernet over FireWire on firewire0
if_fwe0: Fake Ethernet address: 02:40:26:04:21:f1
sbp0: SBP2/SCSI over firewire on firewire0
fwohci0: Initiate bus reset
fwohci0: BUS reset
fwohci0: node_id = 0xc800ffc0, CYCLEMASTER mode
firewire0: 1 nodes, maxhop = 0, cable IRM = 0 (me)
em0: Intel(R) PRO/1000 Network Connection, Version - 1.4.10 port 0xcc00-0xcc3f mem 
0xdff8-0xdff9,0xdffa-0xdffb irq 11 at device 10.0 on pci0
em0:  Speed:100 Mbps  Duplex:Full
fxp0: Intel 82557/8/9 EtherExpress Pro/100(B) Ethernet port 0xc800-0xc83f mem 
0xdff4-0xdff5,0xdfff7000-0xdfff7fff irq 5 at device 11.0 on pci0
fxp0: Ethernet address 00:02:b3:a6:83:2d
inphy0: i82555 10/100 media interface on miibus1
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
acpi_button1: Sleep Button on acpi0
atkbdc0: Keyboard controller (i8042) port 0x64,0x60 irq 1 on acpi0
atkbd0: AT Keyboard flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: PS/2 Mouse irq 12 on atkbdc0
psm0: model IntelliMouse 

Re: UDF: bad file descriptor

2003-03-16 Thread FUJITA Kazutoshi
From: Scott Long [EMAIL PROTECTED]
Subject: Re: UDF: bad file descriptor
Date: Sat, 15 Mar 2003 21:29:16 -0700
Message-ID: [EMAIL PROTECTED]

 Sorry for neglecting UDF for so long.  Regarding this problem, what
 program was used to generate the UDF filesystem on the disk?  If the
 disk doesn't have much data on it, would it be possible to 'dd' an
 image of the disk to a file and send me the file?

The UDF filesystem generated by 'TOSHIBA HDDDVD video recorder'.
# It is similar to VTR but record to HDD or DVD-RAM.
So I don't know its detail;-p

Maybe the size is 4.7GB.
Do you want it?;-)


Regards,

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message


Re: UDF: bad file descriptor

2003-03-16 Thread FUJITA Kazutoshi
From: Tim Robbins [EMAIL PROTECTED]
Subject: Re: UDF: bad file descriptor
Date: Sun, 16 Mar 2003 16:58:57 +1100
Message-ID: [EMAIL PROTECTED]

 The Linux driver doesn't seem to issue the special read and write commands
 that the quote from the UDF spec. mentions, so I'm not sure whether
 it will work. Let me know how it goes.

I tried your patch.
The error 'bad file descriptor' did not occur, but something strange.
'ls' reports the size exactly(maybe), but another command report it
as 0(empty).


# /bin/ls -l
total 2269738
drw-rw-rw-  1 root  wheel2048 Mar 17 21:52 .
drw-rw-rw-  4 root  wheel2048 Mar 17 21:30 ..
-rw-rw-rw-  1 root  wheel   61450 Mar 17 23:19 VR_MANGR.BUP
-rw-rw-rw-  1 root  wheel   61450 Mar 17 23:19 VR_MANGR.IFO
-rw-rw-rw-  1 root  wheel  2324088832 Mar 17 23:19 VR_MOVIE.VRO

# file VR_MOVIE.VRO
VR_MOVIE.VRO: empty

# dd if=VR_MOVIE.VRO of=/dev/null
0+0 records in
0+0 records out
0 bytes transferred in 0.16 secs (0 bytes/sec)


Regards,

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message


ACPI suspend problem (ThinkPad X23)

2003-03-17 Thread FUJITA Kazutoshi
Hi,

My -CURRENT(2003/03/12) laptop(ThinkPad X23) can't be suspended.

When I try

# acpiconf -s 1

I have console message

'acpi0: AcpiGetSleepTypeData failed - AE_NOT_FOUND'

How can I solve this?


dmesg output is attached.


Regards,

Copyright (c) 1992-2003 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 5.0-CURRENT-20030312-JPSNAP #1: Tue Mar 18 01:26:29 JST 2003
[EMAIL PROTECTED]:/usr/src/sys/i386/compile/JORDAN
Preloaded elf kernel /boot/kernel/kernel at 0xc0802000.
Preloaded elf module /boot/kernel/acpi.ko at 0xc08020a8.
Timecounter i8254  frequency 1193182 Hz
Timecounter TSC  frequency 865934929 Hz
CPU: Intel(R) Pentium(R) III Mobile CPU   866MHz (865.93-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0x6b1  Stepping = 1
  
Features=0x383f9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
real memory  = 670498816 (639 MB)
avail memory = 642658304 (612 MB)
Allocating major#253 to net
Allocating major#252 to pci
Pentium Pro MTRR support enabled
npx0: math processor on motherboard
npx0: INT 16 interface
acpi0: IBMTP-1Don motherboard
ACPI-0625: *** Info: GPE Block0 defined as GPE0 to GPE15
ACPI-0625: *** Info: GPE Block1 defined as GPE16 to GPE31
pcibios: BIOS version 2.10
Using $PIR table, 14 entries at 0xc00fdeb0
ACPI-1287: *** Error: Method execution failed, AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed, AE_NOT_EXIST
acpi0: power button is handled as a fixed feature programming model.
Timecounter ACPI-fast  frequency 3579545 Hz
acpi_timer0: 24-bit timer at 3.579545MHz port 0x1008-0x100b on acpi0
acpi_cpu0: CPU port 0x530-0x537 on acpi0
acpi_tz0: thermal zone port 0x530-0x537 on acpi0
acpi_lid0: Control Method Lid Switch on acpi0
ACPI-1287: *** Error: Method execution failed, AE_NOT_EXIST
acpi_button0: Sleep Button on acpi0
pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0
pci0: ACPI PCI bus on pcib0
agp0: Intel 82830 host to AGP bridge mem 0xd000-0xdfff at device 0.0 on pci0
pcib1: ACPI PCI-PCI bridge at device 1.0 on pci0
pci1: ACPI PCI bus on pcib1
pci1: display, VGA at device 0.0 (no driver attached)
uhci0: Intel 82801CA/CAM (ICH3) USB controller USB-A port 0x1800-0x181f irq 11 at 
device 29.0 on pci0
usb0: Intel 82801CA/CAM (ICH3) USB controller USB-A on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: Intel 82801CA/CAM (ICH3) USB controller USB-B port 0x1820-0x183f irq 11 at 
device 29.1 on pci0
usb1: Intel 82801CA/CAM (ICH3) USB controller USB-B on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2: Intel 82801CA/CAM (ICH3) USB controller USB-C port 0x1840-0x185f irq 11 at 
device 29.2 on pci0
usb2: Intel 82801CA/CAM (ICH3) USB controller USB-C on uhci2
usb2: USB revision 1.0
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
pcib2: ACPI PCI-PCI bridge at device 30.0 on pci0
pci2: ACPI PCI bus on pcib2
cbb0: RF5C476 PCI-CardBus Bridge mem 0x5000-0x5fff irq 11 at device 3.0 on 
pci2
start (5000)  sc-membase (c020)
start (5000)  sc-pmembase (e800)
cardbus0: CardBus bus on cbb0
pccard0: 16-bit PCCard bus on cbb0
cbb1: RF5C476 PCI-CardBus Bridge mem 0x5010-0x50100fff irq 11 at device 3.1 on 
pci2
start (5010)  sc-membase (c020)
start (5010)  sc-pmembase (e800)
cardbus1: CardBus bus on cbb1
pccard1: 16-bit PCCard bus on cbb1
fwohci0: Ricoh R5C552 mem 0xc0201000-0xc02017ff irq 11 at device 3.2 on pci2
fwohci0: PCI bus latency was changing to 250.
fwohci0: OHCI version 1.0 (ROM=0)
fwohci0: No. of Isochronous channel is 4.
fwohci0: EUI64 00:06:1b:00:20:01:b0:a0
fwohci0: Phy 1394a available S400, 2 ports.
fwohci0: Link S400, max_rec 2048 bytes.
firewire0: IEEE1394(FireWire) bus on fwohci0
if_fwe0: Ethernet over FireWire on firewire0
if_fwe0: Fake Ethernet address: 02:06:1b:01:b0:a0
sbp0: SBP2/SCSI over firewire on firewire0
fwohci0: Initiate bus reset
fwohci0: BUS reset
fwohci0: node_id = 0xc800ffc0, CYCLEMASTER mode
firewire0: 1 nodes, maxhop = 0, cable IRM = 0 (me)
wi0: Intersil Prism2.5 mem 0xf000-0xffff irq 11 at device 5.0 on pci2
wi0: 802.11 address: 00:20:e0:8a:71:c8
wi0: using RF:PRISM2.5 MAC:ISL3874A(Mini-PCI)
wi0: Intersil Firmware: Primary (1.1.0), Station (1.4.2)
wi0: supported rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
fxp0: Intel 82801CAM (ICH3) Pro/100 VE Ethernet port 0x8000-0x803f mem 
0xc020-0xc0200fff irq 11 at device 8.0 on pci2
fxp0: Ethernet address 00:d0:59:aa:4d:f3
inphy0: i82562ET 10/100 media interface on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isab0: PCI-ISA bridge at device 31.0 on pci0
isa0: ISA bus on isab0
atapci0: Intel ICH3 UDMA100 

Re: ACPI suspend problem (ThinkPad X23)

2003-03-19 Thread FUJITA Kazutoshi
From: User Takawata [EMAIL PROTECTED]
Subject: Re: ACPI suspend problem (ThinkPad X23)
Date: Tue, 18 Mar 2003 15:22:57 +0900
Message-ID: [EMAIL PROTECTED]

 It seems that Your machine does not support S1 sleep.
 See the result of 
 # acpidump |grep _S1
 
 If there is no line like 
 Name(\_S1_, Package(0x4){
 
 
 Use S2, S3 instead.

As you say, it seems my ThinkPad does not support S1 (also S2).

I tried S3, it looks be suspended, but seems LCD power is still on.
And after resumed, I got console messages such like

pcm0: Unhandled interrupt, gs_intr = 86

(My pcm device is ICH3)


It looks need work around.


Regards,

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message


Re: floppy controller

2003-03-28 Thread FUJITA Kazutoshi
From: Tecumtah [EMAIL PROTECTED]
Subject: floppy controller
Date: Wed, 26 Mar 2003 14:13:27 +0100
Message-ID: [EMAIL PROTECTED]

 Here is the output of dmesg | grep fd
 
 fdc0: cmd 3 failed at out byte 1 of 3
 fdc0: cmd 3 failed at out byte 1 of 3
 fdc0: cannot reserve I/O port range (6 ports)

My -CURRENT box(SiS650 chipset) has just same problem.

This means that fdc requires IO port 0x3f7,0x3f0-0x3f5 ,
but some of them is already used by another device. (maybe)

This is in my case, according to 'devinfo -r' output, it seems
IO port 0x3f0-0x3f1 is used by ACPI related device.


acpi_sysresource0
I/O ports:
0x10-0x1f
0x22-0x3f
0x44-0x5f
0x62-0x63
0x65-0x6f
0x72-0x7f
0x80
0x84-0x86
0x88
0x8c-0x8e
0x90-0x9f
0xa2-0xbf
0xe0-0xef
0x290-0x297
0x3f0-0x3f1 === this
0x480-0x48f
0x4d0-0x4d1
0x80c-0x88b
0x88c-0x90b
0xc00-0xc1f

ACPI problem ???


Regards,
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


bus_alloc_resouce() failure for OPTi 82C861

2002-03-07 Thread FUJITA Kazutoshi

Hi there,

I installed -CURRENT on my old PC(ThinkPad235 aka Chandra2),
but its USB device doesn't work.
(it works on Windows environment)

[boot message]
ohci0: OPTi 82C861 (FireLink) USB controller irq 10 at device 5.0 on pci0
ohci0: Could not map memory
device_probe_and_attach: ohci0 attach returned 6


in source code, sys/pci/ohci_pci.c

rid = PCI_CBMEM;
sc-io_res = bus_alloc_resource(self, SYS_RES_MEMORY, rid,
0, ~0, 1, RF_ACTIVE);
if (!sc-io_res) {
device_printf(self, Could not map memory\n);
return ENXIO;
}

It seems the function bus_alloc_resource() returns NULL.

How can I avoid this failure?


TIA

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: bus_alloc_resouce() failure for OPTi 82C861

2002-03-08 Thread FUJITA Kazutoshi

From: M. Warner Losh [EMAIL PROTECTED]
Subject: Re: bus_alloc_resouce() failure for OPTi 82C861
Date: Thu, 07 Mar 2002 01:37:13 -0700 (MST)
Message-ID: [EMAIL PROTECTED]

 : [boot message]
 : ohci0: OPTi 82C861 (FireLink) USB controller irq 10 at device 5.0 on pci0
 : ohci0: Could not map memory
 : device_probe_and_attach: ohci0 attach returned 6

 : It seems the function bus_alloc_resource() returns NULL.
 : 
 : How can I avoid this failure?
 
 You can't.  However, you can work around it like the pccbb driver
 does.  It would be better if these things were handled in the pci bus
 layer, but someone would need to implement that.

Thanks for your advice.
I tried to work around like pccbb driver does, it seems work.

[boot message]
ohci0: OPTi 82C861 (FireLink) USB controller irq 10 at device 5.0 on pci0
usb0: OHCI version 1.0, legacy support
usb0: OPTi 82C861 (FireLink) USB controller on ohci0
usb0: USB revision 1.0
uhub0: OPTi OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered


TIA

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message