PRT support for amdgpu v3

Nicolai Hähnle nhaehnle at gmail.com
Sun Feb 12 11:36:50 UTC 2017


Hi,

Some more testing uncovered a bug in cleanup paths. When the application 
segfaults while PRT mappings exist, I get a WARN_ON (which seems fairly 
straightforward) and occasionally also an RCU error warning -- see the 
attached dmesg logs.

Regular application shutdown works fine, though.

Cheers,
Nicolai

On 08.02.2017 16:04, Christian König wrote:
> Hi guys,
>
> ok I finally found time to write an unit test for this and hammered out the last few bugs.
>
> Seems to work fine on my Tonga now. Please note that this set is based on "fix race in GEM VA map IOCTL v2", without that patch you will run into a NULL pointer dereference during PRT mapping.
>
> Going to send out the unit test in a minute.
>
> Regards,
> Christian.
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
>

-------------- next part --------------
Feb 12 12:07:46 cassiopeia kernel: [36172.512767] arb_sparse_buff[15881]: segfault at 10 ip 00007f295fdda14a sp 00007ffce6dd2860 error 4 in radeonsi_dri.so[7f295f57e000+b54000]
Feb 12 12:07:46 cassiopeia kernel: [36172.688430] ------------[ cut here ]------------
Feb 12 12:07:46 cassiopeia kernel: [36172.688689] WARNING: CPU: 3 PID: 15886 at drivers/gpu/drm/amd/amdgpu/amdgpu_object.c:1000 amdgpu_bo_gpu_offset+0xe0/0x1d0 [amdgpu]
Feb 12 12:07:46 cassiopeia kernel: [36172.688692] Modules linked in: snd_usb_audio snd_usbmidi_lib btrfs xor raid6_pq binfmt_misc edac_mce_amd edac_core nls_iso8859_1 dm_crypt kvm_amd kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel input_leds joydev aesni_intel aes_x86_64 glue_helper lrw gf128mul ablk_helper cryptd snd_hda_codec_realtek snd_hda_codec_generic serio_raw snd_hda_codec_hdmi fam15h_power snd_hda_intel snd_hda_codec k10temp snd_hda_core snd_hwdep snd_pcm i2c_piix4 snd_seq_midi snd_seq_midi_event snd_rawmidi snd_seq snd_seq_device snd_timer snd soundcore tpm_infineon eeepc_wmi asus_wmi video mac_hid sparse_keymap mxm_wmi shpchp wmi parport_pc ppdev lp parport autofs4 amdkfd amd_iommu_v2 amdgpu i2c_algo_bit drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops psmouse ttm drm ahci r8169 libahci mii fjes
Feb 12 12:07:46 cassiopeia kernel: [36172.688896]  hid_generic usbhid hid
Feb 12 12:07:46 cassiopeia kernel: [36172.688915] CPU: 3 PID: 15886 Comm: si_shader:3 Tainted: G    B           4.9.0-amd-staging-4.9-prt #133
Feb 12 12:07:46 cassiopeia kernel: [36172.688920] Hardware name: To be filled by O.E.M. To be filled by O.E.M./M5A97 LE R2.0, BIOS 2601 03/24/2015
Feb 12 12:07:46 cassiopeia kernel: [36172.688925]  ffff8804d952f3e0 ffffffffa06b93a7 0000000000000000 0000000000000000
Feb 12 12:07:46 cassiopeia kernel: [36172.688940]  ffff8804d952f428 ffffffffa00d25b1 ffff880560a06440 000003e800000000
Feb 12 12:07:46 cassiopeia kernel: [36172.688953]  ffff88065d4dd468 ffff88065d4dd51c ffff88065d4dcd28 0000000000001fff
Feb 12 12:07:46 cassiopeia kernel: [36172.688966] Call Trace:
Feb 12 12:07:46 cassiopeia kernel: [36172.688980]  [<ffffffffa06b93a7>] dump_stack+0x86/0xcf
Feb 12 12:07:46 cassiopeia kernel: [36172.688991]  [<ffffffffa00d25b1>] __warn+0x111/0x130
Feb 12 12:07:46 cassiopeia kernel: [36172.689002]  [<ffffffffa00d279d>] warn_slowpath_null+0x1d/0x20
Feb 12 12:07:46 cassiopeia kernel: [36172.689234]  [<ffffffffc0505d70>] amdgpu_bo_gpu_offset+0xe0/0x1d0 [amdgpu]
Feb 12 12:07:46 cassiopeia kernel: [36172.689474]  [<ffffffffc052a073>] amdgpu_vm_update_ptes.isra.9+0x103/0x2c0 [amdgpu]
Feb 12 12:07:46 cassiopeia kernel: [36172.689484]  [<ffffffffa035b6f5>] ? kmem_cache_alloc+0x195/0x270
Feb 12 12:07:46 cassiopeia kernel: [36172.689723]  [<ffffffffc052a351>] amdgpu_vm_frag_ptes+0x121/0x140 [amdgpu]
Feb 12 12:07:46 cassiopeia kernel: [36172.689963]  [<ffffffffc052abf6>] amdgpu_vm_bo_split_mapping+0x7d6/0xa00 [amdgpu]
Feb 12 12:07:46 cassiopeia kernel: [36172.689974]  [<ffffffffa00db778>] ? do_group_exit+0x98/0x160
Feb 12 12:07:46 cassiopeia kernel: [36172.690213]  [<ffffffffc052a420>] ? amdgpu_vm_free_mapping.isra.10+0xb0/0xb0 [amdgpu]
Feb 12 12:07:46 cassiopeia kernel: [36172.690221]  [<ffffffffa00f0b49>] ? get_signal+0x3a9/0xb90
Feb 12 12:07:46 cassiopeia kernel: [36172.690230]  [<ffffffffa015fa06>] ? trace_hardirqs_on_caller+0x16/0x280
Feb 12 12:07:46 cassiopeia kernel: [36172.690238]  [<ffffffffa015fc7d>] ? trace_hardirqs_on+0xd/0x10
Feb 12 12:07:46 cassiopeia kernel: [36172.690487]  [<ffffffffc0529d10>] ? amdgpu_vm_do_copy_ptes+0x1c0/0x1c0 [amdgpu]
Feb 12 12:07:46 cassiopeia kernel: [36172.690496]  [<ffffffffa035d03a>] ? kfree+0xea/0x2a0
Feb 12 12:07:46 cassiopeia kernel: [36172.690736]  [<ffffffffc052d83a>] amdgpu_vm_clear_freed+0x11a/0x200 [amdgpu]
Feb 12 12:07:46 cassiopeia kernel: [36172.690976]  [<ffffffffc052d720>] ? amdgpu_vm_bo_update+0x750/0x750 [amdgpu]
Feb 12 12:07:46 cassiopeia kernel: [36172.690986]  [<ffffffffa0360d99>] ? kasan_slab_free+0x89/0xc0
Feb 12 12:07:46 cassiopeia kernel: [36172.691225]  [<ffffffffc052f289>] ? amdgpu_vm_fini+0x259/0x430 [amdgpu]
Feb 12 12:07:46 cassiopeia kernel: [36172.691464]  [<ffffffffc052f2bc>] amdgpu_vm_fini+0x28c/0x430 [amdgpu]
Feb 12 12:07:46 cassiopeia kernel: [36172.691716]  [<ffffffffc052f030>] ? amdgpu_vm_init+0x4d0/0x4d0 [amdgpu]
Feb 12 12:07:46 cassiopeia kernel: [36172.691975]  [<ffffffffc04eb053>] amdgpu_driver_postclose_kms+0x233/0x3b0 [amdgpu]
Feb 12 12:07:46 cassiopeia kernel: [36172.691987]  [<ffffffffa06bb010>] ? idr_layer_rcu_free+0x20/0x20
Feb 12 12:07:46 cassiopeia kernel: [36172.692216]  [<ffffffffc04eae20>] ? amdgpu_driver_open_kms+0x1e0/0x1e0 [amdgpu]
Feb 12 12:07:46 cassiopeia kernel: [36172.692226]  [<ffffffffa0e0594e>] ? mutex_unlock+0xe/0x10
Feb 12 12:07:46 cassiopeia kernel: [36172.692313]  [<ffffffffc0330a92>] ? drm_master_release+0xf2/0x230 [drm]
Feb 12 12:07:46 cassiopeia kernel: [36172.692395]  [<ffffffffc0337892>] drm_release+0x432/0x5c0 [drm]
Feb 12 12:07:46 cassiopeia kernel: [36172.692406]  [<ffffffffa039d1a7>] __fput+0x177/0x350
Feb 12 12:07:46 cassiopeia kernel: [36172.692415]  [<ffffffffa039d3ce>] ____fput+0xe/0x10
Feb 12 12:07:46 cassiopeia kernel: [36172.692423]  [<ffffffffa010b2d0>] task_work_run+0xa0/0xc0
Feb 12 12:07:46 cassiopeia kernel: [36172.692431]  [<ffffffffa00da7ed>] do_exit+0x48d/0x1320
Feb 12 12:07:46 cassiopeia kernel: [36172.692440]  [<ffffffffa0160190>] ? debug_check_no_locks_freed+0x1c0/0x1c0
Feb 12 12:07:46 cassiopeia kernel: [36172.692449]  [<ffffffffa00da360>] ? mm_update_next_owner+0x330/0x330
Feb 12 12:07:46 cassiopeia kernel: [36172.692456]  [<ffffffffa0361ea4>] ? qlist_free_all+0x34/0xc0
Feb 12 12:07:46 cassiopeia kernel: [36172.692464]  [<ffffffffa035c6dd>] ? __slab_free+0x1ed/0x340
Feb 12 12:07:46 cassiopeia kernel: [36172.692473]  [<ffffffffa035ea07>] ? ___cache_free+0x97/0xb0
Feb 12 12:07:46 cassiopeia kernel: [36172.692480]  [<ffffffffa0361eb9>] ? qlist_free_all+0x49/0xc0
Feb 12 12:07:46 cassiopeia kernel: [36172.692487]  [<ffffffffa0362306>] ? quarantine_reduce+0x1a6/0x1e0
Feb 12 12:07:46 cassiopeia kernel: [36172.692495]  [<ffffffffa03607da>] ? kasan_kmalloc+0xca/0xe0
Feb 12 12:07:46 cassiopeia kernel: [36172.692504]  [<ffffffffa035b8d8>] ? kmem_cache_alloc_node+0x108/0x290
Feb 12 12:07:46 cassiopeia kernel: [36172.692512]  [<ffffffffa0c0ec6e>] ? __alloc_skb+0xae/0x310
Feb 12 12:07:46 cassiopeia kernel: [36172.692519]  [<ffffffffa0c0fcb7>] ? alloc_skb_with_frags+0x77/0x2b0
Feb 12 12:07:46 cassiopeia kernel: [36172.692528]  [<ffffffffa01899e6>] ? debug_lockdep_rcu_enabled+0x26/0x40
Feb 12 12:07:46 cassiopeia kernel: [36172.692537]  [<ffffffffa00db778>] do_group_exit+0x98/0x160
Feb 12 12:07:46 cassiopeia kernel: [36172.692545]  [<ffffffffa00f0b49>] get_signal+0x3a9/0xb90
Feb 12 12:07:46 cassiopeia kernel: [36172.692556]  [<ffffffffa004f41b>] do_signal+0x8b/0xc50
Feb 12 12:07:46 cassiopeia kernel: [36172.692564]  [<ffffffffa0160190>] ? debug_check_no_locks_freed+0x1c0/0x1c0
Feb 12 12:07:46 cassiopeia kernel: [36172.692573]  [<ffffffffa004f390>] ? setup_sigcontext+0x280/0x280
Feb 12 12:07:46 cassiopeia kernel: [36172.692582]  [<ffffffffa01899e6>] ? debug_lockdep_rcu_enabled+0x26/0x40
Feb 12 12:07:46 cassiopeia kernel: [36172.692590]  [<ffffffffa03a624e>] ? __set_task_comm+0x2e/0x190
Feb 12 12:07:46 cassiopeia kernel: [36172.692600]  [<ffffffffa092e010>] ? proc_ptrace_connector+0x1d0/0x1d0
Feb 12 12:07:46 cassiopeia kernel: [36172.692608]  [<ffffffffa01bfe33>] ? SyS_futex+0xe3/0x280
Feb 12 12:07:46 cassiopeia kernel: [36172.692615]  [<ffffffffa03a6293>] ? __set_task_comm+0x73/0x190
Feb 12 12:07:46 cassiopeia kernel: [36172.692623]  [<ffffffffa01bfd50>] ? do_futex+0x1030/0x1030
Feb 12 12:07:46 cassiopeia kernel: [36172.692631]  [<ffffffffa00fb255>] ? SyS_prctl+0x145/0x700
Feb 12 12:07:46 cassiopeia kernel: [36172.692641]  [<ffffffffa0004511>] exit_to_usermode_loop+0x91/0xe0
Feb 12 12:07:46 cassiopeia kernel: [36172.692650]  [<ffffffffa0005880>] syscall_return_slowpath+0x110/0x120
Feb 12 12:07:46 cassiopeia kernel: [36172.692658]  [<ffffffffa0e0a926>] entry_SYSCALL_64_fastpath+0xc4/0xc6
Feb 12 12:07:46 cassiopeia kernel: [36172.692741] ---[ end trace 3894dbe499888456 ]---
-------------- next part --------------
Feb 12 12:15:54 cassiopeia kernel: [  160.750710] arb_sparse_buff[3979]: segfault at 10 ip 00007f328a71e14a sp 00007fffad17e090 error 4 in radeonsi_dri.so[7f3289ec2000+b54000]
Feb 12 12:15:55 cassiopeia kernel: [  160.957647] 
Feb 12 12:15:55 cassiopeia kernel: [  160.957653] ===============================
Feb 12 12:15:55 cassiopeia kernel: [  160.957656] [ INFO: suspicious RCU usage. ]
Feb 12 12:15:55 cassiopeia kernel: [  160.957660] 4.9.0-amd-staging-4.9-prt #133 Not tainted
Feb 12 12:15:55 cassiopeia kernel: [  160.957662] -------------------------------
Feb 12 12:15:55 cassiopeia kernel: [  160.957666] ./include/linux/reservation.h:162 suspicious rcu_dereference_protected() usage!
Feb 12 12:15:55 cassiopeia kernel: [  160.957668] 
Feb 12 12:15:55 cassiopeia kernel: [  160.957668] other info that might help us debug this:
Feb 12 12:15:55 cassiopeia kernel: [  160.957668] 
Feb 12 12:15:55 cassiopeia kernel: [  160.957672] 
Feb 12 12:15:55 cassiopeia kernel: [  160.957672] rcu_scheduler_active = 1, debug_locks = 0
Feb 12 12:15:55 cassiopeia kernel: [  160.957676] 1 lock held by arb_sparse_buff/3979:
Feb 12 12:15:55 cassiopeia kernel: [  160.957679]  #0:  (drm_global_mutex){+.+.+.}, at: [<ffffffffc03774c6>] drm_release+0x66/0x5c0 [drm]
Feb 12 12:15:55 cassiopeia kernel: [  160.957723] 
Feb 12 12:15:55 cassiopeia kernel: [  160.957723] stack backtrace:
Feb 12 12:15:55 cassiopeia kernel: [  160.957728] CPU: 5 PID: 3979 Comm: arb_sparse_buff Not tainted 4.9.0-amd-staging-4.9-prt #133
Feb 12 12:15:55 cassiopeia kernel: [  160.957732] Hardware name: To be filled by O.E.M. To be filled by O.E.M./M5A97 LE R2.0, BIOS 2601 03/24/2015
Feb 12 12:15:55 cassiopeia kernel: [  160.957735]  ffff88067c4df4c0 ffffffffa66b93a7 ffff88069bf8cb40 0000000000000001
Feb 12 12:15:55 cassiopeia kernel: [  160.957742]  ffff88067c4df4f0 ffffffffa615dbdf ffff8806dd1ae948 0000000000000000
Feb 12 12:15:55 cassiopeia kernel: [  160.957748]  ffff8807064f0000 0000000000000000 ffff88067c4df550 ffffffffc0534119
Feb 12 12:15:55 cassiopeia kernel: [  160.957753] Call Trace:
Feb 12 12:15:55 cassiopeia kernel: [  160.957761]  [<ffffffffa66b93a7>] dump_stack+0x86/0xcf
Feb 12 12:15:55 cassiopeia kernel: [  160.957767]  [<ffffffffa615dbdf>] lockdep_rcu_suspicious+0xef/0x120
Feb 12 12:15:55 cassiopeia kernel: [  160.957895]  [<ffffffffc0534119>] amdgpu_sync_resv+0x2e9/0x300 [amdgpu]
Feb 12 12:15:55 cassiopeia kernel: [  160.957989]  [<ffffffffc05f6455>] ? amdgpu_job_alloc_with_ib+0x65/0x90 [amdgpu]
Feb 12 12:15:55 cassiopeia kernel: [  160.958073]  [<ffffffffc052a848>] amdgpu_vm_bo_split_mapping+0x428/0xa00 [amdgpu]
Feb 12 12:15:55 cassiopeia kernel: [  160.958079]  [<ffffffffa60db778>] ? do_group_exit+0x98/0x160
Feb 12 12:15:55 cassiopeia kernel: [  160.958162]  [<ffffffffc052a420>] ? amdgpu_vm_free_mapping.isra.10+0xb0/0xb0 [amdgpu]
Feb 12 12:15:55 cassiopeia kernel: [  160.958167]  [<ffffffffa615fb77>] ? trace_hardirqs_on_caller+0x187/0x280
Feb 12 12:15:55 cassiopeia kernel: [  160.958171]  [<ffffffffa615fc7d>] ? trace_hardirqs_on+0xd/0x10
Feb 12 12:15:55 cassiopeia kernel: [  160.958174]  [<ffffffffa615f1ec>] ? mark_lock+0xcc/0x810
Feb 12 12:15:55 cassiopeia kernel: [  160.958257]  [<ffffffffc0529d10>] ? amdgpu_vm_do_copy_ptes+0x1c0/0x1c0 [amdgpu]
Feb 12 12:15:55 cassiopeia kernel: [  160.958261]  [<ffffffffa615f9be>] ? mark_held_locks+0x8e/0xc0
Feb 12 12:15:55 cassiopeia kernel: [  160.958266]  [<ffffffffa6362103>] ? quarantine_put+0xd3/0x130
Feb 12 12:15:55 cassiopeia kernel: [  160.958350]  [<ffffffffc052d83a>] amdgpu_vm_clear_freed+0x11a/0x200 [amdgpu]
Feb 12 12:15:55 cassiopeia kernel: [  160.958433]  [<ffffffffc052d720>] ? amdgpu_vm_bo_update+0x750/0x750 [amdgpu]
Feb 12 12:15:55 cassiopeia kernel: [  160.958438]  [<ffffffffa6360d99>] ? kasan_slab_free+0x89/0xc0
Feb 12 12:15:55 cassiopeia kernel: [  160.958520]  [<ffffffffc052f289>] ? amdgpu_vm_fini+0x259/0x430 [amdgpu]
Feb 12 12:15:55 cassiopeia kernel: [  160.958603]  [<ffffffffc052f2bc>] amdgpu_vm_fini+0x28c/0x430 [amdgpu]
Feb 12 12:15:55 cassiopeia kernel: [  160.958686]  [<ffffffffc052f030>] ? amdgpu_vm_init+0x4d0/0x4d0 [amdgpu]
Feb 12 12:15:55 cassiopeia kernel: [  160.958765]  [<ffffffffc04eb053>] amdgpu_driver_postclose_kms+0x233/0x3b0 [amdgpu]
Feb 12 12:15:55 cassiopeia kernel: [  160.958770]  [<ffffffffa66bb010>] ? idr_layer_rcu_free+0x20/0x20
Feb 12 12:15:55 cassiopeia kernel: [  160.958849]  [<ffffffffc04eae20>] ? amdgpu_driver_open_kms+0x1e0/0x1e0 [amdgpu]
Feb 12 12:15:55 cassiopeia kernel: [  160.958854]  [<ffffffffa6e0594e>] ? mutex_unlock+0xe/0x10
Feb 12 12:15:55 cassiopeia kernel: [  160.958882]  [<ffffffffc0370a92>] ? drm_master_release+0xf2/0x230 [drm]
Feb 12 12:15:55 cassiopeia kernel: [  160.958911]  [<ffffffffc0377892>] drm_release+0x432/0x5c0 [drm]
Feb 12 12:15:55 cassiopeia kernel: [  160.958916]  [<ffffffffa639d1a7>] __fput+0x177/0x350
Feb 12 12:15:55 cassiopeia kernel: [  160.958921]  [<ffffffffa639d3ce>] ____fput+0xe/0x10
Feb 12 12:15:55 cassiopeia kernel: [  160.958925]  [<ffffffffa610b2d0>] task_work_run+0xa0/0xc0
Feb 12 12:15:55 cassiopeia kernel: [  160.958929]  [<ffffffffa60da7ed>] do_exit+0x48d/0x1320
Feb 12 12:15:55 cassiopeia kernel: [  160.958933]  [<ffffffffa6160190>] ? debug_check_no_locks_freed+0x1c0/0x1c0
Feb 12 12:15:55 cassiopeia kernel: [  160.958937]  [<ffffffffa60da360>] ? mm_update_next_owner+0x330/0x330
Feb 12 12:15:55 cassiopeia kernel: [  160.958942]  [<ffffffffa6189af6>] ? rcu_read_lock_sched_held+0x76/0x80
Feb 12 12:15:55 cassiopeia kernel: [  160.958946]  [<ffffffffa61899aa>] ? debug_lockdep_rcu_enabled.part.4+0x1a/0x30
Feb 12 12:15:55 cassiopeia kernel: [  160.958951]  [<ffffffffa60db778>] do_group_exit+0x98/0x160
Feb 12 12:15:55 cassiopeia kernel: [  160.958955]  [<ffffffffa60f0b49>] get_signal+0x3a9/0xb90
Feb 12 12:15:55 cassiopeia kernel: [  160.958959]  [<ffffffffa60ee00f>] ? force_sig_info+0x14f/0x170
Feb 12 12:15:55 cassiopeia kernel: [  160.958964]  [<ffffffffa604f41b>] do_signal+0x8b/0xc50
Feb 12 12:15:55 cassiopeia kernel: [  160.958968]  [<ffffffffa6178f6e>] ? vprintk_default+0x3e/0x60
Feb 12 12:15:55 cassiopeia kernel: [  160.958973]  [<ffffffffa62b56ee>] ? printk+0xa1/0xc8
Feb 12 12:15:55 cassiopeia kernel: [  160.958977]  [<ffffffffa604f390>] ? setup_sigcontext+0x280/0x280
Feb 12 12:15:55 cassiopeia kernel: [  160.958981]  [<ffffffffa615996f>] ? up_read+0x1f/0x40
Feb 12 12:15:55 cassiopeia kernel: [  160.958985]  [<ffffffffa6178f6e>] ? vprintk_default+0x3e/0x60
Feb 12 12:15:55 cassiopeia kernel: [  160.958989]  [<ffffffffa615f953>] ? mark_held_locks+0x23/0xc0
Feb 12 12:15:55 cassiopeia kernel: [  160.958994]  [<ffffffffa60044e6>] ? exit_to_usermode_loop+0x66/0xe0
Feb 12 12:15:55 cassiopeia kernel: [  160.958998]  [<ffffffffa6004511>] exit_to_usermode_loop+0x91/0xe0
Feb 12 12:15:55 cassiopeia kernel: [  160.959002]  [<ffffffffa600575f>] prepare_exit_to_usermode+0x7f/0x90
Feb 12 12:15:55 cassiopeia kernel: [  160.959006]  [<ffffffffa6e0b274>] retint_user+0x8/0x20
Feb 12 12:15:55 cassiopeia kernel: [  160.959024] ------------[ cut here ]------------
Feb 12 12:15:55 cassiopeia kernel: [  160.959108] WARNING: CPU: 5 PID: 3979 at drivers/gpu/drm/amd/amdgpu/amdgpu_object.c:1000 amdgpu_bo_gpu_offset+0xe0/0x1d0 [amdgpu]
Feb 12 12:15:55 cassiopeia kernel: [  160.959111] Modules linked in: joydev input_leds hid_generic usbhid hid binfmt_misc nls_iso8859_1 edac_mce_amd edac_core dm_crypt kvm_amd kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel aesni_intel aes_x86_64 glue_helper lrw gf128mul ablk_helper cryptd serio_raw snd_hda_codec_realtek k10temp fam15h_power snd_hda_codec_generic eeepc_wmi asus_wmi video sparse_keymap snd_hda_codec_hdmi i2c_piix4 snd_hda_intel mxm_wmi snd_hda_codec snd_hda_core snd_hwdep snd_pcm snd_seq_midi snd_seq_midi_event snd_rawmidi tpm_infineon snd_seq snd_seq_device snd_timer mac_hid snd soundcore wmi shpchp parport_pc ppdev lp parport autofs4 amdkfd amd_iommu_v2 amdgpu i2c_algo_bit drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops psmouse ttm drm ahci libahci r8169 mii fjes
Feb 12 12:15:55 cassiopeia kernel: [  160.959196] CPU: 5 PID: 3979 Comm: arb_sparse_buff Not tainted 4.9.0-amd-staging-4.9-prt #133
Feb 12 12:15:55 cassiopeia kernel: [  160.959200] Hardware name: To be filled by O.E.M. To be filled by O.E.M./M5A97 LE R2.0, BIOS 2601 03/24/2015
Feb 12 12:15:55 cassiopeia kernel: [  160.959202]  ffff88067c4df3e0 ffffffffa66b93a7 0000000000000000 0000000000000000
Feb 12 12:15:55 cassiopeia kernel: [  160.959208]  ffff88067c4df428 ffffffffa60d25b1 ffff88069bf8cb40 000003e800000000
Feb 12 12:15:55 cassiopeia kernel: [  160.959214]  ffff8806dd1ac1a8 ffff8806dd1ac25c ffff8806dd1ae948 0000000000001fff
Feb 12 12:15:55 cassiopeia kernel: [  160.959219] Call Trace:
Feb 12 12:15:55 cassiopeia kernel: [  160.959224]  [<ffffffffa66b93a7>] dump_stack+0x86/0xcf
Feb 12 12:15:55 cassiopeia kernel: [  160.959229]  [<ffffffffa60d25b1>] __warn+0x111/0x130
Feb 12 12:15:55 cassiopeia kernel: [  160.959234]  [<ffffffffa60d279d>] warn_slowpath_null+0x1d/0x20
Feb 12 12:15:55 cassiopeia kernel: [  160.959316]  [<ffffffffc0505d70>] amdgpu_bo_gpu_offset+0xe0/0x1d0 [amdgpu]
Feb 12 12:15:55 cassiopeia kernel: [  160.959401]  [<ffffffffc052a073>] amdgpu_vm_update_ptes.isra.9+0x103/0x2c0 [amdgpu]
Feb 12 12:15:55 cassiopeia kernel: [  160.959416]  [<ffffffffa635b6f5>] ? kmem_cache_alloc+0x195/0x270
Feb 12 12:15:55 cassiopeia kernel: [  160.959511]  [<ffffffffc052a351>] amdgpu_vm_frag_ptes+0x121/0x140 [amdgpu]
Feb 12 12:15:55 cassiopeia kernel: [  160.959597]  [<ffffffffc052abf6>] amdgpu_vm_bo_split_mapping+0x7d6/0xa00 [amdgpu]
Feb 12 12:15:55 cassiopeia kernel: [  160.959602]  [<ffffffffa60db778>] ? do_group_exit+0x98/0x160
Feb 12 12:15:55 cassiopeia kernel: [  160.959687]  [<ffffffffc052a420>] ? amdgpu_vm_free_mapping.isra.10+0xb0/0xb0 [amdgpu]
Feb 12 12:15:55 cassiopeia kernel: [  160.959691]  [<ffffffffa615fb77>] ? trace_hardirqs_on_caller+0x187/0x280
Feb 12 12:15:55 cassiopeia kernel: [  160.959695]  [<ffffffffa615fc7d>] ? trace_hardirqs_on+0xd/0x10
Feb 12 12:15:55 cassiopeia kernel: [  160.959699]  [<ffffffffa615f1ec>] ? mark_lock+0xcc/0x810
Feb 12 12:15:55 cassiopeia kernel: [  160.959783]  [<ffffffffc0529d10>] ? amdgpu_vm_do_copy_ptes+0x1c0/0x1c0 [amdgpu]
Feb 12 12:15:55 cassiopeia kernel: [  160.959787]  [<ffffffffa615f9be>] ? mark_held_locks+0x8e/0xc0
Feb 12 12:15:55 cassiopeia kernel: [  160.959791]  [<ffffffffa6362103>] ? quarantine_put+0xd3/0x130
Feb 12 12:15:55 cassiopeia kernel: [  160.959876]  [<ffffffffc052d83a>] amdgpu_vm_clear_freed+0x11a/0x200 [amdgpu]
Feb 12 12:15:55 cassiopeia kernel: [  160.959961]  [<ffffffffc052d720>] ? amdgpu_vm_bo_update+0x750/0x750 [amdgpu]
Feb 12 12:15:55 cassiopeia kernel: [  160.959965]  [<ffffffffa6360d99>] ? kasan_slab_free+0x89/0xc0
Feb 12 12:15:55 cassiopeia kernel: [  160.960050]  [<ffffffffc052f289>] ? amdgpu_vm_fini+0x259/0x430 [amdgpu]
Feb 12 12:15:55 cassiopeia kernel: [  160.960135]  [<ffffffffc052f2bc>] amdgpu_vm_fini+0x28c/0x430 [amdgpu]
Feb 12 12:15:55 cassiopeia kernel: [  160.960220]  [<ffffffffc052f030>] ? amdgpu_vm_init+0x4d0/0x4d0 [amdgpu]
Feb 12 12:15:55 cassiopeia kernel: [  160.960301]  [<ffffffffc04eb053>] amdgpu_driver_postclose_kms+0x233/0x3b0 [amdgpu]
Feb 12 12:15:55 cassiopeia kernel: [  160.960306]  [<ffffffffa66bb010>] ? idr_layer_rcu_free+0x20/0x20
Feb 12 12:15:55 cassiopeia kernel: [  160.960387]  [<ffffffffc04eae20>] ? amdgpu_driver_open_kms+0x1e0/0x1e0 [amdgpu]
Feb 12 12:15:55 cassiopeia kernel: [  160.960391]  [<ffffffffa6e0594e>] ? mutex_unlock+0xe/0x10
Feb 12 12:15:55 cassiopeia kernel: [  160.960420]  [<ffffffffc0370a92>] ? drm_master_release+0xf2/0x230 [drm]
Feb 12 12:15:55 cassiopeia kernel: [  160.960450]  [<ffffffffc0377892>] drm_release+0x432/0x5c0 [drm]
Feb 12 12:15:55 cassiopeia kernel: [  160.960455]  [<ffffffffa639d1a7>] __fput+0x177/0x350
Feb 12 12:15:55 cassiopeia kernel: [  160.960459]  [<ffffffffa639d3ce>] ____fput+0xe/0x10
Feb 12 12:15:55 cassiopeia kernel: [  160.960463]  [<ffffffffa610b2d0>] task_work_run+0xa0/0xc0
Feb 12 12:15:55 cassiopeia kernel: [  160.960467]  [<ffffffffa60da7ed>] do_exit+0x48d/0x1320
Feb 12 12:15:55 cassiopeia kernel: [  160.960471]  [<ffffffffa6160190>] ? debug_check_no_locks_freed+0x1c0/0x1c0
Feb 12 12:15:55 cassiopeia kernel: [  160.960475]  [<ffffffffa60da360>] ? mm_update_next_owner+0x330/0x330
Feb 12 12:15:55 cassiopeia kernel: [  160.960479]  [<ffffffffa6189af6>] ? rcu_read_lock_sched_held+0x76/0x80
Feb 12 12:15:55 cassiopeia kernel: [  160.960483]  [<ffffffffa61899aa>] ? debug_lockdep_rcu_enabled.part.4+0x1a/0x30
Feb 12 12:15:55 cassiopeia kernel: [  160.960488]  [<ffffffffa60db778>] do_group_exit+0x98/0x160
Feb 12 12:15:55 cassiopeia kernel: [  160.960491]  [<ffffffffa60f0b49>] get_signal+0x3a9/0xb90
Feb 12 12:15:55 cassiopeia kernel: [  160.960495]  [<ffffffffa60ee00f>] ? force_sig_info+0x14f/0x170
Feb 12 12:15:55 cassiopeia kernel: [  160.960500]  [<ffffffffa604f41b>] do_signal+0x8b/0xc50
Feb 12 12:15:55 cassiopeia kernel: [  160.960503]  [<ffffffffa6178f6e>] ? vprintk_default+0x3e/0x60
Feb 12 12:15:55 cassiopeia kernel: [  160.960507]  [<ffffffffa62b56ee>] ? printk+0xa1/0xc8
Feb 12 12:15:55 cassiopeia kernel: [  160.960511]  [<ffffffffa604f390>] ? setup_sigcontext+0x280/0x280
Feb 12 12:15:55 cassiopeia kernel: [  160.960515]  [<ffffffffa615996f>] ? up_read+0x1f/0x40
Feb 12 12:15:55 cassiopeia kernel: [  160.960519]  [<ffffffffa6178f6e>] ? vprintk_default+0x3e/0x60
Feb 12 12:15:55 cassiopeia kernel: [  160.960523]  [<ffffffffa615f953>] ? mark_held_locks+0x23/0xc0
Feb 12 12:15:55 cassiopeia kernel: [  160.960527]  [<ffffffffa60044e6>] ? exit_to_usermode_loop+0x66/0xe0
Feb 12 12:15:55 cassiopeia kernel: [  160.960531]  [<ffffffffa6004511>] exit_to_usermode_loop+0x91/0xe0
Feb 12 12:15:55 cassiopeia kernel: [  160.960536]  [<ffffffffa600575f>] prepare_exit_to_usermode+0x7f/0x90
Feb 12 12:15:55 cassiopeia kernel: [  160.960539]  [<ffffffffa6e0b274>] retint_user+0x8/0x20
Feb 12 12:15:55 cassiopeia kernel: [  160.960580] ---[ end trace b633027e38c2b434 ]---


More information about the amd-gfx mailing list