| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
ACPI_DEBUG. This upset the ordering that acpi_probe_order() was meant to
provide, causing devices to attach before the sysresource object. This
debugging feature has been unnecessary for a while so just remove it.
Testing by: marcel
|
|
|
|
|
|
| |
FOREACH_SAFE. Remove bad cast of retp and instead use an additional
arg to pass back the number of valid outputs. Use the package convenience
functions for parsing packages.
|
| |
|
|
|
|
|
|
|
| |
don't add another device if identify is called twice. Minor reworking by
myself.
Submitted by: marcel
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
left around after the PCI probe, acpi_video stopped attaching because while
it was an acpi child device, it really is a PCI device. Fix this by making
it a PCI child.
* Remove non-handle ivars accesses since child busses only implement
acpi_get_handle().
* Access the acpi softc directly through the devclass instead of through
the implied parent.
* Clean up a potential panic on unload by freeing the sysctl context before
storing NULL in the OID.
Found by: marks
|
|
|
|
|
|
|
| |
allows a bus to re-enumerate its child handles and optionally replace
them with new children, arranged to the bus's liking. (The current device
space is flat with all devices immediately under acpi0). Add comments
for each interface.
|
|
|
|
|
|
|
|
| |
when the battery is fully charged. That breaks some of the arithmetic in
calculating the remaining capacity (ends up with more than 100%).
This commit makes sure the max is 100.
Approved by: njl
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
needed so that sysresource objects are created first to reserve all regions,
then other devices can allocate from them. Otherwise, acpi_timer (the only
ACPI device with an identify routine), would allocate its resources from
the nexus, causing the later sysresource reserve to fail.
Debugging by: Taku YAMAMOTO, Andrea Campi
|
|
|
|
| |
also removed from the battery list.
|
|
|
|
| |
o Call kdb_enter() instead of Debugger().
|
|
|
|
|
|
|
| |
this more accurately reflects what the underlying hardware of most
acpi machines that don't have children pci busses.
We still need a better way to get this information from acpi/hardware.
|
| |
|
|
|
|
|
|
| |
header pointer and then casting it to the ecdt pointer. This fixes the
-O2 build. I'm unsure what changed recently to reveal this error since
this code has been unchanged for months.
|
|
|
|
|
| |
necessary for this file. It just needed the size and guts of struct
rman.
|
|
|
|
|
|
|
| |
cut down on the clutter including PCI interrupt routing, MTRR, pcibios,
etc.
Discussed with: USENIX Cabal
|
|
|
|
|
|
|
|
|
|
|
| |
instead of a mutex so we do not unblock it in msleep(). If we do this,
another event could occur, resetting the status register since reads
reset it. While I'm here, remove the backoff approach. Instead, sleep
in 10 ms chunks for up to the configured timeout using either DELAY (if
we aren't booted yet) or tsleep.
Help from: dillon
Tested by: Andrew Thompson andy AT fud.org.nz
|
|
|
|
| |
Reported by: phk
|
|
|
|
|
|
| |
__RMAN_RESOURCE_VISIBLE to see inside these now.
Reviewed by: dfr, njl (not njr)
|
|
|
|
|
|
|
| |
Unify the code to disable GPEs with the enable code. Shutdown is handled
the same way. ACPI now does all wake/sleep prep for child devices so
now they no longer need to call external functions in the suspend/resume
path. Add the flags to non-ACPI busses (i.e., pci).
|
|
|
|
|
|
| |
This brings us into line with the standard, which requires power resources
be enabled when wake is enabled for a given device. Move the dereferencing
code into its own function, +acpi_pwr_dereference_resource().
|
|
|
|
| |
to fix any bug.
|
| |
|
|
|
|
|
|
|
| |
code that was never really used. Print a message when disabling ACPI via
a quirk. Allow the user to override the blacklist decision by setting
hint.acpi.0.disabled="0". Add missing AcpiTerminate() calls; they are
needed to clean up if bailing out after AcpiInitializeSubsystem().
|
|
|
|
|
| |
and sets the flags. It also calls the machdep quirk code first. This
allows table quirks (or whitelists) to override machdep quirks.
|
|
|
|
| |
BIOS dates earlier than Jan 1, 1999. Add prototypes and quirks flags.
|
| |
|
|
|
|
| |
static.
|
|
|
|
|
| |
acpi_id_probe() returns NULL for no match or the ID string that matched
if the driver should attach.
|
|
|
|
|
|
| |
namespace. This is to allow decoupling of attachments from ACPI where they
need some functionality when ACPI is present but do not want to require ACPI
to always be loaded.
|
|
|
|
| |
"match either RSDT or XSDT."
|
| |
|
|
|
|
|
|
| |
msleep(). Until we're finally up, msleep is a no-op.
Explained by: peter
|
|
|
|
|
| |
Badness noted by: njl
Perforce reply not read by: imp
|
|
|
|
|
|
|
|
|
| |
starting value. This is more pedantically correct (since the handle
isn't always identical to the start of the resource) and also doesn't
access the innards of struct resource direct (which I forbid in my
tree). We need to do this for all resource types, not just ioport.
Reviewed by: njl
|
| |
|
|
|
|
|
|
| |
are currently all bad BIOS revisions that will never be able to support
ACPI. They were derived by examining which BIOS's are blacklisted by other
operating systems. Other types of quirks will be possible here as well.
|
|
|
|
| |
remove some duplicated code.
|
|
|
|
|
|
|
| |
smp_rendezvous() to ensure we run on the BSP. This reverts rev 1.128.
Add a comment indicating that MI code should be the one that runs all
shutdown functions on the BSP with the APs halted. This should work
around problems in power off while waiting for the MI code to be improved.
|
|
|
|
|
|
| |
the statistics in a multiply.
Pointed out by: YONETANI Tomokazu
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
actually used. For most ACPI devices this means deferring the call
until bus_alloc_resource().
- Add a function acpi_config_intr() to call BUS_CONFIG_INTR() for an
ACPI IRQ resource using the trigger mode and polarity information
stored in the ACPI resource object.
- Add a function acpi_lookup_irq_resource() to lookup the ACPI IRQ
resource that corresponds to a specified rid and new-bus resource.
- Have the ACPI PCI bridge driver call BUS_CONFIG_INTR() on interrupts
that it routes through link devices.
- Remove needactivate variable from acpi_alloc_resource() by changing the
function not modify the flags variable but just mask off RF_ACTIVE when
calling rman_reserve_resource().
Reviewed by: njl (1, an earlier version)
|
|
|
|
|
|
|
| |
device associated with any PCI devices that are enumerated in the ACPI
tree when adding children to an ACPI PCI bus and remove the duplicate
ACPI-only device_t and replace the device_t associated with the handle with
the ACPI and PCI aware device_t.
|
|
|
|
|
|
| |
Submitted by: markus
Approved by: njl
MFC after: 3 days
|
|
|
|
| |
Submitted by: YONETANI Tomokazu <qhwt+freebsd-acpi AT les.ath.cx>
|
| |
|
| |
|
|
|
|
| |
Bump __FreeBSD_version accordingly.
|