mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 22:32:43 -04:00
In order to signal to Graviton [123] systems that a device is ready
to be "ejected" (after a detach request is made via the EC2 API) we
need to set PCIM_PSTAT_PME to 1 and PCIM_PSTAT_PMEENABLE to 0. We are
not aware of any rationale for this requirement beyond "another OS
kernel happens to do this", i.e. this is effectively bug-for-bug
compatibility.
Arguably this should be done by the ACPI _EJ0 method on these systems,
but it is not.
Create a new ACPI_Q_CLEAR_PME_ON_DETACH quirk and set it in EC2 AMIs,
and add the PCI register write to acpi_pci_device_notify_handler when
that quirk is set.
Reviewed by: jhb
MFC after: 1 month
Sponsored by: Amazon
Differential Revision: https://reviews.freebsd.org/D49146
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| arm.subr | ||
| azure.conf | ||
| basic-ci.conf | ||
| basic-cloudinit.conf | ||
| ec2-base.conf | ||
| ec2-cloud-init.conf | ||
| ec2-small.conf | ||
| ec2.conf | ||
| gce.conf | ||
| oci-image-dynamic.conf | ||
| oci-image-minimal.conf | ||
| oci-image-static.conf | ||
| openstack.conf | ||
| oracle.conf | ||
| vagrant-virtualbox.conf | ||
| vagrant-vmware.conf | ||
| vagrant.conf | ||
| vmimage.subr | ||