From patchwork Wed Nov 2 21:00:49 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laura Abbott X-Patchwork-Id: 9409875 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4414760585 for ; Wed, 2 Nov 2016 21:02:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 31DB5297DD for ; Wed, 2 Nov 2016 21:02:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2468A2A5BA; Wed, 2 Nov 2016 21:02:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CE031297DD for ; Wed, 2 Nov 2016 21:02:57 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1c22fE-0008Ca-LN; Wed, 02 Nov 2016 21:01:40 +0000 Received: from mail-qk0-f182.google.com ([209.85.220.182]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c22ew-0007oM-4W for linux-arm-kernel@lists.infradead.org; Wed, 02 Nov 2016 21:01:23 +0000 Received: by mail-qk0-f182.google.com with SMTP id o68so33679414qkf.3 for ; Wed, 02 Nov 2016 14:01:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=CHnHNqu5i5vTioX6UeUsKNuEypgXe4zARcLhtQRopUY=; b=kDqEAuURX9Lgu0Hv5nxf1IP9U+zM51C4/dNTBrNAblYWhvedmz68wgA/2cprdwr11x etUSzmizqGLbreWGWzAF35/HcMhp3fD721A9uzDdjarkpWEff8GLdckL0NAifBOfiRfN FZuw1+MhffvAGCS86PDJcJ4rH60V4LPvv1OFbequVd0sQPQylSnbAuErKNBn+QkE6GYW kfCGRDdDYar0hZst0hlimxOYgY5kErvu7jC5cXw2F+uqSJoycHnOSoiYrDkNFa5ny/CA JoaevwfRTQyGkZa91H5oIzx5Ub+pXyKZmRbRele1wUJzEbZC0FvU2gD7HMeS6F1XHGrE t1fQ== X-Gm-Message-State: ABUngvcgDAa8L8Io4ekmpGlMX+adK3KE5mK1gvEDzveqZynT2vWeqmNoK5HEUoST1gvCWwYY X-Received: by 10.55.39.195 with SMTP id n186mr4693320qkn.103.1478120460693; Wed, 02 Nov 2016 14:01:00 -0700 (PDT) Received: from X1-Carbon.redhat.com ([198.233.217.214]) by smtp.gmail.com with ESMTPSA id a54sm2193376qta.49.2016.11.02.14.00.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 02 Nov 2016 14:00:59 -0700 (PDT) From: Laura Abbott To: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Mark Rutland , Ard Biesheuvel , Will Deacon , Catalin Marinas Subject: [PATCHv2 1/6] lib/Kconfig.debug: Add ARCH_HAS_DEBUG_VIRTUAL Date: Wed, 2 Nov 2016 15:00:49 -0600 Message-Id: <20161102210054.16621-2-labbott@redhat.com> X-Mailer: git-send-email 2.10.1 In-Reply-To: <20161102210054.16621-1-labbott@redhat.com> References: <20161102210054.16621-1-labbott@redhat.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161102_140122_301994_DC13BBB5 X-CRM114-Status: GOOD ( 11.91 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: x86@kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Andrew Morton , Laura Abbott , Joonsoo Kim , linux-arm-kernel@lists.infradead.org, Marek Szyprowski MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP DEBUG_VIRTUAL currently depends on DEBUG_KERNEL && X86. arm64 is getting the same support. Rather than add a list of architectures, switch this to ARCH_HAS_DEBUG_VIRTUAL and let architectures select it as appropriate. Suggested-by: Mark Rutland Signed-off-by: Laura Abbott --- arch/x86/Kconfig | 1 + lib/Kconfig.debug | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index bada636..f533321 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -23,6 +23,7 @@ config X86 select ARCH_CLOCKSOURCE_DATA select ARCH_DISCARD_MEMBLOCK select ARCH_HAS_ACPI_TABLE_UPGRADE if ACPI + select ARCH_HAS_DEBUG_VIRTUAL select ARCH_HAS_DEVMEM_IS_ALLOWED select ARCH_HAS_ELF_RANDOMIZE select ARCH_HAS_FAST_MULTIPLIER diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index b01e547..5050530 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -603,9 +603,12 @@ config DEBUG_VM_PGFLAGS If unsure, say N. +config ARCH_HAS_DEBUG_VIRTUAL + bool + config DEBUG_VIRTUAL bool "Debug VM translations" - depends on DEBUG_KERNEL && X86 + depends on DEBUG_KERNEL && ARCH_HAS_DEBUG_VIRTUAL help Enable some costly sanity checks in virtual to page code. This can catch mistakes with virt_to_page() and friends.