Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dm suspend says "send_SuspendToRam: Failure with error: ZX_ERR_NOT_SUPPORTED" #4

Open
nealmcb opened this issue Jun 10, 2021 · 1 comment

Comments

@nealmcb
Copy link
Contributor

nealmcb commented Jun 10, 2021

Qemu is a real CPU hog for natural reasons. It would be nice to be able to pause or suspend Fuchsia / Zircon.

My first attempt was simply to use the Linux shell suspend approach (ctrl-z), but if you wait more than a few seconds to put the process back in the foreground, it crashes:

ZIRCON KERNEL OOPS                                                                                           
lockup_detector: no heartbeat from CPU-1 in 42506438 ms, last_heartbeat=520344414253 observed now=43026782921300 name=unknown.

Reported by [CPU-2] (message rate limited)
ZIRCON KERNEL PANIC
timer_ints: 146242, interrupts: 0

        tweight=0.2952270507 nfair=7 ndeadline=0 vtime=180747885048 period=8 tema=12583943 tutil=0.0
UPTIME: 43026795ms

I was happy to see a dm suspend command, but it says:

[00031.044] 21072:21074> [shutdown-shim]: checking power_manager liveness
send_SuspendToRam: Failure with error: ZX_ERR_NOT_SUPPORTED[00031.065]
 21072:21074> [shutdown-shim]: trying to forward command

What would it take to support SuspendToRam in this environment?

Are there other ways to pause the emulation and resume quickly?

@nmcain
Copy link
Member

nmcain commented Jun 11, 2021

ZX_ERR_NOT_SUPPORTED seems to indicate that the feature isn't finished on Google's end. I'll be sure to check this in newer revisions of Fuchsia.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants