Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751464AbbEDPxV (ORCPT ); Mon, 4 May 2015 11:53:21 -0400 Received: from mail-lb0-f177.google.com ([209.85.217.177]:36034 "EHLO mail-lb0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750779AbbEDPxN (ORCPT ); Mon, 4 May 2015 11:53:13 -0400 From: Mikael Pettersson X-Google-Original-From: "Mikael Pettersson" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <21831.38373.210630.622324@gargle.gargle.HOWL> Date: Mon, 4 May 2015 17:53:09 +0200 To: linux-kernel@vger.kernel.org Cc: Alex Deucher Subject: [REGRESSION,BISECTED] 4.1-rc2 radeon audio changes oops the kernel hard X-Mailer: VM 8.1.2 under 24.3.1 (x86_64-redhat-linux-gnu) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 7914 Lines: 144 On my Ivy Bridge i7 mobo w/ Radeon graphics, the 4.1-rc2 kernel oopses hard, requiring a hard reset: BUG: unable to handle kernel NULL pointer dereference at 0000000000000010 IP: [] radeon_audio_detect+0x5b/0x150 [radeon] PGD 0 Oops: 0000 [#1] SMP Modules linked in: af_packet snd_hda_codec_generic snd_hda_intel snd_hda_controller snd_hda_codec snd_hwdep snd_hda_core snd_seq snd_seq_device snd_pcm radeon cfbfillrect cfbimgblt cfbcopyarea i2c_algo_bit backlight r8169 mii coretemp snd_timer drm_kms_helper ttm snd drm i2c_core xhci_pci xhci_hcd soundcore evdev firmware_class hwmon hid_generic usbhid hid ehci_pci ehci_hcd sr_mod cdrom usbcore usb_common ipv6 CPU: 0 PID: 163 Comm: kworker/0:2 Not tainted 4.1.0-rc2 #1 Hardware name: System manufacturer System Product Name/P8Z77-V LE PLUS, BIOS 0403 05/08/2012 Workqueue: events output_poll_execute [drm_kms_helper] task: ffff8806012b1590 ti: ffff880037960000 task.ti: ffff880037960000 RIP: 0010:[] [] radeon_audio_detect+0x5b/0x150 [radeon] RSP: 0018:ffff880037963c78 EFLAGS: 00010246 RAX: ffff880600c92da0 RBX: ffff880600cbb000 RCX: 0000000000000001 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff880037a3f600 RBP: ffff880600c92da0 R08: 0000000000000001 R09: 0000000000000050 R10: 0000000000000001 R11: ffff880603001a80 R12: 0000000000000001 R13: ffff880600c924e0 R14: ffff880601f84000 R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff88061ec00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000010 CR3: 0000000001478000 CR4: 00000000001407f0 Stack: ffff880600cbb000 0000000000000001 0000000000000001 ffff880601f84000 ffffffffa03e7d70 ffffffffa03157ea ffff880601f84000 0000000000000002 ffff880600baa200 ffff880600cbb050 ffff880600cbb000 ffff880600e33800 Call Trace: [] ? radeon_dvi_detect+0x35a/0x4d0 [radeon] [] ? drm_helper_probe_single_connector_modes_merge_bits+0x2e6/0x490 [drm_kms_helper] [] ? drm_fb_helper_probe_connector_modes.isra.5+0x48/0x70 [drm_kms_helper] [] ? drm_fb_helper_hotplug_event+0x55/0xe0 [drm_kms_helper] [] ? output_poll_execute+0x7c/0x1a0 [drm_kms_helper] [] ? process_one_work+0x130/0x360 [] ? worker_thread+0x114/0x460 [] ? __schedule+0x20d/0x660 [] ? rescuer_thread+0x2f0/0x2f0 [] ? kthread+0xbc/0xe0 [] ? kthread_create_on_node+0x170/0x170 [] ? ret_from_fork+0x42/0x70 [] ? kthread_create_on_node+0x170/0x170 Code: 8b 45 00 4c 8b ad 58 01 00 00 4c 8b 70 28 49 8b 85 00 01 00 00 48 85 c0 74 30 41 83 fc 01 74 38 48 8b 70 10 49 8b 96 c8 24 00 00 <48> 8b 4a 10 48 85 c9 74 0e 31 d2 4c 89 f7 ff d1 49 8b 85 00 01 RIP [] radeon_audio_detect+0x5b/0x150 [radeon] RSP CR2: 0000000000000010 ---[ end trace 5b99e3870bfc7a92 ]--- BUG: unable to handle kernel paging request at ffffffffffffffd8 IP: [] kthread_data+0x7/0x10 PGD 1479067 PUD 147b067 PMD 0 Oops: 0000 [#2] SMP Modules linked in: af_packet snd_hda_codec_generic snd_hda_intel snd_hda_controller snd_hda_codec snd_hwdep snd_hda_core snd_seq snd_seq_device snd_pcm radeon cfbfillrect cfbimgblt cfbcopyarea i2c_algo_bit backlight r8169 mii coretemp snd_timer drm_kms_helper ttm snd drm i2c_core xhci_pci xhci_hcd soundcore evdev firmware_class hwmon hid_generic usbhid hid ehci_pci ehci_hcd sr_mod cdrom usbcore usb_common ipv6 CPU: 0 PID: 163 Comm: kworker/0:2 Tainted: G D 4.1.0-rc2 #1 Hardware name: System manufacturer System Product Name/P8Z77-V LE PLUS, BIOS 0403 05/08/2012 task: ffff8806012b1590 ti: ffff880037960000 task.ti: ffff880037960000 RIP: 0010:[] [] kthread_data+0x7/0x10 RSP: 0018:ffff880037963a60 EFLAGS: 00010002 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000073c2bc6e RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8806012b1590 RBP: ffff8806012b1590 R08: 0000000000000001 R09: 0000000000000001 R10: ffffea001804b800 R11: 000000000000001a R12: ffff8806012b1980 R13: 0000000000000000 R14: 0000000000014300 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff88061ec00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000028 CR3: 0000000001478000 CR4: 00000000001407f0 Stack: ffffffff81051068 ffff88061ec14300 ffffffff8134c203 0000000000000000 ffff880037964000 ffff8806012b1878 ffff880037963af8 0000000000000000 ffff880603188000 ffff8806012b1590 ffffffff8134c4aa ffff8800379637d8 Call Trace: [] ? wq_worker_sleeping+0x8/0x90 [] ? __schedule+0x3e3/0x660 [] ? schedule+0x2a/0x80 [] ? do_exit+0x61e/0xa20 [] ? oops_end+0x66/0xa0 [] ? no_context+0x236/0x286 [] ? page_fault+0x1f/0x30 [] ? radeon_audio_detect+0x5b/0x150 [radeon] [] ? radeon_audio_detect+0xe2/0x150 [radeon] [] ? radeon_dvi_detect+0x35a/0x4d0 [radeon] [] ? drm_helper_probe_single_connector_modes_merge_bits+0x2e6/0x490 [drm_kms_helper] [] ? drm_fb_helper_probe_connector_modes.isra.5+0x48/0x70 [drm_kms_helper] [] ? drm_fb_helper_hotplug_event+0x55/0xe0 [drm_kms_helper] [] ? output_poll_execute+0x7c/0x1a0 [drm_kms_helper] [] ? process_one_work+0x130/0x360 [] ? worker_thread+0x114/0x460 [] ? __schedule+0x20d/0x660 [] ? rescuer_thread+0x2f0/0x2f0 [] ? kthread+0xbc/0xe0 [] ? kthread_create_on_node+0x170/0x170 [] ? ret_from_fork+0x42/0x70 [] ? kthread_create_on_node+0x170/0x170 Code: 00 00 00 00 65 48 8b 04 25 00 a9 00 00 48 8b 80 98 03 00 00 48 8b 40 c8 48 c1 e8 02 83 e0 01 c3 0f 1f 40 00 48 8b 87 98 03 00 00 <48> 8b 40 d8 c3 0f 1f 40 00 48 83 ec 18 ba 08 00 00 00 48 c7 44 RIP [] kthread_data+0x7/0x10 RSP CR2: ffffffffffffffd8 ---[ end trace 5b99e3870bfc7a93 ]--- Fixing recursive fault but reboot is needed! The 4.1-rc1 and earlier kernels were fine. git bisect identified the following as the first bad commit: 0f55db36d49d45b80eff0c0a2a498766016f458b is the first bad commit commit 0f55db36d49d45b80eff0c0a2a498766016f458b Author: Alex Deucher Date: Tue Apr 7 09:52:42 2015 -0400 drm/radeon: only mark audio as connected if the monitor supports it (v3) Otherwise the driver may try and send audio which may confuse the monitor. v2: set pin to NULL if no audio v3: avoid crash with analog encoders Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org :040000 040000 7fe69b07a9ec74f8116f034d186bacce80dbf4f4 e27f98a4a15d2f30baf3ea92420112874b0b1c34 M drivers The graphics card is: 01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RV370 [Radeon X300/X550/X1050 Series] 01:00.1 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] RV370 [Radeon X300/X550/X1050 Series] (Secondary) and the monitor is some Dell 24" model w/o audio. My .config has CONFIG_DRM=m CONFIG_DRM_KMS_HELPER=m CONFIG_DRM_KMS_FB_HELPER=y CONFIG_DRM_RADEON=m # CONFIG_DRM_RADEON_USERPTR is not set # CONFIG_DRM_RADEON_UMS is not set # CONFIG_FB_RADEON is not set (Full .config available upon request.) /Mikael -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/