From patchwork Fri Apr 19 17:18:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip Cox X-Patchwork-Id: 1925645 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VLhJb0C7hz1xrS for ; Sat, 20 Apr 2024 03:21:34 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1rxrvM-0007DR-Kf; Fri, 19 Apr 2024 17:21:20 +0000 Received: from smtp-relay-internal-0.internal ([10.131.114.225] helo=smtp-relay-internal-0.canonical.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1rxrvJ-0007D7-48 for kernel-team@lists.ubuntu.com; Fri, 19 Apr 2024 17:21:17 +0000 Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id E12663F16A for ; Fri, 19 Apr 2024 17:21:16 +0000 (UTC) Received: by mail-qv1-f69.google.com with SMTP id 6a1803df08f44-69b31b7df0dso32409756d6.3 for ; Fri, 19 Apr 2024 10:21:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713547273; x=1714152073; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=TskGfWi/cUhfHeu7+JoTPAvdy0p+nM0MiebI+LCD59g=; b=UhjazdYDemV/d5QK84XU5nAvGXYqNZlG1SYmtm3DArd/GFPwC+rB3wX8Hq0lZFVTqq ao3OtuaS4J9qOV4Q49eZQRYQPxpjEM2uyd1dlNnrImGD4E0j1KWPJPHkpcLvrUSOrb7O qQ1vljD/f0KWSxbUwihRd94KW9aZP/Xs/UBhqa/HHWkU4AXadSO3nUlwMgkFTJ1mnlFg ftdwMWHJ6+/SGDM4JfScqcjgF6P1DJ2cTWS1L6jEKsLUfZT8QS9uORFUc9/XgPkofRpR iRKY9+C9rOrSBoFZdjr5xgRHe05ePM7W5xZZz6g6nGyg3O+JE/ffT8R8cW5uA/dNmphx CMvg== X-Gm-Message-State: AOJu0YzvaIQv0QKPoStyb70z9fxsB9mZaWiEyJ0/dIHnfzISOoMeDs1O KtMGN0pG6JcAvmZ+5ef6BNgi1skBALgv9QtN9C71seFiclU8NiGJpjHGmel5KTVJm0dgKtA3WJw YKYbs7O8lNdGe9AX20ZpTr4GNn53skaTESd36wcXC/ScQrd7MhKDpnGv/Lwt+39DIgmSNk1r422 0OJoBiEbelaA== X-Received: by 2002:a05:6214:4212:b0:69b:77b9:801a with SMTP id nd18-20020a056214421200b0069b77b9801amr2165789qvb.58.1713547272853; Fri, 19 Apr 2024 10:21:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFthVLdoZmf2FTqQSQVBqNX1mSX2uI4KpmmLrbukmISKF8GJmd7l6IUgYR53IF14jEi8RAiBw== X-Received: by 2002:a05:6214:4212:b0:69b:77b9:801a with SMTP id nd18-20020a056214421200b0069b77b9801amr2165775qvb.58.1713547272595; Fri, 19 Apr 2024 10:21:12 -0700 (PDT) Received: from cox.conference ([76.69.53.230]) by smtp.gmail.com with ESMTPSA id q8-20020a0c8cc8000000b0069fcd0520easm1746395qvb.17.2024.04.19.10.21.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 10:21:11 -0700 (PDT) From: Philip Cox To: kernel-team@lists.ubuntu.com Subject: [PATCH 0/2][m/n:linux-aws] aws: aws: KVM and guest support for the PSCI SYSTEM_OFF2 (hibernate) call Date: Fri, 19 Apr 2024 13:18:51 -0400 Message-Id: <20240419171853.81663-1-philip.cox@canonical.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/2061006 SRU Justification: [Impact] PSCI v1.3 adds support for SYSTEM_OFF2 which is analogous to ACPI S4 state. This will allow hosting environments to determine that a guest is hibernated rather than just powered off, and ensure that they preserve the virtual environment appropriately to allow the guest to resume safely (or bump the hardware_signature in the FACS to trigger a clean reboot instead). [Fix] This adds support for it to KVM, and to the guest hibernate code. https://lore.kernel.org/lkml/20240312135958.727765-1-dwmw2@infradead.org [Test Plan] AWS tested. [Where problems could occur] If the final spec of the PSCI v1.3 changes, there may be changes required to this patch series. [Other Info] SF# 00383181 Acked-by: Portia Stephens Acked-by: Tim Gardner --- David Woodhouse (2): UBUNTU: SAUCE: ACPICA: Detect FACS even for hardware reduced platforms UBUNTU: SAUCE: arm64: acpi: Honour firmware_signature field of FACS, if it exists arch/arm64/kernel/acpi.c | 10 ++++++++++ drivers/acpi/acpica/tbfadt.c | 30 +++++++++++++----------------- drivers/acpi/acpica/tbutils.c | 7 +------ 3 files changed, 24 insertions(+), 23 deletions(-)