Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753889AbaKEJFT (ORCPT ); Wed, 5 Nov 2014 04:05:19 -0500 Received: from mga02.intel.com ([134.134.136.20]:9153 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751198AbaKEJFL (ORCPT ); Wed, 5 Nov 2014 04:05:11 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.04,691,1406617200"; d="scan'208";a="484666382" Message-ID: <5459E82B.2080109@linux.intel.com> Date: Wed, 05 Nov 2014 17:04:43 +0800 From: Jiang Liu Organization: Intel User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Joerg Roedel CC: Benjamin Herrenschmidt , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , "Rafael J. Wysocki" , Bjorn Helgaas , Randy Dunlap , Yinghai Lu , Borislav Petkov , Grant Likely , Marc Zyngier , Yingjoe Chen , Matthias Brugger , Konrad Rzeszutek Wilk , Andrew Morton , Tony Luck , Greg Kroah-Hartman , x86@kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [Patch Part2 v4 00/31] Enable hierarchy irqdomian on x86 platforms References: <1415102525-9898-1-git-send-email-jiang.liu@linux.intel.com> <20141104144730.GE14512@8bytes.org> <5458ECF3.4040308@linux.intel.com> <20141105085154.GG10744@8bytes.org> In-Reply-To: <20141105085154.GG10744@8bytes.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2014/11/5 16:51, Joerg Roedel wrote: > On Tue, Nov 04, 2014 at 11:12:51PM +0800, Jiang Liu wrote: >> Do you have the call stack? > > Okay, had some issues with serial setup, but now its working. Here is > the complete panic msg from the AMD Kaveri box (the panic only occurs > with IOMMU enabled): > > [ 2.487552] ahci 0000:00:11.0: AHCI 0001.0300 32 slots 8 ports 6 Gbps 0xff impl SATA mode > [ 2.495844] ahci 0000:00:11.0: flags: 64bit ncq sntf ilck pm led clo pmp pio slum part > [ 2.504592] BUG: unable to handle kernel NULL pointer dereference at (null) > [ 2.512618] IP: [] msi_set_mask_bit+0xd/0x50 > [ 2.518556] PGD 0 > [ 2.520672] Oops: 0000 [#1] PREEMPT SMP > [ 2.524784] Modules linked in: > [ 2.527946] CPU: 3 PID: 1 Comm: swapper/0 Not tainted 3.18.0-rc3+ #4 > [ 2.534384] Hardware name: Gigabyte Technology Co., Ltd. To be filled by O.E.M./F2A88XM-HD3, BIOS F6 05/28/2014 > [ 2.544576] task: ffff88042b54c010 ti: ffff88042b550000 task.ti: ffff88042b550000 > [ 2.552170] RIP: 0010:[] [] msi_set_mask_bit+0xd/0x50 > [ 2.560594] RSP: 0000:ffff88042b5539d8 EFLAGS: 00010096 > [ 2.565954] RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff88042b553968 > [ 2.573175] RDX: ffffffff81c25f40 RSI: 0000000000000000 RDI: ffff880424c65c00 > [ 2.580361] RBP: ffff88042b5539e8 R08: ffff88042b519800 R09: ffff88042b000b20 > [ 2.587582] R10: ffff880424c24410 R11: 0000000000000246 R12: 0000000000000001 > [ 2.594762] R13: ffff8804253fb2c0 R14: ffff880424c24410 R15: ffff880424c65c98 > [ 2.601983] FS: 0000000000000000(0000) GS:ffff88043ed80000(0000) knlGS:0000000000000000 > [ 2.610181] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > [ 2.615975] CR2: 0000000000000000 CR3: 0000000001c16000 CR4: 00000000000407e0 > [ 2.623197] Stack: > [ 2.625264] ffff88042b5539f8 ffff880424c65c00 ffff88042b5539f8 ffffffff813688fb > [ 2.632936] ffff88042b553a18 ffffffff810b0603 ffff880424c65c00 ffff880424c65c00 > [ 2.640598] ffff88042b553a48 ffffffff810b0685 0000000000000000 0000000000000000 > [ 2.648261] Call Trace: > [ 2.650768] [] unmask_msi_irq+0xb/0x10 > [ 2.656222] [] irq_enable+0x33/0x50 > [ 2.661414] [] irq_startup+0x65/0x70 > [ 2.666696] [] __setup_irq+0x511/0x5a0 > [ 2.672152] [] ? __kmalloc_track_caller+0x256/0x4b0 > [ 2.678733] [] ? ahci_bad_pmp_check_ready+0x60/0x60 > [ 2.685347] [] request_threaded_irq+0xca/0x170 > [ 2.691529] [] ? ahci_bad_pmp_check_ready+0x60/0x60 > [ 2.698110] [] ? ahci_single_irq_intr+0x110/0x110 > [ 2.704517] [] devm_request_threaded_irq+0x5a/0xc0 > [ 2.711002] [] ahci_host_activate+0x143/0x220 > [ 2.717098] [] ahci_init_one+0x7b8/0xb00 > [ 2.722728] [] local_pci_probe+0x40/0xa0 > [ 2.728355] [] ? pci_match_device+0xe5/0x110 > [ 2.734365] [] pci_device_probe+0xd1/0x130 > [ 2.740164] [] driver_probe_device+0x8b/0x3d0 > [ 2.746216] [] __driver_attach+0x93/0xa0 > [ 2.751846] [] ? __device_attach+0x40/0x40 > [ 2.757681] [] bus_for_each_dev+0x63/0xa0 > [ 2.763385] [] driver_attach+0x19/0x20 > [ 2.768842] [] bus_add_driver+0x180/0x250 > [ 2.774591] [] ? ata_sff_init+0x33/0x33 > [ 2.780123] [] driver_register+0x5f/0xf0 > [ 2.785751] [] __pci_register_driver+0x47/0x50 > [ 2.791892] [] ahci_pci_driver_init+0x19/0x1b > [ 2.797954] [] do_one_initcall+0xb4/0x1f0 > [ 2.803667] [] ? __wake_up+0x43/0x60 > [ 2.808948] [] kernel_init_freeable+0x197/0x21f > [ 2.815181] [] ? initcall_blacklist+0xc0/0xc0 > [ 2.821280] [] ? rest_init+0x90/0x90 > [ 2.826561] [] kernel_init+0x9/0xf0 > [ 2.831756] [] ret_from_fork+0x7c/0xb0 > [ 2.837211] [] ? rest_init+0x90/0x90 > [ 2.842489] Code: c1 83 c9 01 83 c2 0c 85 f6 0f 45 c1 48 63 d2 48 03 57 28 89 02 5d c3 0f 1f 80 00 00 00 00 55 48 89 e5 53 48 83 ec 08 48 8b 5f 40 03 01 75 26 8b 4f 04 2b 4b 0c 89 f2 be 01 00 00 00 48 89 df > [ 2.864562] RIP [] msi_set_mask_bit+0xd/0x50 > [ 2.870588] RSP > [ 2.874127] CR2: 0000000000000000 > [ 2.877501] ---[ end trace dd9f8c29b83b2de1 ]--- > [ 2.882174] note: swapper/0[1] exited with preempt_count 1 > [ 2.887769] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000009 > [ 2.887769] > [ 2.897147] Kernel Offset: 0x0 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffff9fffffff) > [ 2.907440] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000009 Hi Joerg, Something is wrong with multiple MSI interrupt support, which is only enabled when IRQ remapping is in use. Keeping analyzing and will ask for you help when I have any ideas for debugging:) Regards! Gerry > > -- > 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/ > -- 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/