opnsense-src/release/tools
Colin Percival 55c3348ed7 acpi_pci: Add quirk for DELAY-after-EJ0
On some EC2 instances, there is a race between removing a device from
the system and making the PCI bus stop reporting the presence of the
device.  As a result, a PCI BUS_RESCAN performed immediately after
the _EJ0 method returns "sees" the device which is being ejected, which
then causes problems later (e.g. we won't recognize a new device being
plugged into that slot because we never knew it was vacant).

On other operating systems the bus is synchronously marked as needing
to be rescanned but the rescan does not occur until O(1) seconds later.

Create a new ACPI_Q_DELAY_BEFORE_EJECT_RESCAN quirk and set it in EC2
AMIs, and add a 10 ms DELAY between _EJ0 and BUS_RESCAN when tht quirk
is set.

Reviewed by:	jhb
MFC after:	1 month
Sponsored by:	Amazon
Differential Revision:	https://reviews.freebsd.org/D49252
2025-03-14 11:35:35 -07:00
..
arm.subr release: make SD card partition layout more flexible 2024-02-14 11:16:54 -04:00
azure.conf release: Chase location of pkg repo databases 2025-02-03 16:10:47 -08:00
basic-ci.conf release/vm: partially support NO_ROOT 2025-03-12 21:05:39 +00:00
basic-cloudinit.conf basic-cloudinit: remove duplicated rc.conf entry 2024-11-20 09:48:57 +01:00
ec2-base.conf EC2: Make amazon-ssm-agent optional 2024-09-03 22:57:06 -07:00
ec2-cloud-init.conf EC2: Make amazon-ssm-agent optional 2024-09-03 22:57:06 -07:00
ec2-small.conf EC2: Add new "small" AMIs 2024-09-03 22:57:06 -07:00
ec2.conf acpi_pci: Add quirk for DELAY-after-EJ0 2025-03-14 11:35:35 -07:00
gce.conf release: Rework vm_extra_pre_umount 2024-05-06 13:40:47 -07:00
oci-image-dynamic.conf release: build OCI images with shell scripts 2025-03-02 15:17:13 +00:00
oci-image-minimal.conf release: build OCI images with shell scripts 2025-03-02 15:17:13 +00:00
oci-image-static.conf release: build OCI images with shell scripts 2025-03-02 15:17:13 +00:00
openstack.conf release: Rework vm_extra_pre_umount 2024-05-06 13:40:47 -07:00
oracle.conf release: ensure default sudo flavor is selected 2025-02-28 22:33:46 +00:00
vagrant-virtualbox.conf release: Rework vm_extra_pre_umount 2024-05-06 13:40:47 -07:00
vagrant-vmware.conf release: Rework vm_extra_pre_umount 2024-05-06 13:40:47 -07:00
vagrant.conf release: Chase location of pkg repo databases 2025-02-03 16:10:47 -08:00
vmimage.subr release/vm: partially support NO_ROOT 2025-03-12 21:05:39 +00:00