Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752143AbbEDTaK (ORCPT ); Mon, 4 May 2015 15:30:10 -0400 Received: from mail-bn1on0146.outbound.protection.outlook.com ([157.56.110.146]:43616 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751428AbbEDTaD convert rfc822-to-8bit (ORCPT ); Mon, 4 May 2015 15:30:03 -0400 Authentication-Results: spf=none (sender IP is 165.204.84.221) smtp.mailfrom=amd.com; gmail.com; dkim=none (message not signed) header.d=none; X-WSS-ID: 0NNUBHY-07-O9T-02 X-M-MSG: From: "Deucher, Alexander" To: Mikael Pettersson CC: "linux-kernel@vger.kernel.org" Subject: RE: [REGRESSION,BISECTED] 4.1-rc2 radeon audio changes oops the kernel hard Thread-Topic: [REGRESSION,BISECTED] 4.1-rc2 radeon audio changes oops the kernel hard Thread-Index: AQHQhoJyDTuaVgDj5UmtiiIkWwutzZ1sJzeAgABPhgD//71egA== Date: Mon, 4 May 2015 19:29:58 +0000 Message-ID: References: <21831.38373.210630.622324@gargle.gargle.HOWL> <21831.51230.301544.194238@gargle.gargle.HOWL> In-Reply-To: <21831.51230.301544.194238@gargle.gargle.HOWL> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.180.168.240] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:165.204.84.221;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10019020)(6009001)(428002)(479174004)(51234002)(51704005)(189002)(377454003)(164054003)(199003)(76176999)(106116001)(50986999)(105586002)(46406003)(54356999)(23726002)(102836002)(5250100002)(47776003)(5890100001)(53416004)(97756001)(87936001)(77156002)(62966003)(92566002)(2656002)(575784001)(86362001)(110136002)(46102003)(2900100001)(2920100001)(101416001)(2950100001)(106466001)(19580395003)(33656002)(19580405001)(1411001)(50466002)(142933001);DIR:OUT;SFP:1102;SCL:1;SRVR:CY1PR02MB1117;H:atltwp01.amd.com;FPR:;SPF:None;MLV:sfv;MX:1;A:1;LANG:en; X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR02MB1117; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:CY1PR02MB1117;BCL:0;PCL:0;RULEID:;SRVR:CY1PR02MB1117; X-Forefront-PRVS: 05669A7924 X-OriginatorOrg: amd4.onmicrosoft.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 May 2015 19:30:00.7968 (UTC) X-MS-Exchange-CrossTenant-Id: fde4dada-be84-483f-92cc-e026cbee8e96 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fde4dada-be84-483f-92cc-e026cbee8e96;Ip=[165.204.84.221];Helo=[atltwp01.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR02MB1117 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 10090 Lines: 231 > -----Original Message----- > From: Mikael Pettersson [mailto:mikpelinux@gmail.com] > Sent: Monday, May 04, 2015 3:27 PM > To: Deucher, Alexander > Cc: Mikael Pettersson; linux-kernel@vger.kernel.org > Subject: RE: [REGRESSION,BISECTED] 4.1-rc2 radeon audio changes oops the > kernel hard > > Deucher, Alexander writes: > > > -----Original Message----- > > > From: Mikael Pettersson [mailto:mikpelinux@gmail.com] > > > Sent: Monday, May 04, 2015 11:53 AM > > > To: linux-kernel@vger.kernel.org > > > Cc: Deucher, Alexander > > > Subject: [REGRESSION,BISECTED] 4.1-rc2 radeon audio changes oops the > > > kernel hard > > > > > > 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. > > > > Sorry about that. The attached patch should fix it. > > It does, thanks. > > Tested-by: Mikael Pettersson > Thanks, I'll include it in my pull request for Dave this week. Alex > > > > Alex > > > > > > > > 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 > > x0001-drm-radeon-don-t-setup-audio-o [Click mouse-2 to save to a file] > > -- -- 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/