Bug 18896 - [GEM 2.6.28-rc7] X freezes, warning/oops in i915 driver after resuming from suspend
[GEM 2.6.28-rc7] X freezes, warning/oops in i915 driver after resuming from s...
Status: RESOLVED INVALID
Product: DRI
Classification: Unclassified
Component: DRM/other
XOrg git
x86-64 (AMD64) Linux (All)
: medium critical
Assigned To: Default DRI bug account
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-12-04 18:47 UTC by Alexandre Rostovtsev
Modified: 2009-01-06 02:39 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
intel_reg_dumper : started GDM (7.82 KB, text/plain)
2008-12-04 21:28 UTC, Alexandre Rostovtsev
no flags Details
intel_reg_dumper : switched to VT1 (7.66 KB, text/plain)
2008-12-04 21:30 UTC, Alexandre Rostovtsev
no flags Details
intel_reg_dumper : switched back to X (7.76 KB, text/plain)
2008-12-04 21:32 UTC, Alexandre Rostovtsev
no flags Details
intel_reg_dumper : rebooted, started GDM (7.84 KB, text/plain)
2008-12-04 21:39 UTC, Alexandre Rostovtsev
no flags Details
intel_reg_dumper : resumed from suspend-to-ram (7.76 KB, text/plain)
2008-12-04 21:40 UTC, Alexandre Rostovtsev
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Rostovtsev 2008-12-04 18:47:48 UTC
On my Lenovo Thinkpad SL300, after resuming from suspend-to-ram, X freezes hard, making the keyboard unusable, and forcing me to hard-reboot unless I am near another machine that I could ssh from. Looking at dmesg, it looks like the error is in the new GEM memory manager in the i915 driver.

Hardware:
Lenovo Thinkpad SL300
Intel GM45 Express Chipset

Software:
2.6.28-rc7-git1 kernel (64-bit)
libdrm-2.4.2 pre from Git master on 2008-12-03
xf86-video-intel-2.6 pre from Git master on 2008-12-03
mesa-7.3 pre from Git master on 2008-12-03
xorg-server-1.5.2

dmesg log #1 (after resuming during a Gnome session)
===========================
[ 7227.286194] resource map sanity check conflict: 0xd0000000 0xdfffffff 0xd0000000 0xd1feffff vesafb
[ 7227.286201] ------------[ cut here ]------------
[ 7227.286203] WARNING: at arch/x86/mm/ioremap.c:226 __ioremap_caller+0xc7/0x2c6()
[ 7227.286205] Modules linked in: uvcvideo snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device snd_pcm_oss snd_mixer_oss fuse coretemp snd_hda_intel compat_ioctl32 firewire_ohci iwlagn snd_pcm hwmon videodev iwlcore snd_timer v4l1_compat firewire_core sdhci_pci video snd_page_alloc r8169 sdhci mmc_core ricoh_mmc snd_hwdep rfkill output nfs nfs_acl lockd sunrpc dm_snapshot dm_mirror dm_region_hash dm_log scsi_wait_scan [last unloaded: uvcvideo]
[ 7227.286231] Pid: 4853, comm: X Tainted: G        W  2.6.28-rc7-git1 #1
[ 7227.286233] Call Trace:
[ 7227.286239]  [<ffffffff8023e3b3>] warn_on_slowpath+0x58/0x7d
[ 7227.286242]  [<ffffffff80227421>] ? change_page_attr_set_clr+0x136/0x2da
[ 7227.286244]  [<ffffffff802277d9>] ? _set_memory_wc+0x22/0x24
[ 7227.286248]  [<ffffffff8066de69>] ? _read_lock+0x16/0x29
[ 7227.286250]  [<ffffffff8066e046>] ? _read_unlock+0x11/0x2a
[ 7227.286262]  [<ffffffff80226516>] __ioremap_caller+0xc7/0x2c6
[ 7227.286266]  [<ffffffff804cdafe>] ? i915_gem_entervt_ioctl+0x451/0x4e6
[ 7227.286268]  [<ffffffff80226806>] ioremap_wc+0x1b/0x25
[ 7227.286271]  [<ffffffff804cdafe>] i915_gem_entervt_ioctl+0x451/0x4e6
[ 7227.286274]  [<ffffffff802bcd73>] ? do_sync_write+0xe7/0x12d
[ 7227.286277]  [<ffffffff804bf5a6>] drm_ioctl+0x1d6/0x25e
[ 7227.286280]  [<ffffffff804cd6ad>] ? i915_gem_entervt_ioctl+0x0/0x4e6
[ 7227.286283]  [<ffffffff802c9531>] vfs_ioctl+0x5f/0x78
[ 7227.286285]  [<ffffffff802c98d7>] do_vfs_ioctl+0x38d/0x3bf
[ 7227.286287]  [<ffffffff8066e09d>] ? _spin_unlock+0x10/0x29
[ 7227.286289]  [<ffffffff802c995e>] sys_ioctl+0x55/0x77
[ 7227.286291]  [<ffffffff802bd80f>] ? sys_write+0x47/0x70
[ 7227.286294]  [<ffffffff8020b4ab>] system_call_fastpath+0x16/0x1b
[ 7227.286296] ---[ end trace c280654dc05dd35b ]---
[ 7227.293085] X:4853 conflicting memory types d0000000-e0000000 uncached-minus<->write-combining
[ 7227.293087] reserve_memtype failed 0xd0000000-0xe0000000, track uncached-minus, req write-combining
============================


dmesg log #2 (after resuming while in the GDM screen):
===========================
[16912.873504] resource map sanity check conflict: 0xd0000000 0xdfffffff 0xd0000000 0xd1feffff vesafb
[16912.873518] ------------[ cut here ]------------
[16912.873523] WARNING: at arch/x86/mm/ioremap.c:226 __ioremap_caller+0xc7/0x2c6()
[16912.873527] Modules linked in: uvcvideo snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device snd_pcm_oss snd_mixer_oss fuse coretemp snd_hda_intel sdhci_pci sdhci iwlagn firewire_ohci compat_ioctl32 hwmon snd_pcm mmc_core iwlcore snd_timer videodev video snd_page_alloc v4l1_compat snd_hwdep firewire_core rfkill r8169 output nfs nfs_acl lockd sunrpc dm_snapshot dm_mirror dm_region_hash dm_log scsi_wait_scan [last unloaded: uvcvideo]
[16912.873582] Pid: 4983, comm: X Tainted: G        W  2.6.28-rc7-git1 #1
[16912.873586] Call Trace:
[16912.873598]  [<ffffffff8023e3b3>] warn_on_slowpath+0x58/0x7d
[16912.873605]  [<ffffffff80227421>] ? change_page_attr_set_clr+0x136/0x2da
[16912.873612]  [<ffffffff802277d9>] ? _set_memory_wc+0x22/0x24
[16912.873620]  [<ffffffff8066de69>] ? _read_lock+0x16/0x29
[16912.873625]  [<ffffffff8066e046>] ? _read_unlock+0x11/0x2a
[16912.873631]  [<ffffffff80226516>] __ioremap_caller+0xc7/0x2c6
[16912.873640]  [<ffffffff804cdafe>] ? i915_gem_entervt_ioctl+0x451/0x4e6
[16912.873646]  [<ffffffff80226806>] ioremap_wc+0x1b/0x25
[16912.873652]  [<ffffffff804cdafe>] i915_gem_entervt_ioctl+0x451/0x4e6
[16912.873659]  [<ffffffff802bcd73>] ? do_sync_write+0xe7/0x12d
[16912.873667]  [<ffffffff804bf5a6>] drm_ioctl+0x1d6/0x25e
[16912.873673]  [<ffffffff804cd6ad>] ? i915_gem_entervt_ioctl+0x0/0x4e6
[16912.873680]  [<ffffffff802c9531>] vfs_ioctl+0x5f/0x78
[16912.873685]  [<ffffffff802c98d7>] do_vfs_ioctl+0x38d/0x3bf
[16912.873691]  [<ffffffff8066e09d>] ? _spin_unlock+0x10/0x29
[16912.873696]  [<ffffffff802c995e>] sys_ioctl+0x55/0x77
[16912.873701]  [<ffffffff802bd80f>] ? sys_write+0x47/0x70
[16912.873708]  [<ffffffff8020b4ab>] system_call_fastpath+0x16/0x1b
[16912.873713] ---[ end trace d7e28a7c14b69073 ]---
[16912.891439] X:4983 conflicting memory types d0000000-e0000000 uncached-minus<->write-combining
[16912.891444] reserve_memtype failed 0xd0000000-0xe0000000, track uncached-minus, req write-combining
[16912.983999] wlan0: deauthenticated
[16913.778803] BUG: unable to handle kernel paging request at 000000000305d000
[16913.778810] IP: [<ffffffff804ce1c6>] i915_gem_execbuffer+0x44c/0xa3c
[16913.778820] PGD 13989c067 PUD 1399bc067 PMD 0 
[16913.778825] Oops: 0002 [#1] PREEMPT SMP 
[16913.778829] last sysfs file: /sys/devices/virtual/backlight/acpi_video0/brightness
[16913.778834] Dumping ftrace buffer:
[16913.778836]    (ftrace buffer empty)
[16913.778838] CPU 0 
[16913.778841] Modules linked in: uvcvideo snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device snd_pcm_oss snd_mixer_oss fuse coretemp snd_hda_intel sdhci_pci sdhci iwlagn firewire_ohci compat_ioctl32 hwmon snd_pcm mmc_core iwlcore snd_timer videodev video snd_page_alloc v4l1_compat snd_hwdep firewire_core rfkill r8169 output nfs nfs_acl lockd sunrpc dm_snapshot dm_mirror dm_region_hash dm_log scsi_wait_scan [last unloaded: uvcvideo]
[16913.778882] Pid: 4983, comm: X Tainted: G        W  2.6.28-rc7-git1 #1
[16913.778885] RIP: 0010:[<ffffffff804ce1c6>]  [<ffffffff804ce1c6>] i915_gem_execbuffer+0x44c/0xa3c
[16913.778890] RSP: 0018:ffff88013b857d28  EFLAGS: 00010206
[16913.778893] RAX: 000000000305d000 RBX: ffff880139905ae0 RCX: 000000000305c000
[16913.778895] RDX: 0000000000000000 RSI: ffff88013dd70000 RDI: ffff88013ec6bc00
[16913.778898] RBP: ffff88013b857e18 R08: 0000000000000000 R09: 00001e0000000000
[16913.778900] R10: ffffffffffffffff R11: ffff880135628810 R12: ffff8801354ed400
[16913.778903] R13: ffff8801354ed480 R14: ffff88013ed0d800 R15: ffff88013b9a8ea0
[16913.778906] FS:  00007f969fd38740(0000) GS:ffffffff808ead80(0000) knlGS:0000000000000000
[16913.778909] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[16913.778911] CR2: 000000000305d000 CR3: 00000001398e9000 CR4: 00000000000006a0
[16913.778914] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[16913.778916] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[16913.778919] Process X (pid: 4983, threadinfo ffff88013b856000, task ffff88013a84d940)
[16913.778921] Stack:
[16913.778923]  ffff88013b857dd8 ffffffff80597ce2 00000000ffffffea ffff88013b87c900
[16913.778928]  ffff880135677ac0 ffff88013b52b398 ffff88013ed0d828 ffff8801398a1f40
[16913.778933]  0000000100000001 ffff88013b9a8e80 0000000000000000 ffff88013dd70000
[16913.778939] Call Trace:
[16913.778941]  [<ffffffff80597ce2>] ? sock_aio_read+0x113/0x123
[16913.778946]  [<ffffffff8066dc91>] ? _spin_lock+0x16/0x2e
[16913.778951]  [<ffffffff804c090a>] ? drm_gem_object_lookup+0x43/0x4f
[16913.778957]  [<ffffffff804bf5a6>] drm_ioctl+0x1d6/0x25e
[16913.778961]  [<ffffffff804cdd7a>] ? i915_gem_execbuffer+0x0/0xa3c
[16913.778965]  [<ffffffff802c9531>] vfs_ioctl+0x5f/0x78
[16913.778971]  [<ffffffff802c98d7>] do_vfs_ioctl+0x38d/0x3bf
[16913.778974]  [<ffffffff8066e09d>] ? _spin_unlock+0x10/0x29
[16913.778978]  [<ffffffff802c995e>] sys_ioctl+0x55/0x77
[16913.778982]  [<ffffffff802bda50>] ? sys_read+0x47/0x6f
[16913.778986]  [<ffffffff8020b4ab>] system_call_fastpath+0x16/0x1b
[16913.778991] Code: 55 b8 8b 4d b4 03 56 38 03 4b 38 48 89 d0 48 8b b5 68 ff ff ff 48 25 00 f0 ff ff 81 e2 ff 0f 00 00 48 03 86 a8 0e 00 00 48 01 d0 <89> 08 ba 20 00 00 00 8b 5b 38 48 8d 75 b0 48 89 5d c0 48 8b 7d 
[16913.779034] RIP  [<ffffffff804ce1c6>] i915_gem_execbuffer+0x44c/0xa3c
[16913.779039]  RSP <ffff88013b857d28>
[16913.779041] CR2: 000000000305d000
[16913.779061] ---[ end trace d7e28a7c14b69073 ]---
=========================
Comment 1 Alexandre Rostovtsev 2008-12-04 21:01:52 UTC
By the way, I am also getting an identical error when switching from a text VT to X:

[   37.482465] [drm] Initialized i915 1.6.0 20080730 on minor 0
[   37.554495] resource map sanity check conflict: 0xd0000000 0xdfffffff 0xd0000000 0xd1feffff vesafb
[   37.554510] ------------[ cut here ]------------
[   37.554515] WARNING: at arch/x86/mm/ioremap.c:226 __ioremap_caller+0xc7/0x2c6()
[   37.554520] Modules linked in: i915 uvcvideo snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device snd_pcm_oss snd_mixer_oss fuse coretemp snd_hda_intel sdhci_pci iwlagn compat_ioctl32 sdhci snd_pcm mmc_core iwlcore videodev snd_timer r8169 video v4l1_compat firewire_ohci snd_page_alloc hwmon snd_hwdep firewire_core output rfkill nfs nfs_acl lockd sunrpc dm_snapshot dm_mirror dm_region_hash dm_log scsi_wait_scan [last unloaded: uvcvideo]
[   37.554595] Pid: 4968, comm: X Not tainted 2.6.28-rc7-git1 #2
[   37.554600] Call Trace:
[   37.554611]  [<ffffffff8023e3b3>] warn_on_slowpath+0x58/0x7d
[   37.554619]  [<ffffffff80227421>] ? change_page_attr_set_clr+0x136/0x2da
[   37.554627]  [<ffffffff802277fd>] ? _set_memory_uc+0x22/0x24
[   37.554637]  [<ffffffff80665a09>] ? _read_lock+0x16/0x29
[   37.554642]  [<ffffffff80665be6>] ? _read_unlock+0x11/0x2a
[   37.554649]  [<ffffffff80226516>] __ioremap_caller+0xc7/0x2c6
[   37.554669]  [<ffffffffa0189c02>] ? i915_gem_entervt_ioctl+0x451/0x4e6 [i915]
[   37.554676]  [<ffffffff80226806>] ioremap_wc+0x1b/0x25
[   37.554692]  [<ffffffffa0189c02>] i915_gem_entervt_ioctl+0x451/0x4e6 [i915]
[   37.554700]  [<ffffffff80254e4f>] ? up_read+0x9/0xb
[   37.554707]  [<ffffffff806684a9>] ? do_page_fault+0x518/0x8ed
[   37.554719]  [<ffffffff804bf5a6>] drm_ioctl+0x1d6/0x25e
[   37.554735]  [<ffffffffa01897b1>] ? i915_gem_entervt_ioctl+0x0/0x4e6 [i915]
[   37.554744]  [<ffffffff802c9531>] vfs_ioctl+0x5f/0x78
[   37.554750]  [<ffffffff802c98d7>] do_vfs_ioctl+0x38d/0x3bf
[   37.554756]  [<ffffffff802c995e>] sys_ioctl+0x55/0x77
[   37.554765]  [<ffffffff8020b4ab>] system_call_fastpath+0x16/0x1b
[   37.554770] ---[ end trace ee409c1da0e35a16 ]---
[   38.730133] X:4968 conflicting memory types d0000000-e0000000 write-combining<->uncached-minus
[   38.730141] reserve_memtype failed 0xd0000000-0xe0000000, track write-combining, req write-combining
[   39.089245] X:4968 conflicting memory types d0000000-e0000000 write-combining<->uncached-minus
[   39.089253] reserve_memtype failed 0xd0000000-0xe0000000, track write-combining, req write-combining
[   39.536849] X:4968 conflicting memory types d0000000-e0000000 write-combining<->uncached-minus
[   39.536857] reserve_memtype failed 0xd0000000-0xe0000000, track write-combining, req write-combining
[   39.552176] X:5110 freeing invalid memtype d0000000-e0000000
[   43.457164] wlan0: no IPv6 routers present
[  159.785921] X:4968 freeing invalid memtype d0000000-e0000000
[  161.906119] resource map sanity check conflict: 0xd0000000 0xdfffffff 0xd0000000 0xd1feffff vesafb
[  161.906133] ------------[ cut here ]------------
[  161.906138] WARNING: at arch/x86/mm/ioremap.c:226 __ioremap_caller+0xc7/0x2c6()
[  161.906143] Modules linked in: i915 uvcvideo snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device snd_pcm_oss snd_mixer_oss fuse coretemp snd_hda_intel sdhci_pci iwlagn compat_ioctl32 sdhci snd_pcm mmc_core iwlcore videodev snd_timer r8169 video v4l1_compat firewire_ohci snd_page_alloc hwmon snd_hwdep firewire_core output rfkill nfs nfs_acl lockd sunrpc dm_snapshot dm_mirror dm_region_hash dm_log scsi_wait_scan [last unloaded: uvcvideo]
[  161.906222] Pid: 4968, comm: X Tainted: G        W  2.6.28-rc7-git1 #2
[  161.906226] Call Trace:
[  161.906237]  [<ffffffff8023e3b3>] warn_on_slowpath+0x58/0x7d
[  161.906245]  [<ffffffff80227421>] ? change_page_attr_set_clr+0x136/0x2da
[  161.906274]  [<ffffffff802277d9>] ? _set_memory_wc+0x22/0x24
[  161.906284]  [<ffffffff80665a09>] ? _read_lock+0x16/0x29
[  161.906290]  [<ffffffff80665bfd>] ? _read_unlock+0x28/0x2a
[  161.906297]  [<ffffffff80226516>] __ioremap_caller+0xc7/0x2c6
[  161.906317]  [<ffffffffa0189c02>] ? i915_gem_entervt_ioctl+0x451/0x4e6 [i915]
[  161.906324]  [<ffffffff80226806>] ioremap_wc+0x1b/0x25
[  161.906340]  [<ffffffffa0189c02>] i915_gem_entervt_ioctl+0x451/0x4e6 [i915]
[  161.906349]  [<ffffffff802bcd73>] ? do_sync_write+0xe7/0x12d
[  161.906361]  [<ffffffff804bf5a6>] drm_ioctl+0x1d6/0x25e
[  161.906378]  [<ffffffffa01897b1>] ? i915_gem_entervt_ioctl+0x0/0x4e6 [i915]
[  161.906386]  [<ffffffff802c9531>] vfs_ioctl+0x5f/0x78
[  161.906392]  [<ffffffff802c98d7>] do_vfs_ioctl+0x38d/0x3bf
[  161.906399]  [<ffffffff80665c3d>] ? _spin_unlock+0x10/0x29
[  161.906405]  [<ffffffff802c995e>] sys_ioctl+0x55/0x77
[  161.906411]  [<ffffffff802bd80f>] ? sys_write+0x47/0x70
[  161.906419]  [<ffffffff8020b4ab>] system_call_fastpath+0x16/0x1b
[  161.906424] ---[ end trace ee409c1da0e35a16 ]---
[  161.923616] X:4968 conflicting memory types d0000000-e0000000 uncached-minus<->write-combining
[  161.923622] reserve_memtype failed 0xd0000000-0xe0000000, track uncached-minus, req write-combining
[  162.814118] BUG: unable to handle kernel paging request at 0000000003059000
[  162.814131] IP: [<ffffffffa018a2ca>] i915_gem_execbuffer+0x44c/0xa3c [i915]
[  162.814155] PGD 13a960067 PUD 1399e9067 PMD 0 
[  162.814164] Oops: 0002 [#1] PREEMPT SMP 
[  162.814173] last sysfs file: /sys/devices/virtual/backlight/acpi_video0/brightness
[  162.814181] Dumping ftrace buffer:
[  162.814186]    (ftrace buffer empty)
[  162.814189] CPU 1 
[  162.814194] Modules linked in: i915 uvcvideo snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device snd_pcm_oss snd_mixer_oss fuse coretemp snd_hda_intel sdhci_pci iwlagn compat_ioctl32 sdhci snd_pcm mmc_core iwlcore videodev snd_timer r8169 video v4l1_compat firewire_ohci snd_page_alloc hwmon snd_hwdep firewire_core output rfkill nfs nfs_acl lockd sunrpc dm_snapshot dm_mirror dm_region_hash dm_log scsi_wait_scan [last unloaded: uvcvideo]
[  162.814275] Pid: 4968, comm: X Tainted: G        W  2.6.28-rc7-git1 #2
[  162.814280] RIP: 0010:[<ffffffffa018a2ca>]  [<ffffffffa018a2ca>] i915_gem_execbuffer+0x44c/0xa3c [i915]
[  162.814300] RSP: 0018:ffff8801399fbd28  EFLAGS: 00010206
[  162.814305] RAX: 0000000003059000 RBX: ffff8801355ad9c0 RCX: 0000000003058000
[  162.814310] RDX: 0000000000000000 RSI: ffff8801378cd000 RDI: ffff88013ec84c00
[  162.814315] RBP: ffff8801399fbe18 R08: 0000000000000000 R09: 00001e0000000000
[  162.814320] R10: ffffffffffffffff R11: ffff88013552f048 R12: ffff880135418880
[  162.814325] R13: ffff880135418840 R14: ffff88013b0c8000 R15: ffff88013d9b76a0
[  162.814331] FS:  00007f1bdea74740(0000) GS:ffff88013fc03c00(0000) knlGS:0000000000000000
[  162.814337] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  162.814339] CR2: 0000000003059000 CR3: 000000013a15c000 CR4: 00000000000006a0
[  162.814339] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[  162.814339] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[  162.814339] Process X (pid: 4968, threadinfo ffff8801399fa000, task ffff88013a0f8000)
[  162.814339] Stack:
[  162.814339]  ffff8801399fbdd8 ffffffff8058f882 00000000ffffffea ffff88013e1cd880
[  162.814339]  ffff880131c89380 ffff88013d8fbef0 ffff88013b0c8028 ffff88013548dc80
[  162.814339]  0000000100000001 ffff88013d9b7680 0000000000000000 ffff8801378cd000
[  162.814339] Call Trace:
[  162.814339]  [<ffffffff8058f882>] ? sock_aio_read+0x113/0x123
[  162.814339]  [<ffffffff80665831>] ? _spin_lock+0x16/0x2e
[  162.814339]  [<ffffffff804c090a>] ? drm_gem_object_lookup+0x43/0x4f
[  162.814339]  [<ffffffff804bf5a6>] drm_ioctl+0x1d6/0x25e
[  162.814339]  [<ffffffffa0189e7e>] ? i915_gem_execbuffer+0x0/0xa3c [i915]
[  162.814339]  [<ffffffff802c9531>] vfs_ioctl+0x5f/0x78
[  162.814339]  [<ffffffff802c98d7>] do_vfs_ioctl+0x38d/0x3bf
[  162.814339]  [<ffffffff80665c3d>] ? _spin_unlock+0x10/0x29
[  162.814339]  [<ffffffff802c995e>] sys_ioctl+0x55/0x77
[  162.814339]  [<ffffffff802bda50>] ? sys_read+0x47/0x6f
[  162.814339]  [<ffffffff8020b4ab>] system_call_fastpath+0x16/0x1b
[  162.814339] Code: 55 b8 8b 4d b4 03 56 38 03 4b 38 48 89 d0 48 8b b5 68 ff ff ff 48 25 00 f0 ff ff 81 e2 ff 0f 00 00 48 03 86 a8 0e 00 00 48 01 d0 <89> 08 ba 20 00 00 00 8b 5b 38 48 8d 75 b0 48 89 5d c0 48 8b 7d 
[  162.814339] RIP  [<ffffffffa018a2ca>] i915_gem_execbuffer+0x44c/0xa3c [i915]
[  162.814339]  RSP <ffff8801399fbd28>
[  162.814339] CR2: 0000000003059000
[  162.814644] ---[ end trace ee409c1da0e35a16 ]---
Comment 2 Alexandre Rostovtsev 2008-12-04 21:28:27 UTC
Created attachment 20821 [details]
intel_reg_dumper : started GDM

(If it matters, I made one small change to my kernel config since filing the original bug report: I now compile i915 as a module instead of built-in)

This is the intel_reg_dumper output after I start GDM. X works, keyboard & mouse respond correctly, etc.
Comment 3 Alexandre Rostovtsev 2008-12-04 21:30:48 UTC
Created attachment 20822 [details]
intel_reg_dumper : switched to VT1

This is the intel_reg_dumper output after I switch the console from X to VT1.
Comment 4 Alexandre Rostovtsev 2008-12-04 21:32:24 UTC
Created attachment 20823 [details]
intel_reg_dumper : switched back to X

This is the intel_reg_dumper output after I switch the console from VT1 back to X. At this point, X is frozen, part of the screen goes grey, mouse & keyboard stop responding.
Comment 5 Alexandre Rostovtsev 2008-12-04 21:39:12 UTC
Created attachment 20824 [details]
intel_reg_dumper : rebooted, started GDM

intel_reg_dumper output after rebooting and starting GDM again. X works.
Comment 6 Alexandre Rostovtsev 2008-12-04 21:40:47 UTC
Created attachment 20825 [details]
intel_reg_dumper : resumed from suspend-to-ram

intel_reg_dumper output after suspending the laptop and then resuming. X is frozen, keyboard and mouse do not respond, part of screen is grey.
Comment 7 Keith Packard 2008-12-04 23:07:14 UTC
Please don't load vesafb and expect the intel DRI driver to work correctly, as you can see, they both attempt to manipulate the same resources.
Comment 8 Alexandre Rostovtsev 2008-12-04 23:49:02 UTC
(In reply to comment #7)
> Please don't load vesafb and expect the intel DRI driver to work correctly, as
> you can see, they both attempt to manipulate the same resources.

1. I am sorry for wasting your time, but I really had no idea that vesafb could be incompatible with the DRI driver, I had used vesafb and intel DRI on a different machine (32-bit, 915GMA graphics) for many years with no problem. Is this incompatibility something new? Is it documented anywhere?

2. What framebuffer driver should I be using?
Comment 9 Keith Packard 2008-12-05 08:30:30 UTC
There isn't any fbdev driver which is compatible with DRI; they both try to manipulate the same resources (the graphics card). It can work on occasion when you start things in the right order because the fbdev driver doesn't do anything after the system has booted. However, when trying to do things like suspend/resume, they will end up conflicting.

Once we have kernel mode setting in place, DRI will offer a frame buffer interface.
Comment 10 Peter 2009-01-06 02:39:19 UTC
Keith, but this means we should suggest our users stop using bootsplash for now (and probably even remove this bootsplash patch from Gentoo sources). Did I understand you this correctly?

(In reply to comment #9)
> Once we have kernel mode setting in place, DRI will offer a frame buffer
> interface.

Could you tell any rough estimations when this'll be available?

Thanks.