Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751997AbbEDTBH (ORCPT ); Mon, 4 May 2015 15:01:07 -0400 Received: from mail-by2on0125.outbound.protection.outlook.com ([207.46.100.125]:39607 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751907AbbEDTAz (ORCPT ); Mon, 4 May 2015 15:00:55 -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: 0NNU9FQ-07-9GJ-02 X-M-MSG: From: "Deucher, Alexander" To: Mikael Pettersson , "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: AQHQhoJyDTuaVgDj5UmtiiIkWwutzZ1sJzeA Date: Mon, 4 May 2015 18:45:25 +0000 Message-ID: References: <21831.38373.210630.622324@gargle.gargle.HOWL> In-Reply-To: <21831.38373.210630.622324@gargle.gargle.HOWL> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-originating-ip: [10.180.168.240] Content-Type: multipart/mixed; boundary="_002_A3397C8B8B789E45844E7EC5DEAD89D06363F59Bsatlexdag05amdc_" 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)(189002)(199003)(51704005)(377454003)(4610100001)(2656002)(2501003)(87936001)(5890100001)(568964001)(512954002)(5001920100001)(107886002)(106116001)(106466001)(77156002)(5001770100001)(19580395003)(86362001)(101416001)(5260100001)(5250100002)(62966003)(2900100001)(575784001)(19580405001)(53416004)(84326002)(33656002)(50986999)(76176999)(46102003)(105586002)(2950100001)(2920100001)(102836002)(92566002)(99936001)(54356999)(142933001);DIR:OUT;SFP:1102;SCL:1;SRVR:BLUPR02MB1108;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:BLUPR02MB1108; 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:BLUPR02MB1108;BCL:0;PCL:0;RULEID:;SRVR:BLUPR02MB1108; X-Forefront-PRVS: 05669A7924 X-OriginatorOrg: amd4.onmicrosoft.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 May 2015 18:45:30.5242 (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: BLUPR02MB1108 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 10765 Lines: 235 --_002_A3397C8B8B789E45844E7EC5DEAD89D06363F59Bsatlexdag05amdc_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable > -----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 >=20 > On my Ivy Bridge i7 mobo w/ Radeon graphics, the 4.1-rc2 kernel oopses > hard, > requiring a hard reset: >=20 > 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 8= 5 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/0x1= 0 > 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 4= 0 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! >=20 > The 4.1-rc1 and earlier kernels were fine. >=20 > git bisect identified the following as the first bad commit: >=20 > 0f55db36d49d45b80eff0c0a2a498766016f458b is the first bad commit > commit 0f55db36d49d45b80eff0c0a2a498766016f458b > Author: Alex Deucher > Date: Tue Apr 7 09:52:42 2015 -0400 >=20 > drm/radeon: only mark audio as connected if the monitor supports it (= v3) >=20 > Otherwise the driver may try and send audio which may confuse the > monitor. >=20 > v2: set pin to NULL if no audio > v3: avoid crash with analog encoders >=20 > Signed-off-by: Alex Deucher > Cc: stable@vger.kernel.org >=20 > :040000 040000 7fe69b07a9ec74f8116f034d186bacce80dbf4f4 > e27f98a4a15d2f30baf3ea92420112874b0b1c34 M drivers >=20 > The graphics card is: >=20 > 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) >=20 > and the monitor is some Dell 24" model w/o audio. Sorry about that. The attached patch should fix it. =20 Alex >=20 > My .config has >=20 > CONFIG_DRM=3Dm > CONFIG_DRM_KMS_HELPER=3Dm > CONFIG_DRM_KMS_FB_HELPER=3Dy > CONFIG_DRM_RADEON=3Dm > # CONFIG_DRM_RADEON_USERPTR is not set > # CONFIG_DRM_RADEON_UMS is not set > # CONFIG_FB_RADEON is not set >=20 > (Full .config available upon request.) >=20 > /Mikael --_002_A3397C8B8B789E45844E7EC5DEAD89D06363F59Bsatlexdag05amdc_ Content-Type: application/octet-stream; name="0001-drm-radeon-don-t-setup-audio-on-asics-that-don-t-sup.patch" Content-Description: 0001-drm-radeon-don-t-setup-audio-on-asics-that-don-t-sup.patch Content-Disposition: attachment; filename="0001-drm-radeon-don-t-setup-audio-on-asics-that-don-t-sup.patch"; size=1028; creation-date="Mon, 04 May 2015 18:42:31 GMT"; modification-date="Mon, 04 May 2015 18:39:32 GMT" Content-Transfer-Encoding: base64 RnJvbSA5M2EyOWUwNmRlMDBmMTAxMGM0YThkOTM0YWVkYzA1ZjcxNmYyYzk2IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBBbGV4IERldWNoZXIgPGFsZXhhbmRlci5kZXVjaGVyQGFtZC5j b20+CkRhdGU6IE1vbiwgNCBNYXkgMjAxNSAxNDozNTowMSAtMDQwMApTdWJqZWN0OiBbUEFUQ0hd IGRybS9yYWRlb246IGRvbid0IHNldHVwIGF1ZGlvIG9uIGFzaWNzIHRoYXQgZG9uJ3Qgc3VwcG9y dCBpdAoKYnVnOiBodHRwczovL2J1Z3ppbGxhLmtlcm5lbC5vcmcvc2hvd19idWcuY2dpP2lkPTk3 NzAxCgpSZXBvcnRlZC1ieTogTWlrYWVsIFBldHRlcnNzb24gPG1pa3BlbGludXhAZ21haWwuY29t PgpTaWduZWQtb2ZmLWJ5OiBBbGV4IERldWNoZXIgPGFsZXhhbmRlci5kZXVjaGVyQGFtZC5jb20+ CkNjOiBzdGFibGVAdmdlci5rZXJuZWwub3JnCi0tLQogZHJpdmVycy9ncHUvZHJtL3JhZGVvbi9y YWRlb25fYXVkaW8uYyB8IDQgKysrKwogMSBmaWxlIGNoYW5nZWQsIDQgaW5zZXJ0aW9ucygrKQoK ZGlmZiAtLWdpdCBhL2RyaXZlcnMvZ3B1L2RybS9yYWRlb24vcmFkZW9uX2F1ZGlvLmMgYi9kcml2 ZXJzL2dwdS9kcm0vcmFkZW9uL3JhZGVvbl9hdWRpby5jCmluZGV4IDhiODJhYmIuLmRjYjc3OTYg MTAwNjQ0Ci0tLSBhL2RyaXZlcnMvZ3B1L2RybS9yYWRlb24vcmFkZW9uX2F1ZGlvLmMKKysrIGIv ZHJpdmVycy9ncHUvZHJtL3JhZGVvbi9yYWRlb25fYXVkaW8uYwpAQCAtNDY0LDYgKzQ2NCwxMCBA QCB2b2lkIHJhZGVvbl9hdWRpb19kZXRlY3Qoc3RydWN0IGRybV9jb25uZWN0b3IgKmNvbm5lY3Rv ciwKIAkJcmV0dXJuOwogCiAJcmRldiA9IGNvbm5lY3Rvci0+ZW5jb2Rlci0+ZGV2LT5kZXZfcHJp dmF0ZTsKKworCWlmICghcmFkZW9uX2F1ZGlvX2NoaXBzZXRfc3VwcG9ydGVkKHJkZXYpKQorCQly ZXR1cm47CisKIAlyYWRlb25fZW5jb2RlciA9IHRvX3JhZGVvbl9lbmNvZGVyKGNvbm5lY3Rvci0+ ZW5jb2Rlcik7CiAJZGlnID0gcmFkZW9uX2VuY29kZXItPmVuY19wcml2OwogCi0tIAoxLjguMy4x Cgo= --_002_A3397C8B8B789E45844E7EC5DEAD89D06363F59Bsatlexdag05amdc_-- -- 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/