i7-720QM one more time

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

i7-720QM one more time

Kyle Smith-7
Below find /var/run/dmesg.boot for a Toshiba a505 s6033 laptop, which has an Intel i7-720QM processor.  It seems, according to:

``http://ark.intel.com/Product.aspx?id=43122&processor=i7-720WM&spec-codes=SLBLY''

It is a 64-bit instruction set CPU with 4 cores, 8 threads, a clock speed of 1.6GHz, and a Max Turbo Frequency of 2.8GHz.  It has 6MB of Intel Smart Cache, at a Bus/Core Ratio of 12, and a DMI of 2.5GT/s. It supports the SSE4.2 instruction set extension, and was manufactured using 45nm technology. It can support up to 8GB of DDR3-1066/1333 ram, which I have installed at the 1333 rate. This CPU claims to support Intel Turbo Boost, Intel Hyper-Threading (VT-x) and (VT-d), Intel Trusted Execution, Idle States, Enhanced Intel Speedstep and Execute Disable Bit technologies.

On this Toshiba laptop, they have used a Nvidia 310m chipset for the display.

It originally came with Windows 7 Home Premium, but was soon replaced by OpenBSD, since I can't reason about the Windows 7 OS, and I have had such great success working with OpenBSD, since my adoption of it at version 4.2, to serve as a IPS system for my small private heterogenous security lab.

Well, It is running quite nicely, with a new 256GB SSD, that replaced the 500GB 2.5" sata drive that came with the laptop. There are just a few items that needs some attention.  The first is associated with the Speed Step. As can be seen below, 4.7 generic MP reports that there is no PSS for my processor type.  After some digging around in the source code, I found the c source file est.c, which has a select statement that doesn't have a case for a ``ci->ci-model'' value ``0x1e'', and therefore, cannot set the ``bus-clock'' to the appropriate value of BUS133.
/* The path of est.c */
/usr/src/sys/arch/amd64/amd64/est.c
...
/* The code is in this function */
void
p3_get_bus_clock(struct cpu_info *ci)
...
/* and the following operative switch statement */
        switch (ci->ci_model) {
        case 0xe: /* Core Duo/Solo */
        case 0xf: /* Core Xeon */
        case 0x16: /* 65nm Celeron */
        case 0x17: /* Core 2 Extreme/45nm Xeon */
        ...
/* with the source of the error message coming from this default */
                printf("%s: EST: PSS not yet available for this processor\n",
...
/* This is a naive patch file to force it to set ``bus_clock'' correctly */
217a218,220
> case 0x1e: /* i7-720QM */
> bus_clock= BUS133;
> break;

But, I am leary of shoe horning in this value, because, the root cause seems to be a lack of appropriate recognition of data placed in the PSS struct from the acpi code of the kernel, and I am not an experienced kernel programmer.

Therefore I was hoping that someone could point me in the correct direction for an appropriate fix for my processor.  I'm not afraid of getting dirty coding, I';'m just afraid I don't have enough understanding to address all the areas necessary to allow the OpenBSD kernel to recognize the i7-720QM's particular schedule of frequencies for it to make it function correctly.

There are some other minor issues with my wireless mouse, which is recognized, but for which I can't get Xorg to utilize.  That is a minor issue, but if anyone could comment on it, I would appreciate it.  The native track pad works perfectly both with moused and as a wsmouse, but I can't convince Xorg to use mouse1, despite it finding and utilizing my wireless keyboard in conjunction with the laptop's builtin in keyboard.

Also, not critical, but the builtin wireless chipset doesn't appear to be recognized, and I don't yet have information on what precise chipset the Toshiba uses for the wifi adpater.

I would be grateful if more experienced eyes had a look at my dmesg.boot, and might point me down the correct path.  This is the first time I've put OpenBSD on any machine where I had trouble with support for various devices, but then this is the first new laptop I've attempted to bring OpenBSD 4.7 up on, and really, the machine is quite stable and useful.  I'm just trying to flesh out some minor issues that would make it even sweeter.

Thanks,

--kyle
------------------------------GENERIC.MP 4.7---------------------
OpenBSD 4.7 (GENERIC.MP) #130: Wed Mar 17 20:48:50 MDT 2010
    [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 3151503360 (3005MB)
avail mem = 3060031488 (2918MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xea8b0 (42 entries)
bios0: vendor INSYDE version "1.20" date 01/25/2010
bios0: TOSHIBA Satellite A505
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP ASF! HPET APIC MCFG SLIC BOOT SSDT ASPT WDAT SSDT
acpi0: wakeup devices P0P1(S0) LID0(S4) EHC1(S3) HDEF(S4) PXSX(S4) RP01(S4) PXSX(S4) RP02(S0) PXSX(S4) RP03(S0) PXSX(S4) RP04(S0) PXSX(S4) RP05(S0) PXSX(S4) RP06(S0) PXSX(S4) RP07(S0) PXSX(S4) RP08(S0) PEG3(S4) PEG5(S4) PEG6(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i7 CPU Q 720 @ 1.60GHz, 1596.19 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: 256KB 64b/line 8-way L2 cache
cpu0: apic clock running at 132MHz
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Core(TM) i7 CPU Q 720 @ 1.60GHz, 1595.98 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: 256KB 64b/line 8-way L2 cache
cpu2 at mainbus0: apid 4 (application processor)
cpu2: Intel(R) Core(TM) i7 CPU Q 720 @ 1.60GHz, 1595.98 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,SMX,EST,TM2,CX16,xTPR,NXE,LONG
cpu2: 256KB 64b/line 8-way L2 cache
cpu3 at mainbus0: apid 6 (application processor)
cpu3: Intel(R) Core(TM) i7 CPU Q 720 @ 1.60GHz, 1595.98 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,SMX,EST,TM2,CX16,xTPR,NXE,LONG
cpu3: 256KB 64b/line 8-way L2 cache
cpu4 at mainbus0: apid 1 (application processor)
cpu4: Intel(R) Core(TM) i7 CPU Q 720 @ 1.60GHz, 1595.98 MHz
cpu4: 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
cpu4: 256KB 64b/line 8-way L2 cache
cpu5 at mainbus0: apid 3 (application processor)
cpu5: Intel(R) Core(TM) i7 CPU Q 720 @ 1.60GHz, 1595.98 MHz
cpu5: 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
cpu5: 256KB 64b/line 8-way L2 cache
cpu6 at mainbus0: apid 5 (application processor)
cpu6: Intel(R) Core(TM) i7 CPU Q 720 @ 1.60GHz, 1595.98 MHz
cpu6: 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
cpu6: 256KB 64b/line 8-way L2 cache
cpu7 at mainbus0: apid 7 (application processor)
cpu7: Intel(R) Core(TM) i7 CPU Q 720 @ 1.60GHz, 1595.98 MHz
cpu7: 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
cpu7: 256KB 64b/line 8-way L2 cache
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 2
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 5 (P0P1)
acpiprt2 at acpi0: bus 2 (RP01)
acpiprt3 at acpi0: bus 3 (RP02)
acpiprt4 at acpi0: bus -1 (RP03)
acpiprt5 at acpi0: bus 4 (RP04)
acpiprt6 at acpi0: bus 32 (RP05)
acpiprt7 at acpi0: bus -1 (RP06)
acpiprt8 at acpi0: bus -1 (RP07)
acpiprt9 at acpi0: bus -1 (RP08)
acpiprt10 at acpi0: bus 1 (PEG3)
acpiprt11 at acpi0: bus -1 (PEG5)
acpicpu0 at acpi0: C3, C1, PSS
acpicpu1 at acpi0: C3, C1, PSS
acpicpu2 at acpi0: C3, C1, PSS
acpicpu3 at acpi0: C3, C1, PSS
acpicpu4 at acpi0: C3, C1, PSS
acpicpu5 at acpi0: C3, C1, PSS
acpicpu6 at acpi0: C3, C1, PSS
acpicpu7 at acpi0: C3, C1, PSS
acpipwrres0 at acpi0: FN00
acpitz0 at acpi0: critical temperature 110 degC
acpiac0 at acpi0: AC unit online
acpibat0 at acpi0: BAT0 model "PA353" serial BD02 type Li-ion
acpibtn0 at acpi0: PWRB
acpibtn1 at acpi0: LID0
acpivideo0 at acpi0: GFX0
acpivideo1 at acpi0: VGA_
acpivout0 at acpivideo1: CRT_
acpivout1 at acpivideo1: LCD_
cpu0: unknown i686 model 0x1e, can't get bus clock
cpu0: EST: PSS not yet available for this processor
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 vendor "Intel", unknown product 0xd132 rev 0x11
ppb0 at pci0 dev 3 function 0 "Intel Core PCIE" rev 0x11: apic 2 int 16 (irq 255)
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 vendor "NVIDIA", unknown product 0x0a75 rev 0xa2
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
azalia0 at pci1 dev 0 function 1 vendor "NVIDIA", unknown product 0x0be3 rev 0xa1: apic 2 int 16 (irq 5)
azalia0: no supported codecs
azalia0: initialization failure, detaching
"Intel Core Management" rev 0x11 at pci0 dev 8 function 0 not configured
"Intel Core Scratch" rev 0x11 at pci0 dev 8 function 1 not configured
"Intel Core Control" rev 0x11 at pci0 dev 8 function 2 not configured
"Intel Core Misc" rev 0x11 at pci0 dev 8 function 3 not configured
"Intel Core QPI Link" rev 0x11 at pci0 dev 16 function 0 not configured
"Intel Core QPI Routing" rev 0x11 at pci0 dev 16 function 1 not configured
vendor "Intel", unknown product 0x3b64 (class communications subclass miscellaneous, rev 0x06) at pci0 dev 22 function 0 not configured
ehci0 at pci0 dev 26 function 0 "Intel 3400 USB" rev 0x05: apic 2 int 16 (irq 5)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
azalia1 at pci0 dev 27 function 0 "Intel 3400 HD Audio" rev 0x05: apic 2 int 22 (irq 11)
azalia1: codecs: Realtek ALC272
audio0 at azalia1
ppb1 at pci0 dev 28 function 0 "Intel 3400 PCIE" rev 0x05: apic 2 int 17 (irq 255)
pci2 at ppb1 bus 2
re0 at pci2 dev 0 function 0 "Realtek 8101E" rev 0x02: RTL8102EL (0x2480), apic 2 int 16 (irq 5), address 00:26:6c:4b:10:d2
rlphy0 at re0 phy 7: RTL8201L 10/100 PHY, rev. 1
ppb2 at pci0 dev 28 function 1 "Intel 3400 PCIE" rev 0x05: apic 2 int 16 (irq 255)
pci3 at ppb2 bus 3
vendor "Realtek", unknown product 0x8172 (class network subclass miscellaneous, rev 0x10) at pci3 dev 0 function 0 not configured
ppb3 at pci0 dev 28 function 3 "Intel 3400 PCIE" rev 0x05: apic 2 int 19 (irq 255)
pci4 at ppb3 bus 4
sdhc0 at pci4 dev 0 function 0 "Ricoh 5U822 SD/MMC" rev 0x01: apic 2 int 18 (irq 11)
sdmmc0 at sdhc0
"Ricoh 5U230 Memory Stick" rev 0x01 at pci4 dev 0 function 1 not configured
"Ricoh 5U852 SD/MMC" rev 0x01 at pci4 dev 0 function 2 not configured
"Ricoh 5U832 Firewire" rev 0x01 at pci4 dev 0 function 3 not configured
ppb4 at pci0 dev 28 function 4 "Intel 3400 PCIE" rev 0x05: apic 2 int 17 (irq 255)
pci5 at ppb4 bus 32
ehci1 at pci0 dev 29 function 0 "Intel 3400 USB" rev 0x05: apic 2 int 23 (irq 10)
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb5 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xa5
pci6 at ppb5 bus 5
pcib0 at pci0 dev 31 function 0 vendor "Intel", unknown product 0x3b09 rev 0x05
ahci0 at pci0 dev 31 function 2 "Intel 3400 AHCI" rev 0x05: apic 2 int 19 (irq 9), AHCI 1.3
ahci0: PHY offline on port 0
scsibus0 at ahci0: 32 targets
sd0 at scsibus0 targ 1 lun 0: <ATA, C300-CTFDDAC256M, 0001> SCSI3 0/direct fixed
sd0: 244198MB, 512 bytes/sec, 500118192 sec total
sd1 at scsibus0 targ 4 lun 0: <ATA, WDC WD1002FAEX-0, 05.0> SCSI3 0/direct fixed
sd1: 953869MB, 512 bytes/sec, 1953525168 sec total
cd0 at scsibus0 targ 5 lun 0: <HL-DT-ST, DVDRAM GT20F, ET11> ATAPI 5/cdrom removable
ichiic0 at pci0 dev 31 function 3 "Intel 3400 SMBus" rev 0x05: apic 2 int 19 (irq 9)
iic0 at ichiic0
iic0: addr 0x18 00=00 01=00 02=00 03=00 04=00 05=c3 06=00 07=20 08=01 09=60 0a=a2 0b=2d 0c=00 words 00=000f 01=0000 02=0000 03=0000 04=0000 05=c364 06=0054 07=2001
iic0: addr 0x1a 00=00 01=00 02=00 03=00 04=00 05=c3 06=00 07=20 08=01 09=60 0a=a2 0b=2f 0c=00 words 00=000f 01=0000 02=0000 03=0000 04=0000 05=c340 06=0054 07=2001
spdmem0 at iic0 addr 0x50: 4GB DDR3 SDRAM PC3-10600 SO-DIMM with thermal sensor
spdmem1 at iic0 addr 0x52: 4GB DDR3 SDRAM PC3-10600 SO-DIMM with thermal sensor
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
uhub2 at uhub0 port 1 "vendor 0x8087 product 0x0020" rev 2.00/0.00 addr 2
uhub3 at uhub1 port 1 "vendor 0x8087 product 0x0020" rev 2.00/0.00 addr 2
uvideo0 at uhub2 port 3 configuration 1 interface 0 "Chicony Electronics Co., Ltd. USB2.0 UVC WebCam" rev 2.00/40.16 addr 3
video0 at uvideo0
uhidev0 at uhub3 port 4 configuration 1 interface 0 "Microsoft Microsoft\M-. 2.4GHz Transceiver v6.0" rev 2.00/2.51 addr 3
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 modifier keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub3 port 4 configuration 1 interface 1 "Microsoft Microsoft\M-. 2.4GHz Transceiver v6.0" rev 2.00/2.51 addr 3
uhidev1: iclass 3/1, 28 report ids
uhid0 at uhidev1 reportid 18: input=0, output=0, feature=1
uhid1 at uhidev1 reportid 22: input=4, output=0, feature=0
uhid2 at uhidev1 reportid 23: input=0, output=0, feature=1
ums0 at uhidev1 reportid 26: 5 buttons, Z dir
wsmouse1 at ums0 mux 0
uhid3 at uhidev1 reportid 28: input=3, output=0, feature=0
uhidev2 at uhub3 port 4 configuration 1 interface 2 "Microsoft Microsoft\M-. 2.4GHz Transceiver v6.0" rev 2.00/2.51 addr 3
uhidev2: iclass 3/0, 8 report ids
uhid4 at uhidev2 reportid 3: input=1, output=0, feature=0
uhid5 at uhidev2 reportid 4: input=1, output=0, feature=0
uhid6 at uhidev2 reportid 7: input=7, output=0, feature=0
uhid7 at uhidev2 reportid 8: input=1, output=0, feature=0
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
root on sd0a swap on sd0b dump on sd0b

Reply | Threaded
Open this post in threaded view
|

Re: i7-720QM one more time

Ted Unangst-2
On Thu, Jun 3, 2010 at 4:44 PM, Kyle Smith <[hidden email]>
wrote:
> But, I am leary of shoe horning in this value, because, the root cause seems
to be a lack of appropriate recognition of data placed in the PSS struct from
the acpi code of the kernel, and I am not an experienced kernel programmer.

est.c is mostly obsolete now, acpi should indeed be handling this.

> There are some other minor issues with my wireless mouse, which is
recognized, but for which I can't get Xorg to utilize.  That is a minor issue,
but if anyone could comment on it, I would appreciate it.  The native track
pad works perfectly both with moused and as a wsmouse, but I can't convince
Xorg to use mouse1, despite it finding and utilizing my wireless keyboard in
conjunction with the laptop's builtin in keyboard.

Can you check what mouse device X is using?  It should be using the
wsmouse device, not wsmouse0.

> Also, not critical, but the builtin wireless chipset doesn't appear to be
recognized, and I don't yet have information on what precise chipset the
Toshiba uses for the wifi adpater.

> vendor "Realtek", unknown product 0x8172 (class network subclass
miscellaneous, rev 0x10) at pci3 dev 0 function 0 not configured

That's your wireless device there.  There's no driver yet.

Reply | Threaded
Open this post in threaded view
|

Re: i7-720QM one more time

Charlie Root-43
In reply to this post by Kyle Smith-7
Ted,

Thanks for your looking at my post.
Come to think about the wsmouse, I believe that Xorg -configure set it to wsmouse0, so I tried wsmouse1 (no joy, niether the trackpad or the wireless mouse worrked.  I don't believe is has ever been set to simply wsmouse.  I'll give that a try.

So, I take it that the wireless device and my speed step issues are already in the queue from the way you responded.  If I can do anything to help, I would enjoy contributing to OpenBSD in anyway that I can.

I'll follow up with news about the X mouse issue.

Thanks,

--kyle

Reply | Threaded
Open this post in threaded view
|

Re: i7-720QM one more time

J.C. Roberts-3
On Thu, 3 Jun 2010 18:31:05 -0400 (EDT) Charlie Root
<[hidden email]> wrote:
>
> Thanks for your looking at my post.
> Come to think about the wsmouse, I believe that Xorg -configure set
> it to wsmouse0, so I tried wsmouse1 (no joy, niether the trackpad or
> the wireless mouse worrked.  I don't believe is has ever been set to
> simply wsmouse.  I'll give that a try.

Kyle,

It seems you misread tedu@'s post. He asked you to check to see if your
X is using '/dev/wsmouse0' or '/dev/wsmouse' ?

Though your /etc/X11/xorg.conf file might designate something, the way
to figure out what you're actually using is look at /var/log/Xorg.0.log
When X doesn't get what it wants, it can sometimes fall back to
something else (e.g. intenral default config), so what you're actually
using could be different from what you've defined in /etc/X11/xorg.conf
via `Xorg -configure` or manually.

As for whether or not you even need to have an xorg.conf file, that's a
somewhat different matter. Often (as is the goal), you can run without a
configuration and let X set itself up automatically. This doesn't always
work, but works most of the time.

Also, I remember seeing the evil word "nvidia" in your dmesg:

        vga1 at pci1 dev 0 function 0 vendor "NVIDIA", \
        unknown product 0x0a75 rev 0xa2

Sadly, I don't have total recal, so I'm not sure which nvidia graphics
chip that is. The thing you need to know is support for the newer nvidia
crap namely GeForce 8xxx, GeForce 9xxx and GeForce GTX (G80, G84, G86,
G92, G94, G96, G98, GT200) is only available in -current.

        jcr

--
The OpenBSD Journal - http://www.undeadly.org