Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2869843imm; Mon, 10 Sep 2018 07:38:49 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY+0Mb7WtEyrSunOJLVXrMDM+2Mq6laRbwwdJrYSTLf2rCJ/6Kt3I3n3O0ohAoQmRn7UYYu X-Received: by 2002:a62:455b:: with SMTP id s88-v6mr23838468pfa.203.1536590329278; Mon, 10 Sep 2018 07:38:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536590329; cv=none; d=google.com; s=arc-20160816; b=A/mqYmHdXiVIkb6ud+t97wX2H4z2KfklQ4rOmUP/SY0i6oMCHGbHUSjxf4a3eX9ZvB K8yKuBKFxa+wWfk8FxoMlqroGwk9EyW6uF47ZAxLmW29vgyhumirm4lbo8hIXpTyyIrE TjwrxkcTd6pX8QIA6XwEW+02WA464027yc7iLRsgeisRQsSD92X83T7nLMhr2VFEWxir y/Kr+fGleRCPIHGQ++XcQphx5UGl3hWjhWpQXC3wA68Rati+CMtzzgwLRwlq7R4Kag4M RrQaWxBJVGWCw+fBn3IcmEvS0B4p3X+iEbSN9IjJycNandQmV8AhIPavh/F5qVG2MGj5 2FFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=u0sW+bRnw40MDu3J/Se8N5ZarQUfKWhUlGL0zYqMH/w=; b=J4uurzw0He+DjW91ALrP73o81E28xGNvmCWQ8CFI8mmH0P8LC7ZexvnEANixIXvehy YBeAueL/n8DdpBDYVhAlT+s2515FBpkn4fDsY/v2tCOUoF84V5nXJcMMw9sxG6rIOsjZ nfovvljbC7Nj3q+i58mn0I+Se7okmVqSndcNV1l+BvJF+i1AhTbwkDxufRJZBQTXwD/F cjLnuV9UL2BAfyN44OmQtue4ni4V6xw5iLny5s6gn0kA/yfbeQYtoH3GNpNxqpy5MztI wWzDRu6Lwz4kj6bFaUuRtYgQBuhXfEdgClLH+wEK/fQe2hSq3YJIMwihRSVjK8Rzwjm8 Dh2Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u134-v6si18559925pfc.244.2018.09.10.07.38.34; Mon, 10 Sep 2018 07:38:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728611AbeIJTa4 (ORCPT + 99 others); Mon, 10 Sep 2018 15:30:56 -0400 Received: from foss.arm.com ([217.140.101.70]:58682 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728127AbeIJTa4 (ORCPT ); Mon, 10 Sep 2018 15:30:56 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 4B46218A; Mon, 10 Sep 2018 07:36:33 -0700 (PDT) Received: from [10.4.12.131] (e110467-lin.emea.arm.com [10.4.12.131]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 828E43F557; Mon, 10 Sep 2018 07:36:32 -0700 (PDT) Subject: Re: 4.19-rc3: IOMMU PT warnings: WARNING: CPU: 0 PID: 1 at mm/page_alloc.c:4065 __alloc_pages_slowpath+0xb7b/0xcd0 To: Meelis Roos Cc: iommu@lists.linux-foundation.org, Christoph Hellwig , Linux Kernel list References: <20180910132304.GA20244@lst.de> From: Robin Murphy Message-ID: <059cc599-469a-fe31-ac5e-1198a75e6fb1@arm.com> Date: Mon, 10 Sep 2018 15:36:30 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/09/18 15:07, Meelis Roos wrote: >> Given the __alloc_pages_slowpath() warning, this looks like it's probably >> stemming from the oversized PASID table issue which a few other folks have hit >> too. I think this patch is the most up-to-date fix: >> >> https://www.mail-archive.com/iommu@lists.linux-foundation.org/msg25639.html > > The warning is gone but there seem to be more warnings about > IOMMU_DOMAIN_DMA: > > [ 0.171992] DMAR: Host address width 39 > [ 0.171994] DMAR: DRHD base: 0x000000fed90000 flags: 0x0 > [ 0.171998] DMAR: dmar0: reg_base_addr fed90000 ver 1:0 cap 1c0000c40660462 ecap 19e2ff0505e > [ 0.171999] DMAR: DRHD base: 0x000000fed91000 flags: 0x1 > [ 0.172002] DMAR: dmar1: reg_base_addr fed91000 ver 1:0 cap d2008c40660462 ecap f050da > [ 0.172004] DMAR: RMRR base: 0x000000ca02f000 end: 0x000000ca04efff > [ 0.172005] DMAR: RMRR base: 0x000000cb800000 end: 0x000000cfffffff > [ 0.172007] DMAR-IR: IOAPIC id 2 under DRHD base 0xfed91000 IOMMU 1 > [ 0.172008] DMAR-IR: HPET id 0 under DRHD base 0xfed91000 > [ 0.173441] DMAR-IR: Enabled IRQ remapping in xapic mode > > [...] > > [ 0.324160] DMAR: No ATSR found > [ 0.324175] DMAR: dmar0: Using Queued invalidation > [ 0.324229] DMAR: dmar1: Using Queued invalidation > [ 0.324453] DMAR: Hardware identity mapping for device 0000:00:00.0 > [ 0.324501] DMAR: Hardware identity mapping for device 0000:00:02.0 > [ 0.324503] DMAR: Hardware identity mapping for device 0000:00:08.0 > [ 0.324505] DMAR: Hardware identity mapping for device 0000:00:14.0 > [ 0.324507] DMAR: Hardware identity mapping for device 0000:00:16.0 > [ 0.324508] DMAR: Hardware identity mapping for device 0000:00:17.0 > [ 0.324510] DMAR: Hardware identity mapping for device 0000:00:1b.0 > [ 0.324512] DMAR: Hardware identity mapping for device 0000:00:1b.2 > [ 0.324513] DMAR: Hardware identity mapping for device 0000:00:1b.3 > [ 0.324515] DMAR: Hardware identity mapping for device 0000:00:1b.4 > [ 0.324516] DMAR: Hardware identity mapping for device 0000:00:1c.0 > [ 0.324518] DMAR: Hardware identity mapping for device 0000:00:1c.2 > [ 0.324520] DMAR: Hardware identity mapping for device 0000:00:1c.4 > [ 0.324521] DMAR: Hardware identity mapping for device 0000:00:1d.0 > [ 0.324523] DMAR: Hardware identity mapping for device 0000:00:1f.0 > [ 0.324524] DMAR: Hardware identity mapping for device 0000:00:1f.2 > [ 0.324526] DMAR: Hardware identity mapping for device 0000:00:1f.3 > [ 0.324528] DMAR: Hardware identity mapping for device 0000:00:1f.4 > [ 0.324529] DMAR: Hardware identity mapping for device 0000:00:1f.6 > [ 0.324532] DMAR: Hardware identity mapping for device 0000:09:00.0 > [ 0.324533] DMAR: Setting RMRR: > [ 0.324535] DMAR: Ignoring identity map for HW passthrough device 0000:00:02.0 [0xcb800000 - 0xcfffffff] > [ 0.324536] DMAR: Ignoring identity map for HW passthrough device 0000:00:14.0 [0xca02f000 - 0xca04efff] > [ 0.324539] DMAR: Prepare 0-16MiB unity mapping for LPC > [ 0.324540] DMAR: Ignoring identity map for HW passthrough device 0000:00:1f.0 [0x0 - 0xffffff] > [ 0.324576] DMAR: Intel(R) Virtualization Technology for Directed I/O > [ 0.324601] pci 0000:00:00.0: failed to allocate default IOMMU domain of type 4; falling back to IOMMU_DOMAIN_DMA Ah, that's probably related to 58d1131777a4 or something related in that area - intel-iommu does its own thing when it comes to passthrough domains and doesn't actually support IOMMU_DOMAIN_IDENTITY. AFAICS this is benign other than the log noise, since it's never supported default domains at all anyway. Robin. > [ 0.324604] iommu: Adding device 0000:00:00.0 to group 0 > [ 0.324610] pci 0000:00:02.0: failed to allocate default IOMMU domain of type 4; falling back to IOMMU_DOMAIN_DMA > [ 0.324613] iommu: Adding device 0000:00:02.0 to group 1 > [ 0.324619] pci 0000:00:08.0: failed to allocate default IOMMU domain of type 4; falling back to IOMMU_DOMAIN_DMA > [ 0.324621] iommu: Adding device 0000:00:08.0 to group 2 > [ 0.324629] pci 0000:00:14.0: failed to allocate default IOMMU domain of type 4; falling back to IOMMU_DOMAIN_DMA > [ 0.324631] iommu: Adding device 0000:00:14.0 to group 3 > [ 0.324639] pci 0000:00:16.0: failed to allocate default IOMMU domain of type 4; falling back to IOMMU_DOMAIN_DMA > [ 0.324641] iommu: Adding device 0000:00:16.0 to group 4 > [ 0.324647] pci 0000:00:17.0: failed to allocate default IOMMU domain of type 4; falling back to IOMMU_DOMAIN_DMA > [ 0.324649] iommu: Adding device 0000:00:17.0 to group 5 > [ 0.324664] pci 0000:00:1b.0: failed to allocate default IOMMU domain of type 4; falling back to IOMMU_DOMAIN_DMA > [ 0.324666] iommu: Adding device 0000:00:1b.0 to group 6 > [ 0.324673] pci 0000:00:1b.2: failed to allocate default IOMMU domain of type 4; falling back to IOMMU_DOMAIN_DMA > [ 0.324675] iommu: Adding device 0000:00:1b.2 to group 7 > [ 0.324683] pci 0000:00:1b.3: failed to allocate default IOMMU domain of type 4; falling back to IOMMU_DOMAIN_DMA > [ 0.324685] iommu: Adding device 0000:00:1b.3 to group 8 > [ 0.324693] pci 0000:00:1b.4: failed to allocate default IOMMU domain of type 4; falling back to IOMMU_DOMAIN_DMA > [ 0.324695] iommu: Adding device 0000:00:1b.4 to group 9 > [ 0.324708] pci 0000:00:1c.0: failed to allocate default IOMMU domain of type 4; falling back to IOMMU_DOMAIN_DMA > [ 0.324711] iommu: Adding device 0000:00:1c.0 to group 10 > [ 0.324718] pci 0000:00:1c.2: failed to allocate default IOMMU domain of type 4; falling back to IOMMU_DOMAIN_DMA > [ 0.324721] iommu: Adding device 0000:00:1c.2 to group 11 > [ 0.324728] pci 0000:00:1c.4: failed to allocate default IOMMU domain of type 4; falling back to IOMMU_DOMAIN_DMA > [ 0.324730] iommu: Adding device 0000:00:1c.4 to group 12 > [ 0.324738] pci 0000:00:1d.0: failed to allocate default IOMMU domain of type 4; falling back to IOMMU_DOMAIN_DMA > [ 0.324740] iommu: Adding device 0000:00:1d.0 to group 13 > [ 0.324754] pci 0000:00:1f.0: failed to allocate default IOMMU domain of type 4; falling back to IOMMU_DOMAIN_DMA > [ 0.324757] iommu: Adding device 0000:00:1f.0 to group 14 > [ 0.324763] pci 0000:00:1f.2: failed to allocate default IOMMU domain of type 4; falling back to IOMMU_DOMAIN_DMA > [ 0.324765] iommu: Adding device 0000:00:1f.2 to group 14 > [ 0.324771] pci 0000:00:1f.3: failed to allocate default IOMMU domain of type 4; falling back to IOMMU_DOMAIN_DMA > [ 0.324773] iommu: Adding device 0000:00:1f.3 to group 14 > [ 0.324779] pci 0000:00:1f.4: failed to allocate default IOMMU domain of type 4; falling back to IOMMU_DOMAIN_DMA > [ 0.324782] iommu: Adding device 0000:00:1f.4 to group 14 > [ 0.324788] pci 0000:00:1f.6: failed to allocate default IOMMU domain of type 4; falling back to IOMMU_DOMAIN_DMA > [ 0.324790] iommu: Adding device 0000:00:1f.6 to group 15 > [ 0.324797] pci 0000:02:00.0: failed to allocate default IOMMU domain of type 4; falling back to IOMMU_DOMAIN_DMA > [ 0.324800] iommu: Adding device 0000:02:00.0 to group 16 > [ 0.324807] pci 0000:09:00.0: failed to allocate default IOMMU domain of type 4; falling back to IOMMU_DOMAIN_DMA > [ 0.324810] iommu: Adding device 0000:09:00.0 to group 17 > > >