Bug 79295

Summary: [radeon] Kernel OOPS - NULL pointer dereference in radeon_fence_ref
Product: DRI Reporter: Ancoron <ancoron>
Component: DRM/RadeonAssignee: Default DRI bug account <dri-devel>
Status: RESOLVED MOVED QA Contact:
Severity: critical    
Priority: high    
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
lspci -vnvn -s 01:00.0
none
syslog excerpt
none
Xorg.0.log none

Description Ancoron 2014-05-27 08:40:40 UTC
Hardware:
- GPU: Sapphire Ultimate R7 250 (1002:683f, 1x DVI, 1x HDMI, 1x DisplayPort, passive)
- Monitor: Dell 3007-WFP HC (30", 2560x1600 @ 60)

Software:
- Ubuntu 14.04
- Kernel 3.13.0-27-generic
- linux-firmware package version 1.127.2


What happened:

After monitor wakeup, I just got back the picture of the desktop (not the usual locker screen though) but wasn't able to interact with it (no mouse pointer visible, no screen updates). I then switched to a virtual terminal and back again, but that didn't help either. I switched one more time and then got this:

[58854.179892] [drm:si_copy_dma] *ERROR* radeon: moving bo (-35).
[58854.179913] BUG: unable to handle kernel NULL pointer dereference at 0000000000000008
[58854.179939] IP: [<ffffffffa012272d>] radeon_fence_ref+0xd/0x50 [radeon]
[58854.179986] PGD 0 
[58854.179993] Oops: 0002 [#1] SMP 
[58854.180004] Modules linked in: nct6775 hwmon_vid nfsv3 cuse ipt_MASQUERADE iptable_nat nf_nat_ipv4 nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 
xt_conntrack nf_conntrack ipt_REJECT xt_CHECKSUM iptable_mangle xt_tcpudp ip6table_filter ip6_tables iptable_filter ip_tables ebtable_nat ebtables x_tables rpcsec_gss_krb5 nfsv4 binfmt_misc bridge stp llc nfsd auth_rpcgss nfs_acl nfs lockd sunrpc fscache dm_crypt eeepc_wmi asus_wmi sparse_keymap x86_pkg_temp_thermal snd_hda_codec_hdmi intel_powerclamp coretemp kvm_intel kvm crct10dif_pclmul snd_hda_codec_realtek snd_hda_intel snd_hda_codec snd_hwdep snd_pcm crc32_pclmul snd_page_alloc ghash_clmulni_intel snd_seq_midi snd_seq_midi_event aesni_intel snd_rawmidi aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd snd_seq serio_raw snd_seq_device snd_timer snd mei_me mei lpc_ich soundcore mac_hid parport_pc ppdev asus_atk0110 lp parport hid_generic usbhid hid radeon i2c_algo_bit ttm psmouse r8169 drm_kms_helper ahci drm libahci mii wmi video [last unloaded: hwmon_vid]
[58854.180312] CPU: 0 PID: 2943 Comm: Xorg Not tainted 3.13.0-27-generic #50-Ubuntu
[58854.180333] Hardware name: ASUS All Series/B85M-G, BIOS 0905 02/20/2014
[58854.180352] task: ffff8807ec3ec7d0 ti: ffff88030bbe0000 task.ti: ffff88030bbe0000
[58854.180374] RIP: 0010:[<ffffffffa012272d>]  [<ffffffffa012272d>] radeon_fence_ref+0xd/0x50 [radeon]
[58854.180427] RSP: 0000:ffff88030bbe1980  EFLAGS: 00013246
[58854.180442] RAX: 0000000000000000 RBX: ffff8807ef0f9048 RCX: 0000000000000000
[58854.180461] RDX: 0000000000000001 RSI: 0000000000000000 RDI: 0000000000000000
[58854.180480] RBP: ffff88030bbe1988 R08: ffff88030bbe1af0 R09: 00000000000008cd
[58854.180500] R10: 0000000000000000 R11: ffff88030bbe165e R12: ffff8807ed21cb78
[58854.180518] R13: ffffffffa0233160 R14: ffff88030bbe1af0 R15: 0000000000000000
[58854.180539] FS:  00007fb4c23b29c0(0000) GS:ffff88081ec00000(0000) knlGS:0000000000000000
[58854.180560] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[58854.180576] CR2: 0000000000000008 CR3: 00000000d8cfb000 CR4: 00000000001407f0
[58854.180595] Stack:
[58854.180602]  ffffffffa0122cfe ffff88030bbe19e0 ffffffffa00dcb80 ffff8807ed21c848
[58854.180626]  0000000000000000 0000000000000000 0000000000000000 ffff88030bbe1af0
[58854.180650]  ffff8807ef0f9048 0000000000000000 0000000000000000 ffff8807ef0f9048
[58854.180674] Call Trace:
[58854.180707]  [<ffffffffa0122cfe>] ? radeon_sync_obj_ref+0xe/0x10 [radeon]
[58854.180741]  [<ffffffffa00dcb80>] ttm_bo_move_accel_cleanup+0x80/0x460 [ttm]
[58854.180783]  [<ffffffffa0123222>] radeon_move_blit.isra.7+0xc2/0x160 [radeon]
[58854.180818]  [<ffffffffa0123a0a>] radeon_bo_move+0xaa/0x1e0 [radeon]
[58854.180842]  [<ffffffffa00dae75>] ttm_bo_handle_move_mem+0x265/0x5b0 [ttm]
[58854.180866]  [<ffffffffa00db889>] ? ttm_bo_mem_space+0x169/0x340 [ttm]
[58854.180888]  [<ffffffffa00dbe27>] ttm_bo_move_buffer+0x117/0x130 [ttm]
[58854.180911]  [<ffffffffa00dbf01>] ttm_bo_validate+0xc1/0x130 [ttm]
[58854.180946]  [<ffffffffa0125314>] radeon_bo_fault_reserve_notify+0x94/0xc0 [radeon]
[58854.180973]  [<ffffffffa00dde42>] ttm_bo_vm_fault+0xa2/0x480 [ttm]
[58854.180995]  [<ffffffff81157a77>] ? __alloc_pages_nodemask+0x187/0xb20
[58854.181016]  [<ffffffff8124423a>] ? ext4_da_write_end+0xba/0x250
[58854.181048]  [<ffffffffa0122f3c>] radeon_ttm_fault+0x4c/0x70 [radeon]
[58854.181069]  [<ffffffff8117485f>] __do_fault+0x6f/0x530
[58854.181085]  [<ffffffff81178a02>] handle_mm_fault+0x492/0xf10
[58854.181102]  [<ffffffff81150a48>] ? generic_file_aio_read+0x598/0x700
[58854.181122]  [<ffffffff81725924>] __do_page_fault+0x184/0x560
[58854.181141]  [<ffffffff811112ec>] ? acct_account_cputime+0x1c/0x20
[58854.181161]  [<ffffffff8109d76b>] ? account_user_time+0x8b/0xa0
[58854.181178]  [<ffffffff8109dd84>] ? vtime_account_user+0x54/0x60
[58854.181196]  [<ffffffff81725d1a>] do_page_fault+0x1a/0x70
[58854.181213]  [<ffffffff81722188>] page_fault+0x28/0x30
[58854.181227] Code: dd 74 e1 48 8b 3b 89 c1 44 89 e2 48 c7 c6 68 fb 20 a0 31 c0 e8 75 b9 36 e1 eb c7 0f 1f 00 0f 1f 44 00 00 48 89 f8 ba 01 00 00 00 <f0> 0f c1 57 08 83 c2 01 83 fa 01 7e 01 c3 80 3d 46 2a 11 00 00 
[58854.181323] RIP  [<ffffffffa012272d>] radeon_fence_ref+0xd/0x50 [radeon]
[58854.181358]  RSP <ffff88030bbe1980>
[58854.181368] CR2: 0000000000000008
[58854.195031] ---[ end trace 980f97098d4a0f57 ]---
Comment 1 Ancoron 2014-05-27 08:41:39 UTC
Created attachment 99935 [details]
lspci -vnvn -s 01:00.0
Comment 2 Ancoron 2014-05-27 08:42:31 UTC
Created attachment 99936 [details]
syslog excerpt
Comment 3 Ancoron 2014-05-27 08:45:49 UTC
Created attachment 99937 [details]
Xorg.0.log
Comment 4 Marek Olšák 2014-05-27 10:17:55 UTC
Ancoron> Why did you change the bug product/component? This has nothing to do with the X driver.
Comment 5 Christian König 2014-05-27 10:53:38 UTC
Indeed, changing it back.
Comment 6 Ancoron 2014-05-27 15:30:54 UTC
Ah, now I see. Previously, the select boxes showed me component "DRM/Intel", that's why I changed it again.

Sorry.

I should probably note that I'm using the packages from the xorg-edgers PPA for Ubuntu.
Comment 7 Martin Peres 2019-11-19 08:49:45 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/drm/amd/issues/495.

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.