Re: smtpd[68513]: warn: lost processor: spamassassin exited abnormally

2023-11-07 Thread Giovanni Bechis

On 11/7/23 20:16, Omar Polo wrote:

On 2023/11/07 19:30:43 +0100, Harald Dunkel  wrote:

Hi Omar,

sorry for the delay, but I have good news: The patch seems to
work. Of course I will continue to watch it.

Thanks for verifying!

Before bumping the smtp-filter protocol version I took at look at what
we had in the port tree to know what would break, but this slipped.
apologize.

If it's OK for Giovanni and Joerg I'd like to commit this and backport
to 7.4-stable (same diff tested by Harald, reattaching for convenience.)

[...]

+Index: filter-spamassassin.go
+--- filter-spamassassin.go.orig
 filter-spamassassin.go
+@@ -211,7 +211,7 @@ func run() {
+   for in.Scan() {
+   f := strings.Split(in.Text(), "|")
+   t, ver, ev, sid := f[0], f[1], f[4], f[5]
+-  if (t != "filter" && t != "report") || ver != "0.6" {
++  if (t != "filter" && t != "report") || ver != "0.7" {
+   l3.Err(fmt.Sprintln(sid, "protocol", t, ver))

does this still works with previous protocol versions ?

ok giovanni@ in any case for current and 7.4 since it will be a no-op on 
OpenBSD.
 Cheers
   Giovanni


Re: Courier-Imap no longer accepts ssl connections after update to -current

2019-11-03 Thread Giovanni Bechis
Theodore Wynnychenko  wrote:
> Hi (again): 
> 
> After updating to current yesterday, and then updating all the packages
> (using "pkg_add -vui -Dsnap"), I can no longer connect to the ssl (993) port
> of the courier-imap server running on the system.
> 
> Prior to the update, ssl connections were working without an issue. 
> 
it's working fine for me with:
$ ldd /usr/local/bin/couriertls | grep ssl 
11ae13a38000 11ae13a9c000 rlib  01   0  
/usr/lib/libssl.so.48.0
and 
OpenBSD 6.6-current (GENERIC.MP) #425: Fri Nov  1 23:49:35 MDT 2019

there is a libssl bump ongoing, maybe you should rebuild courier-imap
from ports or wait for next packages.

does "openssl s_client -connect 127.0.0.1:993" works as expected
and show you the correct certificate ?
 

> Now, when trying to connect, the client gets a "A secure connection to the
> server cannot be established" message. 
> 
> On the server, I see the following in the log for each ssl connection
> attempt: 
> 
> Nov  2 07:40:38 host imapd-ssl: ip=[:::127.0.0.1], couriertls:
> /etc/ssl/private/imapd.pem: error:02FFF00D:system
> library:func(4095):Permission denied
> 
> Nov  2 07:40:38 host imapd-ssl: ip=[:::127.0.0.1], couriertls:
> /etc/ssl/private/imapd.pem: error:20FFF002:BIO
> routines:CRYPTO_internal:system lib
> 
> The packages for courier currently installed are: 
> 
> pkg_info | grep courier 
> courier-authlib-0.69.1  authentication library for courier 
> courier-authlib-mysql-0.69.1mysql authentication module for
> courier-authLib 
> courier-imap-5.0.8  imap server for maildir format mailboxes 
> courier-pop3-5.0.8  pop3 server for maildir format mailboxes 
> courier-unicode-2.1 courier unicode library 
> 
> I did not make any changes to the /etc/courier/imapd-ssl configuration file.
> What was working for me before was: 
> cat imapd-ssl |grep -v ^$ | grep -v ^# 
> SSLPORT=993 
> SSLADDRESS=0 
> MAXDAEMONS=500 
> MAXPERIP=100 
> SSLPIDFILE=/var/run/courier/imapd-ssl.pid 
> SSLLOGGEROPTS="-name=imapd-ssl" 
> IMAPDSSLSTART=YES 
> IMAPDSTARTTLS=NO 
> IMAP_TLS_REQUIRED=0 
> COURIERTLS=/usr/local/bin/couriertls 
> TLS_CERTFILE=/etc/ssl/private/imapd.pem 
> TLS_DHPARAMS=/etc/ssl/private/imapd.pem 
> TLS_TRUSTCERTS=/etc/ssl/CA/cacert.pem 
> TLS_VERIFYPEER=NONE 
> MAILDIRPATH=Maildir 
> 
> Anyway, I don't know what the error lines really mean.  I am wondering if it
> is something do with the "interface" between courier and the ssl libraries.
> I have tried "exploring" the web on this over the last 24 hours, but have
> been unable to find anything to point me in any direction.
> 
> As this is an "internal" mail-server, I just re-enabled the non-ssl
> connection, so I can still connect to my mail. 
> 
> But, I am wondering if there is anything that I could do to resolve this
> ssl-connection issue. 
> 
> Thanks (again) 
> Ted 
> 
> 
> 



Re: Courier Imap not accepting connections after updat to -curent

2018-11-21 Thread Giovanni Bechis
On 11/18/18 10:35 PM, Theodore Wynnychenko wrote:
> Hello 
> 
> I just updated to -current using a snapshot. 
> 
> I then updated packages (pkg_add -vui), which updated courier-imap. 
> 
> pkg_info | grep courier 
> courier-authlib-0.68.0p4 authentication library for courier 
> courier-authlib-mysql-0.68.0p3 mysql authentication module for
> courier-authLib 
> courier-imap-4.18.2p0 imap server for maildir format mailboxes 
> courier-pop3-4.18.2p0 pop3 server for maildir format mailboxes 
> courier-unicode-2.0p0 courier unicode library 
> 
> Courier does start, and is listening for imap-ssl connections: 
> 
> netstat -an | grep 993 
> tcp 0 0 *.993 *.* LISTEN 
> tcp6 0 0 *.993 *.* LISTEN 
> 
what's the output of 
openssl s_client -connect $YOURIP:993

does it works without ssl ?
There were some issues recently fixed in libssl land, can you try very latest 
snapshot ?

 Cheers
  Giovanni



Re: new 6.2-beta error: intel_uncore_check_errors Unclaimed register before interrupt

2017-08-29 Thread Giovanni Bechis
On 08/23/17 05:32, Derek Sivers wrote:
> Hardware : Lenovo Thinkpad T440S
> 
> This error used to happen only once each time I'd boot up:
> "error: [drm:pid46210:intel_uncore_check_errors] *ERROR* Unclaimed register 
> before interrupt"
> 
> It's never been a problem from OpenBSD 5.9 through 6.1.
> But now in 6.2-beta it's a problem. It goes on for hundreds of lines,
> and takes about a minute to finish all of its warnings.
> 
Similar error here, but only when an external vga monitor is *not* connected.
If I connect an external monitor the kernel prints just a few errors, if the 
external monitor it's not connected I have thousands.
 Cheers
   Giovanni
OpenBSD 6.1-current (GENERIC.MP) #0: Wed Aug 16 11:47:50 MDT 2017
dera...@t.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 4183527424 (3989MB)
avail mem = 4049580032 (3861MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xccbff000 (42 entries)
bios0: vendor TOSHIBA version "Version 5.00" date 02/15/2017
bios0: TOSHIBA PORTEGE R30-A
acpi0 at bios0: rev 0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP HPET APIC MCFG BOOT MSDM SLIC SSDT SSDT SSDT ASF! SSDT SSDT SSDT DMAR FPDT
acpi0: wakeup devices GLAN(S4) EHC1(S3) EHC2(S3) XHC_(S3) HDEF(S3) RP06(S4) PXSX(S4) PWRB(S4) LID_(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5-4310M CPU @ 2.70GHz, 2694.11 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,SENSOR,ARAT
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: TSC frequency 2694107400 Hz
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) i5-4310M CPU @ 2.70GHz, 2693.77 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,SENSOR,ARAT
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 1, core 0, package 0
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Intel(R) Core(TM) i5-4310M CPU @ 2.70GHz, 2693.77 MHz
cpu2: 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,SENSOR,ARAT
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 1, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Core(TM) i5-4310M CPU @ 2.70GHz, 2693.77 MHz
cpu3: 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,SENSOR,ARAT
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xf800, bus 0-63
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEGP)
acpiprt2 at acpi0: bus 4 (RP03)
acpiprt3 at acpi0: bus 2 (RP06)
acpiprt4 at acpi0: bus 1 (RP07)
acpicpu0 at acpi0: C2(200@148 mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C2(200@148 mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpicpu2 at acpi0: C2(200@148 mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpicpu3 at acpi0: C2(200@148 mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpipwrres0 at acpi0: PDOC, resource for DOCK
acpitz0 at acpi0: critical temperature is 102 degC
"TOS7407" at acpi0 not configured
"TTP1000" at acpi0 not configured
"PNP0C14" at acpi0 not configured
acpitoshiba0 at acpi0
"TOS620A" at acpi0 not configured
"TOS6205" at acpi0 not configured
acpiac0 at acpi0: AC unit offline
acpibtn0 at acpi0: PWRB
acpibtn1 at acpi0: LID_
acpibat0 at acpi0: BAT1 model "G71C000GJ210" serial 0 type Li-ION   oem "0"
"INT340E" at acpi0 not configured
acpi

Re: Minor fix for events.html: closing a tag

2015-10-29 Thread Giovanni Bechis
On 10/28/15 23:29, li...@wrant.com wrote:
>> On Wed, 28 Oct 2015 12:51:27 -0600 (MDT) Giovanni Bechis
>> <giova...@openbsd.org> wrote:
>>
>>> CVSROOT:/cvs
>>> Module name:www
>>> Changes by: giova...@cvs.openbsd.org2015/10/28 12:51:27
>>>
>>> Modified files:
>>> .  : events.html 
>>>
>>> Log message:
>>> I will give 2 talks at OpenSourceDay at the university of Udine, Italy
>>>
>>>   
>>
>> Hi Giovanni,
>>
>> Spotted this a while back and thought it may be a mistype that would
>> be corrected on follow up updates, please see if this fixes anything.
> 
> Readjustment to match www/events.html r1.1007
> 
Committed, thanks.
 Cheers
  Giovanni



Re: Broadcom's bcm4313 not yet supported ?

2013-06-18 Thread Giovanni Bechis
Tori Mus torimus...@gmail.com wrote:
 Hi,
 
 just installed OpenBSD-current and most of things do work out of box.
 However Broadcom's wireless card BCM4313 does appear in dmesg output as
 properly detected but not initialized/configured:
 
  snip 
 pci2 at ppb1 bus 2
 Broadcom BCM4313 rev 0x01 at pci2 dev 0 function 0 not configured
  snip 
 
 Ifconfig does not list this card. (bwi?) expected.
 Even tried if the missing firmware is the cause, but fw_update only fetched
 firmware for a webcam.
 
I tried to hack a bit on bwi but when it attaches it does not load the firmware,
I think that bwn should be ported from FreeBSD:
http://svnweb.freebsd.org/base/head/sys/dev/bwn/
 Cheers
  Giovanni



Re: hylafax, sendfax, txtfmt

2013-06-12 Thread Giovanni Bechis
Peter Fraser p...@thinkage.ca wrote:
 I assume  the error is caused by a misconfigured hyla.conf located at 
 /usr/local/libdata/hylafax/etc/hyla.conf 
 which I currently have as 
 
 FontMap:/usr/local/share/ghostscript/fonts/fonts.alias:/usr/local/share/ghostscript/fonts/fonts.alias-gs
 FontPath:/usr/local/share/ghostscript/fonts/fonts.dir
 TextFont:Courier
 
This a correct FontMap I have:
FontMap:   
/usr/local/share/ghostscript/9.06/Resource/Init:/usr/local/share/ghostscript/9.06/lib:/usr/local/share/ghostscript/9.06/Resource/Font:/usr/local/share/ghostscript/fonts:/usr/local/libdata/hylafax/etc

Here is a patch to fix the issue, in post-install a hyla.conf will be created 
as a hint for faxsetup.
-
Index: Makefile
===
RCS file: /cvs/ports/comms/hylafax/Makefile,v
retrieving revision 1.68
diff -u -p -u -p -r1.68 Makefile
--- Makefile12 Apr 2013 14:06:38 -  1.68
+++ Makefile12 Jun 2013 17:32:06 -
@@ -2,7 +2,7 @@
 
 COMMENT=   send/receive faxes and share modems
 DISTNAME=  hylafax-6.0.6
-REVISION=0
+REVISION=  1
 CATEGORIES=comms
 
 HOMEPAGE=  http://www.HylaFAX.org/
@@ -58,5 +58,8 @@ NO_TEST=  Yes
 
 pre-configure:
${SUBST_CMD} ${WRKSRC}/configure
+
+post-install:
+   echo FontMap: ${TRUEPREFIX}/share/ghostscript/fonts 
${PREFIX}/libdata/hylafax/etc/hyla.conf
 
 .include bsd.port.mk
Index: pkg/PLIST
===
RCS file: /cvs/ports/comms/hylafax/pkg/PLIST,v
retrieving revision 1.19
diff -u -p -u -p -r1.19 PLIST
--- pkg/PLIST   19 Jul 2012 15:05:30 -  1.19
+++ pkg/PLIST   12 Jun 2013 17:32:06 -
@@ -133,6 +133,7 @@ libdata/hylafax/etc/faxcover_example_sgi
 libdata/hylafax/etc/faxmail.ps
 libdata/hylafax/etc/hfaxd.conf
 libdata/hylafax/etc/hosts.hfaxd
+libdata/hylafax/etc/hyla.conf
 libdata/hylafax/etc/lutRS18.pcf
 libdata/hylafax/etc/pagesizes
 libdata/hylafax/etc/templates/
-
 Use Class 1 unless you have a good reason not to.
 
 grep: : No such file or directory
is the tty you specified correct ?
 Cheers
  Giovanni



Re: npppd as pptpdserver

2012-10-29 Thread Giovanni Bechis
mxb m...@alumni.chalmers.se wrote:
 I hope this ever can be updated or a real man page can show up.
 I move from snap to snap and thus can not do it yet, until info is up2date.
 
in -current there is a man page for npppd.conf.
 Cheers
  Giovanni



Re: npppd as pptpdserver

2012-10-26 Thread Giovanni Bechis
YASUOKA Masahiko yasu...@yasuoka.net wrote:
 Please refer
 
 http://www.openbsd.org/cgi-bin/cvsweb/~checkout~/src/usr.sbin/npppd/Attic/HOWTO_PIPEX_NPPPD.txt?rev=1.8;content-type=text%2Fplain
 
 revision 1.8 or upgrade to the latest snapshot.
 
keep in mind that latest snap has a totally different configuration syntax.
 Giovanni



Re: Favorite IDE for C programming on OpenBSD

2012-09-26 Thread Giovanni Bechis
Joel Rees j...@alpsgiken.gr.jp wrote:
 Anyone tried Kylix under Linux emulation?  ;-
 
I tried an old version and it worked, if I remember correctly it was
OpenBSD 3.8.
 Cheers
  Giovanni



Re: gimp 2.8 on OpeBSD -current

2012-07-19 Thread Giovanni Bechis
Fred Crowson fred.crow...@gmail.com wrote:
 Hi misc@
 
 I'm getting the following errors when running gimp-2.8.0p0 on OpenBSD
 -current (Jun 28 i386 snapshot):
 
I worked on this during g2k12, it has been fixed in gimp-2.8.0p1.
 Cheers



Re: openbsd running on asus eeepc 1000H?

2012-07-14 Thread giovanni
hi,

alas Fn+{F5,F6} does not work and so the brightness can't change. the
following is an humble patch against -current that makes Fn+{F5,F6}
playing

Index: acpiasus.c
===
RCS file: /cvs/src/sys/dev/acpi/acpiasus.c,v
retrieving revision 1.12
diff -u -p -u -r1.12 acpiasus.c
--- acpiasus.c  6 Jun 2011 06:13:46 -   1.12
+++ acpiasus.c  14 Jul 2012 16:00:45 -
@@ -88,6 +88,7 @@ void  acpiasus_attach(struct device *, st
 void   acpiasus_init(struct device *);
 intacpiasus_notify(struct aml_node *, int, void *);
 intacpiasus_activate(struct device *, int);
+void   brightness(int, struct acpiasus_softc *);

 #if NAUDIO  0  NWSKBD  0
 extern int wskbd_set_mixervolume(long dir, int out);
@@ -151,9 +152,12 @@ int
 acpiasus_notify(struct aml_node *node, int notify, void *arg)
 {
struct acpiasus_softc *sc = arg;
+   int val;

if (notify = ASUS_NOTIFY_BRIGHTNESSLOW 
notify = ASUS_NOTIFY_BRIGHTNESSHIGH) {
+   val = notify - 0x20;
+   brightness(val, sc);
 #ifdef ACPIASUS_DEBUG
printf(%s: brightness %d percent\n, DEVNAME(sc),
(notify  0xf) * 100 / 0xf);
@@ -237,4 +241,16 @@ acpiasus_activate(struct device *self, i
break;
}
return (0);
+}
+
+void brightness(int val, struct acpiasus_softc *sc)
+{
+   struct aml_value cmd;
+
+   bzero(cmd, sizeof(cmd));
+   cmd.v_integer = val;
+   cmd.type = AML_OBJTYPE_INTEGER;
+
+   if (aml_evalname(sc-sc_acpi, sc-sc_devnode, PBLS, 1, cmd, NULL))
+   printf(%s: no PBLS\n, DEVNAME(sc));
 }


2012/7/11 giovanni qgiova...@gmail.com:
 hi misc,

 anybody out there w/ an asus eepc 1000H model running openbsd?
 I've found this netbook in a recycle hw store and I would be interested
 in using it for some needs.

 thanks

 --
 see ya,
 giovanni



-- 
cya,
giovanni



Re: openbsd running on asus eeepc 1000H?

2012-07-12 Thread giovanni
 Genesys Logic USB
2.0 Camera rev 2.00/9.12 addr 2
video0 at uvideo0
ugen0 at uhub4 port 1 Broadcom Corp BT-253 rev 2.00/2.41 addr 2
vscsi0 at root
scsibus0 at vscsi0: 256 targets
softraid0 at root
scsibus1 at softraid0: 256 targets
root on wd0a (032db0701cae5f0a.a) swap on wd0b dump on wd0b


-- 
cya,
giovanni



openbsd running on asus eeepc 1000H?

2012-07-11 Thread giovanni
hi misc,

anybody out there w/ an asus eepc 1000H model running openbsd? 
I've found this netbook in a recycle hw store and I would be interested 
in using it for some needs. 

thanks

-- 
see ya,
giovanni



Re: Snappy Answers to Stupid Questions - WTF?

2012-03-09 Thread giovanni
tl;dr

-- 
see ya,
giovanni



Re: Use posifx + courrier-imap + quota

2011-12-16 Thread Giovanni Bechis
Bruno Gruel b.gr...@sdnet.info wrote:
 Hello,
 
 I'm under openbsd 4.9 and i'm using postifx + courrier-imap from long 
 time. I want to use quota on my system but i have some troubles with the 
 maildirmake command.
 
 When i use maildirmake -q xs folder the command hang up and don(t 
 give me back the hand).
 
 When i use the same command without the -q i can create the folder.
 
 Have got somme idea ..?
 
You should create the directory with `maildirmake dir`, then set the quota
with `maildirmake -q 1024S dir`.
 Cheers
  Giovanni



rum: could not multi write/read MAC register

2011-12-12 Thread giovanni q
 function 0 Intel 82801GBM LPC rev 0x02
pciide0 at pci0 dev 31 function 1 Intel 82801GB IDE rev 0x02: DMA,
channel 0 configured to compatibility, channel 1 configured to
compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: PIONEER, DVD-RW DVR-K16M, 1.10 ATAPI
5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 ignored (disabled)
pciide1 at pci0 dev 31 function 2 Intel 82801GBM SATA rev 0x02: DMA,
channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide1: using apic 1 int 19 for native-PCI interrupt
wd0 at pciide1 channel 0 drive 0: HTS541010G9SA00
wd0: 16-sector PIO, LBA48, 95396MB, 195371568 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5
ichiic0 at pci0 dev 31 function 3 Intel 82801GB SMBus rev 0x02: apic 1 int 19
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 512MB DDR2 SDRAM non-parity PC2-4200CL5 SO-DIMM
spdmem1 at iic0 addr 0x52: 512MB DDR2 SDRAM non-parity PC2-4200CL5 SO-DIMM
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 Intel UHCI root hub rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 Intel UHCI root hub rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 Intel UHCI root hub rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 Intel UHCI root hub rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pms0: ALPS Glidepoint, version 0x7321
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
mtrr: Pentium Pro MTRR support
rum0 at uhub0 port 1 Belkin Belkin 54g USB Network Adapter rev
2.00/0.01 addr 2
rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528, address 00:22:75:ae:22:98
umass0 at uhub0 port 6 configuration 1 interface 0 Sony UMH-U09 rev
2.00/4.52 addr 3
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets, initiator 0
sd0 at scsibus1 targ 1 lun 0: Sony, USB HS-CARD, 4.52 SCSI0 0/direct
removable serial.054c0281F021E45C
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on wd0a swap on wd0b dump on wd0b


-- 
see ya,
giovanni



pflogd: default snaplen

2011-10-12 Thread giovanni
hi,

-s snaplen
 Analyze at most the first snaplen bytes of data from each packet
 rather than the default of 116.  The default of 116 is adequate
 for IP, ICMP, TCP, and UDP headers but may truncate protocol
 information for other protocols.  Other file parsers may desire a
 higher snaplen.

it seems to me that the default is 160. am I wrong?

#define DEF_SNAPLEN 160 /* pfloghdr + ip hdr + proto hdr fit usually */

-- 
see ya,
giovanni



Re: pflogd: default snaplen

2011-10-12 Thread giovanni
oops :-)

On Wed, Oct 12, 2011 at 11:56 AM, giovanni qgiova...@gmail.com wrote:
 hi,

-s snaplen
 Analyze at most the first snaplen bytes of data from each
packet
 rather than the default of 116.  The default of 116 is adequate
 for IP, ICMP, TCP, and UDP headers but may truncate protocol
 information for other protocols.  Other file parsers may desire
a
 higher snaplen.

 it seems to me that the default is 160. am I wrong?

 #define DEF_SNAPLEN 160 /* pfloghdr + ip hdr + proto hdr fit usually
*/

 --
 see ya,
 giovanni




--
see ya,
giovanni



umsm: another device supported

2011-10-05 Thread giovanni
umsm0 at uhub0 port 1 configuration 1 interface 0 HUAWEI Technology HUAWEI 
Mobile rev 2.00/0.00 addr 2
umsm1 at uhub0 port 1 configuration 1 interface 1 HUAWEI Technologies HUAWEI 
Mobile Modem rev 2.00/0.00 addr 2
umsm0 detached
umsm1 detached
umsm0 at uhub0 port 1 configuration 1 interface 0 HUAWEI Technology HUAWEI 
Mobile rev 2.00/0.00 addr 2
ucom0 at umsm0
umsm1 at uhub0 port 1 configuration 1 interface 1 HUAWEI Technology HUAWEI 
Mobile rev 2.00/0.00 addr 2
ucom1 at umsm1
umsm2 at uhub0 port 1 configuration 1 interface 2 HUAWEI Technology HUAWEI 
Mobile rev 2.00/0.00 addr 2
ucom2 at umsm2
umsm3 at uhub0 port 1 configuration 1 interface 3 HUAWEI Technology HUAWEI 
Mobile rev 2.00/0.00 addr 2
ucom3 at umsm3
umsm4 at uhub0 port 1 configuration 1 interface 4 HUAWEI Technology HUAWEI 
Mobile rev 2.00/0.00 addr 2
umsm5 at uhub0 port 1 configuration 1 interface 5 HUAWEI Technology HUAWEI 
Mobile rev 2.00/0.00 addr 2

root@icarus64:/root# cu -l ttyU0
Connected
ATI
Manufacturer: huawei
Model: E173
Revision: 11.126.15.00.00
+GCAP: +CGSM,+DS,+ES

RCS file: /cvs/src/share/man/man4/umsm.4,v
retrieving revision 1.72
diff -u -p -u -r1.72 umsm.4
--- umsm.4  3 Sep 2011 22:59:08 -   1.72
+++ umsm.4  5 Oct 2011 09:01:16 -
@@ -56,6 +56,7 @@ driver:
 .It Li Huawei Mobile E160g Ta USB
 .It Li Huawei Mobile E1692 Ta USB
 .It Li Huawei Mobile E172 Ta USB
+.It Li Huawei Mobile E173 Ta USB
 .It Li Huawei Mobile E180 Ta USB
 .It Li Huawei Mobile E181 Ta USB
 .It Li Huawei Mobile E182 Ta USB

-- 
see ya,
giovanni



ftp5.eu.openbsd.org down?

2010-12-07 Thread giovanni
-- 
see ya,
giovanni



ppp problem after upgrading to 4.8-current

2010-08-24 Thread giovanni
 
rev. A1 (0x1): apic 1 int 16 (irq 7)
msk0 at mskc0 port A: address 00:13:a9:60:1b:eb
eephy0 at msk0 phy 0: 88E3082 10/100 PHY, rev. 3
ppb1 at pci0 dev 28 function 1 Intel 82801GB PCIE rev 0x02: apic 1 int 16 
(irq 7)
pci2 at ppb1 bus 4
ppb2 at pci0 dev 28 function 2 Intel 82801GB PCIE rev 0x02: apic 1 int 18 
(irq 11)
pci3 at ppb2 bus 6
wpi0 at pci3 dev 0 function 0 Intel PRO/Wireless 3945ABG rev 0x02: apic 1 int 
18 (irq 11), MoW2, address 00:18:de:ad:3e:96
ppb3 at pci0 dev 28 function 3 Intel 82801GB PCIE rev 0x02: apic 1 int 21 
(irq 10)
pci4 at ppb3 bus 8
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 17 
(irq 3)
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 7)
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 10
cbb0 at pci5 dev 3 function 0 TI PCIXX12 CardBus rev 0x00: apic 1 int 16 (irq 
255), CardBus support disabled
TI PCIXX12 FireWire rev 0x00 at pci5 dev 3 function 1 not configured
TI PCIXX12 Multimedia Card Reader rev 0x00 at pci5 dev 3 function 2 not 
configured
cardslot0 at cbb0 slot 0 flags 0
pcmcia0 at cardslot0
pcib0 at pci0 dev 31 function 0 Intel 82801GBM LPC rev 0x02
pciide0 at pci0 dev 31 function 1 Intel 82801GB IDE rev 0x02: DMA, channel 0 
configured to compatibility, channel 1 configured to compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: PIONEER, DVD-RW DVR-K16M, 1.10 ATAPI 5/cdrom 
removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 ignored (disabled)
pciide1 at pci0 dev 31 function 2 Intel 82801GBM SATA rev 0x02: DMA, channel 
0 configured to native-PCI, channel 1 configured to native-PCI
pciide1: using apic 1 int 19 (irq 10) for native-PCI interrupt
wd0 at pciide1 channel 0 drive 0: HTS541010G9SA00
wd0: 16-sector PIO, LBA48, 95396MB, 195371568 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5
ichiic0 at pci0 dev 31 function 3 Intel 82801GB SMBus rev 0x02: apic 1 int 19 
(irq 10)
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 512MB DDR2 SDRAM non-parity PC2-4200CL5 SO-DIMM
spdmem1 at iic0 addr 0x52: 512MB DDR2 SDRAM non-parity PC2-4200CL5 SO-DIMM
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 Intel UHCI root hub rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 Intel UHCI root hub rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 Intel UHCI root hub rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 Intel UHCI root hub rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
mtrr: Pentium Pro MTRR support
umass0 at uhub0 port 6 configuration 1 interface 0 Sony UMH-U09 rev 2.00/4.52 
addr 2
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets, initiator 0
sd0 at scsibus1 targ 1 lun 0: Sony, USB HS-CARD, 4.52 SCSI0 0/direct removable
sd0: drive offline
uhub0: port 1 reset failed
umass1 at uhub0 port 1 configuration 1 interface 0 Nokia E52 rev 2.00/1.00 
addr 3
umass1: using SCSI over Bulk-Only
scsibus2 at umass1: 2 targets, initiator 0
sd1 at scsibus2 targ 1 lun 0: Nokia, S60, 1.0 SCSI0 0/direct removable
sd1: drive offline
softraid0 at root
root on wd0a swap on wd0b dump on wd0b
sd1 detached
scsibus2 detached
umass1 detached
umodem0 at uhub0 port 1 configuration 1 interface 1 Nokia E52 rev 2.00/1.00 
addr 3
umodem0: data interface 2, has no CM over data, has break
umodem0: status change notification available
ucom0 at umodem0

-- 
see ya,
giovanni



umodem.c: looking for a solution

2010-06-07 Thread giovanni
bConfigurationValue=2 iConfiguration=0() bmAttributes=80 bMaxPower=100 mA

INTERFACE descriptor 0:
bLength=9 bDescriptorType=interface(4) bInterfaceNumber=0 bAlternateSetting=0
bNumEndpoints=1 bInterfaceClass=2 bInterfaceSubClass=2
bInterfaceProtocol=1 iInterface=0()

ENDPOINT descriptor:
bLength=7 bDescriptorType=endpoint(5) bEndpointAddress=1-in
bmAttributes=interrupt wMaxPacketSize=64 bInterval=128

INTERFACE descriptor 1:
bLength=9 bDescriptorType=interface(4) bInterfaceNumber=1 bAlternateSetting=0
bNumEndpoints=2 bInterfaceClass=10 bInterfaceSubClass=0
bInterfaceProtocol=0 iInterface=0()

ENDPOINT descriptor:
bLength=7 bDescriptorType=endpoint(5) bEndpointAddress=2-in
bmAttributes=bulk wMaxPacketSize=64 bInterval=10

ENDPOINT descriptor:
bLength=7 bDescriptorType=endpoint(5) bEndpointAddress=2-out
bmAttributes=bulk wMaxPacketSize=64 bInterval=10

INTERFACE descriptor 2:
bLength=9 bDescriptorType=interface(4) bInterfaceNumber=2 bAlternateSetting=0
bNumEndpoints=2 bInterfaceClass=10 bInterfaceSubClass=0
bInterfaceProtocol=0 iInterface=0()

ENDPOINT descriptor:
bLength=7 bDescriptorType=endpoint(5) bEndpointAddress=3-in
bmAttributes=bulk wMaxPacketSize=64 bInterval=1

ENDPOINT descriptor:
bLength=7 bDescriptorType=endpoint(5) bEndpointAddress=3-out
bmAttributes=bulk wMaxPacketSize=64 bInterval=1

Unknown descriptor (class 10/0):
bLength=5 bDescriptorType=36 ...

Unknown descriptor (class 10/0):
bLength=5 bDescriptorType=36 ...

Unknown descriptor (class 10/0):
bLength=4 bDescriptorType=36 ...

Unknown descriptor (class 10/0):
bLength=5 bDescriptorType=36 ...

Unknown descriptor (class 10/0):
bLength=6 bDescriptorType=36 ...

current configuration 1

-- 
see ya,
giovanni



today snapshot: missing library for common extensions

2010-05-14 Thread giovanni
maybe I need a coffe but it seems that

libXext.so.11.0

is missing from today snaphost [amd64]

-- 
see ya,
giovanni



urndis

2010-03-15 Thread giovanni
tested on amd64 w/ my HTC tattoo

[...]
umass0 at uhub0 port 3 configuration 1 interface 0 HTC Android Phone
rev 2.00/1.00 addr 2
umass0: using SCSI over Bulk-Only
scsibus2 at umass0: 2 targets, initiator 0
sd0 at scsibus2 targ 1 lun 0: HTC, Android Phone, 0100 SCSI2
0/direct removable
sd0: drive offline
sd0 detached
scsibus2 detached
umass0 detached
urndis0 at uhub0 port 3 configuration 1 interface 0 HTC Android
Phone rev 2.00/1.00 addr 2
urndis0: address 82:f1:8d:ce:5a:cb
[...]

-- 
see ya,
giovanni



Re: packets redirected to loopback never appear in tcpdump

2009-02-24 Thread Giovanni Bechis

Gregory Edigarov wrote:

Hello,

Is this a bug of feature?
the test case:


This works for me with 4.5-beta:

$ sudo ifconfig lo1 192.168.3.1
Password:
$ ping 192.168.3.1
PING 192.168.3.1 (192.168.3.1): 56 data bytes
64 bytes from 192.168.3.1: icmp_seq=0 ttl=255 time=0.036 ms
64 bytes from 192.168.3.1: icmp_seq=1 ttl=255 time=0.026 ms
64 bytes from 192.168.3.1: icmp_seq=2 ttl=255 time=0.034 ms

$ sudo tcpdump -i lo1
tcpdump: listening on lo1, link-type LOOP
18:38:59.733246 192.168.3.1  192.168.3.1: icmp: echo request
18:38:59.733252 192.168.3.1  192.168.3.1: icmp: echo reply
18:39:00.743249 192.168.3.1  192.168.3.1: icmp: echo request

$ uname -a 


OpenBSD bigio.snb.it 4.5 GENERIC.MP#0 amd64

 Cheers
  Giovanni



Attansic L1: age

2009-01-16 Thread giovanni
it has been working since yesterday morning...

thanks for your work!

 2:0:0: Attansic Technology L1
0x: Vendor ID: 1969 Product ID: 1048
0x0004: Command: 0006 Status ID: 0010
0x0008: Class: 02 Subclass: 00 Interface: 00 Revision: b0
0x000c: BIST: 00 Header Type: 00 Latency Timer: 00 Cache Line Size: 08
0x0010: BAR mem 64bit addr: 0xfe8c
0x0018: BAR empty ()
0x001c: BAR empty ()
0x0020: BAR empty ()
0x0024: BAR empty ()
0x0028: Cardbus CIS: 
0x002c: Subsystem Vendor ID: 1043 Product ID: 8226
0x0030: Expansion ROM Base Address: fe8a
0x0038: 
0x003c: Interrupt Pin: 01 Line: 0a Min Gnt: 00 Max Lat: 00
0x0040: Capability 0x01: Power Management
0x0048: Capability 0x05: Message Signaled Interrupts (MSI)
0x0058: Capability 0x10: PCI Express
0x006c: Capability 0x03: Vital Product Data (VPD)

age0 at pci3 dev 0 function 0 Attansic Technology L1 rev 0xb0: apic
2 int 17 (irq 10), address 00:1f:c6:ac:b6:4b
ukphy0 at age0 phy 0: Generic IEEE 802.3u media interface, rev. 5: OUI
0x001374, model 0x0001

age0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:1f:c6:ac:b6:4b
priority: 0
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet 192.168.0.1 netmask 0xff00 broadcast 192.168.0.255
inet6 fe80::21f:c6ff:feac:b64b%age0 prefixlen 64 scopeid 0x1

-- 
see ya,
giovanni



Xorg: ABI mismatch

2008-11-06 Thread giovanni
just updated latest Xorg. apart from the sync-to-vblank intel's issue no 
troubles at all at first glance 
but I start seeing this in the logs (excerpt)

(II) LoadModule: record
(II) Loading /usr/X11R6/lib/modules/extensions//librecord.so
(II) Module record: vendor=X.Org Foundation
compiled for 1.4.2, module version = 1.13.0
Module class: X.Org Server Extension
ABI class: X.Org Server Extension, version 0.3
(EE) module ABI major version (0) doesn't match the server's version (1)
(II) UnloadModule: record
(II) Unloading /usr/X11R6/lib/modules/extensions//librecord.so
(EE) Failed to load module record (module requirement mismatch, 0)
(II) LoadModule: xtrap

(II) Loading /usr/X11R6/lib/modules/extensions//libxtrap.so
(II) Module xtrap: vendor=X.Org Foundation
compiled for 1.4.2, module version = 1.0.0
Module class: X.Org Server Extension
ABI class: X.Org Server Extension, version 0.3
(EE) module ABI major version (0) doesn't match the server's version (1)
(II) UnloadModule: xtrap
(II) Unloading /usr/X11R6/lib/modules/extensions//libxtrap.so
(EE) Failed to load module xtrap (module requirement mismatch, 0)

for taking away it I've temporary added

Section ServerFlags
OptionIgnoreABITrue
EndSection 

-- 
see ya,
giovanni



Re: Xorg: ABI mismatch

2008-11-06 Thread giovanni
On Thu, Nov 6, 2008 at 3:35 PM, Owain Ainsworth [EMAIL PROTECTED] wrote:
 On Thu, Nov 06, 2008 at 09:18:13AM +0100, giovanni wrote:
 just updated latest Xorg. apart from the sync-to-vblank intel's issue no 
 troubles at all at first glance
 but I start seeing this in the logs (excerpt)

 (II) LoadModule: record
 (II) Loading /usr/X11R6/lib/modules/extensions//librecord.so
 (II) Module record: vendor=X.Org Foundation
 compiled for 1.4.2, module version = 1.13.0
 Module class: X.Org Server Extension
 ABI class: X.Org Server Extension, version 0.3
 (EE) module ABI major version (0) doesn't match the server's version (1)
 (II) UnloadModule: record
 (II) Unloading /usr/X11R6/lib/modules/extensions//librecord.so
 (EE) Failed to load module record (module requirement mismatch, 0)
 (II) LoadModule: xtrap

 (II) Loading /usr/X11R6/lib/modules/extensions//libxtrap.so
 (II) Module xtrap: vendor=X.Org Foundation
 compiled for 1.4.2, module version = 1.0.0
 Module class: X.Org Server Extension
 ABI class: X.Org Server Extension, version 0.3
 (EE) module ABI major version (0) doesn't match the server's version (1)
 (II) UnloadModule: xtrap
 (II) Unloading /usr/X11R6/lib/modules/extensions//libxtrap.so
 (EE) Failed to load module xtrap (module requirement mismatch, 0)

 for taking away it I've temporary added

 You should instead have removed the record, and trap extension from you
 config. Those extensions aren't there anymore in the new xserver.
I've just noted that in effect those extensions are no more present
(so the ABI error was correct) ) _but_ Xorg -configure keeps on
delivering those one in xorg.conf why?


 -0-
 --
 Support your local Search and Rescue unit -- get lost.




-- 
see ya,
giovanni



new PCI IDs

2008-07-07 Thread giovanni
Index: src/sys/dev/pci/pcidevs
===
RCS file: /cvs/src/sys/dev/pci/pcidevs,v
retrieving revision 1.1385
diff -u -p -u -r1.1385 pcidevs
--- src/sys/dev/pci/pcidevs 5 Jul 2008 18:21:47 -   1.1385
+++ src/sys/dev/pci/pcidevs 7 Jul 2008 06:48:14 -
@@ -1074,6 +1074,7 @@ product ATI RADEON_HD2400_PRO 0x94c3  Rad
 product ATI RADEON_HD2400_M72  0x94c9  Mobility Radeon HD 2400
 product ATI RADEON_HD3870  0x9501  Radeon HD 3870
 product ATI RADEON_HD2600  0x9589  Radeon HD 2600
+product ATI RADEON_HD3450   0x95c5  Radeon HD 3450
 product ATI RS780_HB   0x9600  RS780 Host
 product ATI RS780_PCIE_1   0x9602  RS780 PCIE
 product ATI RS780_PCIE_2   0x9609  RS780 PCIE
@@ -1081,6 +1082,7 @@ product ATI RS780_HDA 0x960f  RS780 HD A
 product ATI RADEON_HD3200  0x9610  Radeon HD 3200
 product ATI RADEON_HD2600_HDA  0xaa08  Radeon HD 2600 HD Audio
 product ATI RS690M_HDA 0xaa10  RS690M HD Audio
+product ATI RADEON_HD34xx_HDA   0xaa28  Radeon HD 34xx HD Audio
 product ATI RS100_AGP  0xcab0  RS100 AGP
 product ATI RS200_AGP  0xcab2  RS200 AGP
 product ATI RS250_AGP  0xcab3  RS250 AGP

-- 
see ya,
giovanni



amd64: systematic crash w/ rum

2008-06-20 Thread giovanni
 disabled
TI PCIXX12 FireWire rev 0x00 at pci5 dev 3 function 1 not configured
TI PCIXX12 Multimedia Card Reader rev 0x00 at pci5 dev 3 function 2 not 
configured
cardslot0 at cbb0 slot 0 flags 0
pcmcia0 at cardslot0
pcib0 at pci0 dev 31 function 0 Intel 82801GBM LPC rev 0x02
pciide0 at pci0 dev 31 function 1 Intel 82801GB IDE rev 0x02: DMA, channel 0 
configured to compatibility, channel 1 configured to compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets, initiator 7
cd0 at scsibus0 targ 0 lun 0: PIONEER, DVD-RW DVR-K16M, 1.10 ATAPI 5/cdrom 
removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 ignored (disabled)
pciide1 at pci0 dev 31 function 2 Intel 82801GBM SATA rev 0x02: DMA, channel 
0 configured to native-PCI, channel 1 configured to native-PCI
pciide1: using apic 1 int 19 (irq 10) for native-PCI interrupt
wd0 at pciide1 channel 0 drive 0: HTS541010G9SA00
wd0: 16-sector PIO, LBA48, 95396MB, 195371568 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5
ichiic0 at pci0 dev 31 function 3 Intel 82801GB SMBus rev 0x02: apic 1 int 19 
(irq 10)
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 512MB DDR2 SDRAM non-parity PC2-4200CL5 SO-DIMM
spdmem1 at iic0 addr 0x52: 512MB DDR2 SDRAM non-parity PC2-4200CL5 SO-DIMM
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 Intel UHCI root hub rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 Intel UHCI root hub rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 Intel UHCI root hub rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 Intel UHCI root hub rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
mtrr: Pentium Pro MTRR support
rum0 at uhub0 port 1 Ralink 802.11 bg WLAN rev 2.00/0.01 addr 2
rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528, address 00:0e:e8:e0:c4:17
softraid0 at root
root on wd0a swap on wd0b dump on wd0b
wsdisplay0: screen 1 deleted
wsdisplay0: screen 2 deleted
wsdisplay0: screen 1 added (80x50, vt100 emulation)
wsdisplay0: screen 2 added (80x50, vt100 emulation)
ehci_idone: ex=0x8027ab00 is done!
ehci_idone: ex=0x8027ab00 is done!
ehci_idone: ex=0x8027ab00 is done!

-- 
see ya,
giovanni



amd64 and i386: systematic crash w/ rum

2008-06-20 Thread giovanni
during the lunch I've tried the i386 too and I can confirm the same problem.
so for summarizing:

snapshot 11/06 was ok
snapshot 19/06 is not ok

On Fri, Jun 20, 2008 at 09:40:08AM +0200, giovanni wrote:
hello,

recently I switched from i386 to amd64 w/ my laptop. I've not yet tried w/ 
i386 (anyway until ~ 1 month ago it worked w/o troubles) but w/ amd64 I catch 
a systematic crash when rum sees traffic.

kernel: protection fault trap code = 0
stopped at bpf_mtap 0x20: movl 0x18(%rdx), %eax
ddb{0}: trace

ieee80211_input() at ieee80211_input() + 0x46c
rum_rxeof() at rum_rxeof() + 0x1bf
usb_transfer_complete() at usb_transfer_complete() + 0x1cc
hci_softintr() at ehci_softintr() + 0x2f
softintr_dispatch() at softintr_dispatch() + 0x6e
Xsoftnet() at Xsoftnet() + 0x9a
-- interrupt --
end trace frame: 0x, count -3
0:
ddb{0}

hostname.rum0:
!ifconfig \$if lladdr `openssl rand 6 | hexdump -e '1/1 %02x :' | cut -d: 
-f1-6`
inet 10.0.2.1 255.255.255.0 NONE  media autoselect mode 11g mediaopt hostap 
nwid RUM wpa wpapsk ... 
!dhcpd \$if
!pkill -HUP named

dmesg:
OpenBSD 4.3-current (GENERIC.MP) #1735: Thu Jun 19 08:14:59 MDT 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 1050845184 (1002MB)
avail mem = 1020035072 (972MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xdc010 (18 entries)
bios0: vendor Phoenix Technologies LTD version R0034J4 date 02/26/2007
bios0: Sony Corporation VGN-C1S_H
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP APIC MCFG APIC BOOT SSDT SSDT
acpi0: wakeup devices PWRB(S4) PXS1(S3) PXS2(S3) PXS3(S3) PXS4(S3) USB1(S3) 
USB2(S3) USB3(S3) USB4(S3) USB7(S3) LANC(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 CPU T5500 @ 1.66GHz, 1662.80 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,SBF,SSE3,MWAIT,DS-CPL,EST,TM2,CX16,xTPR,NXE,LONG
cpu0: 2MB 64b/line 8-way L2 cache
cpu0: apic clock running at 166MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 CPU T5500 @ 1.66GHz, 1662.50 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,SBF,SSE3,MWAIT,DS-CPL,EST,TM2,CX16,xTPR,NXE,LONG
cpu1: 2MB 64b/line 8-way L2 cache
ioapic0 at mainbus0 apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 2, remapped to apid 1
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEGP)
acpiprt2 at acpi0: bus 2 (RP01)
acpiprt3 at acpi0: bus 4 (RP02)
acpiprt4 at acpi0: bus 6 (RP03)
acpiprt5 at acpi0: bus 8 (RP04)
acpiprt6 at acpi0: bus 10 (PCIB)
acpiec0 at acpi0
acpicpu0 at acpi0: C2, C1, PSS
acpicpu1 at acpi0: C2, C1, PSS
acpitz0 at acpi0: critical temperature 105 degC
acpitz0: TZ00: failed to read _AC0
acpitz1 at acpi0: critical temperature 105 degC
acpitz1: TZ01: failed to read _AC0
acpiac0 at acpi0: AC unit online
acpibat0 at acpi0: BAT0 not present
acpibtn0 at acpi0: LID0
acpibtn1 at acpi0: PWRB
acpidock at acpi0 not configured
cpu0: Enhanced SpeedStep 1662 MHz: speeds: 1667, 1333, 1000 MHz
pci0 at mainbus0 bus 0: configuration mode 1
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 0xb000, 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 4)
azalia0: codec[s]: Realtek/0x0262, Conexant/0x2c06, using Realtek/0x0262
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x02: apic 1 int 17 
(irq 3)
pci1 at ppb0 bus 2
mskc0 at pci1 dev 0 function 0 Marvell Yukon 88E8036 rev 0x13, Yukon-2 FE 
(0x1): apic 1 int 16 (irq 7)
msk0 at mskc0 port A: address 00:13:a9:60:1b:eb
eephy0 at msk0 phy 0: Marvell 88E3082 10/100 PHY, rev. 3
ppb1 at pci0 dev 28 function 1 Intel 82801GB PCIE rev 0x02: apic 1 int 16 
(irq 7)
pci2 at ppb1 bus 4
ppb2 at pci0 dev 28 function 2 Intel 82801GB PCIE rev 0x02: apic 1 int 18 
(irq 11)
pci3 at ppb2 bus 6
wpi0 at pci3 dev 0 function 0 Intel PRO/Wireless 3945ABG rev 0x02: apic 1 
int 18 (irq 11), MoW2, address 00:18:de:ad:3e:96
ppb3 at pci0 dev 28 function 3 Intel 82801GB PCIE rev 0x02: apic 1 int 21 
(irq 10)
pci4 at ppb3 bus 8
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 17 
(irq 3)
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 7)
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

patch: acpisony

2008-04-30 Thread giovanni
 to %d\n, arg);
+   
+   aml_freevalue(res);
+}
diff -ruN sys.orig/dev/acpi/files.acpi sys/dev/acpi/files.acpi
--- sys.orig/dev/acpi/files.acpiMon Apr 28 13:56:27 2008
+++ sys/dev/acpi/files.acpi Mon Apr 28 17:23:10 2008
@@ -75,3 +75,8 @@
 device acpithinkpad
 attach acpithinkpad at acpi
 file   dev/acpi/acpithinkpad.c acpithinkpad
+
+# Sony Vaio support
+device acpisony
+attach acpisony at acpi
+file   dev/acpi/acpisony.c acpisony


-- 
see ya,
giovanni



faq15

2008-04-24 Thread giovanni
Index: faq15.html
===
RCS file: /cvs/www/faq/faq15.html,v
retrieving revision 1.47
diff -u -r1.47 faq15.html
--- faq15.html  1 Mar 2008 11:31:08 -   1.47
+++ faq15.html  24 Apr 2008 08:45:07 -
@@ -691,7 +691,7 @@
 Do NOT ask beginner questions on the mailing lists like
 How can I get the ports tree working?.
 If you have questions about the ports tree, it is assumed that you have
-read the manual pages and this FAQ, and that you are able to work with it.
+read the manual pages and this ba href=#PkgFAQFAQ/a/b, and that you 
are able to work with it.


 a name=PortsHow/a

-- 
see ya,
giovanni



umsm

2008-04-24 Thread giovanni
hello,

i've had in my hands for a few hours this usb hsdpa modem

http://cgi.ebay.it/Modem-USB-Momo-Design-UMTS-GPRS,-HSDPA-fino-a-7.2-Mbps_W0QQitemZ250233113933QQcmdZViewItem

and as usual and I gave it a try.

At first it was recognized as ugen but VID  PID gave me the right direction

Controller /dev/usb1:
addr 1: full speed, self powered, config 1, UHCI root hub(0x), 
Intel(0x8086), rev 1.00
  uhub1
 port 1 addr 2: full speed, power 500 mA, config 1, H3G USB HSDPA 
Modem(0x6000), H3G , Incorporated(0x05c6), rev 0.00
   ugen0
 port 2 powered

Index: usbdevs
===
RCS file: /cvs/src/sys/dev/usb/usbdevs,v
retrieving revision 1.348
diff -u -r1.348 usbdevs
--- usbdevs 13 Apr 2008 19:41:29 -  1.348
+++ usbdevs 24 Apr 2008 15:26:51 -
@@ -2227,6 +2227,7 @@
 product QUALCOMM MSM_MODEM 0x3196  CDMA MSM modem
 product QUALCOMM2 MSM_PHONE0x6000  CDMA MSM phone
 product QUALCOMM MSM_HSDPA 0x6613  HSDPA MSM
+product QUALCOMM MSM_HSDPA20x6000  HSDPA MSM
 product QUALCOMM3 CDMA_MSM 0x0001  CDMA Technologies MSM modem

 /* Quickshot products */

Index: umsm.c
===
RCS file: /cvs/src/sys/dev/usb/umsm.c,v
retrieving revision 1.20
diff -u -r1.20 umsm.c
--- umsm.c  19 Feb 2008 10:57:48 -  1.20
+++ umsm.c  24 Apr 2008 15:28:47 -
@@ -67,6 +67,7 @@
{ USB_VENDOR_NOVATEL,   USB_PRODUCT_NOVATEL_XU870 },
{ USB_VENDOR_NOVATEL,   USB_PRODUCT_NOVATEL_ES620 },
{ USB_VENDOR_QUALCOMM,  USB_PRODUCT_QUALCOMM_MSM_HSDPA },
+   { USB_VENDOR_QUALCOMM,  USB_PRODUCT_QUALCOMM_MSM_HSDPA2 },
{ USB_VENDOR_SIERRA,USB_PRODUCT_SIERRA_EM5625 },
{ USB_VENDOR_SIERRA,USB_PRODUCT_SIERRA_AIRCARD_580 },
{ USB_VENDOR_SIERRA,USB_PRODUCT_SIERRA_AIRCARD_595 },

[...]
umsm0 at uhub1 port 1 H3G , Incorporated H3G USB HSDPA Modem rev 1.10/0.00 
addr 2
ucom0 at umsm0 portno 0
[...]

I've surfed a bit and it seems to work well

-- 
see ya,
giovanni



rum.4

2008-03-04 Thread giovanni
Chipset: Ralink RT2501USB. (RT2528+RT2571W)

rum0 at uhub0 port 1 Ralink 802.11 bg WLAN rev 2.00/0.01 addr 3
rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528, address 00:0e:e8:e0:c4:17

Index: rum.4
===
RCS file: /cvs/src/share/man/man4/rum.4,v
retrieving revision 1.31
diff -u -r1.31 rum.4
--- rum.4   22 Feb 2008 10:46:57 -  1.31
+++ rum.4   4 Mar 2008 09:20:27 -
@@ -262,6 +262,7 @@
 .It Abocom WUG2700
 .It Airlink101 AWLL5025
 .It ASUS WL-167g ver 2
+.It Atlantis Land A02-UP1-W54
 .It Belkin F5D7050 ver 3
 .It Belkin F5D9050 ver 3
 .It Buffalo WLI-U2-SG54HP

-- 
see ya,
giovanni



bluetooth on -current: works like a charm

2008-01-13 Thread giovanni
hello,

inspired from a recent post on misc@ about bt, today I've relaxed
myself and I've given it a try
the test has been made w/ a broadcom usb adapter

bt0 at uhub1 port 1 Broadcom CCBT2035BDGP23-1 rev 1.10/0.01 addr 2

:::I've installed network libraries and network tools

root# pkg_info | grep blue
bluetooth-libs-20070606 bluetooth network libraries
bluetooth-tools-20070611p0 bluetooth network tools

:::BT configuration:
root# btconfig ubt0 name OpenBSD up

:::Searching for BT devices i.e my mobilephone:
root# btconfig ubt0 inquiry
Device Discovery from device: ubt0  1 response
  1: bdaddr 00:17:4b:da:3e:96
   : name Nokia XXX
   : class: [0x50020c] Smart Phone Object Transfer Telephony
   : page scan rep mode 0x01
   : page scan period mode 0x02
   : page scan mode 0x00
   : clock offset 11508

:::Bluetooth Link Key/PIN Code Manager
root# bthcid
root# btpin -a 00:17:4b:da:3e:96 -p 


:::RFCOMM connection w/ mobile phone.
:::the PIN will be requested on the mobilephone (it was exciting to
see the OpenBSD name!)
root# rfcomm_sppd -a 00:17:4b:da:3e:96 -s 1 -t /dev/ttyp1

::: test the connection
root# cu -l /dev/ttyp1
Connected
AT
OK


:::prepared a ppp.conf w/

 ...
 set device /dev/ttyp1
 ...

this was enough for surfing w/ my mobile.

thanks for the not yet finished BT work!

-- 
see ya,
giovanni



acpitz: little diff

2008-01-07 Thread giovanni
I've have two more values that maybe should be debounced:

_AC0 = 2732
_TC1 = 1
_TC2 = 5

Index: acpitz.c
===
RCS file: /cvs/src/sys/dev/acpi/acpitz.c,v
retrieving revision 1.21
diff -u -r1.21 acpitz.c
--- acpitz.c6 Jan 2008 18:06:50 -   1.21
+++ acpitz.c7 Jan 2008 10:49:58 -
@@ -124,8 +124,8 @@
}

sc-sc_hot = acpitz_gettempreading(sc, _HOT);
-   sc-sc_tc1 = acpitz_getreading(sc, _TC1);
-   sc-sc_tc2 = acpitz_getreading(sc, _TC2);
+   sc-sc_tc1 = acpitz_gettempreading(sc, _TC1);
+   sc-sc_tc2 = acpitz_gettempreading(sc, _TC2);
sc-sc_psv = acpitz_gettempreading(sc, _PSV);
dnprintf(10, %s: _HOT: %d _TC1: %d _TC2: %d _PSV: %d _TMP: %d 
_CRT: %d\n, DEVNAME(sc), sc-sc_hot, sc-sc_tc1, sc-sc_tc2,


acpitz0 at acpi0: critical temperature 105 degC
acpitz0: TZ00: failed to read _AC0
acpitz0: TZ00: failed to read _TC1
acpitz0: TZ00: failed to read _TC2
acpitz1 at acpi0: critical temperature 105 degC
acpitz1: TZ01: failed to read _AC0
acpitz1: TZ01: failed to read _TC1
acpitz1: TZ01: failed to read _TC2

-- 
see ya,
giovanni



amd64/MP and irq troubles?

2007-12-03 Thread giovanni
 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: PIONEER, DVD-RW DVR-K16M, 1.10 SCSI0
5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 ignored (disabled)
pciide1 at pci0 dev 31 function 2 Intel 82801GBM SATA rev 0x02: DMA,
channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide1: using apic 1 int 19 (irq 10) for native-PCI interrupt
wd0 at pciide1 channel 0 drive 0: HTS541010G9SA00
wd0: 16-sector PIO, LBA48, 95396MB, 195371568 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5
ichiic0 at pci0 dev 31 function 3 Intel 82801GB SMBus rev 0x02: apic
1 int 19 (irq 10)
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 512MB DDR2 SDRAM non-parity PC2-4200CL5 SO-DIMM
spdmem1 at iic0 addr 0x52: 512MB DDR2 SDRAM non-parity PC2-4200CL5 SO-DIMM
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 Intel UHCI root hub rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 Intel UHCI root hub rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 Intel UHCI root hub rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 Intel UHCI root hub rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
umass0 at uhub0 port 6 configuration 1 interface 0 Sony UMH-U09 rev
2.00/4.52 addr 2
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets
sd0 at scsibus1 targ 1 lun 0: Sony, USB HS-CARD, 4.52 SCSI0 0/direct removable
sd0: 61MB, 7 cyl, 255 head, 63 sec, 512 bytes/sec, 125440 sec total
softraid0 at root
dkcsum: wd0 matches BIOS drive 0x81
dkcsum: sd0 matches BIOS drive 0x80
root on wd0a swap on wd0b dump on wd0b



-- 
see ya,
giovanni



Re: acpiac

2007-11-21 Thread giovanni
On Nov 20, 2007 5:40 PM, Marco Peereboom [EMAIL PROTECTED] wrote:
 yeah the spec tells us to.  Why?

maybe I'm wrong in what I'm saying...

device AC could have _PSR but not _STA.

when _STA exists it gives us this information:

0xf - AC adapter exists
0x0 - AC adapter does not exists

because this information it is not used later, I really do not
understand why _STA it is evaluated.
some hints?

tnx

 On Tue, Nov 20, 2007 at 11:52:33AM +0100, giovanni wrote:
  hello,
 
  any reason for evaluating  _STA before _PSR for getting AC status?
 
  if (aml_evalname(sc-sc_acpi, sc-sc_devnode, _STA, 0, NULL, 
  NULL)) {
  dnprintf(10, %s: no _STA\n,
  DEVNAME(sc));
  }
 
  if (aml_evalname(sc-sc_acpi, sc-sc_devnode, _PSR, 0, NULL, 
  res)) {
  dnprintf(10, %s: no _PSR\n,
  DEVNAME(sc));
  return (1);
 
  --
  see ya,
  giovanni
 




-- 
see ya,
giovanni



acpiac

2007-11-20 Thread giovanni
hello,

any reason for evaluating  _STA before _PSR for getting AC status?

if (aml_evalname(sc-sc_acpi, sc-sc_devnode, _STA, 0, NULL, NULL)) {
dnprintf(10, %s: no _STA\n,
DEVNAME(sc));
}

if (aml_evalname(sc-sc_acpi, sc-sc_devnode, _PSR, 0, NULL, res)) {
dnprintf(10, %s: no _PSR\n,
DEVNAME(sc));
return (1);

-- 
see ya,
giovanni



find out acpibat trouble

2007-11-09 Thread giovanni
hello,

may be I'm wrong but it seems that this patch

http://www.openbsd.org/cgi-bin/cvsweb/src/sys/dev/acpi/dsdt.c?rev=1.94content-type=text/x-cvsweb-markupsortby=date

give me troubles w/ acpibat.

w/o the patch the values reported are corected

hw.sensors.acpibat0.volt0=12.59 VDC (voltage)
hw.sensors.acpibat0.volt1=unknown (current voltage), UNKNOWN
hw.sensors.acpibat0.watthour0=57.72 Wh (last full capacity)
hw.sensors.acpibat0.watthour1=1.00 Wh (warning capacity)
hw.sensors.acpibat0.watthour2=0.40 Wh (low capacity)
hw.sensors.acpibat0.watthour3=57.72 Wh (remaining capacity), OK
hw.sensors.acpibat0.raw0=0 (battery full), OK
hw.sensors.acpibat0.raw1=unknown (rate), UNKNOWN


w/ the patch I'have:

??? hw.sensors.acpibat0.volt0=1.30 VDC (voltage)
hw.sensors.acpibat0.volt1=unknown (current voltage), UNKNOWN
??? hw.sensors.acpibat0.watthour0=1.40 Wh (last full capacity)
hw.sensors.acpibat0.watthour1=1.00 Wh (warning capacity)
hw.sensors.acpibat0.watthour2=0.40 Wh (low capacity)
??? hw.sensors.acpibat0.watthour3=1.47 Wh (remaining capacity), OK
hw.sensors.acpibat0.raw0=2 (battery full), OK
hw.sensors.acpibat0.raw1=unknown (rate), UNKNOWN

any help is appreciated
-- 
see ya,
giovanni



acpi global lock and sci events

2007-11-06 Thread giovanni
I've also noted that the acpi global lock patch has fixed the acpi sci
interrupt problem under i386/MP. now all the events are delivered
correctly
(e.g power button works)

thanks

-- 
see ya,
giovanni



pkg_add.1 FTP_KEEPALIVE

2007-11-05 Thread giovanni
maybe I'm wrong but I did not find any related man pages that mention
the subject

Index: pkg_add.1
===
RCS file: /cvs/src/usr.sbin/pkg_add/pkg_add.1,v
retrieving revision 1.67
diff -u -r1.67 pkg_add.1
--- pkg_add.1   20 Jun 2007 15:41:36 -  1.67
+++ pkg_add.1   5 Nov 2007 12:14:21 -
@@ -558,6 +558,8 @@
 .Xr ftp 1 .
 Must point to a command that understands
 .Li ${FETCH_CMD} -o - url .
+.It Ev FTP_KEEPALIVE
+If set to a duration in seconds ftp will try to ensure that an inactive 
connection will not dropped.
 .It Ev PKG_DBDIR
 Where to register packages instead of
 .Pa /var/db/pkg .

-- 
see ya,
giovanni



acpi global lock troubles?

2007-11-05 Thread giovanni
hello,

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(...)
...

tnx

-- 
see ya,
giovanni



acpi new driver

2007-11-04 Thread giovanni

hello,

in the past I wrote a very humble brightness driver (via acpi) for my 
vaio laptop.


http://marc.info/?l=openbsd-miscm=117862756504674w=2

w/ these suggestion during this summer w/ a bit of spare time I've also 
added brightness support for the asus and fujitsu laptops (ported from 
freebsd w/ some minor modifications)


now while the vaio driver has been tested on several recent vaio laptops 
models, the asus patch has been tested w/ only one model (A2H) so it may 
fail w/ other models. the fujitsu has not been tested at all.


so if somebody is interested in trying it here it is the whole patch.

vaio usage:
sysctl -w hw.brightness=0..8

asus usage:
sysctl -w hw.brightness=0..15

fujitsu usage
sysctl -w hw.brightness=0..7

btw just remember to rebuild sysctl because sysctl.h header has been 
modified. if you do not do this you'll not see the brightness variable



diff -ur sys.orig/arch/i386/conf/GENERIC sys/arch/i386/conf/GENERIC
--- sys.orig/arch/i386/conf/GENERIC Mon Sep  3 09:10:33 2007
+++ sys/arch/i386/conf/GENERIC  Mon Sep  3 09:37:27 2007
@@ -58,19 +58,19 @@
 pci*   at mainbus0

 #optionACPIVERBOSE
-#optionACPI_ENABLE
+option ACPI_ENABLE

-acpi0  at mainbus? disable
-#acpitimer*at acpi?
-#acpihpet* at acpi?
-#acpiac*   at acpi?
-#acpibat*  at acpi?
-#acpibtn*  at acpi?
-#acpicpu*  at acpi?
-#acpidock* at acpi?
-acpiec*at acpi?disable
+acpi0  at mainbus?
+acpitimer* at acpi?
+acpihpet*  at acpi?
+acpiac*at acpi?
+acpibat*   at acpi?
+acpibtn*   at acpi?
+acpicpu*   at acpi?
+acpidock*  at acpi?
+acpiec*at acpi?
 acpiprt*   at acpi?
-#acpitz*   at acpi?
+acpitz*at acpi?

 option PCIVERBOSE
 option EISAVERBOSE
diff -ur sys.orig/dev/acpi/acpi.c sys/dev/acpi/acpi.c
--- sys.orig/dev/acpi/acpi.cTue Apr 17 18:07:45 2007
+++ sys/dev/acpi/acpi.c Mon Sep  3 09:37:27 2007
@@ -1691,7 +1691,10 @@
aaa.aaa_name = acpibat;
else if (!strcmp(dev, ACPI_DEV_LD) ||
!strcmp(dev, ACPI_DEV_PBD) ||
-   !strcmp(dev, ACPI_DEV_SBD))
+   !strcmp(dev, ACPI_DEV_SBD) ||
+   !strcmp(dev, ACPI_DEV_SNC) ||
+   !strcmp(dev, ACPI_DEV_ATK) ||
+   !strcmp(dev, ACPI_DEV_FUJ))
aaa.aaa_name = acpibtn;

if (aaa.aaa_name)
diff -ur sys.orig/dev/acpi/acpibtn.c sys/dev/acpi/acpibtn.c
--- sys.orig/dev/acpi/acpibtn.c Wed Dec 27 00:58:08 2006
+++ sys/dev/acpi/acpibtn.c  Mon Sep  3 09:37:27 2007
@@ -20,6 +20,7 @@
 #include sys/signalvar.h
 #include sys/systm.h
 #include sys/device.h
+#include sys/sysctl.h
 #include sys/malloc.h

 #include machine/bus.h
@@ -32,36 +33,168 @@

 #include sys/sensors.h

+void sony_brightness(int*);
+void asus_brightness(int*);
+void fujitsu_brightness(int*);
+
 intacpibtn_match(struct device *, void *, void *);
 void   acpibtn_attach(struct device *, struct device *, void *);
 intacpibtn_notify(struct aml_node *, int, void *);
+intacpibtn_getsta(struct acpibtn_softc *);

-struct acpibtn_softc {
-   struct device   sc_dev;
+struct acpibtn_softc   sc_brt;

-   bus_space_tag_t sc_iot;
-   bus_space_handle_t  sc_ioh;
+struct cfattach acpibtn_ca = {
+   sizeof(struct acpibtn_softc), acpibtn_match, acpibtn_attach
+};

-   struct acpi_softc   *sc_acpi;
-   struct aml_node *sc_devnode;
+struct cfdriver acpibtn_cd = {
+   NULL, acpibtn, DV_DULL
+};

-   int sc_btn_type;
-#defineACPIBTN_UNKNOWN -1
-#define ACPIBTN_LID0
-#define ACPIBTN_POWER  1
-#define ACPIBTN_SLEEP  2
+struct acpi_vaio_model {
+   char*name;
+   char*brt_get;
+   char*brt_set;
 };

-intacpibtn_getsta(struct acpibtn_softc *);
+static struct acpi_vaio_model vaio_models = {
+   .name   = xxx,
+   .brt_get= GBRT,
+   .brt_set= SBRT,
+};

-struct cfattach acpibtn_ca = {
-   sizeof(struct acpibtn_softc), acpibtn_match, acpibtn_attach
+static struct acpi_vaio_model fujitsu_models = {
+   .name   = xxx,
+   .brt_get= GBLL,
+   .brt_set= SBLL,
 };

-struct cfdriver acpibtn_cd = {
-   NULL, acpibtn, DV_DULL
+/* asus support (part of it) is havily based on the asus_acpi.c
+   written by Philip Paeps [EMAIL PROTECTED] */
+struct acpi_asus_model {
+   char*name;
+   char*brt_get;
+   char*brt_set;
+   char*brt_up;
+   char*brt_down;
 };

+static struct acpi_asus_model *p = NULL;
+
+static struct acpi_asus_model asus_models[] = {
+   {
+   .name   = xxN,
+   .brt_get= GPLV,
+   .brt_set= SPLV,
+   },
+   {
+   .name   = A2x,
+   .brt_get= GPLV,
+   .brt_set= SPLV,
+   },
+   {

pkg_add: SharedLibs.pm

2007-09-28 Thread giovanni
Index: SharedLibs.pm
===
RCS file: /cvs/src/usr.sbin/pkg_add/OpenBSD/SharedLibs.pm,v
retrieving revision 1.29
diff -u -r1.29 SharedLibs.pm
--- SharedLibs.pm 20 Jun 2007 13:44:40 -  1.29
+++ SharedLibs.pm 28 Sep 2007 12:41:19 -
@@ -124,7 +124,7 @@
  $done_plist-{$pkgname} = 1;
  my $plist = OpenBSD::PackingList-from_installation($pkgname,
  \OpenBSD::PackingList::LibraryOnly);
- next if !defined $plist;
+ return if !defined $plist;

  $plist-mark_available_lib($pkgname);
 }


-- 
giovanni



keynote.{1,3,4,5}

2007-08-01 Thread giovanni
old link does not work

-.Pa http://www.cis.upenn.edu/~keynote
+.Pa http://www1.cs.columbia.edu/~angelos/keynote.html

-- 
giovanni



acpiprt patch not committed?

2007-06-29 Thread giovanni

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

why this patch has not been committed?



throttling cpu in C0 state patch

2007-06-03 Thread giovanni

while browsing latest modification I see the throttle written function
was not used yet so for curiosity I've tried to use it for throttling
cpu in C0 state. I've made some test (md5) sweeping the whole throttle
range (hw.throttle=1..2^dutywidth) and it seems to work

giovanni

diff -ru sys.orig/arch/i386/conf/GENERIC sys/arch/i386/conf/GENERIC
--- sys.orig/arch/i386/conf/GENERIC Fri Jun  1 08:53:17 2007
+++ sys/arch/i386/conf/GENERIC  Sat Jun  2 21:46:39 2007
@@ -58,19 +58,19 @@
 pci*   at mainbus0

 #optionACPIVERBOSE
-#optionACPI_ENABLE
+option ACPI_ENABLE

-acpi0  at mainbus? disable
-#acpitimer*at acpi?
+acpi0  at mainbus?
+acpitimer* at acpi?
 #acpihpet* at acpi?
-#acpiac*   at acpi?
-#acpibat*  at acpi?
-#acpibtn*  at acpi?
-#acpicpu*  at acpi?
+acpiac*at acpi?
+acpibat*   at acpi?
+acpibtn*   at acpi?
+acpicpu*   at acpi?
 #acpidock* at acpi?
-acpiec*at acpi?disable
+acpiec*at acpi?
 acpiprt*   at acpi?
-#acpitz*   at acpi?
+acpitz*at acpi?

 option PCIVERBOSE
 option EISAVERBOSE
diff -ru sys.orig/dev/acpi/acpicpu.c sys/dev/acpi/acpicpu.c
--- sys.orig/dev/acpi/acpicpu.c Fri Jun  1 08:53:31 2007
+++ sys/dev/acpi/acpicpu.c  Sun Jun  3 08:40:38 2007
@@ -56,7 +56,8 @@

 #define CPU_THT_EN (1L  4)
 #define CPU_MAXSTATE(sc)   (1L  (sc)-sc_duty_wid)
-#define CPU_STATE(sc,pct)  ((pct * CPU_MAXSTATE(sc) / 100)  
(sc)-sc_duty_off)
+#define CPU_DUTYWIDTH(sc)  ((sc)-sc_duty_wid)
+#define CPU_STATE(sc,pct)  (pct  (sc)-sc_duty_off)
 #define CPU_STATEMASK(sc)   ((CPU_MAXSTATE(sc) - 1)  (sc)-sc_duty_off)

 #define ACPI_MAX_C2_LATENCY 100
@@ -106,7 +107,7 @@
void(*sc_notify)(struct acpicpu_pss *, int);
 };

-voidacpicpu_set_throttle(struct acpicpu_softc *, int);
+voidacpicpu_set_throttle(int *);
 voidacpicpu_add_cstatepkg(struct aml_value *, void *);
 intacpicpu_getpct(struct acpicpu_softc *);
 intacpicpu_getpss(struct acpicpu_softc *);
@@ -122,6 +123,7 @@
 };

 extern int setperf_prio;
+extern int throttle_lv;

 #ifdef __i386__
 struct acpicpu_softc *acpicpu_sc[I386_MAXPROCS];
@@ -130,22 +132,27 @@
 #endif

 void
-acpicpu_set_throttle(struct acpicpu_softc *sc, int level)
+acpicpu_set_throttle(int* level)
 {
-   uint32_t pbval;
+   uint32_tpbval;
+   struct acpicpu_softc*sc;

+   sc = acpicpu_sc[cpu_number()];
+
if (sc-sc_flags  FLAGS_NOTHROTTLE)
return;

/* Disable throttling control */
pbval = inl(sc-sc_pblk_addr);
outl(sc-sc_pblk_addr, pbval  ~CPU_THT_EN);
-   if (level  100) {
-   pbval = ~CPU_STATEMASK(sc);
-   pbval |= CPU_STATE(sc, level);
-   outl(sc-sc_pblk_addr, pbval  ~CPU_THT_EN);
-   outl(sc-sc_pblk_addr, pbval | CPU_THT_EN);
-   }
+   
+   *level = min(((1  CPU_DUTYWIDTH(sc)) - 1), *level);
+   *level = max(1, *level);
+   
+   pbval = ~CPU_STATEMASK(sc);
+   pbval |= CPU_STATE(sc, *level);
+   outl(sc-sc_pblk_addr, pbval  ~CPU_THT_EN);
+   outl(sc-sc_pblk_addr, pbval | CPU_THT_EN);
 }

 struct acpi_cstate *
@@ -259,6 +266,12 @@
sc-sc_duty_wid = sc-sc_acpi-sc_fadt-duty_width;
if (!valid_throttle(sc-sc_duty_off, sc-sc_duty_wid, sc-sc_pblk_addr))
sc-sc_flags |= FLAGS_NOTHROTTLE;
+   else {
+   if (cpu_throttle == NULL) {
+   throttle_lv = (1  CPU_DUTYWIDTH(sc)) - 1;
+   cpu_throttle = acpicpu_set_throttle;
+   }
+   }

 #ifdef ACPI_DEBUG
printf(: %s: , sc-sc_devnode-name);
diff -ru sys.orig/kern/kern_sysctl.c sys/kern/kern_sysctl.c
--- sys.orig/kern/kern_sysctl.c Tue May 29 08:39:40 2007
+++ sys/kern/kern_sysctl.c  Sat Jun  2 22:13:00 2007
@@ -105,7 +105,9 @@

 int (*cpu_cpuspeed)(int *);
 void (*cpu_setperf)(int);
+void (*cpu_throttle)(int *);
 int perflevel = 100;
+int throttle_lv = 0;

 /*
  * Lock to avoid too many processes vslocking a large amount of memory
@@ -614,6 +616,15 @@
perflevel = 0;
if (newp)
cpu_setperf(perflevel);
+   return (0);
+   case HW_THROTTLE:
+   if (!cpu_throttle)
+   return (EOPNOTSUPP);
+   err = sysctl_int(oldp, oldlenp, newp, newlen, throttle_lv);
+   if (err)
+   return err;
+   if (newp)
+   cpu_throttle(throttle_lv);
return (0);
case HW_VENDOR:
if (hw_vendor)
diff -ru sys.orig/sys/sysctl.h sys/sys/sysctl.h
--- sys.orig/sys/sysctl.h   Fri Apr 27 10:47:11 2007
+++ sys/sys/sysctl.hSat Jun  2 21:52:39 2007
@@ -552,7 +552,8 @@
 #defineHW_VERSION  16  /* string

mp setperf splipi

2007-05-17 Thread giovanni

I was very curious about the implementation so I've read it.
http://www.openbsd.org/cgi-bin/cvsweb/src/sys/arch/i386/i386/mp_setperf.c?rev=1.2content-type=text/x-cvsweb-markup

well I was wondering why is it necessary the splipi when before we are
at IPL_HIGH?

...
s = splipi();
ul_setperf(mp_setperflevel);
splx(s);
...

tkanks,

--
giovanni



msk watchdog timeout + working idea

2007-05-11 Thread giovanni
msk_init_yukon: YUKON_PAR=0x20
msk_init_yukon: 4b
msk_init_yukon: 5
msk_init_yukon: 7
msk_init_yukon: 8
msk_init_yukon: 9
msk_init_yukon: 10
msk_init_yukon: 11
msk_init_yukon: 12
msk_init_yukon: end
msk_start
msk_encap
msk_encap: dm_nsegs=1
msk_encap: completed successfully
msk_txeof
msk_start
msk_encap
msk_encap: dm_nsegs=1
msk_encap: completed successfully
msk_txeof

--
giovanni



acpi vaio lcd brightness driver

2007-04-28 Thread giovanni

hello,

because I could not change the excessive lcd brightness of my laptop under 
openbsd I started searching for... this article

http://www.linux.it/~malattia/wiki/index.php/Sony-laptop
was the inspiration and I wrote this humble basic driver.
here it works well and I think it should also work for others
vaio laptops (or at least for vaios that have SBRT/GBRT acpi methods.

...
acpidock at acpi0 not configured
acpisnc0 at acpi0: SNC_
...

usage:
sysctl -w hw.brightness=0..8

giovanni

diff -ruN sys.orig/arch/i386/conf/GENERIC sys/arch/i386/conf/GENERIC
--- sys.orig/arch/i386/conf/GENERIC Fri Apr 27 11:03:35 2007
+++ sys/arch/i386/conf/GENERIC  Sat Apr 28 09:22:37 2007
@@ -59,7 +59,7 @@
 pci*   at mainbus0

 #optionACPIVERBOSE
-#optionACPI_ENABLE
+option ACPI_ENABLE

 acpi0  at mainbus? disable
 #acpitimer*at acpi?
@@ -72,6 +72,7 @@
 acpiec*at acpi?disable
 acpiprt*   at acpi?
 #acpitz*   at acpi?
+acpisnc* at acpi?  # sony notebook controller

 option PCIVERBOSE
 option EISAVERBOSE
diff -ruN sys.orig/dev/acpi/acpi.c sys/dev/acpi/acpi.c
--- sys.orig/dev/acpi/acpi.cFri Apr 27 10:46:22 2007
+++ sys/dev/acpi/acpi.c Sat Apr 28 08:57:53 2007
@@ -65,6 +65,7 @@
 void   acpi_foundec(struct aml_node *, void *);
 void   acpi_foundtmp(struct aml_node *, void *);
 void   acpi_inidev(struct aml_node *, void *);
+void  acpi_foundsnc(struct aml_node *, void *);

 intacpi_loadtables(struct acpi_softc *, struct acpi_rsdp *);
 void   acpi_load_table(paddr_t, size_t, acpi_qhead_t *);
@@ -573,6 +574,9 @@
/* attach docks */
aml_find_node(aml_root.child, _DCK, acpi_founddock, sc);

+  /* attach sony notebook control */
+  aml_find_node(aml_root.child, GBRT, acpi_foundsnc, sc);
+
/* create list of devices we want to query when APM come in */
SLIST_INIT(sc-sc_ac);
SLIST_INIT(sc-sc_bat);
@@ -1718,4 +1722,24 @@

config_found(self, aaa, acpi_print);
 }
+
+void
+acpi_foundsnc(struct aml_node *node, void *arg)
+{
+   struct acpi_softc *sc = (struct acpi_softc *)arg;
+   struct device   *self = (struct device *)arg;
+   const char*dev;
+   struct acpi_attach_args aaa;
+
+   dnprintf(10, found snc entry: %s\n, node-parent-name);
+   memset(aaa, 0, sizeof(aaa));
+   aaa.aaa_iot = sc-sc_iot;
+   aaa.aaa_memt = sc-sc_memt;
+   aaa.aaa_node = node-parent;
+   aaa.aaa_dev = dev;
+   aaa.aaa_name = acpisnc;
+   

+   config_found(self, aaa, acpi_print);
+}
+
 #endif /* SMALL_KERNEL */
diff -ruN sys.orig/dev/acpi/acpidev.h sys/dev/acpi/acpidev.h
--- sys.orig/dev/acpi/acpidev.h Fri Apr 27 10:46:22 2007
+++ sys/dev/acpi/acpidev.h  Sat Apr 28 07:33:48 2007
@@ -311,5 +311,14 @@
 #define ACPIDOCK_EVENT_INSERT  0
 #defineACPIDOCK_EVENT_EJECT3

+struct acpisnc_softc {
+   struct device   sc_dev;
+
+   bus_space_tag_t sc_iot;
+   bus_space_handle_t  sc_ioh;
+
+   struct acpi_softc   *sc_acpi;
+   struct aml_node *sc_devnode;
+};

 #endif /* __DEV_ACPI_ACPIDEV_H__ */
diff -ruN sys.orig/dev/acpi/acpisnc.c sys/dev/acpi/acpisnc.c
--- sys.orig/dev/acpi/acpisnc.c Thu Jan  1 01:00:00 1970
+++ sys/dev/acpi/acpisnc.c  Sat Apr 28 15:14:59 2007
@@ -0,0 +1,89 @@
+#include sys/param.h
+#include sys/systm.h
+#include sys/device.h
+#include sys/malloc.h
+#include sys/sysctl.h
+
+#include machine/bus.h
+
+#include dev/acpi/acpireg.h
+#include dev/acpi/acpivar.h
+#include dev/acpi/acpidev.h
+#include dev/acpi/amltypes.h
+#include dev/acpi/dsdt.h
+
+extern int brtlevel;
+
+intacpisnc_match(struct device *, void *, void *);
+void   acpisnc_attach(struct device *, struct device *, void *);
+void brightness(int*);
+
+static struct acpisnc_softc*sc;
+
+struct cfattach acpisnc_ca = {
+   sizeof(struct acpisnc_softc), acpisnc_match, acpisnc_attach
+};
+
+struct cfdriver acpisnc_cd = {
+   NULL, acpisnc, DV_DULL
+};
+
+int
+acpisnc_match(struct device *parent, void *match, void *aux)
+{
+   struct acpi_attach_args  *aaa = aux;
+   struct cfdata*cf = match;
+
+   /* sanity */
+   if (aaa-aaa_name == NULL ||
+   strcmp(aaa-aaa_name, cf-cf_driver-cd_name) != 0 ||
+   aaa-aaa_table != NULL)
+   return (0);
+
+   return (1);
+}
+
+void
+acpisnc_attach(struct device *parent, struct device *self, void *aux)
+{
+   sc = (struct acpisnc_softc *)self;
+   struct acpi_attach_args *aa = aux;
+   struct aml_valueres;
+
+   sc-sc_acpi = (struct acpi_softc *)parent;
+   sc-sc_devnode = aa-aaa_node-child;
+
+   printf(: %s\n, sc-sc_devnode-parent-name);
+   
+   /* read GBRT i.e default stored brighteness level */
+   if (aml_evalname(sc-sc_acpi, sc-sc_devnode, GBRT, 0, NULL, res

ahci intel sata

2007-04-18 Thread giovanni

hello,

sorry for the question but I would like to understand a bit more

I've added PCI_PRODUCT_INTEL_82801GBM_SATA (product code 0x27c4)
to the ahci_devices list because I've (wrongly?) read somewhere that
Intel 82801GBM
was ahci compliant. Indeed at boot I've:

ahci0 at pci0 dev 31 function 2 Intel 82801GBM SATA rev 0x02 GHC
0x0; AHCI 1.1: apic...
ahci0: capabilities: 0xdf12ff03S64A, NCQ, SMPS, SSS, SALP, SAL, SCLO,
SPM, PMD, SSC,PSC
ports:4 ncmds:32 gen: 1 (1.5Gbps)
ahci0: ports implemented: 0x

have I to deduce that ahci is not available because Port Implemented
register is 0?
if so why is it reported a Number of port of 4? What is the sense of
this discrepancy?

thanks,

--
giovanni



est setperf core 2

2007-04-10 Thread giovanni

my laptop has a core 2 processor (T5500) but because my acpi dsdt
lacks of PCT, PSS and PPC I can't use acpicpu for playing w/ setperf

I've made these tiny changes

Index: machdep.c
===
RCS file: /cvs/src/sys/arch/i386/i386/machdep.c,v
retrieving revision 1.381
diff -u -b -r1.381 machdep.c
--- machdep.c   3 Apr 2007 10:14:47 -   1.381
+++ machdep.c   9 Apr 2007 08:47:26 -
@@ -1444,7 +1444,7 @@
#endif
}

-#if !defined(SMALL_KERNEL)  defined(I686_CPU)  !defined(MULTIPROCESSOR)
+#if !defined(SMALL_KERNEL)  defined(I686_CPU) /* !defined(MULTIPROCESSOR)*/
void
intel686_setperf_setup(struct cpu_info *ci)
{
@@ -1468,9 +1468,9 @@
{

#if !defined(SMALL_KERNEL)  defined(I686_CPU)
-#if !defined(MULTIPROCESSOR)
+/*#if !defined(MULTIPROCESSOR)*/
   setperf_setup = intel686_setperf_setup;
-#endif
+/*#endif*/
   {
   extern void (*pagezero)(void *, size_t);
   extern void sse2_pagezero(void *, size_t);

so now also w/ bsd.mp during boot, est is used by reporting I can use
only HFS and LFH i.e 1667 and 1000 Mhz.
if I'm not wrong I read that w/ core 2 by changing one msr affects
also the other core. What I'm looking for are information for vid and
related frequency  for being able to use other setperf values (not
only 0 and 100) but I'm not able to find out them.

has anybody any hint?

thanks,

--
giovanni



Re: hw.sensor empty

2007-03-31 Thread giovanni

Please provide dmesg with your mail.
I guess you have no sensors in your box or they're not supported yet.

somebody off list had similar problem and remembered me to maintain
userland and kernel in sync.
after doing this, sensors were there...

thanks,

--
giovanni



hw.sensor empty

2007-03-30 Thread giovanni

hello,

on my box, 4.1-current,

sysctl -a hw.sensor

is empty
I've seen that the sensor land has been split in user and kernel one.
Before posting I've searched and tried to understand the matter
i.e the relevant part where the copy from kernel to userland is made.
I've also tried to watch the results during the path from

sysctl -a hw.sensor

to the sysctl_sensors call where all is copied correctly
I'm wrong I know, so could you explain where?

thanks,

giovanni



acpi: panic

2007-01-12 Thread giovanni

this laptop has not a rs232 so I give you the called functions command
written down on a piece of paper :-(

acpi0: tables DSDT FACP APIC MCFG APIC BOOT SSDT SSDT
1b7a Calles \_SB_.PCI0._INI

panic: aml_die aml_setvalue: 1481
Stopped at Debugger+0x4: leave

ddbtrace

aml_setvalue(...
aml_setparserref(...
aml_parseop(...
aml_parseterm(...
aml_evalmethod(...
aml_evalnode(...
aml_find_node(...
aml_find_node(...
aml_find_node(...
acpi_attach(...
config_attach(...
mainbus_attach(...
config_attach(...
cpu_configure(...
main(...

if I'm not wrong looking at the source the point of failure is in dsdt.c:

case AML_OBJTYPE_BUFFER:

  else {
//aml_showvalue(rhs);
aml_die(setvalue.buf : %x,aml_pc(scope-pos));
  }
  break;

during the execution of:

aml_find_node(aml_root.child, _INI, acpi_inidev, sc);

help:
is there any  way to use kgdb w/ a usb-serial converter on the target system?
e.g option KGDB_DEVNAME=\ucom\...

regards

giovanni

OpenBSD 4.0-current (GENERIC) #1331: Wed Jan  3 09:48:30 MST 2007
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Core(TM)2 CPU T5500 @ 1.66GHz (GenuineIntel 686-class)
1.67 GHz cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,TM2,CX16
real mem  = 1063415808 (1038492K) avail mem = 961888256 (939344K)
using 4256 buffers containing 53293056 bytes (52044K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(95) BIOS, date 09/16/06, BIOS32 rev. 0 @
0xfd5f0, SMBIOS rev. 2.4 @ 0xdc010 (18 entries)
bios0: Sony Corporation VGN-C1S_H
pcibios0 at bios0: rev 2.1 @ 0xfd5f0/0xa10
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdec0/288 (16 entries)
pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82371FB ISA rev 0x00)
pcibios0: PCI bus #6 is the last bus
bios0: ROM list: 0xc/0x1! 0xdc000/0x4000! 0xe/0x1800!
acpi at mainbus0 not configured
cpu0 at mainbus0
cpu0: unknown Enhanced SpeedStep CPU, msr 0x06130a2a06000a2a
cpu0: using only highest and lowest power states
cpu0: Enhanced SpeedStep 1667 MHz (1372 mV): speeds: 1667, 1000 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 82945GM MCH rev 0x03
vga1 at pci0 dev 2 function 0 Intel 82945GM Video rev 0x03: aperture
at 0xd010, size 0x1000
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
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: irq 4
azalia0: host: High Definition Audio rev. 1.0
azalia0: codec: 0x04x/0x10ec (rev. 1.0), HDA version 1.0
azalia0: codec: 0x04x/0x14f1 (rev. 0.0), HDA version 1.0
azalia0: codec[1]: No support for modem function groups
azalia0: codec[1]: No audio function groups
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x02
pci1 at ppb0 bus 1
mskc0 at pci1 dev 0 function 0 Marvell Yukon 88E8036 rev 0x13, Yukon-2
FE (0x1): irq 7
msk0 at mskc0 port A, address 00:13:a9:60:1b:eb
eephy0 at msk0 phy 0: Marvell 88E3082 10/100 PHY, rev. 3
ukphy0 at msk0 phy 3: Generic IEEE 802.3u media interface, rev. 0: OUI
0x121012, model 0x0004
ukphy0: no media present
ukphy1 at msk0 phy 6: Generic IEEE 802.3u media interface, rev. 0: OUI
0x004c00, model 0x0013
ukphy1: no media present
ppb1 at pci0 dev 28 function 1 Intel 82801GB PCIE rev 0x02
pci2 at ppb1 bus 2
ppb2 at pci0 dev 28 function 2 Intel 82801GB PCIE rev 0x02
pci3 at ppb2 bus 3
wpi0 at pci3 dev 0 function 0 Intel PRO/Wireless 3945ABG rev 0x02: irq
11, address 00:18:de:ad:3e:96
ppb3 at pci0 dev 28 function 3 Intel 82801GB PCIE rev 0x02
pci4 at ppb3 bus 4
uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x02: irq 5
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1 Intel 82801GB USB rev 0x02: irq 3
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 29 function 2 Intel 82801GB USB rev 0x02: irq 11
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3 at pci0 dev 29 function 3 Intel 82801GB USB rev 0x02: irq 7
usb3 at uhci3: USB revision 1.0
uhub3 at usb3
uhub3: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 29 function 7 Intel 82801GB USB rev 0x02: irq 5
ehci0: timed out waiting for BIOS
usb4 at ehci0: USB revision 2.0
uhub4 at usb4
uhub4: Intel EHCI root hub, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
ppb4 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0xe2
pci5 at ppb4 bus 5
cbb0 at pci5 dev 3 function 0 TI PCIXX12 CardBus rev 0x00pci_intr_map:
no mapping for pin A

couldn't map interrupt

i386/4.0-current: bsd.mp: msk and wpi troubles and crash

2007-01-05 Thread giovanni

hello,

anybody is experiencing the following troubles w/ bsd.mp 4.0-current 
(4.0 too)?


msk ethernet device does not work
wpi crashes the kernel when I try to up

ifconfig wpi0 up
...
ddb stopped at trap+0x55: movl %aex, 0x14c(%esi)

however w/ bsd msk works while wpi give me a wpi0: fatal firmware error
(if I start it before an AP is switched on)

hereinafter the dmesg for bsd and bsd.mp

[dmesg up]
OpenBSD 4.0-current (GENERIC) #1331: Wed Jan  3 09:48:30 MST 2007
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Core(TM)2 CPU T5500 @ 1.66GHz (GenuineIntel 686-class) 
1.67 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,TM2,CX16

real mem  = 1063415808 (1038492K)
avail mem = 961888256 (939344K)
using 4256 buffers containing 53293056 bytes (52044K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(95) BIOS, date 09/16/06, BIOS32 rev. 0 @ 
0xfd5f0, SMBIOS rev. 2.4 @ 0xdc010 (18 entries)

bios0: Sony Corporation VGN-C1S_H
pcibios0 at bios0: rev 2.1 @ 0xfd5f0/0xa10
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdec0/288 (16 entries)
pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82371FB ISA rev 0x00)
pcibios0: PCI bus #6 is the last bus
bios0: ROM list: 0xc/0x1! 0xdc000/0x4000! 0xe/0x1800!
acpi at mainbus0 not configured
cpu0 at mainbus0
cpu0: unknown Enhanced SpeedStep CPU, msr 0x06130a2a06000a2a
cpu0: using only highest and lowest power states
cpu0: Enhanced SpeedStep 1667 MHz (1372 mV): speeds: 1667, 1000 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 82945GM MCH rev 0x03
vga1 at pci0 dev 2 function 0 Intel 82945GM Video rev 0x03: aperture 
at 0xd010, size 0x1000

wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
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: irq 4
azalia0: host: High Definition Audio rev. 1.0
azalia0: codec: 0x04x/0x10ec (rev. 1.0), HDA version 1.0
azalia0: codec: 0x04x/0x14f1 (rev. 0.0), HDA version 1.0
azalia0: codec[1]: No support for modem function groups
azalia0: codec[1]: No audio function groups
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x02
pci1 at ppb0 bus 1
mskc0 at pci1 dev 0 function 0 Marvell Yukon 88E8036 rev 0x13, Yukon-2 
FE (0x1): irq 7

msk0 at mskc0 port A, address 00:13:a9:60:1b:eb
eephy0 at msk0 phy 0: Marvell 88E3082 10/100 PHY, rev. 3
ukphy0 at msk0 phy 3: Generic IEEE 802.3u media interface, rev. 0: OUI 
0x121012, model 0x0004

ukphy0: no media present
ukphy1 at msk0 phy 6: Generic IEEE 802.3u media interface, rev. 0: OUI 
0x004c00, model 0x0013

ukphy1: no media present
ppb1 at pci0 dev 28 function 1 Intel 82801GB PCIE rev 0x02
pci2 at ppb1 bus 2
ppb2 at pci0 dev 28 function 2 Intel 82801GB PCIE rev 0x02
pci3 at ppb2 bus 3
wpi0 at pci3 dev 0 function 0 Intel PRO/Wireless 3945ABG rev 0x02: irq 
11, address 00:18:de:ad:3e:96

ppb3 at pci0 dev 28 function 3 Intel 82801GB PCIE rev 0x02
pci4 at ppb3 bus 4
uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x02: irq 5
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1 Intel 82801GB USB rev 0x02: irq 3
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 29 function 2 Intel 82801GB USB rev 0x02: irq 11
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3 at pci0 dev 29 function 3 Intel 82801GB USB rev 0x02: irq 7
usb3 at uhci3: USB revision 1.0
uhub3 at usb3
uhub3: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 29 function 7 Intel 82801GB USB rev 0x02: irq 5
ehci0: timed out waiting for BIOS
usb4 at ehci0: USB revision 2.0
uhub4 at usb4
uhub4: Intel EHCI root hub, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
ppb4 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0xe2
pci5 at ppb4 bus 5
cbb0 at pci5 dev 3 function 0 TI PCIXX12 CardBus rev 0x00pci_intr_map: 
no mapping for pin A

: couldn't map interrupt
vendor TI, unknown product 0x803a (class serial bus subclass Firewire, 
rev 0x00) at pci5 dev 3 function 1 not configured
TI PCIXX12 Multimedia Card Reader rev 0x00 at pci5 dev 3 function 2 
not configured
ichpcib0 at pci0 dev 31 function 0 Intel 82801GBM LPC rev 0x02: PM 
disabled
pciide0 at pci0 dev 31 function 1 Intel 82801GB IDE rev 0x02: DMA, 
channel 0 configured to compatibility, channel 1 configured to compatibility

atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: 

acpi/apm and battery lifetime explanation

2006-11-17 Thread giovanni

hello,
I'm using -current and with the recent commits now acpi works on my
laptop. by reading the cvs commit logs I've seen that it is possible
to use apmd via acpi (apmd -f /dev/acpi) for retrieving power
information w/ apm command.  however apm output shows me a wrong
minutes life estimate value i.e  it is always 100 when battery charge
state is in between 50-100% and always 0 when charge is in between
0-50%. browsing the acpi.c code I've seen in the acpiioctl routine the
following calculation is performed

---8---
if (pi-ac_state == APM_AC_ON || rate == 0)
pi-minutes_left = (unsigned int)-1;
else
pi-minutes_left = minutes / rate * 100;
---8---

Now by reading the ACPI spec. I read that

Remaining Battery Life [h] = Battery Remaining Capacity/Battery Present Rate

my question is:

should
pi-minutes_left = minutes / rate * 100
be rewritten as
pi-minutes_left = (100*minutes) / rate?

and then why 100? if the previous formula show me [h]our we should
multiply it by 60...

thank you for any explanation,
giovanni