From patchwork Fri Nov 18 01:16:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laura Abbott X-Patchwork-Id: 9435615 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 27C2E60471 for ; Fri, 18 Nov 2016 01:19:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 160F5296E5 for ; Fri, 18 Nov 2016 01:19:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0A8842970A; Fri, 18 Nov 2016 01:19:30 +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=-3.7 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM 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 90AB929726 for ; Fri, 18 Nov 2016 01:19:29 +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 1c7XoM-0007ho-Ar; Fri, 18 Nov 2016 01:17:50 +0000 Received: from mail-it0-f51.google.com ([209.85.214.51]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c7Xnx-0007UP-KJ for linux-arm-kernel@lists.infradead.org; Fri, 18 Nov 2016 01:17:27 +0000 Received: by mail-it0-f51.google.com with SMTP id c20so6029024itb.0 for ; Thu, 17 Nov 2016 17:17:04 -0800 (PST) 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=X0/5GZEQXE3Xv7gYeN7FWisbwe2MPc0J447/JMNFbdI=; b=WYh0nu+Rj4CKo0J6zLURQrt+AK93mX7JfXvnyNH56r8GTfvs05VYw9q6jTGm+RyLlK yRaj53mcV7/2b4m/pUlrX8INlS+izLPW+QdugbdayRQdy3xkO0A/ftRxilsqJaZPMpWF CPpOXuHGONUYBDfEjRz5gBTlRMnchoirhlNz7qkpDRHvCZy0f3JA9IUtGzSiz/dwK+z9 xn7IJj85unrgiDCy2HJsaYLraKXcWL63wZITX0TRXlhv5CRdcWSt8diFh194uNncSSmC yCV+dTQACk8/XPCY0ONBdT9oVsZzkxxf/2uB+EASEs+0lER3MxuY4Q+BsX7o5mygaalm wpLQ== X-Gm-Message-State: ABUngvdovJzY1MuB/YQYmIDd/yZpRPjfOrxN7Et686OKClouba5RXcqq4k6Fql9Y/bjy4L+u X-Received: by 10.36.5.80 with SMTP id 77mr6246971itl.90.1479431823431; Thu, 17 Nov 2016 17:17:03 -0800 (PST) Received: from labbott-redhat-machine.redhat.com ([2601:602:9800:177f::df9b]) by smtp.gmail.com with ESMTPSA id i8sm254953itc.11.2016.11.17.17.17.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Nov 2016 17:17:02 -0800 (PST) From: Laura Abbott To: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Mark Rutland , Ard Biesheuvel , Will Deacon , Catalin Marinas Subject: [PATCHv3 1/6] lib/Kconfig.debug: Add ARCH_HAS_DEBUG_VIRTUAL Date: Thu, 17 Nov 2016 17:16:51 -0800 Message-Id: <1479431816-5028-2-git-send-email-labbott@redhat.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1479431816-5028-1-git-send-email-labbott@redhat.com> References: <1479431816-5028-1-git-send-email-labbott@redhat.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161117_171725_759195_0564FE99 X-CRM114-Status: GOOD ( 12.10 ) 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 Acked-by: Ingo Molnar --- v3: No change, x86 maintainers please ack if you are okay with this. --- 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.