[Intel-gfx] RT-BUG report: i915/gt/intel_breadcrumbs.c

jun.miao jun.miao at windriver.com
Wed Apr 14 01:40:06 UTC 2021


kernel version: 5.10-rt


BUG: sleeping function called from invalid context at 
kernel/locking/rtmutex.c:969
[   57.899678] in_atomic(): 0, irqs_disabled(): 1, non_block: 0, pid: 
281, name: kworker/3:3
[   57.899679] 5 locks held by kworker/3:3/281:
[   57.899681]  #0: ffff89c4c00ca970 
((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x1cf/0x6d0
[   57.899691]  #1: ffffa433c1f53e60 
((work_completion)(&engine->retire_work)){+.+.}-{0:0}, at: 
process_one_work+0x1cf/0x6d0
[   57.899696]  #2: ffff89c4ccb0a0a8 (kernel_context){+.+.}-{0:0}, at: 
engine_retire+0x62/0x110 [i915]
[   57.899795]  #3: ffff89c4cf682300 (wakeref.mutex#3){+.+.}-{0:0}, at: 
__intel_wakeref_put_last+0x20/0x60 [i915]
[   57.899866]  #4: ffff89c4ccb08398 (&b->irq_lock){+.+.}-{0:0}, at: 
intel_breadcrumbs_disarm_irq+0x20/0xd0 [i915]
[   57.899937] irq event stamp: 2126
[   57.899938] hardirqs last  enabled at (2125): [<ffffffffbb134739>] 
cancel_delayed_work+0xa9/0xc0
[   57.899942] hardirqs last disabled at (2126): [<ffffffffc0507fe6>] 
__intel_breadcrumbs_park+0x76/0x80 [i915]
[   57.900008] softirqs last  enabled at (0): [<ffffffffbb1099ce>] 
copy_process+0x63e/0x1630
[   57.900012] softirqs last disabled at (0): [<0000000000000000>] 0x0
[   57.900015] CPU: 3 PID: 281 Comm: kworker/3:3 Not tainted 
5.10.27-rt34-yocto-preempt-rt #1
[   57.900017] Hardware name: Intel(R) Client Systems 
NUC7i5DNKE/NUC7i5DNB, BIOS DNKBLi5v.86A.0064.2019.0523.1933 05/23/2019
[   57.900019] Workqueue: events engine_retire [i915]
[   57.900091] Call Trace:
[   57.900094]  show_stack+0x52/0x58
[   57.900100]  dump_stack+0x7d/0x9f
[   57.900108]  ___might_sleep.cold+0xe3/0xf4
[   57.900119]  rt_spin_lock+0x3f/0xc0
[   57.900122]  ? intel_breadcrumbs_disarm_irq+0x20/0xd0 [i915]
[   57.900192]  intel_breadcrumbs_disarm_irq+0x20/0xd0 [i915]
[   57.900264]  signal_irq_work+0x241/0x660 [i915]
[   57.900334]  ? __this_cpu_preempt_check+0x13/0x20
[   57.900339]  ? lockdep_hardirqs_off+0x106/0x120
[   57.900353]  __intel_breadcrumbs_park+0x3f/0x80 [i915]
[   57.900420]  __engine_park+0xbd/0xe0 [i915]
[   57.900490]  ____intel_wakeref_put_last+0x22/0x60 [i915]
[   57.900557]  __intel_wakeref_put_last+0x50/0x60 [i915]
[   57.900623]  intel_context_exit_engine+0x5f/0x70 [i915]
[   57.900694]  i915_request_retire+0x139/0x2d0 [i915]
[   57.900783]  engine_retire+0xb0/0x110 [i915]
[   57.900862]  process_one_work+0x26d/0x6d0
[   57.900886]  worker_thread+0x53/0x330
[   57.900897]  kthread+0x1b0/0x1d0
[   57.900901]  ? process_one_work+0x6d0/0x6d0
[   57.900903]  ? __kthread_parkme+0xc0/0xc0
[   57.900912]  ret_from_fork+0x22/0x30


Follow patch cause this bug warning:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/gpu/drm/i915/gt/intel_breadcrumbs.c?h=v5.12-rc7&id=9d5612ca165a58aacc160465532e7998b9aab270



More information about the Intel-gfx mailing list