Re: pf prio queue not setting vlan prio value?

2016-05-30 Thread Alexey Suslikov
Sebastian Reitenbach  l00-bugdead-prods.de> writes:

> With tcpdump, I see 'pri 0' on all the packets captured:
> 
> tcpdump -n -i trunk0 -vvv vlan 8 and net 10.1.0.0/24
> 11:18:13.132570 802.1Q vid 8 pri 0 10.1.0.2 > 10.1.0.1: icmp: echo reply
> (id:6221 seq:0) [icmp cksum ok] (ttl 64, id 11179, len 84)
> 11:18:14.138835 802.1Q vid 8 pri 0 10.1.0.2 > 10.1.0.1: icmp: echo reply
> (id:6221 seq:1) [icmp cksum ok] (ttl 64, id 11180, len 84)
> 11:18:15.129273 802.1Q vid 8 pri 0 10.1.0.2 > 10.1.0.1: icmp: echo reply
> (id:6221 seq:2) [icmp cksum ok] (ttl 64, id 11181, len 84)

You are not showing *all* packets captured, but only incoming ones
(I assume you are pinging *from* the box, so echo replies are incoming).

prio to vlan pri translation only applies to outgoing packets. Incoming
packets will have vlan pri values set by a transmitter (or intermediate
equipment, like switches).



Re: Firefox W^X isn't a part of Pwn2Own contest

2016-02-17 Thread Alexey Suslikov
David Coppa  gmail.com> writes:

> Il 17/feb/2016 14:52, "Lampshade"  poczta.fm> ha scritto:
> >
> > Does original Firefox compiled by Mozilla running on Windows
> > have W^X? I bet: no, it doesn't.
> 
> Not until Firefox 46.

It *is* already in Nightly builds (but too hard for big guys
to cope with; they don't even mention, in the press release,
a progress made - that's the point).



Firefox W^X isn't a part of Pwn2Own contest

2016-02-17 Thread Alexey Suslikov
Made my day.

http://www.eweek.com/security/pwn2own-hacking-contest-returns-as-joint-hpe-
trend-micro-effort.html

Quote:

One change in the 2016 event is that the Mozilla Firefox Web browser
is no longer part of the contest.

"We wanted to focus on the browsers that have made serious security 
improvements in the last year".



Re: Is true that the BSD developers were inspired to make their code free software by the example of the GNU Project, and explicit appeals from GNU activists helped persuade them?

2016-02-16 Thread Alexey Suslikov
Jorge Luis  gmail.com> writes:

> Is true that the BSD developers were inspired to make their code free
> software by the example of the GNU Project, and explicit appeals from GNU
> activists helped persuade them?
> 
> If no, what is the true story of BSD developers?

http://www.openbsd.org/lyrics.html#44



Re: Is a gmail/text-flow dmesg better than no dmesg?

2015-12-30 Thread Alexey Suslikov
ropers  gmail.com> writes:

> It says here  that one
> should not send dmesg   mail that's text-flow reformatted (which I
> AFAIK gmail always does, unavoidably).

it does, but only if you use web/mobile clients. there is no reformat if
you use smtp directly (not compatible with 2-factor auth).

posting to lists using gmane also works.



Re: audio capturing

2015-12-29 Thread Alexey Suslikov
Alexandre Ratchov  caoua.org> writes:

> > i want to capture with ffmpeg from dosbox (no, internal dosbox capture
> > don't need)
> 
> you could expose a device that monitors what programs play:
> 
> sndiod_flags="-s default -m play,mon -s mon"

doesn't dosbox port only support midi via sndio?



Re: Azalia Volume Too Quiet

2015-11-19 Thread Alexey Suslikov
Daniel Wilkins wrote:

> inputs.dac-0:1=150,150
> inputs.dac-2:3=150,150
> inputs.mix_spkr2=248,248
> inputs.mix_spkr3=248,248
> inputs.spkr2=255,255
> outputs.spkr2_dir=output
> inputs.spkr3=255,255
> outputs.spkr3_dir=output
> outputs.master.slaves=dac-0:1,dac-2:3,spkr,hp,spkr2,spkr3

2 volume controls in output path (at least). You probably may try
to limit volume control to DACs

outputs.master.slaves=dac-0:1,dac-2:3

and max out everything else in output path. Or

outputs.master.slaves=spkr,hp

and max out everything else in output path (including DACs).



Re: Supermicro X8SIL-F ipmi and lm issue

2015-10-13 Thread Alexey Suslikov
Atanas Vladimirov  bsdbg.net> writes:

> I observe strange behavior with Supermicro X8SIL-F. Latest BIOS and IPMI 
> firmware.
> Only one FAN is present (CPU FAN).
> After some time of normal work IPMI start to report errors with one (or 
> more) fans (low speed or not present).
> 'systat sensors' shows wrong or missing data for same fan.
> I tryed to disable lm after reading [0] and it works for me.
> Can this be ACPI related?

known issue. there's some sort of malfunction with wbsio/wbng and
maybe others. if sensors chip is iic-based even weirder things can
happen.

http://thread.gmane.org/gmane.os.openbsd.tech/21491/



Re: ugen0 instead of urtwn0

2015-09-21 Thread Alexey Suslikov
Thuban  yeuxdelibad.net> writes:

> * Fred  crowsons.com> le [21-09-2015 11:50:27 +0100]:
> > You could back port the relevant changes to 5.7 and build a new kernel
> > following the information in http://www.openbsd.org/faq/faq5.html
> >
> > -current is currently ahead of 5.8 which will be released on the 18
> October.
> 
> Thanks for the answer.
> I never back ported on openbsd before. Where can I find any relevant
> documentation do do this before building the kernel?

Grab relevant

src/sys/dev/usb/if_urtwn.c
sys/dev/usb/usbdevs

from CVS, than cd sys/dev/usb && make, than rebuild/install kernel
as described in FAQ.



Re: urtwn driver has problems

2015-09-20 Thread Alexey Suslikov
Peter Hessler  theapt.org> writes:

> 
> On 2015 Sep 19 (Sat) at 20:26:02 + (+), Alexey Suslikov wrote:
> :Stuart Henderson  spacehopper.org> writes:
> : 
> :> On 2015-09-18, Alexey Suslikov  gmail.com> wrote:
> :> > I think you should try 5.8, there was stability fixes in urtwn(4).
> :> 
> :> 5.8 hasn't been released yet.
> :
> :How about "Various stability fixes for urtwn(4) driver" in 58.html then?
> :
> 
> How about "To be released Oct 18, 2015" in 58.html then?

Given the fact of absence of any mentions of urtwn(4) in 58.html,
you get the idea right, Peter. Love OpenBSD so called meritocracy
again: drop tech stuff, whine about chatty users.

And, btw, good way to "attract" people having problem: wait for
release date.



Re: audio codec RealTek ALC3263

2015-09-19 Thread Alexey Suslikov
Remi Locherer  relo.ch> writes:

> 
> On Sat, Sep 19, 2015 at 08:31:24PM +0000, Alexey Suslikov wrote:
> > Remi Locherer  relo.ch> writes:
> > 
> > > My Dell XPS 13 has a RealTek ALC3263 codec (according to the BIOS). In
> > > dmesg only the following shows up:
> > > 
> > > azalia0 at pci0 dev 3 function 0 "Intel Core 5G HD Audio" rev 0x09: 
msi
> > > azalia0: No codecs found
> > 
> > Could you please build a kernel with AUDIO_DEBUG/AZALIA_DEBUG and
> > re-post dmesg?



> azalia0: found a codec at #0
> azalia_init_corb: CORB allocation succeeded.
> azalia_init_corb: CORBWP=0; size=256
> azalia_init_rirb: RIRB allocation succeeded.
> azalia_init_rirb: RIRBRP=0, size=256
> azalia0: RIRB time out
> azalia0: No codecs found

So there is a codec but driver failed to attach it due to "RIRB
time out".

Could you please try to comment out ifdef/endif DIAGNOSTIC (not code
inside!) in azalia.c/azalia_get_response to see if RIRB is running?

(I'm not subscribed to this list, so please mail me directly).



Re: audio codec RealTek ALC3263

2015-09-19 Thread Alexey Suslikov
Remi Locherer  relo.ch> writes:

> My Dell XPS 13 has a RealTek ALC3263 codec (according to the BIOS). In
> dmesg only the following shows up:
> 
> azalia0 at pci0 dev 3 function 0 "Intel Core 5G HD Audio" rev 0x09: msi
> azalia0: No codecs found

Could you please build a kernel with AUDIO_DEBUG/AZALIA_DEBUG and
re-post dmesg?



Re: urtwn driver has problems

2015-09-19 Thread Alexey Suslikov
Stuart Henderson  spacehopper.org> writes:
 
> On 2015-09-18, Alexey Suslikov  gmail.com> wrote:
> > I think you should try 5.8, there was stability fixes in urtwn(4).
> 
> 5.8 hasn't been released yet.

How about "Various stability fixes for urtwn(4) driver" in 58.html then?



Re: urtwn driver has problems

2015-09-18 Thread Alexey Suslikov
Alan Corey  gmail.com> writes:

> I don't know how to document this but my 5.7 laptop about once a week
> has a hard crash when running ifconfig or dhclient on urtwn0.  I have
> to hold down the power switch, turn it off, reboot.

I think you should try 5.8, there was stability fixes in urtwn(4).



Re: Various ACPI problems on various IBM hardware

2015-08-14 Thread Alexey Suslikov
Frederic URBAN frederic.urban at ircad.fr writes:

 We have some ACPI problems with various IBM server X. Since it's a very 
 early panic when kernel boot there is now access to ddb to print the 
 trace. You are prompted to press any key to reboot :) It has been 
 verified on IBM Server x3650 M1, M2 and M3. We are using OpenBSD 5.7, 
 this panic happends with bsd.rd and bsd.mp

You really need to try more -current OpenBSD version. Use a
snapshot for that.

If you still can't boot OpenBSD, please find a way to get
acpidump (from other OS for instance), get screen capture
of OpenBSD kernel stopped booting than submit these to bugs@.



Re: pms0: not in sync yet, discard input (state 0)

2015-06-02 Thread Alexey Suslikov
Joel Rees joel.rees at gmail.com writes:

 
 When I touch the trackpad while running xfce4, the console and the
 dmesg fill up with
 
 pms0: not in sync yet, discard input (state n)

It isn't strictly related to X11 and should now be fixed in -current.

Check out recent snapshot.



Re: help setting up ralink rt3290 compatible wifi drivers?

2015-06-02 Thread Alexey Suslikov
Joel Rees joel.rees at gmail.com writes:

 Care to point me in a general direction in the source tree? ports or
 src, for instance?

Well, I was hacking around src/sys/dev/pci/if_ral_pci.c and
friends.

At first, RT3290 needs different firmware (I do believe I used
Debian package to extract rt3290.bin).

And you need to port other stuff (I passed device detection/
attachment but stuck on firmware loading).



Re: help setting up ralink rt3290 compatible wifi drivers?

2015-06-02 Thread Alexey Suslikov
Joel Rees joel.rees at gmail.com writes:

 
 From my dmesg:
 
 Ralink RT3290 rev 0x00 at pci2 dev 0 function 0 not configured
 Ralink Bluetooth rev 0x00 at pci2 dev 0 function 1 not configured

RT3290 isn't supported.

But you can play with

http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?
id=a89534edaaa7008992b878680490e9b02a665563

(I have tried in the past with no success, but there is
a laptop with RT3290 here so I can test diffs).

Cheers,
Alexey



Re: Atheros AR816X Ethernet Support

2015-03-30 Thread Alexey Suslikov
Atanas Vladimirov vlado at bsdbg.net writes:

 https://www.marc.info/?t=14148214521r=1w=2

Earlier statement still applies: unified diff against -current
to tech@ with cc to usual networking suspects.



Re: Atheros AR816X Ethernet Support

2015-03-30 Thread Alexey Suslikov
On Mon, Mar 30, 2015 at 9:28 PM, Atanas Vladimirov vl...@bsdbg.net wrote:
 On 30.03.2015 21:08, Alexey Suslikov wrote:

 Atanas Vladimirov vlado at bsdbg.net writes:

 https://www.marc.info/?t=14148214521r=1w=2


 Earlier statement still applies: unified diff against -current
 to tech@ with cc to usual networking suspects.


 Hi,
 I didn't ignore your previous statement but my programming skills are
 limited and this was made by o...@openbsd.se ole.hellqv...@openbsd.se.
 If you want I could send a diff to tech@ but nothing more.

yes, please. it is how things work: you post diff to tech@, people test and give
feedback.



Re: ntpd.drift values?

2015-01-13 Thread Alexey Suslikov
Christian Weisgerber naddy at mips.inka.de writes:

 I'm interested in what values people have in their /var/db/ntpd.drift
 files.

cpu0: Intel(R) Pentium(R) CPU 2117U @ 1.80GHz, 1796.23 MHz
5.323365e-06

cpu0: Intel(R) Xeon(R) CPU X3430 @ 2.40GHz, 2394.38 MHz
1.213260e-05

if it is important, how about adding /var/db/ntpd.drift to sendbug?



Re: Nuvoton W83795ADG wrong values

2014-09-09 Thread Alexey Suslikov
Atanas Vladimirov vlado at bsdbg.net writes:

 nvt0 shows wrong values for fan speed and voltage.
 In BIOS values are correct. The motherboard is Supermicro X8STE (dmesg 
 at the end).
 
 Is this a known behavior of nvt sensor/driver?
 
 P.S.: lm1 sensor also shows wrong/different values.

http://article.gmane.org/gmane.os.openbsd.tech/25212



Re: Ethernet port on Lenovo G480

2014-06-19 Thread Alexey Suslikov
Leonardo Santagostini lsantagostini at gmail.com writes:

 pci1 at ppb0 bus 1
 Attansic Technology AR8162 rev 0x10 at pci1 dev 0 function 0 not
 configured

I have

pci3 at ppb2 bus 3 Attansic Technology AR8172 rev 0x10 at pci3 dev 0 
function 0 not configured

More info about supporting these chips
http://lwn.net/Articles/555179/



Re: Intermittent stops in network traffic with urtw interface

2014-02-06 Thread Alexey Suslikov
Brian Curran brian at brianpcurran.com writes:

  when it stops passing traffic, does issuing ifconfig urtw0 scan help?
  
 
 I test this just now and it seemed to help, although I only started
 seeing ping replies about 10 seconds after issuing the scan. There is
 a similar small delay, though usually not as long, when bringing the
 interface down then up.
 
 Also maybe of note is that the status of the interface as reported by
 ifconfig remains active when it is not receiving any traffic.

I have urtwn(4) which also experience intermittent stops
with some Access Points (not all).

Looks like it is common problem for urtw(4) and urtwn(4).



Re: urtw0 wpa2 working on Lemote?

2014-02-05 Thread Alexey Suslikov
Sebastian Reitenbach sebastia at l00-bugdead-prods.de writes:
 Anyways, at work I specify the nwid and the wpakey like this:
 
 ifconfig urtw0 nwid MYID wpakey SECRETKEY up
 
 but status keeps telling me: no network
 however, the manual page tells me that WPA and WPA2 should work.

from ifconfig(8):

wpakey passphrase | hexkey
   Set the WPA key and enable WPA.  The key can be given using
   either a passphrase or a full length hex key, starting with 0x.
   If a passphrase is used the nwid option must be set prior to
   specifying the wpakey option, since ifconfig will hash the nwid
   along with the passphrase to create the key.



Re: Intermittent stops in network traffic with urtw interface

2014-02-05 Thread Alexey Suslikov
Brian Curran brian at brianpcurran.com writes:

 
 Hello,
 
 I have an Alfa AWUS036H USB wi-fi adapter that I am using on OpenBSD
 5.4 amd64. Problem is, sometimes as often as every 15 minutes, the only way 
to
 get the interface to pass traffic is with 'ifconfig urtw0 down 
 ifconfig urtw0 up'. I've monitored the traffic with tcpdump to look for
 a pattern as to when it stops passing traffic, but I have not been able
 to find one.

when it stops passing traffic, does issuing ifconfig urtw0 scan help?



Re: netstat segfault on -current

2013-12-23 Thread Alexey Suslikov
On Tue, Dec 24, 2013 at 12:16 AM, Chris Smith obsd_m...@chrissmith.org wrote:
 On Mon, Dec 23, 2013 at 5:10 PM, Alexey E. Suslikov
 alexey.susli...@gmail.com wrote:
 blind guess - you have kernel and userland out of sync.

 Not so.

It doesn't matter how so: ABI is either in sync, or it is out of sync (hence
the issue). cvs up and rebuild/reinstall netstat.



Re: netstat segfault on -current

2013-12-23 Thread Alexey Suslikov
On Tue, Dec 24, 2013 at 12:26 AM, Jérémie Courrèges-Anglas
j...@wxcvbn.org wrote:
 Alexey Suslikov alexey.susli...@gmail.com writes:

 On Tue, Dec 24, 2013 at 12:16 AM, Chris Smith obsd_m...@chrissmith.org 
 wrote:
 On Mon, Dec 23, 2013 at 5:10 PM, Alexey E. Suslikov
 alexey.susli...@gmail.com wrote:
 blind guess - you have kernel and userland out of sync.

 Not so.

 It doesn't matter how so: ABI is either in sync, or it is out of sync 
 (hence
 the issue). cvs up and rebuild/reinstall netstat.

 This may very well be a real issue, not just another case of
 out-of-sync.

... but *first* cvs up and rebuild/reinstall netstat, right?



Re: GM45 gpu hung error

2013-11-17 Thread Alexey Suslikov
On Sat, Nov 16, 2013 at 5:03 PM, Claudio claudiozu...@gmail.com wrote:
 Unfortunately today I was able to reproduce the issue by simply going to 
 youtube with chromium and browsing around (not even reproducing any video)

To find exact problematic code path, have you considered using
google octane or other browser testing/bencmarking suite?

3D/WebGL benchmarking if you thinking of 3D related issue.


 dmesg:

 OpenBSD 5.4-current (GENERIC.MP) #150: Thu Nov 14 00:30:57 MST 2013
 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
 real mem = 4166717440 (3973MB)
 avail mem = 4047663104 (3860MB)
 mainbus0 at root
 bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (80 entries)
 bios0: vendor LENOVO version 7UET94WW (3.24 ) date 10/17/2012
 bios0: LENOVO 2768HJ2
 acpi0 at bios0: rev 2
 acpi0: sleep states S0 S3 S4 S5
 acpi0: tables DSDT FACP SSDT ECDT APIC MCFG HPET SLIC BOOT ASF! SSDT TCPA 
 DMAR SSDT SSDT SSDT
 acpi0: wakeup devices LID_(S3) SLPB(S3) UART(S3) IGBE(S4) EXP0(S4) EXP1(S4) 
 EXP2(S4) EXP3(S4) EXP4(S4) PCI1(S4) USB0(S3) USB3(S3) USB5(S3) EHC0(S3) 
 EHC1(S3) HDEF(S4)
 acpitimer0 at acpi0: 3579545 Hz, 24 bits
 acpiec0 at acpi0
 acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
 cpu0 at mainbus0: apid 0 (boot processor)
 cpu0: Intel(R) Core(TM)2 Duo CPU P9500 @ 2.53GHz, 2527.39 MHz
 cpu0: 
 FPU,VME,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,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE,NXE,LONG,LAHF,PERF
 cpu0: 6MB 64b/line 16-way L2 cache
 cpu0: smt 0, core 0, package 0
 cpu0: apic clock running at 266MHz
 cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2, IBE
 cpu1 at mainbus0: apid 1 (application processor)
 cpu1: Intel(R) Core(TM)2 Duo CPU P9500 @ 2.53GHz, 2527.00 MHz
 cpu1: 
 FPU,VME,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,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE,NXE,LONG,LAHF,PERF
 cpu1: 6MB 64b/line 16-way L2 cache
 cpu1: smt 0, core 1, package 0
 ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
 ioapic0: misconfigured as apic 2, remapped to apid 1
 acpimcfg0 at acpi0 addr 0xe000, bus 0-63
 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 -1 (EXP2)
 acpiprt5 at acpi0: bus 5 (EXP3)
 acpiprt6 at acpi0: bus 13 (EXP4)
 acpiprt7 at acpi0: bus 21 (PCI1)
 acpicpu0 at acpi0: C3, C2, C1, PSS
 acpicpu1 at acpi0: C3, C2, C1, PSS
 acpipwrres0 at acpi0: PUBS: resource for USB0, USB3, USB5, EHC0, EHC1
 acpitz0 at acpi0: critical temperature is 127 degC
 acpitz1 at acpi0: critical temperature is 100 degC
 acpibtn0 at acpi0: LID_
 acpibtn1 at acpi0: SLPB
 acpibat0 at acpi0: BAT0 model 92P1137 serial25 type LION oem SANYO
 acpibat1 at acpi0: BAT1 not present
 acpiac0 at acpi0: AC unit online
 acpithinkpad0 at acpi0
 acpidock0 at acpi0: GDCK not docked (0)
 cpu0: Enhanced SpeedStep 2527 MHz: speeds: 2534, 2533, 1600, 800 MHz
 pci0 at mainbus0 bus 0
 pchb0 at pci0 dev 0 function 0 Intel GM45 Host rev 0x07
 vga1 at pci0 dev 2 function 0 Intel GM45 Video rev 0x07
 intagp0 at vga1
 agp0 at intagp0: aperture at 0xd000, size 0x1000
 inteldrm0 at vga1
 drm0 at inteldrm0
 inteldrm0: 1440x900
 wsdisplay0 at vga1 mux 1: console (std, vt100 emulation)
 wsdisplay0: screen 1-5 added (std, vt100 emulation)
 Intel GM45 Video rev 0x07 at pci0 dev 2 function 1 not configured
 Intel GM45 HECI rev 0x07 at pci0 dev 3 function 0 not configured
 puc0 at pci0 dev 3 function 3 Intel GM45 KT rev 0x07: ports: 1 com
 com4 at puc0 port 0 apic 1 int 17: ns16550a, 16 byte fifo
 com4: probed fifo depth: 15 bytes
 em0 at pci0 dev 25 function 0 Intel ICH9 IGP M AMT rev 0x03: msi, address 
 00:22:68:12:2d:ef
 uhci0 at pci0 dev 26 function 0 Intel 82801I USB rev 0x03: apic 1 int 20
 uhci1 at pci0 dev 26 function 1 Intel 82801I USB rev 0x03: apic 1 int 21
 uhci2 at pci0 dev 26 function 2 Intel 82801I USB rev 0x03: apic 1 int 22
 ehci0 at pci0 dev 26 function 7 Intel 82801I USB rev 0x03: apic 1 int 23
 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 82801I HD Audio rev 0x03: msi
 azalia0: codecs: Conexant CX20561, Conexant/0x2c06, using Conexant CX20561
 audio0 at azalia0
 ppb0 at pci0 dev 28 function 0 Intel 82801I PCIE rev 0x03: msi
 pci1 at ppb0 bus 2
 ppb1 at pci0 dev 28 function 1 Intel 82801I PCIE rev 0x03: msi
 pci2 at ppb1 bus 3
 iwn0 at pci2 dev 0 function 0 Intel WiFi Link 5300 rev 0x00: msi, MIMO 
 3T3R, MoW, address 00:21:6a:63:9e:ca
 ppb2 at pci0 dev 28 function 3 Intel 82801I PCIE rev 0x03: msi
 pci3 at ppb2 bus 5
 ppb3 at pci0 dev 28 function 4 Intel 82801I PCIE rev 0x03: msi
 pci4 at ppb3 bus 13
 uhci3 at pci0 dev 29 function 0 Intel 82801I USB rev 0x03: apic 1 int 16
 

Re: GM45 gpu hung error

2013-11-13 Thread Alexey Suslikov
On Wed, Nov 13, 2013 at 2:30 PM, Claudio claudiozu...@gmail.com wrote:
 On Wed, Nov 13, 2013 at 12:12:47PM +, Alexey E. Suslikov wrote:
 Tomas Bodzar tomas.bodzar at gmail.com writes:

  Right, my fault. Missed complete path in output. Those are for Haswell

 Looking at mentioned commits, at least cursor update diffs aren't
 strictly Haswell related. So Mesa update.

 I've tried with the latst snapshot but there are still issues:

 dmesg:

 OpenBSD 5.4-current (GENERIC) #126: Tue Nov 12 16:30:10 MST 2013
 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC
 real mem = 4166717440 (3973MB)
 avail mem = 4047704064 (3860MB)

snip

 cpu0: Enhanced SpeedStep 798 MHz: speeds: 2534, 2533, 1600, 800 MHz

(maybe) not related to GPU hangs, but having CPU run at 798 MHz is strange.

have you tried to put

hw.setperf=100

to /etc/sysctl.conf

?



Re: GM45 gpu hung error

2013-11-13 Thread Alexey Suslikov
On Wed, Nov 13, 2013 at 3:18 PM, Claudio claudiozu...@gmail.com wrote:
 On Wed, Nov 13, 2013 at 03:06:08PM +0200, Alexey Suslikov wrote:
 On Wed, Nov 13, 2013 at 2:30 PM, Claudio claudiozu...@gmail.com wrote:
  On Wed, Nov 13, 2013 at 12:12:47PM +, Alexey E. Suslikov wrote:
  Tomas Bodzar tomas.bodzar at gmail.com writes:
 
   Right, my fault. Missed complete path in output. Those are for Haswell
 
  Looking at mentioned commits, at least cursor update diffs aren't
  strictly Haswell related. So Mesa update.
 
  I've tried with the latst snapshot but there are still issues:
 
  dmesg:
 
  OpenBSD 5.4-current (GENERIC) #126: Tue Nov 12 16:30:10 MST 2013
  dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC
  real mem = 4166717440 (3973MB)
  avail mem = 4047704064 (3860MB)

 snip

  cpu0: Enhanced SpeedStep 798 MHz: speeds: 2534, 2533, 1600, 800 MHz

 (maybe) not related to GPU hangs, but having CPU run at 798 MHz is strange.

 have you tried to put

 hw.setperf=100

 to /etc/sysctl.conf

 ?

 I've tried but there was no change, the reason it was running that low I 
 think was apmd.

I think you should disable apmd, cold boot and retest.



Re: GM45 gpu hung error

2013-11-13 Thread Alexey Suslikov
On Wed, Nov 13, 2013 at 4:18 PM, Claudio claudiozu...@gmail.com wrote:
 After updating the bios and setting setperf I can no longer reproduce the 
 issue :), I'll try enabling apmd again later and check how it runs.

 (On an unrelated note Firefox uses incredibly high amounts of cpu compared to 
 chromium and is very sluggish, I thought it was because of the low frequency 
 but it still does.)

Unless you run firewall on this box, why not GENERIC.MP? P9500 is dual core.



Re: GM45 gpu hung error

2013-11-13 Thread Alexey Suslikov
On Wed, Nov 13, 2013 at 4:54 PM, Tomas Bodzar tomas.bod...@gmail.com wrote:
 Yeah, however Firefox is running pretty badly after introduction of KMS on
 my Dell E6320 (tried like 3 weeks ago or so), Chromium was simply just
 crashing all the time.

could you provide dmesg with most recent -current?



Re: A warm welcome to a gentoo hardened administrator?

2013-05-17 Thread Alexey Suslikov
search over misc@ archives

On Fri, May 17, 2013 at 7:24 PM, Dārayavahush Khola da.kh...@gmail.com wrote:
 There is just now way. How did you know That is exactly what I was
 talking about. I even have it bookmarked for when I get some hardware
 together Amazing Alexy Ok The man pages.

 Just out of curiosity. Why is it damned?


 Dārayavahush



Re: PHP mini_sendmail problems

2013-03-14 Thread Alexey Suslikov
On Thu, Mar 14, 2013 at 9:12 PM, Stefan Sperling s...@openbsd.org wrote:
 On Thu, Mar 14, 2013 at 06:51:54PM +, Alexey E. Suslikov wrote:
 John Tate john at johntate.org writes:

 
  I've been trying to get PHP to be able to email from a chrooted apache
  server. Running without chroot is not an option. I can't find clear
  documentation on doing this, and the logs don't contain any errors I can
  find about the problem.

 you need femail from ports.

 More precisely, the femail-chroot package.

 And you need /usr/libexec/ld.so inside of the /var/www chroot dir.
 Else, femail won't run inside chroot (on 5.3, not sure if 5.2 requires this).

hmmm... older setups I have seen didn't require ld.so...

why it is needed?



Re: PHP mini_sendmail problems

2013-03-14 Thread Alexey Suslikov
On Thu, Mar 14, 2013 at 9:35 PM, John Tate j...@johntate.org wrote:
 From the end of error_log:
 femail: no recipients

femail commandline switches aren't 100% sendmail-
compatible.

check php.ini on how you pass recipients to femail.



Kernel Level Audio Next Generation

2012-07-31 Thread Alexey Suslikov
Hello misc.

http://klang.eudyptula.org/

Just curious, why they didn't even try to evaluate OpenBSD sndio.

An overall approach to the problem is interesting thing too

Q: Why a audio system in the kernel?
A: Because it's the only reasonable thing to do.

What people think? Maybe we should write an article for wikipedia
to make sndio more visible to rest of the world?

Regards,
Alexey



Re: OpenBSD - UEFI Secure Boot

2012-07-09 Thread Alexey Suslikov
On Mon, Jul 9, 2012 at 5:03 AM, Nico Kadel-Garcia nka...@gmail.com wrote:
 Many of us can comfortably disable UEFI, but it's going to be
 problematic for our less skilled colleagues.

Well, are you sure UEFI disable button will turn off ALL of UEFI functions?

 Also, UEFI will possibly take down a dozens of Linux/BSD-oriented
 hardware suppliers businesses because their customers will deny to run
 security critical tasks on UEFI hardware. Good support for stagnating
 world economy.

 Go look at what Fedora is doing to handle this. OpenBSD boot loaders
 are going to have to make some kind of accomodation with this in the
 next 5 years, or throw in the towel for new hardware and go directly
 to virtualization only. (That's admittedly how I use it these days,
 mostly for testing components like OpenSSH before 6.0p1 was bundled.)

With that virtualization, both hardware bugs and attacks against hypervisors
are real world cases. So don't be naive.

Trust me, I'll try hard to avoid virtualization and Fedora@UEFI on my firewalls,
no matter what they did to circumvent UEFI issues.

Heck, I simply have no extra 5 years to spend on that hide-and-seek games.

My customers want services, not excuses for utterly unneeded maintenance
downtimes (you kindly call this accommodation).

Anyway, it seems you didn't get the idea above.

My assumption is, customer, which is aware of UEFI sniffing on them, will
deny to buy UEFI boxes. Market niche will collapse with no demand since
some (presumable smaller) suppliers will be unable to diversify fast enough.

Going this way will result in hardware/software monopolies destroying
entire ecosystem. Raspberry Pi (and alike) is about going another way.



Re: OpenBSD - UEFI Secure Boot

2012-07-08 Thread Alexey Suslikov
Remember SOPA/ACTA? If somebody is planning to have a regulation,
this somebody should take care about tools which guarantee direct, not
circumstantial, evidence of somebody else broke this regulation.

UEFI implements network stack so it can be a long-standing strategy.

UEFI is about remote monitoring without you even knowing about it, or
your corporate firewall sniffing for somebody else.

You buying UEFI hardware will be a sponsor of somebody sniffing on you.
What an irony.

Also, UEFI will possibly take down a dozens of Linux/BSD-oriented
hardware suppliers businesses because their customers will deny to run
security critical tasks on UEFI hardware. Good support for stagnating
world economy.

IMO, it is smarter to spent on Raspberry Pi port than UEFI bullshit.

And don't blame Amiga. It is UEFI free, isn't it? ;)

llemikebyw wrote:

 Tomas (and David and E.V.R. Else-Body)

 Yes - I'd read the thread(s) (Gentoo too..) - but the
 ultimate conclusion of much of the discussion is
 buy different hardware.

 I bought Betamax (because it was the best)... until...
 I bought SAAB (because it was the best)... until...
 I bought Amiga (because it was the best)... until...

 I don't want to be saying...

 I bou.. erm.. got... OpenBSD (because it was the best)...

 Mike



Re: EAP-TLS WPA support

2011-10-20 Thread Alexey Suslikov
How about resurrecting this diff?

http://thread.gmane.org/gmane.os.openbsd.ports/39927

On Thu, Oct 20, 2011 at 15:58, Martin Pelikan martin.peli...@gmail.com wrote:
 2011/10/20 Alexey E. Suslikov alexey.susli...@gmail.com:
 Vadim Zhukov persgray at gmail.com writes:
 http://www.rz.rwth-aachen.de/aw/cms/rz/Themen/unsere_dienste/kommunikation/netzbetrieb/dienste/wlan/installation/~sib/openbsd/?lang=en

 Well, that rc.conf option seems FreeBSD.
 AFAIK, OpenBSD doesn't support enterprise WPA. You can try
 implementing it yourself. The last PDF I saw had about 1000 pages and
 basically was describing how to interconnect WPA, EAPOL (802.1x) and
 802.11 state machines, and then implement like 42 different
 authentication mechanisms on top of that.
 Many people have asked that question and nobody seems to have the time
 to write the code and test it against different RADIUS servers.
 Good luck with that.
 FYI: porting current wpa_supplicant or writing new implementation
 (into iked?) to me seemed like the same effort, since the protocol
 suite is pretty complicated. But I gave it just a quick look (and
 moved to more important things to do).
 --
 Martin Pelikan



Re: EAP-TLS WPA support

2011-10-20 Thread Alexey Suslikov
Another one

http://thread.gmane.org/gmane.os.openbsd.misc/180057/focus=180749

On Thu, Oct 20, 2011 at 21:32, Alexey Suslikov
alexey.susli...@gmail.com wrote:
 How about resurrecting this diff?

 http://thread.gmane.org/gmane.os.openbsd.ports/39927

 On Thu, Oct 20, 2011 at 15:58, Martin Pelikan martin.peli...@gmail.com 
 wrote:
 2011/10/20 Alexey E. Suslikov alexey.susli...@gmail.com:
 Vadim Zhukov persgray at gmail.com writes:
 http://www.rz.rwth-aachen.de/aw/cms/rz/Themen/unsere_dienste/kommunikation/netzbetrieb/dienste/wlan/installation/~sib/openbsd/?lang=en

 Well, that rc.conf option seems FreeBSD.
 AFAIK, OpenBSD doesn't support enterprise WPA. You can try
 implementing it yourself. The last PDF I saw had about 1000 pages and
 basically was describing how to interconnect WPA, EAPOL (802.1x) and
 802.11 state machines, and then implement like 42 different
 authentication mechanisms on top of that.
 Many people have asked that question and nobody seems to have the time
 to write the code and test it against different RADIUS servers.
 Good luck with that.
 FYI: porting current wpa_supplicant or writing new implementation
 (into iked?) to me seemed like the same effort, since the protocol
 suite is pretty complicated. But I gave it just a quick look (and
 moved to more important things to do).
 --
 Martin Pelikan



Re: Bug Tracking system does not work

2011-10-08 Thread Alexey Suslikov
Ted Unangst wrote:
  Ted, Is it worth looking at the current system to see if the suck factor
  can be vacuumed from it, or is it a hopeless case in your opinion?

 It is hard to imagine a bug tracker that could actually suck more than
 gnats.  The current replacement, email bugs@ and search the marc.info
 archives, is vastly superior.

Hello.

marc.info isn't updating for a couple week or so. I use Gmane.

Have you looked at Review Board http://www.reviewboard.org/ ?

It is maintained, written in Python using Django framework and,
last but not least, MIT-licensed and integrates with CVS.

From my understanding, searching tech@ or bugs@ is not the
problem, but following is. Diff or bug reviews done using mailing
lists are inefficient: there is no place to see entire discussion
against given issue. We all see how developers say oh, I forgot
about okaying on this diff.

It is pretty normal to reinvent a diff which already has been
done but lost deep inside mailing list. Also, there is a problem
with attaching things like kernel panic screenshots.

Alexey



Re: Thanks a lot to all devs of OpenBSD

2011-08-29 Thread Alexey Suslikov
Marc Espie wrote:
 On Mon, Aug 29, 2011 at 01:13:14PM +0400, Vadim Zhukov wrote:
  On Sunday 28 August 2011 19:50:51 Marc Espie wrote:
   On Sun, Aug 28, 2011 at 05:00:46PM +0200, Tomas Bodzar wrote:
(and main link which caused that
http://lists.freebsd.org/pipermail/freebsd-arch/2011-August/011412.h
   tml)
  
   This link makes me a little sad. I don't quite get why that guy
   mentions that FreeBSD ports has problems, but then mentions only the
   netbsd work, and blatantly ignores our tools, even though they solve
   most of the problems he has...
 
  This man thinks that OpenBSD will die sooner or later. I've already had
  many talks with him... He is an expirienced man, though.

 This kind of thinking gets more and more irrational as time passes and
 we're still not dead. ;-)

Well spoken.

For me, OpenBSD is clear with goals (http://www.openbsd.org/goals.html)
and strong with following them as time passes.

Compare to NetBSD/FreeBSD goals.

1) first of all, one needs to Google to find goals:
* http://www.netbsd.org/about/#project-goals
* http://www.freebsd.org/doc/handbook/history.html#GOALS

2) after reading, one realizes:
* NetBSD/FreeBSD goals are too general (I'd say amorphous);
* NetBSD/FreeBSD goals give no clear understanding am I in target
audience or not (while OpenBSD goals clearly emphasize on security).

To one surprise, even making of CD release is not NetBSD/FreeBSD goal.

So, for me, NetBSD/FreeBSD either have controversial goals from very
beginning, or lost their tracks in the middle.

For example, in a short-term perspective, nurturing proprietary drivers
infrastructure can attract more people and user base can grow. But in a
long-term perspective this approach will fail since overall contribution to
BSD ecosystem is very minimal (compare with OpenBSD constantly
pushing on vendors to open, eo ipso contributing to whole BSD world).

OpenSSH is well-known for contributing not only to BSD world, but all
major Unix/Linux and proprietary products like HP switches.

NetBSD/FreeBSD people discussing strategy adoption plans without
having an agreement on primary goals. I do believe this is bad practice.

Alexey



New dual core ARM Cortex-A9 board

2011-06-01 Thread Alexey Suslikov
http://www.origenboard.org/index.php?document_srl=130



Re: vmmap: bad software everywhere

2011-06-01 Thread Alexey Suslikov
Ariane van der Steldt wrote:

 On Tue, May 31, 2011 at 03:28:11PM -0500, Amit Kulkarni wrote:
basically rewriting the memory
management part of the OS in your browser.
  
   Do some browsers do this on OpenBSD?

 Googles v8 javascript engine has Pages, Spaces, Heaps and Pagination
 logic. It even has its own code to map files in. However, the managed to
 avoid the common pitfall of requiring all platforms to have 4 kB pages:
 they hardcoded to 8 kB instead. They actually managed to create their
 own VM inside the browser, running on top of our VM and being almost as
 complex. Chrome are the ones that use 32-bit relative pointers, I doubt
 I need to explain how that fails on 64-bit... But hey, it's fast.

 Webkit allocates 2 GB at startup. Within that area, it will do its own
 memory management for the JIT. They also use 32-bit relative addressing.

 Firefox uses the unused bits in your pointer to store some tags there.
 Because on 64-bit computers we have all these bits, but only 48 are
 used. So we can store 16 bit worth of data, for free! Ofcourse, your
 address randomization will be friendly enough to pick memory close to
 the base of your memory, so of those 48 bits, only 34 are really in
 use...

Why do they need such a trick instead of simply storing tags in a
associative array, where key is a pointer and value is a set of tags
(or any other arbitrary data)? Lookup against properly aligned array
is relatively fast. Am I missing something?

Alexey



iSCSI in recent Supermicro boards

2011-05-16 Thread Alexey Suslikov
Hello.

Does anybody know about iSCSI BIOS settings in recent Supermicro boards?

For example, manual for X8SIL family says:

1-7 iSCSI Support
The X8SIL/X8SIL-F/X8SIL-V motherboard supports the iSCSI Internet
Protocol. iSCSI
is an IP networking standard used to link and manage data storage, and transfer
data across the internet and private intranets through long distance.
iSCSI can be
used to transmit data over local area networks (LANs), wide area
networks (WANs),
or the Internet. It can enable location-independent data storage and retrieval.
iSCSI allow clients to issue SCSI commands to remote SCSI storage devices and
allow data centers to consolidate remote storage devices into storage
arrays, giving
an illusion of locally-attached disks to host servers. Unlike
fiber-optic networks that
require special cabling, iSCSI can run over long distance using
existing networks.
For the X8SIL/X8SIL-F/X8SIL-V motherboard, iSCSI is supported on LAN 1. This
can be enabled through the BIOS: Advanced = PCI/PnP Configuration = Onboard
LAN1 Option ROM Select. Please see Chapter 4 for details.

Is it booting over iSCSI support? A kind of iSCSI packet
prioritization? Smth else?

Thanks.

Alexey



Re: network bandwith with em(4)

2011-03-11 Thread Alexey Suslikov
RLW wrote:
 W dniu 2011-03-05 21:24, Manuel Guesdon pisze:
  On Sat, 5 Mar 2011 22:09:51 +0900
  Ryan McBridemcbr...@openbsd.org  wrote:
 
  | On Fri, Feb 25, 2011 at 08:40:10PM +0100, Manuel Guesdon wrote:
  |  systat -s 2 vmstat:
  |
  | 3.2%Int   0.1%Sys   0.0%Usr   0.0%Nic  96.8%Idle
  |  |||||||||||
  |
  | The numbers presented here are calculated against the sum of your
CPUs.
  | Since you are running bsd.mp with hyperthreading turned on, your
machine
  | has 16 CPUs; each CPU accounts for about 6% of the total available
so
  | the 3.2%Int value in your systat vmstat means that you have one cpu
  | (the only one that is actually working in the kernel) about 50% in
  | interrupt context.
  |
  | The exact behaviour varies from hardware to hardware, but it's not
  | surprising that you start losing packets at this level of load.
 
  OK. Understood. Thank you. I'll try SP kernel with mulithread disabled as
soon
  as I can and make some tests.
 
  Manuel
 
  --
  __
  Manuel Guesdon - OXYMIUM
 
 


 Hello,

 Because lately some people wrote to the group about network bandwidth
 problems with em(4) i have run some test myself.

 On the same hardware i have run tests on Debian and OpenBSD.
 It seems, there might be something in OpenBSD that slows bandwidth on
 gbit NICs.

 Below detailed info.

snip

How about MTU? Did you have jumbo frames enabled on Debian?

Alexey



Re: network bandwith with em(4)

2011-03-02 Thread Alexey Suslikov
Claudio Jeker wrote:

 On Wed, Mar 02, 2011 at 08:34:02PM +0100, Manuel Guesdon wrote:
  On Wed, 2 Mar 2011 21:52:03 +0900
  Ryan McBride mcbr...@openbsd.org wrote:
 
  | On Mon, Feb 28, 2011 at 12:49:01PM +0100, Manuel Guesdon wrote:
  |  OK. Anyway NIC buffers restrict buffered packets number. But the 
  problem
  |  remain: why a (for exemple) dual Xeon E5520@2.27GHz with Intel PRO/1000
  |  (82576) can't route 150kpps without Ierr :-)
  |  http://www.oxymium.net/tmp/core3-dmesg
  |
  | I've done some more comprehensive testing and talked to some other
  | developers, and it seems that 150kpps is in the range of what is
  | expected for such hardware with an unoptimized install.
 
  Thank you for the help !

 Hmpf. My last tests where done with ix(4) and it performed way better. Not
 sure if something got back into em(4) that makes the driver slow or if it
 is something different.



According to http://www.oxymium.net/tmp/core3-dmesg, interrupts are shared
heavily (see dmesg parts below).

Most problematic (wrt livelocks) em6 uses apic 9 int 15 which is shared by
other devices including PCIe bridges.

Is there any possibility for PCIe bridge to conflict with slave device
if interrupt
is shared and have excessive livelocks as a result? How bridge interrupts are
handled inside kernel?

Alexey

ppb6 at pci6 dev 1 function 0 PLX PEX 8533 rev 0xaa: apic 9 int 13 (irq 11)
pci7 at ppb6 bus 7

ppb0 at pci0 dev 1 function 0 Intel X58 PCIE rev 0x13
pci1 at ppb0 bus 1
em0 at pci1 dev 0 function 0 Intel PRO/1000 (82576) rev 0x01: apic 9
int 4 (irq 10), address 00:30:48:9f:17:52
em1 at pci1 dev 0 function 1 Intel PRO/1000 (82576) rev 0x01: apic 9
int 16 (irq 11), address 00:30:48:9f:17:53

ppb7 at pci6 dev 8 function 0 PLX PEX 8533 rev 0xaa: apic 9 int 6 (irq 10)
pci8 at ppb7 bus 8

ppb9 at pci9 dev 1 function 0 PLX PEX 8518 rev 0xac: apic 9 int 13 (irq 11)
pci10 at ppb9 bus 10
em2 at pci10 dev 0 function 0 Intel PRO/1000 (82576) rev 0x01: apic
9 int 13 (irq 11), address 00:25:90:05:53:3c
em3 at pci10 dev 0 function 1 Intel PRO/1000 (82576) rev 0x01: apic
9 int 15 (irq 15), address 00:25:90:05:53:3d

ppb10 at pci9 dev 2 function 0 PLX PEX 8518 rev 0xac: apic 9 int 15 (irq 15)
pci11 at ppb10 bus 11
em4 at pci11 dev 0 function 0 Intel PRO/1000 (82576) rev 0x01: apic
9 int 15 (irq 15), address 00:25:90:05:53:3e
em5 at pci11 dev 0 function 1 Intel PRO/1000 (82576) rev 0x01: apic
9 int 14 (irq 14), address 00:25:90:05:53:3f

ppb11 at pci6 dev 9 function 0 PLX PEX 8533 rev 0xaa: apic 9 int 13 (irq 11)
pci12 at ppb11 bus 12

ppb13 at pci13 dev 1 function 0 PLX PEX 8518 rev 0xac: apic 9 int 15 (irq 15)
pci14 at ppb13 bus 14
em6 at pci14 dev 0 function 0 Intel PRO/1000 (82576) rev 0x01: apic
9 int 15 (irq 15), address 00:25:90:05:51:d8
em7 at pci14 dev 0 function 1 Intel PRO/1000 (82576) rev 0x01: apic
9 int 14 (irq 14), address 00:25:90:05:51:d9

ppb14 at pci13 dev 2 function 0 PLX PEX 8518 rev 0xac: apic 9 int 14 (irq 14)
pci15 at ppb14 bus 15
em8 at pci15 dev 0 function 0 Intel PRO/1000 (82576) rev 0x01: apic
9 int 14 (irq 14), address 00:25:90:05:51:da
em9 at pci15 dev 0 function 1 Intel PRO/1000 (82576) rev 0x01: apic
9 int 6 (irq 10), address 00:25:90:05:51:db



Re: mic2 is unplugged whatever the physical status is

2010-12-26 Thread Alexey Suslikov
Jacob Meuser wrote:

 On Sun, Dec 26, 2010 at 12:46:14PM +0100, ??? ??? wrote:
  On Tue, Dec 14, 2010 at 4:55 PM, Jacob Meuser jake...@sdf.lonestar.org
  wrote:
  On Tue, Dec 14, 2010 at 03:39:23PM +0100, Dmitrij D. Czarkoff wrote:
   I have found my external microphone (mic2) not working under OpenBSD
  -current of Nov 20. Whatever I do, I get mixerctl outputs.mic2_sense
  answering outputs.mic2_sense=unplugged regardless of whether it is plugged
  or not.
   At the same time outputs.hp_sense is reported correctly. Is there 
   anything
  I can do to enable mic2?
  
   the last commits to azalia were in early eptember ... did it used to
   change? B does the mic not work at all or is just plug sense not working?
 
  The mic works OK, I only noticed the problem when I was trying to find
  out why GStreamer doesn't pick it up as input.
  I never noticed that before, so I can't say what it used to report
  throughout it's life.
 
   it's possible the plug sense circuitry isn't really there, or has gone
   bad ...

Codec can be programmed to use non-standard numbers while generating
unsol events, isn't it?

 
  I'll try to investigate this issue by trying some Linux livecds...
 
  Anyway, is there anything I can do to alter the outputs.mic2_sense?

 unlikely.

Maybe sprinkle some debug across unsol events handling code path to
see do we get any messages during plug/unplug or not?

Alexey



Re: OpenBSD, nut-2.4.3 and USB UPS

2010-06-18 Thread Alexey Suslikov
With USB-attached UPS, nut requires correct permissions not only for
/dev/ugen0.* but also for /dev/usb* to perform bus scan.

I do believe that +DISPLAY for nut port should reflect this fact so
one will have a chance to succeed without USB_DEBUG dance.

Here is my results:

battery.charge: 100
battery.voltage: 27.20
battery.voltage.high: 27.20
battery.voltage.low: 20.20
battery.voltage.nominal: 24.0
beeper.status: enabled
device.type: ups
driver.flag.novendor: enabled
driver.name: blazer_usb
driver.parameter.pollinterval: 2
driver.parameter.port: /dev/ugen0
driver.parameter.productid: 5161
driver.parameter.subdriver: cypress
driver.parameter.vendorid: 0665
driver.version: 2.4.3
driver.version.internal: 0.03
input.current.nominal: 8.0
input.frequency: 50.1
input.frequency.nominal: 50
input.voltage: 230.6
input.voltage.fault: 230.6
input.voltage.nominal: 230
output.voltage: 227.3
ups.delay.shutdown: 30
ups.delay.start: 180
ups.load: 6
ups.productid: 5161
ups.status: FSD OL
ups.temperature: 25.0
ups.type: offline / line interactive
ups.vendorid: 0665

[eaton]
driver = blazer_usb
port = /dev/ugen0
vendorid = 0665
productid = 5161
subdriver = cypress
novendor
default.battery.voltage.high = 27.20
default.battery.voltage.low = 20.20

As you can see, I'm not using megatec_usb driver like
http://www.networkupstools.org/compat/stable.html recommends for my
UPS since blazer_usb has better implementation of Megatec/Q1 protocol.

Alexey

On Wed, Jun 16, 2010 at 00:59,  kell...@gmail.com wrote:
 Alexey Suslikov wrote (06/15/10 18:49):
 I'm complete out of insights with my Eaton NV 2000 which is supported
 (http://www.networkupstools.org/compat/stable.html) by megatec_usb
 driver.

 I don't know if this will be helpful, but this works for me:

 $ cat /etc/nut/ups.conf | grep -v ^#
 [apc]
driver = usbhid-ups
port = /dev/ttyU0
desc = APC Back-UPS ES 550

 $ cat /etc/rc.local | grep -v ^#
 if [ -x /usr/local/bin/upsdrvctl ]; then
export NUT_CONFPATH=/etc/nut
/usr/local/bin/upsdrvctl -u root start  /dev/null 21
/usr/local/sbin/upsd -u root  /dev/null 21
/usr/local/sbin/upsmon -u root  /dev/null 21
 fi

 I know this is a different situation from yours, but you might want to
 try some of the tricks that worked for me.



OpenBSD, nut-2.4.3 and USB UPS

2010-06-15 Thread Alexey Suslikov
Hello m...@.

I'm complete out of insights with my Eaton NV 2000 which is supported
(http://www.networkupstools.org/compat/stable.html) by megatec_usb
driver.

$ dmesg | egrep -i generic|ugen
OpenBSD 4.7-beta (GENERIC.MP) #82: Fri Feb  5 01:05:44 MST 2010
t...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
ugen0 at uhub4 port 2 Cypress Semiconductor USB to Serial rev 1.10/0.02 addr 2

$ usbdevs -v | egrep -i cypress
 port 2 addr 2: low speed, power 100 mA, config 1, USB to
Serial(0x5161), Cypress Semiconductor(0x0665), rev 0.02

$ cat /etc/nut/ups.conf
[eaton]
driver = megatec_usb
port = /dev/ugen0.00
vendorid = 0665
productid = 5161

$ ls -l /dev/ugen0*
crw-rw-rw-  1 root  daemon   63,   0 Feb 11 13:58 /dev/ugen0.00
crw-rw-rw-  1 root  daemon   63,   1 Feb 11 13:58 /dev/ugen0.01
crw-rw-rw-  1 root  daemon   63,   2 Feb 11 13:58 /dev/ugen0.02
crw-rw-rw-  1 root  daemon   63,   3 Feb 11 13:58 /dev/ugen0.03
crw-rw-rw-  1 root  daemon   63,   4 Feb 11 13:58 /dev/ugen0.04
crw-rw-rw-  1 root  daemon   63,   5 Feb 11 13:58 /dev/ugen0.05
crw-rw-rw-  1 root  daemon   63,   6 Feb 11 13:58 /dev/ugen0.06
crw-rw-rw-  1 root  daemon   63,   7 Feb 11 13:58 /dev/ugen0.07
crw-rw-rw-  1 root  daemon   63,   8 Feb 11 13:58 /dev/ugen0.08
crw-rw-rw-  1 root  daemon   63,   9 Feb 11 13:58 /dev/ugen0.09
crw-rw-rw-  1 root  daemon   63,  10 Feb 11 13:58 /dev/ugen0.10
crw-rw-rw-  1 root  daemon   63,  11 Feb 11 13:58 /dev/ugen0.11
crw-rw-rw-  1 root  daemon   63,  12 Feb 11 13:58 /dev/ugen0.12
crw-rw-rw-  1 root  daemon   63,  13 Feb 11 13:58 /dev/ugen0.13
crw-rw-rw-  1 root  daemon   63,  14 Feb 11 13:58 /dev/ugen0.14
crw-rw-rw-  1 root  daemon   63,  15 Feb 11 13:58 /dev/ugen0.15

$ pkg_info | egrep -i nut|usb
libusb-0.1.12   USB access library
nut-2.4.3   UPS monitoring program supporting many brands

# megatec_usb -a eaton -DDD
Network UPS Tools - Megatec protocol driver 1.6 (2.4.3)
Serial-over-USB transport layer 0.10
   0.00 debug level is '3'
   0.000454 No appropriate HID device found
   0.000494 No supported devices found. Please check your device
availability with 'lsusb'
and make sure you have an up-to-date version of NUT. If this does not help,
try running the driver with at least 'vendorid' and 'subdriver' options
specified. Please refer to the man page for details about these options
(man 8 megatec_usb).
Please report your results to the NUT user's mailing list
nut-upsu...@lists.alioth.debian.org.

Also, I have tried port values of auto and from /dev/ugen0.00 to
/dev/ugen0.15 and subdriver values of krauler, agiler,
agiler-old and phoenix with no effect.

Any help will be very welcome. Thanks.

Alexey



Re: How to break the httpd's 4G file size limit?

2009-03-11 Thread Alexey Suslikov
Daniel A. Ramaley wrote:

 On 2009-03-10 at 14:34:30, you wrote:
 I want to set up the web server to share file, but i know apache-1.3.x
 (which is openbsd default httpd) had the 4G file size limit, can i
  break this limit?

 I don't know the correct answer to this question, but i thought of a
 possible work-around in the event the answer is no.

 Could you write a CGI program that serves the file? I don't know where
 Apache's 4 GB limit is. But if the limitation is in how Apache accesses
 the filesystem and not in how it manages network connections, then
 maybe a program that is capable of reading large files could get around
 the limit. This would most likely require mangling the URLs to the
 large files to really point to the program, unless you can do some

The limitation is 2Gb on 32-bit platforms because of off_t (man lseek).

Stock ftpd also has mentioned limitation (try to REST a file beyond 2Gb
offset).

Using any 64-bit platform will solve the problem due to bigger off_t, but
if it's not a case, one can use Apache 2.2.x from ports.

Alexey



Re: How to break the httpd's 4G file size limit?

2009-03-11 Thread Alexey Suslikov
On Wed, Mar 11, 2009 at 17:56, Ted Unangst ted.unan...@gmail.com wrote:
 On Wed, Mar 11, 2009 at 11:37 AM, Alexey Suslikov
 alexey.susli...@gmail.com wrote:
 The limitation is 2Gb on 32-bit platforms because of off_t (man lseek).

 off_t is always 64-bit.

 Stock ftpd also has mentioned limitation (try to REST a file beyond 2Gb
 offset).

 Using any 64-bit platform will solve the problem due to bigger off_t, but
 if it's not a case, one can use Apache 2.2.x from ports.

 If using a 64-bit machine fixes it, then the type in question is not off_t.


Maybe you should try to transfer (using stock httpd) at least 3Gb file
on i386?

Also, I have the following in my archives:

-- Forwarded message --
From: Marc Balmer m...@msys.ch
Date: Fri, Jun 20, 2008 at 11:09
Subject: Re: Apache doesn't handle files 2Gb properly
To: Alexey Suslikov alexey.susli...@gmail.com
Cc: Marc Balmer mbal...@openbsd.org, Jason McIntyre j...@openbsd.org

* Alexey Suslikov wrote:
 Hello Marc, Jason.

 Can you comment on this issue?

 http://marc.info/?t=121379382200010r=1w=2

 Maybe it is a good idea to warn note about long files
 on 32-bit platform to httpd man page or/and FAQ?

no.  fix the problem, diffs are welcome ;)

maybe, if I find time, I look into this myself.

- Marc



Re: How to break the httpd's 4G file size limit?

2009-03-11 Thread Alexey Suslikov
On Wed, Mar 11, 2009 at 19:11, Ted Unangst ted.unan...@gmail.com wrote:
 On Wed, Mar 11, 2009 at 12:01 PM, Alexey Suslikov
 alexey.susli...@gmail.com wrote:
 On Wed, Mar 11, 2009 at 17:56, Ted Unangst ted.unan...@gmail.com wrote:
 If using a 64-bit machine fixes it, then the type in question is not off_t.


 Maybe you should try to transfer (using stock httpd) at least 3Gb file
 on i386?

 I didn't say it wasn't a problem, I said your diagnosis was incorrect.

 Also, I have the following in my archives:

 http://marc.info/?t=121379382200010r=1w=2

 from that very thread, the problem is using long *instead* of off_t.
 Using off_t would fix the problem.

 http://marc.info/?l=openbsd-bugsm=121379609212212w=2


I can't recall exact code from httpd, but how about libexec/ftpd:

...
extern  off_t restart_point;
...
if (restart_point) {
if (type == TYPE_A) {
off_t i, n;
int c;

n = restart_point;
i = 0;
while (i++  n) {
if ((c = getc(fin)) == EOF) {
if (ferror(fin)) {
perror_reply(550, name);
goto done;
} else
break;
}
if (c == '\n')
i++;
}
} else if (lseek(fileno(fin), restart_point, SEEK_SET)  0) {
perror_reply(550, name);
goto done;
}
}
...

Above code effectively results in inability to REST beyond 2Gb on
i386 however sequential read from position 0 will be ok.

Alexey



altq merge

2009-02-09 Thread Alexey Suslikov
irix wrote:

 Hello Misc,

  When the final port altq in pf? And then in 2002 and stretches porting CDNR, 
 the \
 kernel ported in pf no.

  Here is an excerpt from the log of 16.12.2002 about altq

 Log message:
 switchover to pf-based altq.
 - remove files which are no longer used, or we don't have plans to support
 in pf in the near future.
 - remove altq ioctl related stuff.
 - convert the PRIQ, HFSC and RIO modules to pf-based altq.
 (these are not enabled in GENERIC, CDNR is not converted yet.)

 When you fully CDNR transfer?

http://unix.derkeiler.com/Mailing-Lists/FreeBSD/net/2004-10/0137.html

man 5 pf.conf is also useful. so is OpenBSD FAQ.

Alexey



Re: Segfault under MS Virtual Server 2005 R2 SP1 Enterprise Edition

2009-02-07 Thread Alexey Suslikov
larsnoo...@openoffice.org wrote:

 Based on what I've seen from other peoples ongoing attempts at using
 virtualization from the company you mentioned, it's not going to lead to
 anything of practical value.

What exactly wrong with Microsoft's (oh, gosh, I said that) virtualization
technologies?


 Instead, try Qemu or kqemu or virtualbox.  These are designed to
 function and will at least give you a fighting chance of running a VM.

How about VMware Server which is free and others (GSX/ESX)? I have
found VMware Server surprisingly useful in some environments where
one have limited choices but OpenBSD usage is highly recommended.

Alexey



Re: Fujitsu-siemens machine freezes

2009-01-29 Thread Alexey Suslikov
BOG BOG wrote:

 I have followed your suggestions regarding -current.

 amd64 -current (GENERIC.MP) does no longer hangs when trying to detach re0, 
 but now, \
 re0 is sometimes detected correctly and sometimes not:

no. main controller itself works in both shown cases.

there is something wrong with PHY and you need to
find out a way to make this issue reproducible.


 I give the messages in both cases:
 Failure:
 re0 an pci2 dev0 function 0 Realtek 8168 rev 0x02: RTL8168C/8111C (0x3c00), 
 apic2 \
int 16 (irq 11), address 00:19:99:54:31:7f
 re0: PHY write failed
 re0: PHY write failed
 re0: no PHY found!
 re0: reset never completed!
 re0 detached

 Success:
 re0 an pci2 dev0 function 0 Realtek 8168 rev 0x02: RTL8168C/8111C (0x3c00), 
 apic2 \
 int 16 (irq 11), address 00:19:99:54:31:7f rgephy0 at re0 phy 7: 
 RTL8169S/8110S PHY, \
 rev. 2

 the controller is: 10/100/1000 MBit/s Realtek RTL8111C, so i think the kernel 
 \
 sometimes initializes the controller with a driver and sometimes with a 
 'close enough \
 driver', and in the later case it works.

Alexey



Re: Fujitsu-siemens machine freezes

2009-01-27 Thread Alexey Suslikov
BOG BOG wrote:

 Hello everybody,

 yes Sam, you are right, but this bios is a little bit different, there is 
 only a \
 setting regarding SATA: SATA0 legacy. with this option enabled, the kernel 
 detects \
 the hard drive, but is not able to initialize it in order to be partitioned . 
 So i \
 disabled this option and it is working properly (this happens for both 
 kernels and i \
 think that legacy code is no longer supported by the kernels, which is not an 
 issue).

 I tried an official image i386 installation image on different media and has 
 the same \
 problem.

 I tried the amd64 kernel and it works flawlessly, and detects more cpu flags 
 than \
 i386 kernel(including NX flag); thanks Stuart for this suggestion.

 The system is up and running, showing both cores on top command. Very nice.

 I put both dmesg on these addresses:
 http://swordfish.rotld.ro:8283/dmesgs/amd64_44_dmesg
 http://swordfish.rotld.ro:8283/dmesgs/i386_44_dmesg

As Stuart have already said, -current should behave much better. Especially
wrt re(4) and ACPI interrupts.

Alexey



Altq doesn't works as I expect on OpenBSd 4.4

2009-01-26 Thread Alexey Suslikov
carlopmart wrote:

 block in quick on egress inet proto tcp from any to any flags /S label 
 Traffic \
 Denied block in quick on egress inet proto tcp from any to any flags /SFRA 
 label \
 Traffic Denied block in quick on egress inet proto tcp from any to any 
 flags /SFRAU \
 label Traffic Denied block in quick on egress inet proto tcp from any to 
 any flags \
 A/A label Traffic Denied block in quick on egress inet proto tcp from any 
 to any \
 flags F/SFRA label Traffic Denied block in quick on egress inet proto tcp 
 from any \
 to any flags U/SFRAU label Traffic Denied block in quick on egress inet 
 proto tcp \
 from any to any flags SF/SF label Traffic Denied block in quick on egress 
 inet \
 proto tcp from any to any flags SF/SFRA label Traffic Denied block in quick 
 on \
 egress inet proto tcp from any to any flags SR/SR label Traffic Denied 
 block in \
 quick on egress inet proto tcp from any to any flags FUP/FUP label Traffic 
 Denied \
 block in quick on egress inet proto tcp from any to any flags FUP/SFRAUPEW 
 label \
 Traffic Denied block in quick on egress inet proto tcp from any to any 
 flags \
 SFRAU/SFRAU label Traffic Denied block in quick on egress inet proto tcp 
 from any \
 to any flags SFRAUP/SFRAUP label Traffic Denied


I believe above monster block (I'd say my early ipf-based setups did so)
is redundant since all TCP packets with incorrect flags' combinations are
dropped by corresponding scrub rule.

Alexey



Problem with wpi in -current?

2008-12-27 Thread Alexey Suslikov
Michael Warmuth wrote:

 Hello,

 since beginning of December, wpi stopped working with -current on my
 system.

 It seems to get detected correctly (see attached dmesg) but when running
 ifconfig I get on stderr:
  ifconfig: SIOCGIFNETMASK: Device not configured
  ifconfig: SIOCGIFNETMASK_IN6: Device not configured
  ifconfig: SIOCGIFAFLAG_IN6: Device not configured
  ifconfig: SIOCGIFALIFETIME_IN6: Device not configured
  ifconfig: SIOCGIFNETMASK_IN6: Device not configured
  ifconfig: SIOCGIFAFLAG_IN6: Device not configured
  ifconfig: SIOCGIFALIFETIME_IN6: Device not configured
 and no wpi0.

You have kernel and userland out of sync.

Alexey



Re: Annoying sounds with auvia and mpd

2008-12-15 Thread Alexey Suslikov

Jacob Meuser wrote:


On Sun, Dec 14, 2008 at 06:09:24PM +0100, Martin Toft wrote:

A small follow-up:

The problem only occurs when opening the audio device. If I queue a
number of tracks in mpd's playlist and let it play, then it does not
suddenly start making noise from one track to the next. It only happens
when I manually start a track (and only sometimes). I suspect that mpd
does not close the audio device between tracks if it is playing from its
playlist, and that is probably why the problem does not occur in that
setting.


thanks for this and your other response.


The issue I see regularly with azalia+vlc+jackd may be related maybe not.

nice jackd --silent --nozombies -t 1 -d sun -p 4096 21 1/dev/null 

- this is how I run jackd.

Here is the scenario:

- I start vlc and play something,
- I start heavy application (like Thunderbird/Firefox @ hw.setperf=0),
- sound stutters (threads blocking?),
- at this point, with ~20% probability, I hear cyclic audio fragment
which overlaps main sound,
- the issue can be remedied by restarting jack entirely or by starting
any heavy application again (~20% probability).

For me, it looks like a junk data somewhere in a buffer.

Our audio layer and NetBSD are different wrt buffers handling so I
took a deeper look and discovered the following commit

http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/audio.c.diff?r1=1.184r2=1.184.2.27f=h

For me, the interesting part here is

...
/*
* used = cb-usedlow should be used  blksize ideally.
* Some HW drivers such as uaudio(4) does not call audio_pint()
* at accurate timing.  If used  blksize, uaudio(4) already
* request transfer of garbage data.
*/
if (used = cb-usedlow  !cb-copying  sc-sc_npfilters  0) {
/* we might have data in filter pipeline */
null_fetcher.fetch_to = null_fetcher_fetch_to;
fetcher = sc-sc_pfilters[sc-sc_npfilters - 1]-base;
sc-sc_pfilters[0]-set_fetcher(sc-sc_pfilters[0],
null_fetcher);
used = audio_stream_get_used(sc-sc_pustream);
cc = cb-s.end - cb-s.start;
fetcher-fetch_to(fetcher, cb-s, cc);
cb-fstamp += audio_stream_get_used(sc-sc_pustream) - used;
used = audio_stream_get_used(cb-s);
}
...

Also, I should mention I can even hear such a cyclic fragment over
the ~2 seconds *after* I press stop button in vlc.

Alexey



Re: azalia patches in -current

2008-11-17 Thread Alexey Suslikov
Jacob Meuser wrote:

  I saw the suggestion to read tech@ in another thread but saw no (recent)
  diffs there that I believe apply to this machine.

 one thing I'm trying to do is get rid of the static mixer definitions
 in azalia_codec.c.  this exposes all the controls instead of a limited
 subset and should give the user the ability to fix these types of
 issues (we'll try our best to make things work by default, but we might
 need test results and it's a lot easier to have users try mixerctl
 settings than apply kernel patches).  your problem is probably an
 inconvenient default connection, like the speakers-connected-to-
 surround-by-default issue described above.

Jacob,

Please get rid of the static mixer from STAC9221 since it
contains no mic at all:

outputs.master=124,124
outputs.master.mute=off  [ off on ]
outputs.headphones=124,124
outputs.headphones.mute=off  [ off on ]
outputs.speaker=124,124
outputs.speaker.mute=off  [ off on ]
outputs.line=124,124
outputs.line.mute=off  [ off on ]
outputs.line2=124,124
outputs.line2.mute=off  [ off on ]

But here is output from MacBookPro1,2 without static mixer:

inputs.dac.mute=off  [ off on ]
inputs.dac=254,254
inputs.dac2.mute=off  [ off on ]
inputs.dac2=126,126
inputs.dac3.mute=off  [ off on ]
inputs.dac3=126,126
inputs.dac4.mute=off  [ off on ]
inputs.dac4=126,126
outputs.line.dir=output  [ input output ]
outputs.line.boost=off  [ off on ]
outputs.mic.dir=input  [ input output ]
outputs.speaker.dir=output  [ input output ]
outputs.line3.dir=input  [ input output ]
outputs.SPDIF-out.sourc=dac5  [ dac5 sel3 vendor ]
outputs.SPDIF-in.eapd=on  [ off on ]
inputs.sel.source=mic  [ line3 mic speaker line ]
outputs.sel=126,126
inputs.sel2.source=  [ line3 mic speaker line ]
outputs.sel2=126,126
inputs.beep=85
outputs.volume=254
inputs.sel3.sel.mute=off  [ off on ]
inputs.sel3.sel=126,126
inputs.sel4.sel2.mute=off  [ off on ]
inputs.sel4.sel2=126,126
record.usingadc=0607  [ 0607 09 ]
outputs.master=254,254
inputs.dac=254,254

There is mic and it's (finally!) usable with inputs.sel.source
set to mic (according to laptop's owner).

Alexey



Re: Longest Uptime?

2008-10-30 Thread Alexey Suslikov
Han Boetes wrote:

 Gilles Chehade wrote:
  [snip]
  ...and in OpenBSD land you better have a GOOD reason to have an
  uptime longer than two releases.
  [snip]
  Gilles,
  proud to never exceed 200 days of uptime

 Speaking of which... I think I have a pretty good reason to bring
 down my uptime very shortly. YAY!

 ~% uptime
 10:39AM  up 82 days, 14:06, 1 user, load averages: 0.22, 0.20, 0.17

IMO, indvidual machines' uptime doesn't matter at all.

Overall system uptime does matter (this is why we have
carp, pfsync and relayd).

Think Google. They have their cheap machines dying
(or rebooting after patching) all the time, but overall
system stability is very high.

Alexey



Re: NTFS-3G Stable Read/Write Driver ready to merge on cvs obsd ?

2008-10-27 Thread Alexey Suslikov
On Mon, Oct 27, 2008 at 1:01 AM, J.C. Roberts [EMAIL PROTECTED] wrote:
 On Sunday 26 October 2008, Paul de Weerd wrote:
 On Sun, Oct 26, 2008 at 09:51:38PM +0200, Alexey Suslikov wrote:
 | Paul de Weerd wrote:
 |  On Sun, Oct 26, 2008 at 12:01:40PM -0700, Chris Kuethe wrote:
 |  | On Sun, Oct 26, 2008 at 11:41 AM, Matthew Weigel
 [EMAIL PROTECTED] wrote:
 |  |  Actually, (2^32)-1, or 4GB, is the max size per file
 |  |  (http://support.microsoft.com/kb/314463).  I can see that
 |  |  being a problem if you're trying to run a database off of
 |  |  your thumb drive, but otherwise... can you give examples of
 |  |  files that you (or anyone you know) would like to access in
 |  |  Windows and OpenBSD that exceed this limit?
 |  |
 |  | dvd images are often 4.2G
 | 
 |  I agree with Chris here .. the only time I've wanted to transport
 |  large files between windows and basically !windows (macosx, linux
 |  and *bsd) they were ISO's of either regular CD's (works) or DVD's
 |  (doesn't fit in fat32).
 | 
 |  Happened to me on a couple of occassions that I wanted to do this
 |  and had to resort to network transfers (non-optimal in those
 |  circumstances).
 |
 | Come on guys.
 |
 | I believe OpenBSD can do read/write on ext2. No?
 |
 | And there is the http://www.fs-driver.org/ - also free
 | and do read/write on ext2 for Windows.

 True, but it's an external add-on that you may not always be able to
 install on the windows machine (which in my case usually isn't mine).
 OpenBSD, FreeBSD, NetBSD, Linux, Mac OSX .. they all have 'native'
 support for FAT32.

 Granted, I don't see an easy solution for this issue (because in
 essence it would mean that all others need proper ntfs support).


 Hi Paul,

 It seems you and others are missing the obvious; If Microsoft actually
 wanted other operating system vendors to read and write NTFS, they
 would have provided the specifications.

 Trying to build and maintain compatibility with a vendor which
 specifically doesn't want you to build or maintain compatibility is an
 exercise in futility. There is no easy solution because Microsoft does
 not want an easy solution to exist. If anyone does create an easy
 solution, Microsoft will undoubtedly, once again, change things so they
 remain incompatible. --Oh and don't forget MS FAT/FAT32 is patent
 encumbered so the only reason why you still have native support for
 it is because Microsoft has not pushed the issue in the courts or
 taking the time to write a new incompatible version of FAT32.

 If you consider an ever changing, undocumented, closed source file
 system to be a problem, the best thing you can do is migrate to using
 something else.

 OpenBSD does provide read access to NTFS for the sake of faster
 migration, but even this is fairly unnecessary since one could transfer
 the data over a network connection. There's no reason to bloat the
 OpenBSD kernel with a feature designed as a fast solution to a
 temporary problem, namely migration.

 The answer is not fighting for NTFS support, instead, the answer is
 migrating away from NTFS. If someone absolutely insists on running
 something intentionally incompatible, the only viable answer is to
 leave them out in the cold until they change their mind.

Exactly.

More faster people forget about NTFS/FAT32, more
faster interoperability problem will be solved.

People wanted NTFS just forgot about the fact what
they want not NTFS itself but interoperability between
a number of systems.

Alexey



Re: ntfs never ever ffs land obsd ?

2008-10-27 Thread Alexey Suslikov
On Mon, Oct 27, 2008 at 2:25 AM, Neko [EMAIL PROTECTED] wrote:
 im trying to report the issue of the ffs driver you sent me to its
 developper, yes it can access disk labels.

 yes it sees other disk labels,

 but if you have /home on disk label d it wont work

 my disklabel is kinda like so

 bsd
 wd0a /
 wd0b -swap-
 wd0c -disk-
 wd0d /home

 exotic
 wd0i /dos
 wd0j /xp
 wd0k /ntfs

 plus there is an ext2 and plan 9 partition.

 linux does it all,
 plan9 is self capsuled, but still accessible from linux,
 xp reads all even the swap of linux,


 i but bsd, ...
 i have to pass all from ffs  fat32  ntfs or ntfs  fat32  ffs
 and its not even a virtual volume in windows, its a phisical extended
 partition.

 i know its a warzone in the partitions fields when it come to multiple os
 i have being dealing with this since bsd 3.7.

 now i use bsd from 2.7 to 3.7 enjoying no microsolft products at all, not
 even linux, then i had to because of work /contract requirements,

 now its 4.4 about 8y later, and nothing is done,

 since my system grew from bsd, its on bsd, not ext2, ext3 or reiser,

 shure its readable in hex and security sucks, but thats the point ,
 readability.  but its odd, nothing reads it properly.

On a FFS driver please blame (or better help) a developer.

On Ext2.

You don't necessarily need to create an Ext2 partition from a
BSD. Install Windows Ext2 driver, create a partition and just
mount it on BSD when you need to.

Alexey



Re: NTFS-3G Stable Read/Write Driver ready to merge on cvs obsd ?

2008-10-27 Thread Alexey Suslikov
On Sun, Oct 26, 2008 at 11:21 PM, dermiste [EMAIL PROTECTED] wrote:
 On Sun, Oct 26, 2008 at 9:23 PM, Alexey Suslikov
 [EMAIL PROTECTED] wrote:
 On Sun, Oct 26, 2008 at 10:18 PM, Paul de Weerd [EMAIL PROTECTED] wrote:
 On Sun, Oct 26, 2008 at 09:51:38PM +0200, Alexey Suslikov wrote:
 | Paul de Weerd wrote:
 |
 |  On Sun, Oct 26, 2008 at 12:01:40PM -0700, Chris Kuethe wrote:
 |  | On Sun, Oct 26, 2008 at 11:41 AM, Matthew Weigel [EMAIL PROTECTED] 
 wrote:
 |  |  Actually, (2^32)-1, or 4GB, is the max size per file
 |  |  (http://support.microsoft.com/kb/314463).  I can see that being a 
 problem if
 |  |  you're trying to run a database off of your thumb drive, but 
 otherwise... can
 |  |  you give examples of files that you (or anyone you know) would like 
 to access
 |  |  in Windows and OpenBSD that exceed this limit?
 |  |
 |  | dvd images are often 4.2G
 | 
 |  I agree with Chris here .. the only time I've wanted to transport
 |  large files between windows and basically !windows (macosx, linux and
 |  *bsd) they were ISO's of either regular CD's (works) or DVD's (doesn't
 |  fit in fat32).
 | 
 |  Happened to me on a couple of occassions that I wanted to do this and
 |  had to resort to network transfers (non-optimal in those
 |  circumstances).
 |
 | Come on guys.
 |
 | I believe OpenBSD can do read/write on ext2. No?
 |
 | And there is the http://www.fs-driver.org/ - also free
 | and do read/write on ext2 for Windows.

 True, but it's an external add-on that you may not always be able to
 install on the windows machine (which in my case usually isn't mine).
 OpenBSD, FreeBSD, NetBSD, Linux, Mac OSX .. they all have 'native'
 support for FAT32.

 Nope. Create a small FAT32 partition on this drive and put
 a driver on it. How small, it is your choice. It can be 32Gb
 (a recommended maximum for FAT32) on these modern
 1TB USB drives.

 And ? you'll still have to install the driver. This solves nothing.
 The only remaining solution involves a userland app that r/w ext2 as
 an archiver r/w an archive ... how convenient.

So write an user-land app if you need to.

If you don't like Ext2 way just don't go. It is just an option for
people stuck with interoperability problem.

Sure it has its own drawbacks but it does what you initially
want - bidirectional access.

Alexey



Re: NTFS-3G Stable Read/Write Driver ready to merge on cvs obsd ?

2008-10-26 Thread Alexey Suslikov
Paul de Weerd wrote:

 On Sun, Oct 26, 2008 at 12:01:40PM -0700, Chris Kuethe wrote:
 | On Sun, Oct 26, 2008 at 11:41 AM, Matthew Weigel [EMAIL PROTECTED] wrote:
 |  Actually, (2^32)-1, or 4GB, is the max size per file
 |  (http://support.microsoft.com/kb/314463).  I can see that being a problem 
 if
 |  you're trying to run a database off of your thumb drive, but otherwise... 
 can
 |  you give examples of files that you (or anyone you know) would like to 
 access
 |  in Windows and OpenBSD that exceed this limit?
 |
 | dvd images are often 4.2G

 I agree with Chris here .. the only time I've wanted to transport
 large files between windows and basically !windows (macosx, linux and
 *bsd) they were ISO's of either regular CD's (works) or DVD's (doesn't
 fit in fat32).

 Happened to me on a couple of occassions that I wanted to do this and
 had to resort to network transfers (non-optimal in those
 circumstances).

Come on guys.

I believe OpenBSD can do read/write on ext2. No?

And there is the http://www.fs-driver.org/ - also free
and do read/write on ext2 for Windows.

Alexey



Re: NTFS-3G Stable Read/Write Driver ready to merge on cvs obsd ?

2008-10-26 Thread Alexey Suslikov
On Sun, Oct 26, 2008 at 10:11 PM, Jonathan Schleifer
[EMAIL PROTECTED] wrote:
 Alexey Suslikov [EMAIL PROTECTED] wrote:

 And there is the http://www.fs-driver.org/ - also free
 and do read/write on ext2 for Windows.

 Crashed my ext2 data partition more than once, but I could always
 recover it with e2fsck, but the files in / all lost their names then.
 However, the stuff in sub directories still had names. So /foo/bar
 was /lost+found/$inode_no/bar after e2fsck.

So?

I crashed many FAT32 partitions. NTFS is kinda complex
to crash but, as discussed above, it is hard to access in
full-blown read/write mode from non-Windows.

Don't want to use ext2? You have more choices.

Go http://ffsdrv.sourceforge.net/index.php and help this guy
to add write support to FFS driver for Windows.

Alexey



Re: NTFS-3G Stable Read/Write Driver ready to merge on cvs obsd ?

2008-10-26 Thread Alexey Suslikov
On Sun, Oct 26, 2008 at 10:18 PM, Paul de Weerd [EMAIL PROTECTED] wrote:
 On Sun, Oct 26, 2008 at 09:51:38PM +0200, Alexey Suslikov wrote:
 | Paul de Weerd wrote:
 |
 |  On Sun, Oct 26, 2008 at 12:01:40PM -0700, Chris Kuethe wrote:
 |  | On Sun, Oct 26, 2008 at 11:41 AM, Matthew Weigel [EMAIL PROTECTED] 
 wrote:
 |  |  Actually, (2^32)-1, or 4GB, is the max size per file
 |  |  (http://support.microsoft.com/kb/314463).  I can see that being a 
 problem if
 |  |  you're trying to run a database off of your thumb drive, but 
 otherwise... can
 |  |  you give examples of files that you (or anyone you know) would like 
 to access
 |  |  in Windows and OpenBSD that exceed this limit?
 |  |
 |  | dvd images are often 4.2G
 | 
 |  I agree with Chris here .. the only time I've wanted to transport
 |  large files between windows and basically !windows (macosx, linux and
 |  *bsd) they were ISO's of either regular CD's (works) or DVD's (doesn't
 |  fit in fat32).
 | 
 |  Happened to me on a couple of occassions that I wanted to do this and
 |  had to resort to network transfers (non-optimal in those
 |  circumstances).
 |
 | Come on guys.
 |
 | I believe OpenBSD can do read/write on ext2. No?
 |
 | And there is the http://www.fs-driver.org/ - also free
 | and do read/write on ext2 for Windows.

 True, but it's an external add-on that you may not always be able to
 install on the windows machine (which in my case usually isn't mine).
 OpenBSD, FreeBSD, NetBSD, Linux, Mac OSX .. they all have 'native'
 support for FAT32.

Nope. Create a small FAT32 partition on this drive and put
a driver on it. How small, it is your choice. It can be 32Gb
(a recommended maximum for FAT32) on these modern
1TB USB drives.

I believe if you google enough you'll find an Ext2 driver for
MacOS.

Alexey



Re: NTFS-3G Stable Read/Write Driver ready to merge on cvs obsd ?

2008-10-26 Thread Alexey Suslikov
On Sun, Oct 26, 2008 at 10:22 PM, Jonathan Schleifer
[EMAIL PROTECTED] wrote:
 Alexey Suslikov [EMAIL PROTECTED] wrote:

 I crashed many FAT32 partitions. NTFS is kinda complex
 to crash but, as discussed above, it is hard to access in
 full-blown read/write mode from non-Windows.

 Did you crash yoru FAT32 partitions on a regular basis? The ext2
 crashed every 2 - 4 weeks.

So you have no choice but cry.

Alexey



Re: azalia -- no sound on CURRENT

2008-10-24 Thread Alexey Suslikov
On Fri, Oct 24, 2008 at 10:57 AM, Aaron Stellman [EMAIL PROTECTED] wrote:
 Hello misc@,
 Compiled freshly checked out -current from 10/23/08 -- no sound.
 Looked through mixerctl and audioctl outputs, didn't find anything
 interesting.
 Downgraded azalia_codec.c to 1.49
   azalia.h to 1.15
   azalia.c to 1.55
 recompiled kernel -- sound works again.
 If needed, I could track down exact revision that causes the problem.
 Here's dmesg, GAMMA = GENERIC.MP + NTFS

Please drop me a mixerctl -av output diff between old (working) and
new (non-working).

Alexey



Re: U-DMA mode problems with OpenBSD 4.3 and above + SATA controllers + CF card

2008-10-23 Thread Alexey Suslikov
On Thu, Oct 23, 2008 at 4:08 AM, Stephane Lapie [EMAIL PROTECTED] wrote:
 On Oct 22, 2008, at 4:49 PM, Alexey Suslikov wrote:

 On Wed, Oct 22, 2008 at 9:15 AM, Stephane Lapie [EMAIL PROTECTED]
 wrote:

 On Oct 21, 2008, at 8:01 PM, Alexey Suslikov wrote:

 Stephane Lapie wrote:

 Hello,
 I am currently working with a Portwell NAR-5530 (network appliance
 running off Intel hardware, can use regular HDs or CF cards as boot
 device).
 We want to use this at work for network appliances, but end up
 bumping in the following problem : the kernel detects any device
 plugged to the controller (SATA or CF) as UltraDMA-5, even though the
 BIOS specifies otherwise clearly.

 You definitely should try to install recent snapshot on a CF
 card and boot GENERIC.MP with APM disabled since that
 box may mis-behave on interrupts without APCI.
 Issue bsd.mp -c in UKC than disable apm and exit.

 Since the Intel controller got two modes (Enhanced, which successfully
 activates, but provokes issues with wd0 being recognized as UDMA5 ;
 Compatible, which can't allocate properly an IRQ, probably due to an ACPI
 issue), I tried booting with both modes :
 Here is the dmesg trace for a bsd.mp kernel (I'll build a full fledged MP
 based ramdisk once I confirm this works) in Enhanced mode :

 You need to sendbug about this (including your researches)
 if you want this to be fixed in tree.

 FYI, I filed the bug under kernel/5961.

 On another note, simply detecting proper mode for the disk doesn't fix all
 of the issues ; it still seems there is a problem with the pciide driver, as
 I have confirmed the following error :

 wd0(pciide0:0:0): timeout
type: ata
c_bcount: 16384
c_skip: 0
 pciide0:0:0: bus-master DMA error: status=0x22
 pciide0:0:0: bus-master DMA error: missing interrupt, status=0x22

Check if that still true for GENERIC.MP from -current.

Alexey



Re: U-DMA mode problems with OpenBSD 4.3 and above + SATA controllers + CF card

2008-10-22 Thread Alexey Suslikov
On Wed, Oct 22, 2008 at 9:15 AM, Stephane Lapie [EMAIL PROTECTED] wrote:
 On Oct 21, 2008, at 8:01 PM, Alexey Suslikov wrote:

 Stephane Lapie wrote:

 Hello,
 I am currently working with a Portwell NAR-5530 (network appliance
 running off Intel hardware, can use regular HDs or CF cards as boot
 device).
 We want to use this at work for network appliances, but end up
 bumping in the following problem : the kernel detects any device
 plugged to the controller (SATA or CF) as UltraDMA-5, even though the
 BIOS specifies otherwise clearly.

 You definitely should try to install recent snapshot on a CF
 card and boot GENERIC.MP with APM disabled since that
 box may mis-behave on interrupts without APCI.
 Issue bsd.mp -c in UKC than disable apm and exit.

 Since the Intel controller got two modes (Enhanced, which successfully
 activates, but provokes issues with wd0 being recognized as UDMA5 ;
 Compatible, which can't allocate properly an IRQ, probably due to an ACPI
 issue), I tried booting with both modes :
 Here is the dmesg trace for a bsd.mp kernel (I'll build a full fledged MP
 based ramdisk once I confirm this works) in Enhanced mode :

You need to sendbug about this (including your researches)
if you want this to be fixed in tree.

Alexey



U-DMA mode problems with OpenBSD 4.3 and above + SATA controllers + CF card

2008-10-21 Thread Alexey Suslikov
Stephane Lapie wrote:

 Hello,

 I am currently working with a Portwell NAR-5530 (network appliance
 running off Intel hardware, can use regular HDs or CF cards as boot
 device).

 We want to use this at work for network appliances, but end up
 bumping in the following problem : the kernel detects any device
 plugged to the controller (SATA or CF) as UltraDMA-5, even though the
 BIOS specifies otherwise clearly.

You definitely should try to install recent snapshot on a CF
card and boot GENERIC.MP with APM disabled since that
box may mis-behave on interrupts without APCI.

Issue bsd.mp -c in UKC than disable apm and exit.

Alexey



Help to test important azalia(4) diffs

2008-10-13 Thread Alexey Suslikov
Hello [EMAIL PROTECTED]

We have two important diffs to azalia(4) audio driver.

1. http://marc.info/?l=openbsd-techm=122365193510743w=2

(If you mixerctl output shows to many items, you definitely
should try this one and report to us).

2. http://marc.info/?l=openbsd-techm=122381492825141w=2

This one adds S/PDIF functionality and more . Also needs testing.

Both diffs should be applied to most recent -current. Please
supply dmesg and mixerctl output diff (before and after diffs).

If you just have no regressions and no noticeable changes, it
is also important to report.

Thanks.

Alexey



Re: uvm_mapent_alloc

2008-10-11 Thread Alexey Suslikov
Vladimir Kirillov wrote:

 On 19:25 Fri 10 Oct, Beavis wrote:
  Vladimir,
 
  Sorry to bother you but I tried to apply the patch on uvm_map.c
 
  i copied the patch you gave me here and run
 
  patch -p0  uvm_map.patch
 
  I get some rej. files. any pointers or help will be greatly
  appreciated from anyone.

 or probably copy the diff to sys/uvm/ and apply it there...

This diff is corrupted by your MUA.

Alexey



dmesg ASUS EEEPC 1000H

2008-09-16 Thread Alexey Suslikov
Sven Wolf wrote:

 I've successfully installed -current on a ASUS EEEPC 1000H (via an usb
 stick).
 At the moment lii doesn't detect the wired lan adapter: Attansic
 Technology L1E rev 0xb0 but maybe there will be a patch in the future...

L1 is a gigabit chipset from Attansic. It is different than L2 found in earlier
EeePCs and currently not supported.

Alexey



Wi-Fi PCMCIA adapter

2008-09-13 Thread Alexey Suslikov
Ivan Arsenyev wrote:

 Hi, @misc,
 Please advice good PCMCIA Wi-Fi card (11g, 36 Mb/s and upper)
 working nice both at x86 and macppc platforms.

Check out ral(4) and acx(4) man pages. Maybe bwi(4).

Alexey



Re: Wi-Fi PCMCIA adapter

2008-09-13 Thread Alexey Suslikov
Ivan Arsenyev wrote:

  Check out ral(4) and acx(4) man pages. Maybe bwi(4).

 It's better to know end user's point, to avoid different
 bugs and problems. bwi(4) is badliest choice, as it's totally
 based on reverse engineering.

If ever looked into sys/arch/macppc/conf/GENERIC you should
notice there is not too much choice wrt tested wireless drivers.


 I already have bcm-based integrated card, and it's
 loss when far from access point.

So you suppose others will not? :)

Alexey



2200 MHz on a 2.00GHz

2008-09-04 Thread Alexey Suslikov
Markus Bergkvist wrote:

 2.00 GHz cpu with unknown speedstep is reported to have 2200 MHz as
 highest speed. Feature or defect? :-) Does this deserve a PR posting or
 is it ongoing work?

 $ apm -L  sysctl hw.cpuspeed
 hw.cpuspeed=1200
 $ apm -H  sysctl hw.cpuspeed
 hw.cpuspeed=2200

Have you tried this diff?

http://marc.info/?l=openbsd-techm=121493180205892w=2

I believe gwk@ (and maybe marco@ too) still needs feedback on this.

Alexey



uaudio+umidi recommendation

2008-08-11 Thread Alexey Suslikov
Hello [EMAIL PROTECTED]

Can somebody recommend well-supported external (u)audio
card with (u)midi controller?

Thanks.

Alexey



Re: ath diff for testing: please test on _old_ ar5212 ath devices

2008-07-30 Thread Alexey Suslikov
Reyk Floeter wrote:

 I just committed the 2nd version of the patch to -current but I still
 need more test reports on devices that used to work.

 - Please update to -current (for example ar5212.c 1.44) or use the patch
 that I sent to this list if your AnonCVS is not updated yet.

 - Test it on ath0 ar5212/ar5213 devices or any devices that previously
 worked OK.  Not the newish ones, but the old ones - I want to make
 sure that it does not break anything in the 4.4 release.

 The current summary is: it fixes a few devices, makes 1st gen macbooks
 happy, but not the eeepc, it fixes the MiniCard in my T61, but not
 others with different APs, it does not work on AR2413 nor AR2425
 devices yet.  So it is an improvement.

Strange. AR2413 is working now after your diff. However it is 11b only as
for now. Previously, it was unable to associate with access point.

Alexey

OpenBSD 4.4-beta (GENERIC.MP) #0: Tue Jul 29 22:44:42 EEST 2008
   [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Celeron(R) M CPU 430 @ 1.73GHz (GenuineIntel
686-class) 1.73 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,SBF,SSE3,MWAIT,TM2,xTPR
real mem  = 526479360 (502MB)
avail mem = 500744192 (477MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 02/13/07, BIOS32 rev. 0 @
0xfd390, SMBIOS rev. 2.33 @ 0xe3810 (25 entries)
bios0: vendor Acer version V3.50 date 02/13/2007
bios0: Acer TravelMate 2490
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP APIC HPET MCFG SLIC DBGP APIC BOOT SSDT SSDT
SSDT SSDT SSDT
acpi0: wakeup devices PXS1(S4) PXS2(S4) BCOL(S4) PXS4(S4) USB1(S3)
USB2(S3) USB3(S3) USB4(S3) USB7(S3) LANC(S5) MODM(S3) AZAL(S3)
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 132MHz
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEGP)
acpiprt2 at acpi0: bus 2 (RP01)
acpiprt3 at acpi0: bus 3 (RP02)
acpiprt4 at acpi0: bus 4 (RP03)
acpiprt5 at acpi0: bus 5 (RP04)
acpiprt6 at acpi0: bus 6 (PCIB)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2, C1
acpitz0 at acpi0: critical temperature 127 degC
acpitz1 at acpi0: critical temperature 100 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibtn2 at acpi0: PWRB
acpibat0 at acpi0: BAT1 model GC86503SY90  type Lion oem SONY 
acpiac0 at acpi0: AC unit online
acpivideo at acpi0 not configured
acpivideo at acpi0 not configured
bios0: ROM list: 0xc/0xea00! 0xcf000/0x1800 0xe/0x1800! 0xe3800/0x800!
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 82945GM Host rev 0x03
vga1 at pci0 dev 2 function 0 Intel 82945GM Video rev 0x03
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
agp0 at vga1: aperture at 0xc000, size 0x1000
Intel 82945GM Video rev 0x03 at pci0 dev 2 function 1 not configured
azalia0 at pci0 dev 27 function 0 Intel 82801GB HD Audio rev 0x02:
apic 1 int 22 (irq 10)
azalia0: codec[s]: Realtek ALC883, Conexant/0x2bfa, using Realtek ALC883
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x02: apic 1
int 17 (irq 11)
pci1 at ppb0 bus 2
ppb1 at pci0 dev 28 function 1 Intel 82801GB PCIE rev 0x02: apic 1
int 16 (irq 6)
pci2 at ppb1 bus 3
ppb2 at pci0 dev 28 function 2 Intel 82801GB PCIE rev 0x02: apic 1
int 18 (irq 11)
pci3 at ppb2 bus 4
ppb3 at pci0 dev 28 function 3 Intel 82801GB PCIE rev 0x02: apic 1
int 19 (irq 10)
pci4 at ppb3 bus 5
uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x02: apic 1
int 23 (irq 5)
uhci1 at pci0 dev 29 function 1 Intel 82801GB USB rev 0x02: apic 1
int 19 (irq 10)
uhci2 at pci0 dev 29 function 2 Intel 82801GB USB rev 0x02: apic 1
int 18 (irq 11)
uhci3 at pci0 dev 29 function 3 Intel 82801GB USB rev 0x02: apic 1
int 16 (irq 6)
ehci0 at pci0 dev 29 function 7 Intel 82801GB USB rev 0x02: apic 1
int 23 (irq 5)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb4 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0xe2
pci5 at ppb4 bus 6
bce0 at pci5 dev 1 function 0 Broadcom BCM4401B1 rev 0x02: apic 1
int 21 (irq 10), address 00:16:d4:b2:1d:10
bmtphy0 at bce0 phy 1: BCM4401 10/100baseTX PHY, rev. 0
ath0 at pci5 dev 2 function 0 Atheros AR2413 rev 0x01: apic 1 int 22 (irq 10)
ath0: AR2413 7.8 phy 4.5 rf 5.6, WOR3W, address 00:19:7e:02:12:55
cbb0 at pci5 dev 4 function 0 ENE CB-712 CardBus rev 0x10: apic 1
int 16 (irq 6)
ENE Memory Stick rev 0x01 at pci5 dev 4 function 1 not configured
sdhc0 at pci5 dev 4 function 2 ENE SD Controller rev 0x01: apic 1
int 17 (irq 11)
sdmmc0 at sdhc0
vendor ENE, unknown product 0x0520 (class memory subclass flash, rev
0x01) at pci5 dev 4 function 3 not configured
ENE SD/MMC rev 0x01 at pci5 dev 4 function 4 not configured
cardslot0 at cbb0 

Using savecore

2008-07-12 Thread Alexey Suslikov
Hello [EMAIL PROTECTED]

Assume the following situation:

- no serial console,
- no dmesg buffer,
- kernel crashes while box in X.

Can savecore help? If so, how can I use it?

- Alexey.



Re: How to overwrite MSS value in SYN packets?

2008-06-07 Thread Alexey Suslikov
[EMAIL PROTECTED] wrote:

 Now I tested wuth very simply topology: just 2 pc's and switch
 One OpenBSD another Linux with web server.
 Now I have only one line in my pf.conf:

 scrub all max-mss 1400 fragment reassemble

This one-liner will not work unless you have corresponding
pass rule in your pf.conf, so I highly suspect what you even
have packet filter disabled.

Do you have pf=YES in /etc/rc.conf.local?

Also, topology you have will not route packets as you told us
before.

And we don't really like linux tcpdumps here so very few will
speak up and help. If you can't get OpenBSD box to work
please provide OpenBSD tcpdump output.

- Alexey.



4.2, ppp problem

2008-05-03 Thread Alexey Suslikov
[EMAIL PROTECTED] wrote:

 I have a ppp(oe) problem under openbsd 4.2 (with 009_ppp.patch patch
 applied).


You probably should try in-kernel pppoe instead of doing things in user-land.
See man 4 pppoe for details.

- Alexey.



Novatel Wireless U720 umsm connection only partially works.

2008-03-10 Thread Alexey Suslikov
Michael [EMAIL PROTECTED] wrote:

 tun0: flags=8051UP,POINTOPOINT,RUNNING,MULTICAST mtu 1500
groups: tun egress
inet 75.192.185.229 -- 66.174.20.4 netmask 0xff0


How about adjusting mtu on tun to take ppp encapsulation overhead
in account?

- Alexey.



relayd: tagging for relay rules

2007-12-25 Thread Alexey Suslikov
Hello [EMAIL PROTECTED]

We're using relayd for proxying radio streams in our company (via relay
rules). Recently, we've decided to put these streams into a queue on the
upstream router/shaper but we need to mark them by specific TOS (like
we do for http proxy traffic going from squid).

Although I understand the difference between inserting a tagged rule into
an anchor and tagging new connection's packets, is there any possibility
to tag relayed traffic like forward rules do (and mark it by specific TOS
later on outgoing interface to make upstream shaper happy) or we need
forward rules to accomplish this because of relayd design?

Thanks.

- Alexey.



Re: acx(4) fails to assossiate on OpenBSD 4.2

2007-12-17 Thread Alexey Suslikov
df wrote:

 Sorry for top posting...and the intrusion...
 Just wondering if you solved this problem?

 Noticed that acx0 had an MSDU (MAC Service Data Unit) life timeout
 - I know you said you loaded the firmware...was it the latest? 13 Oct 07
 acx-firmware-1.4.tgz
 - What are the specifics of your connection string to the AP (Access Point)?
 I.E., how did you use ifconfig, and is the AP utilizing encryption?

He is running 4.2 so firmware should be 1.3 (1.4 is for -current).

Other choices to try:

- use -current with 1.4 firmware (recommended),
- disable apm, disable pcibios, enable acpi,
- disable ehci (or skc, or both),
- use bsd.mp.

- Alexey.



Re: Real men don't attack straw men

2007-12-16 Thread Alexey Suslikov
Richard Stallman wrote:

Torvalds' version of Linux is not free software, for this reason.
 Ututo and gNewSense include a version of Linux which remove the
 firmware blobs, in order to make it free software.

that's awesome, can users add these back in if they choose?

 I suppose so.  I don't see how anything could stop them.  Whatever the
 changes gNewSense has made in the source code of Linux, a user could
 revert them if he wants to.

 is your
project worthless because of these users 'actions?

 Not at all.  The point is to avoid things to lead users to install
 non-free software, and/or grant ethical legitimacy to non-free
 software.  gNewSense doesn't lead users to install blobs, and doesn't
 kegitimize them.

Richard, can you show us gNewSense dmesg output? Thanks.

- Alexey.



Re: Skype on the OpenBSD

2007-12-02 Thread Alexey Suslikov
Predrag Punosevac wrote:

 I apologize to everyone for my first message as it seems stirred high
 unintended emotions. I was  merely interested in the technical
 possibility to run the Skype on the OpenBSD box. As of this moment
 I do not have even a  Linux emulator turned on as I have strong
 preference for BSD license and  keeping thing as simple as possible.

Technically, you need

- fedora_base installed,
- ftp://rpmfind.net/linux/fedora/extras/4/i386/libsigc++20-2.0.17-1.i386.rpm
(needs rpm and gcpio packages to decompress),
- http://download.skype.com/linux/skype_static-1.4.0.118-oss.tar.bz2
(FreeBSD port switched to this version since Nov).

Above works for me on -current (Skype is able to start and register) but
sound is not tested.

Thing I should mention:

- noone can restrict you in using closed software like Skype (since this is
your decision) but you've been warned about possible consequences.

Good systrace policy may help to control Skype but I'm not sure this will
work with emulated binaries. Does anybody know?

- Alexey.



Paper about memory speed with multi-core CPUs

2007-11-26 Thread Alexey Suslikov
Johan Mson Lindman wrote:

  http://people.redhat.com/drepper/cpumemory.pdf
 
  - Alexey.


 Is this paper from the same Drepper as is posting in the URL below?
 http://sources.redhat.com/ml/libc-alpha/2000-08/msg00053.html

Yes. But it's up to you - to leave yourself in 2000.

- Alexey.



Paper about memory speed with multi-core CPUs

2007-11-24 Thread Alexey Suslikov
Hello [EMAIL PROTECTED]

FYI.

Abstract
As CPU cores become both faster and more numerous, the limiting factor for
most programs is now, and will be for some time, memory access. Hardware
designers have come up with ever more sophisticated memory handling and
acceleration techniquessuch as CPU cachesbut these cannot work optimally
without some help from the programmer. Unfortunately, neither the structure
nor the cost of using the memory subsystem of a computer or the caches on
CPUs is well understood by most programmers. This paper explains the
structure of memory subsystems in use on modern commodity hardware,
illustrating why CPU caches were developed, how they work, and what
programs should do to achieve optimal performance by utilizing them.

http://people.redhat.com/drepper/cpumemory.pdf

- Alexey.



Re: OT: OpenBSD on Asus eeePC

2007-11-14 Thread Alexey Suslikov
On Nov 14, 2007 10:32 AM, Andreas Maus [EMAIL PROTECTED] wrote:
 On Wed, Nov 14, 2007 at 01:02:55AM +0200, Alexey Suslikov wrote:
 Hi Alexey.

  Looks like WLAN is Atheros 5212 which is ath(4) under OpenBSD.
  See here http://forums.bsdnexus.com/viewtopic.php?pid=16360#p16360
 
  About LAN. I think it is Attansic/Atheros L2. It is unsupported as of
  4.2 and -current. There are linux drivers:
 Thank you for your enlightment ;)

  Attansic L1 Gigabit (also can be found on ASUS P5K mainboards)
  http://atl1.sourceforge.net/
 
  Attansic L2 10/100 (also can be found on ASUS F5R laptops)
  http://lwn.net/Articles/218588/
 
  Btw, Attansic drivers (according to source code and module naming)
  are somehow based on (derived from) Intel drivers.
 O.K. As long as the WLAN interface is working I have no problem.
 The CPU is powerfull enough to do IPSec so LAN is a nice to have
 for me ;)

As sthen@ mentioned, there are models with other WLAN, so be
careful with it.

- Alexey.



OT: OpenBSD on Asus eeePC

2007-11-13 Thread Alexey Suslikov
Andreas Maus wrote:

 Did anyone try to run OpenBSD on Asus new small eeePC?
 Output of /proc/cpuinfo (1) and lspci (2) can be found here:

 (1) http://scr3.golem.de/?d=0711/Eee-Testa=55901s=9
 (2) http://scr3.golem.de/?d=0711/Eee-Testa=55901s=10

 4 GB Flashdrive and 512MB+ RAM is enough and the CPU is a
 simple Celeron ... O.K. the Atheros (LAN and WLAN) adapters
 may be the problem ...

 So did anyone tried to install OpenBSD on it ?
 Will it work (of couse! ;) ) but has anyone experience
 about the nonworking devices ? (esp. the mentioned LAN/WLAN
 adapters)

Looks like WLAN is Atheros 5212 which is ath(4) under OpenBSD.
See here http://forums.bsdnexus.com/viewtopic.php?pid=16360#p16360

About LAN. I think it is Attansic/Atheros L2. It is unsupported as of
4.2 and -current. There are linux drivers:

Attansic L1 Gigabit (also can be found on ASUS P5K mainboards)
http://atl1.sourceforge.net/

Attansic L2 10/100 (also can be found on ASUS F5R laptops)
http://lwn.net/Articles/218588/

Btw, Attansic drivers (according to source code and module naming)
are somehow based on (derived from) Intel drivers.

Ask developers. Maybe these drivers are easy to port if you'll donate
couple of Eee-PCs. They are so cheap :)

- Alexey.



Re: OT: OpenBSD on Asus eeePC

2007-11-13 Thread Alexey Suslikov
Full dmesg and lspci
http://www.fabianrodriguez.com/blog/archives/2007/10/26/ubuntu-710-gibbon-swings-on-the-asus-eee/

- Alexey.

On Nov 14, 2007 1:02 AM, Alexey Suslikov [EMAIL PROTECTED] wrote:
 Andreas Maus wrote:

  Did anyone try to run OpenBSD on Asus new small eeePC?
  Output of /proc/cpuinfo (1) and lspci (2) can be found here:
 
  (1) http://scr3.golem.de/?d=0711/Eee-Testa=55901s=9
  (2) http://scr3.golem.de/?d=0711/Eee-Testa=55901s=10
 
  4 GB Flashdrive and 512MB+ RAM is enough and the CPU is a
  simple Celeron ... O.K. the Atheros (LAN and WLAN) adapters
  may be the problem ...
 
  So did anyone tried to install OpenBSD on it ?
  Will it work (of couse! ;) ) but has anyone experience
  about the nonworking devices ? (esp. the mentioned LAN/WLAN
  adapters)

 Looks like WLAN is Atheros 5212 which is ath(4) under OpenBSD.
 See here http://forums.bsdnexus.com/viewtopic.php?pid=16360#p16360

 About LAN. I think it is Attansic/Atheros L2. It is unsupported as of
 4.2 and -current. There are linux drivers:

 Attansic L1 Gigabit (also can be found on ASUS P5K mainboards)
 http://atl1.sourceforge.net/

 Attansic L2 10/100 (also can be found on ASUS F5R laptops)
 http://lwn.net/Articles/218588/

 Btw, Attansic drivers (according to source code and module naming)
 are somehow based on (derived from) Intel drivers.

 Ask developers. Maybe these drivers are easy to port if you'll donate
 couple of Eee-PCs. They are so cheap :)

 - Alexey.



Re: OT: OpenBSD on Asus eeePC

2007-11-13 Thread Alexey Suslikov
lsusb (as found in web)

Bus 005 Device 003: ID eb1a:2761 eMPIA Technology, Inc.
Bus 005 Device 002: ID 0cf2:6225 ENE Technology, Inc.
Bus 005 Device 001: ID :
Bus 004 Device 001: ID :
Bus 003 Device 001: ID :
Bus 002 Device 001: ID :
Bus 001 Device 001: ID :

0cf2:6225 ENE Technology, Inc. is probably an SD controller
and
eb1a:2761 eMPIA Technology, Inc. is probably a web-camera.

- Alexey.

On Nov 14, 2007 1:29 AM, Alexey Suslikov [EMAIL PROTECTED] wrote:
 Full dmesg and lspci
 http://www.fabianrodriguez.com/blog/archives/2007/10/26/ubuntu-710-gibbon-swings-on-the-asus-eee/

 - Alexey.


 On Nov 14, 2007 1:02 AM, Alexey Suslikov [EMAIL PROTECTED] wrote:
  Andreas Maus wrote:
 
   Did anyone try to run OpenBSD on Asus new small eeePC?
   Output of /proc/cpuinfo (1) and lspci (2) can be found here:
  
   (1) http://scr3.golem.de/?d=0711/Eee-Testa=55901s=9
   (2) http://scr3.golem.de/?d=0711/Eee-Testa=55901s=10
  
   4 GB Flashdrive and 512MB+ RAM is enough and the CPU is a
   simple Celeron ... O.K. the Atheros (LAN and WLAN) adapters
   may be the problem ...
  
   So did anyone tried to install OpenBSD on it ?
   Will it work (of couse! ;) ) but has anyone experience
   about the nonworking devices ? (esp. the mentioned LAN/WLAN
   adapters)
 
  Looks like WLAN is Atheros 5212 which is ath(4) under OpenBSD.
  See here http://forums.bsdnexus.com/viewtopic.php?pid=16360#p16360
 
  About LAN. I think it is Attansic/Atheros L2. It is unsupported as of
  4.2 and -current. There are linux drivers:
 
  Attansic L1 Gigabit (also can be found on ASUS P5K mainboards)
  http://atl1.sourceforge.net/
 
  Attansic L2 10/100 (also can be found on ASUS F5R laptops)
  http://lwn.net/Articles/218588/
 
  Btw, Attansic drivers (according to source code and module naming)
  are somehow based on (derived from) Intel drivers.
 
  Ask developers. Maybe these drivers are easy to port if you'll donate
  couple of Eee-PCs. They are so cheap :)
 
  - Alexey.



Re: OT: OpenBSD on Asus eeePC

2007-11-13 Thread Alexey Suslikov
Maybe different Eee-PC models?

If I understand correctly, AR5007 solution is based on AR2417 chip. AR5006 is
based on AR5424. And this is mini-PCI so ASUS can plug anything...

- Alexey.

On Nov 14, 2007 1:45 AM, Stuart Henderson [EMAIL PROTECTED] wrote:
 On 2007/11/14 01:02, Alexey Suslikov wrote:
  Looks like WLAN is Atheros 5212 which is ath(4) under OpenBSD.
  See here http://forums.bsdnexus.com/viewtopic.php?pid=16360#p16360

 The disassembly photos I saw showed a AR5BXB63, based on AR5007
 or something.



OpenBSD 4.2 on Intel Board S3000AHLX + QuadNic EXPI9404PT = couldn't map interrupt

2007-11-07 Thread Alexey Suslikov
[EMAIL PROTECTED] wrote:

acpi at mainbus0 not configured


Have you tried to enable acpi? GENERIC.MP with acpi?

- Alexey.



acpi global lock troubles?

2007-11-05 Thread Alexey Suslikov
giovanni wrote:

while I'm trying to better understand what happens I'm curious if
 anybody out there is having troubles w/ recent added acpi global lock
 or it's just me

 uvm_fault(..., 0x0, 0, 1) - e
 kernel: page fault trap, code=0
 stopped at acpi_acquire_glob_lock+0x4 movl 0(%ecx),%eax
 acpi_acquire_glob_lock(...)


See here
http://marc.info/?l=openbsd-cvsm=119429924024654w=2

- Alexey.



Interesting articles about drivers support

2007-10-30 Thread Alexey Suslikov
Hello.

I have found interesting articles (opinions) about hardware
support in Linux. Just FYI and interesting to read (learn).

Linux Doesn't Lack Drivers, it Lacks Complete Drivers.
http://www.apreche.net/2007/10/27/linux-doesnt-lack-drivers-it-lacks-complete-drivers/

This is a list of hardware that does not have support on Linux
and needs Linux kernel drivers written for them.
http://linuxdriverproject.org/twiki/bin/view/Main/DriversNeeded

Linux device driver project needs more unsupported devices to
work on!
http://www.desktoplinux.com/news/NS6669895837.html

- Alexey.



  1   2   >