From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 812ABC433FE for ; Thu, 24 Feb 2022 16:00:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236753AbiBXQAe (ORCPT ); Thu, 24 Feb 2022 11:00:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233796AbiBXQAc (ORCPT ); Thu, 24 Feb 2022 11:00:32 -0500 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5A1E17924C; Thu, 24 Feb 2022 07:59:40 -0800 (PST) Received: by verein.lst.de (Postfix, from userid 2407) id 88B5268AFE; Thu, 24 Feb 2022 16:58:54 +0100 (CET) Date: Thu, 24 Feb 2022 16:58:54 +0100 From: Christoph Hellwig To: Boris Ostrovsky Cc: Christoph Hellwig , iommu@lists.linux-foundation.org, x86@kernel.org, Stefano Stabellini , Juergen Gross , Joerg Roedel , David Woodhouse , Lu Baolu , Robin Murphy , linux-arm-kernel@lists.infradead.org, xen-devel@lists.xenproject.org, linux-ia64@vger.kernel.org, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-hyperv@vger.kernel.org, tboot-devel@lists.sourceforge.net, linux-pci@vger.kernel.org Subject: Re: cleanup swiotlb initialization Message-ID: <20220224155854.GA30938@lst.de> References: <20220222153514.593231-1-hch@lst.de> <09cb4ad3-88e7-3744-b4b8-a6d745ecea9e@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <09cb4ad3-88e7-3744-b4b8-a6d745ecea9e@oracle.com> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-hyperv@vger.kernel.org Thanks. This looks really strange as early_amd_iommu_init should not interact much with the changes. I'll see if I can find a AMD system to test on. On Wed, Feb 23, 2022 at 07:57:49PM -0500, Boris Ostrovsky wrote: > [   37.377313] BUG: unable to handle page fault for address: ffffc90042880018 > [   37.378219] #PF: supervisor read access in kernel mode > [   37.378219] #PF: error_code(0x0000) - not-present page > [   37.378219] PGD 7c2f2ee067 P4D 7c2f2ee067 PUD 7bf019b067 PMD 105a30067 PTE 0 > [   37.378219] Oops: 0000 [#1] PREEMPT SMP NOPTI > [   37.378219] CPU: 14 PID: 1 Comm: swapper/0 Not tainted 5.17.0-rc5swiotlb #9 > [   37.378219] Hardware name: Oracle Corporation ORACLE SERVER E1-2c/ASY,Generic,SM,E1-2c, BIOS 49004900 12/23/2020 > [   37.378219] RIP: e030:init_iommu_one+0x248/0x2f0 > [   37.378219] Code: 48 89 43 68 48 85 c0 74 c4 be 00 20 00 00 48 89 df e8 ea ee ff ff 48 89 43 78 48 85 c0 74 ae c6 83 98 00 00 00 00 48 8b 43 38 <48> 8b 40 18 a8 01 74 07 83 8b a8 04 00 00 01 f6 83 a8 04 00 00 01 > [   37.378219] RSP: e02b:ffffc9004044bd18 EFLAGS: 00010286 > [   37.378219] RAX: ffffc90042880000 RBX: ffff888107260800 RCX: 0000000000000000 > [   37.378219] RDX: 0000000080000000 RSI: ffffea00041cab80 RDI: 00000000ffffffff > [   37.378219] RBP: ffffc9004044bd38 R08: 0000000000000901 R09: ffffea00041cab00 > [   37.378219] R10: 0000000000000002 R11: 0000000000000000 R12: ffffc90040435008 > [   37.378219] R13: 0000000000080000 R14: 00000000efa00000 R15: 0000000000000000 > [   37.378219] FS:  0000000000000000(0000) GS:ffff88fef4180000(0000) knlGS:0000000000000000 > [   37.378219] CS:  e030 DS: 0000 ES: 0000 CR0: 0000000080050033 > [   37.378219] CR2: ffffc90042880018 CR3: 000000000260a000 CR4: 0000000000050660 > [   37.378219] Call Trace: > [   37.378219]  > [   37.378219]  early_amd_iommu_init+0x3c5/0x72d > [   37.378219]  ? iommu_setup+0x284/0x284 > [   37.378219]  state_next+0x158/0x68f > [   37.378219]  ? iommu_setup+0x284/0x284 > [   37.378219]  iommu_go_to_state+0x28/0x2d > [   37.378219]  amd_iommu_init+0x15/0x4b > [   37.378219]  ? iommu_setup+0x284/0x284 > [   37.378219]  pci_iommu_init+0x12/0x37 > [   37.378219]  do_one_initcall+0x48/0x210 > [   37.378219]  kernel_init_freeable+0x229/0x28c > [   37.378219]  ? rest_init+0xe0/0xe0 > [   37.963966]  kernel_init+0x1a/0x130 > [   37.979415]  ret_from_fork+0x22/0x30 > [   37.991436]  > [   37.999465] Modules linked in: > [   38.007413] CR2: ffffc90042880018 > [   38.019416] ---[ end trace 0000000000000000 ]--- > [   38.023418] RIP: e030:init_iommu_one+0x248/0x2f0 > [   38.023418] Code: 48 89 43 68 48 85 c0 74 c4 be 00 20 00 00 48 89 df e8 ea ee ff ff 48 89 43 78 48 85 c0 74 ae c6 83 98 00 00 00 00 48 8b 43 38 <48> 8b 40 18 a8 01 74 07 83 8b a8 04 00 00 01 f6 83 a8 04 00 00 01 > [   38.023418] RSP: e02b:ffffc9004044bd18 EFLAGS: 00010286 > [   38.023418] RAX: ffffc90042880000 RBX: ffff888107260800 RCX: 0000000000000000 > [   38.155413] RDX: 0000000080000000 RSI: ffffea00041cab80 RDI: 00000000ffffffff > [   38.175965] Freeing initrd memory: 62640K > [   38.155413] RBP: ffffc9004044bd38 R08: 0000000000000901 R09: ffffea00041cab00 > [   38.155413] R10: 0000000000000002 R11: 0000000000000000 R12: ffffc90040435008 > [   38.155413] R13: 0000000000080000 R14: 00000000efa00000 R15: 0000000000000000 > [   38.155413] FS:  0000000000000000(0000) GS:ffff88fef4180000(0000) knlGS:0000000000000000 > [   38.287414] CS:  e030 DS: 0000 ES: 0000 CR0: 0000000080050033 > [   38.309557] CR2: ffffc90042880018 CR3: 000000000260a000 CR4: 0000000000050660 > [   38.332403] Kernel panic - not syncing: Fatal exception > [   38.351414] Rebooting in 20 seconds.. > > > > -boris ---end quoted text--- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Date: Thu, 24 Feb 2022 15:58:54 +0000 Subject: Re: cleanup swiotlb initialization Message-Id: <20220224155854.GA30938@lst.de> List-Id: References: <20220222153514.593231-1-hch@lst.de> <09cb4ad3-88e7-3744-b4b8-a6d745ecea9e@oracle.com> In-Reply-To: <09cb4ad3-88e7-3744-b4b8-a6d745ecea9e@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: Boris Ostrovsky Cc: Christoph Hellwig , iommu@lists.linux-foundation.org, x86@kernel.org, Stefano Stabellini , Juergen Gross , Joerg Roedel , David Woodhouse , Lu Baolu , Robin Murphy , linux-arm-kernel@lists.infradead.org, xen-devel@lists.xenproject.org, linux-ia64@vger.kernel.org, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-hyperv@vger.kernel.org, tboot-devel@lists.sourceforge.net, linux-pci@vger.kernel.org Thanks. This looks really strange as early_amd_iommu_init should not interact much with the changes. I'll see if I can find a AMD system to test on. On Wed, Feb 23, 2022 at 07:57:49PM -0500, Boris Ostrovsky wrote: > [=A0=A0 37.377313] BUG: unable to handle page fault for address: ffffc900= 42880018 > [=A0=A0 37.378219] #PF: supervisor read access in kernel mode > [=A0=A0 37.378219] #PF: error_code(0x0000) - not-present page > [=A0=A0 37.378219] PGD 7c2f2ee067 P4D 7c2f2ee067 PUD 7bf019b067 PMD 105a3= 0067 PTE 0 > [=A0=A0 37.378219] Oops: 0000 [#1] PREEMPT SMP NOPTI > [=A0=A0 37.378219] CPU: 14 PID: 1 Comm: swapper/0 Not tainted 5.17.0-rc5s= wiotlb #9 > [=A0=A0 37.378219] Hardware name: Oracle Corporation ORACLE SERVER E1-2c/= ASY,Generic,SM,E1-2c, BIOS 49004900 12/23/2020 > [=A0=A0 37.378219] RIP: e030:init_iommu_one+0x248/0x2f0 > [=A0=A0 37.378219] Code: 48 89 43 68 48 85 c0 74 c4 be 00 20 00 00 48 89 = df e8 ea ee ff ff 48 89 43 78 48 85 c0 74 ae c6 83 98 00 00 00 00 48 8b 43 = 38 <48> 8b 40 18 a8 01 74 07 83 8b a8 04 00 00 01 f6 83 a8 04 00 00 01 > [=A0=A0 37.378219] RSP: e02b:ffffc9004044bd18 EFLAGS: 00010286 > [=A0=A0 37.378219] RAX: ffffc90042880000 RBX: ffff888107260800 RCX: 00000= 00000000000 > [=A0=A0 37.378219] RDX: 0000000080000000 RSI: ffffea00041cab80 RDI: 00000= 000ffffffff > [=A0=A0 37.378219] RBP: ffffc9004044bd38 R08: 0000000000000901 R09: ffffe= a00041cab00 > [=A0=A0 37.378219] R10: 0000000000000002 R11: 0000000000000000 R12: ffffc= 90040435008 > [=A0=A0 37.378219] R13: 0000000000080000 R14: 00000000efa00000 R15: 00000= 00000000000 > [=A0=A0 37.378219] FS:=A0 0000000000000000(0000) GS:ffff88fef4180000(0000= ) knlGS:0000000000000000 > [=A0=A0 37.378219] CS:=A0 e030 DS: 0000 ES: 0000 CR0: 0000000080050033 > [=A0=A0 37.378219] CR2: ffffc90042880018 CR3: 000000000260a000 CR4: 00000= 00000050660 > [=A0=A0 37.378219] Call Trace: > [=A0=A0 37.378219]=A0 > [=A0=A0 37.378219]=A0 early_amd_iommu_init+0x3c5/0x72d > [=A0=A0 37.378219]=A0 ? iommu_setup+0x284/0x284 > [=A0=A0 37.378219]=A0 state_next+0x158/0x68f > [=A0=A0 37.378219]=A0 ? iommu_setup+0x284/0x284 > [=A0=A0 37.378219]=A0 iommu_go_to_state+0x28/0x2d > [=A0=A0 37.378219]=A0 amd_iommu_init+0x15/0x4b > [=A0=A0 37.378219]=A0 ? iommu_setup+0x284/0x284 > [=A0=A0 37.378219]=A0 pci_iommu_init+0x12/0x37 > [=A0=A0 37.378219]=A0 do_one_initcall+0x48/0x210 > [=A0=A0 37.378219]=A0 kernel_init_freeable+0x229/0x28c > [=A0=A0 37.378219]=A0 ? rest_init+0xe0/0xe0 > [=A0=A0 37.963966]=A0 kernel_init+0x1a/0x130 > [=A0=A0 37.979415]=A0 ret_from_fork+0x22/0x30 > [=A0=A0 37.991436]=A0 > [=A0=A0 37.999465] Modules linked in: > [=A0=A0 38.007413] CR2: ffffc90042880018 > [=A0=A0 38.019416] ---[ end trace 0000000000000000 ]--- > [=A0=A0 38.023418] RIP: e030:init_iommu_one+0x248/0x2f0 > [=A0=A0 38.023418] Code: 48 89 43 68 48 85 c0 74 c4 be 00 20 00 00 48 89 = df e8 ea ee ff ff 48 89 43 78 48 85 c0 74 ae c6 83 98 00 00 00 00 48 8b 43 = 38 <48> 8b 40 18 a8 01 74 07 83 8b a8 04 00 00 01 f6 83 a8 04 00 00 01 > [=A0=A0 38.023418] RSP: e02b:ffffc9004044bd18 EFLAGS: 00010286 > [=A0=A0 38.023418] RAX: ffffc90042880000 RBX: ffff888107260800 RCX: 00000= 00000000000 > [=A0=A0 38.155413] RDX: 0000000080000000 RSI: ffffea00041cab80 RDI: 00000= 000ffffffff > [=A0=A0 38.175965] Freeing initrd memory: 62640K > [=A0=A0 38.155413] RBP: ffffc9004044bd38 R08: 0000000000000901 R09: ffffe= a00041cab00 > [=A0=A0 38.155413] R10: 0000000000000002 R11: 0000000000000000 R12: ffffc= 90040435008 > [=A0=A0 38.155413] R13: 0000000000080000 R14: 00000000efa00000 R15: 00000= 00000000000 > [=A0=A0 38.155413] FS:=A0 0000000000000000(0000) GS:ffff88fef4180000(0000= ) knlGS:0000000000000000 > [=A0=A0 38.287414] CS:=A0 e030 DS: 0000 ES: 0000 CR0: 0000000080050033 > [=A0=A0 38.309557] CR2: ffffc90042880018 CR3: 000000000260a000 CR4: 00000= 00000050660 > [=A0=A0 38.332403] Kernel panic - not syncing: Fatal exception > [=A0=A0 38.351414] Rebooting in 20 seconds.. > > > > -boris ---end quoted text--- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AA3D2C433F5 for ; Thu, 24 Feb 2022 15:59:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 49E4881B23; Thu, 24 Feb 2022 15:59:05 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SDj7-KMcbrOO; Thu, 24 Feb 2022 15:59:04 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp1.osuosl.org (Postfix) with ESMTPS id 2A64F813B9; Thu, 24 Feb 2022 15:59:04 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 07F00C0021; Thu, 24 Feb 2022 15:59:04 +0000 (UTC) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists.linuxfoundation.org (Postfix) with ESMTP id 62027C0011 for ; Thu, 24 Feb 2022 15:59:02 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 4DD6A607FE for ; Thu, 24 Feb 2022 15:59:02 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FX9FiOmlcWiR for ; Thu, 24 Feb 2022 15:59:01 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by smtp3.osuosl.org (Postfix) with ESMTPS id 1BA816076A for ; Thu, 24 Feb 2022 15:59:00 +0000 (UTC) Received: by verein.lst.de (Postfix, from userid 2407) id 88B5268AFE; Thu, 24 Feb 2022 16:58:54 +0100 (CET) Date: Thu, 24 Feb 2022 16:58:54 +0100 From: Christoph Hellwig To: Boris Ostrovsky Subject: Re: cleanup swiotlb initialization Message-ID: <20220224155854.GA30938@lst.de> References: <20220222153514.593231-1-hch@lst.de> <09cb4ad3-88e7-3744-b4b8-a6d745ecea9e@oracle.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <09cb4ad3-88e7-3744-b4b8-a6d745ecea9e@oracle.com> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: Juergen Gross , linux-s390@vger.kernel.org, linux-hyperv@vger.kernel.org, Stefano Stabellini , linux-ia64@vger.kernel.org, Robin Murphy , x86@kernel.org, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, iommu@lists.linux-foundation.org, tboot-devel@lists.sourceforge.net, linux-pci@vger.kernel.org, xen-devel@lists.xenproject.org, linux-riscv@lists.infradead.org, David Woodhouse , Christoph Hellwig , linux-arm-kernel@lists.infradead.org X-BeenThere: iommu@lists.linux-foundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Development issues for Linux IOMMU support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Errors-To: iommu-bounces@lists.linux-foundation.org Sender: "iommu" Thanks. This looks really strange as early_amd_iommu_init should not interact much with the changes. I'll see if I can find a AMD system to test on. On Wed, Feb 23, 2022 at 07:57:49PM -0500, Boris Ostrovsky wrote: > [=A0=A0 37.377313] BUG: unable to handle page fault for address: ffffc900= 42880018 > [=A0=A0 37.378219] #PF: supervisor read access in kernel mode > [=A0=A0 37.378219] #PF: error_code(0x0000) - not-present page > [=A0=A0 37.378219] PGD 7c2f2ee067 P4D 7c2f2ee067 PUD 7bf019b067 PMD 105a3= 0067 PTE 0 > [=A0=A0 37.378219] Oops: 0000 [#1] PREEMPT SMP NOPTI > [=A0=A0 37.378219] CPU: 14 PID: 1 Comm: swapper/0 Not tainted 5.17.0-rc5s= wiotlb #9 > [=A0=A0 37.378219] Hardware name: Oracle Corporation ORACLE SERVER E1-2c/= ASY,Generic,SM,E1-2c, BIOS 49004900 12/23/2020 > [=A0=A0 37.378219] RIP: e030:init_iommu_one+0x248/0x2f0 > [=A0=A0 37.378219] Code: 48 89 43 68 48 85 c0 74 c4 be 00 20 00 00 48 89 = df e8 ea ee ff ff 48 89 43 78 48 85 c0 74 ae c6 83 98 00 00 00 00 48 8b 43 = 38 <48> 8b 40 18 a8 01 74 07 83 8b a8 04 00 00 01 f6 83 a8 04 00 00 01 > [=A0=A0 37.378219] RSP: e02b:ffffc9004044bd18 EFLAGS: 00010286 > [=A0=A0 37.378219] RAX: ffffc90042880000 RBX: ffff888107260800 RCX: 00000= 00000000000 > [=A0=A0 37.378219] RDX: 0000000080000000 RSI: ffffea00041cab80 RDI: 00000= 000ffffffff > [=A0=A0 37.378219] RBP: ffffc9004044bd38 R08: 0000000000000901 R09: ffffe= a00041cab00 > [=A0=A0 37.378219] R10: 0000000000000002 R11: 0000000000000000 R12: ffffc= 90040435008 > [=A0=A0 37.378219] R13: 0000000000080000 R14: 00000000efa00000 R15: 00000= 00000000000 > [=A0=A0 37.378219] FS:=A0 0000000000000000(0000) GS:ffff88fef4180000(0000= ) knlGS:0000000000000000 > [=A0=A0 37.378219] CS:=A0 e030 DS: 0000 ES: 0000 CR0: 0000000080050033 > [=A0=A0 37.378219] CR2: ffffc90042880018 CR3: 000000000260a000 CR4: 00000= 00000050660 > [=A0=A0 37.378219] Call Trace: > [=A0=A0 37.378219]=A0 > [=A0=A0 37.378219]=A0 early_amd_iommu_init+0x3c5/0x72d > [=A0=A0 37.378219]=A0 ? iommu_setup+0x284/0x284 > [=A0=A0 37.378219]=A0 state_next+0x158/0x68f > [=A0=A0 37.378219]=A0 ? iommu_setup+0x284/0x284 > [=A0=A0 37.378219]=A0 iommu_go_to_state+0x28/0x2d > [=A0=A0 37.378219]=A0 amd_iommu_init+0x15/0x4b > [=A0=A0 37.378219]=A0 ? iommu_setup+0x284/0x284 > [=A0=A0 37.378219]=A0 pci_iommu_init+0x12/0x37 > [=A0=A0 37.378219]=A0 do_one_initcall+0x48/0x210 > [=A0=A0 37.378219]=A0 kernel_init_freeable+0x229/0x28c > [=A0=A0 37.378219]=A0 ? rest_init+0xe0/0xe0 > [=A0=A0 37.963966]=A0 kernel_init+0x1a/0x130 > [=A0=A0 37.979415]=A0 ret_from_fork+0x22/0x30 > [=A0=A0 37.991436]=A0 > [=A0=A0 37.999465] Modules linked in: > [=A0=A0 38.007413] CR2: ffffc90042880018 > [=A0=A0 38.019416] ---[ end trace 0000000000000000 ]--- > [=A0=A0 38.023418] RIP: e030:init_iommu_one+0x248/0x2f0 > [=A0=A0 38.023418] Code: 48 89 43 68 48 85 c0 74 c4 be 00 20 00 00 48 89 = df e8 ea ee ff ff 48 89 43 78 48 85 c0 74 ae c6 83 98 00 00 00 00 48 8b 43 = 38 <48> 8b 40 18 a8 01 74 07 83 8b a8 04 00 00 01 f6 83 a8 04 00 00 01 > [=A0=A0 38.023418] RSP: e02b:ffffc9004044bd18 EFLAGS: 00010286 > [=A0=A0 38.023418] RAX: ffffc90042880000 RBX: ffff888107260800 RCX: 00000= 00000000000 > [=A0=A0 38.155413] RDX: 0000000080000000 RSI: ffffea00041cab80 RDI: 00000= 000ffffffff > [=A0=A0 38.175965] Freeing initrd memory: 62640K > [=A0=A0 38.155413] RBP: ffffc9004044bd38 R08: 0000000000000901 R09: ffffe= a00041cab00 > [=A0=A0 38.155413] R10: 0000000000000002 R11: 0000000000000000 R12: ffffc= 90040435008 > [=A0=A0 38.155413] R13: 0000000000080000 R14: 00000000efa00000 R15: 00000= 00000000000 > [=A0=A0 38.155413] FS:=A0 0000000000000000(0000) GS:ffff88fef4180000(0000= ) knlGS:0000000000000000 > [=A0=A0 38.287414] CS:=A0 e030 DS: 0000 ES: 0000 CR0: 0000000080050033 > [=A0=A0 38.309557] CR2: ffffc90042880018 CR3: 000000000260a000 CR4: 00000= 00000050660 > [=A0=A0 38.332403] Kernel panic - not syncing: Fatal exception > [=A0=A0 38.351414] Rebooting in 20 seconds.. > > > > -boris ---end quoted text--- _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0749CC433F5 for ; Thu, 24 Feb 2022 15:59:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=lkaJ21N3+t1xwQTo3K3ST90LNIERJyiGjkizHjc/7J8=; b=T4KLngVeBeOlJ3 lOtXSo3ZK0zTiYEbO3uIufqSBCdPTrZNVP4IqgqWYqjU0YouXtdg9eEuXLqmnW5TQuOW9Hl84z+8C 6cQwtyLqjk0UJtC8S7UQxmgrULu0NgyrGlcUINLe8zQXb6H/4A3jn5IzDx599Yp0wTguGzB9Z+79A 0LrLuC+Cptfji0qt//vyZGiQC5oEMa3xNjph0hb8ynbU3HdPJ7va836gHDnjgNMl6Ou+Q+5rh5sjP clFQK60lqxaJkhiDRX1q+RVvRf2dnKSszDF90EV6aK6WFGXhw1ziluzPrdJT8+AouJNRFL2Bwi4Zw MA5Lj7uKXthZCdE9lSAQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nNGWV-001Pj6-II; Thu, 24 Feb 2022 15:59:19 +0000 Received: from verein.lst.de ([213.95.11.211]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nNGWD-001PbV-5y; Thu, 24 Feb 2022 15:59:03 +0000 Received: by verein.lst.de (Postfix, from userid 2407) id 88B5268AFE; Thu, 24 Feb 2022 16:58:54 +0100 (CET) Date: Thu, 24 Feb 2022 16:58:54 +0100 From: Christoph Hellwig To: Boris Ostrovsky Cc: Christoph Hellwig , iommu@lists.linux-foundation.org, x86@kernel.org, Stefano Stabellini , Juergen Gross , Joerg Roedel , David Woodhouse , Lu Baolu , Robin Murphy , linux-arm-kernel@lists.infradead.org, xen-devel@lists.xenproject.org, linux-ia64@vger.kernel.org, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-hyperv@vger.kernel.org, tboot-devel@lists.sourceforge.net, linux-pci@vger.kernel.org Subject: Re: cleanup swiotlb initialization Message-ID: <20220224155854.GA30938@lst.de> References: <20220222153514.593231-1-hch@lst.de> <09cb4ad3-88e7-3744-b4b8-a6d745ecea9e@oracle.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <09cb4ad3-88e7-3744-b4b8-a6d745ecea9e@oracle.com> User-Agent: Mutt/1.5.17 (2007-11-01) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220224_075901_552660_F55128D3 X-CRM114-Status: GOOD ( 13.76 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Thanks. This looks really strange as early_amd_iommu_init should not interact much with the changes. I'll see if I can find a AMD system to test on. On Wed, Feb 23, 2022 at 07:57:49PM -0500, Boris Ostrovsky wrote: > [=A0=A0 37.377313] BUG: unable to handle page fault for address: ffffc900= 42880018 > [=A0=A0 37.378219] #PF: supervisor read access in kernel mode > [=A0=A0 37.378219] #PF: error_code(0x0000) - not-present page > [=A0=A0 37.378219] PGD 7c2f2ee067 P4D 7c2f2ee067 PUD 7bf019b067 PMD 105a3= 0067 PTE 0 > [=A0=A0 37.378219] Oops: 0000 [#1] PREEMPT SMP NOPTI > [=A0=A0 37.378219] CPU: 14 PID: 1 Comm: swapper/0 Not tainted 5.17.0-rc5s= wiotlb #9 > [=A0=A0 37.378219] Hardware name: Oracle Corporation ORACLE SERVER E1-2c/= ASY,Generic,SM,E1-2c, BIOS 49004900 12/23/2020 > [=A0=A0 37.378219] RIP: e030:init_iommu_one+0x248/0x2f0 > [=A0=A0 37.378219] Code: 48 89 43 68 48 85 c0 74 c4 be 00 20 00 00 48 89 = df e8 ea ee ff ff 48 89 43 78 48 85 c0 74 ae c6 83 98 00 00 00 00 48 8b 43 = 38 <48> 8b 40 18 a8 01 74 07 83 8b a8 04 00 00 01 f6 83 a8 04 00 00 01 > [=A0=A0 37.378219] RSP: e02b:ffffc9004044bd18 EFLAGS: 00010286 > [=A0=A0 37.378219] RAX: ffffc90042880000 RBX: ffff888107260800 RCX: 00000= 00000000000 > [=A0=A0 37.378219] RDX: 0000000080000000 RSI: ffffea00041cab80 RDI: 00000= 000ffffffff > [=A0=A0 37.378219] RBP: ffffc9004044bd38 R08: 0000000000000901 R09: ffffe= a00041cab00 > [=A0=A0 37.378219] R10: 0000000000000002 R11: 0000000000000000 R12: ffffc= 90040435008 > [=A0=A0 37.378219] R13: 0000000000080000 R14: 00000000efa00000 R15: 00000= 00000000000 > [=A0=A0 37.378219] FS:=A0 0000000000000000(0000) GS:ffff88fef4180000(0000= ) knlGS:0000000000000000 > [=A0=A0 37.378219] CS:=A0 e030 DS: 0000 ES: 0000 CR0: 0000000080050033 > [=A0=A0 37.378219] CR2: ffffc90042880018 CR3: 000000000260a000 CR4: 00000= 00000050660 > [=A0=A0 37.378219] Call Trace: > [=A0=A0 37.378219]=A0 > [=A0=A0 37.378219]=A0 early_amd_iommu_init+0x3c5/0x72d > [=A0=A0 37.378219]=A0 ? iommu_setup+0x284/0x284 > [=A0=A0 37.378219]=A0 state_next+0x158/0x68f > [=A0=A0 37.378219]=A0 ? iommu_setup+0x284/0x284 > [=A0=A0 37.378219]=A0 iommu_go_to_state+0x28/0x2d > [=A0=A0 37.378219]=A0 amd_iommu_init+0x15/0x4b > [=A0=A0 37.378219]=A0 ? iommu_setup+0x284/0x284 > [=A0=A0 37.378219]=A0 pci_iommu_init+0x12/0x37 > [=A0=A0 37.378219]=A0 do_one_initcall+0x48/0x210 > [=A0=A0 37.378219]=A0 kernel_init_freeable+0x229/0x28c > [=A0=A0 37.378219]=A0 ? rest_init+0xe0/0xe0 > [=A0=A0 37.963966]=A0 kernel_init+0x1a/0x130 > [=A0=A0 37.979415]=A0 ret_from_fork+0x22/0x30 > [=A0=A0 37.991436]=A0 > [=A0=A0 37.999465] Modules linked in: > [=A0=A0 38.007413] CR2: ffffc90042880018 > [=A0=A0 38.019416] ---[ end trace 0000000000000000 ]--- > [=A0=A0 38.023418] RIP: e030:init_iommu_one+0x248/0x2f0 > [=A0=A0 38.023418] Code: 48 89 43 68 48 85 c0 74 c4 be 00 20 00 00 48 89 = df e8 ea ee ff ff 48 89 43 78 48 85 c0 74 ae c6 83 98 00 00 00 00 48 8b 43 = 38 <48> 8b 40 18 a8 01 74 07 83 8b a8 04 00 00 01 f6 83 a8 04 00 00 01 > [=A0=A0 38.023418] RSP: e02b:ffffc9004044bd18 EFLAGS: 00010286 > [=A0=A0 38.023418] RAX: ffffc90042880000 RBX: ffff888107260800 RCX: 00000= 00000000000 > [=A0=A0 38.155413] RDX: 0000000080000000 RSI: ffffea00041cab80 RDI: 00000= 000ffffffff > [=A0=A0 38.175965] Freeing initrd memory: 62640K > [=A0=A0 38.155413] RBP: ffffc9004044bd38 R08: 0000000000000901 R09: ffffe= a00041cab00 > [=A0=A0 38.155413] R10: 0000000000000002 R11: 0000000000000000 R12: ffffc= 90040435008 > [=A0=A0 38.155413] R13: 0000000000080000 R14: 00000000efa00000 R15: 00000= 00000000000 > [=A0=A0 38.155413] FS:=A0 0000000000000000(0000) GS:ffff88fef4180000(0000= ) knlGS:0000000000000000 > [=A0=A0 38.287414] CS:=A0 e030 DS: 0000 ES: 0000 CR0: 0000000080050033 > [=A0=A0 38.309557] CR2: ffffc90042880018 CR3: 000000000260a000 CR4: 00000= 00000050660 > [=A0=A0 38.332403] Kernel panic - not syncing: Fatal exception > [=A0=A0 38.351414] Rebooting in 20 seconds.. > > > > -boris ---end quoted text--- _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8E8E0C433F5 for ; Thu, 24 Feb 2022 15:59:33 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4K4HfC13Tmz30Q9 for ; Fri, 25 Feb 2022 02:59:31 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lst.de (client-ip=213.95.11.211; helo=verein.lst.de; envelope-from=hch@lst.de; receiver=) Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4K4Hdg0S3tz2xtp for ; Fri, 25 Feb 2022 02:59:01 +1100 (AEDT) Received: by verein.lst.de (Postfix, from userid 2407) id 88B5268AFE; Thu, 24 Feb 2022 16:58:54 +0100 (CET) Date: Thu, 24 Feb 2022 16:58:54 +0100 From: Christoph Hellwig To: Boris Ostrovsky Subject: Re: cleanup swiotlb initialization Message-ID: <20220224155854.GA30938@lst.de> References: <20220222153514.593231-1-hch@lst.de> <09cb4ad3-88e7-3744-b4b8-a6d745ecea9e@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <09cb4ad3-88e7-3744-b4b8-a6d745ecea9e@oracle.com> User-Agent: Mutt/1.5.17 (2007-11-01) X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Juergen Gross , linux-s390@vger.kernel.org, linux-hyperv@vger.kernel.org, Stefano Stabellini , linux-ia64@vger.kernel.org, Robin Murphy , Joerg Roedel , x86@kernel.org, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, iommu@lists.linux-foundation.org, tboot-devel@lists.sourceforge.net, linux-pci@vger.kernel.org, xen-devel@lists.xenproject.org, linux-riscv@lists.infradead.org, David Woodhouse , Christoph Hellwig , linux-arm-kernel@lists.infradead.org, Lu Baolu Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" Thanks. This looks really strange as early_amd_iommu_init should not interact much with the changes. I'll see if I can find a AMD system to test on. On Wed, Feb 23, 2022 at 07:57:49PM -0500, Boris Ostrovsky wrote: > [   37.377313] BUG: unable to handle page fault for address: ffffc90042880018 > [   37.378219] #PF: supervisor read access in kernel mode > [   37.378219] #PF: error_code(0x0000) - not-present page > [   37.378219] PGD 7c2f2ee067 P4D 7c2f2ee067 PUD 7bf019b067 PMD 105a30067 PTE 0 > [   37.378219] Oops: 0000 [#1] PREEMPT SMP NOPTI > [   37.378219] CPU: 14 PID: 1 Comm: swapper/0 Not tainted 5.17.0-rc5swiotlb #9 > [   37.378219] Hardware name: Oracle Corporation ORACLE SERVER E1-2c/ASY,Generic,SM,E1-2c, BIOS 49004900 12/23/2020 > [   37.378219] RIP: e030:init_iommu_one+0x248/0x2f0 > [   37.378219] Code: 48 89 43 68 48 85 c0 74 c4 be 00 20 00 00 48 89 df e8 ea ee ff ff 48 89 43 78 48 85 c0 74 ae c6 83 98 00 00 00 00 48 8b 43 38 <48> 8b 40 18 a8 01 74 07 83 8b a8 04 00 00 01 f6 83 a8 04 00 00 01 > [   37.378219] RSP: e02b:ffffc9004044bd18 EFLAGS: 00010286 > [   37.378219] RAX: ffffc90042880000 RBX: ffff888107260800 RCX: 0000000000000000 > [   37.378219] RDX: 0000000080000000 RSI: ffffea00041cab80 RDI: 00000000ffffffff > [   37.378219] RBP: ffffc9004044bd38 R08: 0000000000000901 R09: ffffea00041cab00 > [   37.378219] R10: 0000000000000002 R11: 0000000000000000 R12: ffffc90040435008 > [   37.378219] R13: 0000000000080000 R14: 00000000efa00000 R15: 0000000000000000 > [   37.378219] FS:  0000000000000000(0000) GS:ffff88fef4180000(0000) knlGS:0000000000000000 > [   37.378219] CS:  e030 DS: 0000 ES: 0000 CR0: 0000000080050033 > [   37.378219] CR2: ffffc90042880018 CR3: 000000000260a000 CR4: 0000000000050660 > [   37.378219] Call Trace: > [   37.378219]  > [   37.378219]  early_amd_iommu_init+0x3c5/0x72d > [   37.378219]  ? iommu_setup+0x284/0x284 > [   37.378219]  state_next+0x158/0x68f > [   37.378219]  ? iommu_setup+0x284/0x284 > [   37.378219]  iommu_go_to_state+0x28/0x2d > [   37.378219]  amd_iommu_init+0x15/0x4b > [   37.378219]  ? iommu_setup+0x284/0x284 > [   37.378219]  pci_iommu_init+0x12/0x37 > [   37.378219]  do_one_initcall+0x48/0x210 > [   37.378219]  kernel_init_freeable+0x229/0x28c > [   37.378219]  ? rest_init+0xe0/0xe0 > [   37.963966]  kernel_init+0x1a/0x130 > [   37.979415]  ret_from_fork+0x22/0x30 > [   37.991436]  > [   37.999465] Modules linked in: > [   38.007413] CR2: ffffc90042880018 > [   38.019416] ---[ end trace 0000000000000000 ]--- > [   38.023418] RIP: e030:init_iommu_one+0x248/0x2f0 > [   38.023418] Code: 48 89 43 68 48 85 c0 74 c4 be 00 20 00 00 48 89 df e8 ea ee ff ff 48 89 43 78 48 85 c0 74 ae c6 83 98 00 00 00 00 48 8b 43 38 <48> 8b 40 18 a8 01 74 07 83 8b a8 04 00 00 01 f6 83 a8 04 00 00 01 > [   38.023418] RSP: e02b:ffffc9004044bd18 EFLAGS: 00010286 > [   38.023418] RAX: ffffc90042880000 RBX: ffff888107260800 RCX: 0000000000000000 > [   38.155413] RDX: 0000000080000000 RSI: ffffea00041cab80 RDI: 00000000ffffffff > [   38.175965] Freeing initrd memory: 62640K > [   38.155413] RBP: ffffc9004044bd38 R08: 0000000000000901 R09: ffffea00041cab00 > [   38.155413] R10: 0000000000000002 R11: 0000000000000000 R12: ffffc90040435008 > [   38.155413] R13: 0000000000080000 R14: 00000000efa00000 R15: 0000000000000000 > [   38.155413] FS:  0000000000000000(0000) GS:ffff88fef4180000(0000) knlGS:0000000000000000 > [   38.287414] CS:  e030 DS: 0000 ES: 0000 CR0: 0000000080050033 > [   38.309557] CR2: ffffc90042880018 CR3: 000000000260a000 CR4: 0000000000050660 > [   38.332403] Kernel panic - not syncing: Fatal exception > [   38.351414] Rebooting in 20 seconds.. > > > > -boris ---end quoted text--- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DF01FC433EF for ; Thu, 24 Feb 2022 16:00:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=BE5IbYBuyqN8QFv9VarOYK5/tCcvF46ta8BuCakX3LI=; b=knPBiiNEQOFXW3 x68HL4Z3AIl2d1prtW2omQJvhp8sgA6z9ng6pBxZ4D9A4+aHm9TqTn/K7nazkyd6/8gttQJIVIUAG C+Jf/OnslRYOnCkgmFoeeDpBKh0xlLMvevx1c4JSETpqGALcy0iZFFjewu6wWZGlMFZDVZRh7FB33 ySo1iCbCEPQ5hOORIPdsW2S1W+v1YrwqBOkYIhdK/Vp9D4RLrR2EprLZpNKx5INYrUGkvIRRNcxJa IQj/4ETVxwgeVMAZIdAtFTge9mJRjGuXUQKHHP4YzcnsMTu3l//Ur5uj7IaE+CdxKrEMfDIL5/9uZ w9t+lTShLqz+9ZTStHjw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nNGWI-001Pdz-0j; Thu, 24 Feb 2022 15:59:06 +0000 Received: from verein.lst.de ([213.95.11.211]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nNGWD-001PbV-5y; Thu, 24 Feb 2022 15:59:03 +0000 Received: by verein.lst.de (Postfix, from userid 2407) id 88B5268AFE; Thu, 24 Feb 2022 16:58:54 +0100 (CET) Date: Thu, 24 Feb 2022 16:58:54 +0100 From: Christoph Hellwig To: Boris Ostrovsky Cc: Christoph Hellwig , iommu@lists.linux-foundation.org, x86@kernel.org, Stefano Stabellini , Juergen Gross , Joerg Roedel , David Woodhouse , Lu Baolu , Robin Murphy , linux-arm-kernel@lists.infradead.org, xen-devel@lists.xenproject.org, linux-ia64@vger.kernel.org, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-hyperv@vger.kernel.org, tboot-devel@lists.sourceforge.net, linux-pci@vger.kernel.org Subject: Re: cleanup swiotlb initialization Message-ID: <20220224155854.GA30938@lst.de> References: <20220222153514.593231-1-hch@lst.de> <09cb4ad3-88e7-3744-b4b8-a6d745ecea9e@oracle.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <09cb4ad3-88e7-3744-b4b8-a6d745ecea9e@oracle.com> User-Agent: Mutt/1.5.17 (2007-11-01) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220224_075901_552660_F55128D3 X-CRM114-Status: GOOD ( 13.76 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Thanks. This looks really strange as early_amd_iommu_init should not interact much with the changes. I'll see if I can find a AMD system to test on. On Wed, Feb 23, 2022 at 07:57:49PM -0500, Boris Ostrovsky wrote: > [=A0=A0 37.377313] BUG: unable to handle page fault for address: ffffc900= 42880018 > [=A0=A0 37.378219] #PF: supervisor read access in kernel mode > [=A0=A0 37.378219] #PF: error_code(0x0000) - not-present page > [=A0=A0 37.378219] PGD 7c2f2ee067 P4D 7c2f2ee067 PUD 7bf019b067 PMD 105a3= 0067 PTE 0 > [=A0=A0 37.378219] Oops: 0000 [#1] PREEMPT SMP NOPTI > [=A0=A0 37.378219] CPU: 14 PID: 1 Comm: swapper/0 Not tainted 5.17.0-rc5s= wiotlb #9 > [=A0=A0 37.378219] Hardware name: Oracle Corporation ORACLE SERVER E1-2c/= ASY,Generic,SM,E1-2c, BIOS 49004900 12/23/2020 > [=A0=A0 37.378219] RIP: e030:init_iommu_one+0x248/0x2f0 > [=A0=A0 37.378219] Code: 48 89 43 68 48 85 c0 74 c4 be 00 20 00 00 48 89 = df e8 ea ee ff ff 48 89 43 78 48 85 c0 74 ae c6 83 98 00 00 00 00 48 8b 43 = 38 <48> 8b 40 18 a8 01 74 07 83 8b a8 04 00 00 01 f6 83 a8 04 00 00 01 > [=A0=A0 37.378219] RSP: e02b:ffffc9004044bd18 EFLAGS: 00010286 > [=A0=A0 37.378219] RAX: ffffc90042880000 RBX: ffff888107260800 RCX: 00000= 00000000000 > [=A0=A0 37.378219] RDX: 0000000080000000 RSI: ffffea00041cab80 RDI: 00000= 000ffffffff > [=A0=A0 37.378219] RBP: ffffc9004044bd38 R08: 0000000000000901 R09: ffffe= a00041cab00 > [=A0=A0 37.378219] R10: 0000000000000002 R11: 0000000000000000 R12: ffffc= 90040435008 > [=A0=A0 37.378219] R13: 0000000000080000 R14: 00000000efa00000 R15: 00000= 00000000000 > [=A0=A0 37.378219] FS:=A0 0000000000000000(0000) GS:ffff88fef4180000(0000= ) knlGS:0000000000000000 > [=A0=A0 37.378219] CS:=A0 e030 DS: 0000 ES: 0000 CR0: 0000000080050033 > [=A0=A0 37.378219] CR2: ffffc90042880018 CR3: 000000000260a000 CR4: 00000= 00000050660 > [=A0=A0 37.378219] Call Trace: > [=A0=A0 37.378219]=A0 > [=A0=A0 37.378219]=A0 early_amd_iommu_init+0x3c5/0x72d > [=A0=A0 37.378219]=A0 ? iommu_setup+0x284/0x284 > [=A0=A0 37.378219]=A0 state_next+0x158/0x68f > [=A0=A0 37.378219]=A0 ? iommu_setup+0x284/0x284 > [=A0=A0 37.378219]=A0 iommu_go_to_state+0x28/0x2d > [=A0=A0 37.378219]=A0 amd_iommu_init+0x15/0x4b > [=A0=A0 37.378219]=A0 ? iommu_setup+0x284/0x284 > [=A0=A0 37.378219]=A0 pci_iommu_init+0x12/0x37 > [=A0=A0 37.378219]=A0 do_one_initcall+0x48/0x210 > [=A0=A0 37.378219]=A0 kernel_init_freeable+0x229/0x28c > [=A0=A0 37.378219]=A0 ? rest_init+0xe0/0xe0 > [=A0=A0 37.963966]=A0 kernel_init+0x1a/0x130 > [=A0=A0 37.979415]=A0 ret_from_fork+0x22/0x30 > [=A0=A0 37.991436]=A0 > [=A0=A0 37.999465] Modules linked in: > [=A0=A0 38.007413] CR2: ffffc90042880018 > [=A0=A0 38.019416] ---[ end trace 0000000000000000 ]--- > [=A0=A0 38.023418] RIP: e030:init_iommu_one+0x248/0x2f0 > [=A0=A0 38.023418] Code: 48 89 43 68 48 85 c0 74 c4 be 00 20 00 00 48 89 = df e8 ea ee ff ff 48 89 43 78 48 85 c0 74 ae c6 83 98 00 00 00 00 48 8b 43 = 38 <48> 8b 40 18 a8 01 74 07 83 8b a8 04 00 00 01 f6 83 a8 04 00 00 01 > [=A0=A0 38.023418] RSP: e02b:ffffc9004044bd18 EFLAGS: 00010286 > [=A0=A0 38.023418] RAX: ffffc90042880000 RBX: ffff888107260800 RCX: 00000= 00000000000 > [=A0=A0 38.155413] RDX: 0000000080000000 RSI: ffffea00041cab80 RDI: 00000= 000ffffffff > [=A0=A0 38.175965] Freeing initrd memory: 62640K > [=A0=A0 38.155413] RBP: ffffc9004044bd38 R08: 0000000000000901 R09: ffffe= a00041cab00 > [=A0=A0 38.155413] R10: 0000000000000002 R11: 0000000000000000 R12: ffffc= 90040435008 > [=A0=A0 38.155413] R13: 0000000000080000 R14: 00000000efa00000 R15: 00000= 00000000000 > [=A0=A0 38.155413] FS:=A0 0000000000000000(0000) GS:ffff88fef4180000(0000= ) knlGS:0000000000000000 > [=A0=A0 38.287414] CS:=A0 e030 DS: 0000 ES: 0000 CR0: 0000000080050033 > [=A0=A0 38.309557] CR2: ffffc90042880018 CR3: 000000000260a000 CR4: 00000= 00000050660 > [=A0=A0 38.332403] Kernel panic - not syncing: Fatal exception > [=A0=A0 38.351414] Rebooting in 20 seconds.. > > > > -boris ---end quoted text--- _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel