Re: MSI K9N6GM vs. ASUS m2a-vm and 4.2

2007-12-29 Thread Pawel Veselov
Hi,

Since I kinda needed a stable system, I switched to MSI K9N6GM,
that has NVIDIA MCP61 chipset.

It doesn't at all support AHCI (not that I can tell), but IDE access for SATA
is supported in DMA mode (UDMA5).

nfe interface also seems to be working.

I get 70-80 MBps according to 'dd' (iostat only shows 32MBps)

What is the good rate that can actually be achieved on 3Gbps drives?

And I still get those no compatible PCI ICU found and
unable to fix up PCI interrupts routing messages...
It was suggested that these messages can be ignored...

On Dec 29, 2007 4:32 AM, Peter Strvmberg [EMAIL PROTECTED] wrote:
 On 28 Dec 2007 at 21:29, Pawel Veselov wrote:

  Hi,
 
  Just had some experience installing 4.2 on ASUS m2a-vm... Wasn't
pleasant.

 Try -current, it will work better, with some gotchas thou.

  3Gbs drive shows max of 0.2MBs tranfer rate (according to iostat). My
  old drive shows appx 30MB on IDE bus. Tested using dd if=/dev/zero
  of=file. Any disk access takes forever.
 The drive is in pio-mode

I couldn't find a way to switch it into DMA mode...


  Selecting SATA interface as AHCI doesn't work (doesn't show up, or
  reboots the system when discovery attepmted).

 In -current you can install to ahci/sata, but then generic doesn't boot.
 You need to boot -c and disable ahci, change fstab to wd and then compile
 a kernel with a KASSERT removed (in dev/pci/ahci.c, line 1757)
 Change fstab again, and reboot. You'll get some ahci warnings, but it will
work
[ skipped ]
 Other quirks, the radeonhd driver doesn't work if you (only) use a dvi
cable.
 With an vga and a dvi cable you can run X

Well, I was mostly venting here, it's great current supports all this
better, but I'd like some peace for this box :)

OpenBSD 4.2 (GENERIC.MP) #252: Tue Aug 28 10:53:04 MDT 2007
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: AMD Athlon(tm) 64 X2 Dual Core Processor 4800+ (AuthenticAMD
686-class, 512KB L2 cache) 2.42 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16
real mem  = 2079748096 (1983MB)
avail mem = 2003210240 (1910MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 11/29/06, BIOS32 rev. 0 @
0xf0010, SMBIOS rev. 2.5 @ 0xfbda0 (48 entries)
bios0: vendor American Megatrends Inc. version V1.5 date 11/29/2006
bios0: MSI MS-7309
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 30102 dobusy 0 doidle 1
pcibios0 at bios0: rev 3.0 @ 0xf/0x1
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf5100/272 (15 entries)
pcibios0: no compatible PCI ICU found: ICU vendor 0x10de product 0x03e0
pcibios0: Warning, unable to fix up PCI interrupt routing
pcibios0: PCI bus #4 is the last bus
bios0: ROM list: 0xc/0xee00
mainbus0: Intel MP Specification (Version 1.4)
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 200 MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD Athlon(tm) 64 X2 Dual Core Processor 4800+ (AuthenticAMD
686-class, 512KB L2 cache) 2.42 GHz
cpu1:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16
mainbus0: bus 0 is type PCI
mainbus0: bus 1 is type PCI
mainbus0: bus 2 is type PCI
mainbus0: bus 3 is type PCI
mainbus0: bus 4 is type PCI
mainbus0: bus 5 is type ISA
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 11, 24 pins
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
NVIDIA MCP61 Memory rev 0xa1 at pci0 dev 0 function 0 not configured
pcib0 at pci0 dev 1 function 0 NVIDIA MCP61 ISA rev 0xa2
nviic0 at pci0 dev 1 function 1 NVIDIA MCP61 SMBus rev 0xa2
iic0 at nviic0
iic1 at nviic0
iic1: addr 0x2f 00=c0 01=0f 02=00 03=01 04=07 05=00 06=18 07=00 08=00
14=14 15=62 16=02 17=05
NVIDIA MCP61 Memory rev 0xa2 at pci0 dev 1 function 2 not configured
ohci0 at pci0 dev 2 function 0 NVIDIA MCP61 USB rev 0xa2: apic 2 int
5 (irq 5), version 1.0, legacy support
ehci0 at pci0 dev 2 function 1 NVIDIA MPC61 USB rev 0xa2: apic 2 int
10 (irq 10)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0: NVIDIA EHCI root hub, rev 2.00/1.00, addr 1
ppb0 at pci0 dev 4 function 0 NVIDIA MCP61 rev 0xa1
pci1 at ppb0 bus 1
skc0 at pci1 dev 9 function 0 D-Link Systems DGE-530T B1 rev 0x11,
Yukon Lite(0x9): apic 2 int 10 (irq 10)
sk0 at skc0 port A: address 00:15:e9:bd:30:88
eephy0 at sk0 phy 0: Marvell 88E1011 Gigabit PHY, rev. 5
rl0 at pci1 dev 10 function 0 Realtek 8139 rev 0x10: apic 2 int 11
(irq 11), address 00:0e:2e:5b:45:90
rlphy0 at rl0 phy 0: RTL internal PHY
azalia0 at pci0 dev 5 function 0 NVIDIA MCP61 HD Audio rev 0xa2:
apic 2 int 11 (irq 11)
azalia0: host: High Definition Audio rev. 1.0
azalia0: codec: Realtek ALC883 (rev. 0.2), HDA version 1.0
audio0 at azalia0
pciide0 at pci0 dev 6 function 0 NVIDIA MCP61 IDE rev 0xa2: DMA,
channel 0 configured to compatibility, channel 1 configured to
compatibility
wd0 at pciide0 channel 0 drive 0: HDS722525VLAT80
wd0: 16-sector PIO, LBA48, 238475MB, 488397168

ASUS m2a-vm and 4.2

2007-12-28 Thread Pawel Veselov
Hi,

Just had some experience installing 4.2 on ASUS m2a-vm... Wasn't pleasant.

3Gbs drive shows max of 0.2MBs tranfer rate (according to iostat). My
old drive shows appx 30MB on IDE bus. Tested using dd if=/dev/zero
of=file. Any disk access takes forever.

Selecting SATA interface as AHCI doesn't work (doesn't show up, or
reboots the system when discovery attepmted).

Installing 64bit version reboots the installer at the time disks were accessed.

There seem to be some problems with built-in card, as in it won't send
any packets, at least with 10MB media (re driver).

Dunno if I'm doing something wrong, but I'm shutting it down and
trying an NVidea based one instead.

Thanks,
  Pawel.

OpenBSD 4.2 (GENERIC) #375: Tue Aug 28 10:38:44MDT 2007
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD Athlon(tm) 64 X2 Dual Core Processor 4800+ (AuthenticAMD
686-class, 512KB L2 cache) 2.51 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16
real mem  = 2011656192 (1918MB)
avail mem = 1937293312 (1847MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 03/07/07,BIOS32 rev. 0 @
0xf1d90, SMBIOS rev. 2.4 @ 0xf (58 entries)
bios0: vendor Phoenix Technologies, LTD version ASUS M2A-VM ACPI BIOS
Revision 0302 date 03/07/2007
bios0: ASUSTeK Computer INC. M2A-VM
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 70102 dobusy 1 doidle 1
pcibios0 at bios0: rev 3.0 @ 0xf/0xdc54
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdb40/272 (15 entries)
pcibios0: bad IRQ table checksum
pcibios0: PCI BIOS has 15 Interrupt Routing table entries
pcibios0: PCI Exclusive IRQs: 3 5 10 11
pcibios0: no compatible PCI ICU found
pcibios0: Warning, unable to fix up PCI interrupt routing
pcibios0: PCI bus #3 is the last bus
bios0: ROM list: 0xc/0xd400
cpu0 at mainbus0
cpu0: PowerNow! K8 2501 MHz: speeds: 2500 2400 2200 2000 1800 1000 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 vendor ATI, unknown product 0x7910 rev 0x00
ppb0 at pci0 dev 1 function 0 vendor ATI, unknown product 0x7912 rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 5 function 0 vendor ATI, unknown product 0x791e rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ppb1 at pci0 dev 7 function 0 vendor ATI, unknown product 0x7917 rev 0x00
pci2 at ppb1 bus 2
re0 at pci2 dev 0 function 0 Realtek 8168 rev 0x01: RTL8168 2
(0x3800), irq 5, address 00:1b:fc:1a:20:21
rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 2
pciide0 at pci0 dev 18 function 0 ATI IXP600 SATA rev 0x00: DMA
(unsupported), channel 0 configured to native-PCI, channel 1
configured to native-PCI
pciide0: using irq 11 for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: Hitachi HDS721075KLA330
wd0: 16-sector PIO, LBA48, 715404MB, 1465149168 sectors
pciide0: channel 1 ignored (not responding; disabled or no drives?)
ohci0 at pci0 dev 19 function 0 ATI IXP600 USB rev 0x00: irq 11,
version 1.0, legacy support
ohci1 at pci0 dev 19 function 1 ATI IXP600 USB rev 0x00: irq 10,
version 1.0, legacy support
ohci2 at pci0 dev 19 function 2 ATI IXP600 USB rev 0x00: irq 3,
version 1.0, legacy support
ohci3 at pci0 dev 19 function 3 ATI IXP600 USB rev 0x00: irq 10,
version 1.0, legacy support
ohci4 at pci0 dev 19 function 4 ATI IXP600 USB rev 0x00: irq 3,
version 1.0, legacy support
ehci0 at pci0 dev 19 function 5 ATI IXP600 USB2  rev 0x00: irq 5
usb0 at ehci0: USB revision 2.0
uhub0 at usb0: ATI EHCI root hub, rev 2.00/1.00,addr 1
piixpm0 at pci0 dev 20 function 0 ATI IXP600 SMBus rev 0x13: SMI
iic0 at piixpm0
pciide1 at pci0 dev 20 function 1 ATI IXP600 IDE rev 0x00: DMA,
channel 0 configured to compatibility, channel 1 wired to
compatibility
azalia0 at pci0 dev 20 function 2 ATI IXP600 HD Audio rev 0x00: irq 11
azalia0: host: High Definition Audio rev. 1.0
azalia0: codec: Realtek ALC883 (rev. 0.2), HDA version 1.0
audio0 at azalia0
pcib0 at pci0 dev 20 function 3 ATI IXP600 LPC rev 0x00
ppb2 at pci0 dev 20 function 4 ATI IXP600 PCI rev 0x00
pci3 at ppb2 bus 3
rl0 at pci3 dev 5 function 0 Realtek 8139 rev 0x10: irq 10, address
00:0e:2e:5b:45:90
rlphy0 at rl0 phy 0: RTL internal PHY
pchb1 at pci0 dev 24 function 0 AMD AMD64 Hyper Transport rev 0x00
pchb2 at pci0 dev 24 function 1 AMD AMD64 Addre ss Map rev 0x00
pchb3 at pci0 dev 24 function 2 AMD AMD64 DRAM Cfg rev 0x00
pchb4 at pci0 dev 24 function 3 AMD AMD64 Misc Cfg rev 0x00
usb1 at ohci0: USB revision 1.0
uhub1 at usb1: ATI OHCI root hub, rev 1.00/1.00, addr 1
usb2 at ohci1: USB revision 1.0
uhub2 at usb2: ATI OHCI root hub, rev 1.00/1.00, addr 1
usb3 at ohci2: USB revision 1.0
uhub3 at usb3: ATI OHCI root hub, rev 1.00/1.00, addr 1
usb4 at ohci3: USB revision 1.0
uhub4 at usb4: ATI OHCI root hub, rev 1.00/1.00,
usb5 at ohci4: USB revision 1.0
uhub5 at usb5: ATI OHCI root hub, rev 1.00/1.00, addr 1
isa0 at pcib0
isadma0 at isa0

Adding another facility to ktrace - syscall arguments

2007-11-17 Thread Pawel Veselov
Hello,

It's somewhat bothersome that ktrace doesn't dump the actual values for the
structures that were passed in as the arguments to a syscall. All you see are
addresses, and may be you can see some translated to names, but that's about
it. It would be nice if one can see inside the actual structures, which would be
operation specific.

Would it be reasonable to add another facility, define the structures for
ktr_header.ktr_buf, to be able to accommodate arbitrary structures and the
definitions of such, and then start instrumenting the syscalls, where feasible,
to dump their arguments into trace stream ?

Thanks,
  Pawel.

P.S. Not sure this is the right alias for this kind of discussions...



Support for 3ware 3W 8x00 (8006-2LP) in 4.2

2007-11-16 Thread Pawel Veselov
Hi,

I was wondering if the 3ware 8006-2LP is supported in 4.2.
The http://www.openbsd.org/i386.html page only lists 5x00, 6x00 and 7x00
as supported devices, but the man page says that 8000 is supported as well.

(just trying to find a cheap SATA hardware raid card...)

Thanks !
  Pawel.



Java problems on 4.1

2007-10-25 Thread Pawel Veselov
Since some time ago it became impossible to run JVMs on my 4.1 box. I can't
seem to figure out what's wrong, probably something easy and stupid...


[EMAIL PROTECTED] /usr/local/jdk-1.5.0/bin/java
[1] 28689
[EMAIL PROTECTED] #
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  Internal Error (4F533F4253440E4350500060), pid=28689, tid=0x7cfba000
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0-p1-_24_oct_2006_19_53 mixed
mode, )
# An error report file with more information is saved as hs_err_pid28689.log

[EMAIL PROTECTED] kill -9 %1
[EMAIL PROTECTED] ## at this point, process becomes irresponsive
[1]+  Killed  /usr/local/jdk-1.5.0/bin/java

[EMAIL PROTECTED] cat hs_err_pid28689.log
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  Internal Error (4F533F4253440E4350500060), pid=28689, tid=0x7cfba000
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0-p1-_24_oct_2006_19_53 mixed
mode, )

---  T H R E A D  ---

Current thread (0x85818a00):  JavaThread  [_thread_in_vm]

Stack: [0xcf40,0xcf80)
[error occurred during error reporting, step 110, id 0xb]

[EMAIL PROTECTED]
Let me know if dmesg, or ktrace output is can be helpful... 1.4 fails almost
the same way, 1.3 dumps a core. 1.3-linux seems to work, but fails with OOM
on attempting to allocate a 32k array, and ulimit -v is ~512Mb

This is with latest ports for JDKs and redhat-base.

Thanks !

-- 
With best of best regards
Pawel S. Veselov



Brother HL-5250DN printer w/OpenBSD

2007-10-16 Thread Pawel Veselov
Hello,

I spent some time picking a relatively cheap printer that I can also use
with OpenBSD, and finally got a Brother HL-5250DN, that can connect over
ethernet and has duplex printing. I put together an instruction sheet at
http://manticore.2y.net/hl5250dn.html, if anyone's interested.

Thanks,
  Pawel.

-- 
With best of best regards
Pawel S. Veselov



Re: Brother HL-5250DN printer w/OpenBSD

2007-10-16 Thread Pawel Veselov
Hi,

The processing filter for the printer is a pre-compiled Linux binary.
The GPL license is because of Brother CUPS and LPD drivers.

Thanks,
  Pawel.


On 10/16/07, Predrag Punosevac [EMAIL PROTECTED] wrote:

 Pawel Veselov wrote:
  Hello,
 
  I spent some time picking a relatively cheap printer that I can also use
  with OpenBSD, and finally got a Brother HL-5250DN, that can connect over
  ethernet and has duplex printing. I put together an instruction sheet at
  http://manticore.2y.net/hl5250dn.html, if anyone's interested.
 
  Thanks,
Pawel.
 
 
 Forgive me for saying this but I just do not get it. Why did you need to
 use Linux compatibility layer when CUPS is
 OpenBSD packages?

 cups-1.2.7.tgz

 1. Install cups

 2. Use the default cupsd.conf that came with the package

 3. Ran the following two commands

 /usr/local/sbin/cupsd -c /etc/cups/cupsd.conf
 /usr/local/sbin/cups-enable


 That is to hide native commands for lpd. Note lpd daemon is off by
 default anyway

 4. Adjust permissions since the CUPS daemon is not supper user. (For
 example for my locally attached printer chmod 0666 /dev/lpt0 )

 5. Start cups daemon

 6. Go to http://localhost:631 for a printer administration

 7. Rest is self explanatory. When directed to download PPD file go to
 http://www.linux-foundation.org/en/OpenPrinting
 to get  the one you  need.



 Why is your how to released under GPL license? Because of CUPS license?




-- 
With best of best regards
Pawel S. Veselov