Hi all,

got me a Thinkpad X200. Not everything is supported right now.
Lots of this stuff might apply to any Centrino 2 notebook.
This mail is more like a headsup for those looking into running OpenBSD
on the newer Thinkpads.

dmesg (amd64 GENERIC.MP, snapshot 2008-09-10)
at the bottom of this mail.

Perhaps someone can give me some pointers or advice on following points,
or might find this info interesting.

1.) dmesg / memory allocation
2.) onboard ethernet
3.) wlan
4.) speedstep
5.) Xorg / intel(4)
===

1.)
The dmesg is partialy copied by hand.
That's because I don't have a dockingstation/serial console and:

WARNING: 16384 bytes not available for msgbuf in last cluster (4096
used)
[ using 682848 bytes of bsd ELF symbol table ]

My kernel-C-foo doesn't seem to be strong enough to comprehend where to
go with/from the malloc.c code.

fwiw, the output from DEBUG_MEMLOAD:
loading 0xcc9000-0x1000000 (0xcc9-0x1000)
loading 0x1000000-0x7b6a1000 (0x1000-0x7b6a1)
loading 0x7b6a7000-0x7b7b7000 (0x7b6a7-0x7b7b7)
loading 0x7b80f000-0x7b8c7000 (0x7b80f-0x7b8c7)
loading 0x7bbff000-0x7bc00000 (0x7bbff-0x7bc00)
avail_start = 0x6000
avail_end = 0x7bc00000
first_avail = 0xcc9000

Having to reboot so the dmesg is in the scrollback buffer, when i want
to look at it, isn't so elegant.
This one i realy would like to get fixed somehow. Anyone?
===

2.)
The onboard em(4) is not picked up.
ICH9_IGP_M_AMT seems to be an 82567LM.
Intel added support for those chips just "recently" to to their driver,
not in OpenBSD yet.

Not having anything to bribe Brad with right now, I'll try to
get my head around that freebsd codebase and see if I can find the
necessary quirks to add.
===

3.)
Fyi, the SKU I got has an Intel 5100 Mini-PCI.
No driver support for those.
I don't complain about that. If I wanted to use wlan I'd just switch it
out for something working.
===

4.)
The P8600 Core2Duo is not regognized by the speedstep code.

Adding the model 0x7 to est.c results in:
cpu0: unknown Enhanced SpeedStep CPU, msr 0x0617091f06000091f
cpu0: using only highest and lowest powerstates
cpu0: Enhanced SpeedStep 2400 MHz (1196mV): speeds: 2400, 2600 MHz

Now i just have to find out how to populate fqlist with the right data.

(I tried amd64/est.c v1.6 with coresponding acpicpu.c but that gave me
no hw.setperf either.)
===

5.)
The X200 uses the GM45 chipset. Graphics controller is the GMA 4500MHD,
which isn't supported by intel(4)/version 2.4.2(stable) which is in
xenocara right now.
With 2.4.2 X complains about the controller and produces small
artefacts near the mouse cursor-
Support is in Intels "unstable" tree. Estemating when they will release
their next stable, I might even get around to try get the code
compiling on my system myself.

On a sidenote, the X200 seems to drive only the internal _or_
external display. Depending on if a screen is connectect to the VGA
port at boot or not. (The BIOS is set to use the internal screen,
but still uses the VGA port if a screen is connected.)
===


So far I'm very happy with the X200. Small, silent and fast.
It's not build like a tank as the older Thinkpads are.
The lid has some flex to it and if you look for it you kind find it on
the sides of the keyboard too.
Otherwise the Lenovo engs learned their lesson from IBMs bluesheets.


Except for the points mentioned above OpenBSD runs flawlessly.
With an Express Card msk(4) i can work around any of those.
Even without speedstep the 4-cell battery delivers over 2 hours of
power.


Cheers

- Robert


[1] dmesg
[2] hw.sensors
===

[1]
OpenBSD 4.4-current (GENERIC.MP) #1839: Wed Sep 10 12:29:50 MDT 2008
    [EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 2059067392 (1963MB)
avail mem = 1999065088 (1906MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (62 entries)
bios0: vendor LENOVO version "6DET28WW (1.05 )" date 07/30/2008
bios0: LENOVO 74542GU
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP SSDT ECDT APIC MCFG HPET SLIC BOOT ASF! SSDT TCPA SSDT 
SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) IGBE(S4) EXP0(S4) EXP1(S4) EXP2(S4) 
EXP3(S4) USB0(S3) USB1(S3) USB2(S3) USB3(S3) USB4(S3) USB5(S3) EHC0(S3) 
EHC1(S3) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz, 2394.29 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,SMX,EST,TM2,CX16,xTPR,NXE,LONG
cpu0: 3MB 64b/line 8-way L2 cache
cpu0: apic clock running at 266MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz, 2394.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,SMX,EST,TM2,CX16,xTPR,NXE,LONG
cpu1: 3MB 64b/line 8-way L2 cache
ioapic0 at mainbus0 apid 1 pa 0xfec00000, 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 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus 3 (EXP1)
acpiprt4 at acpi0: bus -1 (EXP2)
acpiprt5 at acpi0: bus 5 (EXP3)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2
acpicpu1 at acpi0: C3, C2
acpitz0 at acpi0: critical temperature 127 degC
acpitz1 at acpi0: critical temperature 104 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model "42T4534" serial   116 type LION oem "SANYO"
acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
acpidock at acpi0 not configured
acpivideo at acpi0 not configured
acpivideo at acpi0 not configured
cpu0: unknown i686 model 7, can't get bus clockcpu0: EST: unknown system bus 
clock
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0 vendor "Intel", unknown product 0x2a40 rev 0x07
vga1 at pci0 dev 2 function 0 vendor "Intel", unknown product 0x2a42 rev 0x07
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
vendor "Intel", unknown product 0x2a43 (class display subclass miscellaneous, 
rev 0x07) at pci0 dev 2 function 1 not configured
vendor "Intel", unknown product 0x2a44 (class communications subclass 
miscellaneous, rev 0x07) at pci0 dev 3 function 0 not configured
"Intel ICH9 IGP M AMT" rev 0x03 at pci0 dev 25 function 0 not configured
uhci0 at pci0 dev 26 function 0 "Intel 82801I USB" rev 0x03: apic 1 int 20 (irq 
11)
uhci1 at pci0 dev 26 function 1 "Intel 82801I USB" rev 0x03: apic 1 int 21 (irq 
11)
uhci2 at pci0 dev 26 function 2 "Intel 82801I USB" rev 0x03: apic 1 int 22 (irq 
11)
ehci0 at pci0 dev 26 function 7 "Intel 82801I USB" rev 0x03: 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 82801I HD Audio" rev 0x03: apic 1 int 
17 (irq 11)
azalia0: codec[s]: Conexant/0x5051
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801I PCIE" rev 0x03: apic 1 int 20 (irq 
11)
pci1 at ppb0 bus 2
ppb1 at pci0 dev 28 function 1 "Intel 82801I PCIE" rev 0x03: apic 1 int 21 (irq 
11)
pci2 at ppb1 bus 3
"Intel WiFi Link 5100AGN" rev 0x00 at pci2 dev 0 function 0 not configured
ppb2 at pci0 dev 28 function 3 "Intel 82801I PCIE" rev 0x03: apic 1 int 23 (irq 
11)
pci3 at ppb2 bus 5
uhci3 at pci0 dev 29 function 0 "Intel 82801I USB" rev 0x03: apic 1 int 16 (irq 
11)
uhci4 at pci0 dev 29 function 1 "Intel 82801I USB" rev 0x03: apic 1 int 17 (irq 
11)
uhci5 at pci0 dev 29 function 2 "Intel 82801I USB" rev 0x03: apic 1 int 18 (irq 
11)
ehci1 at pci0 dev 29 function 7 "Intel 82801I USB" rev 0x03: apic 1 int 19 (irq 
11)
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "Intel EHCI root hub" rev 2.00/100 addr 1
ppb3 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0x93
pci4 at ppb3 bus 13
pcib0 at pci0 dev 31 function 0 vendor "Intel", unknown product 0x2917 rev 0x03
ahci0 at pci0 dev 31 function 2 vendor "Intel", unknown product 0x2929 rev 
0x03: apic 1 int 16 (irq 11), AHCI 1.2
scsibus0 at ahci0: 32 targets, initiator 32
sd0 at scsibus0 targ 0 lun 0: <ATA FUJITSU MHZ2160B, 0084> SCSI3 0/direct fixed
sd0: 152627MB, 512 bytes/sec, 312581808 sec total
ichiic0 at pci0 dev 31 function 3 "Intel 82801I SMBus" rev 0x03: apic 1 int 23 
(irq 11)
iic0 at ichiic0
usb2 at uhci0: USB revision 1.0
uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci1: USB revision 1.0
uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci2: USB revision 1.0
uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb5 at uhci3: USB revision 1.0
uhub5 at usb5 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb6 at uhci4: USB revision 1.0
uhub6 at usb6 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb7 at uhci5: USB revision 1.0
uhub7 at usb7 "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)
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
aps0 at isa0 port 0x1600/31
mtrr: Pentium Pro MTRR support
ugen0 at uhub3 port 1 "AuthenTec Fingerprint Sensor" rev 2.00/17.03 addr 2
ugen1 at uhub3 port 2 "Lenovo Computer Corp Thinkpad Bluetooth with Enhanced 
Data Rate II" rev 2.00/3.52 addr 3
softraid0 at root
root on sd0a swap on sd0b dump on sd0b

===

[2]
hw.sensors.cpu0.temp0=24.00 degC
hw.sensors.cpu1.temp0=24.00 degC
hw.sensors.acpitz0.temp0=38.05 degC (zone temperature)
hw.sensors.acpitz1.temp0=29.05 degC (zone temperature)
hw.sensors.acpibat0.volt0=14.40 VDC (voltage)
hw.sensors.acpibat0.volt1=16.61 VDC (current voltage)
hw.sensors.acpibat0.watthour0=29.91 Wh (last full capacity)
hw.sensors.acpibat0.watthour1=1.50 Wh (warning capacity)
hw.sensors.acpibat0.watthour2=0.20 Wh (low capacity)
hw.sensors.acpibat0.watthour3=29.91 Wh (remaining capacity), OK
hw.sensors.acpibat0.raw0=0 (battery full), OK
hw.sensors.acpibat0.raw1=0 (rate)
hw.sensors.acpiac0.indicator0=On (power supply)
hw.sensors.aps0.temp0=40.00 degC
hw.sensors.aps0.temp1=40.00 degC
hw.sensors.aps0.indicator0=Off (Keyboard Active)
hw.sensors.aps0.indicator1=Off (Mouse Active)
hw.sensors.aps0.indicator2=On (Lid Open)
hw.sensors.aps0.raw0=495 (X_ACCEL)
hw.sensors.aps0.raw1=482 (Y_ACCEL)
hw.sensors.aps0.raw2=495 (X_VAR)
hw.sensors.aps0.raw3=482 (Y_VAR)

Reply via email to