Bug 15224

Summary: i915 crash ([drm:i915_gem_do_execbuffer] *ERROR* Invalid object handle 1073741824 at index 1)
Product: Drivers Reporter: Peter Korsgaard (jacmet)
Component: Video(DRI - Intel)Assignee: drivers_video-dri-intel (drivers_video-dri-intel)
Status: CLOSED DUPLICATE    
Severity: high CC: akpm, rjw
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 2.6.33-rc6 Subsystem:
Regression: Yes Bisected commit-id:
Bug Depends on:    
Bug Blocks: 14885    
Attachments: Kernel config for 2.6.33-rc6

Description Peter Korsgaard 2010-02-04 10:15:46 UTC
Created attachment 24906 [details]
Kernel config for 2.6.33-rc6

2.6.33-rc6 crashes in i915 shortly after logging into X with the following error:
Feb  4 10:50:26 macbook kernel: [drm:i915_gem_do_execbuffer] *ERROR* Invalid object handle 1073741824 at index 1
Feb  4 10:50:26 macbook kernel: [drm:i915_gem_madvise_ioctl] *ERROR* Bad handle in i915_gem_madvise_ioctl(): 1073741824
Feb  4 10:50:28 macbook kernel: [drm:i915_gem_madvise_ioctl] *ERROR* Bad handle in i915_gem_madvise_ioctl(): 1073741824
Feb  4 10:50:28 macbook kernel: [drm:i915_gem_do_execbuffer] *ERROR* Invalid object handle 1073741824 at index 2
Feb  4 10:50:28 macbook kernel: [drm:i915_gem_do_execbuffer] *ERROR* Invalid object handle 1073741824 at index 1
Feb  4 10:50:28 macbook kernel: [drm:i915_gem_do_execbuffer] *ERROR* Invalid object handle 1073741824 at index 1
Feb  4 10:50:28 macbook kernel: [drm:i915_gem_do_execbuffer] *ERROR* Invalid object handle 1073741824 at index 3
Feb  4 10:50:28 macbook kernel: BUG: unable to handle kernel paging request at 0000000040000080
Feb  4 10:50:28 macbook kernel: IP: [<ffffffff811a5975>] i915_gem_do_execbuffer+0xd30/0xefe
Feb  4 10:50:28 macbook kernel: PGD 7cb35067 PUD 0 
Feb  4 10:50:28 macbook kernel: Oops: 0000 [#1] SMP 
Feb  4 10:50:28 macbook kernel: last sysfs file: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0003:00/power_supply/ADP1/online
Feb  4 10:50:28 macbook kernel: CPU 0 
Feb  4 10:50:28 macbook kernel: Pid: 2229, comm: Xorg Not tainted 2.6.33-rc6 #1 Mac-F4208CAA/MacBook2,1
Feb  4 10:50:28 macbook kernel: RIP: 0010:[<ffffffff811a5975>]  [<ffffffff811a5975>] i915_gem_do_execbuffer+0xd30/0xefe
Feb  4 10:50:28 macbook kernel: RSP: 0018:ffff88007bfd1c28  EFLAGS: 00010206
Feb  4 10:50:28 macbook kernel: RAX: ffff8800709bc920 RBX: 00000000fffffff7 RCX: 00000000ffffffff
Feb  4 10:50:28 macbook kernel: RDX: 0000000040000000 RSI: 0000000000000040 RDI: 0000000000000000
Feb  4 10:50:28 macbook kernel: RBP: ffff88007bfd1d38 R08: 00000000ffffffff R09: ffffffff816eec30
Feb  4 10:50:28 macbook kernel: R10: ffffffff816ee830 R11: ffffffff816ee830 R12: 0000000000000004
Feb  4 10:50:28 macbook kernel: R13: ffff8800709bc900 R14: 0000000000000000 R15: ffff8800709bc900
Feb  4 10:50:28 macbook kernel: FS:  00007fc1723ee790(0000) GS:ffff880001800000(0000) knlGS:0000000000000000
Feb  4 10:50:28 macbook kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Feb  4 10:50:28 macbook kernel: CR2: 0000000040000080 CR3: 000000007cbe2000 CR4: 00000000000006b0
Feb  4 10:50:28 macbook kernel: DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
Feb  4 10:50:28 macbook kernel: DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Feb  4 10:50:28 macbook kernel: Process Xorg (pid: 2229, threadinfo ffff88007bfd0000, task ffff88007bde3280)
Feb  4 10:50:28 macbook kernel: Stack:
Feb  4 10:50:28 macbook kernel: 0000000000000092 0000000000000004 0000000000000100 0000000000000004
Feb  4 10:50:28 macbook kernel: <0> ffff88007b3f64a8 ffff880000000005 ffff88007cc98000 ffff88007ccb0000
Feb  4 10:50:28 macbook kernel: <0> ffff88007b3f6400 ffff880000000000 0000000000000000 ffff88007de17820
Feb  4 10:50:28 macbook kernel: Call Trace:
Feb  4 10:50:28 macbook kernel: [<ffffffff811a22f8>] ? i915_do_wait_request+0x294/0x2a5
Feb  4 10:50:28 macbook kernel: [<ffffffff811a5faa>] ? i915_gem_execbuffer+0x2a7/0x38a
Feb  4 10:50:28 macbook kernel: [<ffffffff811a5d03>] ? i915_gem_execbuffer+0x0/0x38a
Feb  4 10:50:28 macbook kernel: [<ffffffff8118ad5b>] ? drm_ioctl+0x245/0x300
Feb  4 10:50:28 macbook kernel: [<ffffffff810803ba>] ? __slab_free+0x58/0xb3
Feb  4 10:50:28 macbook kernel: [<ffffffff8109045a>] ? vfs_ioctl+0x23/0x93
Feb  4 10:50:28 macbook kernel: [<ffffffff810909c7>] ? do_vfs_ioctl+0x47a/0x4be
Feb  4 10:50:28 macbook kernel: [<ffffffff81074752>] ? remove_vma+0x5b/0x63
Feb  4 10:50:28 macbook kernel: [<ffffffff81114036>] ? __up_write+0x21/0x12c
Feb  4 10:50:28 macbook kernel: [<ffffffff81090a47>] ? sys_ioctl+0x3c/0x5c
Feb  4 10:50:28 macbook kernel: [<ffffffff81001e6b>] ? system_call_fastpath+0x16/0x1b
Feb  4 10:50:28 macbook kernel: Code: 49 8b 7d 00 41 ff c4 e8 bf be ff ff 49 83 c5 08 44 3b 64 24 48 7c e9 45 31 e4 eb 37 49 63 c4 49 8d 04 c7 48 8b 10 48 85 d2 74 11 <48> 8b 92 80 00 00 00 c7 82 a0 00 00 00 00 00 00 00 48 8b 38 48 
Feb  4 10:50:28 macbook kernel: RIP  [<ffffffff811a5975>] i915_gem_do_execbuffer+0xd30/0xefe
Feb  4 10:50:28 macbook kernel: RSP <ffff88007bfd1c28>
Feb  4 10:50:28 macbook kernel: CR2: 0000000040000080
Feb  4 10:50:28 macbook kernel: ---[ end trace cc27397cd079c388 ]---

dpkg -l \*intel\*|grep ii|cut -c-80                   
ii  libdrm-intel1                           2.4.15-1  
ii  xserver-xorg-video-intel                2:2.9.1-2

Same userspace works stable with 2.6.32.7 (similar config)

See attachment for kernel .config
Comment 1 Andrew Morton 2010-02-04 19:03:54 UTC
Thanks, marked as a regression (post-2.6.32)
Comment 2 Rafael J. Wysocki 2010-02-04 19:34:40 UTC

*** This bug has been marked as a duplicate of bug 14 ***
Comment 3 Rafael J. Wysocki 2010-02-04 19:35:01 UTC

*** This bug has been marked as a duplicate of bug 15114 ***