Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp10115167rwd; Wed, 21 Jun 2023 16:56:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4V9G8GiIHobzSnnFByjOBP06In//yGXRQRvtYtDdlwMyvoNOEhvUD9v2SeMwNyINe6RovB X-Received: by 2002:a05:6a00:194d:b0:666:2889:32bd with SMTP id s13-20020a056a00194d00b00666288932bdmr8187693pfk.9.1687391794158; Wed, 21 Jun 2023 16:56:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687391794; cv=none; d=google.com; s=arc-20160816; b=LK88ln7PzCeY0cwG+ISPOub6YsfDzDbbZEcldWP4rbfzlGrcstC3M/S5b8882B8DKO tSMbZtEXKU33kgee0IHOncd2BqnotUHqO89vUqZ7lEnlZlRuY8KJo6rX9unY393zjpzu cE1l8scWq4yUkdGr8+RlNz9LNApOSGpggtyNvX6smi2SaCLKL3Ex47kGU/UsL3orlYEV YVTPiq+OUWhd8BrekjK3ce/f5pMPdxq5ghaa/GcxeAD5usJNh0tgUGC0SxANn0eHM6X1 Zf57WmtzZGn9/0bATRF0krcR4Q44GE4ZlUtqraIB8AOEnIJ8UJ5Zp2nb1xyeYptYabcj /PVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=NhYNZ0vxtpjuX5s0wcMa09N91qzj3byTq4ke4NqIBlc=; b=FxcOuXw/XQEqm2G4l2eorvtBG9jBjTtfAOh8EvvcTFZmaeCPC6FxzJLG4HFBmC+8PT ST4xiyd2jOAlJP9DyxKJi/6eEw9SeyRJXe3JB8acSkSRfVdSXu9g30ShT8E2Tt0YDph1 Dcjay+mERPEyx4JtqPyGCGuDcZ1BsMGh7GECS41UMSpH6R8IFa3c2xsamjfZLIwXbOvG EWTCSB8pKb+/GzV/O3w5Ez9fqCYM8umj4OzdYgwBtmlKPWlBzXOCrKL2tactlz2J/l5B Pdb5xeLW6jAUuenSt50RxImeGE11Tz8HkKPSmH+vmulkBkqPuSe3CJYYw4vr/XdigoLY WXIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=HZDteg5s; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a27-20020aa78e9b000000b0063b356e36fesi1257772pfr.372.2023.06.21.16.56.22; Wed, 21 Jun 2023 16:56:34 -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=@chromium.org header.s=google header.b=HZDteg5s; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229925AbjFUXua (ORCPT + 99 others); Wed, 21 Jun 2023 19:50:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229645AbjFUXu2 (ORCPT ); Wed, 21 Jun 2023 19:50:28 -0400 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF7C6171C for ; Wed, 21 Jun 2023 16:50:27 -0700 (PDT) Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-311099fac92so7537719f8f.0 for ; Wed, 21 Jun 2023 16:50:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1687391425; x=1689983425; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=NhYNZ0vxtpjuX5s0wcMa09N91qzj3byTq4ke4NqIBlc=; b=HZDteg5s2Vpl4Dj3x2y2xDB5nI/Qbe7Mj8TIWbglj/Afe2Df8ThS6myu4ctAr7BySI lN6IEuMEfPC2jekn2PiCOzacJ5o3hhPY0TVfjYc90WW++TO4fcWk3jVeIIqDxZW+Ag+v 3gWB4WdyMMmHkHwc3FuCxBT4mKHgXUkDjtvgA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687391425; x=1689983425; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NhYNZ0vxtpjuX5s0wcMa09N91qzj3byTq4ke4NqIBlc=; b=aHVhknSbSPbq6OOT4fBGWqC5WdmtYCihivJP7q/6uL2KOc0AK5MOpE++46mg8eMAKt vuuHf0fwUqEspYOCk2z4Unt8ME8lKqg2f5Zrmihi2EjQh7PjNWleEroMMNlGDbZEwMqz B0pv1PtEnqDe0MSzD6LfLNAG7hHmaxRFuDuGKfaG7/6Hv0I89gPi+4IBme7UR9uBq5lN 8f0uY36Bf7elGIlrSoLTZdJMWH1fvilWkl4Rq+chrC+xakOIsE53a5e4pbU4rgIkU6ki MhZN/DcBwqAFB5jtpmWAisjgsJIfIp5oiP2CYNfEKnVfON7W2WCRkqcRxUaXLRNtt7gf hKJA== X-Gm-Message-State: AC+VfDx/6SG2+6151VWEMBI5Af5QENkzFHe3eXAQcryms74yNj3dQLrn pb3ICqt0oHSlSV/aEPgvgpClYew/925vJZZAA7MLA8SR X-Received: by 2002:adf:ee51:0:b0:311:12b0:4b36 with SMTP id w17-20020adfee51000000b0031112b04b36mr14084910wro.58.1687391425375; Wed, 21 Jun 2023 16:50:25 -0700 (PDT) Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com. [209.85.208.45]) by smtp.gmail.com with ESMTPSA id i9-20020a056402054900b0051873c201a0sm3166068edx.26.2023.06.21.16.50.24 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 21 Jun 2023 16:50:25 -0700 (PDT) Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-516500163b2so732a12.1 for ; Wed, 21 Jun 2023 16:50:24 -0700 (PDT) X-Received: by 2002:a50:c35e:0:b0:519:7d2:e256 with SMTP id q30-20020a50c35e000000b0051907d2e256mr4978edb.0.1687391424164; Wed, 21 Jun 2023 16:50:24 -0700 (PDT) MIME-Version: 1.0 References: <20230616150618.6073-1-pmladek@suse.com> <20230616150618.6073-7-pmladek@suse.com> <871qi5otdh.fsf@mail.lhotse> In-Reply-To: <871qi5otdh.fsf@mail.lhotse> From: Doug Anderson Date: Wed, 21 Jun 2023 16:50:12 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 6/6] watchdog/hardlockup: Define HARDLOCKUP_DETECTOR_ARCH To: Michael Ellerman Cc: Petr Mladek , Andrew Morton , kgdb-bugreport@lists.sourceforge.net, linux-kernel@vger.kernel.org, Nicholas Piggin , linuxppc-dev@lists.ozlabs.org, Christophe Leroy , sparclinux@vger.kernel.org, "David S . Miller" , linux-perf-users@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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, On Wed, Jun 21, 2023 at 6:08=E2=80=AFAM Michael Ellerman wrote: > > Petr Mladek writes: > > The HAVE_ prefix means that the code could be enabled. Add another > > variable for HAVE_HARDLOCKUP_DETECTOR_ARCH without this prefix. > > It will be set when it should be built. It will make it compatible > > with the other hardlockup detectors. > > > > The change allows to clean up dependencies of PPC_WATCHDOG > > and HAVE_HARDLOCKUP_DETECTOR_PERF definitions for powerpc. > > > > As a result HAVE_HARDLOCKUP_DETECTOR_PERF has the same dependencies > > on arm, x86, powerpc architectures. > > > > Signed-off-by: Petr Mladek > > Reviewed-by: Douglas Anderson > > --- > > arch/powerpc/Kconfig | 5 ++--- > > include/linux/nmi.h | 2 +- > > lib/Kconfig.debug | 9 +++++++++ > > 3 files changed, 12 insertions(+), 4 deletions(-) > > Something in this patch is breaking the powerpc g5_defconfig, I don't > immediately see what though. > > ../arch/powerpc/kernel/stacktrace.c: In function =E2=80=98handle_backtrac= e_ipi=E2=80=99: > ../arch/powerpc/kernel/stacktrace.c:171:9: error: implicit declaration of= function =E2=80=98nmi_cpu_backtrace=E2=80=99 [-Werror=3Dimplicit-function-= declaration] > 171 | nmi_cpu_backtrace(regs); > | ^~~~~~~~~~~~~~~~~ > ../arch/powerpc/kernel/stacktrace.c: In function =E2=80=98arch_trigger_cp= umask_backtrace=E2=80=99: > ../arch/powerpc/kernel/stacktrace.c:226:9: error: implicit declaration of= function =E2=80=98nmi_trigger_cpumask_backtrace=E2=80=99; did you mean =E2= =80=98arch_trigger_cpumask_backtrace=E2=80=99? [-Werror=3Dimplicit-function= -declaration] > 226 | nmi_trigger_cpumask_backtrace(mask, exclude_self, raise_b= acktrace_ipi); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > | arch_trigger_cpumask_backtrace > cc1: all warnings being treated as errors Yeah, I can reproduce that. The problem is that before ${SUBJECT} patch "include/linux/nmi.h" would include . Now it won't. There are a ton of different ways to fix this, but I think the one that makes sense is to be consistent with other architectures and move the "arch_trigger_cpumask_backtrace" definitions to asm/irq.h. https://lore.kernel.org/r/20230621164809.1.Ice67126857506712559078e7de26d32= d26e64631@changeid -Doug