Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1439644pxb; Thu, 4 Mar 2021 11:17:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJyMdiT8n4Wmp5Dt2Vw83QNKCa6AoBiD+m7niP7bI5j7Ber7aJeouOvywrKPZMxD2yBbUP5d X-Received: by 2002:a05:6402:170f:: with SMTP id y15mr675910edu.127.1614885425723; Thu, 04 Mar 2021 11:17:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614885425; cv=none; d=google.com; s=arc-20160816; b=ZeFGkeOfPUBJgWTldygPYysgix5r4eLOn7Rq3ny6JVeQqaPsiq/1iTtsWle/TjHuoS Y+jYnDdF0rvMO9A8bvPhSquWddXB/D/1Sc6steYMiNrxTMdHJ2bXfs1DBiOahLChSUaZ rJ32YIz4pEwbA93J98ro0q4+fUKMP1UirQjpM8sM/mjdQFDtZO5UBkMgBNdmIZ2hW0Nq 6tW8hBvH1TP6t3Zgjs9M4ThcxyDAHdE4HbxHpzTdUoXWpjI6+gKEH4S/SWQ4yPDw9IRI ajxr54/32OOmGu3gHZYwycSlsos8TJbc5ekwnbDWURYv3i+j2HlTAPX+uJA/yJV+ra6K RqEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=5Vg9DvR9rZIRRnvrIkXZ2bwnPBaRJo9NzCgBlh53qZk=; b=QTUCCibipW6ZTtqAj5sW7RcyVbQeEwrtsH5pnIhmzzYc//EQGBN2CxsMZNUcrrjH/0 qpOy8Rwr3QKi6E6s/DhWgIYsQuFe39s7SVXg8qUsUoFRFElWZ0OyxqMr4FgzbKve0TMz X4nnFOvvAZ/esPeFCg8FmE4e69wTveVF9gNE28zxcjT7LMEd8/iDb6zXzHKYDKCyvBGA H1d92WV9WelBeVsmj8P1vDE3s09OzqCnLMjy11zStgvuuEyA8P8RH5/c5lpJrq09OOEY Srie+TuvtieIKjSxzSpxZ0JaRgN40AyGc8+5uj1aG3IwzjIEMz13WBY33sRVZRUD6VH7 hxdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ENINXNEy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j7si236996edh.201.2021.03.04.11.16.43; Thu, 04 Mar 2021 11:17:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ENINXNEy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237970AbhCDTHg (ORCPT + 99 others); Thu, 4 Mar 2021 14:07:36 -0500 Received: from mail.kernel.org ([198.145.29.99]:39316 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237800AbhCDTH3 (ORCPT ); Thu, 4 Mar 2021 14:07:29 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3E85764F73; Thu, 4 Mar 2021 19:06:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1614884774; bh=aFKUH0krluhOoaCz52J3tQyV7plfsO/cehhJwNOfKq0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ENINXNEyIy6I/ZUhjh43mh2IEjQi8cyXnPYnYJnVlwf8tLKGgKWKrsuzzIDHhpZGU A/tBpy+ayLdUWpZJ2gMAADDhSWouB8zxvQGobbofu52s3I9HOPlijc/EpQzXAl+Pno IznOrEhHq/DbNxMq0kZn8DSxccnie5BV+zYFaW6x3Gx3Wt6U08cyFvEqzPwAqQ9GqK rKvk/TuXi1W1am3DTIFF8XdON7r8ZQoGGsNEtsaZRL5n8B2bw29InYHAoKHn5V1LQq rAASBhyklBOIgey6aUCvLJony1UHPWfJcH0dcMPbQ/amlCjveHsLu4s/lAlLrAHgea goo1vpGRxRgKw== From: Andy Lutomirski To: x86@kernel.org Cc: LKML , Mark Rutland , Andy Lutomirski Subject: [PATCH v3 08/11] entry: Make CONFIG_DEBUG_ENTRY available outside x86 Date: Thu, 4 Mar 2021 11:06:01 -0800 Message-Id: X-Mailer: git-send-email 2.29.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In principle, the generic entry code is generic, and the goal is to use it in many architectures once it settles down more. Move CONFIG_DEBUG_ENTRY to the generic config so that it can be used in the generic entry code and not just in arch/x86. Disable it on arm64. arm64 uses some but not all of the kentry code, and trying to debug the resulting state machine will be painful. arm64 can turn it back on when it starts using the entire generic path. Signed-off-by: Andy Lutomirski --- arch/x86/Kconfig.debug | 10 ---------- lib/Kconfig.debug | 11 +++++++++++ 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/arch/x86/Kconfig.debug b/arch/x86/Kconfig.debug index 80b57e7f4947..a5a52133730c 100644 --- a/arch/x86/Kconfig.debug +++ b/arch/x86/Kconfig.debug @@ -170,16 +170,6 @@ config CPA_DEBUG help Do change_page_attr() self-tests every 30 seconds. -config DEBUG_ENTRY - bool "Debug low-level entry code" - depends on DEBUG_KERNEL - help - This option enables sanity checks in x86's low-level entry code. - Some of these sanity checks may slow down kernel entries and - exits or otherwise impact performance. - - If unsure, say N. - config DEBUG_NMI_SELFTEST bool "NMI Selftest" depends on DEBUG_KERNEL && X86_LOCAL_APIC diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 7937265ef879..76549c8afa8a 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -1411,6 +1411,17 @@ config CSD_LOCK_WAIT_DEBUG endmenu # lock debugging +config DEBUG_ENTRY + bool "Debug low-level entry code" + depends on DEBUG_KERNEL + depends on !ARM64 + help + This option enables sanity checks in the low-level entry code. + Some of these sanity checks may slow down kernel entries and + exits or otherwise impact performance. + + If unsure, say N. + config TRACE_IRQFLAGS depends on TRACE_IRQFLAGS_SUPPORT bool -- 2.29.2