Bug 104024 - xinit hangs on black screen with cursor, kernel oopses , bisected
Summary: xinit hangs on black screen with cursor, kernel oopses , bisected
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: mesa-dev
QA Contact: mesa-dev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-01 21:39 UTC by Bug
Modified: 2017-12-04 09:58 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Bug 2017-12-01 21:39:58 UTC
videocard is an rx460

xinit session hangs at start black screen with white cursor in left top corner


[  328.303157] Oops: 0000 [#2] PREEMPT SMP
[  328.303160] Modules linked in: snd_cmipci snd_opl3_lib snd_mpu401_uart snd_usb_audio snd_usbmidi_lib snd_rawmidi snd_hda_codec_realtek snd_hda_codec_hdmi snd_hda_codec_generic amdgpu snd_hda_intel snd_hda_codec backlight snd_hwdep snd_hda_core
[  328.303187] CPU: 3 PID: 1982 Comm: X Tainted: G      D         4.14.3 #1
[  328.303190] Hardware name: MICRO-STAR INTERNATIONAL CO.,LTD MS-7596/785GM-E51 (MS-7596), BIOS V2.11 12/08/2010
[  328.303194] task: ffff88022ec50740 task.stack: ffffc900006f8000
[  328.303233] RIP: 0010:amdgpu_info_ioctl+0xe7e/0x1330 [amdgpu]
[  328.303236] RSP: 0018:ffffc900006fbb20 EFLAGS: 00010212
[  328.303241] RAX: 0000000000000000 RBX: ffff88022b238000 RCX: 0000000000062459
[  328.303244] RDX: ffff8802380000a4 RSI: 00000000ffffffff RDI: 0000000034040300
[  328.303247] RBP: ffffc900006fbcd8 R08: 000000000000e200 R09: 0000000000000000
[  328.303250] R10: 0000000000000000 R11: ffffc900006fbd68 R12: ffffc900006fbd68
[  328.303253] R13: ffffffffa00526b0 R14: 0000000000000020 R15: 00007ffc516dbbc0
[  328.303257] FS:  00007f9f536178c0(0000) GS:ffff880237d80000(0000) knlGS:0000000000000000
[  328.303260] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  328.303263] CR2: ffff8802380000a4 CR3: 0000000227410000 CR4: 00000000000006e0
[  328.303266] Call Trace:
[  328.303278]  ? vsnprintf+0x252/0x570
[  328.303284]  ? sprintf+0x42/0x50
[  328.303321]  ? amdgpu_debugfs_add_files+0xb0/0xb0 [amdgpu]
[  328.303329]  drm_ioctl_kernel+0x64/0xb0
[  328.303336]  drm_ioctl+0x2cd/0x390
[  328.303372]  ? amdgpu_debugfs_add_files+0xb0/0xb0 [amdgpu]
[  328.303380]  ? call_rcu+0x18/0x20
[  328.303386]  ? dentry_free+0x33/0x70
[  328.303390]  ? __dentry_kill+0x10f/0x160
[  328.303426]  amdgpu_drm_ioctl+0x9/0x10 [amdgpu]
[  328.303431]  do_vfs_ioctl+0x8d/0x5a0
[  328.303436]  ? ____fput+0x9/0x10
[  328.303441]  SyS_ioctl+0x3c/0x70
[  328.303446]  do_syscall_64+0x74/0x330
[  328.303451]  ? rcu_user_enter+0x43/0x50
[  328.303456]  ? __context_tracking_enter+0x43/0x70
[  328.303462]  entry_SYSCALL64_slow_path+0x25/0x25
[  328.303465] RIP: 0033:0x7f9f526c22d7
[  328.303468] RSP: 002b:00007ffc516dba18 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[  328.303473] RAX: ffffffffffffffda RBX: 00000000008a81b8 RCX: 00007f9f526c22d7
[  328.303475] RDX: 00007ffc516dba60 RSI: 0000000040206445 RDI: 000000000000000e
[  328.303478] RBP: 00007ffc516dba60 R08: 0000000000000000 R09: 0000000000000000
[  328.303481] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000040206445
[  328.303484] R13: 000000000000000e R14: 00000000008a8420 R15: 00000000008a8420
[  328.303487] Code: 75 eb 41 b8 01 00 00 00 b9 09 00 00 00 e9 c1 fe ff ff 8b bb f8 6b 00 00 85 ff 0f 84 72 04 00 00 48 8d 93 4c 66 00 00 31 f6 31 c9 <0f> b6 02 48 81 c2 18 02 00 00 d3 e0 83 c1 01 09 c6 39 cf 75 eb 
[  328.303586] RIP: amdgpu_info_ioctl+0xe7e/0x1330 [amdgpu] RSP: ffffc900006fbb20
[  328.303589] CR2: ffff8802380000a4
[  328.303593] ---[ end trace c4ed8ae89345f0f6 ]---



git bisected to this commit:
436a3f8d6d52921d91a2dab53fcfca192037125e is the first bad commit
commit 436a3f8d6d52921d91a2dab53fcfca192037125e
Author: Boyuan Zhang <boyuan.zhang@amd.com>
Date:   Tue Nov 7 15:41:40 2017 -0500

    radeon/common: add vcn enc ip info query
    
    New ip info query is needed for vcn encode
    
    Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com>
    Acked-by: Christian König <christian.koenig@amd.com>

:040000 040000 86c3d1c20a68bdf64f0e63b35ae3a25d5bc75fe2 0be7a9c819bb30959800448fb174b87e6c8fc895 M      src
Comment 1 Michel Dänzer 2017-12-04 09:58:40 UTC
Thanks for the report, this is fixed in the 4.15-rc2 kernel with https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b43aaee69d4327d05e7624d9471c17d015b4d67d which will be backported to stable kernel branches in due time.


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.