Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp175382lqs; Thu, 13 Jun 2024 07:14:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWgfGUZT1HQMPZ8dVhn6BwwK+WdJdktbjiFqHwE9LWR5j1JueR1Xs/8iS85gAK4jl+h45PrrF4Axh5BSwDnSgDcNY6juq4na8Us0RRCSw== X-Google-Smtp-Source: AGHT+IGByIWLIC64BaOfxfsVp3wTi/VRgYsSD0d4/xBvLWwM2zTD9FgtcOLNusYG9dudixsmhftk X-Received: by 2002:a50:ab54:0:b0:57a:3273:e648 with SMTP id 4fb4d7f45d1cf-57ca976cc94mr3297864a12.18.1718288040881; Thu, 13 Jun 2024 07:14:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718288040; cv=pass; d=google.com; s=arc-20160816; b=XAlt7iWGNd/9AC/z/YUOEu34gfMHg3fmTYfMahZ1UCWT2WbZ9Ozl1yiKSY9ubGRQ7L 0RG4QvRXJij1PFyDzfSjZ+06XVqvpg8sEl/xLrCLlMl7jgX2jKBgVZ3nBNeVfbtr+Ktv lAcom3rgFPR1RqWU9w4gATwFZscPh4yPA090ktV91u4aytaJY7E1UnYhT2Vnlve0I89d l9MoNPKmpiABD+TTkZris2DEhAL+k3mtSytw/fN2eDWI6plBcwbwbfDRKA0OF7BjZ0W6 2osOMAfTYibCa+wOEyNJ7bxTd5w+yK78CVnEeMQFh+ZT71ia1p5XzycTJWGsx+9cHFoF x0yQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:dkim-signature; bh=WBr89me4XcHZr4o6WgJAT/45F34TEJBrDeja5kex7lo=; fh=RQrvNSCRMHpTLVMajWvovKgjKU9yd9mGbpIc/8icGsw=; b=u+sBd65m0WA4iaIRxnuTiIzLgHe8Wusk6cbzm+qTONhZZpIlAsLW7bvDaUoBYgs/i6 M0yag+EGMaSJsJN5eNqSKk54iAJhMyeyxerjfxe434WOeHApkZVKJtyyRB9fcWz6JdHK ZzfIA4skWuD6MyzlCnwfwCOsaQdrdriFnVRCQydjMDWUBjtRZjCxhjvcFfSoRdb+IUSR JWFBrMONbacEEy8SImiTr8+fJ198LC6grWLLlItbk+L7MQjfQjdTjHuZ4UIIHxocq9+p yv3Ucb4zQVZXBIKHXo1vHQVhJ4y5mmFkpBDlRhNtMsw80uRvk1RDzHbQQaV1n13NQPlE nfRg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=wzQ073VG; arc=pass (i=1 spf=pass spfdomain=flex--sebastianene.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-213409-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213409-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57cb72e2ea5si792095a12.192.2024.06.13.07.14.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 07:14:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213409-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=wzQ073VG; arc=pass (i=1 spf=pass spfdomain=flex--sebastianene.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-213409-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213409-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 96F181F22445 for ; Thu, 13 Jun 2024 14:14:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 94EC3145A1A; Thu, 13 Jun 2024 14:13:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="wzQ073VG" Received: from mail-yw1-f202.google.com (mail-yw1-f202.google.com [209.85.128.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 66BAA143C59 for ; Thu, 13 Jun 2024 14:13:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718288022; cv=none; b=oRhdb/rzQ6zygHelS0mU06mp7ZOHiNsoUtmc5pEgRk+rDIHfo8iU5zYbnt0T7UdA2NpQmw8qnlkA8tLCCsX7jB+mo5uNSB10HaEHVomFSTpfLV4D4cyiY9JrZ2OX6kBVrivdDAeSNQFivUinAG5sz7d7if5Jpk4Ts50GcAX1PwM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718288022; c=relaxed/simple; bh=JvvA1Mb4xpPipo/GUaqPlHRKSMtpx0CMXy2lrxcdHoU=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=kml6EtGbl44+C+neCk/QJ9E+RpE65y8BROl3xaNvJfG2JKqR3eTzTPwGa2bs335EJPuO7sHU7hgRWCPMn5kZ6NTf0Xb/Lrc3FpITfN1amawwZPwu7w/aIG0BVwcKJ30G1ImeWvxSf/7GoL7LAHPD4Z9h27PWSnBHhBOZGwBIe7o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--sebastianene.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=wzQ073VG; arc=none smtp.client-ip=209.85.128.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--sebastianene.bounces.google.com Received: by mail-yw1-f202.google.com with SMTP id 00721157ae682-62fc0568219so19433477b3.1 for ; Thu, 13 Jun 2024 07:13:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1718288020; x=1718892820; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=WBr89me4XcHZr4o6WgJAT/45F34TEJBrDeja5kex7lo=; b=wzQ073VG7V8YiwoUnws+mzKLQhEb2Lvq/BfPVcTbsGld0ZBfcGAWzk9XHt88gIBtZD 5A9iCzH56jb6laJVQZkHHKBUk0zOzWRDaGfrzjPZfb/vnz7IxCZx2WaTRFzzR6FcPNH2 YlwSsS69/KB3cEjNma8p6oGaz/qEyrmXsMQvfS69jaM2goL2qu8laiO4z6r+kvnZLkN8 a7D3xWSnhe5N7XrEc7B3KFm/iPWp84htqwson/8j+Yrrz/NMTAUnUlTxlT7UtLtrKDR7 b0zwHa/k0gK+j3J+KO5QkpTJ7wdy2jYMcGKMGIEXpTo2qJoIaOTvpSU8njur/JXKHjvz nMWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718288020; x=1718892820; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=WBr89me4XcHZr4o6WgJAT/45F34TEJBrDeja5kex7lo=; b=dMRoGs16u5H+/irhnf4zbieGu80vD8+o3xVHaKLl/t0ya9n/tbQbiguShz162BQDVP xmc68qVdvsy0k2mFZfXCcQWVjlj/BpclxVv8SkugUvYg+4qt8hm+N06Y8I9VgGinLJUX EPwBcxKdGdkeoNSOxcr5erKqA2s6lsMFcr8yBctlvKo4vAp5S3+7KUrSZDbU0a/r8WcA cRTRsfpc7NYoWLPT5RW4702kFofkC341eshddNuX4ucEtlSz30PSgzVuI2K2RkvXK0jB yeD3DNPGpDigXbX6oWcGoN7scCbcjHwdhfxxD2k4tQI6YXEBxV9O83Z/ajWUQvkvnvnQ UUXg== X-Gm-Message-State: AOJu0YzjrD9hoFUzbFmRQ1vfR2u86RUXM8yBo/8k/A734m/rn0xyrHwq V3AjuRDX8WGfAA8y7Xqse7B0nYbT1AjIpPy3RKuILnbwa9ewg4zYRGnhMb8AOzDPz4yE47KxYT6 aSIWQ3xWTioRjYxIJb8JBI1KwIQ== X-Received: from sebkvm.c.googlers.com ([fda3:e722:ac3:cc00:28:9cb1:c0a8:cd5]) (user=sebastianene job=sendgmr) by 2002:a05:690c:a8d:b0:62d:fbf:920a with SMTP id 00721157ae682-62fbc2de630mr12401907b3.10.1718288020361; Thu, 13 Jun 2024 07:13:40 -0700 (PDT) Date: Thu, 13 Jun 2024 14:13:33 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.45.2.505.gda0bf45e8d-goog Message-ID: <20240613141335.1134341-1-sebastianene@google.com> Subject: [PATCH v2 0/2] misc: vcpu_stall_detector: Add a PPI interrupt From: Sebastian Ene To: arnd@arndb.de, gregkh@linuxfoundation.org, will@kernel.org, maz@kernel.org, Rob Herring , Dragan Cvetic , Guenter Roeck Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, kernel-team@android.com, Sebastian Ene Content-Type: text/plain; charset="UTF-8" Hello, I respined the v2 version to address an issue previously found here: https://lore.kernel.org/all/202406132132.FBKSWFav-lkp@intel.com/ This is a small update of the previously introduced vcpu stall detector which adds an interrupt to the virtual device to notify the guest VM in case it stalls. This lets the guest VM to handle the reboot and to panic in case it expires. Changelog from v1: * 1/2 : collected the Ack from Conor Dooley, thank you Conor ! * 2/2 : applied the feedback received from Conor and used platform_get_irq_optional. Removed the error messages during probe Thanks, Sebastian Ene (2): dt-bindings: vcpu_stall_detector: Add a PPI interrupt to the virtual device misc: Register a PPI for the vcpu stall detection virtual device .../misc/qemu,vcpu-stall-detector.yaml | 6 ++++ drivers/misc/vcpu_stall_detector.c | 31 +++++++++++++++++-- 2 files changed, 35 insertions(+), 2 deletions(-) -- 2.45.2.505.gda0bf45e8d-goog