OpenBSD/hppa port B1000 PCI USB 2.0 bug

2013-02-17 Thread Ivan Solonin

Hello.
I've tested 3 different PCI USB 2.0 controllers on the latest snapshot 
but each of them has been halted during boot of the GENERIC kernel. All that 
controllers work fine on the different i386 platforms.

chip VIA VT6212L:


OpenBSD/hppa BOOT 1.2

boot
booting dk5a:/bsd: 4190208+1253376+606208 [80+203648+186846]=0x6a5774
SPID bits: 0xfe0, error = 0
pdc_coproc: 0xc0, 0xc0; model 10 rev 1
WARNING: BTLB purge failed
WARNING: cannot block map kernel text
[ using 391028 bytes of bsd ELF symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2013 OpenBSD. All rights reserved.  http://www.OpenBSD.org

OpenBSD 5.3-beta (GENERIC) #27: Fri Feb 15 20:09:52 MST 2013
dera...@hppa.openbsd.org:/usr/src/sys/arch/hppa/compile/GENERIC
HP 9000/785/B1000 (AllegroLow W) PA-RISC 2.0a
real mem = 1073741824 (1024MB)
rsvd mem = 524288 (512KB)
avail mem = 1045942272 (997MB)
mainbus0 at root [flex fff8]
pdc0 at mainbus0
power0 at mainbus0 offset 400804
lcd0 at mainbus0 offset 5d0008: model 0
cpu0 at mainbus0 offset ffa irq 31: PCXW L1-A 300MHz, FPU PCXW rev 1
cpu0: 512K(64b/l) Icache, 1024K(64b/l) wr-back Dcache, 160 coherent TLB
mem0 at mainbus0 offset ed10200: size 1024MB
astro0 at mainbus0 offset ed0: Astro rev 2.1
elroy0 at astro0 offset ed3c000: Elroy TR2.1 APIC ver 20, 7 pins
pci0 at elroy0
elroy1 at astro0 offset ed38000: Elroy TR2.1 APIC ver 20, 7 pins
pci1 at elroy1
elroy2 at astro0 offset ed32000: Elroy TR2.1 APIC ver 20, 7 pins
pci2 at elroy2
uhci0 at pci2 dev 5 function 0 VIA VT83C572 USB rev 0x61: line 1 irq 2
uhci1 at pci2 dev 5 function 1 VIA VT83C572 USB rev 0x61: line 5 irq 3
ehci0 at pci2 dev 5 function 2 VIA VT6202 USB rev 0x63: line 3 irq 5
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 VIA EHCI root hub rev 2.00/1.00 addr 1
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 VIA UHCI root hub rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 VIA UHCI root hub rev 1.00/1.00 addr 1
elroy3 at astro0 offset ed3: Elroy TR2.1 APIC ver 20, 7 pins
pci3 at elroy3
dc0 at pci3 dev 12 function 0 DEC 21142/3 rev 0x41: line 2 irq 6, address 
00:10:83:36:20:0b
lxtphy0 at dc0 phy 1: LXT970 10/100 PHY, rev. 3
Analog Devices AD1889 Audio rev 0x00 at pci3 dev 13 function 0 not configured
pciide0 at pci3 dev 14 function 0 NS PC87415 IDE rev 0x03: DMA, channel 0 
configured to native-PCI, channel

1 configured to native-PCI
pciide0: using line 0 irq 7 for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: QUANTUM FIREBALL SE2.1A
wd0: 16-sector PIO, LBA, 2014MB, 4124736 sectors
atapiscsi0 at pciide0 channel 0 drive 1
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: TEAC, CD-532E-B, 2.0A ATAPI 5/cdrom removable
wd0(pciide0:0:0): using BIOS timings, DMA mode 2
cd0(pciide0:0:1): using BIOS timings, DMA mode 2
ssio0 at pci3 dev 14 function 1 NS 87560 Legacy I/O rev 0x01: line 0 irq 7
com0 at ssio0 offset 3f8 irq 4: ns16550a, 16 byte fifo
com0: console
com1 at ssio0 offset 2f8 irq 3: ns16550a, 16 byte fifo
lpt0 at ssio0 offset 378 irq 7
ohci0 at pci3 dev 14 function 2 NS USB rev 0x02: line 0 irq 7, version 1.0, 
legacy support
siop0 at pci3 dev 15 function 0 Symbios Logic 53c896 rev 0x04: line 1 irq 8, 
using 8K of on-board RAM
scsibus1 at siop0: 16 targets, initiator 7
siop0: switching to single-ended mode
siop1 at pci3 dev 15 function 1 Symbios Logic 53c896 rev 0x04: line 1 irq 8, 
using 8K of on-board RAM
scsibus2 at siop1: 16 targets, initiator 7
sd0 at scsibus2 targ 5 lun 0: SEAGATE, ST336607LC, 0007 SCSI3 0/direct fixed

serial.SEAGATE_ST336607LC_3JAX0RVN7516ZSR5
sd0: 35003MB, 512 bytes/sector, 71687372 sectors
usb3 at ohci0: USB revision 1.0
uhub3 at usb3 NS OHCI root hub rev 1.00/1.00 addr 1
ehci0: unrecoverable error, controller halted

chip ALi M5273:


OpenBSD/hppa BOOT 1.2

boot
booting dk5a:/bsd: 4190208+1253376+606208 [80+203648+186846]=0x6a5774
SPID bits: 0xfe0, error = 0
pdc_coproc: 0xc0, 0xc0; model 10 rev 1
WARNING: BTLB purge failed
WARNING: cannot block map kernel text
[ using 391028 bytes of bsd ELF symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2013 OpenBSD. All rights reserved.  http://www.OpenBSD.org

OpenBSD 5.3-beta (GENERIC) #27: Fri Feb 15 20:09:52 MST 2013
dera...@hppa.openbsd.org:/usr/src/sys/arch/hppa/compile/GENERIC
HP 9000/785/B1000 (AllegroLow W) PA-RISC 2.0a
real mem = 1073741824 (1024MB)
rsvd mem = 524288 (512KB)
avail mem = 1045942272 (997MB)
mainbus0 at root [flex fff8]
pdc0 at mainbus0
power0 at mainbus0 offset 400804
lcd0 at mainbus0 offset 5d0008: model 0
cpu0 at mainbus0 offset ffa irq 31: PCXW L1-A 300MHz, FPU PCXW rev 1
cpu0: 512K(64b/l) Icache, 1024K(64b/l) wr-back Dcache, 160 coherent TLB
mem0 at mainbus0 offset ed10200: size 1024MB
astro0 at mainbus0 offset ed0: Astro rev 2.1
elroy0 at astro0 offset ed3c000: 

OpenBSD/hppa port B1000 PCI bug during load of existing cardbus adapter driver

2013-02-17 Thread Ivan Solonin

Hello.

I've tested 2 different PCI PCMCIA/CardBus adapters known to OpenBSD 
with the latest snapshot GENERIC kernel but no one of them has reached 
operational state. Both adapters work on i386 machines.

chip RICOH R5C475II:


OpenBSD/hppa BOOT 1.2

boot
booting dk5a:/bsd: 4190208+1253376+606208 [80+203648+186846]=0x6a5774
SPID bits: 0xfe0, error = 0
pdc_coproc: 0xc0, 0xc0; model 10 rev 1
WARNING: BTLB purge failed
WARNING: cannot block map kernel text
[ using 391028 bytes of bsd ELF symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2013 OpenBSD. All rights reserved.  http://www.OpenBSD.org

OpenBSD 5.3-beta (GENERIC) #27: Fri Feb 15 20:09:52 MST 2013
dera...@hppa.openbsd.org:/usr/src/sys/arch/hppa/compile/GENERIC
HP 9000/785/B1000 (AllegroLow W) PA-RISC 2.0a
real mem = 1073741824 (1024MB)
rsvd mem = 524288 (512KB)
avail mem = 1045942272 (997MB)
mainbus0 at root [flex fff8]
pdc0 at mainbus0
power0 at mainbus0 offset 400804
lcd0 at mainbus0 offset 5d0008: model 0
cpu0 at mainbus0 offset ffa irq 31: PCXW L1-A 300MHz, FPU PCXW rev 1
cpu0: 512K(64b/l) Icache, 1024K(64b/l) wr-back Dcache, 160 coherent TLB
mem0 at mainbus0 offset ed10200: size 1024MB
astro0 at mainbus0 offset ed0: Astro rev 2.1
elroy0 at astro0 offset ed3c000: Elroy TR2.1 APIC ver 20, 7 pins
pci0 at elroy0
elroy1 at astro0 offset ed38000: Elroy TR2.1 APIC ver 20, 7 pins
pci1 at elroy1
elroy2 at astro0 offset ed32000: Elroy TR2.1 APIC ver 20, 7 pins
pci2 at elroy2
cbb0 at pci2 dev 5 function 0 Ricoh 5C475 CardBus rev 0x80can't map registers
elroy3 at astro0 offset ed3: Elroy TR2.1 APIC ver 20, 7 pins
pci3 at elroy3
dc0 at pci3 dev 12 function 0 DEC 21142/3 rev 0x41: line 2 irq 2, address 
00:10:83:36:20:0b
lxtphy0 at dc0 phy 1: LXT970 10/100 PHY, rev. 3
Analog Devices AD1889 Audio rev 0x00 at pci3 dev 13 function 0 not configured
pciide0 at pci3 dev 14 function 0 NS PC87415 IDE rev 0x03: DMA, channel 0 
configured to native-PCI, channel

1 configured to native-PCI
pciide0: using line 0 irq 3 for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: QUANTUM FIREBALL SE2.1A
wd0: 16-sector PIO, LBA, 2014MB, 4124736 sectors
atapiscsi0 at pciide0 channel 0 drive 1
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: TEAC, CD-532E-B, 2.0A ATAPI 5/cdrom removable
wd0(pciide0:0:0): using BIOS timings, DMA mode 2
cd0(pciide0:0:1): using BIOS timings, DMA mode 2
ssio0 at pci3 dev 14 function 1 NS 87560 Legacy I/O rev 0x01: line 0 irq 3
com0 at ssio0 offset 3f8 irq 4: ns16550a, 16 byte fifo
com0: console
com1 at ssio0 offset 2f8 irq 3: ns16550a, 16 byte fifo
lpt0 at ssio0 offset 378 irq 7
ohci0 at pci3 dev 14 function 2 NS USB rev 0x02: line 0 irq 3, version 1.0, 
legacy support
siop0 at pci3 dev 15 function 0 Symbios Logic 53c896 rev 0x04: line 1 irq 5, 
using 8K of on-board RAM
scsibus1 at siop0: 16 targets, initiator 7
siop0: switching to single-ended mode
siop1 at pci3 dev 15 function 1 Symbios Logic 53c896 rev 0x04: line 1 irq 5, 
using 8K of on-board RAM
scsibus2 at siop1: 16 targets, initiator 7
sd0 at scsibus2 targ 5 lun 0: SEAGATE, ST336607LC, 0007 SCSI3 0/direct fixed

serial.SEAGATE_ST336607LC_3JAX0RVN7516ZSR5
sd0: 35003MB, 512 bytes/sector, 71687372 sectors
usb0 at ohci0: USB revision 1.0
uhub0 at usb0 NS OHCI root hub rev 1.00/1.00 addr 1
siop1: target 5 now using tagged 16 bit 40.0 MHz 31 REQ/ACK offset xfers
vscsi0 at root
scsibus3 at vscsi0: 256 targets
softraid0 at root
scsibus4 at softraid0: 256 targets
bootpath: 10/0/15/1.5 class=1 flags=80autoboot hpa=0xf4004000 spa=0x0 
io=0x19000
root on sd0a (035c775f1aac71c7.a) swap on sd0b dump on sd0b

chip RICOH R5C485:


OpenBSD/hppa BOOT 1.2

boot
booting dk5a:/bsd: 4190208+1253376+606208 [80+203648+186846]=0x6a5774
SPID bits: 0xfe0, error = 0
pdc_coproc: 0xc0, 0xc0; model 10 rev 1
WARNING: BTLB purge failed
WARNING: cannot block map kernel text
[ using 391028 bytes of bsd ELF symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2013 OpenBSD. All rights reserved.  http://www.OpenBSD.org

OpenBSD 5.3-beta (GENERIC) #27: Fri Feb 15 20:09:52 MST 2013
dera...@hppa.openbsd.org:/usr/src/sys/arch/hppa/compile/GENERIC
HP 9000/785/B1000 (AllegroLow W) PA-RISC 2.0a
real mem = 1073741824 (1024MB)
rsvd mem = 524288 (512KB)
avail mem = 1045942272 (997MB)
mainbus0 at root [flex fff8]
pdc0 at mainbus0
power0 at mainbus0 offset 400804
lcd0 at mainbus0 offset 5d0008: model 0
cpu0 at mainbus0 offset ffa irq 31: PCXW L1-A 300MHz, FPU PCXW rev 1
cpu0: 512K(64b/l) Icache, 1024K(64b/l) wr-back Dcache, 160 coherent TLB
mem0 at mainbus0 offset ed10200: size 1024MB
astro0 at mainbus0 offset ed0: Astro rev 2.1
elroy0 at astro0 offset ed3c000: Elroy TR2.1 APIC ver 20, 7 pins
pci0 at elroy0
elroy1 at astro0 offset ed38000: Elroy TR2.1 APIC ver 20, 7 pins
pci1 at 

Re: Thecus N1200 fix

2012-03-28 Thread Ivan Solonin
Illegal instruction
Illegal instruction (core dumped)
Illegal instruction (core dumped)
pid 21489 (sleep): user write of 466944@0x1994000 at 21732 failed: 28
Illegal instruction
pid 10658 (mkdir): user write of 466944@0x1994000 at 21732 failed: 28
pid 30075 (sleep): user write of 466944@0x1994000 at 21732 failed: 28
Illegal instruction
Illegal instruction (core dumped)
Illegal instruction (core dumped)
pid 9915 (sleep): user write of 466944@0x1994000 at 21732 failed: 28
Illegal instruction
pid 4516 (mkdir): user write of 466944@0x1994000 at 21732 failed: 28
pid 18094 (sleep): user write of 466944@0x1994000 at 21700 failed: 28
Illegal instruction
Illegal instruction (core dumped)
Illegal instruction (core dumped)
pid 32265 (sleep): user write of 466944@0x1994000 at 21732 failed: 28
Illegal instruction
pid 578 (mkdir): user write of 466944@0x1994000 at 21724 failed: 28
pid 22470 (sleep): user write of 466944@0x1994000 at 21732 failed: 28
Illegal instruction
Illegal instruction (core dumped)
pid 23765 (cat): user write of 192512@0xfffd at 558308 failed: 28
Illegal instruction
uid 0 on /: file system full

/: write failed, file system ipid 14779 (rm): user write of
192512@0xfffd at 558308 failed: 28
s full
pid 4844 (sleep): user write of 466944@0x1994000 at 21700 failed: 28
Illegal instruction
pid 27296 (mkdir): user write of 466944@0x1994000 at 21732 failed: 28
pid 19320 (sleep): user write of 466944@0x1994000 at 21732 failed: 28
Illegal instruction
Illegal instruction (core dumped)
Illegal instruction (core dumped)
pid 13592 (sleep): user write of 466944@0x1994000 at 21732 failed: 28
Illegal instruction
pid 6186 (mkdir): user write of 466944@0x1994000 at 21732 failed: 28
pid 26693 (sleep): user write of 466944@0x1994000 at 21700 failed: 28
Illegal instruction
Illegal instruction (core dumped)
Illegal instruction (core dumped)
pid 14335 (sleep): user write of 466944@0x1994000 at 21732 failed: 28
Illegal instruction
pid 10982 (mkdir): user write of 466944@0x1994000 at 21732 failed: 28
pid 12118 (sleep): user write of 466944@0x1994000 at 21732 failed: 28
Illegal instruction
pid 9377 (dmesg): user write of 45056@0xfffe5000 at 492772 failed: 28
Illegal instruction
^CIllegal instruction (core dumped)
pid 25258 (mkdir): user write of 466944@0x1994000 at 21732 failed: 28
pid 23859 (sleep): user write of 466944@0x1994000 at 21732 failed: 28
Illegal instruction
Illegal instruction (core dumped)

pid 1732 (stty): user write of 466944@0x1994000 at 21732 failed: 28
Illegal instruction

pid 4979 (stty): user write of 466944@0x1994000 at 21732 failed: 28
Illegal instruction
# halt -p
uid 0 on /: file system full

/: write failepid 18143 (halt): user write of 466944@0x1994000 at 21732
failed: 28
d, file system is full
Illegal instruction
#


It happens every time when I start to edit MBR in fdisk (press the 'e'
button in fdisk). I`ve do this 6 times but results were the same. It isn`t
overheat of CPU and this happens during install by installation script
only. When I first time edit MBR in shell mode of installation prompt MBR
and disklabel was edited completely and saved on hdd.

Sincerely,
Ivan Solonin



Re: Thecus N1200 fix

2012-03-28 Thread Ivan Solonin

On Wed, 28 Mar 2012 17:07:45 +0600, Tobias Ulmer tobi...@tmux.org wrote:


On Wed, Mar 28, 2012 at 01:58:44PM +0600, Ivan Solonin wrote:

Looks like fdisk can't handle the damaged partition table. Can you try
fdisk -i wd0? Or even dd if=/dev/zero of=/dev/rwd0c bs=1m count=1

For the record my installation of this snapshot went fine. The disk was
zero'ed beforehand though.



Mostly you are right but nevertheless Illegal instruction (core dumped)  
bug appears. In my case installation almost finishes on zeroed HDD with  
this error message:


man51.tgz100% |*|  9499 KB00:13
Location of sets? (disk ftp http nfs or 'done') [done]
Time appears wrong.  Set to 'Wed Mar 28 23:37:41 YEKT 2012'? [yes]
Saving configuration files...done.
Generating initial host.random file...done.
Making all device nodes...done.
dd: /dev/wd0i: Device not configured
Failed to install bootblocks.
You will not be able to boot OpenBSD from wd0.

#

This error appears even if I use auto layout of filesystems in disklabel  
where wd0i have mount point /usr/src. If I use my custom layout without  
wd0i error message will be the same.

If installation started on nonzeroed HDD I`ve got:

uid 0 on /: file system full

/: write failed, pid 18705 (sleep): user write of 126976@0xfffe at  
550116 failed: 28

file system is full
Illegal instruction
Illegal instruction (core dumped)
Illegal instruction (core dumped)


Ivan