opnsense-src/release/tools
Colin Percival a64357f31b acpi_pci: Add quirk for PSTAT_PME-before-detach
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 d70bac252d)
2025-04-01 10:43:58 -07:00
..
arm.subr release: de-duplicate arm.subr fstab logic 2024-02-26 11:35:47 -04:00
azure.conf release: Chase location of pkg repo databases 2025-02-09 13:14:34 -08:00
basic-ci.conf Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
basic-cloudinit.conf release: basic-cloudinit improve default image 2024-10-08 09:04:02 +02:00
ec2-base.conf EC2: Make amazon-ssm-agent optional 2024-09-10 22:28:59 -07:00
ec2-cloud-init.conf EC2: Make amazon-ssm-agent optional 2024-09-10 22:28:59 -07:00
ec2-small.conf EC2: Add new "small" AMIs 2024-09-10 22:28:59 -07:00
ec2.conf acpi_pci: Add quirk for PSTAT_PME-before-detach 2025-04-01 10:43:58 -07:00
gce.conf release: Rework vm_extra_pre_umount 2024-05-13 15:24:28 -07:00
oci-image-dynamic.conf release: build OCI images with shell scripts 2025-03-04 09:46:03 +00:00
oci-image-minimal.conf release: build OCI images with shell scripts 2025-03-04 09:46:03 +00:00
oci-image-static.conf release: build OCI images with shell scripts 2025-03-04 09:46:03 +00:00
openstack.conf release: Rework vm_extra_pre_umount 2024-05-13 15:24:28 -07:00
oracle.conf release: increase VMSIZE for Oracle images 2024-10-31 20:48:39 +00:00
vagrant-virtualbox.conf release: Rework vm_extra_pre_umount 2024-05-13 15:24:28 -07:00
vagrant-vmware.conf release: Rework vm_extra_pre_umount 2024-05-13 15:24:28 -07:00
vagrant.conf release: Chase location of pkg repo databases 2025-02-09 13:14:34 -08:00
vmimage.subr vmimage.subr: Redirect etcupdate log to stdout 2025-02-05 20:14:21 -08:00