From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AA2A4C77B7C for ; Fri, 5 May 2023 02:36:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:References:To:From:Subject: Cc:Message-Id:Date:Mime-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=1QLBI6hy4kRDeotq8H3tNkw4+PORFuhRrtGBbR1V3oQ=; b=xp63Ie6WWGDplD yO8e5eoUqfPFJHs9XqgTmtYGakKOTvGn4bAokTqbOo/PFF+qNO0errFpq10O/i6Iw+wLnjYkccusI XCuGeXo+pqfFErPAo7eRhJcVuSryNvU55J/mTscREeRzPtfW5vMCiYDzDotDMZ3HUApiEDqvAAmHT POmVeXN+4/Ku8+KXZqfvCX3JIDX3CBFvYN/gSV8h3WZEtbC3PAGTeVb5MKpWUMn1Xmr9K1TRa4Jjf zFVtk6HU5JURalsNsQU6paoC8/QCXbjCvlz25nkVQX2uMJgEjHoZtzlodibaUyQ7Mj2r+H7Ub2SgG 2OuQkAuIzWn0Zrpsnnbg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pulIg-009XSQ-23; Fri, 05 May 2023 02:36:02 +0000 Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pulIc-009XQX-2n for linux-arm-kernel@lists.infradead.org; Fri, 05 May 2023 02:36:00 +0000 Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-6438d95f447so875868b3a.3 for ; Thu, 04 May 2023 19:35:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683254155; x=1685846155; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=evsRyVdUpm9tZ3zbpYtyLZiIFPAu7MWLlo8c04t+4vY=; b=bPL3OQA2wcMMOXheYlA8QxViGjC7iCOlxPhX4fuvTbvsINcXnCzBLieoUCDzT+56/k 9oa+q6KgEYTU31LDEubBwLHoV00eSRef0d7RY6p7N+38ZnXUiPoVuqktGot/CApk96Jy mkcd9MflN/bd4aJpaHOyZrzKqFPxkUSgtFeghcahGyjw1M4LGoXeflS5xTbaaMroQ3lN TDdNlHzCw9doNfMqYFNpEN+WF6Q8tEWDbjhFSHNaJRFseTWy9ZNqsOe1xYRvqprN7XWn oaXxe0JlYPbYRI/LrFIdnf60TDci+s8NR28f2bWdctusrv2FqThGA2JB0SFqFGVL9us2 jnJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683254155; x=1685846155; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=evsRyVdUpm9tZ3zbpYtyLZiIFPAu7MWLlo8c04t+4vY=; b=aI/j2jOlBU67+24PVI+stfB3lafHxdI+tqhepp1CfD4xL6MFbBjTj64y9pttlp1v0/ MIf9z0a9b5DpT7vcDzPv68iKHoSVcee8RJzmTdkFy9iN2Up1w9gyc+RAWQ8wLdaN5g3E 9DUffB4HuXb/Q8wnFjDwMgIi9iE73nUPyusGMwncYzjCb6rpJsT98SLTMEBWk9hEk3Ak msq6+RTFU//1PZwzFLklF93cBzVgLXW84vYJcQ4Ie3aGjZ2CCRcrRU2yrjbZ6pmfFvqD w9M8FplmJ/B7QkDNhCAnvELoqBRHEmzlG/ghOtoH3pK9e7vbxMdkam5JBocvv/Xy96bx AVyw== X-Gm-Message-State: AC+VfDxnd3KflL1Dr2SrVCiG5vIBA24rlLGFivrpSZkOxdHbEDjTnNnl nR4KP26h65TTNOErwEN30q0= X-Google-Smtp-Source: ACHHUZ7SP5ujyT52IJy91MGux44+fALAl/Za+uzONf57QZ4t+E/ySlwSCIJZv2DqIpZSwxLv82pD9g== X-Received: by 2002:a05:6a21:999a:b0:fc:8dfb:3195 with SMTP id ve26-20020a056a21999a00b000fc8dfb3195mr5404412pzb.23.1683254154649; Thu, 04 May 2023 19:35:54 -0700 (PDT) Received: from localhost ([203.59.190.92]) by smtp.gmail.com with ESMTPSA id g18-20020a62e312000000b0062dd9a8c1b8sm407591pfh.100.2023.05.04.19.35.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 04 May 2023 19:35:53 -0700 (PDT) Mime-Version: 1.0 Date: Fri, 05 May 2023 12:35:39 +1000 Message-Id: Cc: "Sumit Garg" , "Mark Rutland" , "Matthias Kaehlcke" , "Stephane Eranian" , "Stephen Boyd" , , "Tzung-Bi Shih" , "Lecopzer Chen" , , "Masayoshi Mizuma" , "Guenter Roeck" , "Pingfan Liu" , "Andi Kleen" , "Ian Rogers" , , , , "Randy Dunlap" , "Chen-Yu Tsai" , , , , , "Will Deacon" , , , "Marc Zyngier" , "Catalin Marinas" , "Daniel Thompson" , "Colin Cross" Subject: Re: [PATCH v4 13/17] watchdog/hardlockup: detect hard lockups using secondary (buddy) CPUs From: "Nicholas Piggin" To: "Douglas Anderson" , "Petr Mladek" , "Andrew Morton" X-Mailer: aerc 0.14.0 References: <20230504221349.1535669-1-dianders@chromium.org> <20230504151100.v4.13.I6bf789d21d0c3d75d382e7e51a804a7a51315f2c@changeid> In-Reply-To: <20230504151100.v4.13.I6bf789d21d0c3d75d382e7e51a804a7a51315f2c@changeid> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230504_193558_911460_CF9B1F9B X-CRM114-Status: GOOD ( 10.14 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri May 5, 2023 at 8:13 AM AEST, Douglas Anderson wrote: > From: Colin Cross > > Implement a hardlockup detector that doesn't doesn't need any extra > arch-specific support code to detect lockups. Instead of using > something arch-specific we will use the buddy system, where each CPU > watches out for another one. Specifically, each CPU will use its > softlockup hrtimer to check that the next CPU is processing hrtimer > interrupts by verifying that a counter is increasing. Powerpc's watchdog has an SMP checker, did you see it? It's all to all rather than buddy which makes it more complicated but arguably bit better functionality. Thanks, Nick _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel