Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp526308rwr; Thu, 20 Apr 2023 02:52:12 -0700 (PDT) X-Google-Smtp-Source: AKy350YYpq6oVtfIVGQHyv0T/Uk/b2o8cSt6xOnACHp6FoWlwjYWGGRZZoEdl9zg8hROhMN367ul X-Received: by 2002:a17:902:f906:b0:1a0:7156:f8d1 with SMTP id kw6-20020a170902f90600b001a07156f8d1mr813962plb.19.1681984332149; Thu, 20 Apr 2023 02:52:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681984332; cv=none; d=google.com; s=arc-20160816; b=SeC9L52/8+rBaHU4GYq3NPq/tcEgBRJt7WGKtjes5Y79ch4DMi3xIN5ykF7KvCE4HK +rdZIUtEu9q1iB6xzQ60T8zMpVlolExUtxjwGIL0Dcsb6G1oINjhaiMd7M+5Tt6JylZu 3wL9xhQp/rWPFYG9aH1Ffzg8SPPZXNlPq6Jk+2kUxu96CojNPaNJO6t1s6z+++A1ipYd 5FGCEwitEZpviffiSl/nFdObzrgi0zRC7c7LO6nd9dL3dYsuIMbYBaSWpO9kzLvsjux1 VPXTy/U1Cotz4psGjQ+3kTMZh3x+1Kh9zqvE+02Yfqzt3uEVN5elUCrbK9Z8sVzDyEoy ANlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=g28AaZ0SwiuKw1SJnBltaq07R/7vGIetTmCIWIJORUE=; b=Xv6+QTISYDt6Mp3P8nc67uh0dXRMGONma+w8jYoC1l1vsgol+7lAWEFEapMyz/Y8JO GMwICSVQueBN4PpZvIMonztbtq98VLgr9RqdVkCvL1O4/oAdZQe1fX1Iv2pb8+FIOQgT vxDLrHnhjkLcjqzeIRJtsLEBI6XBl2LKgoPhLB6M08qV88iK9HnERzm4+pagvQOEd+cn 9wz2v+KNjIOghUN3Jm7XbRfvtPSph73w4JNlrOaH5P24HAtQ5NjPCccy8JzuGo7axXNK 7dKKTMXsTbmbT4Cpy5+QQQau5G4uc93EVMCYgFY7Jx8dBv+URzZmkC9Gl8OnQoCM4f/4 +fKA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b17-20020a170903229100b001a6e58380f6si1477313plh.523.2023.04.20.02.51.58; Thu, 20 Apr 2023 02:52:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234042AbjDTJvq (ORCPT + 99 others); Thu, 20 Apr 2023 05:51:46 -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: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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