oxidecomputer / oxidecomputer/propolis

better emulate PM1 registers

Open
#837 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
270
Forks
42
Avg merge
4d 5h
Merged PRs (30d)
6

Description

When booting Linux (depending on the kernel version), some ACPI errors are emitted:

[    0.386017][    T1] ACPI Error: Could not enable GlobalLock event (20230628/evxfevnt-182)
[    0.387055][    T1] ACPI Error: No response from Global Lock hardware, disabling lock (20230628/evglock-59)
[    0.926299][    T1] ACPI Error: Could not enable RealTimeClock event (20230628/evxfevnt-182)

The ACPI logic is attempting to enable the SCI bits for GBL_EN and RTC_EN, which we currently pay no heed to. The former would likely be trivial to support, since I do not believe there is Global Lock activity from the firmware, and thus no source for such events. The latter poses more of a challenge, since we have no way of wiring up RTC events into the emulated power management device. Allowing the guest to enable such events might be a cruel lie, if they will never arrive.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the ACPI logic that handles SCI bits for GBL_EN and RTC_EN, then inspect the emulated power management device and how Linux boot reaches these paths. Determine whether Global Lock and RealTimeClock events can be represented accurately; done means supported events behave correctly without the reported ACPI errors or are deliberately rejected.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
operating-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.