Message ID | 20201104183630.27513-4-dbrazdil@google.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=JBzc=EK=lists.infradead.org=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5B403C4741F for <linux-arm-kernel@archiver.kernel.org>; Wed, 4 Nov 2020 18:38:31 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D953D2067C for <linux-arm-kernel@archiver.kernel.org>; Wed, 4 Nov 2020 18:38:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ozZSfyOX"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.b="Q5mK8uSR" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D953D2067C Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=If22Bqw4Ufx9Yf7fwqbA89aBZZaP9zOuAfONLiBLrtI=; b=ozZSfyOXor1gb6MkI3xN/lD4z 20L/cb2nXt3u7ktAoPKRPS8Rgq7HTnA3xvMcwOexYeQ32dZq+AziSjBqYFz/J6ORLhlN+gqvW9mf8 FDjzMrJwE1AoQORiECXHNrz0IEv1i6QugT3kBrQM5PofT2CohG01AkQyN8dYGGezydYanIRFUEJ+y JjtOIsK0s3whp3izcrBlln73Pm+xJJwFrRH35Xk0SliEQFed6fIVfiBclePxjSME730biV0iK5mBy nq3ZvdJfY78rVe5KUW7BFpt0xrxG/96yy5KvxXKCHaxhVWBZtGGnyGXHgnjqcOJxuLViQ8YeKo7Tm Snr4evxIQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kaNeP-0001fr-1i; Wed, 04 Nov 2020 18:36:53 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kaNeH-0001dz-Kb for linux-arm-kernel@lists.infradead.org; Wed, 04 Nov 2020 18:36:47 +0000 Received: by mail-wr1-x444.google.com with SMTP id c17so3796181wrc.11 for <linux-arm-kernel@lists.infradead.org>; Wed, 04 Nov 2020 10:36:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=dretx+OcQnNEgjiOHgLf5xuX2mgx6Pn+lAvUlmv1Umw=; b=Q5mK8uSRD63nfgGRd0lH16O0TMipT4yLtqy2sQBbkl08CNUezovnETohG9rebszGq8 0vdx8lJYS4mB9WRlz3W8/KzhCbjQ8OxW2FhSblN9uLFsDI/rbUQ9TTI97z7HhER3cXxs rHjtP/050BQ5K769dm085pH6Q/u7t7rMPpUVYc2OcIcJssNsO6XTa/wlRHRx9mZLv+IW Gahyfz5hGR7cT2wErqGNFxxxZEuHR04KSISkvpwR65eArEww7TerLaTFSSjHrDSUinvK oHAAy7K8iNU1EnePynpucNkY8ISIBbrT45JUUsnhQXdPmmoGe/ykyJmmKrz6zYHpmisf tptQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=dretx+OcQnNEgjiOHgLf5xuX2mgx6Pn+lAvUlmv1Umw=; b=dspyJW+z7dK26PQdHZXu8RSguFcVifpNJtPdrLPfwzJCXeLt3O84qQPAILuzVSUVFk 8bZDgswwSvqfm2M6bP4NK5a9W40EB2+z4ca06txteDziiV7vFS0yseEK3o8fo8ab3NAj EhuzdhWZVhTw17pJdbMesc+an0zJTbmEb0Ev2egGtzWbkPTx26LfbY+NkVVCFeECIsSZ bovOXMKuhn5b27EGUysO0pqdctnL5sMJofsm4X82E7oN24HtQIBVRXAWSGS4t47megNE CuOYXBMxmLsmqIEOzqik7oKIYtgVHVc9qYryP1sVkfjCQXLlwxZm/hm62ysB4LGu+rk8 Mjlg== X-Gm-Message-State: AOAM532AjfG3X3N96ofQdSDac2k7/uyrTOaqFmlt+6ty2RxFck0vo7Fq fy7VRTyfyU/ctUd9dElodioUow== X-Google-Smtp-Source: ABdhPJzz9EDjWjSDrVKMul71N2NUVEw1fW+kiKrX84z0zmTkgi3rkWsvlxdP0L2e6xtC+jegDhXbQw== X-Received: by 2002:a05:6000:118c:: with SMTP id g12mr34650447wrx.246.1604515004320; Wed, 04 Nov 2020 10:36:44 -0800 (PST) Received: from localhost ([2a01:4b00:8523:2d03:c8d2:30f2:53c6:bc2]) by smtp.gmail.com with ESMTPSA id l16sm3665022wrx.5.2020.11.04.10.36.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 04 Nov 2020 10:36:43 -0800 (PST) From: David Brazdil <dbrazdil@google.com> To: kvmarm@lists.cs.columbia.edu Subject: [RFC PATCH 03/26] psci: Export psci_cpu_suspend_feature Date: Wed, 4 Nov 2020 18:36:07 +0000 Message-Id: <20201104183630.27513-4-dbrazdil@google.com> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201104183630.27513-1-dbrazdil@google.com> References: <20201104183630.27513-1-dbrazdil@google.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201104_133645_723100_CC19DECC X-CRM114-Status: GOOD ( 16.29 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Mark Rutland <mark.rutland@arm.com>, Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>, kernel-team@android.com, Suzuki K Poulose <suzuki.poulose@arm.com>, Marc Zyngier <maz@kernel.org>, Quentin Perret <qperret@google.com>, linux-kernel@vger.kernel.org, James Morse <james.morse@arm.com>, linux-arm-kernel@lists.infradead.org, Catalin Marinas <catalin.marinas@arm.com>, Tejun Heo <tj@kernel.org>, Dennis Zhou <dennis@kernel.org>, Christoph Lameter <cl@linux.com>, David Brazdil <dbrazdil@google.com>, Will Deacon <will@kernel.org>, Julien Thierry <julien.thierry.kdev@gmail.com>, Andrew Scull <ascull@google.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
[RFC,01/26] psci: Export configured PSCI version
|
expand
|
diff --git a/drivers/firmware/psci/psci.c b/drivers/firmware/psci/psci.c index ffcb88f60e21..b6ad237b1518 100644 --- a/drivers/firmware/psci/psci.c +++ b/drivers/firmware/psci/psci.c @@ -71,7 +71,7 @@ u32 psci_function_id[PSCI_FN_MAX]; (PSCI_1_0_EXT_POWER_STATE_ID_MASK | \ PSCI_1_0_EXT_POWER_STATE_TYPE_MASK) -static u32 psci_cpu_suspend_feature; +u32 psci_cpu_suspend_feature; static bool psci_system_reset2_supported; static inline bool psci_has_ext_power_state(void) diff --git a/include/linux/psci.h b/include/linux/psci.h index 877d844ee6d9..a5832d91d493 100644 --- a/include/linux/psci.h +++ b/include/linux/psci.h @@ -29,6 +29,8 @@ bool psci_has_osi_support(void); */ extern int psci_driver_version; +extern u32 psci_cpu_suspend_feature; + enum psci_function { PSCI_FN_CPU_SUSPEND, PSCI_FN_CPU_ON,
KVM's PSCI proxy could probe the firmware to establish features supported for CPU_SUSPEND, but since the kernel's PSCI driver already does that, and other information about the driver is already exported, export the value of psci_cpu_suspend_feature as well for convenience. Signed-off-by: David Brazdil <dbrazdil@google.com> --- drivers/firmware/psci/psci.c | 2 +- include/linux/psci.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-)