[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [EXT] Re: xen arm64 low power sleep support


  • To: Stefano Stabellini <sstabellini@xxxxxxxxxx>
  • From: Anthony Chan <anthonychan@xxxxxxxxxx>
  • Date: Mon, 11 Sep 2023 15:56:38 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nureva.com; dmarc=pass action=none header.from=nureva.com; dkim=pass header.d=nureva.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=0ZYzElY3T5DAD2dcgUGFseEmujyc7gzex3NjNjoczEU=; b=bl7Zb/of9sxP9jqx5hlvlBJt63sPkzsb/RrbWn1iKRs/K0iFdXYzQtNb+09iWDTJdQQ2FsuLj0ck6y5LJJ1uXY/af6xDsufHUDE+NHlLk1fPjLRgwgWC1hYwm/iJV9pF5HCYKJzSy7H4o6ZQceEqs4LO60R18OI0rGQOKi1ZV7KXOCdz459QIziLE70cRODSKJkmirqfoShM7mVAlfpI0dOIQb9DfqdaWkQATCeewb2ZgvMw+aeYhd/8u0zKhTox7z488HunpBKM/4UJ1X9h9lttFs4CMLiWGkqYmJHMuWaHU++gIq5nLvt9o/oZCLUA1LAEhVANpUuAkB8UMUkp6w==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EIPlyATCJ9JthHZuzXUW2GKPblf8OdliJssjNwjetvNF4Y0Uh9ji9ki2eUTiA12FGTqanZygM+btVtgvxgxcFZ/sld3h7zAdJ5DCxf+A/8ZvB7DDPwIr8gB8OwWhgrClWgo4VL1usdKt49CRd2TbrxOlSBYWnykOqK7n6OIr5MbovLYIFKEt+nTfFVIrQ6bQ6VJXKDBgGhJHzVlOqryDg5sY6lCxSDBnVTr4V1d0/J1C0K5ApDrFgaCxinoU8EwxOFvTgm0nXeN0yxpA2RGw/JGA3eQYEG3vBMN0CIc43H9Mbv4P3T/gCPwkoPsbMWCNZSbAh8Aoa5WqX6PU0k2xQA==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nureva.com;
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, "bertrand.marquis@xxxxxxx" <bertrand.marquis@xxxxxxx>, "julien@xxxxxxx" <julien@xxxxxxx>, "Volodymyr_Babchuk@xxxxxxxx" <Volodymyr_Babchuk@xxxxxxxx>, "michal.orzel@xxxxxxx" <michal.orzel@xxxxxxx>, Dan Waqar <danwaqar@xxxxxxxxxx>
  • Delivery-date: Mon, 11 Sep 2023 15:56:55 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AdnanCj70Orzia5aQfSER7H0AUNnzgAKb5uAACL7QIAAFccGAAAoRLpQAQalgwAAJhokEAAI5CkAACis4mA=
  • Thread-topic: [EXT] Re: xen arm64 low power sleep support

On Wed, 6 Sep 2023, Stefano Stabellini wrote:
> On Wed, 6 Sep 2023, Anthony Chan wrote:
> > Thanks, I've tried patches that stemmed from that discussion but
> > unfortunately, doesn't resolve the issue.  In fact, the s2idle_loop
> > branch might not be the problem at all.  I experimented with Xen to allow 
> > the
> > 'idle-states' into the FDT and prevented xen_guest_init on Linux from 
> > disabling
> > the 'cpuidle' driver (arch/arm/xen/enlighten.c).  When I trigger a suspend, 
> > I
> > can see now another thread (believe it's the idle thread) call into
> > drivers/firmware/psci/psci.c:__psci_cpu_suspend and then the Xen
> > counterpart at xen/arch/arm/vpsci.c:do_psci_0_2_cpu_suspend.
>
> OK but remember that Xen is not implementing do_psci_0_2_cpu_suspend
> correctly at the moment. Either we need to fix the Xen implementation, or we
> need to configure Linux so that it calls WFI instead of __psci_cpu_suspend.
>
> As a test, can you try to apply the attached patch to Xen as a tenative fix?  
> Or
> you could change drivers/firmware/psci/psci.c:__psci_cpu_suspend to call
> WFI instead of the PSCI operation (making sure to go to the entry_point
> instead of returning).

Tried the patch and substituting a WFI for a PSCI op, but Xen still watchdogs 
on the VMs in both cases.  I noticed the other Linux generic arm 'cpu-idle' 
driver which used to do issue a WFI/cpu_do_idle isn't useable anymore either.  
I'm not sure if Xen may have used to rely on this generic driver to get the WFI.

CONFIDENTIALITY NOTICE: This e-mail, including any attachments, may contain 
information that is confidential and privileged. Any unauthorized disclosure, 
reproduction or use of this e-mail is prohibited. If you are not the intended 
recipient, please notify the sender by reply e-mail or telephone and 
permanently delete this e-mail and any reproductions immediately.



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.