opnsense-src/release/tools
Colin Percival 43933d89a3 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

(cherry picked from commit 55c3348ed78fb1d0891e8bb51a8948f95da3560b)
2025-04-14 09:09:49 -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 DELAY-after-EJ0 2025-04-14 09:09:49 -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: ensure default sudo flavor is selected 2025-04-08 18:58:08 +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