Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1059553lqt; Tue, 19 Mar 2024 11:22:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWnWzH+NnY9ZCm9/v2EJ5l4GRGtFi5Nl8avt87Lk90/Qyi20V3h0SePhcqL3gfl3H8ciMp6V4Cr2LbecIZ1eWRuM3HEuz+ODHSDkNXb4g== X-Google-Smtp-Source: AGHT+IFv9LG57DVAks4qZAjeI+OZuWPIEKg4SS540YZ2K8e31DVRxawJtgYbruBL6Qn9edt9jnwm X-Received: by 2002:a05:6512:468:b0:513:dac5:ee1a with SMTP id x8-20020a056512046800b00513dac5ee1amr7863389lfd.25.1710872529966; Tue, 19 Mar 2024 11:22:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710872529; cv=pass; d=google.com; s=arc-20160816; b=KwQX4JuwdSQkRBmUcgO1tILaYpMojvsCH1GkCG7dMJjn/M7R/6ofN5waycdj3Rk0cX k5Et+amOAawkP3dzGGy6/diuKaeXqOOwS7oIIFv7nZa5CQxsDL+/mmY6BPWNvnSOeTAO ZrfGA6pkrWTZaLpGz5ef/lJCrK6Uyhrap8nl9dW2AJwk7uHtLuNxr30WQ3ai+GRFyzap kDxwfhod6U4xB22pdoG7CmODt/XTP9H+in1rLaMDWVnAEQeTBRxR8bL4XRP0zZGtcG+t QfdnLcV85eW+HSLE2KXI7zHqKDocVMAeCvCwCdixbrhseCLvjgX7e/5emNW1v3UrIjYC +YVQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=4Zpz2JcjWhGlazAgpId/FsjMBJt7sqHYOH/Rw/CmRqw=; fh=cGTiXEW680tjRkJBO0R8Z7uT0RUWfkbNFWDDGM1ZY2g=; b=PUsdIm/nSW/E4FbBOCiaO75HuW+47oYoC5peGTffJ9DCmGb0ze9Jd3ypIchnS/XB6C ALGsGnDcJkJXMRZpjO1vOu9NiBhtd/ji+CVH+jCXgTPawAjiuAQm/FZJ0nNskbHHnsGu w5ZU+x75npIWe7+SugkDI37sX1x8iU7sPd/hxzrPdv5dqyTB39OL9W1oQNUtqiZNOVcd uqJYX9YMp53kwp+tNdY+DelH/WpqAwOUr4jt+e6SAO9qpyc/iz5KEjkekQibclySPJ4F wXwtBwGxnQY+Jpoid5GYil9plb255ZhiNPBUw2ABAQGMhzGjkvW6FWeGRavoMxaFOU3H rqKg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=RsrEOHmG; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-107571-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107571-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id fd24-20020a056402389800b0056b9eb5124dsi501309edb.371.2024.03.19.11.22.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 11:22:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-107571-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=@infradead.org header.s=casper.20170209 header.b=RsrEOHmG; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-107571-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107571-linux.lists.archive=gmail.com@vger.kernel.org" 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 598A11F22ACB for ; Tue, 19 Mar 2024 13:12:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D987E80BE0; Tue, 19 Mar 2024 13:10:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="RsrEOHmG" Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6FC1581729; Tue, 19 Mar 2024 13:10:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.50.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710853814; cv=none; b=kyk85X/fnxzffwSka6OWoYaiFrcleMUJHw+EV8ARKFwo35vX/Q/lUrGImxtBBNzTAqg+PO21r+R/XAbL4pmjsb9xEdOcEnN0iKMHNNaFZ+/ydzqkCGunYylvgm05nNXfYejwwQzFHbeXlWDT7iJDESWeoYNC3kFElkA6W3ex8Mk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710853814; c=relaxed/simple; bh=JVi4X3Yp8llR/EjNT7yP76NQ5cLtcJoGUEbvuYaKKYU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=OHCCcA117+Q3lxvZhn3a2ESK1ksw4ZZx1LAPCeWcdw/RtVckMmPDqrQkxAo7UB2BItPnmTU6ZXZQxAUMqN2gmMtlrVIoAKFuF+aLtRRASK1UARHP5UTDRVhYInYECSkVyYm6rFt5jjs0tSSho8tXg5PuHZLgJ3T8wjKvH4WerpQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=casper.srs.infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=RsrEOHmG; arc=none smtp.client-ip=90.155.50.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=casper.srs.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Sender:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description; bh=4Zpz2JcjWhGlazAgpId/FsjMBJt7sqHYOH/Rw/CmRqw=; b=RsrEOHmGYscdscCLy/l5STIE3U 9t5Uqfyswjc11nctCwx9zSrRCsx79QJJU/lCHr3HccMvvhfQVR671u2QSjBuf/ZhbLzZp/4M7jMZ/ J7QmlhJKZ8SrHE3UPX6wlwqHuUpB3rnqPOX7W9Qh4ga3a9e9lvFksk+oHv2bezWm0rkbWiyu29vFW 3DSn+4bucYlNPF7j2JM2PHEjqvXUlkDqgFeTudEpCG/sLeDxvKXwCDMaTtkwB86sfLizzxdnYxYGl /J7z2RVej7ohygRk1W5ZOCAhSkjkifDKMY2/Cg+fS4h3UBsAMFITcf5lBJ+sShvy5o/iJAF+SoHFf QyqHaS/g==; Received: from [2001:8b0:10b:1::ebe] (helo=i7.infradead.org) by casper.infradead.org with esmtpsa (Exim 4.97.1 #2 (Red Hat Linux)) id 1rmZE9-00000001zLU-26EJ; Tue, 19 Mar 2024 13:10:01 +0000 Received: from dwoodhou by i7.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1rmZE9-00000004PN2-0Uut; Tue, 19 Mar 2024 13:10:01 +0000 From: David Woodhouse To: linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org Cc: Paolo Bonzini , Jonathan Corbet , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , Catalin Marinas , Will Deacon , Mark Rutland , Lorenzo Pieralisi , "Rafael J. Wysocki" , Len Brown , Pavel Machek , David Woodhouse , Mostafa Saleh , Jean-Philippe Brucker , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, kvmarm@lists.linux.dev, linux-pm@vger.kernel.org Subject: [RFC PATCH v3 4/5] KVM: arm64: nvhe: Pass through PSCI v1.3 SYSTEM_OFF2 call Date: Tue, 19 Mar 2024 12:59:05 +0000 Message-ID: <20240319130957.1050637-5-dwmw2@infradead.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240319130957.1050637-1-dwmw2@infradead.org> References: <20240319130957.1050637-1-dwmw2@infradead.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: David Woodhouse X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html From: David Woodhouse Pass through the SYSTEM_OFF2 function for hibernation, just like SYSTEM_OFF. Signed-off-by: David Woodhouse --- arch/arm64/kvm/hyp/nvhe/psci-relay.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/kvm/hyp/nvhe/psci-relay.c b/arch/arm64/kvm/hyp/nvhe/psci-relay.c index d57bcb6ab94d..76c7643e7eff 100644 --- a/arch/arm64/kvm/hyp/nvhe/psci-relay.c +++ b/arch/arm64/kvm/hyp/nvhe/psci-relay.c @@ -265,6 +265,8 @@ static unsigned long psci_1_0_handler(u64 func_id, struct kvm_cpu_context *host_ case PSCI_1_0_FN_PSCI_FEATURES: case PSCI_1_0_FN_SET_SUSPEND_MODE: case PSCI_1_1_FN64_SYSTEM_RESET2: + case PSCI_1_3_FN_SYSTEM_OFF2: + case PSCI_1_3_FN64_SYSTEM_OFF2: return psci_forward(host_ctxt); case PSCI_1_0_FN64_SYSTEM_SUSPEND: return psci_system_suspend(func_id, host_ctxt); -- 2.44.0