Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4A68AC77B72 for ; Thu, 20 Apr 2023 09:51:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234097AbjDTJvt (ORCPT ); Thu, 20 Apr 2023 05:51:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234266AbjDTJv2 (ORCPT ); Thu, 20 Apr 2023 05:51:28 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 749131FD2 for ; Thu, 20 Apr 2023 02:51:26 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E9C701480; Thu, 20 Apr 2023 02:52:09 -0700 (PDT) Received: from bogus (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E7A8E3F587; Thu, 20 Apr 2023 02:51:24 -0700 (PDT) Date: Thu, 20 Apr 2023 10:51:22 +0100 From: Sudeep Holla To: Robin Murphy Cc: Ayan Kumar Halder , mark.rutland@arm.com, lpieralisi@kernel.org, linux-arm-kernel@lists.infradead.org, Sudeep Holla , linux-kernel@vger.kernel.org, Vladimir Murzin , Stefano Stabellini Subject: Re: SMP enablement on Cortex-R52 (using PSCI ?) Message-ID: <20230420095122.chw527nozzwkopnx@bogus> References: <1cb7d428-c047-1485-e39d-465806f6ef0b@amd.com> <20230419084756.3gypfyuuezjj7tyd@bogus> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 19, 2023 at 06:50:26PM +0100, Robin Murphy wrote: > On 19/04/2023 9:47 am, Sudeep Holla wrote: > > > > I will check with the authors if EL3 is a must for PSCI implementation, but > > IMO it must not be though every aspects described in the spec may not apply > > when used across EL2/EL1 boundaries especially when EL3 is not implemented > > in the hardware. > > Xen could provide PSCI to EL1 guests using the HVC conduit. However if EL2 > is the highest implemented EL, then Xen is the most privileged software in > the system - it would have to own the EL2 exception vectors, and it would > have to own the low-level CPU bringup code. At that point it just wouldn't > make much sense to HVC *itself* via the PSCI protocol when it could simply > call the function directly. > Agreed, I was focussing to much just on EL2/EL1. I don't know details on how power management responsibilities are split between Dom0 and hypervisor, but I am more interested in understanding how cpuidle/suspend would be structured with the direct function calls. -- Regards, Sudeep