Received: by 2002:ac8:3b51:0:b0:3f3:9eb6:4eb6 with SMTP id r17csp1423082qtf; Fri, 16 Jun 2023 08:15:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7jeYkyDIHYLx6BXDSqXeRgRQQom7nRinm7FmtYY7ghOyukfs6PvMGLX/bYrF1+cTEoU57F X-Received: by 2002:a05:6808:10c:b0:39c:4290:a403 with SMTP id b12-20020a056808010c00b0039c4290a403mr2332629oie.36.1686928501626; Fri, 16 Jun 2023 08:15:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686928501; cv=none; d=google.com; s=arc-20160816; b=jFVyG6OKKjpqVrITBa/V+4zu6H8Cy+SwSRY8UjOwPTo9z04lf3sHiJe/s0BaAiBI6Y HpU64zyeR4guatUCteLKzstUB1+r0Hw2JB8Yef1RCaN5MS9kMRGB0jd/Rgn70i5kr7d1 tDvowVODlG8SrQuDDEOHWVRvrBTBHrW4cBVjhDbzgghiRInfuxaivFXUWRENktdfeQXW xQVOg6ALGnCfJD+bJUcb+2GwpsvBmkqZuWKAfDMazYad2UAhG08ssCf/GVQu+m0m4RJ1 A+UCd6ykoeNc2WtY4o0/p3FAyKm1v32k6Nms/WUwkCqj2jVOFy/XkwYPZXTImly53efh YoVA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=qZ6VZQS2BN5LQfBVveeEUMRRjzGIEjqa48tMNDm1o3M=; b=fQgcOM8FuXXJiI9C/vRR7/wLiNS+pJtkZv/9x3fwjQl8QRXsYO+pERiGtzyRQNI0nT VKLaiLXgWVFu+nIotFBoUankSOOrYxlebnVQQp3Zry66XE7e/8O5moH49NRGVm8SA0r/ XLAc4IBfjbufGL8m5Xs76l5+5GPhIzj3CpjChuuTcQCWCE+TBasx9065FQdMlCiMLl2+ 8iLmSJvuU2UmDsFSwBJoaCEsLBsRwoemQVQ/ak0Kn+/S3S0JfqAO1U7iQI5lw57ssgGY ZTgXdPSWYkfzD7JhmvTZluNPiI727F8B2UiLfSYzS/QVh+QPBTdBlOOMnw19US/5HgQy p+jA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=NflyOErm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 126-20020a630084000000b005533cf1fdbfsi1257169pga.629.2023.06.16.08.14.46; Fri, 16 Jun 2023 08:15:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=NflyOErm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233153AbjFPPGn (ORCPT + 99 others); Fri, 16 Jun 2023 11:06:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230228AbjFPPGl (ORCPT ); Fri, 16 Jun 2023 11:06:41 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 017AD1BD6; Fri, 16 Jun 2023 08:06:38 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id AAD451F461; Fri, 16 Jun 2023 15:06:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1686927997; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=qZ6VZQS2BN5LQfBVveeEUMRRjzGIEjqa48tMNDm1o3M=; b=NflyOErmcWSy+bqbtbwYQTBDVsUvpIBLG317dBlbNwgfNzOSCxizJowUuCAURsAnkD7DwK QoPX51bOLIvjmQTV4fFPPqGTczXM60o0DLmH1lfZlAyO1QpZtSAew7zY9nuuVJr4wdEqDU xURFTUWprpCM15XrbRool9W6zsGrsJ0= Received: from alley.suse.cz (unknown [10.100.208.146]) by relay2.suse.de (Postfix) with ESMTP id 242E32C141; Fri, 16 Jun 2023 15:06:36 +0000 (UTC) From: Petr Mladek To: Andrew Morton , Douglas Anderson Cc: kgdb-bugreport@lists.sourceforge.net, linux-kernel@vger.kernel.org, Nicholas Piggin , Michael Ellerman , linuxppc-dev@lists.ozlabs.org, Christophe Leroy , sparclinux@vger.kernel.org, "David S . Miller" , linux-perf-users@vger.kernel.org, Petr Mladek Subject: [PATCH v2 0/6] watchdog/hardlockup: Cleanup configuration of hardlockup detectors Date: Fri, 16 Jun 2023 17:06:12 +0200 Message-Id: <20230616150618.6073-1-pmladek@suse.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, this patchset is supposed to replace the last patch in the patchset cleaning up after introducing the buddy detector, see https://lore.kernel.org/r/20230526184139.10.I821fe7609e57608913fe05abd8f35b343e7a9aae@changeid Changes against v1: + Better explained the C-like ordering in the 1st patch. + Squashed patches for splitting and renaming HAVE_NMI_WATCHDOG, updated commit message with the history and more facts. + Updated comments about the sparc64 variant. It is not handled together with the softlockup detector. In fact, it is always build. And it even used to be always enabled until the commit 7a5c8b57cec93196b ("sparc: implement watchdog_nmi_enable and watchdog_nmi_disable") added in v4.10-rc1. I realized this when updating the comment for the 4th patch. My original statement in v1 patchset was based on code reading. I looked at it from a bad side. + Removed superfluous "default n" + Fixed typos. Petr Mladek (6): watchdog/hardlockup: Sort hardlockup detector related config values a logical way watchdog/hardlockup: Make the config checks more straightforward watchdog/hardlockup: Declare arch_touch_nmi_watchdog() only in linux/nmi.h watchdog/hardlockup: Make HAVE_NMI_WATCHDOG sparc64-specific watchdog/sparc64: Define HARDLOCKUP_DETECTOR_SPARC64 watchdog/hardlockup: Define HARDLOCKUP_DETECTOR_ARCH arch/Kconfig | 17 ++--- arch/powerpc/Kconfig | 5 +- arch/powerpc/include/asm/nmi.h | 2 - arch/sparc/Kconfig | 2 +- arch/sparc/Kconfig.debug | 14 ++++ arch/sparc/include/asm/nmi.h | 1 - include/linux/nmi.h | 14 ++-- kernel/watchdog.c | 2 +- lib/Kconfig.debug | 114 ++++++++++++++++++--------------- 9 files changed, 97 insertions(+), 74 deletions(-) -- 2.35.3