Bug 103316 - [Hawaii, FirePro, radeon] WARNING: CPU: 1 PID: 18632 at drivers/gpu/drm/ttm/ttm_page_alloc_dma.c:548 ttm_dma_free_pool.part.8+0x128/0x130 [ttm]
Summary: [Hawaii, FirePro, radeon] WARNING: CPU: 1 PID: 18632 at drivers/gpu/drm/ttm/t...
Status: RESOLVED MOVED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/radeonsi (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Default DRI bug account
QA Contact: Default DRI bug account
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-17 18:51 UTC by Vedran Miletić
Modified: 2019-09-25 18:00 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
dmesg (71.15 KB, text/plain)
2017-10-19 19:16 UTC, Vedran Miletić
Details

Description Vedran Miletić 2017-10-17 18:51:12 UTC
On kernel 4.13.6-300.fc27.x86_64, with 01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Hawaii XT GL [FirePro W9100] upon modprobe -r radeon I get:

[83523.596239] [drm] radeon: finishing device.
[83523.615907] [TTM] Finalizing pool allocator
[83523.615910] [TTM] Finalizing DMA pool allocator
[83523.615942] ------------[ cut here ]------------
[83523.615948] WARNING: CPU: 1 PID: 18632 at drivers/gpu/drm/ttm/ttm_page_alloc_dma.c:548 ttm_dma_free_pool.part.8+0x128/0x130 [ttm]
[83523.615949] Modules linked in: ip6t_rpfilter ip6t_REJECT nf_reject_ipv6 xt_conntrack ip_set nfnetlink ebtable_nat ebtable_broute bridge stp llc ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 ip6table_mangle ip6table_raw ip6table_security iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack iptable_mangle iptable_raw iptable_security ebtable_filter ebtables ip6table_filter ip6_tables sunrpc intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm snd_hda_codec_realtek snd_hda_codec_generic irqbypass snd_hda_codec_hdmi snd_hda_intel snd_hda_codec snd_hda_core snd_hwdep snd_seq crct10dif_pclmul crc32_pclmul ghash_clmulni_intel snd_seq_device intel_cstate intel_uncore eeepc_wmi intel_rapl_perf asus_wmi snd_pcm sparse_keymap rfkill iTCO_wdt mxm_wmi iTCO_vendor_support
[83523.615968]  snd_timer wmi_bmof snd mei_me mei soundcore shpchp i2c_i801 lpc_ich tpm_infineon tpm_tis tpm_tis_core tpm wmi xfs libcrc32c amdgpu amdkfd i915 amd_iommu_v2 radeon(-) i2c_algo_bit drm_kms_helper ttm crc32c_intel drm r8169 mii video
[83523.615978] CPU: 1 PID: 18632 Comm: modprobe Not tainted 4.13.6-300.fc27.x86_64 #1
[83523.615978] Hardware name: ASUS All Series/Z87-A, BIOS 1602 10/29/2013
[83523.615979] task: ffff948aebd84c80 task.stack: ffffa04ea4cf8000
[83523.615982] RIP: 0010:ttm_dma_free_pool.part.8+0x128/0x130 [ttm]
[83523.615982] RSP: 0018:ffffa04ea4cfbc40 EFLAGS: 00010202
[83523.615983] RAX: 0000000000000202 RBX: ffff948ed5b6d540 RCX: 0000000000000000
[83523.615984] RDX: 0000000100400002 RSI: ffffdab5d0562e40 RDI: ffffa04ea4cfbbf0
[83523.615984] RBP: ffffa04ea4cfbc58 R08: ffff948ed58b9080 R09: 0000000100400001
[83523.615985] R10: ffffa04ea4cfbb40 R11: 0000000000000000 R12: ffff948edce2e2e0
[83523.615985] R13: 0000000000000008 R14: ffffffffc043e1e8 R15: ffff948edd148100
[83523.615986] FS:  00007efc655aa740(0000) GS:ffff948eefa40000(0000) knlGS:0000000000000000
[83523.615987] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[83523.615987] CR2: 000055e3e6293030 CR3: 00000003f194c000 CR4: 00000000001406e0
[83523.615988] Call Trace:
[83523.615992]  ttm_dma_page_alloc_fini+0x84/0xf0 [ttm]
[83523.615994]  ttm_mem_global_release+0x19/0x90 [ttm]
[83523.616017]  radeon_ttm_mem_global_release+0x12/0x20 [radeon]
[83523.616026]  drm_global_item_unref+0x4c/0x70 [drm]
[83523.616035]  radeon_ttm_fini+0x133/0x1a0 [radeon]
[83523.616044]  radeon_bo_fini+0x12/0x40 [radeon]
[83523.616057]  cik_fini+0xca/0xf0 [radeon]
[83523.616065]  radeon_device_fini+0x35/0x110 [radeon]
[83523.616072]  radeon_driver_unload_kms+0x4b/0x80 [radeon]
[83523.616077]  drm_dev_unregister+0x3c/0xe0 [drm]
[83523.616083]  drm_put_dev+0x32/0x60 [drm]
[83523.616089]  radeon_pci_remove+0x15/0x20 [radeon]
[83523.616092]  pci_device_remove+0x39/0xb0
[83523.616094]  device_release_driver_internal+0x158/0x210
[83523.616095]  driver_detach+0x38/0x70
[83523.616096]  bus_remove_driver+0x59/0xd0
[83523.616097]  driver_unregister+0x2c/0x40
[83523.616098]  pci_unregister_driver+0x22/0xb0
[83523.616103]  drm_pci_exit+0xbb/0xc0 [drm]
[83523.616115]  radeon_exit+0x1c/0x43 [radeon]
[83523.616116]  SyS_delete_module+0x1a8/0x2b0
[83523.616118]  ? exit_to_usermode_loop+0x91/0xb0
[83523.616120]  entry_SYSCALL_64_fastpath+0x1a/0xa5
[83523.616121] RIP: 0033:0x7efc64a93917
[83523.616122] RSP: 002b:00007ffdd5e175f8 EFLAGS: 00000206 ORIG_RAX: 00000000000000b0
[83523.616123] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007efc64a93917
[83523.616123] RDX: 0000000000000000 RSI: 0000000000000800 RDI: 0000564a18d45ea8
[83523.616123] RBP: 0000000000000000 R08: 00007ffdd5e165a1 R09: 0000000000000000
[83523.616124] R10: 00007efc64b0cbc0 R11: 0000000000000206 R12: 0000564a18d45e40
[83523.616124] R13: 00007ffdd5e16610 R14: 0000564a18d45ea8 R15: 00007ffdd5e189e0
[83523.616125] Code: 00 ad de 48 89 df 48 89 03 48 05 00 01 00 00 48 89 43 08 e8 7b 35 f6 da 48 8b 3d 14 63 00 00 e8 af 46 5b db 5b 41 5c 41 5d 5d c3 <0f> ff eb b0 0f 1f 40 00 0f 1f 44 00 00 48 8b 06 48 85 c0 74 13 
[83523.616141] ---[ end trace 64292c2a3a933def ]---
[83523.616779] [TTM] Zone  kernel: Used memory at exit: 2080 kiB
[83523.616781] [TTM] Zone   dma32: Used memory at exit: 24 kiB
[83523.616782] [drm] radeon: ttm finalized
[83523.642072] [drm] Module unloaded

This doesn't depend on whether the GPU experienced VM errors prior to modprobe -r.
Comment 1 Christian König 2017-10-18 07:24:34 UTC
Mhm, please attach the full dmesg. Is that a regression?
Comment 2 Vedran Miletić 2017-10-19 19:16:47 UTC
Created attachment 134926 [details]
dmesg
Comment 3 Vedran Miletić 2017-10-19 19:17:46 UTC
Not sure if it's a regression, but I can check older kernels if you want me to.
Comment 4 Vedran Miletić 2017-11-03 22:22:54 UTC
Fixed with yesterday's or today's commits.
Comment 5 Vedran Miletić 2017-11-03 22:23:17 UTC
Whoops, wrong bug.
Comment 6 Vedran Miletić 2018-01-11 15:37:40 UTC
Still the case in Fedora rawhide with kernel 4.15.0-0.rc7.git0.1.fc28.x86_64

[ 2582.430297] [drm] radeon: finishing device.
[ 2582.445874] [TTM] Finalizing pool allocator
[ 2582.445877] [TTM] Finalizing DMA pool allocator
[ 2582.445912] WARNING: CPU: 2 PID: 2446 at drivers/gpu/drm/ttm/ttm_page_alloc_dma.c:565 ttm_dma_free_pool.part.9+0x11c/0x120 [ttm]
[ 2582.445913] Modules linked in: ip6t_rpfilter ip6t_REJECT nf_reject_ipv6 xt_conntrack ip_set nfnetlink ebtable_nat ebtable_broute bridge stp llc ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 ip6table_mangle ip6table_raw ip6table_security iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack iptable_mangle iptable_raw iptable_security ebtable_filter ebtables ip6table_filter ip6_tables sunrpc intel_rapl x86_pkg_temp_thermal snd_hda_codec_realtek intel_powerclamp snd_hda_codec_generic coretemp snd_hda_codec_hdmi snd_hda_intel snd_hda_codec kvm_intel kvm snd_hda_core snd_hwdep snd_seq snd_seq_device snd_pcm snd_timer snd iTCO_wdt wmi_bmof irqbypass eeepc_wmi asus_wmi sparse_keymap rfkill iTCO_vendor_support crct10dif_pclmul crc32_pclmul ghash_clmulni_intel intel_cstate
[ 2582.445930]  intel_uncore mxm_wmi intel_rapl_perf soundcore mei_me mei i2c_i801 shpchp lpc_ich wmi xfs libcrc32c amdgpu chash i915 radeon(-) i2c_algo_bit drm_kms_helper ttm r8169 drm crc32c_intel mii video
[ 2582.445937] CPU: 2 PID: 2446 Comm: modprobe Not tainted 4.15.0-0.rc7.git0.1.fc28.x86_64 #1
[ 2582.445938] Hardware name: ASUS All Series/Z87-A, BIOS 1602 10/29/2013
[ 2582.445941] RIP: 0010:ttm_dma_free_pool.part.9+0x11c/0x120 [ttm]
[ 2582.445941] RSP: 0018:ffffb1d8029afd40 EFLAGS: 00010202
[ 2582.445942] RAX: 0000000000000202 RBX: ffff8cda93b27540 RCX: 0000000000000000
[ 2582.445942] RDX: 0000000180400001 RSI: fffff7c0104eca80 RDI: ffffb1d8029afcf0
[ 2582.445943] RBP: ffff8cda9ce482d8 R08: ffff8cda93b2a900 R09: 0000000180400000
[ 2582.445943] R10: ffffb1d8029afbc0 R11: 0000000000000000 R12: 0000000000000008
[ 2582.445943] R13: ffffffffc046f1d0 R14: ffff8cda9d193100 R15: ffffffffc046f160
[ 2582.445944] FS:  00007f4991aca0c0(0000) GS:ffff8cdaafa80000(0000) knlGS:0000000000000000
[ 2582.445945] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 2582.445945] CR2: 00007fff854e7968 CR3: 00000003a6dbe002 CR4: 00000000001606e0
[ 2582.445946] Call Trace:
[ 2582.445950]  ttm_dma_page_alloc_fini+0x7d/0xf0 [ttm]
[ 2582.445952]  ttm_mem_global_release+0x14/0x80 [ttm]
[ 2582.445963]  drm_global_item_unref+0x44/0x60 [drm]
[ 2582.445976]  radeon_ttm_fini+0x12b/0x190 [radeon]
[ 2582.445984]  radeon_bo_fini+0xe/0x30 [radeon]
[ 2582.445996]  cik_fini+0xc6/0xf0 [radeon]
[ 2582.446002]  radeon_device_fini+0x31/0x110 [radeon]
[ 2582.446007]  radeon_driver_unload_kms+0x3e/0x70 [radeon]
[ 2582.446013]  drm_dev_unregister+0x3c/0xe0 [drm]
[ 2582.446018]  drm_put_dev+0x2e/0x60 [drm]
[ 2582.446020]  pci_device_remove+0x36/0xb0
[ 2582.446023]  device_release_driver_internal+0x157/0x220
[ 2582.446024]  driver_detach+0x32/0x60
[ 2582.446025]  bus_remove_driver+0x51/0xd0
[ 2582.446026]  pci_unregister_driver+0x22/0xa0
[ 2582.446036]  radeon_exit+0xc/0x64 [radeon]
[ 2582.446038]  SyS_delete_module+0x1a1/0x2b0
[ 2582.446040]  ? exit_to_usermode_loop+0x8a/0xa0
[ 2582.446042]  entry_SYSCALL_64_fastpath+0x1a/0x7d
[ 2582.446043] RIP: 0033:0x7f4990fc8a17
[ 2582.446043] RSP: 002b:00007fff854eaa98 EFLAGS: 00000206
[ 2582.446044] Code: 00 00 00 00 ad de 48 89 df 48 89 03 48 05 00 01 00 00 48 89 43 08 e8 24 7d 09 e8 5b 5d 41 5c 48 8b 3d 99 b8 00 00 e9 b4 e7 6d e8 <0f> ff eb b3 0f 1f 44 00 00 48 8b 06 48 85 c0 74 0d 48 85 ff 74 
[ 2582.446057] ---[ end trace f3849642451d16df ]---
[ 2582.446223] [TTM] Zone  kernel: Used memory at exit: 2080 kiB
[ 2582.446225] [TTM] Zone   dma32: Used memory at exit: 24 kiB
[ 2582.446225] [drm] radeon: ttm finalized
Comment 7 GitLab Migration User 2019-09-25 18:00:43 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/1286.


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.