Re: Add Intel Centrino Wireless-N 2230 support in iwn(4)

2014-01-03 Thread Dawe
On Jan 03, 2014 14:24, Fabian Raetz wrote:
> Hi tech@,
> 
> here is an updated patch.
> 
> it seems like Intel Centrino Wireless-N 2030 and
> Intel Centrino Wireless-N 2230 have the same pciids...
> 
> this makes patch apply again with newest pcidevs changes.
> 

No regressions with my "Intel WiFi Link 1000" running amd64.

iwn0 at pci2 dev 0 function 0 "Intel WiFi Link 1000" rev 0x00: msi, MIMO 1T2R, 
BGS



sync gettimeofday.2 with sys/time.h

2013-09-11 Thread Dawe
Index: gettimeofday.2
===
RCS file: /cvs/src/lib/libc/sys/gettimeofday.2,v
retrieving revision 1.24
diff -u -p -r1.24 gettimeofday.2
--- gettimeofday.2  17 Jul 2013 05:42:11 -  1.24
+++ gettimeofday.2  11 Sep 2013 13:18:50 -
@@ -77,7 +77,7 @@ are defined in
 as:
 .Bd -literal
 struct timeval {
-   longtv_sec; /* seconds since Jan. 1, 1970 */
+   time_t  tv_sec; /* seconds since Jan. 1, 1970 */
longtv_usec;/* and microseconds */
 };
 



Add Edimax EW-7711USn to run.4 hardware list

2013-05-15 Thread Dawe
Hi,

I had the chance to test this device with current amd64 in a wpa2 network.

run0 at uhub2 port 1 "Ralink 802.11 n WLAN" rev 2.00/1.01 addr 3
run0: MAC/BBP RT3070 (rev 0x0201), RF RT3020 (MIMO 1T1R), address 
80:1f:02:85:16:f2

Index: run.4
===
RCS file: /cvs/src/share/man/man4/run.4,v
retrieving revision 1.37
diff -u -p -r1.37 run.4
--- run.4   10 Mar 2013 07:02:54 -  1.37
+++ run.4   15 May 2013 09:57:44 -
@@ -114,6 +114,7 @@ The following adapters should work:
 .It D-Link DWA-140
 .It DrayTek Vigor N61
 .It Edimax EW-7711UAn
+.It Edimax EW-7711USn
 .It Edimax EW-7711UTn
 .It Edimax EW-7717Un
 .It Edimax EW-7718Un



Re: fix dpms issues on ivy bridge

2013-01-29 Thread Dawe
On Jan 29, 2013 13:34, Jonathan Gray wrote:
> The following changes mostly based on what has happened in
> the upstream drm code seems to resolve problems with screen corruption
> on power saving/dpms on ivy bridge with ums here.  Testing on ironlake/
> sandy bridge/ivy bridge (aka Core i*) to make sure this doesn't break
> anything appreciated.
> 
> - remove a workaround which was in itself causing issues
> - switch the order of disabling fdi rx & tx
> - disable DPLL_SEL when disabling the crtc
> - add a few extra delays
> 

So far, everything still works on my amd65 ironlake.
Suspend/resume, dpms, switching between consoles, no corruption to be seen.

OpenBSD 5.2-current (GENERIC.MP) #20: Mon Jan 21 17:23:23 MST 2013
t...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 6225903616 (5937MB)
avail mem = 6037680128 (5757MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xe0010 (78 entries)
bios0: vendor LENOVO version "6IET68WW (1.28 )" date 07/12/2010
bios0: LENOVO 25184QG
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT ECDT APIC MCFG HPET ASF! SLIC BOOT SSDT TCPA SSDT
SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) UART(S3) IGBE(S4) EXP1(S4) EXP2(S4)
EXP3(S4) EXP4(S4) EXP5(S4) EHC1(S3) EHC2(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) i5 CPU M 430 @ 2.27GHz, 2527.50 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,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,LONG,LAHF,PERF,ITSC
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: apic clock running at 133MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) i5 CPU M 430 @ 2.27GHz, 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,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,LONG,LAHF,PERF,ITSC
cpu1: 256KB 64b/line 8-way L2 cache
cpu2 at mainbus0: apid 4 (application processor)
cpu2: Intel(R) Core(TM) i5 CPU M 430 @ 2.27GHz, 2527.00 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,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,LONG,LAHF,PERF,ITSC
cpu2: 256KB 64b/line 8-way L2 cache
cpu3 at mainbus0: apid 5 (application processor)
cpu3: Intel(R) Core(TM) i5 CPU M 430 @ 2.27GHz, 2527.00 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,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,LONG,LAHF,PERF,ITSC
cpu3: 256KB 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
acpimcfg0 at acpi0 addr 0xe000, bus 0-255
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG_)
acpiprt2 at acpi0: bus 2 (EXP1)
acpiprt3 at acpi0: bus 3 (EXP2)
acpiprt4 at acpi0: bus -1 (EXP3)
acpiprt5 at acpi0: bus -1 (EXP4)
acpiprt6 at acpi0: bus 13 (EXP5)
acpicpu0 at acpi0: C3, C1, PSS
acpicpu1 at acpi0: C3, C1, PSS
acpicpu2 at acpi0: C3, C1, PSS
acpicpu3 at acpi0: C3, C1, PSS
acpipwrres0 at acpi0: PUBS
acpitz0 at acpi0: critical temperature is 100 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 not present
acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
cpu0: Enhanced SpeedStep 2527 MHz: speeds: 2267, 2266, 2133, 1999, 1866, 1733,
1599, 1466, 1333, 1199 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core Host" rev 0x02
vga1 at pci0 dev 2 function 0 "Intel HD Graphics" rev 0x02
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xd000, size 0x1000
inteldrm0 at vga1: apic 1 int 16
drm0 at inteldrm0
"Intel 3400 MEI" rev 0x06 at pci0 dev 22 function 0 not configured
em0 at pci0 dev 25 function 0 "Intel 82577LM" rev 0x06: msi, address
00:26:2d:fb:c7:02
ehci0 at pci0 dev 26 function 0 "Intel 3400 USB" rev 0x06: 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 3400 HD Audio" rev 0x06: msi
azalia0: codecs: Conexant/0x5069, Intel/0x2804, using Conexant/0x5069
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 3400 PCIE" rev 0x06: msi
pci1 at ppb0 bus 2
ppb1 at pci0 dev 28 function 1 "Intel 3400 PCIE" rev 0x06: msi
pci2 at ppb1 bus 3
iwn0 at pci2 dev 0 function 0 "Intel WiFi Link 1000" rev 0x00: msi, MIMO 1T2R,
BGS, address 00:26:c7:31:15:06
ppb2 at pci0 dev 28 function 4 "Intel 3400 PC

MD5 checksums -> checksums in pkg.conf.5

2012-10-11 Thread Dawe
As the ports system has moved on from MD5 I hope this makes sense:

Index: pkg.conf.5
===
RCS file: /cvs/src/usr.sbin/pkg_add/pkg.conf.5,v
retrieving revision 1.4
diff -u -p -u -p -r1.4 pkg.conf.5
--- pkg.conf.5  17 Aug 2011 10:48:27 -  1.4
+++ pkg.conf.5  11 Oct 2012 17:00:20 -
@@ -73,7 +73,7 @@ is not defined and no further options ar
 .It Ar nochecksum
 Set to
 .Ar yes
-to waive MD5 checksums during package deletions.
+to waive checksums during package deletions.
 .It Ar ntogo
 Set to
 .Ar yes



remove redundant information from mmap.2

2012-10-06 Thread Dawe
I think this information is already given in the sentences before.

Index: mmap.2
===
RCS file: /cvs/src/lib/libc/sys/mmap.2,v
retrieving revision 1.39
diff -u -p -u -p -r1.39 mmap.2
--- mmap.2  12 Apr 2012 12:53:27 -  1.39
+++ mmap.2  6 Oct 2012 19:35:32 -
@@ -188,10 +188,6 @@ The symbol
 .Dv MAP_FAILED
 is defined in the header
 .Ao Pa sys/mman.h Ac .
-No successful return from
-.Fn mmap
-will return the value
-.Dv MAP_FAILED .
 .Sh ERRORS
 .Fn mmap
 will fail if:



Re: vmmap speed increase diff

2012-03-26 Thread Dawe
On Mar 23, 2012 21:50, Ariane van der Steldt wrote:
> Hi,
> 
> With the recent introduction of vmmap, I introduced a slowdown which
> affects programs with alot of memory (browsers for instance).  First of
> all, since I've heard very few complaints, thanks for putting up with
> this.
> 
> The reason for this e-mail is, that I have a diff.  This diff should
> make the new vmmap as fast as the old vmmap for large programs.  If you
> were hit by the slowdown or would like to test, please use the diff
> below and let me know if there are any problems.
> -- 
> Ariane
> 
> 
Works for me on amd64.
Webvideos play somewhat smoother again.



Re: ahci.c: intel_3400_4 needs same flags as intel_3400_1 to avoid a 30 sec boot hang

2011-06-23 Thread Dawe
On Jun 23, 2011 23:04, David Gwynne wrote:
> you dawe,
> 
> you could point both chips at the same function...
> 
> dlg

sure, or would you prefer a name like ahci_intel_3400_1_4_attach?
Because the behaviour of 3400_2 and 3400_3 isn't known.

Index: ahci.c
===
RCS file: /cvs/src/sys/dev/pci/ahci.c,v
retrieving revision 1.180
diff -u -p -r1.180 ahci.c
--- ahci.c  14 Jun 2011 10:40:14 -  1.180
+++ ahci.c  23 Jun 2011 13:58:33 -
@@ -456,7 +456,7 @@ int ahci_ati_sb700_attach(struct ahci_
struct pci_attach_args *);
 intahci_amd_hudson2_attach(struct ahci_softc *,
struct pci_attach_args *);
-intahci_intel_3400_1_attach(struct ahci_softc *,
+intahci_intel_3400_attach(struct ahci_softc *,
struct pci_attach_args *);
 intahci_nvidia_mcp_attach(struct ahci_softc *,
struct pci_attach_args *);
@@ -481,7 +481,9 @@ static const struct ahci_device ahci_dev
NULL,   ahci_ati_sb700_attach },
 
{ PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_3400_AHCI_1,
-   NULL,   ahci_intel_3400_1_attach },
+   NULL,   ahci_intel_3400_attach },
+   { PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_3400_AHCI_4,
+   NULL,   ahci_intel_3400_attach },
 
{ PCI_VENDOR_NVIDIA,PCI_PRODUCT_NVIDIA_MCP65_AHCI_2,
NULL,   ahci_nvidia_mcp_attach },
@@ -716,7 +718,7 @@ ahci_amd_hudson2_attach(struct ahci_soft
 }
 
 int
-ahci_intel_3400_1_attach(struct ahci_softc *sc, struct pci_attach_args *pa)
+ahci_intel_3400_attach(struct ahci_softc *sc, struct pci_attach_args *pa)
 {
sc->sc_flags |= AHCI_F_IPMS_PROBE;
return (0);

> 
> On 23/06/2011, at 10:50 PM, Dawe wrote:
> 
> > Hi,
> > the intel_3400_4 has the same issue as the intel_3400_1, ahci(4)
> > hangs for 30 seconds on boot and resume. See also PR6630.
> >
> > Index: ahci.c
> > ===
> > RCS file: /cvs/src/sys/dev/pci/ahci.c,v
> > retrieving revision 1.180
> > diff -u -p -r1.180 ahci.c
> > --- ahci.c  14 Jun 2011 10:40:14 -  1.180
> > +++ ahci.c  23 Jun 2011 12:34:49 -
> > @@ -458,6 +458,8 @@ int ahci_amd_hudson2_attach(struct 
> > ahc
> > struct pci_attach_args *);
> > int ahci_intel_3400_1_attach(struct ahci_softc *,
> > struct pci_attach_args *);
> > +intahci_intel_3400_4_attach(struct ahci_softc *,
> > +   struct pci_attach_args *);
> > int ahci_nvidia_mcp_attach(struct ahci_softc *,
> > struct pci_attach_args *);
> >
> > @@ -482,6 +484,8 @@ static const struct ahci_device ahci_dev
> >
> > { PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_3400_AHCI_1,
> > NULL,   ahci_intel_3400_1_attach },
> > +   { PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_3400_AHCI_4,
> > +   NULL,   ahci_intel_3400_4_attach },
> >
> > { PCI_VENDOR_NVIDIA,PCI_PRODUCT_NVIDIA_MCP65_AHCI_2,
> > NULL,   ahci_nvidia_mcp_attach },
> > @@ -717,6 +721,13 @@ ahci_amd_hudson2_attach(struct ahci_soft
> >
> > int
> > ahci_intel_3400_1_attach(struct ahci_softc *sc, struct pci_attach_args *pa)
> > +{
> > +   sc->sc_flags |= AHCI_F_IPMS_PROBE;
> > +   return (0);
> > +}
> > +
> > +int
> > +ahci_intel_3400_4_attach(struct ahci_softc *sc, struct pci_attach_args
> *pa)
> > {
> > sc->sc_flags |= AHCI_F_IPMS_PROBE;
> > return (0);
> >
> >
> > OpenBSD 4.9-current (GENERIC.MP) #9: Thu Jun 23 13:06:40 CEST 2011
> >d...@padtree.my.domain:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> > real mem = 1998045184 (1905MB)
> > avail mem = 1930702848 (1841MB)
> > mainbus0 at root
> > bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xe0010 (78 entries)
> > bios0: vendor LENOVO version "6IET68WW (1.28 )" date 07/12/2010
> > bios0: LENOVO 25184QG
> > acpi0 at bios0: rev 2
> > acpi0: sleep states S0 S3 S4 S5
> > acpi0: tables DSDT FACP SSDT ECDT APIC MCFG HPET ASF! SLIC BOOT SSDT TCPA
> SSDT
> > SSDT SSDT
> > acpi0: wakeup devices LID_(S3) SLPB(S3) UART(S3) IGBE(S4) EXP1(S4) EXP2(S4)
> > EXP3(S4) EXP4(S4) EXP5(S4) EHC1(S3) EHC2(S3) HDEF(S4)
> > acpitimer0 at acpi0: 3579545 Hz, 24 bits
> > acpiec0 at acpi0
> > acpimadt0 at acpi0 a

ahci.c: intel_3400_4 needs same flags as intel_3400_1 to avoid a 30 sec boot hang

2011-06-23 Thread Dawe
Hi,
the intel_3400_4 has the same issue as the intel_3400_1, ahci(4)
hangs for 30 seconds on boot and resume. See also PR6630.

Index: ahci.c
===
RCS file: /cvs/src/sys/dev/pci/ahci.c,v
retrieving revision 1.180
diff -u -p -r1.180 ahci.c
--- ahci.c  14 Jun 2011 10:40:14 -  1.180
+++ ahci.c  23 Jun 2011 12:34:49 -
@@ -458,6 +458,8 @@ int ahci_amd_hudson2_attach(struct ahc
struct pci_attach_args *);
 intahci_intel_3400_1_attach(struct ahci_softc *,
struct pci_attach_args *);
+intahci_intel_3400_4_attach(struct ahci_softc *,
+   struct pci_attach_args *);
 intahci_nvidia_mcp_attach(struct ahci_softc *,
struct pci_attach_args *);
 
@@ -482,6 +484,8 @@ static const struct ahci_device ahci_dev
 
{ PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_3400_AHCI_1,
NULL,   ahci_intel_3400_1_attach },
+   { PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_3400_AHCI_4,
+   NULL,   ahci_intel_3400_4_attach },
 
{ PCI_VENDOR_NVIDIA,PCI_PRODUCT_NVIDIA_MCP65_AHCI_2,
NULL,   ahci_nvidia_mcp_attach },
@@ -717,6 +721,13 @@ ahci_amd_hudson2_attach(struct ahci_soft
 
 int
 ahci_intel_3400_1_attach(struct ahci_softc *sc, struct pci_attach_args *pa)
+{
+   sc->sc_flags |= AHCI_F_IPMS_PROBE;
+   return (0);
+}
+
+int
+ahci_intel_3400_4_attach(struct ahci_softc *sc, struct pci_attach_args *pa)
 {
sc->sc_flags |= AHCI_F_IPMS_PROBE;
return (0);


OpenBSD 4.9-current (GENERIC.MP) #9: Thu Jun 23 13:06:40 CEST 2011
d...@padtree.my.domain:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 1998045184 (1905MB)
avail mem = 1930702848 (1841MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xe0010 (78 entries)
bios0: vendor LENOVO version "6IET68WW (1.28 )" date 07/12/2010
bios0: LENOVO 25184QG
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT ECDT APIC MCFG HPET ASF! SLIC BOOT SSDT TCPA SSDT
SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) UART(S3) IGBE(S4) EXP1(S4) EXP2(S4)
EXP3(S4) EXP4(S4) EXP5(S4) EHC1(S3) EHC2(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) i5 CPU M 430 @ 2.27GHz, 2261.37 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,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,LONG
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: apic clock running at 133MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) i5 CPU M 430 @ 2.27GHz, 2261.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,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,LONG
cpu1: 256KB 64b/line 8-way L2 cache
cpu2 at mainbus0: apid 4 (application processor)
cpu2: Intel(R) Core(TM) i5 CPU M 430 @ 2.27GHz, 2261.00 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,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,LONG
cpu2: 256KB 64b/line 8-way L2 cache
cpu3 at mainbus0: apid 5 (application processor)
cpu3: Intel(R) Core(TM) i5 CPU M 430 @ 2.27GHz, 2261.00 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,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,LONG
cpu3: 256KB 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
acpimcfg0 at acpi0 addr 0xe000, bus 0-255
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG_)
acpiprt2 at acpi0: bus 2 (EXP1)
acpiprt3 at acpi0: bus 3 (EXP2)
acpiprt4 at acpi0: bus -1 (EXP3)
acpiprt5 at acpi0: bus 5 (EXP4)
acpiprt6 at acpi0: bus 13 (EXP5)
acpicpu0 at acpi0: C3, C1, PSS
acpicpu1 at acpi0: C3, C1, PSS
acpicpu2 at acpi0: C3, C1, PSS
acpicpu3 at acpi0: C3, C1, PSS
acpipwrres0 at acpi0: PUBS
acpitz0 at acpi0: critical temperature is 100 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 not present
acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
cpu0: Enhanced SpeedStep 2261 MHz: speeds: 2267, 2266, 2133, 1999, 1866, 1733,
1599, 1466, 1333, 1199 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core Host" rev 0x02
vga1 at pci0 dev 2 function 0 "Intel Mobile HD graphics" rev 0x02
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0

Re: X configuration changes for synaptics - please test

2011-06-19 Thread Dawe
On Jun 19, 2011 23:51, Landry Breuil wrote:
> On Sat, Jun 18, 2011 at 08:25:19AM -0600, Aaron Bieber wrote:
> > Hi,
> > 
> > I applied these patches to -current on my lenovo t410.  
> > 
> > The trackpad works as expected for for a few minutes, and then seems to
> > "lock up" ( not allowing me to move the pointer, or click the two
> > buttons under it ).
> 
> I've experienced it twice on my msi wind u100, with the very latest
> synaptics.v2.diff.. vt switching 'fixes it'.
> Alas, nothing special in Xorg.0.log nor dmesg.
> 
> Landry
> 
For me, it just came back to life all on its own, without vt switching or any
other special interaction.



Re: X configuration changes for synaptics - please test

2011-06-19 Thread Dawe
On Jun 19, 2011 22:01, Dawe wrote:
> On Jun 20, 2011 00:48, Alexandr Shadchin wrote:
> > On Sun, Jun 19, 2011 at 08:16:12PM +0200, Dawe wrote:
> > > On Jun 18, 2011 01:40, Alexandr Shadchin wrote:
> > > > On Wed, Jun 15, 2011 at 09:11:43AM +0200, Matthieu Herrb wrote:
> > > > > Hi,
> > > > > 
> > > > > here are a set of patches being worked on to add native synaptics
> > > > > touch pad support to OpenBSD and Xenocara.
> > > > > 
> > > > > The xf86-input-synaptics driver itself is already committed and built
> > > > > in Xenocara.
> > > > > 
> > > > > http://xenocara.org/wscons_config.2.diff is a diff that uses the X
> > > > > hot-plug mechanism to configure you input drivers. It will setup
> > > > > the xf86-input-synaptics driver for you if you have one, together with
> > > > > a regular mouse driver that will handle any external PS/2 or USB mouse
> > > > > attached in addition. Touchscreens will also be auto-configured this
> > > > > way if one is detected.
> > > > > 
> > > > > This new code also takes care of the configuration of the keyboard
> > > > > layout from the wscons layout. Thus a second diff:
> > > > > http://xenocara.org/xf86-input-keyboard.diff removes that code from
> > > > > the keyboard driver.
> > > > > 
> > > > > To apply those patches:
> > > > > 
> > > > > cd /usr/xenocara/xserver
> > > > > patch -p0 -E < /path/to/wscons_config.2.diff
> > > > > make -f Makefile.bsd-wrapper obj
> > > > > make -f Makefile.bsd-wrapper build
> > > > > cd /usr/xenocara/driver/xf86-input-keyboard
> > > > > patch -p0 -E < /path/to/xf86-input-keyboard.diff
> > > > > make -f Makefile.bsd-wrapper obj
> > > > > make -f Makefile.bsd-wrapper build
> > > > > 
> > > > > Once X is ready, apply the kernel patch, and build a new kernel with
> > > > > the synaptics support in pms(4):
> > > > > http://xenocara.org/sys-synaptics.diff
> > > > > 
> > > > > cd /sys
> > > > > patch -p0 -E < /path/to/sys-synaptics.diff
> > > > > 
> > > > > the new kernel will detect your synaptics touch pad if any, and  X
> > > > > will be configured with the xf86-input-synaptics. Read the
> > > > > synaptics(4) manual page to discover all its features.
> > > > > 
> > > > > You can check how the input drivers were configured by running the
> > > > > command:
> > > > > 
> > > > >xinput list
> > > > > 
> > > > > If you are configuring input devices manually in xorg,conf you need to
> > > > > add this to the ServerFlags section (but may be you should give a try
> > > > > at auto-configuration and remove your InputDevice sections all 
> > > > > together):
> > > > > 
> > > > > Section ServerFlags
> > > > >   Option "AutoAddDevices" "false"
> > > > > EndSection
> > > > > 
> > > > > Please test, comment and report failures. Make sure to include
> > > > > /var/log/Xorg.0.log and dmesg outputs in your reports.
> > > > > 
> > > > > Thanks to Alexandr Shadchin (shadchin@) for his work on this driver 
> > > > > and
> > > > > to all people who already tested these patches and suggested
> > > > > enhancements.
> > > > > 
> > > > > -- 
> > > > > Matthieu Herrb
> > > > > 
> > > > 
> > > > New sys-synaptics.diff 
> > > > (http://koba.devio.us/distfiles/synaptics.v2.diff)
> > > > * fix wrong detect clickpad
> > > > * fix ignore buttons if no fingers on touchpad
> > > > * if open directly /dev/wsmouseX, then remove this device from mux
> > > >   (close device - get back in mux)
> > > > 
> > > > Thanks all for your feedback.
> > > > 
> > > > -- 
> > > > Alexandr Shadchin
> > > > 
> > > This breaks tapping for me on my T410i running amd64.
> > > The more advanced features like scrolling also don't work.
> > > Hitting the real buttons still works.
> > > 
> > 
> > Defaults tap and scrolling disabled.
> > 
> > Add in /etc/X11/xorg.conf:
> > 
> > Section "InputClass"
> > Identifier  "Touchpad defaults"
> > MatchIsTouchpad "on"
> > Option  "VertEdgeScroll" "true"
> > Option  "HorizEdgeScroll" "true"
> > Option  "TapButton1" "1"
> > EndSection
> > 
> > -- 
> > Alexandr Shadchin
> > 
> 
> Oh sorry, I thought there was no need for an xorg.conf.
> Now tapping and scrolling work just fine.
> 
Well, after some time I'm experiencing the same behaviour like Aaron.
No dmesg output and nothing in the Xorg.0.log after the touchpad stops working.



Re: X configuration changes for synaptics - please test

2011-06-19 Thread Dawe
On Jun 20, 2011 00:48, Alexandr Shadchin wrote:
> On Sun, Jun 19, 2011 at 08:16:12PM +0200, Dawe wrote:
> > On Jun 18, 2011 01:40, Alexandr Shadchin wrote:
> > > On Wed, Jun 15, 2011 at 09:11:43AM +0200, Matthieu Herrb wrote:
> > > > Hi,
> > > > 
> > > > here are a set of patches being worked on to add native synaptics
> > > > touch pad support to OpenBSD and Xenocara.
> > > > 
> > > > The xf86-input-synaptics driver itself is already committed and built
> > > > in Xenocara.
> > > > 
> > > > http://xenocara.org/wscons_config.2.diff is a diff that uses the X
> > > > hot-plug mechanism to configure you input drivers. It will setup
> > > > the xf86-input-synaptics driver for you if you have one, together with
> > > > a regular mouse driver that will handle any external PS/2 or USB mouse
> > > > attached in addition. Touchscreens will also be auto-configured this
> > > > way if one is detected.
> > > > 
> > > > This new code also takes care of the configuration of the keyboard
> > > > layout from the wscons layout. Thus a second diff:
> > > > http://xenocara.org/xf86-input-keyboard.diff removes that code from
> > > > the keyboard driver.
> > > > 
> > > > To apply those patches:
> > > > 
> > > > cd /usr/xenocara/xserver
> > > > patch -p0 -E < /path/to/wscons_config.2.diff
> > > > make -f Makefile.bsd-wrapper obj
> > > > make -f Makefile.bsd-wrapper build
> > > > cd /usr/xenocara/driver/xf86-input-keyboard
> > > > patch -p0 -E < /path/to/xf86-input-keyboard.diff
> > > > make -f Makefile.bsd-wrapper obj
> > > > make -f Makefile.bsd-wrapper build
> > > > 
> > > > Once X is ready, apply the kernel patch, and build a new kernel with
> > > > the synaptics support in pms(4):
> > > > http://xenocara.org/sys-synaptics.diff
> > > > 
> > > > cd /sys
> > > > patch -p0 -E < /path/to/sys-synaptics.diff
> > > > 
> > > > the new kernel will detect your synaptics touch pad if any, and  X
> > > > will be configured with the xf86-input-synaptics. Read the
> > > > synaptics(4) manual page to discover all its features.
> > > > 
> > > > You can check how the input drivers were configured by running the
> > > > command:
> > > > 
> > > >xinput list
> > > > 
> > > > If you are configuring input devices manually in xorg,conf you need to
> > > > add this to the ServerFlags section (but may be you should give a try
> > > > at auto-configuration and remove your InputDevice sections all 
> > > > together):
> > > > 
> > > > Section ServerFlags
> > > > Option "AutoAddDevices" "false"
> > > > EndSection
> > > > 
> > > > Please test, comment and report failures. Make sure to include
> > > > /var/log/Xorg.0.log and dmesg outputs in your reports.
> > > > 
> > > > Thanks to Alexandr Shadchin (shadchin@) for his work on this driver and
> > > > to all people who already tested these patches and suggested
> > > > enhancements.
> > > > 
> > > > -- 
> > > > Matthieu Herrb
> > > > 
> > > 
> > > New sys-synaptics.diff (http://koba.devio.us/distfiles/synaptics.v2.diff)
> > > * fix wrong detect clickpad
> > > * fix ignore buttons if no fingers on touchpad
> > > * if open directly /dev/wsmouseX, then remove this device from mux
> > >   (close device - get back in mux)
> > > 
> > > Thanks all for your feedback.
> > > 
> > > -- 
> > > Alexandr Shadchin
> > > 
> > This breaks tapping for me on my T410i running amd64.
> > The more advanced features like scrolling also don't work.
> > Hitting the real buttons still works.
> > 
> 
> Defaults tap and scrolling disabled.
> 
> Add in /etc/X11/xorg.conf:
> 
> Section "InputClass"
> Identifier  "Touchpad defaults"
> MatchIsTouchpad "on"
> Option  "VertEdgeScroll" "true"
> Option  "HorizEdgeScroll" "true"
> Option  "TapButton1" "1"
> EndSection
> 
> -- 
> Alexandr Shadchin
> 

Oh sorry, I thought there was no need for an xorg.conf.
Now tapping and scrolling work just fine.



Re: X configuration changes for synaptics - please test

2011-06-19 Thread Dawe
On Jun 18, 2011 01:40, Alexandr Shadchin wrote:
> On Wed, Jun 15, 2011 at 09:11:43AM +0200, Matthieu Herrb wrote:
> > Hi,
> > 
> > here are a set of patches being worked on to add native synaptics
> > touch pad support to OpenBSD and Xenocara.
> > 
> > The xf86-input-synaptics driver itself is already committed and built
> > in Xenocara.
> > 
> > http://xenocara.org/wscons_config.2.diff is a diff that uses the X
> > hot-plug mechanism to configure you input drivers. It will setup
> > the xf86-input-synaptics driver for you if you have one, together with
> > a regular mouse driver that will handle any external PS/2 or USB mouse
> > attached in addition. Touchscreens will also be auto-configured this
> > way if one is detected.
> > 
> > This new code also takes care of the configuration of the keyboard
> > layout from the wscons layout. Thus a second diff:
> > http://xenocara.org/xf86-input-keyboard.diff removes that code from
> > the keyboard driver.
> > 
> > To apply those patches:
> > 
> > cd /usr/xenocara/xserver
> > patch -p0 -E < /path/to/wscons_config.2.diff
> > make -f Makefile.bsd-wrapper obj
> > make -f Makefile.bsd-wrapper build
> > cd /usr/xenocara/driver/xf86-input-keyboard
> > patch -p0 -E < /path/to/xf86-input-keyboard.diff
> > make -f Makefile.bsd-wrapper obj
> > make -f Makefile.bsd-wrapper build
> > 
> > Once X is ready, apply the kernel patch, and build a new kernel with
> > the synaptics support in pms(4):
> > http://xenocara.org/sys-synaptics.diff
> > 
> > cd /sys
> > patch -p0 -E < /path/to/sys-synaptics.diff
> > 
> > the new kernel will detect your synaptics touch pad if any, and  X
> > will be configured with the xf86-input-synaptics. Read the
> > synaptics(4) manual page to discover all its features.
> > 
> > You can check how the input drivers were configured by running the
> > command:
> > 
> >xinput list
> > 
> > If you are configuring input devices manually in xorg,conf you need to
> > add this to the ServerFlags section (but may be you should give a try
> > at auto-configuration and remove your InputDevice sections all together):
> > 
> > Section ServerFlags
> > Option "AutoAddDevices" "false"
> > EndSection
> > 
> > Please test, comment and report failures. Make sure to include
> > /var/log/Xorg.0.log and dmesg outputs in your reports.
> > 
> > Thanks to Alexandr Shadchin (shadchin@) for his work on this driver and
> > to all people who already tested these patches and suggested
> > enhancements.
> > 
> > -- 
> > Matthieu Herrb
> > 
> 
> New sys-synaptics.diff (http://koba.devio.us/distfiles/synaptics.v2.diff)
> * fix wrong detect clickpad
> * fix ignore buttons if no fingers on touchpad
> * if open directly /dev/wsmouseX, then remove this device from mux
>   (close device - get back in mux)
> 
> Thanks all for your feedback.
> 
> -- 
> Alexandr Shadchin
> 
This breaks tapping for me on my T410i running amd64.
The more advanced features like scrolling also don't work.
Hitting the real buttons still works.

xinput list   
b! Virtual core pointerid=2[master pointer  (3)]
b   b3 Virtual core XTEST pointerid=4[slave  pointer
(2)]
b   b3 /dev/wsmouse0 id=7[slave  pointer
(2)]
b   b3 /dev/wsmouse  id=8[slave  pointer
(2)]
b# Virtual core keyboard   id=3[master keyboard (2)]
b3 Virtual core XTEST keyboard id=5[slave  keyboard
(3)]
b3 /dev/wskbd  id=6[slave  keyboard
(3)]


OpenBSD 4.9-current (GENERIC.MP) #7: Sun Jun 19 19:32:32 CEST 2011
d...@padtree.my.domain:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 1998045184 (1905MB)
avail mem = 1930715136 (1841MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xe0010 (78 entries)
bios0: vendor LENOVO version "6IET68WW (1.28 )" date 07/12/2010
bios0: LENOVO 25184QG
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT ECDT APIC MCFG HPET ASF! SLIC BOOT SSDT TCPA SSDT
SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) UART(S3) IGBE(S4) EXP1(S4) EXP2(S4)
EXP3(S4) EXP4(S4) EXP5(S4) EHC1(S3) EHC2(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) i5 CPU M 430 @ 2.27GHz, 2261.41 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,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,LONG
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: apic clock running at 132MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) i5 CPU M 430 @ 2.27GHz, 2261.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,SBF,

Re: softraid cleanup

2010-10-22 Thread Dawe
On Oct 20, 2010 20:47, Marco Peereboom wrote:
> On Thu, Sep 30, 2010 at 03:35:33AM +0200, Tobias Ulmer wrote:
> > I got this after a while:
> > 
> > panic: softraid0: sr_crypto_finish_io
> > 
> > No serial, so there's no more info. You know where to find me
> 
> new diff that should fix all them issues.
> 
> please test, especially raid 1 including rebuild and stuff.
> 

No issues for me on amd64 after one day of using the crypto
discipline.



Re: ACPI: (redux) Early acpiec initialization diff

2010-07-25 Thread Dawe
On Fri, 23 Jul 2010 23:53:50 -0600 (MDT)
Jordan Hargrave  wrote:

> Redux: this new version will apply with -current
> 
> This patch will allow acpiec to initialize earlier if a ECDT table is
> found.  This fixes a lockup if booting on some Thinkpads while docked.
>  
> You can tell if your system supports ECDT by scanning the ACPI tables
> line in dmesg.  There should be a line like this:
> acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET SLIC BOOT ASF! SSDT 
> SSDT SSDT SSDT
>  
> ECDT will be one of the entries if the early initialization is supported.
>  
> If scanning dmesg, acpiec0 will now also initialize earlier (near acpitimer
> and acpimadt) instead of after acpiprt. 
> 

I can't test with a docking station, otherwise it seems to work.
But this is already in the current snapshot, I think.
I patched my kernel anyway and yes, acpiec0 initializes earlier than
with older kernels.

OpenBSD 4.8-beta (GENERIC.MP) #1: Sun Jul 25 20:46:25 CEST 2010
r...@padtree.my.domain:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 1998045184 (1905MB)
avail mem = 1931018240 (1841MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xe0010 (78 entries)
bios0: vendor LENOVO version "6IET65WW (1.25 )" date 06/07/2010
bios0: LENOVO 25184QG
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP SSDT ECDT APIC MCFG HPET ASF! SLIC BOOT SSDT TCPA SSDT 
SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) UART(S3) IGBE(S4) EXP1(S4) EXP2(S4) 
EXP3(S4) EXP4(S4) EXP5(S4) EHC1(S3) EHC2(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) i5 CPU M 430 @ 2.27GHz, 2261.43 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,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,LONG
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: apic clock running at 133MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) i5 CPU M 430 @ 2.27GHz, 2261.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,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,LONG
cpu1: 256KB 64b/line 8-way L2 cache
cpu2 at mainbus0: apid 4 (application processor)
cpu2: Intel(R) Core(TM) i5 CPU M 430 @ 2.27GHz, 2261.00 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,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,LONG
cpu2: 256KB 64b/line 8-way L2 cache
cpu3 at mainbus0: apid 5 (application processor)
cpu3: Intel(R) Core(TM) i5 CPU M 430 @ 2.27GHz, 2261.00 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,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,LONG
cpu3: 256KB 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
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG_)
acpiprt2 at acpi0: bus 2 (EXP1)
acpiprt3 at acpi0: bus 3 (EXP2)
acpiprt4 at acpi0: bus -1 (EXP3)
acpiprt5 at acpi0: bus 5 (EXP4)
acpiprt6 at acpi0: bus 13 (EXP5)
acpicpu0 at acpi0: C3, C1, PSS
acpicpu1 at acpi0: C3, C1, PSS
acpicpu2 at acpi0: C3, C1, PSS
acpicpu3 at acpi0: C3, C1, PSS
acpipwrres0 at acpi0: PUBS
acpitz0 at acpi0: critical temperature 100 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 not present
acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
cpu0: Enhanced SpeedStep 2261 MHz: speeds: 2267, 2266, 2133, 1999, 1866, 1733, 
1599, 1466, 1333, 1199 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 vendor "Intel", unknown product 0x0044 rev 0x02
vga1 at pci0 dev 2 function 0 "Intel Mobile HD graphics" rev 0x02
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xd000, size 0x1000
inteldrm0 at vga1: apic 1 int 16 (irq 11)
drm0 at inteldrm0
"Intel 3400 MEI" rev 0x06 at pci0 dev 22 function 0 not configured
em0 at pci0 dev 25 function 0 "Intel 82577LM" rev 0x06: apic 1 int 20 (irq 11), 
address 00:26:2d:fb:c7:02
ehci0 at pci0 dev 26 function 0 "Intel 3400 USB" rev 0x06: apic 1 int 23 (irq 
11)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 "Intel 3400 HD Audio" rev 0x06: apic 1 int 17 
(irq 11)
azalia0: codecs: Conexant/0x5069, Intel/0x2804, using Conexant/0x5069
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 3400 PCIE" rev 0x06: apic 1 int 20 (irq 
11)
pci1 at ppb0 bus 2
ppb1 at pci0 dev 28 function 1 "Intel 3400 PCIE" rev 

Re: Enable speedstep on nehalem (i3/5/7) cpus

2010-06-28 Thread Dawe
On Sat, 26 Jun 2010 23:48:15 -0600 (MDT)
g...@gwk.ca (Gordon Willem Klok) wrote:

> Hello this should make speedstep work on nehalem cpu's (i3, i5, i7s) where
> est uses acpi to get the available states. Please let me know of any
> issues
> 
> gwk
> 

Seems to work on my i5 notebook, running amd64 with apmd -C.
Thanks a lot.

$ sysctl hw
hw.machine=amd64
hw.model=Intel(R) Core(TM) i5 CPU M 430 @ 2.27GHz
hw.ncpu=4
hw.byteorder=1234
hw.pagesize=4096
hw.disknames=sd0,cd0,sd1
hw.diskcount=3
hw.sensors.cpu0.temp0=31.00 degC
hw.sensors.cpu1.temp0=31.00 degC
hw.sensors.cpu2.temp0=31.00 degC
hw.sensors.cpu3.temp0=31.00 degC
hw.sensors.acpitz0.temp0=47.00 degC (zone temperature)
hw.sensors.acpiac0.indicator0=On (power supply)
hw.sensors.acpithinkpad0.temp0=47.00 degC
hw.sensors.acpithinkpad0.temp1=47.00 degC
hw.sensors.acpithinkpad0.temp2=47.00 degC
hw.sensors.acpithinkpad0.temp3=47.00 degC
hw.sensors.acpithinkpad0.temp4=47.00 degC
hw.sensors.acpithinkpad0.temp5=47.00 degC
hw.sensors.acpithinkpad0.temp6=47.00 degC
hw.sensors.acpithinkpad0.temp7=47.00 degC
hw.sensors.acpithinkpad0.fan0=3589 RPM
hw.sensors.softraid0.drive0=online (sd1), OK
hw.cpuspeed=1199
hw.setperf=0
hw.vendor=LENOVO
hw.product=25184QG
hw.version=ThinkPad T410
hw.serialno=R843DMF
hw.uuid=70391f81-5062-11cb-a825-b09ffc8d1830
hw.physmem=1998045184
hw.usermem=1997803520
hw.ncpufound=4

OpenBSD 4.7-current (GENERIC.MP) #4: Mon Jun 28 12:48:13 CEST 2010

r...@padtree.my.domain:/home/dawe/files/openbsd_cvs/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 1998045184 (1905MB)
avail mem = 1931010048 (1841MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xe0010 (78 entries)
bios0: vendor LENOVO version "6IET55WW (1.15 )" date 03/24/2010
bios0: LENOVO 25184QG
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP SSDT ECDT APIC MCFG HPET ASF! SLIC BOOT SSDT TCPA SSDT 
SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) UART(S3) IGBE(S4) EXP1(S4) EXP2(S4) 
EXP3(S4) EXP4(S4) EXP5(S4) EHC1(S3) EHC2(S3) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5 CPU M 430 @ 2.27GHz, 2261.40 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,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,LONG
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: apic clock running at 133MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) i5 CPU M 430 @ 2.27GHz, 2261.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,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,LONG
cpu1: 256KB 64b/line 8-way L2 cache
cpu2 at mainbus0: apid 4 (application processor)
cpu2: Intel(R) Core(TM) i5 CPU M 430 @ 2.27GHz, 2261.00 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,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,LONG
cpu2: 256KB 64b/line 8-way L2 cache
cpu3 at mainbus0: apid 5 (application processor)
cpu3: Intel(R) Core(TM) i5 CPU M 430 @ 2.27GHz, 2261.00 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,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,LONG
cpu3: 256KB 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
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG_)
acpiprt2 at acpi0: bus 2 (EXP1)
acpiprt3 at acpi0: bus 3 (EXP2)
acpiprt4 at acpi0: bus -1 (EXP3)
acpiprt5 at acpi0: bus 5 (EXP4)
acpiprt6 at acpi0: bus 13 (EXP5)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C1, PSS
acpicpu1 at acpi0: C3, C1, PSS
acpicpu2 at acpi0: C3, C1, PSS
acpicpu3 at acpi0: C3, C1, PSS
acpipwrres0 at acpi0: PUBS
acpitz0 at acpi0: critical temperature 100 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 not present
acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
cpu0: Enhanced SpeedStep 2261 MHz: speeds: 2267, 2266, 2133, 1999, 1866, 1733, 
1599, 1466, 1333, 1199 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 vendor "Intel", unknown product 0x0044 rev 0x02
vga1 at pci0 dev 2 function 0 "Intel Mobile HD graphics" rev 0x02
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp at vga1 not configured
"Intel 3400 MEI" rev 0x06 at pci0 dev 22 function 0 not configured
em0 at pci0 dev 25 function 0 "Intel 82577LM" rev 0x06: apic 1 int 20 (irq 11), 
address 00:26:2d:fb:c7:02
ehci0 at pci0 dev 26 function 0 "Intel 340

Re: Ironlake pci id found in Core i5 M430

2010-06-17 Thread Dawe
On Thu, 17 Jun 2010 13:24:10 +0200
Dawe  wrote:

> Please tell me if I can help to get intagp working on this machine.
> 

Sorry, I got confused over all this core stuff.
This is the pci bridge not the graphics itself.

Index: pcidevs
===
RCS file: /cvs/src/sys/dev/pci/pcidevs,v
retrieving revision 1.1557
diff -u -p -r1.1557 pcidevs
--- pcidevs 24 May 2010 20:36:29 -  1.1557
+++ pcidevs 17 Jun 2010 15:09:14 -
@@ -2191,9 +2191,10 @@ product IMS TT3D 0x9135  Twin Turbo 3D
 /* Intel products */
 product INTEL EESISA   0x0008  EES ISA
 product INTEL 211450x0039  21145
-product INTEL CORE_HB  0x0040  Core Host
+product INTEL CORE_HB_10x0040  Core Host
 product INTEL CORE_PCIE_0  0x0041  Core PCIE
 product INTEL CLARKDALE_IGD0x0042  Intel HD graphics
+product INTEL CORE_HB_20x0044  Core Host
 product INTEL ARRANDALE_IGD0x0046  Intel HD graphics
 product INTEL WIFI_LINK_6005A_2X2_10x0082  Centrino Advanced-N 6205a
 product INTEL WIFI_LINK_1000_1 0x0083  WiFi Link 1000
Index: pcidevs.h
===
RCS file: /cvs/src/sys/dev/pci/pcidevs.h,v
retrieving revision 1.1554
diff -u -p -r1.1554 pcidevs.h
--- pcidevs.h   24 May 2010 20:37:54 -  1.1554
+++ pcidevs.h   17 Jun 2010 15:09:21 -
@@ -2196,9 +2196,10 @@
 /* Intel products */
 #definePCI_PRODUCT_INTEL_EESISA0x0008  /* EES ISA */
 #definePCI_PRODUCT_INTEL_21145 0x0039  /* 21145 */
-#definePCI_PRODUCT_INTEL_CORE_HB   0x0040  /* Core Host */
+#definePCI_PRODUCT_INTEL_CORE_HB_1 0x0040  /* Core Host */
 #definePCI_PRODUCT_INTEL_CORE_PCIE_0   0x0041  /* Core PCIE */
 #definePCI_PRODUCT_INTEL_CLARKDALE_IGD 0x0042  /* Intel HD 
graphics */
+#definePCI_PRODUCT_INTEL_CORE_HB_2 0x0044  /* Core Host */
 #definePCI_PRODUCT_INTEL_ARRANDALE_IGD 0x0046  /* Intel HD 
graphics */
 #definePCI_PRODUCT_INTEL_WIFI_LINK_6005A_2X2_1 0x0082  /* 
Centrino Advanced-N 6205a */
 #definePCI_PRODUCT_INTEL_WIFI_LINK_1000_1  0x0083  /* WiFi 
Link 1000 */
Index: pcidevs_data.h
===
RCS file: /cvs/src/sys/dev/pci/pcidevs_data.h,v
retrieving revision 1.1549
diff -u -p -r1.1549 pcidevs_data.h
--- pcidevs_data.h  24 May 2010 20:37:54 -  1.1549
+++ pcidevs_data.h  17 Jun 2010 15:09:29 -
@@ -6468,7 +6468,7 @@ static const struct pci_known_product pc
"21145",
},
{
-   PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_CORE_HB,
+   PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_CORE_HB_1,
"Core Host",
},
{
@@ -6478,6 +6478,10 @@ static const struct pci_known_product pc
{
PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_CLARKDALE_IGD,
"Intel HD graphics",
+   },
+   {
+   PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_CORE_HB_2,
+   "Core Host",
},
{
PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_ARRANDALE_IGD,



Ironlake pci id found in Core i5 M430

2010-06-17 Thread Dawe
Please tell me if I can help to get intagp working on this machine.

Index: pcidevs
===
RCS file: /cvs/src/sys/dev/pci/pcidevs,v
retrieving revision 1.1557
diff -u -p -r1.1557 pcidevs
--- pcidevs 24 May 2010 20:36:29 -  1.1557
+++ pcidevs 17 Jun 2010 09:09:13 -
@@ -2193,7 +2193,8 @@ product INTEL EESISA  0x0008  EES ISA
 product INTEL 211450x0039  21145
 product INTEL CORE_HB  0x0040  Core Host
 product INTEL CORE_PCIE_0  0x0041  Core PCIE
-product INTEL CLARKDALE_IGD0x0042  Intel HD graphics
+product INTEL CLARKDALE_IGD_1  0x0042  Intel HD graphics
+product INTEL CLARKDALE_IGD_2  0x0044  Intel HD graphics
 product INTEL ARRANDALE_IGD0x0046  Intel HD graphics
 product INTEL WIFI_LINK_6005A_2X2_10x0082  Centrino Advanced-N 6205a
 product INTEL WIFI_LINK_1000_1 0x0083  WiFi Link 1000
Index: pcidevs.h
===
RCS file: /cvs/src/sys/dev/pci/pcidevs.h,v
retrieving revision 1.1554
diff -u -p -r1.1554 pcidevs.h
--- pcidevs.h   24 May 2010 20:37:54 -  1.1554
+++ pcidevs.h   17 Jun 2010 09:09:19 -
@@ -2198,7 +2198,8 @@
 #definePCI_PRODUCT_INTEL_21145 0x0039  /* 21145 */
 #definePCI_PRODUCT_INTEL_CORE_HB   0x0040  /* Core Host */
 #definePCI_PRODUCT_INTEL_CORE_PCIE_0   0x0041  /* Core PCIE */
-#definePCI_PRODUCT_INTEL_CLARKDALE_IGD 0x0042  /* Intel HD 
graphics */
+#definePCI_PRODUCT_INTEL_CLARKDALE_IGD_1   0x0042  /* 
Intel HD graphics */
+#definePCI_PRODUCT_INTEL_CLARKDALE_IGD_2   0x0044  /* 
Intel HD graphics */
 #definePCI_PRODUCT_INTEL_ARRANDALE_IGD 0x0046  /* Intel HD 
graphics */
 #definePCI_PRODUCT_INTEL_WIFI_LINK_6005A_2X2_1 0x0082  /* 
Centrino Advanced-N 6205a */
 #definePCI_PRODUCT_INTEL_WIFI_LINK_1000_1  0x0083  /* WiFi 
Link 1000 */
Index: pcidevs_data.h
===
RCS file: /cvs/src/sys/dev/pci/pcidevs_data.h,v
retrieving revision 1.1549
diff -u -p -r1.1549 pcidevs_data.h
--- pcidevs_data.h  24 May 2010 20:37:54 -  1.1549
+++ pcidevs_data.h  17 Jun 2010 09:09:27 -
@@ -6476,7 +6476,11 @@ static const struct pci_known_product pc
"Core PCIE",
},
{
-   PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_CLARKDALE_IGD,
+   PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_CLARKDALE_IGD_1,
+   "Intel HD graphics",
+   },
+   {
+   PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_CLARKDALE_IGD_2,
"Intel HD graphics",
},
{


dmesg with id patch
OpenBSD 4.7-current (GENERIC.MP) #1: Thu Jun 17 12:13:51 CEST 2010

r...@padtree.my.domain:/home/dawe/files/openbsd_cvs/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 1998045184 (1905MB)
avail mem = 1931042816 (1841MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xe0010 (78 entries)
bios0: vendor LENOVO version "6IET55WW (1.15 )" date 03/24/2010
bios0: LENOVO 25184QG
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP SSDT ECDT APIC MCFG HPET ASF! SLIC BOOT SSDT TCPA SSDT 
SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) UART(S3) IGBE(S4) EXP1(S4) EXP2(S4) 
EXP3(S4) EXP4(S4) EXP5(S4) EHC1(S3) EHC2(S3) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5 CPU M 430 @ 2.27GHz, 2261.44 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,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,LONG
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: apic clock running at 132MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) i5 CPU M 430 @ 2.27GHz, 2261.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,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,LONG
cpu1: 256KB 64b/line 8-way L2 cache
cpu2 at mainbus0: apid 4 (application processor)
cpu2: Intel(R) Core(TM) i5 CPU M 430 @ 2.27GHz, 2261.00 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,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,LONG
cpu2: 256KB 64b/line 8-way L2 cache
cpu3 at mainbus0: apid 5 (application processor)
cpu3: Intel(R) Core(TM) i5 CPU M 430 @ 2.27GHz, 2261.00 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,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,LONG
cpu3: 256KB 64b/line 8-way L2 cache
ioapic0 at mainbus0: a

em(4) in T410i

2010-06-11 Thread Dawe
Hello,
after adding the id of the em(4) in my shiny new T410i it fails with
an invalid EEPROM checksum after attaching to it.
Maybe the id patches are still of some use.

Index: if_em.c
===
RCS file: /cvs/src/sys/dev/pci/if_em.c,v
retrieving revision 1.236
diff -u -p -r1.236 if_em.c
--- if_em.c 18 May 2010 21:51:10 -  1.236
+++ if_em.c 11 Jun 2010 14:31:07 -
@@ -127,6 +127,7 @@ const struct pci_matchid em_devices[] = 
{ PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_82576_QUAD_COPPER },
{ PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_82576_QUAD_CU_ET2 },
{ PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_82576_NS },
+   { PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_82577LM },
{ PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_ICH8_IFE },
{ PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_ICH8_IFE_G },
{ PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_ICH8_IFE_GT },
Index: if_em_hw.c
===
RCS file: /cvs/src/sys/dev/pci/if_em_hw.c,v
retrieving revision 1.47
diff -u -p -r1.47 if_em_hw.c
--- if_em_hw.c  18 May 2010 21:51:10 -  1.47
+++ if_em_hw.c  11 Jun 2010 14:31:07 -
@@ -467,6 +467,7 @@ em_set_mac_type(struct em_hw *hw)
case E1000_DEV_ID_82576_QUAD_COPPER:
case E1000_DEV_ID_82576_QUAD_CU_ET2:
case E1000_DEV_ID_82576_NS:
+   case E1000_DEV_ID_82577LM:
hw->mac_type = em_82575;
hw->initialize_hw_bits_disable = 1;
break;
Index: if_em_hw.h
===
RCS file: /cvs/src/sys/dev/pci/if_em_hw.h,v
retrieving revision 1.37
diff -u -p -r1.37 if_em_hw.h
--- if_em_hw.h  18 May 2010 21:51:10 -  1.37
+++ if_em_hw.h  11 Jun 2010 14:31:08 -
@@ -530,6 +530,7 @@ int32_t em_check_phy_reset_block(struct 
 #define E1000_DEV_ID_82576_NS   0x150A
 #define E1000_DEV_ID_82576_QUAD_CU_ET2  0x1526
 #define E1000_DEV_ID_82574L 0x10D3
+#define E1000_DEV_ID_82577LM0x10EA
 #define E1000_DEV_ID_EP80579_LAN_1  0x5040  /* EP80579 LAN */
 #define E1000_DEV_ID_EP80579_LAN_2  0x5044  /* EP80579 LAN */
 #define E1000_DEV_ID_EP80579_LAN_3  0x5048  /* EP80579 LAN */
Index: pcidevs
===
RCS file: /cvs/src/sys/dev/pci/pcidevs,v
retrieving revision 1.1557
diff -u -p -r1.1557 pcidevs
--- pcidevs 24 May 2010 20:36:29 -  1.1557
+++ pcidevs 11 Jun 2010 14:31:08 -
@@ -2375,6 +2375,7 @@ product INTEL ICH9_BM 0x10e5  ICH9 BM
 product INTEL 82576_FIBER  0x10e6  PRO/1000 FP (82576)
 product INTEL 82576_SERDES 0x10e7  PRO/1000 FP (82576)
 product INTEL 82576_QUAD_COPPER0x10e8  PRO/1000 QP (82576)
+product INTEL 82577LM  0x10ea  PRO/1000 (82577LM)
 product INTEL 82598EB_CX4_DUAL 0x10ec  10GbE CX4 Dual (82598EB)
 product INTEL 82578DM  0x10ef  82578DM
 product INTEL 82598_DA_DUAL0x10f1  10GbE DA Dual (82598)
Index: pcidevs.h
===
RCS file: /cvs/src/sys/dev/pci/pcidevs.h,v
retrieving revision 1.1554
diff -u -p -r1.1554 pcidevs.h
--- pcidevs.h   24 May 2010 20:37:54 -  1.1554
+++ pcidevs.h   11 Jun 2010 14:31:08 -
@@ -2380,6 +2380,7 @@
 #definePCI_PRODUCT_INTEL_82576_FIBER   0x10e6  /* PRO/1000 FP 
(82576) */
 #definePCI_PRODUCT_INTEL_82576_SERDES  0x10e7  /* PRO/1000 FP 
(82576) */
 #definePCI_PRODUCT_INTEL_82576_QUAD_COPPER 0x10e8  /* 
PRO/1000 QP (82576) */
+#definePCI_PRODUCT_INTEL_82577LM   0x10ea  /* PRO/1000 
(82577LM) */
 #definePCI_PRODUCT_INTEL_82598EB_CX4_DUAL  0x10ec  /* 
10GbE CX4 Dual (82598EB) */
 #definePCI_PRODUCT_INTEL_82578DM   0x10ef  /* 82578DM */
 #definePCI_PRODUCT_INTEL_82598_DA_DUAL 0x10f1  /* 10GbE DA 
Dual (82598) */
Index: pcidevs_data.h
===
RCS file: /cvs/src/sys/dev/pci/pcidevs_data.h,v
retrieving revision 1.1549
diff -u -p -r1.1549 pcidevs_data.h
--- pcidevs_data.h  24 May 2010 20:37:54 -  1.1549
+++ pcidevs_data.h  11 Jun 2010 14:31:09 -
@@ -7204,6 +7204,10 @@ static const struct pci_known_product pc
"PRO/1000 QP (82576)",
},
{
+   PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_82577LM,
+   "PRO/1000 (82577LM)",
+   },
+   {
PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_82598EB_CX4_DUAL,
"10GbE CX4 Dual (82598EB)",
},



dmesg with patch
OpenBSD 4.7-current (GENERIC.MP) #6: Fri Jun 11 16:42:24 CEST 2010
    
r...@liltree.my.domain:/home/dawe/files/openbsd_cvs/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 1998045184 (1905MB)
avail mem = 1931042816 (1841MB)
mainbus0 at root
bios0 at mai

opencvs: don't go on silently if snprintf() can't construct the tagpath

2010-06-10 Thread Dawe
As far as I understand the code there's no reason that opencvs should silently 
go on
if snprintf() can't construct the tagpath in cvs_parse_tagfile() and
cvs_write_tagfile().

Index: entries.c
===
RCS file: /cvs/src/usr.bin/cvs/entries.c,v
retrieving revision 1.102
diff -u -p -r1.102 entries.c
--- entries.c   19 Mar 2009 09:53:16 -  1.102
+++ entries.c   10 Jun 2010 11:55:44 -
@@ -419,7 +419,7 @@ void
 cvs_parse_tagfile(char *dir, char **tagp, char **datep, int *nbp)
 {
FILE *fp;
-   int i, linenum;
+   int linenum;
size_t len;
struct tm datetm;
char linebuf[128], tagpath[MAXPATHLEN];
@@ -435,9 +435,7 @@ cvs_parse_tagfile(char *dir, char **tagp
if (nbp != NULL)
*nbp = 0;
 
-   i = snprintf(tagpath, MAXPATHLEN, "%s/%s", dir, CVS_PATH_TAG);
-   if (i < 0 || i >= MAXPATHLEN)
-   return;
+   (void)xsnprintf(tagpath, MAXPATHLEN, "%s/%s", dir, CVS_PATH_TAG);
 
if ((fp = fopen(tagpath, "r")) == NULL) {
if (errno != ENOENT)
@@ -502,7 +500,6 @@ cvs_write_tagfile(const char *dir, char 
char tagpath[MAXPATHLEN];
char sticky[CVS_REV_BUFSZ];
struct tm datetm;
-   int i;
 
cvs_log(LP_TRACE, "cvs_write_tagfile(%s, %s, %s)", dir,
tag != NULL ? tag : "", date != NULL ? date : "");
@@ -510,9 +507,7 @@ cvs_write_tagfile(const char *dir, char 
if (cvs_noexec == 1)
return;
 
-   i = snprintf(tagpath, MAXPATHLEN, "%s/%s", dir, CVS_PATH_TAG);
-   if (i < 0 || i >= MAXPATHLEN)
-   return;
+   (void)xsnprintf(tagpath, MAXPATHLEN, "%s/%s", dir, CVS_PATH_TAG);
 
if (tag != NULL || cvs_specified_date != -1 ||
cvs_directory_date != -1) {



comment fix for ber.c

2010-05-31 Thread Dawe
ber_calc_len() is not an internal function in snmpd(8) and ypldap(8).
It's used this way in ldapd(8), but it's likely better to keep the binding 
consistent.


Index: ldapd/ber.c
===
RCS file: /cvs/src/usr.sbin/ldapd/ber.c,v
retrieving revision 1.1
diff -u -p -r1.1 ber.c
--- ldapd/ber.c 31 May 2010 17:36:31 -  1.1
+++ ldapd/ber.c 1 Jun 2010 01:50:06 -
@@ -819,10 +819,6 @@ ber_free_elements(struct ber_element *ro
free(root);
 }
 
-/*
- * internal functions
- */
-
 size_t
 ber_calc_len(struct ber_element *root)
 {
@@ -853,6 +849,10 @@ ber_calc_len(struct ber_element *root)
 
return (root->be_len + size);
 }
+
+/*
+ * internal functions
+ */
 
 static int
 ber_dump_element(struct ber *ber, struct ber_element *root)
Index: snmpd/ber.c
===
RCS file: /cvs/src/usr.sbin/snmpd/ber.c,v
retrieving revision 1.20
diff -u -p -r1.20 ber.c
--- snmpd/ber.c 24 Feb 2010 14:09:45 -  1.20
+++ snmpd/ber.c 1 Jun 2010 01:50:06 -
@@ -823,10 +823,6 @@ ber_free_elements(struct ber_element *ro
free(root);
 }
 
-/*
- * internal functions
- */
-
 size_t
 ber_calc_len(struct ber_element *root)
 {
@@ -857,6 +853,10 @@ ber_calc_len(struct ber_element *root)
 
return (root->be_len + size);
 }
+
+/*
+ * internal functions
+ */
 
 static int
 ber_dump_element(struct ber *ber, struct ber_element *root)
Index: ypldap/ber.c
===
RCS file: /cvs/src/usr.sbin/ypldap/ber.c,v
retrieving revision 1.5
diff -u -p -r1.5 ber.c
--- ypldap/ber.c24 Feb 2010 14:09:45 -  1.5
+++ ypldap/ber.c1 Jun 2010 01:50:06 -
@@ -823,10 +823,6 @@ ber_free_elements(struct ber_element *ro
free(root);
 }
 
-/*
- * internal functions
- */
-
 size_t
 ber_calc_len(struct ber_element *root)
 {
@@ -857,6 +853,10 @@ ber_calc_len(struct ber_element *root)
 
return (root->be_len + size);
 }
+
+/*
+ * internal functions
+ */
 
 static int
 ber_dump_element(struct ber *ber, struct ber_element *root)



comment fix for bin/ksh/history.c

2010-05-01 Thread Dawe
Index: history.c
===
RCS file: /cvs/src/bin/ksh/history.c,v
retrieving revision 1.37
diff -u -p -r1.37 history.c
--- history.c   2 Jul 2009 16:29:15 -   1.37
+++ history.c   1 May 2010 09:47:05 -
@@ -397,7 +397,7 @@ hist_get_newest(int allow_cur)
return histptr - 1;
 }
 
-/* Return a pointer to the newest command in the history */
+/* Return a pointer to the oldest command in the history */
 static char **
 hist_get_oldest(void)
 {



Re: bge(4) diff needs testing.

2010-03-19 Thread Dawe
On Fri, 19 Mar 2010 19:50:58 -0400
Brad  wrote:

> Please test the following diff with any bge(4) adapters..
> 
> Just check that things run as usual.
> 
> Please provide me with a dmesg.
> 
> 
> Have bge_start check if there are less than 16 free send BDs and if not
> set IFF_OACTIVE and try again later. Previously bge(4) reserved 16 send
> BDs after loading DMA maps but the hardware only requires one reserved
> send BD.
> 
> >From FreeBSD
> 

Well, for my bge(4) things run as usual.

OpenBSD 4.7-current (GENERIC.MP) #0: Sat Mar 20 02:06:43 CET 2010
d...@liltree.my.domain:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 1062203392 (1012MB)
avail mem = 1022468096 (975MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xf0450 (77 entries)
bios0: vendor Dell Inc. version "2.6.1" date 12/06/2007
bios0: Dell Inc. OptiPlex 745
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP SSDT APIC BOOT ASF! MCFG HPET SLIC SSDT SSDT SSDT
acpi0: wakeup devices VBTN(S4) PCI0(S5) PCI4(S5) PCI2(S5) PCI3(S5) PCI1(S5) 
PCI5(S5) PCI6(S5) MOU_(S3) USB0(S3) USB1(S3) USB2(S3) USB3(S3) USB4(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 6300 @ 1.86GHz, 1860.88 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,VMX,EST,TM2,CX16,xTPR,NXE,LONG
cpu0: 2MB 64b/line 8-way L2 cache
cpu0: apic clock running at 265MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 CPU 6300 @ 1.86GHz, 1860.65 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,VMX,EST,TM2,CX16,xTPR,NXE,LONG
cpu1: 2MB 64b/line 8-way L2 cache
ioapic0 at mainbus0: apid 8 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 8
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 3 (PCI4)
acpiprt1 at acpi0: bus 1 (PCI2)
acpiprt2 at acpi0: bus -1 (PCI3)
acpiprt3 at acpi0: bus -1 (PCI1)
acpiprt4 at acpi0: bus 2 (PCI5)
acpiprt5 at acpi0: bus -1 (PCI6)
acpiprt6 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0: PSS
acpicpu1 at acpi0: PSS
acpibtn0 at acpi0: VBTN
cpu0: Enhanced SpeedStep 1860 MHz: speeds: 1867, 1600 MHz
memory map conflict 0x3f603c00/0x9fc400
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel 82Q965 Host" rev 0x02
vga1 at pci0 dev 2 function 0 "Intel 82Q965 Video" rev 0x02
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xd000, size 0x1000
inteldrm0 at vga1: apic 8 int 16 (irq 11)
drm0 at inteldrm0
"Intel 82Q965 Video" rev 0x02 at pci0 dev 2 function 1 not configured
uhci0 at pci0 dev 26 function 0 "Intel 82801H USB" rev 0x02: apic 8 int 16 (irq 
11)
uhci1 at pci0 dev 26 function 1 "Intel 82801H USB" rev 0x02: apic 8 int 17 (irq 
10)
ehci0 at pci0 dev 26 function 7 "Intel 82801H USB" rev 0x02: apic 8 int 22 (irq 
9)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 "Intel 82801H HD Audio" rev 0x02: apic 8 int 
16 (irq 11)
azalia0: codecs: Analog Devices AD1983
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801H PCIE" rev 0x02: apic 8 int 16 (irq 
11)
pci1 at ppb0 bus 1
ppb1 at pci0 dev 28 function 4 "Intel 82801H PCIE" rev 0x02: apic 8 int 16 (irq 
11)
pci2 at ppb1 bus 2
bge0 at pci2 dev 0 function 0 "Broadcom BCM5754" rev 0x02, BCM5754/5787 A2 
(0xb002): apic 8 int 16 (irq 11), address 00:18:8b:69:fe:dd
brgphy0 at bge0 phy 1: BCM5787 10/100/1000baseT PHY, rev. 0
uhci2 at pci0 dev 29 function 0 "Intel 82801H USB" rev 0x02: apic 8 int 23 (irq 
5)
uhci3 at pci0 dev 29 function 1 "Intel 82801H USB" rev 0x02: apic 8 int 17 (irq 
10)
uhci4 at pci0 dev 29 function 2 "Intel 82801H USB" rev 0x02: apic 8 int 18 (irq 
9)
ehci1 at pci0 dev 29 function 7 "Intel 82801H USB" rev 0x02: apic 8 int 23 (irq 
5)
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb2 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xf2
pci3 at ppb2 bus 3
pcib0 at pci0 dev 31 function 0 "Intel 82801H LPC" rev 0x02
pciide0 at pci0 dev 31 function 2 "Intel 82801H SATA" rev 0x02: DMA, channel 0 
configured to native-PCI, channel 1 configured to native-PCI
pciide0: using apic 8 int 20 (irq 10) for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: 
wd0: 16-sector PIO, LBA48, 953869MB, 1953525168 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 6
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0:  ATAPI 5/cdrom 
removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
ichiic0 at pci0 dev 31 function 3 "Intel 82801H SMBus" rev 0x02: apic 8 int 20 
(irq 10)
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 1GB DDR2 SDRAM non-pari

Re: bufcachepercent=90 freaks - you know who you are...

2009-10-14 Thread Dawe
Janne Johansson wrote:
> Bob Beck wrote:
>> No, unless I hear bad things I'll likely commit it tomorrow morning
>> when I'll be around to deal with any fallout.
> 
> No ill effects yet on either my laptop (which definately would run into
> swapping behaviour after a while of firefoxing) nor on the
> anoncvs/cvsync box I also run with 90%.
> 
 If you like playing with big giant buffer caches, please try this diff
 and let me know if you have any issues with it.
>>> Something holding this off? I have it on 3 machines, no problems.
> 

Same here, tested on i386.



Re: ppp(8) cleanup/fix

2009-07-01 Thread Dawe
Sorry, that was i386 and amd64 with a german dsl provider.

Dawe wrote:
> Same story for me.
> Without the patch ppp spins forever and eats all cpu.
> With the patch ppp runs fine.
> I'm pretty sure it worked for me with the Jun 21 snapshot.



Re: ppp(8) cleanup/fix

2009-07-01 Thread Dawe
Same story for me.
Without the patch ppp spins forever and eats all cpu.
With the patch ppp runs fine.
I'm pretty sure it worked for me with the Jun 21 snapshot.


Mike Erdely wrote:
> With prodding from Todd, I tested the diff on my macppc and my alpha.
> Before the diff, running `ppp default` as root would hang before
> presenting me with the interactive prompt.  With the diff, it
> immediately goes into interactive mode and presents me with the prompt.
> 
> Unfortunately, I don't have another way to test.
> 
> -ME
> 
> On Wed, Jul 01, 2009 at 11:23:20AM -0500, Todd T. Fries wrote:
>> Guys,
>>
>> I tested this and it seems ppp in the tree is busted to the point of not
>> working without this diff.
>>
>> If you use ppp please test current snaps to confirm it is busted then
>> apply claudio's diff below and test again.
>>
>> If you use ppp and do not test, do not be surprised if it does not work in
>> the next release.
>>
>> Thanks,
>>
>> Penned by Claudio Jeker on 20090630 17:05.28, we have:
>> | So ppp(8) did insane routing message handling in its sysctl handlers. The
>> | worst thing about them are that their actually not needed and better
>> | replaced with libc functions (getifaddrs and if_nametoindex).
>> | 
>> | This diff is not haevily tested (my last ppp usage is years ago) so I'm
>> | hopeing people with ppp(8) issues could give this a whirl and see if it
>> | fixes the problems.
>> | -- 
>> | :wq Claudio
>> | 
>> | Index: ppp/arp.c
>> | ===
>> | RCS file: /cvs/src/usr.sbin/ppp/ppp/arp.c,v
>> | retrieving revision 1.15
>> | diff -u -p -r1.15 arp.c
>> | --- ppp/arp.c  6 May 2008 06:34:10 -   1.15
>> | +++ ppp/arp.c  30 Jun 2009 14:52:53 -
>> | @@ -38,6 +38,7 @@
>> |  #include 
>> |  
>> |  #include 
>> | +#include 
>> |  #include 
>> |  #include 
>> |  #include 
>> | @@ -229,93 +230,58 @@ int
>> |  arp_EtherAddr(int s, struct in_addr ipaddr, struct sockaddr_dl *hwaddr,
>> |int verbose)
>> |  {
>> | -  int mib[6], skip;
>> | -  size_t needed;
>> | -  char *buf, *ptr, *end;
>> | -  struct if_msghdr *ifm;
>> | -  struct ifa_msghdr *ifam;
>> | -  struct sockaddr_dl *dl;
>> | -  struct sockaddr *sa[RTAX_MAX];
>> | -
>> | -  mib[0] = CTL_NET;
>> | -  mib[1] = PF_ROUTE;
>> | -  mib[2] = 0;
>> | -  mib[3] = 0;
>> | -  mib[4] = NET_RT_IFLIST;
>> | -  mib[5] = 0;
>> | -
>> | -  if (sysctl(mib, 6, NULL, &needed, NULL, 0) < 0) {
>> | -log_Printf(LogERROR, "arp_EtherAddr: sysctl: estimate: %s\n",
>> | -  strerror(errno));
>> | -return 0;
>> | -  }
>> | -
>> | -  if ((buf = malloc(needed)) == NULL)
>> | -return 0;
>> | +  struct sockaddr_dl *dl = NULL;
>> | +  struct ifaddrs *ifa, *ifap;
>> | +  int skip = 1;
>> |  
>> | -  if (sysctl(mib, 6, buf, &needed, NULL, 0) < 0) {
>> | -free(buf);
>> | +  if (getifaddrs(&ifap) != 0) {
>> | +log_Printf(LogERROR, "arp_EtherAddr: getifaddrs: %s\n", 
>> strerror(errno));
>> |  return 0;
>> |}
>> | -  end = buf + needed;
>> |  
>> | -  ptr = buf;
>> | -  while (ptr < end) {
>> | -ifm = (struct if_msghdr *)ptr;/* On if_msghdr */
>> | -if (ifm->ifm_type != RTM_IFINFO)
>> | -  break;
>> | -ptr += ifm->ifm_msglen;
>> | -if (ifm->ifm_version != RTM_VERSION)
>> | -  continue;
>> | -dl = (struct sockaddr_dl *)(ifm + 1); /* Single _dl at end */
>> | -skip = (ifm->ifm_flags & (IFF_UP | IFF_BROADCAST | IFF_POINTOPOINT |
>> | +  for (ifa = ifap; ifa != NULL; ifa = ifa->ifa_next) {
>> | +if (ifa->ifa_addr->sa_family == AF_LINK) {
>> | +  dl = (struct sockaddr_dl *)ifa->ifa_addr;
>> | +  skip = (ifa->ifa_flags & (IFF_UP | IFF_BROADCAST | IFF_POINTOPOINT |
>> |  IFF_NOARP | IFF_LOOPBACK)) != (IFF_UP | IFF_BROADCAST);
>> | -while (ptr < end) {
>> | -  ifam = (struct ifa_msghdr *)ptr;/* Next ifa_msghdr (alias) */
>> | -  if (ifam->ifam_type != RTM_NEWADDR) /* finished ? */
>> | -break;
>> | -  ptr += ifam->ifam_msglen;
>> | -  if (ifam->ifam_version != RTM_VERSION)
>> | -continue;
>> | -  if (skip || (ifam->ifam_addrs & (RTA_NETMASK|RTA_IFA)) !=
>> | -  (RTA_NETMASK|RTA_IFA))
>> | -continue;
>> | -  /* Found a candidate.  Do the addresses match ? */
>> | -  if (log_IsKept(LogDEBUG) &&
>> | -  ptr == (char *)ifm + ifm->ifm_msglen + ifam->ifam_msglen)
>> | -log_Printf(LogDEBUG, "%.*s interface is a candidate for proxy\n",
>> | -  dl->sdl_nlen, dl->sdl_data);
>> | -
>> | -  iface_ParseHdr(ifam, sa);
>> | -
>> | -  if (sa[RTAX_IFA]->sa_family == AF_INET) {
>> | -struct sockaddr_in *ifa, *netmask;
>> | -
>> | -ifa = (struct sockaddr_in *)sa[RTAX_IFA];
>> | -netmask = (struct sockaddr_in *)sa[RTAX_NETMASK];
>> | -
>> | -if (log_IsKept(LogDEBUG)) {
>> | -  char a[16];
>> | -
>> | -  strncpy(a, inet_ntoa(netmask->sin_addr), sizeof a - 1)

Re: VIA EHCI controller workaround needs testing.

2009-06-29 Thread Dawe
Brad wrote:
> The following diff adds a workaround for an issue with the VIA VT6202
> EHCI controller hogging the PCI bus and causing poor performance for
> IDE and possibly other devices in the system.
> 
> Please test if your system has a VIA VT6202 EHCI controller and
> provide a dmesg. If the workaround is being applied for the
> chipset you have then a message will be printed (this is temporary
> only to verify it is being applied for the appropriate revision
> of the chipset).
> 

Here's a VT6202, but not the appropriate revision.


OpenBSD 4.6-beta (GENERIC) #3: Mon Jun 29 22:42:03 CEST 2009
d...@treehouse.my.domain:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 535756800 (510MB)
avail mem = 507371520 (483MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xf (39 entries)
bios0: vendor Phoenix Technologies, LTD version "6.00 PG" date 01/19/2005
bios0: http://www.abit.com.tw/ AV8 (VIA K8T800P-8237)
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP BOOT APIC
acpi0: wakeup devices PCI0(S5) USB0(S3) USB1(S3) USB2(S3) USB3(S3)
USB4(S3) USB5(S3) USB6(S3) AC97(S5) MC97(S5) UAR1(S5)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Athlon(tm) 64 Processor 3000+, 1839.08 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB
64b/line 16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: AMD erratum 113 detected and fixed
cpu0: AMD erratum 89 present, BIOS upgrade may be required
cpu0: apic clock running at 204MHz
ioapic0 at mainbus0 apid 2 pa 0xfec0, version 3, 24 pins
acpiprt at acpi0 not configured
acpicpu0 at acpi0
acpibtn0 at acpi0: PWRB
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "VIA K8HTB Host" rev 0x00
agp at pchb0 not configured
pchb1 at pci0 dev 0 function 1 "VIA K8HTB Host" rev 0x00
pchb2 at pci0 dev 0 function 2 "VIA K8HTB Host" rev 0x00
pchb3 at pci0 dev 0 function 3 "VIA K8HTB Host" rev 0x00
pchb4 at pci0 dev 0 function 4 "VIA K8HTB Host" rev 0x00
pchb5 at pci0 dev 0 function 7 "VIA K8HTB Host" rev 0x00
ppb0 at pci0 dev 1 function 0 "VIA K8HTB AGP" rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "NVIDIA GeForce3 Ti 200" rev 0xa3
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
rl0 at pci0 dev 12 function 0 "Realtek 8139" rev 0x10pci_intr_map: bus 0
dev 12 func 0 pin 1; line 10
pci_intr_map: no MP mapping found
: irq 10, address 00:50:ba:bb:60:5f
rlphy0 at rl0 phy 0: RTL internal PHY
vge0 at pci0 dev 14 function 0 "VIA VT612x" rev 0x11pci_intr_map: bus 0
dev 14 func 0 pin 1; line 5
pci_intr_map: no MP mapping found
: irq 5, address 00:50:8d:d3:18:38
ciphy0 at vge0 phy 1: CS8201 10/100/1000TX PHY, rev. 2
pciide0 at pci0 dev 15 function 0 "VIA VT6420 SATA" rev 0x80: DMA
pci_intr_map: bus 0 dev 15 func 0 pin 2; line 11
pci_intr_map: no MP mapping found
pciide0: using irq 11 for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: 
wd0: 16-sector PIO, LBA48, 953869MB, 1953525168 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0:  ATAPI
5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 5
pciide1 at pci0 dev 15 function 1 "VIA VT82C571 IDE" rev 0x06: ATA133,
channel 0 configured to compatibility, channel 1 configured to compatibility
wd1 at pciide1 channel 0 drive 0: 
wd1: 16-sector PIO, LBA48, 114498MB, 234493056 sectors
wd2 at pciide1 channel 0 drive 1: 
wd2: 16-sector PIO, LBA48, 238475MB, 488397168 sectors
wd1(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5
wd2(pciide1:0:1): using PIO mode 4, Ultra-DMA mode 5
pciide1: channel 1 disabled (no drives)
uhci0 at pci0 dev 16 function 0 "VIA VT83C572 USB" rev 0x81pci_intr_map:
bus 0 dev 16 func 0 pin 1; line 11
pci_intr_map: no MP mapping found
: irq 11
uhci1 at pci0 dev 16 function 1 "VIA VT83C572 USB" rev 0x81pci_intr_map:
bus 0 dev 16 func 1 pin 1; line 11
pci_intr_map: no MP mapping found
: irq 11
uhci2 at pci0 dev 16 function 2 "VIA VT83C572 USB" rev 0x81pci_intr_map:
bus 0 dev 16 func 2 pin 2; line 11
pci_intr_map: no MP mapping found
: irq 11
uhci3 at pci0 dev 16 function 3 "VIA VT83C572 USB" rev 0x81pci_intr_map:
bus 0 dev 16 func 3 pin 2; line 11
pci_intr_map: no MP mapping found
: irq 11
ehci0 at pci0 dev 16 function 4 "VIA VT6202 USB" rev 0x86pci_intr_map:
bus 0 dev 16 func 4 pin 3; line 10
pci_intr_map: no MP mapping found
: irq 10
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "VIA EHCI root hub" rev 2.00/1.00 addr 1
viapm0 at pci0 dev 17 function 0 "VIA VT8237 ISA" rev 0x00
iic0 at viapm0
spdmem0 at iic0 addr 0x50: 512MB DDR SDRAM non-parit