From patchwork Sun Feb 22 16:09:06 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Vincent_Stehl=C3=A9?= X-Patchwork-Id: 5862201 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 468DDBF440 for ; Sun, 22 Feb 2015 16:13:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5CD0620592 for ; Sun, 22 Feb 2015 16:13:21 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 564C5204E4 for ; Sun, 22 Feb 2015 16:13:20 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YPZ6O-0003y7-JN; Sun, 22 Feb 2015 16:09:52 +0000 Received: from smtp3-g21.free.fr ([212.27.42.3]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YPZ6K-0003u7-46 for linux-arm-kernel@lists.infradead.org; Sun, 22 Feb 2015 16:09:50 +0000 Received: from romuald.bergerie (unknown [88.178.86.202]) by smtp3-g21.free.fr (Postfix) with ESMTP id 2269AA632E; Sun, 22 Feb 2015 17:09:13 +0100 (CET) Received: from radicelle.bergerie (radicelle.bergerie [192.168.124.12]) by romuald.bergerie (Postfix) with SMTP id 0CB768BC9B3; Sun, 22 Feb 2015 17:09:20 +0100 (CET) Received: by radicelle.bergerie (sSMTP sendmail emulation); Sun, 22 Feb 2015 17:09:20 +0100 From: =?UTF-8?q?Vincent=20Stehl=C3=A9?= To: iommu@lists.linux-foundation.org, linux-next@vger.kernel.org Subject: [PATCH linux-next] iommu: Enable LPAE pagetable on ARM only Date: Sun, 22 Feb 2015 17:09:06 +0100 Message-Id: <1424621346-7822-1-git-send-email-vincent.stehle@laposte.net> X-Mailer: git-send-email 2.1.4 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150222_080948_310258_E058A533 X-CRM114-Status: UNSURE ( 8.87 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) Cc: Will Deacon , Laurent Pinchart , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, =?UTF-8?q?Vincent=20Stehl=C3=A9?= X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP LPAE iommu page table makes sense only for ARM architecture. Add the corresponding dependency in Kconfig. This fixes the following runtime warnings on PA-RISC architecture: WARNING: at drivers/iommu/io-pgtable-arm.c:413 Modules linked in: CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.19.0-next-20150222-00002-gc420256 #2 task: 17ca0000 ti: 17ca8000 task.ti: 17ca8000 YZrvWESTHLNXBCVMcbcbcbcbOGFRQPDI PSW: 00000000000001001111111100001111 Not tainted r00-03 0004ff0f 0000001b 104871b0 17ca83c0 r04-07 00001000 00000000 00000000 00000000 r08-11 00000000 40001000 1013b36c 17ca8248 r12-15 00000080 17e712c0 00000000 17c5e100 r16-19 0000000c 105d8eb0 40001000 ffffffff r20-23 00000000 00800020 1048717c 00000000 r24-27 00001000 00000000 00000009 10774ce0 r28-31 00000000 00000027 17ca8480 10486d44 sr00-03 00000000 00000000 00000000 00000000 sr04-07 00000000 00000000 00000000 00000000 IASQ: 00000000 00000000 IAOQ: 10486df4 10486df8 IIR: 03ffe01f ISR: 00000000 IOR: 17c86e54 CPU: 0 CR30: 17ca8000 CR31: 00000002 ORIG_R28: 00000001 IAOQ[0]: __arm_lpae_unmap+0x144/0x4cc IAOQ[1]: __arm_lpae_unmap+0x148/0x4cc RP(r2): arm_lpae_unmap+0x34/0x6c Backtrace: [<104871b0>] arm_lpae_unmap+0x34/0x6c [<10127944>] 0x10127944 [<10168ee0>] do_one_initcall+0x128/0x1dc [<101028fc>] 0x101028fc [<10161b48>] kernel_init+0x1c/0x118 [<1015d01c>] end_fault_vector+0x1c/0x24 [<101762ec>] save_stack_trace+0x28/0x60 Signed-off-by: Vincent Stehlé Cc: Laurent Pinchart Cc: Will Deacon --- Hi, This can be seen with e.g. Linux next-20150222 on parisc with allmodconfig. Best regards, V. drivers/iommu/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig index baa0d97..c73fd72 100644 --- a/drivers/iommu/Kconfig +++ b/drivers/iommu/Kconfig @@ -22,6 +22,7 @@ config IOMMU_IO_PGTABLE config IOMMU_IO_PGTABLE_LPAE bool "ARMv7/v8 Long Descriptor Format" + depends on ARM select IOMMU_IO_PGTABLE help Enable support for the ARM long descriptor pagetable format.