From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="wzQ073VG" 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-Google-Smtp-Source: AGHT+IEkC9/Y4iK9fxrgnym1aS48DHLsXlQbFUVLV6b0cV3XIfrOmU5z8nnkTtCP5gaXSFFSwCZZosDvxu3eAIH1WL8= 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