| Summary: | [GEM 2.6.28-rc7] X freezes, warning/oops in i915 driver after resuming from suspend | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | DRI | Reporter: | Alexandre Rostovtsev <tetromino> | ||||||||||||
| Component: | DRM/other | Assignee: | Default DRI bug account <dri-devel> | ||||||||||||
| Status: | RESOLVED INVALID | QA Contact: | |||||||||||||
| Severity: | critical | ||||||||||||||
| Priority: | medium | CC: | pva | ||||||||||||
| Version: | XOrg git | ||||||||||||||
| Hardware: | x86-64 (AMD64) | ||||||||||||||
| OS: | Linux (All) | ||||||||||||||
| Whiteboard: | |||||||||||||||
| i915 platform: | i915 features: | ||||||||||||||
| Attachments: |
|
||||||||||||||
|
Description
Alexandre Rostovtsev
2008-12-04 18:47:48 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 ]--- 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.
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.
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.
Created attachment 20824 [details]
intel_reg_dumper : rebooted, started GDM
intel_reg_dumper output after rebooting and starting GDM again. X works.
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.
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. (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? 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. 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. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.