Skip to content

Acpi Rewrite - AML: Problem resolving PCI Routing Table entries #249

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

Open
newcomb-luke opened this issue Apr 18, 2025 · 0 comments
Open

Comments

@newcomb-luke
Copy link

newcomb-luke commented Apr 18, 2025

I am making this issue for the new ACPI crate rewrite as it seems like that is where things will be going.

Using QEMU / OVMF it is impossible to use the current AML implementation using the 'pc' virtual machine.

When a PCI device wants to specify a link device, when running in 'pc' mode the resolved type is:

Reference {
    kind: RefOf,
    inner: WrappedObject(Device)
}

The old implementation would resolve this to a device name string which could then be used to look for the _CRS entry on the link device. However, now because it resolves to a Device, a dead end is reached.

When using the 'q35' device, this problem does go away, as that device seems to be what is used to test this implementation, and the reference kind turns into Unresolved which then resolves to a String.

It is important to note that in the current (non-rewritten) ACPI crate, this works as expected. This is just present in the new version.

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

1 participant