intel drm problems in current

2010-04-30 Thread Didier Wiroth
Hello,
I've updated to current, sources are from a few hours ago.

I'm experiencing (stuttering) problems on a thinkpad w500 in x11. X11
is mostly unusable if I don't disable drm in the kernel.

If I use for example:
1) XDM it takes a few seconds until I'm able to type my username & password
2) or if I start an xterm, it takes a few seconds until I'm able to
type something on the console
3) when an xterm prompt is available and I type "ls -la", it kind of
stutters while typing "ls" and after a few seconds "-la" appears.

These problem disappear immediately if I disable "disable drm" in the kernel.

Does anyone else experience these problems?

I saw that there where some intel driver change in the cvs sources.

Thanks a lot!

Kind regards,
Didier

(below dmesg + Xorg.log output with DRM enabled)



OpenBSD 4.7-current (GENERIC.MP) #0: Fri Apr 30 11:50:45 CEST 2010
r...@406334g.wiroth.net:/usr/obj/kernels.sFSko/GENERIC.MP
real mem = 3175813120 (3028MB)
avail mem = 3077558272 (2934MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (80 entries)
bios0: vendor LENOVO version "6FET83WW (3.13 )" date 03/15/2010
bios0: LENOVO 406334G
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP SSDT ECDT APIC MCFG HPET SLIC BOOT ASF! SSDT
TCPA DMAR SSDT SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) UART(S3) IGBE(S4) EXP0(S4)
EXP1(S4) EXP2(S4) EXP3(S4) EXP4(S4) PCI1(S4) USB0(S3) USB3(S3)
USB5(S3) EHC0(S3) EHC1(S3) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 Duo CPU T9600 @ 2.80GHz, 2793.47 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,S
SSE3,CX16,xTPR,PDCM,SSE4.1,NXE,LONG
cpu0: 6MB 64b/line 16-way L2 cache
cpu0: apic clock running at 266MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU T9600 @ 2.80GHz, 2793.00 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,S
SSE3,CX16,xTPR,PDCM,SSE4.1,NXE,LONG
cpu1: 6MB 64b/line 16-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 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus 3 (EXP1)
acpiprt4 at acpi0: bus 4 (EXP2)
acpiprt5 at acpi0: bus 5 (EXP3)
acpiprt6 at acpi0: bus 13 (EXP4)
acpiprt7 at acpi0: bus 21 (PCI1)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpipwrres0 at acpi0: PUBS
acpitz0 at acpi0: critical temperature 127 degC
acpitz1 at acpi0: critical temperature 100 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model "42T4619" serial  9144 type LION oem "SANYO"
acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
acpidock0 at acpi0: GDCK not docked (0)
cpu0: Enhanced SpeedStep 2793 MHz: speeds: 2801, 2800, 2133, 1600, 800 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel GM45 Host" rev 0x07
vga1 at pci0 dev 2 function 0 "Intel GM45 Video" rev 0x07
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 GM45 Video" rev 0x07 at pci0 dev 2 function 1 not configured
"Intel GM45 HECI" rev 0x07 at pci0 dev 3 function 0 not configured
em0 at pci0 dev 25 function 0 "Intel ICH9 IGP M AMT" rev 0x03: apic 1
int 20 (irq 11), address 00:1c:25:98:a4:7b
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: RIRB time out
azalia0: codecs: Conexant CX20561, 0x/0x, using Conexant CX20561
azalia0: RIRB time out
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
iwn0 at pci2 dev 0 function 0 "Intel WiFi Link 5300" rev 0x00: apic 1
int 17 (irq 11), MIMO 3T3R, MoW, address 00:21:6a:0d:2f:0a
ppb2 at pci0 dev 28 function 2 "Intel 82801I PCIE" rev 0x03: apic 1
int 22 (irq 11)
pci3 at ppb2 bus 4
"Intel Turbo Memory" rev 0x11 at pci3 dev 0 function 0 not configured
ppb3 at 

intel drm problems in current

2010-04-30 Thread dave

Hello,
I've updated to current, sources are from a few hours ago.

I'm experiencing (stuttering) problems on a thinkpad w500 in x11. X11
is mostly unusable if I don't disable drm in the kernel.

I had this issue briefly because my kernel was out of sync with xenocara.

Did you start your update by installing the latest snapshot, then and 
only then, cvs -CURRENT (and follow Oga's instructions)?


Dave



Re: intel drm problems in current

2010-04-30 Thread Didier Wiroth
>> Euh ... which Oga's instructions?
>
> http://marc.info/?l=openbsd-tech&m=127100825511044&w=4
Ok, it works now.
I didn't see this post.
Thanks.
Kind regards,
Didier



Re: intel drm problems in current

2010-04-30 Thread Dan Harnett
On Fri, Apr 30, 2010 at 07:10:01PM +0200, Didier Wiroth wrote:
> Hello,
> I've updated to current, sources are from a few hours ago.
> 
> I'm experiencing (stuttering) problems on a thinkpad w500 in x11. X11
> is mostly unusable if I don't disable drm in the kernel.

[...]

> Does anyone else experience these problems?
> 
> I saw that there where some intel driver change in the cvs sources.


I'm seeing the same thing using OpenBSD/amd64 on a ThinkPad T500 and
T400.  When I was testing, 'sysctl hw.setperf=0' seemed to stop the
stuttering (apm -C, apm -L).

I do not see the issue on a ThinkPad X61s.

While testing the newer Intel driver and directions from Owain Ainsworth
posted to tech@, I do not experience the problem.


===[ ThinkPad T500 ]===
OpenBSD 4.7-current (GENERIC.MP) #227: Wed Apr 28 11:55:45 MDT 2010
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 3110801408 (2966MB)
avail mem = 3014275072 (2874MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (80 entries)
bios0: vendor LENOVO version "6FET81WW (3.11 )" date 11/24/2009
bios0: LENOVO 2242CTO
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) UART(S3) IGBE(S4) EXP0(S4) EXP1(S4) 
EXP2(S4) EXP3(S4) EXP4(S4) PCI1(S4) USB0(S3) USB3(S3) USB5(S3) EHC0(S3) 
EHC1(S3) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz, 2394.32 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,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE,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,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE,NXE,LONG
cpu1: 3MB 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 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus 3 (EXP1)
acpiprt4 at acpi0: bus -1 (EXP2)
acpiprt5 at acpi0: bus 5 (EXP3)
acpiprt6 at acpi0: bus 13 (EXP4)
acpiprt7 at acpi0: bus 21 (PCI1)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpipwrres0 at acpi0: PUBS
acpitz0 at acpi0: critical temperature 127 degC
acpitz1 at acpi0: critical temperature 100 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model "42T4777" serial  6056 type LION oem "SONY"
acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
acpidock0 at acpi0: GDCK docked (15)
cpu0: Enhanced SpeedStep 2394 MHz: speeds: 2401, 2400, 1600, 800 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel GM45 Host" rev 0x07
vga1 at pci0 dev 2 function 0 "Intel GM45 Video" rev 0x07
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 GM45 Video" rev 0x07 at pci0 dev 2 function 1 not configured
"Intel GM45 HECI" rev 0x07 at pci0 dev 3 function 0 not configured
em0 at pci0 dev 25 function 0 "Intel ICH9 IGP M AMT" rev 0x03: apic 1 int 20 
(irq 11), address 00:22:68:1b:65:4f
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: codecs: Conexant CX20561
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
iwn0 at pci2 dev 0 function 0 "Intel WiFi Link 5300" rev 0x00: apic 1 int 17 
(irq 11), MIMO 3T3R, MoW, address 00:21:6a:95:cb:52
ppb2 at pci0 dev 28 function 3 "Intel 82801I PCIE" rev 0x03: apic 1 int 23 (irq 
11)
pci3 at ppb2 bus 5
ppb3 at pci0 dev 28 function 4 "Intel 82801I PCIE" rev 0x03: apic 1 int 20 (irq 
11)
pci4 at ppb3 bus 13
uhci3 at pci0 dev 29 function 0 "Intel 82801I USB" rev 0x03: apic 1 int 16 (irq 
11)
uhci4 a

Re: intel drm problems in current

2010-04-30 Thread Chris Dukes
On Fri, Apr 30, 2010 at 07:10:01PM +0200, Didier Wiroth wrote:
> Hello,
> I've updated to current, sources are from a few hours ago.
> 
> I'm experiencing (stuttering) problems on a thinkpad w500 in x11. X11
> is mostly unusable if I don't disable drm in the kernel.

Upstream xorg has introduced numerous issues with intel DRM
that have been impacting multiple Linux distribution rollouts.

Be thankful it isn't causing issues with the kernel crashing.

The following minimal xorg.conf has tended to resolve my issues
with the Ubuntu Lucid betas.  You may wish to see if this allows
you to remain with a default kernel config.  Unfortunately, I run
OpenBSD in headless applications so I cannot verify for myself.

Section "Device"
  Identifier "my-self-configured-device"
  Driver "intel"
  Option "DebugFlushCaches" "1"
 Option "DRI" "Off"
#  Option "AIGLX" "Off"
EndSection



-- 
Chris Dukes



Re: intel drm problems in current

2010-04-30 Thread Peter Miller
On Fri, 2010-04-30 at 13:45 -0400, Dan Harnett wrote:
> On Fri, Apr 30, 2010 at 07:10:01PM +0200, Didier Wiroth wrote:
> > Hello,
> > I've updated to current, sources are from a few hours ago.
> > 
> > I'm experiencing (stuttering) problems on a thinkpad w500 in x11. X11
> > is mostly unusable if I don't disable drm in the kernel.
> 
> [...]
> 
> > Does anyone else experience these problems?
> > 
> > I saw that there where some intel driver change in the cvs sources.
> 
> 
> I'm seeing the same thing using OpenBSD/amd64 on a ThinkPad T500 and
> T400.  When I was testing, 'sysctl hw.setperf=0' seemed to stop the
> stuttering (apm -C, apm -L).
> 
> I do not see the issue on a ThinkPad X61s.
> 
> While testing the newer Intel driver and directions from Owain Ainsworth
> posted to tech@, I do not experience the problem.

Similar problems here with GM 45 on a hp dv4. Things were fine with
Owain's advice, and on 4.6, but after a re-install of a snapshot my
system freezes all the time. It happens whenever there are network
connections. With Dillo and Firefox i get multiple freezes a minute, for
about 5 seconds. If I move the mouse, my system comes back immediately.
Freezing does not seem to happen if i'm just using emacs or other
non-net programs.

Switching to vesa, everything works fine, but then I lose my laptop's
resolution. 

Setting hw.setperf=0 seems to be doing the trick here as well. Thanks
Dan.

dmesg
OpenBSD 4.7-current (GENERIC.MP) #556: Mon Apr 26 21:12:33 MDT 2010
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Core(TM)2 Duo CPU T6500 @ 2.10GHz ("GenuineIntel"
686-class) 2.10 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE
real mem  = 3118469120 (2974MB)
avail mem = 3024760832 (2884MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 05/14/09, SMBIOS rev. 2.4 @
0xe8270 (29 entries)
bios0: vendor Hewlett-Packard version "F.42" date 05/14/2009
bios0: Hewlett-Packard HP Pavilion dv4 Notebook PC
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP DMAR SSDT HPET APIC MCFG ASF! SLIC BOOT SSDT
acpi0: wakeup devices SLPB(S4) P32_(S0) UHC1(S0) UHC2(S0) UHC3(S0)
UHC6(S0) EHC1(S0) UHC4(S0) UHC5(S0) EHC2(S0) PXSX(S4) EXP1(S5) PXSX(S4)
EXP3(S5) PXSX(S4) EXP4(S5) LANR(S5) PXSX(S4) EXP5(S5) PXSX(S4) EXP6(S5)
MIR_(S5)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 199MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU T6500 @ 2.10GHz ("GenuineIntel"
686-class) 2.10 GHz
cpu1:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE
ioapic0 at mainbus0: apid 4 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 4
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 8 (P32_)
acpiprt2 at acpi0: bus 1 (EXP1)
acpiprt3 at acpi0: bus 2 (EXP3)
acpiprt4 at acpi0: bus 3 (EXP4)
acpiprt5 at acpi0: bus 4 (EXP5)
acpiprt6 at acpi0: bus 5 (EXP6)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpipwrres0 at acpi0: FN00
acpitz0 at acpi0: critical temperature 97 degC
acpibtn0 at acpi0: PWRB
acpibtn1 at acpi0: LID0
acpibtn2 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model "Primary" type Lion oem "Hewlett-Packard"
acpiac0 at acpi0: AC unit online
acpivideo0 at acpi0: OVGA
acpivideo1 at acpi0: EVGA
acpivout0 at acpivideo1: LCD_
acpivout1 at acpivideo1: CRT_
acpivout2 at acpivideo1: HDMI
bios0: ROM list: 0xc/0xf800! 0xcf800/0x2c00!
cpu0: Enhanced SpeedStep 2095 MHz: speeds: 2100, 1600, 1200 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel GM45 Host" rev 0x07
vga1 at pci0 dev 2 function 0 "Intel GM45 Video" rev 0x07
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 0xc000, size 0x1000
inteldrm0 at vga1: apic 4 int 16 (irq 11)
drm0 at inteldrm0
"Intel GM45 Video" rev 0x07 at pci0 dev 2 function 1 not configured
uhci0 at pci0 dev 26 function 0 "Intel 82801I USB" rev 0x03: apic 4 int
16 (irq 11)
uhci1 at pci0 dev 26 function 1 "Intel 82801I USB" rev 0x03: apic 4 int
17 (irq 10)
ehci0 at pci0 dev 26 function 7 "Intel 82801I USB" rev 0x03: apic 4 int
18 (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
4 int 22 (irq 11)
azalia0: codecs: IDT 92HD71B7, AT&T/Lucent/0x1040, Intel/0x2802, using
IDT 92HD71B7
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801I PCIE" rev 0x03: apic 4 int
16 (irq 255)
pci1 at ppb0 bus 1