kernel panic when unplugging usb3 sweex harddisk enclosure from usb2 port

2014-04-03 Thread Maxim Belooussov
Hi all,

Running current, amd64, snapshot from the 1st of April 2014. The disk from
Sweex usb 3.0 enclosure for 3.5 inch disks has been pulled out of usb2
port, got a panic:

sd1 detached
scsibus3 detached
umass0 detached
panic: Data modified on freelist: word 14 of object 0x8059e400 size
0x268 previous type temp (0xdeafbeaf != 0xdeafbead)

Stopped at  Debugger+0x5:leave

snip

ddb{0} trace
Debugger() at Debugger+0x5
panic() at panic+0xfe
malloc() at malloc+0x67d
sysctl_doproc() at sysctl_doproc+0xc3
kern_sysctl() at kern_sysctl+0x494
sys___sysctl() at sys___sysctl+0x214
syscall() at syscall+0x279
--- syscall (number 202) ---
end of kernel
end trace frame: 0x1ddde40ec000, count: -7
0x1f61975a:
ddb{0}

I've retyped the above manually off the glass console. Dmesg is below.

Let me know how I can help to narrow this down, will test diffs.


Maxim Belooussov



dmesg after reboot, with the disk (sd1) plugged in:

OpenBSD 5.5-current (GENERIC.MP) #45: Tue Apr  1 12:24:39 MDT 2014
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 4174065664 (3980MB)
avail mem = 4054200320 (3866MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xbc41b018 (63 entries)
bios0: vendor American Megatrends Inc. version 2005 date 09/16/2013
bios0: ASUSTeK COMPUTER INC. M5A97 EVO R2.0
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC FPDT MCFG HPET BGRT SSDT
acpi0: wakeup devices SBAZ(S4) PS2K(S3) PS2M(S3) UAR1(S4) P0PC(S4) UHC1(S4)
UHC2(S4) UHC4(S4) UHC6(S4) UHC7(S4) PC02(S4) PC03(S4) PC04(S4) PC05(S4)
PC06(S4) PC07(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 16 (boot processor)
cpu0: AMD FX(tm)-4350 Quad-Core Processor , 4214.52 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCN
T,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SS
E4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,NODEID,TBM,TOPEXT,ITSC,BMI1
cpu0: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB
64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu0: ITLB 48 4KB entries fully associative, 24 4MB entries fully
associative
cpu0: DTLB 64 4KB entries fully associative, 64 4MB entries fully
associative
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 200MHz
cpu0: mwait min=64, max=64, C-substates=0.0.0.0.0, IBE
cpu1 at mainbus0: apid 17 (application processor)
cpu1: AMD FX(tm)-4350 Quad-Core Processor , 4213.94 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCN
T,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SS
E4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,NODEID,TBM,TOPEXT,ITSC,BMI1
cpu1: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB
64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu1: ITLB 48 4KB entries fully associative, 24 4MB entries fully
associative
cpu1: DTLB 64 4KB entries fully associative, 64 4MB entries fully
associative
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 18 (application processor)
cpu2: AMD FX(tm)-4350 Quad-Core Processor , 4213.94 MHz
cpu2:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCN
T,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SS
E4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,NODEID,TBM,TOPEXT,ITSC,BMI1
cpu2: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB
64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu2: ITLB 48 4KB entries fully associative, 24 4MB entries fully
associative
cpu2: DTLB 64 4KB entries fully associative, 64 4MB entries fully
associative
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 19 (application processor)
cpu3: AMD FX(tm)-4350 Quad-Core Processor , 4213.95 MHz
cpu3:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCN
T,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SS
E4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,NODEID,TBM,TOPEXT,ITSC,BMI1
cpu3: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB
64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu3: ITLB 48 4KB entries fully associative, 24 4MB entries fully
associative
cpu3: DTLB 64 4KB entries fully associative, 64 4MB entries fully
associative
cpu3: smt 0, core 3, package 0
ioapic0 at mainbus0: apid 5 pa 0xfec0, version 21, 24 pins
ioapic1 at mainbus0: apid 6 pa 0xfec2, version 21, 32 pins
acpimcfg0 at acpi0 addr 0xe000, bus 0-255

Re: Should Android have used OpenBSD instead of Linux?

2013-12-02 Thread Maxim Belooussov
On Sat, Nov 30, 2013 at 6:41 PM, Mikael mikael.tr...@gmail.com wrote:

 
  just like everyone else, i would love to see an openbsd
  powered android phone.  but i think the elephant in
  the room no one is talking about is performance.
  without getting into running bad code faster vs
  running good code slower, openbsd is simply slow.

 Last time me and Paul de Weerd have checked the performance of OpenBSD vs
Linux, OpenBSD was 0.5% slower than linux. That was mainly network latency
check, granted one-sighted. I am sure that if I had tweaked the intel
network driver in OpenBSD, fish would win.

Max



easter egg in 4.8?

2010-10-31 Thread Maxim Belooussov
Hi all,

Somehow amd64 4.8 cd install did not want to install properly on a
sata disk. Upgrading from 4.7, however, worked flawlessly. I had to
install 4.7 in another box, and than upgrade on target box.

Am I the lucky one or are there any other users experiencing the same?

Maxim



Re: SSD performace

2008-09-19 Thread Maxim Belooussov
Hi,

IBM thinkpad X300, OpenBSD-current

# dmesg|grep sd0
sd0 at scsibus1 targ 0 lun 0: ATA, SAMSUNG MCCOE64G, PS10 SCSI3 0/direct fixed
sd0: 61057MB, 512 bytes/sec, 125045424 sec total
root on sd0a swap on sd0b dump on sd0b
# mount
/dev/sd0a on / type ffs (local, noatime, softdep)
# df -h
Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/sd0a 58.7G   19.3G   36.4G35%/
# dd bs=65536 if=/dev/rsd0a of=/dev/null count=1
1+0 records in
1+0 records out
65536 bytes transferred in 8.389 secs (78114049 bytes/sec)
#

Maxim

On Fri, Sep 19, 2008 at 7:11 AM, Aaron Stellman [EMAIL PROTECTED] wrote:
 Hello list,
 Since the prices on SSD are falling I'm thinking about aquiring one.
 Before I do that however, I'd like to see some quantified benchmarks.
 I'd really appreciate if anyone could comment on perfomance figures and
 maybe even send results of bonnie/bonnie++ benchmark on any SSD drive
 on OpenBSD.
 Here is what I'm looking at:
 http://www.mwave.com/mwave/SkuSearch_v2.asp?SCriteria=ba25346
 I realize reviews on this thing are contradictory, but I'm willing to
 risk and see if these are worth the cost. There are also reports that
 this particular SSD makes thinkpad T61 error out on bios initializing
 with error 2100; however, it seems to be AHCI related. Someone
 suggested disabling AHCI in bios. In any case, I appreciate your
 thoughts and comments.



strange sound playback problem on Thinkpad X300

2008-09-03 Thread Maxim Belooussov
Hi all,

1. recent i386 snapshot, bsd.mp on Thinkpad X300
2. gnome desktop
3. opera + flash plugin

Problem:
No sound when playing back flash movies (youtube) via opera
flashplugin. Under generic bsd no sound at all.

Workaround:
Pressing Ctrl+End allows sound to play.

If anyone knows what knobs I must tweak to get the sound working, I'd
be greateful. Dmesg + mixerctl output below.

(generic bsd.mp has DRI enabled, that's the only change)

Maxim

# dmesg
OpenBSD 4.4-current (GENERIC.MP) #860: Mon Sep  1 13:55:06 MDT 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Core(TM)2 Duo CPU L7100 @ 1.20GHz (GenuineIntel
686-class) 1.20 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,xTPR
real mem  = 3211087872 (3062MB)
avail mem = 3111063552 (2966MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 06/06/08, BIOS32 rev. 0 @
0xfdca0, SMBIOS rev. 2.4 @ 0xe0010 (67 entries)
bios0: vendor LENOVO version 7TET31WW (1.05 ) date 06/06/2008
bios0: LENOVO 6477W3W
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET SLIC BOOT ASF!
SSDT SSDT SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) IGBE(S4) EXP0(S4) EXP1(S4)
EXP2(S4) PCI1(S4) USB0(S3) USB1(S3) USB2(S3) USB3(S3) USB4(S3)
EHC0(S3) EHC1(S3) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 199MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU L7100 @ 1.20GHz (GenuineIntel
686-class) 1.20 GHz
cpu1: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,xTPR
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: duplicate apic id, remapped to apid 2
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus 3 (EXP1)
acpiprt4 at acpi0: bus 4 (EXP2)
acpiprt5 at acpi0: bus 13 (PCI1)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2
acpicpu1 at acpi0: C3, C2
acpitz0 at acpi0: critical temperature 127 degC
acpitz1 at acpi0: critical temperature 100 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model 42T4522 serial   212 type LION oem SANYO
acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
acpivideo at acpi0 not configured
acpivideo at acpi0 not configured
bios0: ROM list: 0xc/0x1! 0xd/0x1000 0xd1000/0x1000 0xe/0x1!
cpu0: unknown Enhanced SpeedStep CPU, msr 0x0619072206000722
cpu0: using only highest and lowest power states
cpu0: Enhanced SpeedStep 1400 MHz (1244 mV): speeds: 1400, 1200 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel GM965 Host rev 0x0c
vga1 at pci0 dev 2 function 0 Intel GM965 Video rev 0x0c
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
agp0 at vga1: aperture at 0xe000, size 0x1000
inteldrm0 at vga1 Intel i965GM(0), 1.6.0 20080312
Intel GM965 Video rev 0x0c at pci0 dev 2 function 1 not configured
em0 at pci0 dev 25 function 0 Intel ICH8 IGP M AMT rev 0x03: apic 2
int 20 (irq 11), address 00:1c:25:b6:81:c8
uhci0 at pci0 dev 26 function 0 Intel 82801H USB rev 0x03: apic 2
int 20 (irq 11)
uhci1 at pci0 dev 26 function 1 Intel 82801H USB rev 0x03: apic 2
int 21 (irq 11)
ehci0 at pci0 dev 26 function 7 Intel 82801H USB rev 0x03: apic 2
int 22 (irq 11)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 Intel 82801H HD Audio rev 0x03:
apic 2 int 17 (irq 11)
azalia0: codec[s]: Analog Devices/0x194a
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 Intel 82801H PCIE rev 0x03: apic 2
int 20 (irq 11)
pci1 at ppb0 bus 2
ppb1 at pci0 dev 28 function 1 Intel 82801H PCIE rev 0x03: apic 2
int 21 (irq 11)
pci2 at ppb1 bus 3
iwn0 at pci2 dev 0 function 0 Intel Wireless WiFi Link 4965AGN rev
0x61: apic 2 int 17 (irq 11), MoW2, address 00:1f:3b:ad:fb:45
ppb2 at pci0 dev 28 function 2 Intel 82801H PCIE rev 0x03: apic 2
int 22 (irq 11)
pci3 at ppb2 bus 4
uhci2 at pci0 dev 29 function 0 Intel 82801H USB rev 0x03: apic 2
int 16 (irq 10)
uhci3 at pci0 dev 29 function 1 Intel 82801H USB rev 0x03: apic 2
int 17 (irq 11)
uhci4 at pci0 dev 29 function 2 Intel 82801H USB rev 0x03: apic 2
int 18 (irq 11)
ehci1 at pci0 dev 29 function 7 Intel 82801H USB rev 0x03: apic 2
int 19 (irq 11)
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb3 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0xf3
pci4 at ppb3 bus 13
pcib0 at pci0 dev 31 function 0 Intel 82801HEM LPC rev 0x03
pciide0 at pci0 dev 31 function 1 Intel 82801HBM IDE rev 0x03: DMA,

uvideo trouble with snapshot of 20080717

2008-07-19 Thread Maxim Belooussov
Hi all,

Lenovo X300, snapshot for i386, from 20080717 (also 20080716) dumps
into dbb on boot on uvideo:

uvm_fault(0xd0814b20, 0x0, 0, 1) - e
kernel: page fault trap, code=0
Stopped at   uvideo_vs_negotiation+0x81:   mov10x15(%eax),%eax
ddb{0}

//no console to capture output, made some photos//
last line of output from trace:
Bad frame pointer: 0xd09555e78

Previous snapshot of a week ago was booting just fine, I sent in the
dmesg to [EMAIL PROTECTED] few days back.

snippet from previous dmesg:

uvideo0 at uhub6 port 1 configuration 1 interface 0 Chicony
Electronics Co., Ltd. product 0x4807 rev 2.00/31.25 addr 2
video0 at uvideo0

Disabling uvideo* on ukc allows kernel to boot.

(the machine has 4G of ram, sounds like a problem already reported)

Should I file a bug for this one?
Any cluesticks/patches to try are appreciated. I can send the pictures
of trace/ps if contacted off-list.

Maxim



Re: 3G Mini PCI Express recommendations

2008-07-18 Thread Maxim Belooussov
Hi,

 I'll want to build a small device with 3G + wlan. The ALIX 6b2 seems to
 be a good candidate for it. It has 1 mini pci express and 1 mini pci
 interfaces.

 I sought the archives and already found OpenBSD compatible mini pci
 Wireless devices but I didn't found references for mini-pcie 3G cards.
 Does someone here already play with such devices ?

Lenovo Thinkpad X300 has been reported to support mini-pcie sierra hsdpa cards:
umsm0 at uhub5 port 1 configuration 1 interface 0 Sierra Wireless,

I have one as well, but haven't tried yet under OpenBSD.

Maxim Belooussov



Re: This is what Linus Torvalds calls openBSD crowd

2008-07-17 Thread Maxim Belooussov
 looks like the theme for the 4.4 release is sorted then.
 _
 Invite your Facebook friends to chat on Messenger
 http://clk.atdmt.com/UKM/go/101719649/direct/01/


Can we get a sticker, too?



Re: NEC usb controller and huawei E620 support

2008-07-04 Thread Maxim Belooussov
Hi Stuart,

 Hence, just adding device and vendor id and recompiling the kernel is
 not enough, ohci handling code needs to support the correct revision
 for the device. Or tweaking usb-quirks as Miod does from time to time,
 but this is way beyond my current level.

 There might be multiple problems. Does that cardbus slot work
 correctly with other 32-bit devices?

Had to dig out some PCMCIA network cards from the garbage bin - those
got recognized.

These commits caught my attention the other day:

http://marc.info/?l=openbsd-cvsm=121498398305603w=2

http://marc.info/?l=openbsd-cvsm=121501156320436w=2

And after new kernel recompile and reboot the card shows up in dmesg:

OpenBSD 4.4-beta (GENERIC) #0: Thu Jul  3 10:09:02 CEST 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) M processor 1.80GHz (GenuineIntel
686-class) 1.80 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,SBF,EST,TM2
real mem  = 2146332672 (2046MB)
avail mem = 2067238912 (1971MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 02/27/06, BIOS32 rev. 0 @
0xfd750, SMBIOS rev. 2.33 @ 0xe0010 (61 entries)
bios0: vendor IBM version 1RETDOWW (3.20 ) date 02/27/2006
bios0: IBM 2373M1G
apm0 at bios0: Power Management spec V1.2
apm0: battery life expectancy 100%
apm0: AC off, battery charge high, estimated 1:43 hours
acpi at bios0 function 0x0 not configured
pcibios0 at bios0: rev 2.1 @ 0xfd6e0/0x920
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdea0/272 (15 entries)
pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82371FB ISA rev 0x00)
pcibios0: PCI bus #6 is the last bus
bios0: ROM list: 0xc/0x1 0xdc000/0x4000! 0xe/0x1
cpu0 at mainbus0
cpu0: Enhanced SpeedStep 1800 MHz (1340 mV): speeds: 1800, 1600, 1400,
1200, 1000, 800, 600 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 82855PM Host rev 0x03
ppb0 at pci0 dev 1 function 0 Intel 82855PM AGP rev 0x03
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 ATI Radeon Mobility M10 NP rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
agp0 at vga1: aperture at 0xd000, size 0x1000
uhci0 at pci0 dev 29 function 0 Intel 82801DB USB rev 0x01: irq 5
uhci1 at pci0 dev 29 function 1 Intel 82801DB USB rev 0x01: irq 6
uhci2 at pci0 dev 29 function 2 Intel 82801DB USB rev 0x01: irq 9
ehci0 at pci0 dev 29 function 7 Intel 82801DB USB rev 0x01: irq 11
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb1 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0x81
pci2 at ppb1 bus 2
cbb0 at pci2 dev 0 function 0 TI PCI4520 CardBus rev 0x01: irq 5
cbb1 at pci2 dev 0 function 1 TI PCI4520 CardBus rev 0x01: irq 5
em0 at pci2 dev 1 function 0 Intel PRO/1000MT (82540EP) rev 0x03:
irq 5, address 00:11:25:b1:ab:3b
ath0 at pci2 dev 2 function 0 Atheros AR5212 (IBM MiniPCI) rev 0x01: irq 9
ath0: AR5213 5.9 phy 4.3 rf5112a 3.6, WOR2W, address 00:0e:9b:c6:8b:16
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 3 device 0 cacheline 0x8, lattimer 0xb0
pcmcia0 at cardslot0
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 6 device 0 cacheline 0x8, lattimer 0xb0
pcmcia1 at cardslot1
ichpcib0 at pci0 dev 31 function 0 Intel 82801DBM LPC rev 0x01:
24-bit timer at 3579545Hz
pciide0 at pci0 dev 31 function 1 Intel 82801DBM IDE rev 0x01: DMA,
channel 0 configured to compatibility, channel 1 configured to
compatibility
wd0 at pciide0 channel 0 drive 0: HTS541080G9AT00
wd0: 16-sector PIO, LBA, 76319MB, 156301488 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets, initiator 7
cd0 at scsibus0 targ 0 lun 0: HL-DT-ST, RW/DVD GCC-4242N, 0201 ATAPI
5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
ichiic0 at pci0 dev 31 function 3 Intel 82801DB SMBus rev 0x01: irq 5
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 1GB DDR SDRAM non-parity PC2700CL2.5
spdmem1 at iic0 addr 0x51: 1GB DDR SDRAM non-parity PC2700CL2.5
auich0 at pci0 dev 31 function 5 Intel 82801DB AC97 rev 0x01: irq 5, ICH4 AC97
ac97: codec id 0x41445374 (Analog Devices AD1981B)
ac97: codec features headphone, 20 bit DAC, No 3D Stereo
audio0 at auich0
Intel 82801DB Modem rev 0x01 at pci0 dev 31 function 6 not configured
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 Intel UHCI root hub rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 Intel UHCI root hub rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 Intel UHCI root hub rev 1.00/1.00 addr 1
isa0 at ichpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux 

Re: NEC usb controller and huawei E620 support

2008-07-01 Thread Maxim Belooussov
Hi Henning,

On Tue, Jul 1, 2008 at 4:08 PM, Henning Brauer [EMAIL PROTECTED] wrote:
 * Maxim Belooussov [EMAIL PROTECTED] [2008-06-19 11:57]:
 How do I add support for NEC usb controller to OpenBSD?

 Currently it looks like the NEC usb controller is not recognized
 because OpenBSD doesn't know its id. Huawei card is 'hiding' behind
 the controller, and is not visible at the moment.

 ohci0 at cardbus0 dev 0 function 0 NEC USB rev 0x43: irq 5, version 0.0

 the usb controller is detected just fine.

 ohci0: unsupported OHCI revision

 that is your real problem.

Indeed, and that's exactly what I said in my previous email on June
20th. Thank you for confirming my diagnosis :)

quote
The device seems to report wrong (unsupported) ohci revision.
Intentionally messing up the revision check in the source code and
recompiling the kernel results in:

ohci0 at cardbus0 dev 0 function 0 NEC USB rev 0x43: irq 5, version 0.0
ohci0: reset timeout
ohci0: init failed, error=13
ohci1 at cardbus0 dev 0 function 1 NEC USB rev 0x43: irq 5, version 0.0
ohci1: reset timeout
ohci1: init failed, error=13

Hence, just adding device and vendor id and recompiling the kernel is
not enough, ohci handling code needs to support the correct revision
for the device. Or tweaking usb-quirks as Miod does from time to time,
but this is way beyond my current level.

/endquote

Once I get my new laptop from my work, I intend to lend the card to
Felix, so maybe he can help.

Maxim



Re: NEC usb controller and huawei E620 support

2008-06-20 Thread Maxim Belooussov
Hi all,

Thanks to all who have responded.

Replying for the archives.

 Currently it looks like the NEC usb controller is not recognized
 because OpenBSD doesn't know its id. Huawei card is 'hiding' behind
 the controller, and is not visible at the moment.

After finding the id with `pcidev -dv` and adding it to usbdevs didn't
do the trick. The problem seems to be hiding in
/usr/src/sys/dev/usb/ohci.c file:

if (OHCI_REV_HI(rev) != 1 || OHCI_REV_LO(rev) != 0) {
printf(%s: unsupported OHCI revision\n,
   sc-sc_bus.bdev.dv_xname);
sc-sc_bus.usbrev = USBREV_UNKNOWN;
return (USBD_INVAL);
}

The device seems to report wrong (unsupported) ohci revision.
Intentionally messing up the revision check in the source code and
recompiling the kernel results in:

ohci0 at cardbus0 dev 0 function 0 NEC USB rev 0x43: irq 5, version 0.0
ohci0: reset timeout
ohci0: init failed, error=13
ohci1 at cardbus0 dev 0 function 1 NEC USB rev 0x43: irq 5, version 0.0
ohci1: reset timeout
ohci1: init failed, error=13

Hence, just adding device and vendor id and recompiling the kernel is
not enough, ohci handling code needs to support the correct revision
for the device. Or tweaking usb-quirks as Miod does from time to time,
but this is way beyond my current level.

Maxim



NEC usb controller and huawei E620 support

2008-06-19 Thread Maxim Belooussov
Hi all,

I have a small question, but it's not tech enough for tech@, so asking it here.

How do I add support for NEC usb controller to OpenBSD?

http://www.huawei.com/mobileweb/en/products/view.do?id=145

Currently it looks like the NEC usb controller is not recognized
because OpenBSD doesn't know its id. Huawei card is 'hiding' behind
the controller, and is not visible at the moment.

I've taken a look at /usr/src/sys/dev/usb/usbdevs file and saw this:

/* NEC products */
product NEC USB2EXTEND  0x0409  Repeater
product NEC HUB 0x55aa  hub
product NEC HUB_B   0x55ab  hub
product NEC PICTY7600xbef4  Picty760
product NEC PICTY9000xefbe  Picty900
product NEC PICTY9200xf0be  Picty920
product NEC PICTY8000xf1be  Picty800

According to my dmesg (below), device id is:
ohci0 at cardbus0 dev 0 function 0 NEC USB rev 0x43: irq 5, version 0.0
ohci0: unsupported OHCI revision
ohci1 at cardbus0 dev 0 function 1 NEC USB rev 0x43: irq 5, version 0.0
ohci1: unsupported OHCI revision

But I cannot figure out what string should I add to usbdevs file:

product NEC PCMCIAUSB  0x4300

or

product NEC PCMCIAUSB  0x3433 (43 into hex??)

or something completely different?

I've tried searching the net, but not enough definite pointers there neither.

http://alenitchev.wordpress.com/2006/10/02/hacking-usb-device-drivers-part-2/#more-43


Here's the dmesg from -current, yesterday's checkout and compile:


$ dmesg
OpenBSD 4.3-current (GENERIC) #1: Wed Jun 18 20:54:44 CEST 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) M processor 1.80GHz (GenuineIntel 686-class) 1.80 GH
z
cpu0: FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MM
X,FXSR,SSE,SSE2,SS,TM,SBF,EST,TM2
real mem  = 2146332672 (2046MB)
avail mem = 2067288064 (1971MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 02/27/06, BIOS32 rev. 0 @ 0xfd750, SMBIOS
rev. 2.33 @ 0xe0010 (61 entries)
bios0: vendor IBM version 1RETDOWW (3.20 ) date 02/27/2006
bios0: IBM 2373M1G
apm0 at bios0: Power Management spec V1.2
apm0: battery life expectancy 83%
apm0: AC on, battery charge high, charging
acpi at bios0 function 0x0 not configured
pcibios0 at bios0: rev 2.1 @ 0xfd6e0/0x920
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdea0/272 (15 entries)
pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82371FB ISA rev 0x00)
pcibios0: PCI bus #6 is the last bus
bios0: ROM list: 0xc/0x1 0xd/0x1000 0xd1000/0x1000 0xdc000/0x4000! 0
xe/0x1
cpu0 at mainbus0
cpu0: Enhanced SpeedStep 1800 MHz (1340 mV): speeds: 1800, 1600, 1400, 1200, 100
0, 800, 600 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 82855PM Host rev 0x03
ppb0 at pci0 dev 1 function 0 Intel 82855PM AGP rev 0x03
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 ATI Radeon Mobility M10 NP rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
agp0 at vga1: aperture at 0xd000, size 0x1000
uhci0 at pci0 dev 29 function 0 Intel 82801DB USB rev 0x01: irq 5
uhci1 at pci0 dev 29 function 1 Intel 82801DB USB rev 0x01: irq 6
uhci2 at pci0 dev 29 function 2 Intel 82801DB USB rev 0x01: irq 9
ehci0 at pci0 dev 29 function 7 Intel 82801DB USB rev 0x01: irq 11
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb1 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0x81
pci2 at ppb1 bus 2
cbb0 at pci2 dev 0 function 0 TI PCI4520 CardBus rev 0x01: irq 5
cbb1 at pci2 dev 0 function 1 TI PCI4520 CardBus rev 0x01: irq 5
em0 at pci2 dev 1 function 0 Intel PRO/1000MT (82540EP) rev 0x03: irq 5, addre
ss 00:11:25:b1:ab:3b
ath0 at pci2 dev 2 function 0 Atheros AR5212 (IBM MiniPCI) rev 0x01: irq 9
ath0: AR5213 5.9 phy 4.3 rf5112a 3.6, WOR2W, address 00:0e:9b:c6:8b:16
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 3 device 0 cacheline 0x8, lattimer 0xb0
pcmcia0 at cardslot0
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 6 device 0 cacheline 0x8, lattimer 0xb0
pcmcia1 at cardslot1
ichpcib0 at pci0 dev 31 function 0 Intel 82801DBM LPC rev 0x01: 24-bit timer a
t 3579545Hz
pciide0 at pci0 dev 31 function 1 Intel 82801DBM IDE rev 0x01: DMA, channel 0
configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: HTS541080G9AT00
wd0: 16-sector PIO, LBA, 76319MB, 156301488 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets, initiator 7
cd0 at scsibus0 targ 0 lun 0: HL-DT-ST, RW/DVD GCC-4242N, 0201 ATAPI 5/cdrom r
emovable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
ichiic0 at pci0 dev 31 function 3 Intel 82801DB SMBus rev 0x01: irq 5
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 1GB DDR SDRAM non-parity PC2700CL2.5
spdmem1 at iic0 addr 0x51: 1GB DDR SDRAM non-parity 

Re: ssh_exchange_identification: Connection closed by remote host

2008-05-20 Thread Maxim Belooussov
Hi,

 when I try to remotely ssh connect to a OpenBSD 4.3 box via port 80 I get:

Not enough info, but in case you are trying to ssh into box as root,
you will most probably fail. Root login is disabled by default in
OpenBSD.

Maxim



-current and rthreads

2008-05-02 Thread Maxim Belooussov
Hi all,

How to enable rthreads in -current?

Old way with RTHREADS kernel option and ln -s librthread doesn't work anymore.

Maxim



Re: -current and rthreads

2008-05-02 Thread Maxim Belooussov
Hi,

How to enable rthreads in -current?
  
Old way with RTHREADS kernel option and ln -s librthread doesn't work 
 anymore.

  Are you trying to make it hard to help you?  Imprecise description of
  what you did; *no* description of how the results differ from your
  expectations.

My apologies for not providing enough information.

I have 2 computers, thinkpad T42 (i386) and sun ultra 10 (sparc64).
Both are running current. I've tried to check in the kernel
configuration files (GENERIC) where I can enable RTHREADS option, but
couldn't find one.

$ uname -a
OpenBSD ultra.home.lan 4.3 GENERIC#1614 sparc64
$
# find / -name librthre*
/usr/src/lib/librthread
#

The goal of my exercise is to check how much more responsive RTHREADS
is vs PTHREADS scheduler on network level (i.e. shorter ping
_response_ times, etc).
  (I use rthreads myself for a few programs, though I had to patch a
  number of bugs in the kernel support and librthread to make it stable
  and there are still issues when used with several programs.  The patch
  set I use can be found in the archives.)

I have tried to apply the patch to fresh source, only to see all 5 steps fail.

-
Patching file lib/librthread/rthread_sync.c using Plan A...
Hunk #1 failed at 53.
Hunk #2 failed at 60.
Hunk #3 failed at 83.
Hunk #4 failed at 437.
Hunk #5 failed at 446.
5 out of 5 hunks failed--saving rejects to lib/librthread/rthread_sync.c.rej
done
#

Thanks for any cluesticks in advance,

Maxim



Re: -current and rthreads

2008-05-02 Thread Maxim Belooussov
Hi Philip, Chris,

  if it's not listed in GENERIC (even commented out) we don't really
  think it's ready to use. At all. If you do feel like testing (and
  maybe, just maybe, melting your entire system) ... it's not that hard
  to copy the GENERIC config and add RTHREADS. it's just another
  option.
This is for pure testing purposes, nothing more implied.



The goal of my exercise is to check how much more responsive RTHREADS
is vs PTHREADS scheduler on network level (i.e. shorter ping
_response_ times, etc).

  not helpful at all. ping replies are handled in kernel.

Under etc. I meant a small java-based internal benchmark set (few
small utilities). Java runs in userspace, as far as I know.

I have tried to apply the patch to fresh source, only to see all 5 steps 
 fail.

  Where did you get the patch from - mail? How did you get it on to your
  system - cut'n'paste? I'm gonna guess you have broken line-endings or
  other whitespace problems. Try patch -lC to ignore whitespace
  changes and test if that applies. If so, maybe re-evaluate the process
  you use for getting patches on to your system.

Ignore whitespace did the trick:

Patching file lib/librthread/rthread_sync.c using Plan A...
Hunk #1 succeeded at 53.
Hunk #2 succeeded at 60.
Hunk #3 succeeded at 83.
Hunk #4 succeeded at 437.
Hunk #5 succeeded at 446.
done
#

That's the cluestick that I'm really thankful for.

I'm happy I've unintentionally made a mess out of my first patching
attempt, 'cause that's the only way to learn (and something to look
and laugh at after some years)! :)

Maxim Belooussov



Re: floppy.fs

2008-03-05 Thread Maxim Belooussov
Hi,

  The main reason I asked is that I have not seen a floppy disk, or drive
  in the past 5 years, so it's interesting to know if others are actually
  using floppies still for this?


Last time (2 months ago) I've used floppy.fs was to dd it to
CompactFlash media for a thin client. There was no other (easier) way
to install, as the box doesn't have floppy drive/cdrom.

Max



Re: Pre-Orders for Limited Edition Puffy the Blowfish

2008-01-07 Thread Maxim Belooussov
 My limited edition version is of me preserved in my beautiful Teak and Glass
 Fish tank. A perfect geek decoration for any user.
 We will only produce a limited quantity of Limited Edition Puffys, with
 Registration Number and Certificate.
 We are inquiring as to pre-orders to determine number quantity of the
 limited edition.

Dead puffy on the wall is not cool. Asking money from the project
who's mascott is a puffy to genocide its mascott is stupid, if not
dangerous.

Max



Re: hardware problem?! strangely ssh error

2007-07-20 Thread Maxim Belooussov

Hi Hagen,
snip


Hope that helps ...

Regards
  Hagen Volpers



Is your sshd-config different/modified? If your ssh client can't talk
to your own ssh daemon, might indicate they don't understand each
other and using different crypto.

Maxim



Re: : ThinkPad T41p suspend is fine from console, hangs from X

2007-07-10 Thread Maxim Belooussov

Hi,


If Linux (or another BSD) manages to handle suspend/resume with X
running, then it''s an OpenBSD bug. If other OSs fail too, then it's
an X.Org driver problem, or a more general problem (BIOS bug, lack of
documentation...).



T42 (with ATI graphics), Linux FC6 fails to handle suspend/resume with
X running.

Maxim



question to Zaurus owners

2007-05-25 Thread Maxim Belooussov

Hi all,

Is it indeed possible to run TomTom navigation software on Zaurus? In
Linux emulation mode?

http://www.zaurus.org.uk/opentom/

http://www.opentom.org/Hardware

http://www.tomtom.com/

Would be quite interesting if it actually works :)

Max



a bit OT question

2007-05-18 Thread Maxim Belooussov

Hi,

Maybe I should ask this in ports@, so it is a bit OT.

Is there a port of 'varnish' for OpenBSD?

Varnish is BSD-licensed reverse-proxy,

http://www.slideshare.net/vishnu/varnish-reverse-proxy/

Maxim



Re: a bit OT question

2007-05-18 Thread Maxim Belooussov

Thanks for all the off-list answers. Looks like varnish uses some
features that OpenBSD doesn't have yet.

For those interested, the correct link is here:

http://varnish.projects.linpro.no/

Max



Re: ImageMagick and chroot

2007-05-17 Thread Maxim Belooussov

Has anyone had luck in making ImageMagick work into the www chroot
environment?


snip


But it still doesn't work. What am i missing?
Any suggestions or ideas are welcome.

Marcos



when I was getting gallery to run under chmoded apache, I got pretty
tired of ldd-ing the files, so I've simply extracted package contents
into chroot (/var/www):

#tar xzvf ~/ImageMagick-6.3.2.1-no_x11.tgz  -C /var/www

Don't know how wrong that was, but it worked pretty well - in the end
I only needed a couple of shared libs that were missing. The script is
a cleaner solution, though.

By the way, gallery2 works pretty well with GD php plugin, elimitating
the need to use ImageMagic. GD is much slower, though.

Maxim



Re: Ralink pci on spark64?

2007-04-06 Thread Maxim Belooussov

Hi all,


I have compiled a custom kernel based on GENERIC, enabled one line:
ral* on pci?, and the card is recognized and seems to see other
networks as well (ifconfig -M ral0). I'll start measuring transfer
rates soon.


As promised, I've managed to measure the transfer rates, using my
Thinkpad's ath0 card (ibm a/b/g). Ral(4) on Ultra was configured for
WEP, static IP address, on a not-too-busy channel (6).

To measure the rates, I have simply scp-ed a large binary file from
the laptop to the machine.

System under test:
Sun Ultra 10, 512 MB ram, 440 MHz ultra sparc II, ral0 at pci2 dev 2
function 0 Ralink RT2560 card, static ip, no pf, OpenBSD -current
(rebuild from source a couple of days ago), custom kernel based on
GENERIC with ral enabled, WEP with static keys.

Laptop OS   - Transfer rate
OpenBSD 4.0650 KB/s
Linux FC6.0 1 MB/s
WindowsXP  1.4 MB/s

(I've used cygwin ssh under Windows)

Notes:
I think almost everybody knows that OpenBSD ath doesn't work that well
in 11g mode, hence the reduced (but stable) performance.
Fedora Core 6.0 failed to correctly detect that it was actually connected.
WindowsXP transfer rates looked solid.
I've noticed high interrupt cpu usage (37%) on Sun Ultra when copying
the files wirelessly from Linux/Windows. hme(4) NICs use about 10% of
the cpu.

I'm quite happy with the speed - more then enough to browse internet,
and is anyway faster then my ADSL connection. And, proving the point,
ral(4) does work beautifully on sparc64 architecture.

Maxim



Re: Ralink pci on spark64?

2007-04-03 Thread Maxim Belooussov

Hi all,

Thank you for your answers.

My Ralink is Edimax EW-7128g model, ral(4). I've upgraded the Ultra to
latest snapshot, and will try to compile a new kernel with ralink
drivers this week (and will post both dmesg from GENERIC and the new
kernel).

Maxim

On 4/1/07, Claudio Jeker [EMAIL PROTECTED] wrote:

On Sun, Apr 01, 2007 at 08:47:13AM +1000, Jonathan Gray wrote:
 On Sat, Mar 31, 2007 at 04:12:20PM +0200, Maxim Belooussov wrote:
  Hi,
 
  I plan to turn my Sun Ultra 10 into a firewall/access point using a
  supported Ralink PCI card. But I see on this page
  http://www.openbsd.org/sparc64.html#hardware that Ralink PCI is not
  supported by the port.
 
  ral man page says that some cards are fuzzy about PCI 2.2, and my Sun
  Ultra with psycho bus probably doesn't have PCI 2.2. Is this the
  reason?
 
  Maxim

 Most Ralink cards are 3.3v only, which means your Ultra 10
 probably isn't going to work, this is what the note is about.

 No one with the relevant Ralink hardware has a new enough
 sparc64 to play with to see if it works, so it is not
 enabled in the default sparc64 GENERIC kernel.


Btw. last time I tested my ral(4) card in an Ultra 10 it did not work.
That was about a year ago. I will retry it next week and probably I can
find the issues.

--
:wq Claudio




Re: Ralink pci on spark64?

2007-04-03 Thread Maxim Belooussov

On 4/3/07, Maxim Belooussov [EMAIL PROTECTED] wrote:

Hi all,

Thank you for your answers.

My Ralink is Edimax EW-7128g model, ral(4). I've upgraded the Ultra to
latest snapshot, and will try to compile a new kernel with ralink
drivers this week (and will post both dmesg from GENERIC and the new
kernel).

Maxim

On 4/1/07, Claudio Jeker [EMAIL PROTECTED] wrote:
 On Sun, Apr 01, 2007 at 08:47:13AM +1000, Jonathan Gray wrote:
  On Sat, Mar 31, 2007 at 04:12:20PM +0200, Maxim Belooussov wrote:
   Hi,
  
   I plan to turn my Sun Ultra 10 into a firewall/access point using a
   supported Ralink PCI card. But I see on this page
   http://www.openbsd.org/sparc64.html#hardware that Ralink PCI is not
   supported by the port.
  
   ral man page says that some cards are fuzzy about PCI 2.2, and my Sun
   Ultra with psycho bus probably doesn't have PCI 2.2. Is this the
   reason?
  
   Maxim
 
  Most Ralink cards are 3.3v only, which means your Ultra 10
  probably isn't going to work, this is what the note is about.
 
  No one with the relevant Ralink hardware has a new enough
  sparc64 to play with to see if it works, so it is not
  enabled in the default sparc64 GENERIC kernel.
 

 Btw. last time I tested my ral(4) card in an Ultra 10 it did not work.
 That was about a year ago. I will retry it next week and probably I can
 find the issues.

 --
 :wq Claudio






Success! All Sun Ultra 10 owners, rejoice! :)

Thank you all who responsed for helpful tips.

Documentation on
http://developers.sun.com/solaris/developer/support/driver/IO_kit/docs/pci-bus-sun-ultra.pdf
told me that Sun Ultra 10 had correct 3.3/5v pci-bus support, so the
card would work if configured.

I have compiled a custom kernel based on GENERIC, enabled one line:
ral* on pci?, and the card is recognized and seems to see other
networks as well (ifconfig -M ral0). I'll start measuring transfer
rates soon.

Dmesg follow - first one is for 'GENERIC' kernel, the other is for my
custom kernel with ral(4) enabled:

$ cat dmesg
dmesg.with.ralink.generic   dmesg2
at dmesg.with.ralink.generic new.dmesg
console is keyboard/display
Copyright (c) 1982, 1986, 1989, 1991, 1993
   The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2007 OpenBSD. All rights reserved.  http://www.OpenBSD.org

OpenBSD 4.1-current (GENERIC) #1113: Tue Mar 27 15:38:22 MDT 2007
   [EMAIL PROTECTED]:/usr/src/sys/arch/sparc64/compile/GENERIC
total memory = 536870912
avail memory = 479576064
using 3276 buffers containing 26836992 bytes of memory
bootpath: /[EMAIL PROTECTED],0/[EMAIL PROTECTED],1/[EMAIL PROTECTED],0/[EMAIL 
PROTECTED],0
mainbus0 (root): Sun Ultra 5/10 UPA/PCI (UltraSPARC-IIi 440MHz)
cpu0 at mainbus0: SUNW,UltraSPARC-IIi (rev 9.1) @ 440 MHz, version 0 FPU
cpu0: physical 16K instruction (32 b/l), 16K data (32 b/l), 2048K
external (64 b/l)
psycho0 at mainbus0 addr 0xfffc4000: SUNW,sabre, impl 0, version 0, ign 7c0
psycho0: bus range 0-2, PCI bus 0
psycho0: dvma map c000-dfff, iotdb 126a2000-12722000
pci0 at psycho0
ppb0 at pci0 dev 1 function 1 Sun Simba PCI-PCI rev 0x13
pci1 at ppb0 bus 1
ebus0 at pci1 dev 1 function 0 Sun PCIO EBus2 rev 0x01
auxio0 at ebus0 addr 726000-726003, 728000-728003, 72a000-72a003,
72c000-72c003, 72f000-72f003
power0 at ebus0 addr 724000-724003 ipl 37
SUNW,pll at ebus0 addr 504000-504002 not configured
sab0 at ebus0 addr 40-40007f ipl 43: rev 3.2
sabtty0 at sab0 port 0
sabtty1 at sab0 port 1
comkbd0 at ebus0 addr 3083f8-3083ff ipl 41: layout 34
wskbd0 at comkbd0: console keyboard
com0 at ebus0 addr 3062f8-3062ff ipl 42: mouse: ns16550a, 16 byte fifo
lpt0 at ebus0 addr 3043bc-3043cb, 30015c-30015d, 70-7f ipl 34: polled
fdthree at ebus0 addr 3023f0-3023f7, 706000-70600f, 72-720003
ipl 39 not configured
clock1 at ebus0 addr 0-1fff: mk48t59
flashprom at ebus0 addr 0-f not configured
audioce0 at ebus0 addr 20-2000ff, 702000-70200f, 704000-70400f,
722000-722003 ipl 35 ipl 36: nvaddrs 0
audio0 at audioce0
hme0 at pci1 dev 1 function 1 Sun HME rev 0x01: ivec 0x7e1, address
08:00:20:ff:cb:21
nsphy0 at hme0 phy 1: DP83840 10/100 PHY, rev. 1
vgafb0 at pci1 dev 2 function 0 ATI Mach64 GP rev 0x5c
wsdisplay0 at vgafb0: console (std, sun emulation), using wskbd0
pciide0 at pci1 dev 3 function 0 CMD Technology PCI0646 rev 0x03:
DMA, channel 0 configured to native-PCI, channel 1 configured to
native-PCI
pciide0: using ivec 0x7e0 for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: ST320420A
wd0: 16-sector PIO, LBA, 19458MB, 39851760 sectors
wd1 at pciide0 channel 0 drive 1: WDC WD800BB-75CAA0
wd1: 16-sector PIO, LBA, 76293MB, 15625 sectors
wd0(pciide0:0:0): using PIO mode 4, DMA mode 2
wd1(pciide0:0:1): using PIO mode 4, DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 1
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: LG, CD-ROM CRD-8483B, 1.01 SCSI0
5/cdrom removable
cd0(pciide0:1:1): using PIO mode 4, DMA mode 2

Ralink pci on spark64?

2007-03-31 Thread Maxim Belooussov

Hi,

I plan to turn my Sun Ultra 10 into a firewall/access point using a
supported Ralink PCI card. But I see on this page
http://www.openbsd.org/sparc64.html#hardware that Ralink PCI is not
supported by the port.

ral man page says that some cards are fuzzy about PCI 2.2, and my Sun
Ultra with psycho bus probably doesn't have PCI 2.2. Is this the
reason?

Maxim