Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp24419215rwd; Sat, 1 Jul 2023 20:19:50 -0700 (PDT) X-Google-Smtp-Source: APBJJlEnKuCl+n9M5VWf6tR8v6eS4AAwpsgdGrJwF9KF5HTljTte+WKADCaumF+0chiiuNoO/vtr X-Received: by 2002:a17:903:1c5:b0:1b5:5052:5af7 with SMTP id e5-20020a17090301c500b001b550525af7mr9078509plh.8.1688267990298; Sat, 01 Jul 2023 20:19:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688267990; cv=none; d=google.com; s=arc-20160816; b=dPbEwAN4hwMFNAxAuXcpO8J8dz3uFztQf66eTD12OHhOZdcU+BYFtGlk61Q4pt+qLh wWNvEzip71k3JhOnQ9hdwvqee33XkFosUTdgi7IWEtd2shHoBBl0OVZxDgcL+o9u2zVU 2cQlBaQqh3wHo8atbE/Kqe72yb4eqExH/jSOCdsCNP5+UWHfodg+nkJnP+0ajK4256eD cJxo6Xklz0zf38ggdrJD2YxMdG8AtCc0whrwTTwJ1n+dV5aRm4IcJQPkb/Oil+lm2Bvx pwEMTgi383OfzaqMCQQZmFagsR8A2iEstkfpL1UX1gJfBY3up5s25qVFsFeDdPwijFEw 1O6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :content-language:references:cc:to:subject:from:user-agent :mime-version:date:message-id:sender:dkim-signature; bh=0+WkD1spmkCtSByMtGbTNiya9x18zjitcw6zTIWUJH4=; fh=MqLGVCgko2s22Z+6VTmfgIC8UUktYj+eSYy44bt21b4=; b=XA0bfA7Mvgn2mZAps4I2km2/MsxoYLUv3CFzvgs25kBpp4sgK/GpTTBnj+FvhTc9ks 8TOSLyTsyRFgJ+mVNLoe08bHx6I3/mgFWFoyXnN8CEUK1F4Q+aAeIwrnkCWLmNy3PSxi XljjQjSll4ALiTkdAE4FCDKsab+Pjekp19X1NwXoct75Fjgoo8x+QGQDbbBcGWuySRw5 rsSZG5feFGQREREf3Ah04s0mCjtQSOZ+Tav8wq2And9g6n+thXIC4j47i9h4jqufj0NF LAh8byLzub2vMEJ3ijhbx/m1CwE1uu8OUWbzbuQBVg2sQp44hCTcbzGpu1nN2MX9nL7N Mu+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=GIbz09WV; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q15-20020a170902eb8f00b001b3d27c4f48si8768034plg.57.2023.07.01.20.19.30; Sat, 01 Jul 2023 20:19:50 -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=@gmail.com header.s=20221208 header.b=GIbz09WV; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229572AbjGBDDj (ORCPT + 99 others); Sat, 1 Jul 2023 23:03:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229457AbjGBDDh (ORCPT ); Sat, 1 Jul 2023 23:03:37 -0400 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4C991706; Sat, 1 Jul 2023 20:03:36 -0700 (PDT) Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-668704a5b5bso2637295b3a.0; Sat, 01 Jul 2023 20:03:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688267016; x=1690859016; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id:sender :from:to:cc:subject:date:message-id:reply-to; bh=0+WkD1spmkCtSByMtGbTNiya9x18zjitcw6zTIWUJH4=; b=GIbz09WVg7xNtgefGpf32hZ6ZxYca2OFbdDyTaszABCACg/4CH9MkOu4l4Nl3gxgWN YubC5PWZmWa/GRi1Yvv5hyi5OzFxtuOaAMuf4jz8syzRofFApCctiDHpW4j2F5iFV6Sn gX2dJXhNdW8cumMub8w/D25yGfhpOEcokRmyu6Q0vBLlXVq1Klrlx+hldFChw2Lx8fn5 fF+VNnsqA0IVp0wYhY0sSsZbwNFQOoy1NS5Gt/z3P5pcYNX6UXtlRbBIVqcYwT6Ahchs GUYpAyq2sArhVdvrxeT3JLF/Ff7yZVAhYkcJ9W8ATeCBayghWoFCp2CO5ZTqPSWNhiD2 ZwMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688267016; x=1690859016; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=0+WkD1spmkCtSByMtGbTNiya9x18zjitcw6zTIWUJH4=; b=a6LyStjvMhFrqay5MdyHFJAtHmXyteE6P5q/QSzIxiA/PZK4mxUeE/LVLUsxGhsRuz NWAu3ReiXAazWP0DDMLg4uax6AUlK9GwqvToxeQnbEPmbEua7Aac12NNmjvPPBLTg33q szs79eiF/7QtezqLDejxtlROsHYYIcwj1xtrGlxGQXJfa5l5Oen7aVbuM1XedGMW2ZQr ZfeXN66M3cMg21TmrbkNf8Qp4vzxZq2YHo1DJDmgp8o63+rO6+OmOfGwF+BoQlDsZasD mecHqEvX1uKZB/ORRkggMWAXYKH7XeZ2A49dpKLPKeO7EXeZoTHh/t5TSJ4xo0lK/RIK tl2A== X-Gm-Message-State: ABy/qLZKxRek3BobVEiihOFmYtREXIHm0mwnkNtm+Oo9JjSY62TkoiMX 0U06oEgH2Tm0O3HRYQfIQA8= X-Received: by 2002:a05:6a00:1806:b0:66b:6021:10fe with SMTP id y6-20020a056a00180600b0066b602110femr9802737pfa.31.1688267015903; Sat, 01 Jul 2023 20:03:35 -0700 (PDT) Received: from ?IPV6:2600:1700:e321:62f0:329c:23ff:fee3:9d7c? ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id 5-20020aa79145000000b006688e3de86fsm11979372pfi.85.2023.07.01.20.03.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 01 Jul 2023 20:03:35 -0700 (PDT) Sender: Guenter Roeck Message-ID: <8d0e1a7c-3533-4b02-c1d6-3732f9680b2b@roeck-us.net> Date: Sat, 1 Jul 2023 20:03:33 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 From: Guenter Roeck Subject: Re: [PATCH v2 6/6] watchdog/hardlockup: Define HARDLOCKUP_DETECTOR_ARCH To: Doug Anderson Cc: Petr Mladek , Andrew Morton , kgdb-bugreport@lists.sourceforge.net, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Nicholas Piggin , sparclinux@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, "David S . Miller" References: <20230616150618.6073-1-pmladek@suse.com> <20230616150618.6073-7-pmladek@suse.com> <7cfc15f1-d8d0-4418-b7a1-5aa9e90e3fb3@roeck-us.net> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 On 7/1/23 09:08, Doug Anderson wrote: > Hi, > > On Sat, Jul 1, 2023 at 7:40 AM Guenter Roeck wrote: >> >> On Fri, Jun 16, 2023 at 05:06:18PM +0200, Petr Mladek wrote: >>> 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 >>> --- >> ... >>> --- a/include/linux/nmi.h >>> +++ b/include/linux/nmi.h >>> @@ -9,7 +9,7 @@ >>> #include >>> >>> /* Arch specific watchdogs might need to share extra watchdog-related APIs. */ >>> -#if defined(CONFIG_HAVE_HARDLOCKUP_DETECTOR_ARCH) || defined(CONFIG_HARDLOCKUP_DETECTOR_SPARC64) >>> +#if defined(CONFIG_HARDLOCKUP_DETECTOR_ARCH) || defined(CONFIG_HARDLOCKUP_DETECTOR_SPARC64) >> >> This results in: >> >> arch/powerpc/platforms/pseries/mobility.c: In function 'pseries_migrate_partition': >> arch/powerpc/platforms/pseries/mobility.c:753:17: error: implicit declaration of function 'watchdog_hardlockup_set_timeout_pct'; did you mean 'watchdog_hardlockup_stop'? [-Werror=implicit-function-declaration] >> 753 | watchdog_hardlockup_set_timeout_pct(factor); >> >> with ppc64_defconfig -CONFIG_HARDLOCKUP_DETECTOR, because the dummy >> for watchdog_hardlockup_set_timeout_pct() is still defined in >> arch/powerpc/include/asm/nmi.h which is no longer included. > > Can you test with: > > https://lore.kernel.org/r/20230629124500.1.I55e2f4e7903d686c4484cb23c033c6a9e1a9d4c4@changeid > Sorry for the noise. I didn't find that one. Yes, that should work. It is a bit odd that including both linux/nmi.h and asm/nmi.h is required, but as it turns out that is actually quite common. Thanks, Guenter