Skip to contentSkip to conversation

drm / i915 performance problems

DISCUSSION Knut Petersen 4 participants 7 messages Aug 14, 2009 – Aug 15, 2009

lore
Share & tools
lore
#0 lore raw

Hi David!

My current system is based on openSuSE 10.2, kernel 2.6.22.6 is used. As support for that distribution is discontinued, I had a look at openSuSE 11.1
and tried some of the new kernels. I found serious performance regressions using the current kernels

First a short descrition of the relevant hardware:

mainboard: Aopen i915Gmm-hfs,
RAM: 2 GB
cpu: Pentium M 1.86GHz.
video: built in i915GM
00:00.0 Host bridge: Intel Corporation Mobile 915GM/PM/GMS/910GML Express Processor to DRAM Controller (rev 04)
00:02.0 VGA compatible controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 04) (prog-if 00 [VGA]) 00:02.1 Display controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 04)

Test results:

glxgears: 1045 fps / 30% cpu usage (opensuse 10.2, kernel 2.6.22.6, smooth desktop and glxgears operation)
glxgears: 925 fps / 35% cpu usage (opensuse 11.1, kernel 2.6.22.6, smooth desktop and glxgears operation)
glxgears: 900 fps / 45% cpu usage (opensuse 11.1, kernel 2.6.27.29, smooth desktop and glxgears operation)

glxgears: 210 fps / 8% cpu usage (opensuse 11.1, kernel 2.6.31-rc6, Tiled buffers, jerky desktop and glxgears operation)
glxgears: 230 fps / 8% cpu usage (opensuse 11.1, kernel 2.6.31-rc6, Tiling disabled, jerky desktop and glxgears operation)

glxgears: 280 fps / 100% cpu usage (opensuse 11.1, kernel 2.6.31-rc6, DRI disabled in kernel, smooth desktop and glxgears operation)

With "jerky operation" in the table above I want to express, that desktop and glxgears drawing operation seems to happen in several bursts a second. Because of that the desktop performance is annoying enough to be unusable.

Xorg.0.log tells me: "Failed to set tiling on [front|back|depth] buffer:
Invalid argument". As disabling tiling in the older kernels results in similar performance drops, I believe that the inability to use tiled buffers is responsible for the low glxgears fps numbers.

Any ideas how to solve that problem?

cu,
Knut

#1 lore raw
Quoted 43 lines · Knut Petersen

Hi David!

My current system is based on openSuSE 10.2, kernel 2.6.22.6 is used. As support for that distribution is discontinued, I had a look at openSuSE 11.1
and tried some of the new kernels. I found serious performance regressions using the current kernels

First a short descrition of the relevant hardware:

mainboard: Aopen i915Gmm-hfs,
RAM: 2 GB
cpu: Pentium M 1.86GHz.
video: built in i915GM
00:00.0 Host bridge: Intel Corporation Mobile 915GM/PM/GMS/910GML Express Processor to DRAM Controller (rev 04)
00:02.0 VGA compatible controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 04) (prog-if 00 [VGA]) 00:02.1 Display controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 04)

Test results:

glxgears: 1045 fps / 30% cpu usage (opensuse 10.2, kernel 2.6.22.6, smooth desktop and glxgears operation)
glxgears: 925 fps / 35% cpu usage (opensuse 11.1, kernel 2.6.22.6, smooth desktop and glxgears operation)
glxgears: 900 fps / 45% cpu usage (opensuse 11.1, kernel 2.6.27.29, smooth desktop and glxgears operation)

glxgears: 210 fps / 8% cpu usage (opensuse 11.1, kernel 2.6.31-rc6, Tiled buffers, jerky desktop and glxgears operation)
glxgears: 230 fps / 8% cpu usage (opensuse 11.1, kernel 2.6.31-rc6, Tiling disabled, jerky desktop and glxgears operation)

glxgears: 280 fps / 100% cpu usage (opensuse 11.1, kernel 2.6.31-rc6, DRI disabled in kernel, smooth desktop and glxgears operation)

With "jerky operation" in the table above I want to express, that desktop and glxgears drawing operation seems to happen in several bursts a second. Because of that the desktop performance is annoying enough to be unusable.

Quoted 6 lines

Xorg.0.log tells me: "Failed to set tiling on [front|back|depth] buffer:
Invalid argument". As disabling tiling in the older kernels results in similar performance drops, I believe that the inability to use tiled buffers is responsible for the low glxgears fps numbers.

Any ideas how to solve that problem?

I bet some people'd love to know what X.org version and intel drv version you're using.

Also, if you're having KMS enabled or not.

#2 lore raw
Quoted 6 lines · Peter Zijlstra

I bet some people'd love to know what X.org version and intel drv version you're using.

Also, if you're having KMS enabled or not.

Well, I doubt that Xorg is the problem as it perfectly works with older versions of the kernel.

The problem is always present, no matter if
- KMS is enabled or not
- the agp/drm drivers are compiled as a module or compiled into the kernel
- vesafb is used or not
- tile blitting is enabled in framebuffer config space or not

BTW: kernel 2.6.30.4 performs as bad as 2.6.31-rc6.

Quoted 1 line

From boot.log:

<6>Linux agpgart interface v0.103
<6>agpgart-intel 0000:00:00.0: Intel 915GM Chipset <6>agpgart-intel 0000:00:00.0: detected 7932K stolen memory <6>agpgart-intel 0000:00:00.0: AGP aperture is 256M @ 0xc0000000 <6>[drm] Initialized drm 1.1.0 20060810
<6>i915 0000:00:02.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16 <7>i915 0000:00:02.0: setting latency timer to 64 <6>[drm] DAC-6: set mode 640x480 0
<6>[drm] TV-12: set mode NTSC 480i 0
<3>render error detected, EIR: 0x00000010
<3>page table error
<3> PGTBL_ER: 0x00000010
<3>[drm:i915_handle_error] *ERROR* EIR stuck: 0x00000010, masking <3>render error detected, EIR: 0x00000010
<3>page table error
<3> PGTBL_ER: 0x00000010
<6>[drm] TMDS-8: set mode 1024x768 1a
<4>Console: switching to colour frame buffer device 128x48 <6>[drm] fb0: inteldrmfb frame buffer device
<6>[drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0

Quoted 1 line

From the Xorg log:

X.Org X Server 1.5.2
Release Date: 10 October 2008
X Protocol Version 11, Revision 0
Build Operating System: openSUSE SUSE LINUX
Current Operating System: Linux linux-golem 2.6.31-rc6-kape [...]
(II) Loading /usr/lib/xorg/modules//drivers/intel_drv.so (II) Module intel: vendor="X.Org Foundation"
compiled for 1.5.2, module version = 2.5.0
Module class: X.Org Video Driver
ABI class: X.Org Video Driver, version 4.1
[...](II) [drm] DRM interface version 1.3
(II) [drm] DRM open master succeeded.
(II) intel(0): [drm] Using the DRM lock SAREA also for drawables. (II) intel(0): [drm] framebuffer mapped by ddx driver
(II) intel(0): [drm] added 1 reserved context for kernel (II) intel(0): X context handle = 0x1
(II) intel(0): [drm] installed DRM signal handler
(**) intel(0): Framebuffer compression enabled
(**) intel(0): Tiling enabled
(==) intel(0): VideoRam: 262144 KB
(II) intel(0): Attempting memory allocation with tiled buffers. (EE) intel(0): Failed to set tiling on front buffer: Invalid argument (EE) intel(0): Failed to set tiling on back buffer: Invalid argument (EE) intel(0): Failed to set tiling on depth buffer: Invalid argument (II) intel(0): Tiled allocation successful.
(II) intel(0): [drm] Registers = 0xd2300000
(II) intel(0): [drm] Initialized kernel agp heap manager, 33554432 (II) intel(0): [dri] visual configs initialized
(II) intel(0): Page Flipping disabled
(II) intel(0): vgaHWGetIOBase: hwp->IOBase is 0x03d0, hwp->PIOOffset is 0x000
[...]
(II) intel(0): Fixed memory allocation layout:
(II) intel(0): 0x00000000-0x005fffff: compressed frame buffer (6144 kB, 0x000000007f800000 physical)
(II) intel(0): 0x00600000-0x00600fff: compressed ll buffer (4 kB, 0x000000007fe00000 physical)
(II) intel(0): 0x00601000-0x0060afff: HW cursors (40 kB, 0x000000007fe01000 physical)
(II) intel(0): 0x0060b000-0x0060bfff: overlay registers (4 kB, 0x000000007fe0b000 physical)
(II) intel(0): 0x007bf000: end of stolen memory
(II) intel(0): 0x007bf000-0x0bdd3fff: DRI memory manager (186452 kB) (II) intel(0): 0x0bdd4000-0x0d9f3fff: exa offscreen (28800 kB) (II) intel(0): 0x0d9f4000-0x0f9f3fff: classic textures (32768 kB)
(II) intel(0): 0x10000000: end of aperture
(II) intel(0): BO memory allocation layout:
(II) intel(0): 0x007bf000: start of memory manager
(II) intel(0): 0x007bf000-0x0111efff: depth buffer (9600 kB) (II) intel(0): 0x017bf000-0x0211efff: back buffer (9600 kB) (II) intel(0): 0x02800000-0x037fffff: front buffer (16384 kB) (II) intel(0): 0x027bf000-0x027c6fff: logical 3D context (32 kB)
(II) intel(0): 0x0bdd4000: end of memory manager
(WW) intel(0): ESR is 0x00000010, page table error
(WW) intel(0): PGTBL_ER is 0x00000010, display A pte
(WW) intel(0): PRB0_CTL (0x0001f001) indicates ring buffer enabled (WW) intel(0): Existing errors found in hardware state.
(II) intel(0): Selecting standard 18 bit TMDS pixel format. (II) intel(0): Output configuration:

(II) intel(0):   Pipe A is on
(II) intel(0):   Display plane A is now enabled and connected to pipe A.
(II) intel(0):   Pipe B is on
(II) intel(0):   Display plane B is now enabled and connected to pipe B.
(II) intel(0):   Output VGA is connected to pipe none
(II) intel(0):   Output LVDS is connected to pipe B
(II) intel(0):   Output TMDS-1 is connected to pipe A
(II) intel(0):   Output TV-2 is connected to pipe none
(II) intel(0):   Output TV is connected to pipe none

(II) intel(0): [drm] mapped front buffer at 0xc2800000, handle = 0xc2800000 (II) intel(0): [drm] mapped back buffer at 0xc17bf000, handle = 0xc17bf000 (II) intel(0): [drm] mapped depth buffer at 0xc07bf000, handle = 0xc07bf000 (II) intel(0): [drm] mapped classic textures at 0xcd9f4000, handle = 0xcd9f4000

cu,
Knut

#3 lore raw

Hi.
Sorry if I jump in but as a former Opensuse 11.1 user I may have some information. The problem is that the X.org version shipped with that distro works fine only with 2.6.27.x kernels, regardless of the KMS use.

If you want to use a newer kernel, you shoud get a 2.6.31-rc version and a newer userspace. Please have a look at
http://bugzilla.kernel.org/show_bug.cgi?id=12950 .

If I remember correctly the solution was to add this repository:

    http://download.opensuse.org/repositories/X11:/XOrg/openSUSE_11.1/

to the repository list and then perform an update. Sorry but I left Opensuse some months ago and my memory isn't helping a lot...

Hope this helps. Regards,
Fabio

Quoted 127 lines · Knut Petersen
Quoted 6 lines · Peter Zijlstra

I bet some people'd love to know what X.org version and intel drv version you're using.

Also, if you're having KMS enabled or not.

Well, I doubt that Xorg is the problem as it perfectly works with older versions of the kernel.

The problem is always present, no matter if
- KMS is enabled or not
- the agp/drm drivers are compiled as a module or compiled into the kernel
- vesafb is used or not
- tile blitting is enabled in framebuffer config space or not

BTW: kernel 2.6.30.4 performs as bad as 2.6.31-rc6.

From boot.log:
<6>Linux agpgart interface v0.103
<6>agpgart-intel 0000:00:00.0: Intel 915GM Chipset <6>agpgart-intel 0000:00:00.0: detected 7932K stolen memory <6>agpgart-intel 0000:00:00.0: AGP aperture is 256M @ 0xc0000000 <6>[drm] Initialized drm 1.1.0 20060810
<6>i915 0000:00:02.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16 <7>i915 0000:00:02.0: setting latency timer to 64 <6>[drm] DAC-6: set mode 640x480 0
<6>[drm] TV-12: set mode NTSC 480i 0
<3>render error detected, EIR: 0x00000010
<3>page table error
<3>  PGTBL_ER: 0x00000010
<3>[drm:i915_handle_error] *ERROR* EIR stuck: 0x00000010, masking <3>render error detected, EIR: 0x00000010
<3>page table error
<3>  PGTBL_ER: 0x00000010
<6>[drm] TMDS-8: set mode 1024x768 1a
<4>Console: switching to colour frame buffer device 128x48 <6>[drm] fb0: inteldrmfb frame buffer device
<6>[drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0

From the Xorg log:

X.Org X Server 1.5.2
Release Date: 10 October 2008
X Protocol Version 11, Revision 0
Build Operating System: openSUSE SUSE LINUX
Current Operating System: Linux linux-golem 2.6.31-rc6-kape [...]
(II) Loading /usr/lib/xorg/modules//drivers/intel_drv.so
(II) Module intel: vendor="X.Org Foundation"
       compiled for 1.5.2, module version = 2.5.0
       Module class: X.Org Video Driver
       ABI class: X.Org Video Driver, version 4.1
[...](II) [drm] DRM interface version 1.3
(II) [drm] DRM open master succeeded.
(II) intel(0): [drm] Using the DRM lock SAREA also for drawables. (II) intel(0): [drm] framebuffer mapped by ddx driver
(II) intel(0): [drm] added 1 reserved context for kernel
(II) intel(0): X context handle = 0x1
(II) intel(0): [drm] installed DRM signal handler
(**) intel(0): Framebuffer compression enabled
(**) intel(0): Tiling enabled
(==) intel(0): VideoRam: 262144 KB
(II) intel(0): Attempting memory allocation with tiled buffers. (EE) intel(0): Failed to set tiling on front buffer: Invalid argument (EE) intel(0): Failed to set tiling on back buffer: Invalid argument (EE) intel(0): Failed to set tiling on depth buffer: Invalid argument (II) intel(0): Tiled allocation successful.
(II) intel(0): [drm] Registers = 0xd2300000
(II) intel(0): [drm] Initialized kernel agp heap manager, 33554432 (II) intel(0): [dri] visual configs initialized
(II) intel(0): Page Flipping disabled
(II) intel(0): vgaHWGetIOBase: hwp->IOBase is 0x03d0, hwp->PIOOffset is 0x000
[...]
(II) intel(0): Fixed memory allocation layout:
(II) intel(0): 0x00000000-0x005fffff: compressed frame buffer (6144 kB, 0x000000007f800000 physical)
(II) intel(0): 0x00600000-0x00600fff: compressed ll buffer (4 kB, 0x000000007fe00000 physical)
(II) intel(0): 0x00601000-0x0060afff: HW cursors (40 kB, 0x000000007fe01000 physical)
(II) intel(0): 0x0060b000-0x0060bfff: overlay registers (4 kB, 0x000000007fe0b000 physical)
(II) intel(0): 0x007bf000:            end of stolen memory
(II) intel(0): 0x007bf000-0x0bdd3fff: DRI memory manager (186452 kB) (II) intel(0): 0x0bdd4000-0x0d9f3fff: exa offscreen (28800 kB) (II) intel(0): 0x0d9f4000-0x0f9f3fff: classic textures (32768 kB) (II) intel(0): 0x10000000:            end of aperture
(II) intel(0): BO memory allocation layout:
(II) intel(0): 0x007bf000:            start of memory manager (II) intel(0): 0x007bf000-0x0111efff: depth buffer (9600 kB) (II) intel(0): 0x017bf000-0x0211efff: back buffer (9600 kB) (II) intel(0): 0x02800000-0x037fffff: front buffer (16384 kB) (II) intel(0): 0x027bf000-0x027c6fff: logical 3D context (32 kB) (II) intel(0): 0x0bdd4000:            end of memory manager (WW) intel(0): ESR is 0x00000010, page table error
(WW) intel(0): PGTBL_ER is 0x00000010, display A pte
(WW) intel(0): PRB0_CTL (0x0001f001) indicates ring buffer enabled (WW) intel(0): Existing errors found in hardware state.
(II) intel(0): Selecting standard 18 bit TMDS pixel format. (II) intel(0): Output configuration:
(II) intel(0):   Pipe A is on
(II) intel(0):   Display plane A is now enabled and connected to pipe A. (II) intel(0):   Pipe B is on
(II) intel(0):   Display plane B is now enabled and connected to pipe B. (II) intel(0):   Output VGA is connected to pipe none
(II) intel(0):   Output LVDS is connected to pipe B
(II) intel(0):   Output TMDS-1 is connected to pipe A
(II) intel(0):   Output TV-2 is connected to pipe none
(II) intel(0):   Output TV is connected to pipe none
(II) intel(0): [drm] mapped front buffer at 0xc2800000, handle = 0xc2800000 (II) intel(0): [drm] mapped back buffer at 0xc17bf000, handle = 0xc17bf000 (II) intel(0): [drm] mapped depth buffer at 0xc07bf000, handle = 0xc07bf000 (II) intel(0): [drm] mapped classic textures at 0xcd9f4000, handle = 0xcd9f4000

cu,
 Knut

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

#4 lore raw
Quoted 12 lines · Fabio Comolli

If I remember correctly the solution was to add this repository:

    http://download.opensuse.org/repositories/X11:/XOrg/openSUSE_11.1/

to the repository list and then perform an update. Sorry but I left Opensuse some months ago and my memory isn't helping a lot...

Hope this helps. Regards,
Fabio

No, it does not help too much. I updated to the software provided there and the result is a X server that crashes during startup ... :-(

Which X server is supposed to work with 2.6.30 (++) kernels on i915GM hardware?

cu,
Knut

#5 lore raw
Quoted 12 lines · Knut Petersen
Quoted 11 lines · Fabio Comolli

If I remember correctly the solution was to add this repository:

    http://download.opensuse.org/repositories/X11:/XOrg/openSUSE_11.1/

to the repository list and then perform an update. Sorry but I left Opensuse some months ago and my memory isn't helping a lot...

Hope this helps. Regards,
Fabio

Quoted 6 lines

No, it does not help too much. I updated to the software provided there and the result is a X server that crashes during startup ... :-(

Which X server is supposed to work with 2.6.30 (++) kernels on i915GM hardware?

Your X server and the intel driver seems to be too old. Use the X server 1.6.2 rc1 with intel driver 2.7.0 and see if it works.

Regards,
David.

#6 lore raw
In reply to Knut Petersen

Hi.
My config is:

* X.org v. 1.6.3
* intel driver v. 2.7.99.902 (2.8-pre)
* intel-dri v.7.5
* mesa v. 7.5
* kernel v.2.6.31-rc6 with KMS

on an eeePC 900 with very good performance. Userspace is now ArchLinux.

Regards,
Fabio

Quoted 22 lines · Knut Petersen
Quoted 12 lines · Fabio Comolli

If I remember correctly the solution was to add this repository:

    http://download.opensuse.org/repositories/X11:/XOrg/openSUSE_11.1/

to the repository list and then perform an update. Sorry but I left Opensuse some months ago and my memory isn't helping a lot...

Hope this helps. Regards,
Fabio

No, it does not help too much. I  updated to the  software provided there and the result is a X  server that crashes during startup ... :-(

Which X server is supposed to work with 2.6.30 (++) kernels on i915GM hardware?

cu,
 Knut