[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CA+icZUX=TTaK+vXqVxG2s-=ZO3Qy6BZrbfc1-n42cTzx=rFaGg@mail.gmail.com>
Date: Tue, 27 Dec 2016 08:42:48 +0100
From: Sedat Dilek <sedat.dilek@...il.com>
To: "Rafael J. Wysocki" <rafael.j.wysocki@...el.com>,
Daniel Vetter <daniel.vetter@...ll.ch>,
Chris Wilson <chris@...is-wilson.co.uk>,
Thomas Gleixner <tglx@...utronix.de>
Cc: intel-gfx <intel-gfx@...ts.freedesktop.org>,
Linux PM List <linux-pm@...ts.linux-foundation.org>,
LKML <linux-kernel@...r.kernel.org>,
"the arch/x86 maintainers" <x86@...nel.org>
Subject: Re: [Linux v4.10.0-rc1] call-traces after suspend-resume (pm? i915? cpu/hotplug?)
On Tue, Dec 27, 2016 at 12:09 AM, Sedat Dilek <sedat.dilek@...il.com> wrote:
> [ Add some pm | i915 | x86 folks ]
>
> Hi,
>
> I have built Linux v4.10-rc1 today on my Ubuntu/precise AMD64 system
> and I see some call-traces.
> It is reproducible on suspend and resume.
>
> I cannot say which area touches the problem or if these are several
> independent problems.
>
> For a full dmesg-log see attachments (my linux-config is attached, too).
>
> Here some hunks...
>
[...]
[ cpu/hotplug ]
I got the tglx brainfart patch and it fixes the cpu/hotplug call-trace.
[ pm? | i915? ]
I see this call-trace twice.
After booting and starting into Xorg/unity and...
[ 29.772847] BUG: sleeping function called from invalid context at
drivers/base/power/runtime.c:1032
[ 29.772853] in_atomic(): 1, irqs_disabled(): 0, pid: 1480, name: Xorg
[ 29.772856] 1 lock held by Xorg/1480:
[ 29.772857] #0: (&dev->struct_mutex){+.+.+.}, at:
[<ffffffffa0571c13>] i915_mutex_lock_interruptible+0x43/0x140 [i915]
[ 29.772898] CPU: 2 PID: 1480 Comm: Xorg Not tainted
4.10.0-rc1-2-iniza-small #1
[ 29.772899] Hardware name: SAMSUNG ELECTRONICS CO., LTD.
530U3BI/530U4BI/530U4BH/530U3BI/530U4BI/530U4BH, BIOS 13XK 03/28/2013
[ 29.772900] Call Trace:
[ 29.772907] dump_stack+0x85/0xc2
[ 29.772910] ___might_sleep+0x196/0x260
[ 29.772912] __might_sleep+0x53/0xb0
[ 29.772915] __pm_runtime_resume+0x7a/0x90
[ 29.772934] intel_runtime_pm_get+0x25/0x90 [i915]
[ 29.772954] aliasing_gtt_bind_vma+0xaa/0xf0 [i915]
[ 29.772976] i915_vma_bind+0xaf/0x1e0 [i915]
[ 29.772995] i915_gem_execbuffer_relocate_entry+0x513/0x6f0 [i915]
[ 29.772997] ? find_get_entry+0x5/0x240
[ 29.773016] i915_gem_execbuffer_relocate_vma.isra.34+0x188/0x250 [i915]
[ 29.773038] ? __i915_vma_do_pin+0x334/0x590 [i915]
[ 29.773056] ? i915_gem_execbuffer_reserve_vma.isra.31+0x152/0x1f0 [i915]
[ 29.773075] ? i915_gem_execbuffer_reserve.isra.32+0x372/0x3a0 [i915]
[ 29.773101] i915_gem_do_execbuffer.isra.38+0xa70/0x1a40 [i915]
[ 29.773105] ? __might_fault+0x4e/0xb0
[ 29.773132] i915_gem_execbuffer2+0xc5/0x260 [i915]
[ 29.773135] ? __might_fault+0x4e/0xb0
[ 29.773155] drm_ioctl+0x206/0x450 [drm]
[ 29.773182] ? i915_gem_execbuffer+0x340/0x340 [i915]
[ 29.773187] ? __fget+0x5/0x200
[ 29.773191] do_vfs_ioctl+0x91/0x6f0
[ 29.773193] ? __fget+0x111/0x200
[ 29.773195] ? __fget+0x5/0x200
[ 29.773198] SyS_ioctl+0x79/0x90
[ 29.773203] entry_SYSCALL_64_fastpath+0x23/0xc6
[ 29.773205] RIP: 0033:0x7fc6b8986bb7
[ 29.773207] RSP: 002b:00007ffc1133a418 EFLAGS: 00003202 ORIG_RAX:
0000000000000010
[ 29.773210] RAX: ffffffffffffffda RBX: 0000000000000006 RCX: 00007fc6b8986bb7
[ 29.773212] RDX: 00007ffc1133a518 RSI: 0000000040406469 RDI: 0000000000000009
[ 29.773213] RBP: 00007ffc1133a330 R08: 0000000000000040 R09: 0101010101010101
[ 29.773215] R10: 0000000000000000 R11: 0000000000003202 R12: 0000000000000008
[ 29.773216] R13: 00000000000000f5 R14: 0000000000000000 R15: 0000000000000000
After suspend/resume...
[ 153.131294] PM: resume of devices complete after 783.799 msecs
[ 153.133556] Restarting tasks ... done.
[ 154.668836] BUG: sleeping function called from invalid context at
drivers/base/power/runtime.c:1032
[ 154.668848] in_atomic(): 1, irqs_disabled(): 0, pid: 1480, name: Xorg
[ 154.668854] 1 lock held by Xorg/1480:
[ 154.668856] #0: (&dev->struct_mutex){+.+.+.}, at:
[<ffffffffa0571c13>] i915_mutex_lock_interruptible+0x43/0x140 [i915]
[ 154.668939] CPU: 2 PID: 1480 Comm: Xorg Tainted: G W
4.10.0-rc1-2-iniza-small #1
[ 154.668942] Hardware name: SAMSUNG ELECTRONICS CO., LTD.
530U3BI/530U4BI/530U4BH/530U3BI/530U4BI/530U4BH, BIOS 13XK 03/28/2013
[ 154.668945] Call Trace:
[ 154.668958] dump_stack+0x85/0xc2
[ 154.668965] ___might_sleep+0x196/0x260
[ 154.668970] __might_sleep+0x53/0xb0
[ 154.668976] __pm_runtime_resume+0x7a/0x90
[ 154.669025] intel_runtime_pm_get+0x25/0x90 [i915]
[ 154.669073] aliasing_gtt_bind_vma+0xaa/0xf0 [i915]
[ 154.669127] i915_vma_bind+0xaf/0x1e0 [i915]
[ 154.669175] i915_gem_execbuffer_relocate_entry+0x513/0x6f0 [i915]
[ 154.669181] ? free_hot_cold_page+0x1c1/0x390
[ 154.669227] i915_gem_execbuffer_relocate_vma.isra.34+0x188/0x250 [i915]
[ 154.669275] ? i915_gem_execbuffer_reserve_vma.isra.31+0x152/0x1f0 [i915]
[ 154.669318] ? i915_gem_execbuffer_reserve.isra.32+0x372/0x3a0 [i915]
[ 154.669362] i915_gem_do_execbuffer.isra.38+0xa70/0x1a40 [i915]
[ 154.669368] ? __might_fault+0x4e/0xb0
[ 154.669412] i915_gem_execbuffer2+0xc5/0x260 [i915]
[ 154.669415] ? __might_fault+0x4e/0xb0
[ 154.669443] drm_ioctl+0x206/0x450 [drm]
[ 154.669486] ? i915_gem_execbuffer+0x340/0x340 [i915]
[ 154.669493] ? __fget+0x5/0x200
[ 154.669498] do_vfs_ioctl+0x91/0x6f0
[ 154.669502] ? __fget+0x111/0x200
[ 154.669505] ? __fget+0x5/0x200
[ 154.669510] SyS_ioctl+0x79/0x90
[ 154.669518] entry_SYSCALL_64_fastpath+0x23/0xc6
[ 154.669522] RIP: 0033:0x7fc6b8986bb7
[ 154.669525] RSP: 002b:00007ffc1133a418 EFLAGS: 00003202 ORIG_RAX:
0000000000000010
[ 154.669530] RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007fc6b8986bb7
[ 154.669532] RDX: 00007ffc1133a518 RSI: 0000000040406469 RDI: 0000000000000009
[ 154.669535] RBP: 00007ffc1133a680 R08: 0000000000000040 R09: 0101010101010101
[ 154.669537] R10: 0025ebd590960000 R11: 0000000000003202 R12: 000055b0264c9260
[ 154.669540] R13: 000055b027899350 R14: 0000000000000000 R15: 00007ffc1133a880
Again I send you my dmesg-log, linux-config and patches on top of
Linux v4.10-rc1.
Thanks.
- Sedat -
View attachment "dmesg_4.10.0-rc1-2-iniza-small_after-suspend-resume.txt" of type "text/plain" (69090 bytes)
View attachment "4.10.0-rc1-2-iniza-small.patch" of type "text/x-diff" (9303 bytes)
Download attachment "config-4.10.0-rc1-2-iniza-small" of type "application/octet-stream" (139895 bytes)
Powered by blists - more mailing lists