Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp232111iob; Mon, 2 May 2022 17:59:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhSFsmu6BWkqASwV8A7KkKoIaw5FemmWkYMSzAS2f2A4DWafGCIiEoSOPd1DXF/z+hqBJZ X-Received: by 2002:a17:902:a707:b0:15b:6ea2:8ea2 with SMTP id w7-20020a170902a70700b0015b6ea28ea2mr14123204plq.134.1651539556470; Mon, 02 May 2022 17:59:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651539556; cv=none; d=google.com; s=arc-20160816; b=J3Vediy6uV9t9E0ys+wGg73PnxP4Rwbu65Xo3FngKGArti76e1aopFyolXl0N2xEW6 vbI3Ey8+rmbCYXkKwBGuvITMk7630SOUrIFce682TQTNT71jVP5Z+O6t8hpDfcQMWYem dwt7J9bZDeiOsmpQZ4auNkrSiSRp8ua7RyhvOCIjtgvO3EEPEHcBHOFYBVuvgoR/qKmE YT1QHdxWrNTt4GStw30z4ZlfKqyrB1PaA2w4+vhO7+KYb0UDZPmUb+2y95f34dPO28fY qT76aN0bi9yUBKPY/Qt+0Rofduf4wz3gVwiZ3rMO4se3NkepfsR8bRPtgFjdYHbU8+lJ Hw4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=4Wu5UbbLjO4fkVtRhATuGMYwwxjW91yZECIVVs3EXU0=; b=VG65ZoI/szH4MuizcxHW40hByl3lA2ioc8biLbjXxTFH+rw6fsvTP89XSYkGFvFV70 KbprL97Y6u3dBlryQRno4MM5a1gPoaYPfE8YUUy70ejdQwCGYxnoH9EdtbYa7eKrJpDO +S8IpZKbzdf6Gxm9TWaGoKYCL7mquMdMWqQUvSKjo6/bDYEA2LvihFLzk9cSMmyZjj0a 5g7/ZKYjlXuW/wpK8UCbU9TWwJLq5a/RAg/cKtr4L8g2Em+NUN5nF0dB2wT76Zyy15rB Z0fnVAvrx4fRLBTIFp2N02vrcIbKjRC9v5mZr6nwZiZBwDF9Sr8WD7/rNn1I/XCL0jTE mVoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=SCvBo61I; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id d16-20020a170903231000b00153be6474c2si9383307plh.531.2022.05.02.17.59.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 17:59:16 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=SCvBo61I; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 058123B552; Mon, 2 May 2022 17:44:35 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1383418AbiEBGHM (ORCPT + 99 others); Mon, 2 May 2022 02:07:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348929AbiEBGHK (ORCPT ); Mon, 2 May 2022 02:07:10 -0400 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 935504BB9A for ; Sun, 1 May 2022 23:03:40 -0700 (PDT) Received: by mail-wr1-x42b.google.com with SMTP id v12so18228975wrv.10 for ; Sun, 01 May 2022 23:03:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=4Wu5UbbLjO4fkVtRhATuGMYwwxjW91yZECIVVs3EXU0=; b=SCvBo61Id+dAqR8kqisUnDTJuBNQj7Vs0uVgzw/U9Quq+SsoF9gpIsUOLyajaPHVFL UGEXVCOvJgY5QKV17WRq/67bA3xhjSOhxEiS+1+2peE2irX76CoXN82/MBw1LgM6L5hD 2C02doNAqdL7lOsGzcA0nDSRdIIZZAAgULjF4iv9rK2JhCUHFzTvEIhbyGz4rAjMwNdC PL3i2q02XucjoePSxwqHT0XWq7hDq68pzo39J3oaUP6B9cwXCowSnIteVJbLzRdi4xzN wyhoJ43ogDBU4ZNUlbfcMv3DM/hNx/sp4o5HvQNon4W4REW++0v3SCCgS0aMf96kWfDz kAQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=4Wu5UbbLjO4fkVtRhATuGMYwwxjW91yZECIVVs3EXU0=; b=zW3lfwNHRgByMqMPapXBfWoKvIhuphGoej+OQbJ/dg5Kyrxz5x/tuoPaCiGefmkBrj u1AFNgKK03YDhDMJRntEObi7l11ZBscZ9YJULP/KR4FIwxbW7JrIT3zFLQvkBMZqxeGe roE9Lds6Xl3KLLd/1owOnh/fs6lB+Ry1pwzsCgmmoNPUa+tpYba3dxXt8RdfzX9a7lMT HRoMeAjPiMi9CC14rZGZqWzbE8Ub7pGhiOTlK3fAsWBqxr+/dN/BrH6jnYoh0EC70sf2 6T5UD6mpylvqgbZoEl7Hb7aTaKtT4X4mQxDawvg+r6huhsPRpPj2dkXycsKCbZavC/IQ 69ZA== X-Gm-Message-State: AOAM533NFVRF8Jf8PafGllFgjZwiEsNaJn2KiVDHJDNVKt/d2Ohc9SiD +Eok1ssykMOLfzCGEDpHaFcprCX7d34MKm3W X-Received: by 2002:a5d:64c8:0:b0:20c:6969:b277 with SMTP id f8-20020a5d64c8000000b0020c6969b277mr866262wri.354.1651471419059; Sun, 01 May 2022 23:03:39 -0700 (PDT) Received: from google.com (49.222.77.34.bc.googleusercontent.com. [34.77.222.49]) by smtp.gmail.com with ESMTPSA id y8-20020adfc7c8000000b0020c5253d902sm6212164wrg.78.2022.05.01.23.03.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 May 2022 23:03:38 -0700 (PDT) Date: Mon, 2 May 2022 06:03:37 +0000 From: Sebastian Ene To: Rob Herring Cc: linux-kernel@vger.kernel.org, Derek Kiernan , Dragan Cvetic , Arnd Bergmann , devicetree@vger.kernel.org, qperret@google.com, will@kernel.org, maz@kernel.org, Greg Kroah-Hartman , Guenter Roeck Subject: Re: [PATCH v4 0/2] Detect stalls on guest vCPUS Message-ID: References: <20220429083030.3241640-1-sebastianene@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL 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 Fri, Apr 29, 2022 at 03:25:45PM -0500, Rob Herring wrote: > On Fri, Apr 29, 2022 at 08:30:29AM +0000, Sebastian Ene wrote: > > This adds a mechanism to detect stalls on the guest vCPUS by creating a > > per CPU hrtimer which periodically 'pets' the host backend driver. > > On a conventional watchdog-core driver, the userspace is responsible for > > delivering the 'pet' events by writing to the particular /dev/watchdogN node. > > In this case we require a strong thread affinity to be able to > > account for lost time on a per vCPU basis. > > > > This device driver acts as a soft lockup detector by relying on the host > > backend driver to measure the elapesed time between subsequent 'pet' events. > > If the elapsed time doesn't match an expected value, the backend driver > > decides that the guest vCPU is locked and resets the guest. The host > > backend driver takes into account the time that the guest is not > > running. The communication with the backend driver is done through MMIO > > and the register layout of the virtual watchdog is described as part of > > the backend driver changes. > > > > The host backend driver is implemented as part of: > > https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3548817 > > > > Changelog v4: > > - rename the source from vm-wdt.c -> vm-watchdog.c > > - convert all the error logging calls from pr_* to dev_* calls > > - rename the DTS node "clock" to "clock-frequency" Hi, > > Why do I have a v4 now when the discussion on v3 is not concluded. Give > folks some time to respond. We're busy drinking from the firehose. > I am trying to address the issues incrementlly keeping a week cadence. Any feedback on this is welcomed. Thanks, Seb > Rob