From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754767AbbBOLRc (ORCPT ); Sun, 15 Feb 2015 06:17:32 -0500 Received: from mail-we0-f178.google.com ([74.125.82.178]:64487 "EHLO mail-we0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751013AbbBOLRb (ORCPT ); Sun, 15 Feb 2015 06:17:31 -0500 Message-ID: <54E0803F.5080707@googlemail.com> Date: Sun, 15 Feb 2015 11:17:19 +0000 From: Chris Clayton User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.8.1 MIME-Version: 1.0 To: LKML , will.deacon@arm.com Subject: [PATCH] iommu: prompt for IOMMU_IO_PGTABLE_LPAE on ARM archs only Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When running "make oldconfig" for an x86_64 kernel, I was prompted for a setting for IOMMU_IO_PGTABLE_LPAE. From the prompt and the help text it appears that this config item is relevant to ARMv7/v8 only. This patch prevents the prompt on non-ARM architectures. Compile tested building a cross-compiled x86_64 kernel in an x86 user space. The resultant kernel boots fine and I am running it now. Fixes: e1d3c0fd701df831169b116cd5c5d6203ac07f70 Cc: will.deacon@arm.com Signed-off-by: Chris Clayton --- linux/drivers/iommu/Kconfig.orig 2015-02-15 09:44:01.235927248 +0000 +++ linux/drivers/iommu/Kconfig 2015-02-15 09:44:41.131926434 +0000 @@ -22,6 +22,7 @@ config IOMMU_IO_PGTABLE config IOMMU_IO_PGTABLE_LPAE bool "ARMv7/v8 Long Descriptor Format" + depends on ARM || ARM64 select IOMMU_IO_PGTABLE help Enable support for the ARM long descriptor pagetable format.