The NetBSD Project

CVS log for src/sys/dev/acpi/acpi.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / dev / acpi

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.298.4.1 / (download) - annotate - [select for diffs], Mon Mar 25 15:05:17 2024 UTC (3 weeks, 1 day ago) by martin
Branch: netbsd-10
CVS Tags: netbsd-10-0-RELEASE
Changes since 1.298: +10 -2 lines
Diff to previous 1.298 (colored) next main 1.299 (colored) to selected 1.8 (colored)

Pull up following revision(s) (requested by riastradh in ticket #639):

	sys/dev/acpi/acpivar.h: revision 1.90
	sys/dev/acpi/files.acpi: revision 1.129
	sys/dev/acpi/acpi.c: revision 1.299
	sys/dev/acpi/files.acpi: revision 1.130

acpi(4): New iattr `apeibus' for attaching an APEI driver.

APEI is the ACPI Platform Error Interface, a standard (if very
complicated) interface for reporting hardware errors to the OS.
Firmware support for APEI is presented through the ACPI tables BERT
(Boot Error Record Table), ERST (Error Record Serialization Table),
EINJ (Error Injection Table), and HEST (Hardware Error Source Table),
rather than through nodes in the ACPI device tree, so it can't just
attach through the existing acpinodebus iattr and instead requires a
special pseudo-bus like acpiwdrt(4).

No driver yet -- this is just the hook to attach one in a module.

The new member sc_apei of struct acpi_softc is placed at the end of
the structure so that this change can be safely pulled up to release
branches without risk to ABI compatibility in existing modules such
as acpiverbose.kmod which may rely on the layout (but not size) of
struct acpi_softc.

PR kern/58046

acpi(4): Make apeibus actually work as an iattr.
PR kern/58046

Revision 1.299 / (download) - annotate - [select for diffs], Wed Mar 20 03:14:45 2024 UTC (3 weeks, 6 days ago) by riastradh
Branch: MAIN
CVS Tags: HEAD
Changes since 1.298: +10 -2 lines
Diff to previous 1.298 (colored) to selected 1.8 (colored)

acpi(4): New iattr `apeibus' for attaching an APEI driver.

APEI is the ACPI Platform Error Interface, a standard (if very
complicated) interface for reporting hardware errors to the OS.

Firmware support for APEI is presented through the ACPI tables BERT
(Boot Error Record Table), ERST (Error Record Serialization Table),
EINJ (Error Injection Table), and HEST (Hardware Error Source Table),
rather than through nodes in the ACPI device tree, so it can't just
attach through the existing acpinodebus iattr and instead requires a
special pseudo-bus like acpiwdrt(4).

No driver yet -- this is just the hook to attach one in a module.

The new member sc_apei of struct acpi_softc is placed at the end of
the structure so that this change can be safely pulled up to release
branches without risk to ABI compatibility in existing modules such
as acpiverbose.kmod which may rely on the layout (but not size) of
struct acpi_softc.

PR kern/58046

Revision 1.278.4.1 / (download) - annotate - [select for diffs], Mon Nov 27 19:39:53 2023 UTC (4 months, 2 weeks ago) by martin
Branch: netbsd-9
Changes since 1.278: +4 -4 lines
Diff to previous 1.278 (colored) next main 1.279 (colored) to selected 1.8 (colored)

Pull up following revision(s) (requested by abs in ticket #1765):

	sys/dev/acpi/acpi.c: revision 1.284

Stop walking MADT / GTDT subtables if we hit a header with length 0

Revision 1.298 / (download) - annotate - [select for diffs], Tue May 31 20:28:57 2022 UTC (22 months, 2 weeks ago) by mrg
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Branch point for: netbsd-10
Changes since 1.297: +4 -2 lines
Diff to previous 1.297 (colored) to selected 1.8 (colored)

allow ACPI to compile without PCI support.  fixes ia64 build.

Revision 1.297 / (download) - annotate - [select for diffs], Sun Feb 27 21:22:09 2022 UTC (2 years, 1 month ago) by riastradh
Branch: MAIN
Changes since 1.296: +7 -2 lines
Diff to previous 1.296 (colored) to selected 1.8 (colored)

acpi: Assert acpi_register_notify is not called twice.

Revision 1.296 / (download) - annotate - [select for diffs], Sat Jan 22 11:49:17 2022 UTC (2 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.295: +6 -4 lines
Diff to previous 1.295 (colored) to selected 1.8 (colored)

Change the devhandle_from_*() functions to also take a "super handle",
from which the newly created handle will inherit it's implementation.
The root implementation for a new handle type is used if an invalid
"super handle" is passed.

Revision 1.295 / (download) - annotate - [select for diffs], Fri Dec 31 14:22:42 2021 UTC (2 years, 3 months ago) by riastradh
Branch: MAIN
Changes since 1.294: +11 -6 lines
Diff to previous 1.294 (colored) to selected 1.8 (colored)

acpi(9): Fix memory ordering and completion bugs in notifiers.

1. Guarantee everything which happened before acpi_register_notify
   has also happened before the notifier is actually called.

2. On acpi_deregister_notify, don't return until the notifier is
   definitely not running any more on any CPU, using
   AcpiOsWaitEventsComplete.

Revision 1.294 / (download) - annotate - [select for diffs], Mon Dec 20 11:17:40 2021 UTC (2 years, 3 months ago) by skrll
Branch: MAIN
Changes since 1.293: +11 -10 lines
Diff to previous 1.293 (colored) to selected 1.8 (colored)

Fix struct member prefix to be consistent.  same code before and after.

Revision 1.293 / (download) - annotate - [select for diffs], Sat Aug 7 16:19:09 2021 UTC (2 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2
Changes since 1.292: +13 -21 lines
Diff to previous 1.292 (colored) to selected 1.8 (colored)

Merge thorpej-cfargs2.

Revision 1.292.4.1 / (download) - annotate - [select for diffs], Wed Aug 4 17:24:17 2021 UTC (2 years, 8 months ago) by thorpej
Branch: thorpej-cfargs2
Changes since 1.292: +13 -21 lines
Diff to previous 1.292 (colored) next main 1.293 (colored) to selected 1.8 (colored)

Adapt to CFARGS().

Revision 1.291.4.1 / (download) - annotate - [select for diffs], Mon May 31 22:15:17 2021 UTC (2 years, 10 months ago) by cjep
Branch: cjep_staticlib_x
Changes since 1.291: +2 -39 lines
Diff to previous 1.291 (colored) next main 1.292 (colored) to selected 1.8 (colored)

sync with head

Revision 1.291.2.1 / (download) - annotate - [select for diffs], Thu May 13 00:47:29 2021 UTC (2 years, 11 months ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.291: +2 -39 lines
Diff to previous 1.291 (colored) next main 1.292 (colored) to selected 1.8 (colored)

Sync with HEAD.

Revision 1.292 / (download) - annotate - [select for diffs], Wed May 12 23:22:33 2021 UTC (2 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1
Branch point for: thorpej-cfargs2
Changes since 1.291: +2 -39 lines
Diff to previous 1.291 (colored) to selected 1.8 (colored)

- Define a device call for PCI bus instances to fetch a direct child's
  device handle given the device's device/function #s (extracted from
  a pcitag_t).  Use it to associate the handle with the child device
  at config_found() time.
- Implement this device call for ACPI and OpenFirmware.
- Enable the OpenFirmware variant for evbarm FDT, macppc, ofppc, sparc64.
- Obsolete acpi_device_register(); it is no longer needed.
- Obsolete setting the OpenFirmware handle in PCI devices in the
  sparc64 device_register(); it is no longer needed.

Revision 1.291 / (download) - annotate - [select for diffs], Sat Apr 24 23:36:52 2021 UTC (2 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: cjep_staticlib_x-base
Branch point for: thorpej-i2c-spi-conf, cjep_staticlib_x
Changes since 1.290: +41 -27 lines
Diff to previous 1.290 (colored) to selected 1.8 (colored)

Merge thorpej-cfargs branch:

Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.

Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
  actually needed.
- Don't be explicit about what interface attribute is attaching if
  the device only has one.  (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
  situations, making is visibly easier to see when indirect config is
  in play, and allowing for future change in semantics.  (As of now,
  this is just a wrapper around config_match(), but that is an
  implementation detail.)

Remove unnecessary or redundant interface attributes where they're not
needed.

There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)

...and a sentinel value CFARG_EOL.

Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance.  This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).

Revision 1.285.2.2 / (download) - annotate - [select for diffs], Sat Apr 3 22:28:43 2021 UTC (3 years ago) by thorpej
Branch: thorpej-futex
Changes since 1.285.2.1: +46 -2 lines
Diff to previous 1.285.2.1 (colored) next main 1.286 (colored) to selected 1.8 (colored)

Sync with HEAD.

Revision 1.290.2.3 / (download) - annotate - [select for diffs], Sat Apr 3 16:10:39 2021 UTC (3 years ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.290.2.2: +9 -10 lines
Diff to previous 1.290.2.2 (colored) to branchpoint 1.290 (colored) next main 1.291 (colored) to selected 1.8 (colored)

Pass CFARG_DEVHANDLE to config_found(), rather than setting the device
handle in acpi_device_register().

Revision 1.290.2.2 / (download) - annotate - [select for diffs], Fri Apr 2 22:17:43 2021 UTC (3 years ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.290.2.1: +30 -18 lines
Diff to previous 1.290.2.1 (colored) to branchpoint 1.290 (colored) to selected 1.8 (colored)

config_found_ia() -> config_found() w/ CFARG_IATTR.

Revision 1.290.2.1 / (download) - annotate - [select for diffs], Sat Mar 20 19:33:39 2021 UTC (3 years ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.290: +6 -3 lines
Diff to previous 1.290 (colored) to selected 1.8 (colored)

The proliferation if config_search_*() and config_found_*() combinations
is a little absurd, so begin to tidy this up:

- Introduce a new cfarg_t enumerated type, that defines the types of
  tag-value variadic arguments that can be passed to the various
  config_*() functions (CFARG_SUBMATCH, CFARG_IATTR, and CFARG_LOCATORS,
  for now, plus a CFARG_EOL sentinel).
- Collapse config_search_*() into config_search() that takes these
  variadic arguments.
- Convert all call sites of config_search_*() to the new signature.
  Noticed several incorrect usages along the way, which will be
  audited in a future commit.

Revision 1.290 / (download) - annotate - [select for diffs], Fri Feb 5 17:13:40 2021 UTC (3 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-cfargs-base
Branch point for: thorpej-cfargs
Changes since 1.289: +37 -4 lines
Diff to previous 1.289 (colored) to selected 1.8 (colored)

Assign device handles to "at acpi" and "at pci" devices in
acpi_device_register().

Revision 1.289 / (download) - annotate - [select for diffs], Thu Feb 4 21:39:00 2021 UTC (3 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.288: +13 -2 lines
Diff to previous 1.288 (colored) to selected 1.8 (colored)

Add acpi_device_register().  Just a placeholder for now.

Revision 1.285.2.1 / (download) - annotate - [select for diffs], Mon Dec 14 14:38:05 2020 UTC (3 years, 4 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.285: +18 -4 lines
Diff to previous 1.285 (colored) to selected 1.8 (colored)

Sync w/ HEAD.

Revision 1.288 / (download) - annotate - [select for diffs], Sun Dec 13 20:24:26 2020 UTC (3 years, 4 months ago) by jmcneill
Branch: MAIN
Changes since 1.287: +16 -3 lines
Diff to previous 1.287 (colored) to selected 1.8 (colored)

Add MI support for attaching drivers to arbitrary System Description
Tables.

Revision 1.287 / (download) - annotate - [select for diffs], Mon Dec 7 10:57:41 2020 UTC (3 years, 4 months ago) by jmcneill
Branch: MAIN
Changes since 1.286: +2 -3 lines
Diff to previous 1.286 (colored) to selected 1.8 (colored)

acpicpu: Add support for ACPI P-states and T-states on Arm.

Revision 1.286 / (download) - annotate - [select for diffs], Sun Nov 8 14:16:59 2020 UTC (3 years, 5 months ago) by jmcneill
Branch: MAIN
Changes since 1.285: +4 -2 lines
Diff to previous 1.285 (colored) to selected 1.8 (colored)

Ignore PNP0001 (EISA interrupt controller) and PNP0C02 (motherboard
resources) when enumerating devices.

Revision 1.285 / (download) - annotate - [select for diffs], Mon Jun 22 16:14:18 2020 UTC (3 years, 9 months ago) by maxv
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.284: +7 -2 lines
Diff to previous 1.284 (colored) to selected 1.8 (colored)

Fix memory leak. Found by kLSan.

Revision 1.283.4.1 / (download) - annotate - [select for diffs], Mon Apr 20 11:29:02 2020 UTC (3 years, 11 months ago) by bouyer
Branch: bouyer-xenpvh
Changes since 1.283: +4 -4 lines
Diff to previous 1.283 (colored) next main 1.284 (colored) to selected 1.8 (colored)

Sync with HEAD

Revision 1.271.2.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:04:18 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.271.2.2: +2 -2 lines
Diff to previous 1.271.2.2 (colored) to branchpoint 1.271 (colored) next main 1.272 (colored) to selected 1.8 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.284 / (download) - annotate - [select for diffs], Thu Apr 9 10:46:19 2020 UTC (4 years ago) by jmcneill
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, bouyer-xenpvh-base2, bouyer-xenpvh-base1
Changes since 1.283: +4 -4 lines
Diff to previous 1.283 (colored) to selected 1.8 (colored)

Stop walking MADT / GTDT subtables if we hit a header with length 0

Revision 1.271.2.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:02 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.271.2.1: +63 -11 lines
Diff to previous 1.271.2.1 (colored) to branchpoint 1.271 (colored) to selected 1.8 (colored)

Merge changes from current as of 20200406

Revision 1.282.2.1 / (download) - annotate - [select for diffs], Fri Jan 17 21:47:30 2020 UTC (4 years, 2 months ago) by ad
Branch: ad-namecache
Changes since 1.282: +18 -7 lines
Diff to previous 1.282 (colored) next main 1.283 (colored) to selected 1.8 (colored)

Sync with head.

Revision 1.283 / (download) - annotate - [select for diffs], Fri Jan 17 17:06:32 2020 UTC (4 years, 2 months ago) by jmcneill
Branch: MAIN
CVS Tags: phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1
Branch point for: bouyer-xenpvh
Changes since 1.282: +18 -7 lines
Diff to previous 1.282 (colored) to selected 1.8 (colored)

Add support for Arm N1 SDP PCIe host controller.

The N1 SDP has a few bugs that we need to work around:
 - PCIe root port config space lives in a non-standard location.
 - Access to PCIe config space of devices that do not exist results in
   an sync SError. Firmware creates a "known devices" table at a fixed
   physical address that we use to filter PCI conf access to only known
   devices.

This change splits the Arm ACPI PCI quirks into separate files for each
host controller, and allows per-segment quirks to be applied.

These changes exposed some bugs in the MI ACPI layer related to
multi-segment support. The MI ACPI PCI code was using a shared PCI
chipset tag to access devices, and these accesses can happen before our
PCI host bridge drivers are attached! The global chipset tag is now gone,
and an MD callback can provide a custom tag on a per-segment basis.

Revision 1.282 / (download) - annotate - [select for diffs], Tue Dec 31 12:27:50 2019 UTC (4 years, 3 months ago) by jmcneill
Branch: MAIN
CVS Tags: ad-namecache-base
Branch point for: ad-namecache
Changes since 1.281: +29 -20 lines
Diff to previous 1.281 (colored) to selected 1.8 (colored)

Fetch bus_dma tags when acpi devnodes are created. They do not change
and this allows MD code to create more complex tags without being
concerned with the tag being destroyed later. While here, capture
translations offsets for address32/address64 resources.

Revision 1.281 / (download) - annotate - [select for diffs], Mon Dec 30 19:52:11 2019 UTC (4 years, 3 months ago) by jmcneill
Branch: MAIN
Changes since 1.280: +3 -2 lines
Diff to previous 1.280 (colored) to selected 1.8 (colored)

Hide ACPI0004 devices on aarch64

Revision 1.280 / (download) - annotate - [select for diffs], Mon Dec 30 19:49:38 2019 UTC (4 years, 3 months ago) by jmcneill
Branch: MAIN
Changes since 1.279: +16 -2 lines
Diff to previous 1.279 (colored) to selected 1.8 (colored)

MD code may allocate a new dma tag for attach args, so destroy it if the device node is not claimed

Revision 1.279 / (download) - annotate - [select for diffs], Sun Dec 29 23:47:56 2019 UTC (4 years, 3 months ago) by jmcneill
Branch: MAIN
Changes since 1.278: +23 -6 lines
Diff to previous 1.278 (colored) to selected 1.8 (colored)

Allow MD code to provide custom bus_dma tags on a per-node basis. On Arm
this is required to return non-coherent bus_dma tags for device nodes with
_CCA=0

Revision 1.271.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:07:05 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.271: +66 -13 lines
Diff to previous 1.271 (colored) to selected 1.8 (colored)

Sync with HEAD

Revision 1.268.2.5 / (download) - annotate - [select for diffs], Mon Nov 26 01:52:30 2018 UTC (5 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.268.2.4: +3 -2 lines
Diff to previous 1.268.2.4 (colored) to branchpoint 1.268 (colored) next main 1.269 (colored) to selected 1.8 (colored)

Sync with HEAD, resolve a couple of conflicts

Revision 1.278 / (download) - annotate - [select for diffs], Sun Oct 21 13:41:15 2018 UTC (5 years, 5 months ago) by jmcneill
Branch: MAIN
CVS Tags: phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, isaki-audio2-base, isaki-audio2
Branch point for: netbsd-9
Changes since 1.277: +3 -2 lines
Diff to previous 1.277 (colored) to selected 1.8 (colored)

Add ACPI PCI link devices to ignored ids on arm64

Revision 1.268.2.4 / (download) - annotate - [select for diffs], Sat Oct 20 06:58:30 2018 UTC (5 years, 5 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.268.2.3: +65 -13 lines
Diff to previous 1.268.2.3 (colored) to branchpoint 1.268 (colored) to selected 1.8 (colored)

Sync with head

Revision 1.277 / (download) - annotate - [select for diffs], Tue Oct 16 22:29:43 2018 UTC (5 years, 6 months ago) by jmcneill
Branch: MAIN
CVS Tags: pgoyette-compat-1020
Changes since 1.276: +14 -11 lines
Diff to previous 1.276 (colored) to selected 1.8 (colored)

Ignore SCI and don't try to setup ACPI fixed hardware interfaces in HW-reduced mode

Revision 1.276 / (download) - annotate - [select for diffs], Tue Oct 16 10:25:33 2018 UTC (5 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.275: +3 -3 lines
Diff to previous 1.275 (colored) to selected 1.8 (colored)

Rename options ACPI_REDUCED_HARDWARE to ACPI_REDUCED_HW. The former is
a boolean in the acpica build, so use the latter to select the correct
value.

Revision 1.275 / (download) - annotate - [select for diffs], Tue Oct 16 00:30:08 2018 UTC (5 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.274: +7 -4 lines
Diff to previous 1.274 (colored) to selected 1.8 (colored)

Add ACPI_REDUCED_HARDWARE defflag (used by ACPICA) and fix acpi build with this option set.

Revision 1.274 / (download) - annotate - [select for diffs], Fri Oct 12 21:35:54 2018 UTC (5 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.273: +5 -2 lines
Diff to previous 1.273 (colored) to selected 1.8 (colored)

Ignore ACPI0007 (CPU device) nodes on aarch64.

Revision 1.273 / (download) - annotate - [select for diffs], Fri Oct 12 21:20:54 2018 UTC (5 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.272: +45 -2 lines
Diff to previous 1.272 (colored) to selected 1.8 (colored)

Add helper functions for walking GTDT subtables.

Revision 1.272 / (download) - annotate - [select for diffs], Thu Oct 11 22:58:36 2018 UTC (5 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.271: +3 -3 lines
Diff to previous 1.271 (colored) to selected 1.8 (colored)

Fix button type print; "type" is one of PSWITCH_TYPE_*, not ACPI_EVENT_*_BUTTON.

Revision 1.268.2.3 / (download) - annotate - [select for diffs], Mon Jun 25 07:25:49 2018 UTC (5 years, 9 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.268.2.2: +3 -3 lines
Diff to previous 1.268.2.2 (colored) to branchpoint 1.268 (colored) to selected 1.8 (colored)

Sync with HEAD

Revision 1.271 / (download) - annotate - [select for diffs], Fri May 25 15:48:00 2018 UTC (5 years, 10 months ago) by ryoon
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Branch point for: phil-wifi
Changes since 1.270: +3 -3 lines
Diff to previous 1.270 (colored) to selected 1.8 (colored)

If fixed feature buttons exist, print detection messages.

Revision 1.268.2.2 / (download) - annotate - [select for diffs], Mon May 21 04:36:05 2018 UTC (5 years, 10 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.268.2.1: +33 -2 lines
Diff to previous 1.268.2.1 (colored) to branchpoint 1.268 (colored) to selected 1.8 (colored)

Sync with HEAD

Revision 1.270 / (download) - annotate - [select for diffs], Sat May 5 17:16:23 2018 UTC (5 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-compat-0521
Changes since 1.269: +33 -2 lines
Diff to previous 1.269 (colored) to selected 1.8 (colored)

introduce acpi_device_present() to replace the previous _STA checks.

Revision 1.268.2.1 / (download) - annotate - [select for diffs], Mon Apr 16 01:59:57 2018 UTC (6 years ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.268: +4 -27 lines
Diff to previous 1.268 (colored) to selected 1.8 (colored)

Sync with HEAD, resolve some conflicts

Revision 1.269 / (download) - annotate - [select for diffs], Sat Apr 7 15:49:52 2018 UTC (6 years ago) by christos
Branch: MAIN
CVS Tags: pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415
Changes since 1.268: +4 -27 lines
Diff to previous 1.268 (colored) to selected 1.8 (colored)

Merge conflicts; STA methods and fields are not present anymore.

Revision 1.268 / (download) - annotate - [select for diffs], Sun Mar 4 16:34:20 2018 UTC (6 years, 1 month ago) by scole
Branch: MAIN
CVS Tags: pgoyette-compat-base, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.267: +3 -3 lines
Diff to previous 1.267 (colored) to selected 1.8 (colored)

Use "#if NPCI > 0" instead of "#ifdef NPCI" for compiling kernels with acpi, without pci.

Revision 1.267 / (download) - annotate - [select for diffs], Sat Mar 3 11:23:24 2018 UTC (6 years, 1 month ago) by maya
Branch: MAIN
Changes since 1.266: +3 -3 lines
Diff to previous 1.266 (colored) to selected 1.8 (colored)

include correct header for NPCI to be defined when necessary.
Now acpi.o has a call for acpimcfg_probe.

heads by paulg, sorry for breakage.

Revision 1.266 / (download) - annotate - [select for diffs], Thu Mar 1 06:00:49 2018 UTC (6 years, 1 month ago) by maya
Branch: MAIN
Changes since 1.265: +5 -2 lines
Diff to previous 1.265 (colored) to selected 1.8 (colored)

Limit building & calling ACPI MCFG to kernels with PCI and ACPI.

pci_quirks.c requires pci
acpi_mcfg.c was recently changed to use pci_quirks.c functions.

as a result, ia64 kernels with acpi but no pci failed to link.

tested an ia64 and amd64 kernels build.

Revision 1.254.2.4 / (download) - annotate - [select for diffs], Sun Dec 3 11:36:58 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.254.2.3: +17 -6 lines
Diff to previous 1.254.2.3 (colored) next main 1.255 (colored) to selected 1.8 (colored)

update from HEAD

Revision 1.265 / (download) - annotate - [select for diffs], Thu Nov 23 15:48:24 2017 UTC (6 years, 4 months ago) by jmcneill
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202
Changes since 1.264: +4 -2 lines
Diff to previous 1.264 (colored) to selected 1.8 (colored)

Add FALLTHROUGH comment in acpi_make_devnode ACPI_TYPE_DEVICE case.

Revision 1.264 / (download) - annotate - [select for diffs], Sat Oct 28 04:53:55 2017 UTC (6 years, 5 months ago) by riastradh
Branch: MAIN
Changes since 1.263: +4 -3 lines
Diff to previous 1.263 (colored) to selected 1.8 (colored)

Kill some more extern struct cfdriver declarations.

Down with externs in .c!

Revision 1.259.2.4 / (download) - annotate - [select for diffs], Mon Aug 28 17:52:01 2017 UTC (6 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.259.2.3: +2 -5 lines
Diff to previous 1.259.2.3 (colored) to branchpoint 1.259 (colored) next main 1.260 (colored) to selected 1.8 (colored)

Sync with HEAD

Revision 1.263 / (download) - annotate - [select for diffs], Thu Jun 1 02:45:09 2017 UTC (6 years, 10 months ago) by chs
Branch: MAIN
CVS Tags: perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek
Changes since 1.262: +2 -5 lines
Diff to previous 1.262 (colored) to selected 1.8 (colored)

remove checks for failure after memory allocation calls that cannot fail:

  kmem_alloc() with KM_SLEEP
  kmem_zalloc() with KM_SLEEP
  percpu_alloc()
  pserialize_create()
  psref_class_create()

all of these paths include an assertion that the allocation has not failed,
so callers should not assert that again.

Revision 1.259.2.3 / (download) - annotate - [select for diffs], Sat Jul 9 20:25:01 2016 UTC (7 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.259.2.2: +8 -2 lines
Diff to previous 1.259.2.2 (colored) to branchpoint 1.259 (colored) to selected 1.8 (colored)

Sync with HEAD

Revision 1.262 / (download) - annotate - [select for diffs], Tue Jun 21 11:33:33 2016 UTC (7 years, 9 months ago) by nonaka
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Changes since 1.261: +8 -2 lines
Diff to previous 1.261 (colored) to selected 1.8 (colored)

Pass bus_dma(9) tag to allow for porting sdhc(4) at acpi.

Revision 1.259.2.2 / (download) - annotate - [select for diffs], Sun Dec 27 12:09:48 2015 UTC (8 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.259.2.1: +8 -2 lines
Diff to previous 1.259.2.1 (colored) to branchpoint 1.259 (colored) to selected 1.8 (colored)

Sync with HEAD (as of 26th Dec)

Revision 1.261 / (download) - annotate - [select for diffs], Fri Oct 2 05:22:52 2015 UTC (8 years, 6 months ago) by msaitoh
Branch: MAIN
CVS Tags: nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226
Changes since 1.260: +8 -2 lines
Diff to previous 1.260 (colored) to selected 1.8 (colored)

PCI Extended Configuration stuff written by nonaka@:
- Add PCI Extended Configuration Space support into x86.
- Check register offset of pci_conf_read() in MD part. It returns (pcireg_t)-1
  if it isn't accessible.
- Decode Extended Capability in PCI Extended Configuration Space.
  Currently the following extended capabilities are decoded:
   - Advanced Error Reporting
   - Virtual Channel
   - Device Serial Number
   - Power Budgeting
   - Root Complex Link Declaration
   - Root Complex Event Collector Association
   - Access Control Services
   - Alternative Routing-ID Interpretation
   - Address Translation Services
   - Single Root IO Virtualization
   - Page Request
   - TPH Requester
   - Latency Tolerance Reporting
   - Secondary PCI Express
   - Process Address Space ID
   - LN Requester
   - L1 PM Substates
  The following extended capabilities are not decoded yet:
   - Root Complex Internal Link Control
   - Multi-Function Virtual Channel
   - RCRB Header
   - Vendor Unique
   - Configuration Access Correction
   - Multiple Root IO Virtualization
   - Multicast
   - Resizable BAR
   - Dynamic Power Allocation
   - Protocol Multiplexing
   - Downstream Port Containment
   - Precision Time Management
   - M-PCIe
   - Function Reading Status Queueing
   - Readiness Time Reporting
   - Designated Vendor-Specific

Revision 1.259.2.1 / (download) - annotate - [select for diffs], Tue Sep 22 12:05:56 2015 UTC (8 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.259: +3 -3 lines
Diff to previous 1.259 (colored) to selected 1.8 (colored)

Sync with HEAD

Revision 1.260 / (download) - annotate - [select for diffs], Tue Aug 18 10:41:28 2015 UTC (8 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: nick-nhusb-base-20150921
Changes since 1.259: +3 -3 lines
Diff to previous 1.259 (colored) to selected 1.8 (colored)

add extra argument to method.

Revision 1.259 / (download) - annotate - [select for diffs], Sat Oct 25 21:00:20 2014 UTC (9 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.258: +2 -3 lines
Diff to previous 1.258 (colored) to selected 1.8 (colored)

adjust for newer acpica

Revision 1.254.2.3 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:35 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.254.2.2: +7 -14 lines
Diff to previous 1.254.2.2 (colored) to selected 1.8 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.251.2.3 / (download) - annotate - [select for diffs], Thu May 22 11:40:19 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.251.2.2: +7 -14 lines
Diff to previous 1.251.2.2 (colored) to branchpoint 1.251 (colored) next main 1.252 (colored) to selected 1.8 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.255.2.1 / (download) - annotate - [select for diffs], Sun May 18 17:45:35 2014 UTC (9 years, 11 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.255: +7 -14 lines
Diff to previous 1.255 (colored) next main 1.256 (colored) to selected 1.8 (colored)

sync with head

Revision 1.258 / (download) - annotate - [select for diffs], Tue Feb 25 18:30:09 2014 UTC (10 years, 1 month ago) by pooka
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Changes since 1.257: +3 -11 lines
Diff to previous 1.257 (colored) to selected 1.8 (colored)

Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist before
the sysctl link sets are processed, and remove redundancy.

Shaves >13kB off of an amd64 GENERIC, not to mention >1k duplicate
lines of code.

Revision 1.257 / (download) - annotate - [select for diffs], Sat Jan 25 21:11:20 2014 UTC (10 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.256: +5 -3 lines
Diff to previous 1.256 (colored) to selected 1.8 (colored)

fix unused

Revision 1.256 / (download) - annotate - [select for diffs], Wed Oct 16 17:30:42 2013 UTC (10 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.255: +3 -4 lines
Diff to previous 1.255 (colored) to selected 1.8 (colored)

remove unused variable

Revision 1.252.6.1 / (download) - annotate - [select for diffs], Thu Nov 22 00:39:00 2012 UTC (11 years, 4 months ago) by riz
Branch: netbsd-6
CVS Tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1
Changes since 1.252: +21 -20 lines
Diff to previous 1.252 (colored) next main 1.253 (colored) to selected 1.8 (colored)

Pull up following revision(s) (requested by chs in ticket #683):
	sys/arch/ia64/include/acpi_machdep.h: revision 1.6
	sys/arch/x86/include/acpi_machdep.h: revision 1.11
	sys/dev/acpi/acpi.c: revision 1.255
	sys/arch/x86/acpi/acpi_machdep.c: revision 1.4
	sys/arch/x86/x86/mpacpi.c: revision 1.95
	sys/arch/x86/x86/mpacpi.c: revision 1.96
	sys/arch/ia64/acpi/acpi_machdep.c: revision 1.6
locate PCI buses and determine their bus numbers using the info
previously extracted from ACPICA rather than trying to figure it out again.
allow PCI buses that don't have a _PRT method.
as a workaround for PR 47016, call ioapic_reenable() at the end of
ACPI interrupt routing to fix the settings for the SCI interrupt.
the problem is that after my recent changes, the SCI handler is
installed before the MADT info is parsed, so we don't know what
polarity it should have.  the real fix for this will be to rearrange
the ACPI initialization so that everything is done in a more sensible
order, but that will take some more time.

Revision 1.254.2.2 / (download) - annotate - [select for diffs], Tue Nov 20 03:01:58 2012 UTC (11 years, 4 months ago) by tls
Branch: tls-maxphys
Changes since 1.254.2.1: +21 -20 lines
Diff to previous 1.254.2.1 (colored) to selected 1.8 (colored)

Resync to 2012-11-19 00:00:00 UTC

Revision 1.251.2.2 / (download) - annotate - [select for diffs], Tue Oct 30 17:20:50 2012 UTC (11 years, 5 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.251.2.1: +22 -21 lines
Diff to previous 1.251.2.1 (colored) to branchpoint 1.251 (colored) to selected 1.8 (colored)

sync with head

Revision 1.255 / (download) - annotate - [select for diffs], Sun Sep 23 00:31:06 2012 UTC (11 years, 6 months ago) by chs
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: rmind-smpnet
Changes since 1.254: +21 -20 lines
Diff to previous 1.254 (colored) to selected 1.8 (colored)

locate PCI buses and determine their bus numbers using the info
previously extracted from ACPICA rather than trying to figure it out again.
allow PCI buses that don't have a _PRT method.

Revision 1.254.2.1 / (download) - annotate - [select for diffs], Wed Sep 12 06:15:32 2012 UTC (11 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.254: +5 -2 lines
Diff to previous 1.254 (colored) to selected 1.8 (colored)

Initial snapshot of work to eliminate 64K MAXPHYS.  Basically works for
physio (I/O to raw devices); needs more doing to get it going with the
filesystems, but it shouldn't damage data.

All work's been done on amd64 so far.  Not hard to add support to other
ports.  If others want to pitch in, one very helpful thing would be to
sort out when and how IDE disks can do 128K or larger transfers, and
adjust the various PCI IDE (or at least ahcisata) drivers and wd.c
accordingly -- it would make testing much easier.  Another very helpful
thing would be to implement a smart minphys() for RAIDframe along the
lines detailed in the MAXPHYS-NOTES file.

Revision 1.254 / (download) - annotate - [select for diffs], Tue Aug 14 14:38:02 2012 UTC (11 years, 8 months ago) by jruoho
Branch: MAIN
Branch point for: tls-maxphys
Changes since 1.253: +3 -3 lines
Diff to previous 1.253 (colored) to selected 1.8 (colored)

Use KM_SLEEP.

Revision 1.252.4.1 / (download) - annotate - [select for diffs], Sun Apr 29 23:04:48 2012 UTC (11 years, 11 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.252: +3 -21 lines
Diff to previous 1.252 (colored) next main 1.253 (colored) to selected 1.8 (colored)

sync to latest -current.

Revision 1.251.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:07:27 2012 UTC (12 years ago) by yamt
Branch: yamt-pagecache
Changes since 1.251: +4 -22 lines
Diff to previous 1.251 (colored) to selected 1.8 (colored)

sync with head

Revision 1.253 / (download) - annotate - [select for diffs], Tue Apr 10 13:48:24 2012 UTC (12 years ago) by jruoho
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, jmcneill-usbmp-base9, jmcneill-usbmp-base10
Changes since 1.252: +3 -21 lines
Diff to previous 1.252 (colored) to selected 1.8 (colored)

Now that 6.0 is branched, remove the ACPI-related sysctl nodes in machdep.

Revision 1.252 / (download) - annotate - [select for diffs], Mon Nov 14 02:44:59 2011 UTC (12 years, 5 months ago) by jmcneill
Branch: MAIN
CVS Tags: netbsd-6-base, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: netbsd-6, jmcneill-usbmp
Changes since 1.251: +3 -3 lines
Diff to previous 1.251 (colored) to selected 1.8 (colored)

add a machdep.dmi sysctl tree with the following read-only keys:
 system-vendor, system-product, system-version, system-serial, system-uuid
 bios-vendor, bios-version
 board-vendor, board-product, board-version, board-serial
the *-serial and *-uuid keys are marked with CTLFLAG_PRIVATE

a few of the pmf platform key names changed so update callers to match

Revision 1.251 / (download) - annotate - [select for diffs], Tue Oct 18 23:47:26 2011 UTC (12 years, 6 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base
Branch point for: yamt-pagecache
Changes since 1.250: +13 -2 lines
Diff to previous 1.250 (colored) to selected 1.8 (colored)

clear fixed events and disable GPEs before re-enabling interrupts on resume
from S1

Revision 1.250 / (download) - annotate - [select for diffs], Fri Aug 5 18:59:44 2011 UTC (12 years, 8 months ago) by jakllsch
Branch: MAIN
Changes since 1.249: +4 -16 lines
Diff to previous 1.249 (colored) to selected 1.8 (colored)

Turns out all we need is AcpiClearEvent in the right place,
and we don't really care if it fails.  Pointed out by jmcneill.

Revision 1.249 / (download) - annotate - [select for diffs], Fri Aug 5 18:27:48 2011 UTC (12 years, 8 months ago) by jakllsch
Branch: MAIN
Changes since 1.248: +17 -3 lines
Diff to previous 1.248 (colored) to selected 1.8 (colored)

As we add a handler for the ACPI fixed feature button events,
ensure they aren't going to trigger as soon as we enable interrupts,
furthermore ensure that the event is unmasked.

Revision 1.248 / (download) - annotate - [select for diffs], Mon Aug 1 11:25:59 2011 UTC (12 years, 8 months ago) by jmcneill
Branch: MAIN
Changes since 1.247: +42 -2 lines
Diff to previous 1.247 (colored) to selected 1.8 (colored)

add support for reset registers in PCI config space

Revision 1.247 / (download) - annotate - [select for diffs], Sun Jul 17 02:32:01 2011 UTC (12 years, 9 months ago) by jakllsch
Branch: MAIN
Changes since 1.246: +3 -3 lines
Diff to previous 1.246 (colored) to selected 1.8 (colored)

"successfully" spell "succesfully" in a comment.

Revision 1.241.2.1 / (download) - annotate - [select for diffs], Thu Jun 23 14:19:54 2011 UTC (12 years, 9 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.241: +40 -9 lines
Diff to previous 1.241 (colored) next main 1.242 (colored) to selected 1.8 (colored)

Catchup with rmind-uvmplock merge.

Revision 1.246 / (download) - annotate - [select for diffs], Tue Jun 21 03:37:21 2011 UTC (12 years, 9 months ago) by jruoho
Branch: MAIN
Changes since 1.245: +3 -3 lines
Diff to previous 1.245 (colored) to selected 1.8 (colored)

Rename acpi_get_node() to acpi_match_node() for consistency.

Revision 1.245 / (download) - annotate - [select for diffs], Tue Jun 14 13:59:23 2011 UTC (12 years, 10 months ago) by jruoho
Branch: MAIN
Changes since 1.244: +22 -2 lines
Diff to previous 1.244 (colored) to selected 1.8 (colored)

Try to attach hpet(4) also via a specific HPET table. Fixes PR kern/43702.

Revision 1.244 / (download) - annotate - [select for diffs], Mon Jun 13 09:37:23 2011 UTC (12 years, 10 months ago) by jruoho
Branch: MAIN
Changes since 1.243: +8 -8 lines
Diff to previous 1.243 (colored) to selected 1.8 (colored)

Call _PDC only after AcpiInitializeObjects(ACPI_FULL_INITIALIZATION).

Revision 1.243 / (download) - annotate - [select for diffs], Sun Jun 12 10:11:52 2011 UTC (12 years, 10 months ago) by jruoho
Branch: MAIN
Changes since 1.242: +10 -4 lines
Diff to previous 1.242 (colored) to selected 1.8 (colored)

Move the evaluation of the _PDC control method out from the acpicpu(4)
driver to the main acpi(4) stack. Follow Linux and evaluate it early.
Should fix PR port-amd64/42895, possibly also PR kern/42583, and many
other comparable bugs.

A common sense explanation is that Intel supplies additional CPU tables to
OEMs. BIOS writers do not bother to modify their DSDTs, but instead load
these extra tables dynamically as secondary SSDT tables. The actual Load()
happens when the _PDC method is invoked, and thus namespace errors occur
when the CPU-specific ACPI methods are not yet present but referenced in the
AML by various drivers, including, but not limited to, acpitz(4).

Revision 1.159.2.4 / (download) - annotate - [select for diffs], Sun Jun 12 00:24:13 2011 UTC (12 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.159.2.3: +16 -2 lines
Diff to previous 1.159.2.3 (colored) next main 1.160 (colored) to selected 1.8 (colored)

sync with head

Revision 1.233.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:07:39 2011 UTC (12 years, 10 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.233: +84 -109 lines
Diff to previous 1.233 (colored) next main 1.234 (colored) to selected 1.8 (colored)

Sync with HEAD.

Revision 1.242 / (download) - annotate - [select for diffs], Fri Jun 3 09:15:02 2011 UTC (12 years, 10 months ago) by jruoho
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base
Changes since 1.241: +11 -6 lines
Diff to previous 1.241 (colored) to selected 1.8 (colored)

Flush CPU caches before entering S1, as noted in the specifications.

Revision 1.241 / (download) - annotate - [select for diffs], Tue May 31 14:27:44 2011 UTC (12 years, 10 months ago) by jruoho
Branch: MAIN
CVS Tags: cherry-xenmp-base
Branch point for: cherry-xenmp
Changes since 1.240: +13 -4 lines
Diff to previous 1.240 (colored) to selected 1.8 (colored)

Fix a bug where the S1 state was exited via AcpiLeaveSleepState() with
interrupts being off at machine-level. Also add some comments.

Revision 1.159.2.3 / (download) - annotate - [select for diffs], Sat Mar 5 20:53:01 2011 UTC (13 years, 1 month ago) by rmind
Branch: rmind-uvmplock
Changes since 1.159.2.2: +607 -478 lines
Diff to previous 1.159.2.2 (colored) to selected 1.8 (colored)

sync with head

Revision 1.234.2.2 / (download) - annotate - [select for diffs], Sat Mar 5 15:10:15 2011 UTC (13 years, 1 month ago) by bouyer
Branch: bouyer-quota2
Changes since 1.234.2.1: +60 -106 lines
Diff to previous 1.234.2.1 (colored) next main 1.235 (colored) to selected 1.8 (colored)

Sync with HEAD

Revision 1.240 / (download) - annotate - [select for diffs], Sun Feb 27 17:10:33 2011 UTC (13 years, 1 month ago) by jruoho
Branch: MAIN
CVS Tags: bouyer-quota2-nbase
Changes since 1.239: +4 -5 lines
Diff to previous 1.239 (colored) to selected 1.8 (colored)

Move acpicpu(4) from "acpinodebus" to "cpufeaturebus".

Revision 1.239 / (download) - annotate - [select for diffs], Sun Feb 20 16:24:54 2011 UTC (13 years, 1 month ago) by jruoho
Branch: MAIN
Changes since 1.238: +10 -19 lines
Diff to previous 1.238 (colored) to selected 1.8 (colored)

Use kmem(9). Also retire ACPI_PCI_FIXUP and PCI_INTR_FIXUP_DISABLED #ifdefs.

Revision 1.238 / (download) - annotate - [select for diffs], Sun Feb 20 06:45:32 2011 UTC (13 years, 1 month ago) by jruoho
Branch: MAIN
Changes since 1.237: +32 -83 lines
Diff to previous 1.237 (colored) to selected 1.8 (colored)

Add quirk support for _OSI strings introduced in ACPICA 20110211. While
here, clean up acpi_probe() and the quirk code. Remove #ifdef ACPI_DEBUGGER.

Revision 1.237 / (download) - annotate - [select for diffs], Sat Feb 19 09:52:32 2011 UTC (13 years, 1 month ago) by jruoho
Branch: MAIN
Changes since 1.236: +3 -2 lines
Diff to previous 1.236 (colored) to selected 1.8 (colored)

Revisit the wake-device code once more.

  1. Remove the AcpiEnableGpe() call. This was wrong.

  2. Only call _PSW or _DSW for devices that are scheduled for wake.
     This was an old bug.

  3. Only enable wake GPEs during suspend. Disabling these for
     devices not setup for wake was causing problems.

  4. No wake GPEs should be enabled at runtime.
     Unconditionally disable these during resume.

This should make the wake-device code work again. Note that waking via
pckbd(4) has always been unreliable; the _PRW object is not typically located
under the PC keyboard object, but in the parent of it (e.g. the LPC bridge).

Revision 1.236 / (download) - annotate - [select for diffs], Thu Feb 17 19:36:49 2011 UTC (13 years, 2 months ago) by jruoho
Branch: MAIN
Changes since 1.235: +19 -5 lines
Diff to previous 1.235 (colored) to selected 1.8 (colored)

As explained in the new ACPICA documentation, as of ACPICA 20101207, the
_PRW methods are no longer automatically executed as part of the ACPICA
initialization. Refactor and rewrite the wake-device code to account this.

Revision 1.234.2.1 / (download) - annotate - [select for diffs], Thu Feb 17 12:00:09 2011 UTC (13 years, 2 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.234: +5 -4 lines
Diff to previous 1.234 (colored) to selected 1.8 (colored)

Sync with HEAD

Revision 1.235 / (download) - annotate - [select for diffs], Tue Feb 15 20:24:11 2011 UTC (13 years, 2 months ago) by jruoho
Branch: MAIN
CVS Tags: bouyer-quota2-base
Changes since 1.234: +5 -4 lines
Diff to previous 1.234 (colored) to selected 1.8 (colored)

Reset the firmware waking vector on resume. Adapted from FreeBSD and Linux.
No functional change intended.

Revision 1.234 / (download) - annotate - [select for diffs], Mon Jan 17 15:49:13 2011 UTC (13 years, 3 months ago) by jmcneill
Branch: MAIN
Branch point for: bouyer-quota2
Changes since 1.233: +8 -2 lines
Diff to previous 1.233 (colored) to selected 1.8 (colored)

Add a driver for ACPI "Watchdog Resource Table" devices.

  acpiwdrt0 at acpi0: mem 0xfed01000,0xfed01004
  acpiwdrt0: PCI 0:000:00:0 vendor 0x1106 product 0x3337
  acpiwdrt0: watchdog interval 1-1023 sec.

Revision 1.233 / (download) - annotate - [select for diffs], Thu Jan 13 05:58:05 2011 UTC (13 years, 3 months ago) by jruoho
Branch: MAIN
CVS Tags: jruoho-x86intr-base
Branch point for: jruoho-x86intr
Changes since 1.232: +44 -53 lines
Diff to previous 1.232 (colored) to selected 1.8 (colored)

Clean-up acpi_print(). XXX: The 'acpiverbose' module is still broken...

Revision 1.232 / (download) - annotate - [select for diffs], Thu Jan 13 05:14:48 2011 UTC (13 years, 3 months ago) by jruoho
Branch: MAIN
Changes since 1.231: +10 -2 lines
Diff to previous 1.231 (colored) to selected 1.8 (colored)

Scan for docking stations.

Revision 1.231 / (download) - annotate - [select for diffs], Thu Jan 13 04:18:19 2011 UTC (13 years, 3 months ago) by jruoho
Branch: MAIN
Changes since 1.230: +13 -9 lines
Diff to previous 1.230 (colored) to selected 1.8 (colored)

Do not try to attach more ACPI CPUs than the amount of "real" CPUs.

Revision 1.230 / (download) - annotate - [select for diffs], Tue Jan 11 20:35:24 2011 UTC (13 years, 3 months ago) by jruoho
Branch: MAIN
Changes since 1.229: +7 -2 lines
Diff to previous 1.229 (colored) to selected 1.8 (colored)

Disable all GPEs when entering S5. Also add a comment that the function
acpi_enter_sleep_state() must be called with interrupts enabled.

Revision 1.229 / (download) - annotate - [select for diffs], Thu Jan 6 07:05:00 2011 UTC (13 years, 3 months ago) by jruoho
Branch: MAIN
Changes since 1.228: +28 -21 lines
Diff to previous 1.228 (colored) to selected 1.8 (colored)

Split the code that makes a string from ACPI_DEVICE_INFO::Name to a function.

Revision 1.228 / (download) - annotate - [select for diffs], Thu Jan 6 06:49:12 2011 UTC (13 years, 3 months ago) by jruoho
Branch: MAIN
Changes since 1.227: +169 -167 lines
Diff to previous 1.227 (colored) to selected 1.8 (colored)

Move the ACPI_ACTIVATE_DEV block around for clarity.

Revision 1.227 / (download) - annotate - [select for diffs], Wed Jan 5 08:08:47 2011 UTC (13 years, 3 months ago) by jruoho
Branch: MAIN
Changes since 1.226: +6 -9 lines
Diff to previous 1.226 (colored) to selected 1.8 (colored)

Adjust previous slightly.

Revision 1.226 / (download) - annotate - [select for diffs], Wed Jan 5 07:58:04 2011 UTC (13 years, 3 months ago) by jruoho
Branch: MAIN
Changes since 1.225: +52 -3 lines
Diff to previous 1.225 (colored) to selected 1.8 (colored)

Make a two-pass scan for acpinodebus. This should ensure that devices such
as acpiec(4) are attached before anything else. Numerous bugs are expected
to be fixed with this change.

Revision 1.225 / (download) - annotate - [select for diffs], Mon Jan 3 08:50:23 2011 UTC (13 years, 3 months ago) by jruoho
Branch: MAIN
Changes since 1.224: +10 -2 lines
Diff to previous 1.224 (colored) to selected 1.8 (colored)

Scan for devices that are "hot-pluggable".

Revision 1.224 / (download) - annotate - [select for diffs], Sun Jan 2 06:05:47 2011 UTC (13 years, 3 months ago) by jruoho
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231
Changes since 1.223: +9 -5 lines
Diff to previous 1.223 (colored) to selected 1.8 (colored)

Use "real" device names for the hw.acpi.wake and hw.acpi.power sysctl(8)
trees. For instance, instead of hw.acpi.wake.DURT, we have hw.acpi.wake.wm0
for wm(4). This is a temporary solution, but without solving the big
abstraction questions, this is the best we can do.

Revision 1.223 / (download) - annotate - [select for diffs], Fri Dec 31 09:19:43 2010 UTC (13 years, 3 months ago) by jruoho
Branch: MAIN
Changes since 1.222: +24 -5 lines
Diff to previous 1.222 (colored) to selected 1.8 (colored)

Move the ACPI sleep-specific sysctl variables to hw.acpi.sleep. The old
machdep-variables are provided for backwards compatibility (eventually these
should be removed). All ACPI sysctl variables are now under hw.acpi.

Revision 1.148.2.4 / (download) - annotate - [select for diffs], Sat Nov 6 08:08:27 2010 UTC (13 years, 5 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.148.2.3: +17 -4 lines
Diff to previous 1.148.2.3 (colored) to branchpoint 1.148 (colored) next main 1.149 (colored) to selected 1.8 (colored)

Sync with HEAD.

Revision 1.222 / (download) - annotate - [select for diffs], Sun Oct 24 07:53:04 2010 UTC (13 years, 5 months ago) by jruoho
Branch: MAIN
CVS Tags: uebayasi-xip-base4
Changes since 1.221: +17 -4 lines
Diff to previous 1.221 (colored) to selected 1.8 (colored)

Simplify acpi_enter_sleep_state() and guard it against NULL pointer
dereferences. Try to avoid referencing the global acpi_softc, which should
really be static or at least internal to acpi(4).

Revision 1.148.2.3 / (download) - annotate - [select for diffs], Fri Oct 22 07:21:51 2010 UTC (13 years, 5 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.148.2.2: +11 -19 lines
Diff to previous 1.148.2.2 (colored) to branchpoint 1.148 (colored) to selected 1.8 (colored)

Sync with HEAD (-D20101022).

Revision 1.221 / (download) - annotate - [select for diffs], Tue Oct 12 19:10:50 2010 UTC (13 years, 6 months ago) by gsutre
Branch: MAIN
CVS Tags: uebayasi-xip-base3
Changes since 1.220: +3 -4 lines
Diff to previous 1.220 (colored) to selected 1.8 (colored)

Merge ACPI display driver.  Provides generic support for brightness
control and output switching, through ACPI video extensions.

TODO: use wsconsctl(8) instead of sysctl(8) for brightness control.

ok jruoho@
also discussed with cegger@ and jmcneill@

Revision 1.114.2.8 / (download) - annotate - [select for diffs], Sat Oct 9 03:32:03 2010 UTC (13 years, 6 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.114.2.7: +12 -19 lines
Diff to previous 1.114.2.7 (colored) to branchpoint 1.114 (colored) next main 1.115 (colored) to selected 1.8 (colored)

sync with head

Revision 1.220 / (download) - annotate - [select for diffs], Sat Oct 2 18:06:47 2010 UTC (13 years, 6 months ago) by gsutre
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11
Changes since 1.219: +2 -11 lines
Diff to previous 1.219 (colored) to selected 1.8 (colored)

Drop _HID requirement for attachment under acpi(4).  From now on,
drivers attaching to the acpinodebus interface should not assume
that the passed acpi_devnode has a valid _HID.

ok jruoho@

Revision 1.219 / (download) - annotate - [select for diffs], Mon Sep 6 15:54:26 2010 UTC (13 years, 7 months ago) by jmcneill
Branch: MAIN
Changes since 1.218: +9 -2 lines
Diff to previous 1.218 (colored) to selected 1.8 (colored)

Add support for blacklisting ACPI BIOS implementations by year. By default,
don't use ACPI on BIOS which advertise release years <= 2000. This
can be changed by setting option ACPI_BLACKLIST_YEAR=0 or by setting
acpi_force_load=1.

Revision 1.218 / (download) - annotate - [select for diffs], Tue Aug 24 04:36:02 2010 UTC (13 years, 7 months ago) by pgoyette
Branch: MAIN
Changes since 1.217: +4 -3 lines
Diff to previous 1.217 (colored) to selected 1.8 (colored)

Initialize acpi_force_load so that it gets allocated in the data segment
rather than BSS.  This lets you change its value with 'gdb --write'.

OK jruoho@

Revision 1.217 / (download) - annotate - [select for diffs], Sun Aug 22 00:39:08 2010 UTC (13 years, 7 months ago) by jmcneill
Branch: MAIN
Changes since 1.216: +2 -5 lines
Diff to previous 1.216 (colored) to selected 1.8 (colored)

Don't put devices in the ignored IDs list just because no driver exists.

Revision 1.216 / (download) - annotate - [select for diffs], Sat Aug 21 13:18:35 2010 UTC (13 years, 7 months ago) by pgoyette
Branch: MAIN
Changes since 1.215: +3 -6 lines
Diff to previous 1.215 (colored) to selected 1.8 (colored)

Update the various xxx_verbose modules to conform to the module subsystem's
new locking protocol.

Revision 1.148.2.2 / (download) - annotate - [select for diffs], Tue Aug 17 06:45:58 2010 UTC (13 years, 8 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.148.2.1: +202 -174 lines
Diff to previous 1.148.2.1 (colored) to branchpoint 1.148 (colored) to selected 1.8 (colored)

Sync with HEAD.

Revision 1.114.2.7 / (download) - annotate - [select for diffs], Wed Aug 11 22:53:15 2010 UTC (13 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.114.2.6: +1161 -1085 lines
Diff to previous 1.114.2.6 (colored) to branchpoint 1.114 (colored) to selected 1.8 (colored)

sync with head.

Revision 1.215 / (download) - annotate - [select for diffs], Mon Aug 9 09:36:42 2010 UTC (13 years, 8 months ago) by gsutre
Branch: MAIN
CVS Tags: yamt-nfs-mp-base10, uebayasi-xip-base2
Changes since 1.214: +4 -2 lines
Diff to previous 1.214 (colored) to selected 1.8 (colored)

acpi_pcidev_scan: attach PCI information only to working devices.

ok jruoho@

Revision 1.214 / (download) - annotate - [select for diffs], Sat Aug 7 20:07:25 2010 UTC (13 years, 8 months ago) by jruoho
Branch: MAIN
Changes since 1.213: +10 -2 lines
Diff to previous 1.213 (colored) to selected 1.8 (colored)

Do not try to disable ACPI if we can not enter to legacy mode. While it is
safe to call AcpiDisable() even if a system operates only in ACPI mode, this
leads to unpleasantly verbose error messages in ACPICA.

Revision 1.213 / (download) - annotate - [select for diffs], Sat Aug 7 17:12:55 2010 UTC (13 years, 8 months ago) by jruoho
Branch: MAIN
Changes since 1.212: +3 -3 lines
Diff to previous 1.212 (colored) to selected 1.8 (colored)

Fix build failure.

Revision 1.212 / (download) - annotate - [select for diffs], Sat Aug 7 09:41:19 2010 UTC (13 years, 8 months ago) by jruoho
Branch: MAIN
Changes since 1.211: +116 -29 lines
Diff to previous 1.211 (colored) to selected 1.8 (colored)

Reorganize: also the APIC tables will be dumped in ACPIVERBOSE, and the
callback functions will be modified to be suitable also with other tables.

Revision 1.211 / (download) - annotate - [select for diffs], Fri Aug 6 23:38:34 2010 UTC (13 years, 8 months ago) by jruoho
Branch: MAIN
Changes since 1.210: +50 -60 lines
Diff to previous 1.210 (colored) to selected 1.8 (colored)

Simplify the acpiverbose module.

Revision 1.210 / (download) - annotate - [select for diffs], Fri Aug 6 22:45:00 2010 UTC (13 years, 8 months ago) by jruoho
Branch: MAIN
Changes since 1.209: +7 -23 lines
Diff to previous 1.209 (colored) to selected 1.8 (colored)

Remove the acpiwmi(4) dump from the ACPIVERBOSE module. Instead of this
complex solution, just use aprint_debug(9) in the driver.

Revision 1.209 / (download) - annotate - [select for diffs], Fri Aug 6 18:10:40 2010 UTC (13 years, 8 months ago) by jruoho
Branch: MAIN
Changes since 1.208: +5 -5 lines
Diff to previous 1.208 (colored) to selected 1.8 (colored)

Fix prototypes; SYSCTLFN_ARGS -> SYSCTLFN_PROTO.
(These things really only obscure the code.)

Revision 1.208 / (download) - annotate - [select for diffs], Sun Jul 25 12:54:46 2010 UTC (13 years, 8 months ago) by pgoyette
Branch: MAIN
Changes since 1.207: +7 -9 lines
Diff to previous 1.207 (colored) to selected 1.8 (colored)

Move setting of acpi_verbose_loaded flag into the module's init routine.
This ensures that the flag is set even if the module was manually loaded
by the user rather than just auto-loaded.

Revision 1.207 / (download) - annotate - [select for diffs], Sun Jul 18 09:29:12 2010 UTC (13 years, 9 months ago) by jruoho
Branch: MAIN
Changes since 1.206: +3 -4 lines
Diff to previous 1.206 (colored) to selected 1.8 (colored)

Merge a driver for ACPI CPUs with basic support for processor power states,
also known as C-states. The code is modular and provides an easy way to add
the remaining functionality later (namely throttling and P-states).

Remarks:

  1.	Commented out in the GENERICs; more testing exposure is needed.

  2.	The C3-state is disabled for the time being because it turns off
	timers, among them the local APIC timer. This may not be universally
	true on all x86 processors; define ACPICPU_ENABLE_C3 to test.

  3.	The algorithm used to choose a power state may need tuning. When
	evaluating the appropriate state, the implementation uses the
	previous sleep time as an indicator. Additional hints would include
	for example the system load.

	Also bus master activity is evaluated when choosing a state. The
	usb(4) stack is notorious for such activity even when unused.
	Typically it must be disabled in order to reach the C3-state,
	but it may also prevent the use of C2.

  4.	While no extensive empirical measurements have been carried out, the
	power savings are somewhere between 1-2 W with C1 and C2, depending
	on the processor, firmware, and load. With C3 even up to 4 W can be
	saved.  The less something ticks, the more power is saved.

ok jmcneill@, joerg@, and discussed with various people.

Revision 1.206 / (download) - annotate - [select for diffs], Sat Jul 10 13:08:09 2010 UTC (13 years, 9 months ago) by jruoho
Branch: MAIN
Changes since 1.205: +4 -3 lines
Diff to previous 1.205 (colored) to selected 1.8 (colored)

Export the wrapper functions that read from the ACPI PM timer.
Needed for ACPI CPUs. Also KNF, cosmetics. No functional change.

Revision 1.159.2.2 / (download) - annotate - [select for diffs], Sat Jul 3 01:19:34 2010 UTC (13 years, 9 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.159.2.1: +93 -127 lines
Diff to previous 1.159.2.1 (colored) to selected 1.8 (colored)

sync with head

Revision 1.205 / (download) - annotate - [select for diffs], Fri Jul 2 05:18:38 2010 UTC (13 years, 9 months ago) by jruoho
Branch: MAIN
Changes since 1.204: +2 -4 lines
Diff to previous 1.204 (colored) to selected 1.8 (colored)

Remove PNP0C01 and PNP0C02 from the list of ignored HIDs (and CIDs).

Fixes PR kern/42937 from Ryo Onodera.

As acpi_match_hid() matches also "compatible IDs" (CIDs), we must be careful
when adding devices to this list. For example, the above PR revealed that
the following is a fairly typical way to define the HPET device:

   Device (HPET)
                 {
                     Name (_HID, EisaId ("PNP0103"))
                     Name (_CID, EisaId ("PNP0C01"))
				...

Arguably this is a BIOS bug, given that PNP0C01 and PNP0C02 should uniquely
identify a device (or a resource template) that has nothing to do with HPET.

Revision 1.204 / (download) - annotate - [select for diffs], Fri Jul 2 05:00:48 2010 UTC (13 years, 9 months ago) by jruoho
Branch: MAIN
Changes since 1.203: +6 -14 lines
Diff to previous 1.203 (colored) to selected 1.8 (colored)

Simplify a little by removing the redundant acpi_rescan1().

Revision 1.203 / (download) - annotate - [select for diffs], Thu Jun 10 20:36:55 2010 UTC (13 years, 10 months ago) by jruoho
Branch: MAIN
Changes since 1.202: +8 -5 lines
Diff to previous 1.202 (colored) to selected 1.8 (colored)

A small nit from the spec: _PSW should be called after _PTS. Thus call the
wakedev routine after AcpiEnterSleepStatePrep(). Unlikely to make any
difference whatsoever, but there might always be a BIOS writer who disagrees.

Revision 1.202 / (download) - annotate - [select for diffs], Mon Jun 7 17:13:52 2010 UTC (13 years, 10 months ago) by jruoho
Branch: MAIN
Changes since 1.201: +17 -9 lines
Diff to previous 1.201 (colored) to selected 1.8 (colored)

Use the new ACPICA functions AcpiAttachData() and AcpiGetData() to associate
all "struct acpi_devnodes" to their corresponding ACPI_HANDLEs. Anywhere in
the acpi(4) subtree, the node-structure can be obtained from a handle via
acpi_get_node(). The idea is similar to e.g. device_private().

Benefits: (a) simplifies code, (b) avoids issues with locking as ACPICA does
the serialization for us, (c) avoids the need to access the glocal softc, and
(d) avoids the O(n) loop required to search for a handle from the node queue.

Revision 1.201 / (download) - annotate - [select for diffs], Mon Jun 7 13:04:31 2010 UTC (13 years, 10 months ago) by jruoho
Branch: MAIN
Changes since 1.200: +4 -11 lines
Diff to previous 1.200 (colored) to selected 1.8 (colored)

Build the power resource queue dynamically. This eliminates the need to call
acpi_power_res_add() in the main scan function, also saving few bytes of
memory.

Revision 1.200 / (download) - annotate - [select for diffs], Mon Jun 7 01:45:27 2010 UTC (13 years, 10 months ago) by pgoyette
Branch: MAIN
Changes since 1.199: +47 -24 lines
Diff to previous 1.199 (colored) to selected 1.8 (colored)

Update acpiverbose module to use module_autoload() rather than module_load().
Load the module right before each attempt to use its features, and let the
module subsystem handle unloading.

Revision 1.199 / (download) - annotate - [select for diffs], Sun Jun 6 10:44:40 2010 UTC (13 years, 10 months ago) by jruoho
Branch: MAIN
Changes since 1.198: +8 -7 lines
Diff to previous 1.198 (colored) to selected 1.8 (colored)

Although sysmon_pswitch_unregister(9) does not currently do anything, in
order to be ready for possible future API changes, call it if we failed to
install the fixed event handlers. Also small ACPI_DEBUG_PRINT clarifications.

Revision 1.198 / (download) - annotate - [select for diffs], Sat Jun 5 06:07:12 2010 UTC (13 years, 10 months ago) by jruoho
Branch: MAIN
Changes since 1.197: +6 -6 lines
Diff to previous 1.197 (colored) to selected 1.8 (colored)

Remove trailing white space.

Revision 1.197 / (download) - annotate - [select for diffs], Mon May 31 20:32:29 2010 UTC (13 years, 10 months ago) by pgoyette
Branch: MAIN
Changes since 1.196: +44 -96 lines
Diff to previous 1.196 (colored) to selected 1.8 (colored)

Extract ACPIVERBOSE into a kernel module.  The module can be builtin
by defining 'options ACPIVERBOSE' in the kernel config file (no change
from current behavior), or it can be loaded at boot time on those
architectures that support the boot loader's "load" command.

ACPIVERBOSE also includes code to dump acpi/wmi data.

Revision 1.159.2.1 / (download) - annotate - [select for diffs], Sun May 30 05:17:16 2010 UTC (13 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.159: +1095 -1080 lines
Diff to previous 1.159 (colored) to selected 1.8 (colored)

sync with head

Revision 1.196 / (download) - annotate - [select for diffs], Sun May 23 22:05:54 2010 UTC (13 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.195: +3 -3 lines
Diff to previous 1.195 (colored) to selected 1.8 (colored)

no need for double the newlines!

Revision 1.195 / (download) - annotate - [select for diffs], Wed May 12 16:11:05 2010 UTC (13 years, 11 months ago) by jruoho
Branch: MAIN
Changes since 1.194: +3 -10 lines
Diff to previous 1.194 (colored) to selected 1.8 (colored)

When scanning the device "capabilities" (power, wake-up, etc.),
include all device nodes, regardless of the status of the device.

XXX: It is known that some systems implement the _STA method incorrectly.
     If needed in the future, attachment based on the values from this
     method may need revisiting. Same goes for ACPI_ACTIVATE_DEV.

Revision 1.148.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:43:04 2010 UTC (13 years, 11 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.148: +1099 -1083 lines
Diff to previous 1.148 (colored) to selected 1.8 (colored)

Sync with HEAD.

Revision 1.194 / (download) - annotate - [select for diffs], Tue Apr 27 08:36:06 2010 UTC (13 years, 11 months ago) by jruoho
Branch: MAIN
CVS Tags: uebayasi-xip-base1
Changes since 1.193: +8 -11 lines
Diff to previous 1.193 (colored) to selected 1.8 (colored)

Make acpi_enter_sleep_state() not to return. No one cared what it returned.

Revision 1.193 / (download) - annotate - [select for diffs], Tue Apr 27 05:34:14 2010 UTC (13 years, 11 months ago) by jruoho
Branch: MAIN
Changes since 1.192: +18 -32 lines
Diff to previous 1.192 (colored) to selected 1.8 (colored)

Clean up <dev/acpi/acpireg.h>. While documenting the control methods is an
admirable goal, it is pretty much mission impossible; the specifications are
nearly thousand pages each and the amount of methods is counted in hundreds.

In addition, use ACPICA's native constants from <actypes.h> when possible.
Also move ACPI_STA_OK from "mpacpi.c" to <dev/acpi/acpireg.h> to simplify
the evaluation of device status.

Revision 1.192 / (download) - annotate - [select for diffs], Mon Apr 26 04:31:09 2010 UTC (13 years, 11 months ago) by jruoho
Branch: MAIN
Changes since 1.191: +76 -71 lines
Diff to previous 1.191 (colored) to selected 1.8 (colored)

Move the ACPIVERBOSE blocks to a single place.

Also print non-devices in the EISAID/HID/UID/ADR-block

Revision 1.191 / (download) - annotate - [select for diffs], Sun Apr 25 17:06:23 2010 UTC (13 years, 11 months ago) by jruoho
Branch: MAIN
Changes since 1.190: +3 -3 lines
Diff to previous 1.190 (colored) to selected 1.8 (colored)

Return instead of breaking out if the sleep state is not available.

Revision 1.190 / (download) - annotate - [select for diffs], Sun Apr 25 17:03:08 2010 UTC (13 years, 11 months ago) by jruoho
Branch: MAIN
Changes since 1.189: +17 -15 lines
Diff to previous 1.189 (colored) to selected 1.8 (colored)

As noted by jmcneill@, the specifications specifically mention that the _TTS
should be invoked before the system has notified any native mode device
drivers. Thus, do the call before pmf_system_suspend(9).

Revision 1.189 / (download) - annotate - [select for diffs], Sun Apr 25 10:05:22 2010 UTC (13 years, 11 months ago) by jruoho
Branch: MAIN
Changes since 1.188: +21 -2 lines
Diff to previous 1.188 (colored) to selected 1.8 (colored)

Evaluate _TTS on sleep state transitions. This is mainly to pro-actively
support some weird BIOS, which may require the evaluation. Ok jmcneill@.

Revision 1.188 / (download) - annotate - [select for diffs], Sun Apr 25 09:12:38 2010 UTC (13 years, 11 months ago) by jruoho
Branch: MAIN
Changes since 1.187: +9 -2 lines
Diff to previous 1.187 (colored) to selected 1.8 (colored)

Add a note about AcpiEnterSleepStatePrep().

Revision 1.187 / (download) - annotate - [select for diffs], Sat Apr 24 19:51:15 2010 UTC (13 years, 11 months ago) by jruoho
Branch: MAIN
Changes since 1.186: +4 -4 lines
Diff to previous 1.186 (colored) to selected 1.8 (colored)

Embarrassing typos: _PI_ -> _SI_, _PB_ -> _SB_.

Revision 1.186 / (download) - annotate - [select for diffs], Sat Apr 24 19:36:14 2010 UTC (13 years, 11 months ago) by jruoho
Branch: MAIN
Changes since 1.185: +5 -5 lines
Diff to previous 1.185 (colored) to selected 1.8 (colored)

Do not use __func__ with ACPI_DEBUG_PRINT (it already adds it).

Revision 1.185 / (download) - annotate - [select for diffs], Sat Apr 24 13:42:18 2010 UTC (13 years, 11 months ago) by jruoho
Branch: MAIN
Changes since 1.184: +70 -16 lines
Diff to previous 1.184 (colored) to selected 1.8 (colored)

Fix a bug involving acpitz(4) accidentally attaching to the _TZ_ scope.

This in turn was caused by a bug in ACPICA, which reports the types of _SB_
and _TZ_ scopes incorrectly for its own internal reasons (utglobal.c):

  /*
   * Predefined ACPI Names (Built-in to the Interpreter)
   *
   * NOTES:
   * 1) _SB_ is defined to be a device to allow \_SB_._INI to be run
   *    during the initialization sequence.
   * 2) _TZ_ is defined to be a thermal zone in order to allow ASL code to
   *    perform a Notify() operation on it.
   */

Thanks to cegger@ for noticing the bug and testing a fix.

Revision 1.184 / (download) - annotate - [select for diffs], Fri Apr 23 18:51:31 2010 UTC (13 years, 11 months ago) by jruoho
Branch: MAIN
Changes since 1.183: +3 -3 lines
Diff to previous 1.183 (colored) to selected 1.8 (colored)

Add hw.acpi.power sysctl-node.

Revision 1.183 / (download) - annotate - [select for diffs], Fri Apr 23 07:04:18 2010 UTC (13 years, 11 months ago) by jruoho
Branch: MAIN
Changes since 1.182: +9 -8 lines
Diff to previous 1.182 (colored) to selected 1.8 (colored)

Make the ACPIVERBOSE output even prettier by removing cruft.

Revision 1.182 / (download) - annotate - [select for diffs], Thu Apr 22 21:58:08 2010 UTC (13 years, 11 months ago) by jruoho
Branch: MAIN
Changes since 1.181: +31 -23 lines
Diff to previous 1.181 (colored) to selected 1.8 (colored)

Some pretty printing for ACPIVERBOSE.

Revision 1.181 / (download) - annotate - [select for diffs], Thu Apr 22 18:40:09 2010 UTC (13 years, 11 months ago) by jruoho
Branch: MAIN
Changes since 1.180: +21 -11 lines
Diff to previous 1.180 (colored) to selected 1.8 (colored)

Merge new code for ACPI power resources.

The old code served us well, but a major overhaul would have been needed for
it to cope with the increased demands of the code -- and the specifications.

ok jmcneill@, pgoyette@

Revision 1.180 / (download) - annotate - [select for diffs], Thu Apr 22 14:50:30 2010 UTC (13 years, 11 months ago) by jruoho
Branch: MAIN
Changes since 1.179: +3 -2 lines
Diff to previous 1.179 (colored) to selected 1.8 (colored)

From Gregoire Sutre: rework the ACPI PCI support. This makes ACPI to
correctly pick PCI segment groups, PCI bus numbers, PCI root bridges,
PCI-to-PCI bridges, and PCI devices, among other things. In short: it is
more robust than the old code or anything in sys/arch/x86/x86/mpacpi.c.

ok cegger@, jmcneill@

Revision 1.120.4.1.4.1 / (download) - annotate - [select for diffs], Wed Apr 21 00:27:33 2010 UTC (13 years, 11 months ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.120.4.1: +7 -2 lines
Diff to previous 1.120.4.1 (colored) next main 1.120.4.2 (colored) to selected 1.8 (colored)

sync to netbsd-5

Revision 1.179 / (download) - annotate - [select for diffs], Tue Apr 20 04:57:04 2010 UTC (14 years ago) by jruoho
Branch: MAIN
Changes since 1.178: +2 -27 lines
Diff to previous 1.178 (colored) to selected 1.8 (colored)

Remove the block where the default address space handlers were manually
installed via AcpiInstallAddressSpaceHandler(). This was already commented
out because ACPICA does this for us when ACPI_NO_ADDRESS_SPACE_INIT is not
specified when calling AcpiEnableSubsystem().

Revision 1.178 / (download) - annotate - [select for diffs], Tue Apr 20 04:53:22 2010 UTC (14 years ago) by jruoho
Branch: MAIN
Changes since 1.177: +10 -12 lines
Diff to previous 1.177 (colored) to selected 1.8 (colored)

Instruct ACPICA to dynamically allocate the table descriptions in
AcpiInitializeTables() instead of pushing 128 statically allocated
descriptors. This will eliminate also the need to call
AcpiReallocateRootTable().

The rationale for the statically allocated table descriptors is to allow
initialization without virtual/dynamic memory. Later these should be copied
to dynamic memory via AcpiReallocateRootTable(). But since in NetBSD both
functions were called in the very same acpi_probe(), this dance was
completely unnecessary.

Revision 1.177 / (download) - annotate - [select for diffs], Sun Apr 18 14:07:16 2010 UTC (14 years ago) by jruoho
Branch: MAIN
Changes since 1.176: +2 -5 lines
Diff to previous 1.176 (colored) to selected 1.8 (colored)

Remove a duplicate variable assignment.

Revision 1.176 / (download) - annotate - [select for diffs], Sun Apr 18 14:05:26 2010 UTC (14 years ago) by jruoho
Branch: MAIN
Changes since 1.175: +91 -13 lines
Diff to previous 1.175 (colored) to selected 1.8 (colored)

From Gregoire Sutre:

  Modify the main ACPI namespace scan by including a parent-child
  relationship for each node. The result is a bi-directional tree.

ok jmcneill@

Revision 1.175 / (download) - annotate - [select for diffs], Thu Apr 15 07:02:24 2010 UTC (14 years ago) by jruoho
Branch: MAIN
Changes since 1.174: +134 -4 lines
Diff to previous 1.174 (colored) to selected 1.8 (colored)

As discussed with jmcneill@, install a global "bus notification handler"
that receives all notifications and deliver notifications to drivers via it.

Revision 1.174 / (download) - annotate - [select for diffs], Thu Apr 15 04:03:38 2010 UTC (14 years ago) by jruoho
Branch: MAIN
Changes since 1.173: +20 -24 lines
Diff to previous 1.173 (colored) to selected 1.8 (colored)

Arrange some comments.

Revision 1.173 / (download) - annotate - [select for diffs], Wed Apr 14 19:27:28 2010 UTC (14 years ago) by jruoho
Branch: MAIN
Changes since 1.172: +5 -4 lines
Diff to previous 1.172 (colored) to selected 1.8 (colored)

No need to spread the ACPICA type system any more than is necessary:

	UINT8 -> uint8_t and UINT32 -> uint32_t.

Revision 1.172 / (download) - annotate - [select for diffs], Wed Apr 14 18:39:56 2010 UTC (14 years ago) by jruoho
Branch: MAIN
Changes since 1.171: +102 -88 lines
Diff to previous 1.171 (colored) to selected 1.8 (colored)

Simplify error reporting, remove casts, KNF.

Revision 1.171 / (download) - annotate - [select for diffs], Wed Apr 14 17:20:19 2010 UTC (14 years ago) by jruoho
Branch: MAIN
Changes since 1.170: +5 -58 lines
Diff to previous 1.170 (colored) to selected 1.8 (colored)

Remove the code that was copy-pasted to acpi_detach() from the attachment
routine. Add a note that the detachment is incomplete.

Revision 1.170 / (download) - annotate - [select for diffs], Wed Apr 14 17:14:45 2010 UTC (14 years ago) by jruoho
Branch: MAIN
Changes since 1.169: +2 -22 lines
Diff to previous 1.169 (colored) to selected 1.8 (colored)

Remove the #if 0'ed acpi_disable().

Revision 1.169 / (download) - annotate - [select for diffs], Wed Apr 14 17:12:14 2010 UTC (14 years ago) by jruoho
Branch: MAIN
Changes since 1.168: +485 -861 lines
Diff to previous 1.168 (colored) to selected 1.8 (colored)

Reorganize the main file: add several missing prototypes, move the functions
around so that they appear in their logical order and place, etc. In
addition, split the utility functions to a separate file.

No functional change. Ok jmcneill@.

Revision 1.168 / (download) - annotate - [select for diffs], Wed Apr 14 06:10:32 2010 UTC (14 years ago) by jruoho
Branch: MAIN
Changes since 1.167: +112 -78 lines
Diff to previous 1.167 (colored) to selected 1.8 (colored)

Refactor the fixed-event handlers.

Also provide a detachment routine for these and fix a trivial bug;
a wrong structure was used when registering a sysmon_pswitch(9) switch.

Revision 1.167 / (download) - annotate - [select for diffs], Mon Apr 12 18:59:08 2010 UTC (14 years ago) by jruoho
Branch: MAIN
Changes since 1.166: +5 -22 lines
Diff to previous 1.166 (colored) to selected 1.8 (colored)

Scan the namespace from the root object instead of scanning from separate
scopes. Also raise the namespace walk from 100 (per scope) to UINT32_MAX.

ok jmcneill@

Revision 1.166 / (download) - annotate - [select for diffs], Mon Apr 12 18:55:27 2010 UTC (14 years ago) by jruoho
Branch: MAIN
Changes since 1.165: +116 -72 lines
Diff to previous 1.165 (colored) to selected 1.8 (colored)

Remove some unused and global variables. Make the code more readable. Deny
invalid writes to machdep.sleep_state. Cosmetics. No functional change.

Revision 1.165 / (download) - annotate - [select for diffs], Mon Apr 12 12:14:26 2010 UTC (14 years ago) by jruoho
Branch: MAIN
Changes since 1.164: +104 -35 lines
Diff to previous 1.164 (colored) to selected 1.8 (colored)

Rework the sysctl-support.

Changes:

	hw.wake			->	hw.acpi.wake
	hw.acpi.debug_layer	->	hw.acpi.debug.layer
	hw.acpi.debug_level	->	hw.acpi.debug.level

Additions:

	hw.acpi.stat.gpe	# Number of dispatched GPEs
	hw.acpi.stat.sci	# Number of SCI interrupts
	hw.acpi.stat.fixed	# Number of fixed events
	hw.acpi.stat.method	# Number of executed methods

ok jmcneill@

Revision 1.164 / (download) - annotate - [select for diffs], Thu Apr 8 04:40:51 2010 UTC (14 years ago) by jruoho
Branch: MAIN
Changes since 1.163: +3 -3 lines
Diff to previous 1.163 (colored) to selected 1.8 (colored)

ACPICA 20091112:

	Implemented a post-order callback to AcpiWalkNamespace. The existing
        interface only has a pre-order callback. This change adds an
        additional parameter for a post-order callback which will be more
        useful for bus scans.  ACPICA BZ 779. Lin Ming. Updated the ACPICA
        Programmer Reference.

We will use the old "pre-order callback" for the time being.

Revision 1.163 / (download) - annotate - [select for diffs], Mon Mar 29 16:35:59 2010 UTC (14 years ago) by dyoung
Branch: MAIN
Changes since 1.162: +4 -4 lines
Diff to previous 1.162 (colored) to selected 1.8 (colored)

Attach acpiecdt with acpibus_attach_args.  Sverre Froyen reports that
this helps his Thinkpad boot again.

Revision 1.162 / (download) - annotate - [select for diffs], Mon Mar 22 11:13:23 2010 UTC (14 years ago) by jruoho
Branch: MAIN
Changes since 1.161: +4 -3 lines
Diff to previous 1.161 (colored) to selected 1.8 (colored)

Add IFX0102 and PNP0C15. Fix INT0800.

Observed from the dmesg of njoly@'s Sony VAIO VGN-BZ12VN.

Revision 1.161 / (download) - annotate - [select for diffs], Tue Mar 16 08:02:01 2010 UTC (14 years, 1 month ago) by jruoho
Branch: MAIN
Changes since 1.160: +4 -10 lines
Diff to previous 1.160 (colored) to selected 1.8 (colored)

Remove the call to AcpiGetType() in acpi_make_devnode(). This is the same
information as ACPI_DEVICE_INFO::Type, obtained later by AcpiGetObjectInfo().

Revision 1.160 / (download) - annotate - [select for diffs], Tue Mar 16 05:48:42 2010 UTC (14 years, 1 month ago) by jruoho
Branch: MAIN
Changes since 1.159: +70 -3 lines
Diff to previous 1.159 (colored) to selected 1.8 (colored)

With the intent of making 'struct acpi_devnode' as the central place for
information related to ACPI device nodes: (a) introduce a generic scan
function for ACPI device driver "capabilities", and (b) eliminate local data
structures from ACPI wake-devices. Discussed with jmcneill@.

Revision 1.114.2.6 / (download) - annotate - [select for diffs], Thu Mar 11 15:03:22 2010 UTC (14 years, 1 month ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.114.2.5: +350 -275 lines
Diff to previous 1.114.2.5 (colored) to branchpoint 1.114 (colored) to selected 1.8 (colored)

sync with head

Revision 1.159 / (download) - annotate - [select for diffs], Wed Mar 10 09:42:46 2010 UTC (14 years, 1 month ago) by jruoho
Branch: MAIN
Branch point for: rmind-uvmplock
Changes since 1.158: +72 -50 lines
Diff to previous 1.158 (colored) to selected 1.8 (colored)

Move the ACPI_ACTIVATE_DEV block to one place. While there, provide missing
prototype for a function, try to make the code more simple, guard against a
potential NULL pointer dereference, and improve printing.

No functional change intended.

Revision 1.158 / (download) - annotate - [select for diffs], Wed Mar 10 08:12:44 2010 UTC (14 years, 1 month ago) by jruoho
Branch: MAIN
Changes since 1.157: +22 -18 lines
Diff to previous 1.157 (colored) to selected 1.8 (colored)

Some pretty printing for ACPIVERBOSE.

Revision 1.157 / (download) - annotate - [select for diffs], Tue Mar 9 18:15:21 2010 UTC (14 years, 1 month ago) by jruoho
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9
Changes since 1.156: +75 -108 lines
Diff to previous 1.156 (colored) to selected 1.8 (colored)

Remove the namespace scopes.

These are neither used nor useful beyond the parser and interpreter.

ok jmcneill@, joerg@

Revision 1.156 / (download) - annotate - [select for diffs], Fri Mar 5 21:01:44 2010 UTC (14 years, 1 month ago) by jruoho
Branch: MAIN
Changes since 1.155: +3 -3 lines
Diff to previous 1.155 (colored) to selected 1.8 (colored)

Preparing a device for wakeup involves:

  (a) turning on all power resources required by the device; and
  (b) executing _DSW (or _PSW) control method.

This implements (b). Ok jmcneill@.

Revision 1.155 / (download) - annotate - [select for diffs], Fri Mar 5 14:00:16 2010 UTC (14 years, 1 month ago) by jruoho
Branch: MAIN
Changes since 1.154: +6 -7 lines
Diff to previous 1.154 (colored) to selected 1.8 (colored)

Remove <dev/acpi/acpica.h> from all files. It is included from
<dev/acpi/acpivar.h>. Ditto for <dev/sysmon/sysmonvar.h>, <sys/bus.h>,
<dev/pci/pcivar.h>, and <dev/isa/isavar.h>.

Also nuke a lot of unused and invalid headers. Some of these are audibly
provided by standard headers (namely <sys/param.h> and <sys/device.h>), some
have nothing to do with ACPI devices (e.g. <sys/syslog.h>), and some are
nonexistent local includes (e.g. "mpu_ym.h"). Moreoever, try to group the
includes into their respective blocks.

Tested with GENERIC and ALL (i386). No functional change.

Revision 1.154 / (download) - annotate - [select for diffs], Thu Mar 4 23:25:07 2010 UTC (14 years, 1 month ago) by jruoho
Branch: MAIN
Changes since 1.153: +7 -16 lines
Diff to previous 1.153 (colored) to selected 1.8 (colored)

Remove ACPI_BUT_DEBUG by using ACPI_DEBUG_PRINT(x) instead.

Revision 1.153 / (download) - annotate - [select for diffs], Thu Mar 4 20:17:30 2010 UTC (14 years, 1 month ago) by jruoho
Branch: MAIN
Changes since 1.152: +6 -6 lines
Diff to previous 1.152 (colored) to selected 1.8 (colored)

Fix ACPI_DEBUG build failures reported by Greg A. Woods.

Revision 1.152 / (download) - annotate - [select for diffs], Wed Mar 3 06:57:05 2010 UTC (14 years, 1 month ago) by jruoho
Branch: MAIN
Changes since 1.151: +3 -3 lines
Diff to previous 1.151 (colored) to selected 1.8 (colored)

Convert the single instance of ACPI_EXTRA_DEBUG to ACPIVERBOSE.

Revision 1.151 / (download) - annotate - [select for diffs], Wed Mar 3 06:54:25 2010 UTC (14 years, 1 month ago) by jruoho
Branch: MAIN
Changes since 1.150: +82 -71 lines
Diff to previous 1.150 (colored) to selected 1.8 (colored)

Refactor acpi_make_devnode() to make it a little more readable.

No functional change intended.

Revision 1.150 / (download) - annotate - [select for diffs], Tue Mar 2 18:44:46 2010 UTC (14 years, 1 month ago) by jruoho
Branch: MAIN
Changes since 1.149: +5 -5 lines
Diff to previous 1.149 (colored) to selected 1.8 (colored)

Format string cosmetics (mainly from %d to %u).

Revision 1.149 / (download) - annotate - [select for diffs], Wed Feb 24 22:37:56 2010 UTC (14 years, 1 month ago) by dyoung
Branch: MAIN
Changes since 1.148: +6 -6 lines
Diff to previous 1.148 (colored) to selected 1.8 (colored)

A pointer typedef entails trading too much flexibility to declare const
and non-const types, and the kernel uses both const and non-const
PMF qualifiers and device suspensors, so change the pmf_qual_t and
device_suspensor_t typedefs from "pointers to const" to non-pointer,
non-const types.

Revision 1.148 / (download) - annotate - [select for diffs], Sun Jan 31 11:26:20 2010 UTC (14 years, 2 months ago) by jruoho
Branch: MAIN
CVS Tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Changes since 1.147: +6 -2 lines
Diff to previous 1.147 (colored) to selected 1.8 (colored)

Add dynamic debug options for ACPI_DEBUG kernels.

ok jmcneill@, pooka@, pgoyette@

Revision 1.147 / (download) - annotate - [select for diffs], Mon Jan 18 18:49:27 2010 UTC (14 years, 3 months ago) by jruoho
Branch: MAIN
Changes since 1.146: +26 -15 lines
Diff to previous 1.146 (colored) to selected 1.8 (colored)

Fix and improve several comments.

Revision 1.146 / (download) - annotate - [select for diffs], Mon Jan 18 18:06:31 2010 UTC (14 years, 3 months ago) by jruoho
Branch: MAIN
Changes since 1.145: +34 -2 lines
Diff to previous 1.145 (colored) to selected 1.8 (colored)

Introduce acpi_eval_reference_handle() --

an utility function to evaluate reference handles from package elements.

ok jmcneill@, pgoyette@

Revision 1.145 / (download) - annotate - [select for diffs], Mon Jan 18 17:34:37 2010 UTC (14 years, 3 months ago) by jruoho
Branch: MAIN
Changes since 1.144: +31 -17 lines
Diff to previous 1.144 (colored) to selected 1.8 (colored)

Ensure that the return string is NUL-terminated in acpi_eval_string().

ok jmcneill@, pgoyette@

Revision 1.144 / (download) - annotate - [select for diffs], Tue Jan 12 12:21:04 2010 UTC (14 years, 3 months ago) by jruoho
Branch: MAIN
Changes since 1.143: +46 -14 lines
Diff to previous 1.143 (colored) to selected 1.8 (colored)

Properly evaluate the _PRW object in case we have a package inside a
package.

ok jmcneill@

Revision 1.143 / (download) - annotate - [select for diffs], Sat Jan 9 15:43:12 2010 UTC (14 years, 3 months ago) by jruoho
Branch: MAIN
Changes since 1.142: +3 -2 lines
Diff to previous 1.142 (colored) to selected 1.8 (colored)

Add "ACPI fans" to the list of ignored HIDs, as discussed on port-i386@.

Revision 1.142 / (download) - annotate - [select for diffs], Fri Jan 8 20:40:40 2010 UTC (14 years, 3 months ago) by dyoung
Branch: MAIN
Changes since 1.141: +6 -6 lines
Diff to previous 1.141 (colored) to selected 1.8 (colored)

Expand PMF_FN_* macros.

Revision 1.141 / (download) - annotate - [select for diffs], Fri Jan 8 00:09:44 2010 UTC (14 years, 3 months ago) by dyoung
Branch: MAIN
Changes since 1.140: +2 -9 lines
Diff to previous 1.140 (colored) to selected 1.8 (colored)

Move all copies of ifattr_match() to sys/kern/subr_autoconf.c.

Revision 1.140 / (download) - annotate - [select for diffs], Tue Jan 5 13:39:49 2010 UTC (14 years, 3 months ago) by jruoho
Branch: MAIN
Changes since 1.139: +4 -6 lines
Diff to previous 1.139 (colored) to selected 1.8 (colored)

Use acpi_eval_struct() to simplify code.

ok pgoyette@, jmcneill@

Revision 1.139 / (download) - annotate - [select for diffs], Thu Dec 31 10:07:13 2009 UTC (14 years, 3 months ago) by jruoho
Branch: MAIN
Changes since 1.138: +2 -6 lines
Diff to previous 1.138 (colored) to selected 1.8 (colored)

Remove unused locking variables.

ok pgoyette@, jmcneill@

Revision 1.138 / (download) - annotate - [select for diffs], Thu Dec 31 10:02:51 2009 UTC (14 years, 3 months ago) by jruoho
Branch: MAIN
Changes since 1.137: +3 -2 lines
Diff to previous 1.137 (colored) to selected 1.8 (colored)

Add Intel HW Random Number Generator to the list of ignored HIDs.

ok pgoyette@, jmcneill@

Revision 1.137 / (download) - annotate - [select for diffs], Thu Dec 3 21:04:29 2009 UTC (14 years, 4 months ago) by cegger
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.136: +6 -3 lines
Diff to previous 1.136 (colored) to selected 1.8 (colored)

Enumerate ACPI PCI devices. Allows to link PCI with ACPI devices.
Patch presented on tech-kern@
http://mail-index.netbsd.org/tech-kern/2009/11/28/msg006552.html

'nice work' Jukka Ruohonen

Revision 1.136 / (download) - annotate - [select for diffs], Sun Nov 29 21:32:50 2009 UTC (14 years, 4 months ago) by cegger
Branch: MAIN
Changes since 1.135: +20 -2 lines
Diff to previous 1.135 (colored) to selected 1.8 (colored)

Introduce acpi_eval_set_integer().
Use it in various acpi drivers to simplify code.
Patch presented on tech-kern@:
http://mail-index.netbsd.org/tech-kern/2009/11/28/msg006552.html

No comments.

XXX Is there an acpi(9) manpage?

Revision 1.135 / (download) - annotate - [select for diffs], Sat Nov 28 17:03:17 2009 UTC (14 years, 4 months ago) by cegger
Branch: MAIN
Changes since 1.134: +7 -6 lines
Diff to previous 1.134 (colored) to selected 1.8 (colored)

initialise -> initialize
unabled -> unable
wrap long line

Revision 1.134 / (download) - annotate - [select for diffs], Sat Nov 14 09:54:10 2009 UTC (14 years, 5 months ago) by cegger
Branch: MAIN
Changes since 1.133: +4 -4 lines
Diff to previous 1.133 (colored) to selected 1.8 (colored)

use __arraycount

Revision 1.133 / (download) - annotate - [select for diffs], Wed Sep 16 16:34:49 2009 UTC (14 years, 7 months ago) by dyoung
Branch: MAIN
CVS Tags: jym-xensuspend-nbase
Changes since 1.132: +5 -5 lines
Diff to previous 1.132 (colored) to selected 1.8 (colored)

In pmf(9), improve the implementation of device self-suspension
and make suspension by self, by drvctl(8), and by ACPI system sleep
play nice together.  Start solidifying some temporary API changes.

1. Extract a new header file, <sys/device_if.h>, from <sys/device.h> and
   #include it from <sys/pmf.h> instead of <sys/device.h> to break the
   circular dependency between <sys/device.h> and <sys/pmf.h>.

2. Introduce pmf_qual_t, an aggregate of qualifications on a PMF
   suspend/resume call.  Start to replace instances of PMF_FN_PROTO,
   PMF_FN_ARGS, et cetera, with a pmf_qual_t.

3. Introduce the notion of a "suspensor," an entity that holds a
   device in suspension.  More than one suspensor may hold a device
   at once.  A device stays suspended as long as at least one
   suspensor holds it.  A device resumes when the last suspensor
   releases it.

   Currently, the kernel defines three suspensors,

   3a the system-suspensor: for system suspension, initiated
      by 'sysctl -w machdep.sleep_state=3', by lid closure, by
      power-button press, et cetera,

   3b the drvctl-suspensor: for device suspension by /dev/drvctl
      ioctl, e.g., drvctl -S sip0.

   3c the system self-suspensor: for device drivers that suspend
      themselves and their children.  Several drivers for network
      interfaces put the network device to sleep while it is not
      administratively up, that is, after the kernel calls if_stop(,
      1).  The self-suspensor should not be used directly.  See
      the description of suspensor delegates, below.

   A suspensor can have one or more "delegates".  A suspensor can
   release devices that its delegates hold suspended.  Right now,
   only the system self-suspensor has delegates.  For each device
   that a self-suspending driver attaches, it creates the device's
   self-suspensor, a delegate of the system self-suspensor.

   Suspensors stop a system-wide suspend/resume cycle from waking
   devices that the operator put to sleep with drvctl before the cycle.
   They also help self-suspension to work more simply, safely, and in
   accord with expectations.

4. Add the notion of device activation level, devact_level_t,
   and a routine for checking the current activation level,
   device_activation().  Current activation levels are DEVACT_LEVEL_BUS,
   DEVACT_LEVEL_DRIVER, and DEVACT_LEVEL_CLASS, which respectively
   indicate that the device's bus is active, that the bus and device are
   active, and that the bus, device, and the functions of the device's
   class (network, audio) are active.

   Suspend/resume calls can be qualified with a devact_level_t.
   The power-management framework treats a devact_level_t that
   qualifies a device suspension as the device's current activation
   level; it only runs hooks to reduce the activation level from
   the presumed current level to the fully suspended state.  The
   framework treats a devact_level_t qualifying device resumption
   as the target activation level; it only runs hooks to raise the
   activation level to the target.

5. Use pmf_qual_t, devact_level_t, and self-suspensors in several
   drivers.

6. Temporarily add an unused power-management workqueue that I will
   remove or replace, soon.

Revision 1.114.2.5 / (download) - annotate - [select for diffs], Wed Sep 16 13:37:45 2009 UTC (14 years, 7 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.114.2.4: +14 -3 lines
Diff to previous 1.114.2.4 (colored) to branchpoint 1.114 (colored) to selected 1.8 (colored)

sync with head

Revision 1.132 / (download) - annotate - [select for diffs], Wed Sep 16 10:47:54 2009 UTC (14 years, 7 months ago) by mlelstv
Branch: MAIN
Changes since 1.131: +18 -15 lines
Diff to previous 1.131 (colored) to selected 1.8 (colored)

Allow for 'options ACPI_DEBUG' by providing module declarations
and using memory allocation macros instead of calling AcpiOs* stubs
directly.

Revision 1.120.4.2 / (download) - annotate - [select for diffs], Sat Sep 5 11:34:26 2009 UTC (14 years, 7 months ago) by bouyer
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, matt-nb5-pq3-base, matt-nb5-pq3
Changes since 1.120.4.1: +7 -2 lines
Diff to previous 1.120.4.1 (colored) to branchpoint 1.120 (colored) next main 1.121 (colored) to selected 1.8 (colored)

Pull up following revision(s) (requested by jmcneill in ticket #896):
	sys/dev/acpi/acpi_button.c: revision 1.27 via patch
	sys/dev/acpi/acpi_wakedev.h: revision 1.1 via patch
	sys/dev/acpi/acpi_wakedev.c: revision 1.1 via patch
	sys/dev/acpi/files.acpi: revision 1.55 via patch
	sys/dev/acpi/acpi.c: revision 1.127 via patch
	sys/dev/acpi/acpi_lid.c: revision 1.27 via patch
add hw.wake.* sysctl subtree for toggling which devices are allowed to
restore the system from sleep. set/clear wake GPEs as specified before
entering sleep.
by default, the following devices are enabled for wake:
 - sleep/power buttons
 - lid switch
 - pc kbd controller
reviewed by: joerg

Revision 1.131 / (download) - annotate - [select for diffs], Tue Aug 25 10:34:08 2009 UTC (14 years, 7 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8
Changes since 1.130: +3 -3 lines
Diff to previous 1.130 (colored) to selected 1.8 (colored)

PR# kern/41179: Incorrect return values from AcpiOsExecute()

ACPICA functions return ACPI_STATUS instead of int, so use it for
consistency.

Revision 1.130 / (download) - annotate - [select for diffs], Sun Aug 23 15:16:16 2009 UTC (14 years, 7 months ago) by jmcneill
Branch: MAIN
Changes since 1.129: +13 -2 lines
Diff to previous 1.129 (colored) to selected 1.8 (colored)

When ACPI is not present, free any resources used by the ACPICA. Also,
no need to complain (unless we're debugging) that ACPI is not present.

Revision 1.114.2.4 / (download) - annotate - [select for diffs], Wed Aug 19 18:47:03 2009 UTC (14 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.114.2.3: +21 -24 lines
Diff to previous 1.114.2.3 (colored) to branchpoint 1.114 (colored) to selected 1.8 (colored)

sync with head.

Revision 1.129 / (download) - annotate - [select for diffs], Tue Aug 18 21:38:41 2009 UTC (14 years, 8 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base7
Changes since 1.128: +6 -6 lines
Diff to previous 1.128 (colored) to selected 1.8 (colored)

Update for API changes with new ACPICA.
Makes i386 ALL kernel build.

Revision 1.128 / (download) - annotate - [select for diffs], Tue Aug 18 16:41:02 2009 UTC (14 years, 8 months ago) by jmcneill
Branch: MAIN
Changes since 1.127: +12 -20 lines
Diff to previous 1.127 (colored) to selected 1.8 (colored)

Switch to ACPICA 20090730, and update for API changes.

Revision 1.127 / (download) - annotate - [select for diffs], Tue Aug 4 14:20:40 2009 UTC (14 years, 8 months ago) by jmcneill
Branch: MAIN
Changes since 1.126: +7 -2 lines
Diff to previous 1.126 (colored) to selected 1.8 (colored)

add hw.wake.* sysctl subtree for toggling which devices are allowed to
restore the system from sleep. set/clear wake GPEs as specified before
entering sleep.

by default, the following devices are enabled for wake:
 - sleep/power buttons
 - lid switch
 - pc kbd controller

reviewed by: joerg

Revision 1.114.2.3 / (download) - annotate - [select for diffs], Sat May 16 10:41:18 2009 UTC (14 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.114.2.2: +4 -4 lines
Diff to previous 1.114.2.2 (colored) to branchpoint 1.114 (colored) to selected 1.8 (colored)

sync with head

Revision 1.123.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:19:10 2009 UTC (14 years, 11 months ago) by jym
Branch: jym-xensuspend
Changes since 1.123: +136 -10 lines
Diff to previous 1.123 (colored) next main 1.124 (colored) to selected 1.8 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.126 / (download) - annotate - [select for diffs], Tue May 12 09:29:46 2009 UTC (14 years, 11 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, jymxensuspend-base, jym-xensuspend-base
Changes since 1.125: +4 -4 lines
Diff to previous 1.125 (colored) to selected 1.8 (colored)

struct cfdata * -> cfdata_t, no functional changes intended.

Revision 1.114.2.2 / (download) - annotate - [select for diffs], Mon May 4 08:12:33 2009 UTC (14 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.114.2.1: +240 -27 lines
Diff to previous 1.114.2.1 (colored) to branchpoint 1.114 (colored) to selected 1.8 (colored)

sync with head.

Revision 1.120.2.3 / (download) - annotate - [select for diffs], Tue Apr 28 07:35:19 2009 UTC (14 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.120.2.2: +134 -8 lines
Diff to previous 1.120.2.2 (colored) to branchpoint 1.120 (colored) next main 1.121 (colored) to selected 1.8 (colored)

Sync with HEAD.

Revision 1.125 / (download) - annotate - [select for diffs], Wed Apr 8 12:39:27 2009 UTC (15 years ago) by joerg
Branch: MAIN
CVS Tags: yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base
Changes since 1.124: +4 -3 lines
Diff to previous 1.124 (colored) to selected 1.8 (colored)

sprintf -> snprintf

Revision 1.124 / (download) - annotate - [select for diffs], Wed Apr 8 00:23:30 2009 UTC (15 years ago) by dyoung
Branch: MAIN
Changes since 1.123: +132 -7 lines
Diff to previous 1.123 (colored) to selected 1.8 (colored)

Refactor slightly to create acpi_rescan(), a hook for rescanning the
devices that attach at acpi(4).

Begin deriving an acpi(4) device-detachment hook, acpi_detach(), from
acpi_attach().  The code between #if 0 and #endif still needs to be
turned to the opposite calls (enables to disables, maps to unmaps,
attaches to detaches), which should be run in the opposite order.
Somebody with deep ACPI knowledge can probably finish this off without
too much trouble.

Revision 1.120.2.2 / (download) - annotate - [select for diffs], Tue Mar 3 18:30:31 2009 UTC (15 years, 1 month ago) by skrll
Branch: nick-hppapmap
Changes since 1.120.2.1: +21 -3 lines
Diff to previous 1.120.2.1 (colored) to branchpoint 1.120 (colored) to selected 1.8 (colored)

Sync with HEAD.

Revision 1.120.4.1 / (download) - annotate - [select for diffs], Mon Feb 2 20:37:34 2009 UTC (15 years, 2 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b
Branch point for: matt-nb5-mips64
Changes since 1.120: +21 -3 lines
Diff to previous 1.120 (colored) to selected 1.8 (colored)

Pull up following revision(s) (requested by jmcneill in ticket #381):
	sys/dev/acpi/acpi.c: revision 1.123
	sys/dev/acpi/acpica/OsdSchedule.c: revision 1.9
	sys/dev/acpi/acpica/OsdSynch.c: revision 1.11
PR# kern/38817: regression in acpi sleep on lifebook S6510
Switch to polling mode after the acpi(4) device has been suspended as
interrupts will be disabled later on and we may still need to execute
AML that tries to sleep or wait on a semaphore.

Revision 1.123 / (download) - annotate - [select for diffs], Fri Jan 30 12:51:03 2009 UTC (15 years, 2 months ago) by jmcneill
Branch: MAIN
CVS Tags: nick-hppapmap-base2
Branch point for: jym-xensuspend
Changes since 1.122: +21 -3 lines
Diff to previous 1.122 (colored) to selected 1.8 (colored)

PR# kern/38817: regression in acpi sleep on lifebook S6510

Switch to polling mode after the acpi(4) device has been suspended as
interrupts will be disabled later on and we may still need to execute
AML that tries to sleep or wait on a semaphore.

Revision 1.120.2.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:17:52 2009 UTC (15 years, 3 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.120: +22 -8 lines
Diff to previous 1.120 (colored) to selected 1.8 (colored)

Sync with HEAD.

Revision 1.109.6.4 / (download) - annotate - [select for diffs], Sat Jan 17 13:28:52 2009 UTC (15 years, 3 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.109.6.3: +20 -6 lines
Diff to previous 1.109.6.3 (colored) to branchpoint 1.109 (colored) next main 1.110 (colored) to selected 1.8 (colored)

Sync with HEAD.

Revision 1.122 / (download) - annotate - [select for diffs], Sat Jan 3 03:43:22 2009 UTC (15 years, 3 months ago) by yamt
Branch: MAIN
CVS Tags: mjf-devfs2-base
Changes since 1.121: +3 -3 lines
Diff to previous 1.121 (colored) to selected 1.8 (colored)

remove extra semicolons.

Revision 1.117.4.2 / (download) - annotate - [select for diffs], Sat Dec 13 01:14:12 2008 UTC (15 years, 4 months ago) by haad
Branch: haad-dm
Changes since 1.117.4.1: +21 -7 lines
Diff to previous 1.117.4.1 (colored) to branchpoint 1.117 (colored) next main 1.118 (colored) to selected 1.8 (colored)

Update haad-dm branch to haad-dm-base2.

Revision 1.121 / (download) - annotate - [select for diffs], Sun Dec 7 10:53:57 2008 UTC (15 years, 4 months ago) by mlelstv
Branch: MAIN
CVS Tags: haad-nbase2, haad-dm-base2, haad-dm-base
Changes since 1.120: +21 -7 lines
Diff to previous 1.120 (colored) to selected 1.8 (colored)

Handle printing of _STR attribute with non-string data type gracefully.

Revision 1.117.4.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:16:19 2008 UTC (15 years, 6 months ago) by haad
Branch: haad-dm
Changes since 1.117: +34 -8 lines
Diff to previous 1.117 (colored) to selected 1.8 (colored)

Sync with HEAD.

Revision 1.115.2.4 / (download) - annotate - [select for diffs], Fri Oct 10 22:30:58 2008 UTC (15 years, 6 months ago) by skrll
Branch: wrstuden-revivesa
Changes since 1.115.2.3: +2 -4 lines
Diff to previous 1.115.2.3 (colored) to branchpoint 1.115 (colored) next main 1.116 (colored) to selected 1.8 (colored)

Sync with HEAD.

Revision 1.109.6.3 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:18 2008 UTC (15 years, 6 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.109.6.2: +32 -6 lines
Diff to previous 1.109.6.2 (colored) to branchpoint 1.109 (colored) to selected 1.8 (colored)

Sync with HEAD.

Revision 1.115.2.3 / (download) - annotate - [select for diffs], Wed Sep 24 16:38:51 2008 UTC (15 years, 6 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.115.2.2: +4 -2 lines
Diff to previous 1.115.2.2 (colored) to branchpoint 1.115 (colored) to selected 1.8 (colored)

Merge in changes between wrstuden-revivesa-base-2 and
wrstuden-revivesa-base-3.

Revision 1.120 / (download) - annotate - [select for diffs], Fri Sep 19 11:19:33 2008 UTC (15 years, 7 months ago) by jmcneill
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, netbsd-5-base, netbsd-5-0-RC1, matt-mips64-base2, haad-dm-base1, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, netbsd-5
Changes since 1.119: +0 -2 lines
Diff to previous 1.119 (colored) to selected 1.8 (colored)

Revert previous.

Revision 1.115.2.2 / (download) - annotate - [select for diffs], Thu Sep 18 04:35:01 2008 UTC (15 years, 7 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.115.2.1: +34 -8 lines
Diff to previous 1.115.2.1 (colored) to branchpoint 1.115 (colored) to selected 1.8 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.119 / (download) - annotate - [select for diffs], Wed Sep 10 03:56:12 2008 UTC (15 years, 7 months ago) by jmcneill
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3
Changes since 1.118: +4 -2 lines
Diff to previous 1.118 (colored) to selected 1.8 (colored)

PR# 38683 - T61 cannot suspend with recent kernels

Don't restore spl until after AcpiLeaveSleepState.

Revision 1.117.2.1 / (download) - annotate - [select for diffs], Fri Jul 18 16:37:32 2008 UTC (15 years, 9 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.117: +34 -8 lines
Diff to previous 1.117 (colored) next main 1.118 (colored) to selected 1.8 (colored)

Sync with head.

Revision 1.118 / (download) - annotate - [select for diffs], Tue Jul 15 16:15:28 2008 UTC (15 years, 9 months ago) by dyoung
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-2, simonb-wapbl-nbase, simonb-wapbl-base
Changes since 1.117: +34 -8 lines
Diff to previous 1.117 (colored) to selected 1.8 (colored)

Introduce acpi_clear_wake_gpe() to undo acpi_set_wake_gpe().
Extract common code from acpi_clear_wake_gpe() and acpi_set_wake_gpe(),
creating acpi_wake_gpe_helper().

Revision 1.115.2.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:30:58 2008 UTC (15 years, 9 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.115: +37 -8 lines
Diff to previous 1.115 (colored) to selected 1.8 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.113.2.2 / (download) - annotate - [select for diffs], Wed Jun 4 02:05:09 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-pf42
Changes since 1.113.2.1: +3 -3 lines
Diff to previous 1.113.2.1 (colored) to branchpoint 1.113 (colored) next main 1.114 (colored) to selected 1.8 (colored)

sync with head

Revision 1.109.6.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:23:12 2008 UTC (15 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.109.6.1: +41 -15 lines
Diff to previous 1.109.6.1 (colored) to branchpoint 1.109 (colored) to selected 1.8 (colored)

Sync with HEAD.

Revision 1.117 / (download) - annotate - [select for diffs], Sun Jun 1 19:01:57 2008 UTC (15 years, 10 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, wrstuden-revivesa-base-1, wrstuden-revivesa-base
Branch point for: simonb-wapbl, haad-dm
Changes since 1.116: +3 -3 lines
Diff to previous 1.116 (colored) to selected 1.8 (colored)

Fix compilation with ACPI_EXTRA_DEBUG.

Revision 1.113.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:33:33 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.113: +42 -16 lines
Diff to previous 1.113 (colored) to selected 1.8 (colored)

sync with head.

Revision 1.116 / (download) - annotate - [select for diffs], Sat May 17 15:42:25 2008 UTC (15 years, 11 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-pf42-base2, hpcarm-cleanup-nbase
Changes since 1.115: +36 -7 lines
Diff to previous 1.115 (colored) to selected 1.8 (colored)

For device nodes that we handle internally, do not bother calling
config_found_ia on the node to save a bunch of useless 'device NNN
not configured' messages at startup. While here, condense ACPI printfs
at attach time.

Revision 1.114.2.1 / (download) - annotate - [select for diffs], Fri May 16 02:23:53 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.114: +2 -9 lines
Diff to previous 1.114 (colored) to selected 1.8 (colored)

sync with head.

Revision 1.115 / (download) - annotate - [select for diffs], Mon Apr 28 20:23:47 2008 UTC (15 years, 11 months ago) by martin
Branch: MAIN
CVS Tags: yamt-nfs-mp-base2
Branch point for: wrstuden-revivesa
Changes since 1.114: +2 -9 lines
Diff to previous 1.114 (colored) to selected 1.8 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.114 / (download) - annotate - [select for diffs], Sun Apr 20 16:26:36 2008 UTC (16 years ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Changes since 1.113: +8 -4 lines
Diff to previous 1.113 (colored) to selected 1.8 (colored)

Improve error reporting when we fail to enter a sleep state, eg:

  acpi0: entering state 1
  acpi0: ACPI S1 not available on this platform

Revision 1.109.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:42:37 2008 UTC (16 years ago) by mjf
Branch: mjf-devfs2
Changes since 1.109: +83 -80 lines
Diff to previous 1.109 (colored) to selected 1.8 (colored)

Sync with HEAD.

Revision 1.113 / (download) - annotate - [select for diffs], Thu Mar 27 02:51:26 2008 UTC (16 years ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base
Branch point for: yamt-pf42
Changes since 1.112: +30 -29 lines
Diff to previous 1.112 (colored) to selected 1.8 (colored)

Split device_t and softc

Revision 1.109.2.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:15:11 2008 UTC (16 years ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.109: +78 -76 lines
Diff to previous 1.109 (colored) next main 1.110 (colored) to selected 1.8 (colored)

sync with head.

Revision 1.102.2.2 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:35 2008 UTC (16 years ago) by matt
Branch: matt-armv6
Changes since 1.102.2.1: +97 -86 lines
Diff to previous 1.102.2.1 (colored) to branchpoint 1.102 (colored) next main 1.103 (colored) to selected 1.8 (colored)

sync with HEAD

Revision 1.76.2.8 / (download) - annotate - [select for diffs], Mon Mar 17 09:14:37 2008 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.76.2.7: +78 -76 lines
Diff to previous 1.76.2.7 (colored) to branchpoint 1.76 (colored) next main 1.77 (colored) to selected 1.8 (colored)

sync with head.

Revision 1.112 / (download) - annotate - [select for diffs], Wed Mar 12 18:02:21 2008 UTC (16 years, 1 month ago) by dyoung
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, ad-socklock-base1
Changes since 1.111: +5 -5 lines
Diff to previous 1.111 (colored) to selected 1.8 (colored)

Use device_t and its accessors throughout.  Use aprint_*_dev().

Improve PMF-ability.

        Add a 'flags' argument to suspend/resume handlers and
        callers such as pmf_system_suspend().

        Define a flag, PMF_F_SELF, which indicates to PMF that a
        device is suspending/resuming itself.  Add helper routines,
        pmf_device_suspend_self(dev) and pmf_device_resume_self(dev),
        that call pmf_device_suspend(dev, PMF_F_SELF) and
        pmf_device_resume(dev, PMF_F_SELF), respectively.  Use
        PMF_F_SELF to suspend/resume self in ath(4), audio(4),
        rtw(4), and sip(4).

        In ath(4) and in rtw(4), replace the icky sc_enable/sc_disable
        callbacks, provided by the bus front-end, with
        self-suspension/resumption.  Also, clean up the bus
        front-ends.  Make sure that the interrupt handler is
        disestablished during suspension.  Get rid of driver-private
        flags (e.g., RTW_F_ENABLED, ath_softc->sc_invalid); use
        device_is_active()/device_has_power() calls, instead.

        In the network-class suspend handler, call if_stop(, 0)
        instead of if_stop(, 1), because the latter is superfluous
        (bus- and driver-suspension hooks will 'disable' the NIC),
        and it may cause recursion.

        In the network-class resume handler, prevent infinite
        recursion through if_init() by getting out early if we are
        self-suspending (PMF_F_SELF).

rtw(4) improvements:

        Destroy rtw(4) callouts when we detach it.  Make rtw at
        pci detachable.  Print some more information with the "rx
        frame too long" warning.

Remove activate() methods:

        Get rid of rtw_activate() and ath_activate().  The device
        activate() methods are not good for much these days.

Make ath at cardbus resume with crypto functions intact:

        Introduce a boolean device property, "pmf-powerdown".  If
        pmf-powerdown is present and false, it indicates that a
        bus back-end should not remove power from a device.

        Honor this property in cardbus_child_suspend().

        Set this property to 'false' in ath_attach(), since removing
        power from an ath at cardbus seems to lobotomize the WPA
        crypto engine.  XXX Should the pmf-powerdown property
        propagate toward the root of the device tree?

Miscellaneous ath(4) changes:

        Warn if ath(4) tries to write crypto keys to suspended
        hardware.

        Reduce differences between FreeBSD and NetBSD in ath(4)
        multicast filter setup.

        Make ath_printrxbuf() print an rx descriptor's status &
        key index, to help debug crypto errors.

        Shorten a staircase in ath_ioctl().  Don't check for
        ieee80211_ioctl() return code ERESTART, it never happens.

Revision 1.111 / (download) - annotate - [select for diffs], Mon Mar 10 20:58:38 2008 UTC (16 years, 1 month ago) by dyoung
Branch: MAIN
Changes since 1.110: +75 -50 lines
Diff to previous 1.110 (colored) to selected 1.8 (colored)

Use device_t and accessors.  Use aprint_*_dev().

Add a method for detaching children.  XXX acpi(4) may leak some
resources for each child detached.  Needs attention from someone
who understands acpi(4).

Revision 1.110 / (download) - annotate - [select for diffs], Sun Mar 9 19:09:00 2008 UTC (16 years, 1 month ago) by jmcneill
Branch: MAIN
Changes since 1.109: +2 -25 lines
Diff to previous 1.109 (colored) to selected 1.8 (colored)

shutdownhook_establish is deprecated, but instead of converting to pmf,
just delete it as acpi_shutdown was empty.

Revision 1.76.2.7 / (download) - annotate - [select for diffs], Wed Feb 27 08:36:31 2008 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.76.2.6: +21 -12 lines
Diff to previous 1.76.2.6 (colored) to branchpoint 1.76 (colored) to selected 1.8 (colored)

sync with head.

Revision 1.102.8.3 / (download) - annotate - [select for diffs], Mon Feb 18 21:05:36 2008 UTC (16 years, 2 months ago) by mjf
Branch: mjf-devfs
Changes since 1.102.8.2: +21 -12 lines
Diff to previous 1.102.8.2 (colored) to branchpoint 1.102 (colored) next main 1.103 (colored) to selected 1.8 (colored)

Sync with HEAD.

Revision 1.109 / (download) - annotate - [select for diffs], Wed Feb 13 15:27:55 2008 UTC (16 years, 2 months ago) by jmcneill
Branch: MAIN
CVS Tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, hpcarm-cleanup-base
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.108: +21 -12 lines
Diff to previous 1.108 (colored) to selected 1.8 (colored)

Add hw.acpi.supported_states sysctl node:
  $ sysctl hw.acpi.supported_states
  hw.acpi.supported_states = S0 S3 S4 S5

Revision 1.76.2.6 / (download) - annotate - [select for diffs], Mon Jan 21 09:42:28 2008 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.76.2.5: +184 -57 lines
Diff to previous 1.76.2.5 (colored) to branchpoint 1.76 (colored) to selected 1.8 (colored)

sync with head

Revision 1.102.2.1 / (download) - annotate - [select for diffs], Wed Jan 9 01:52:16 2008 UTC (16 years, 3 months ago) by matt
Branch: matt-armv6
Changes since 1.102: +186 -59 lines
Diff to previous 1.102 (colored) to selected 1.8 (colored)

sync with HEAD

Revision 1.104.2.2 / (download) - annotate - [select for diffs], Wed Jan 2 21:53:48 2008 UTC (16 years, 3 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.104.2.1: +64 -12 lines
Diff to previous 1.104.2.1 (colored) next main 1.105 (colored) to selected 1.8 (colored)

Sync with HEAD

Revision 1.102.8.2 / (download) - annotate - [select for diffs], Thu Dec 27 00:44:49 2007 UTC (16 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.102.8.1: +184 -57 lines
Diff to previous 1.102.8.1 (colored) to branchpoint 1.102 (colored) to selected 1.8 (colored)

Sync with HEAD.

Revision 1.102.10.2 / (download) - annotate - [select for diffs], Wed Dec 26 21:39:21 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.102.10.1: +184 -57 lines
Diff to previous 1.102.10.1 (colored) to branchpoint 1.102 (colored) next main 1.103 (colored) to selected 1.8 (colored)

Sync with head.

Revision 1.108 / (download) - annotate - [select for diffs], Sun Dec 16 21:10:34 2007 UTC (16 years, 4 months ago) by jmcneill
Branch: MAIN
CVS Tags: vmlocking2-base3, matt-armv6-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Changes since 1.107: +63 -18 lines
Diff to previous 1.107 (colored) to selected 1.8 (colored)

Now that ACPI-CA doesn't parse the X/RSDT for us, we need to map it
ourselves.

Before:
  acpi0: X/RSDT: OemId <      ,        ,00000000>, AslId <    ,00000000>
After:
  acpi0: X/RSDT: OemId <LENOVO,TP-7L   ,00001260>, AslId < LTP,00000000>

ACPI can now access the X/RSDT using 'acpi_map_rsdt' and 'acpi_unmap_rsdt'.

Revision 1.107 / (download) - annotate - [select for diffs], Sat Dec 15 02:19:55 2007 UTC (16 years, 4 months ago) by jmcneill
Branch: MAIN
Changes since 1.106: +18 -12 lines
Diff to previous 1.106 (colored) to selected 1.8 (colored)

Restore acpi_quirk functionality, lost in the latest ACPI-CA update.

Revision 1.106 / (download) - annotate - [select for diffs], Fri Dec 14 01:29:29 2007 UTC (16 years, 4 months ago) by jmcneill
Branch: MAIN
Changes since 1.105: +3 -2 lines
Diff to previous 1.105 (colored) to selected 1.8 (colored)

Introduce pmf_system_bus_resume. In the ACPI S3 resume path, use this to
separate powering up devices from restoring their state. This is required
on some machines where AcpiLeaveSleepState can fail due to an attempt to
access a powered off device.

Revision 1.104.2.1 / (download) - annotate - [select for diffs], Thu Dec 13 21:55:23 2007 UTC (16 years, 4 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.104: +4 -4 lines
Diff to previous 1.104 (colored) to selected 1.8 (colored)

Sync with HEAD

Revision 1.103.2.1 / (download) - annotate - [select for diffs], Tue Dec 11 15:22:28 2007 UTC (16 years, 4 months ago) by yamt
Branch: yamt-kmem
Changes since 1.103: +124 -49 lines
Diff to previous 1.103 (colored) next main 1.104 (colored) to selected 1.8 (colored)

sync with head.

Revision 1.105 / (download) - annotate - [select for diffs], Mon Dec 10 22:56:29 2007 UTC (16 years, 4 months ago) by reinoud
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, cube-autoconf-base, cube-autoconf
Changes since 1.104: +4 -4 lines
Diff to previous 1.104 (colored) to selected 1.8 (colored)

Add missing \n and remove surplus .

Revision 1.104 / (download) - annotate - [select for diffs], Sun Dec 9 20:27:52 2007 UTC (16 years, 4 months ago) by jmcneill
Branch: MAIN
Branch point for: bouyer-xeni386
Changes since 1.103: +123 -48 lines
Diff to previous 1.103 (colored) to selected 1.8 (colored)

Merge jmcneill-pm branch.

Revision 1.101.16.27 / (download) - annotate - [select for diffs], Sun Dec 9 19:37:43 2007 UTC (16 years, 4 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.101.16.26: +4 -4 lines
Diff to previous 1.101.16.26 (colored) to branchpoint 1.101 (colored) next main 1.102 (colored) to selected 1.8 (colored)

Sync with HEAD.

Revision 1.102.8.1 / (download) - annotate - [select for diffs], Sat Dec 8 18:19:21 2007 UTC (16 years, 4 months ago) by mjf
Branch: mjf-devfs
Changes since 1.102: +4 -4 lines
Diff to previous 1.102 (colored) to selected 1.8 (colored)

Sync with HEAD.

Revision 1.102.10.1 / (download) - annotate - [select for diffs], Sat Dec 8 17:57:18 2007 UTC (16 years, 4 months ago) by ad
Branch: vmlocking2
Changes since 1.102: +4 -4 lines
Diff to previous 1.102 (colored) to selected 1.8 (colored)

Sync with head.

Revision 1.101.16.26 / (download) - annotate - [select for diffs], Sat Dec 8 16:21:02 2007 UTC (16 years, 4 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.101.16.25: +5 -5 lines
Diff to previous 1.101.16.25 (colored) to branchpoint 1.101 (colored) to selected 1.8 (colored)

Rename pnp(9) -> pmf(9), as requested by many.

Revision 1.76.2.5 / (download) - annotate - [select for diffs], Fri Dec 7 17:29:35 2007 UTC (16 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.76.2.4: +4 -4 lines
Diff to previous 1.76.2.4 (colored) to branchpoint 1.76 (colored) to selected 1.8 (colored)

sync with head

Revision 1.103 / (download) - annotate - [select for diffs], Wed Dec 5 07:06:50 2007 UTC (16 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: yamt-kmem-base, vmlocking2-base2, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base
Branch point for: yamt-kmem
Changes since 1.102: +4 -4 lines
Diff to previous 1.102 (colored) to selected 1.8 (colored)

Match the docs: MUTEX_DRIVER/SPIN are now only for porting code written
for Solaris.

Revision 1.101.16.25 / (download) - annotate - [select for diffs], Sun Dec 2 00:38:41 2007 UTC (16 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.101.16.24: +2 -3 lines
Diff to previous 1.101.16.24 (colored) to branchpoint 1.101 (colored) to selected 1.8 (colored)

Don't wait one second before suspend, drivers should wait as long as
they have to themselve.

Revision 1.101.16.24 / (download) - annotate - [select for diffs], Wed Nov 14 02:19:29 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.101.16.23: +3 -3 lines
Diff to previous 1.101.16.23 (colored) to branchpoint 1.101 (colored) to selected 1.8 (colored)

Introduce pnp_system_shutdown which just complains if drivers don't
support the PNP framework, give the user 2 seconds to worry about that
and runs the class and driver suspend functions. Keep all devices
powered e.g. to allow deciphering messages from the screen.
Drop the argument to pnp_system_suspend now that the use for it is gone.

Revision 1.101.16.23 / (download) - annotate - [select for diffs], Tue Nov 6 14:27:11 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.101.16.22: +9 -6 lines
Diff to previous 1.101.16.22 (colored) to branchpoint 1.101 (colored) to selected 1.8 (colored)

Refactor PNP API:
- Make suspend/resume directly a device functionality. It consists of
  three layers (class logic, device logic, bus logic), all of them being
  optional. This replaces D0/D3 transitions.
- device_is_active returns true if the device was not disabled and was
  not suspended (even partially), device_is_enabled returns true if the
  device was enabled.
- Change pnp_global_transition into pnp_system_suspend and
  pnp_system_resume. Before running any suspend/resume handlers, check
  that all currently attached devices support power management and bail
  out otherwise. The latter is not done for the shutdown/panic case.
- Make the former bus-specific generic network handlers a class handler.
- Make PNP message like volume up/down/toogle PNP events. Each device
  can register what events they are interested in and whether the handler
  should be global or not.
- Introduce device_active API for devices to mark themselve in use from
  either the system or the device. Use this to implement the idle handling
  for audio and input devices. This is intended to replace most ad-hoc
  watchdogs as well.
- Fix somes situations in which audio resume would lose mixer settings.
- Make USB host controllers better deal with suspend in the light of
  shared interrupts.
- Flush filesystem cache on suspend.
- Flush disk caches on suspend. Put ATA disks into standby on suspend as
  well.
- Adopt drivers to use the new PNP API.
- Fix a critical bug in the generic cardbus layer that made D0->D3
  break.
- Fix ral(4) to set if_stop.
- Convert cbb(4) to the new PNP API.
- Apply the PCI Express SCI fix on resume again.

Revision 1.101.16.22 / (download) - annotate - [select for diffs], Sun Oct 28 17:20:43 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.101.16.21: +7 -3 lines
Diff to previous 1.101.16.21 (colored) to branchpoint 1.101 (colored) to selected 1.8 (colored)

Non-device nodes (e.g. Thermal Zones, Processors) can be valid without
HID, don't skip them.

Revision 1.101.16.21 / (download) - annotate - [select for diffs], Sat Oct 13 15:33:24 2007 UTC (16 years, 6 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.101.16.20: +3 -7 lines
Diff to previous 1.101.16.20 (colored) to branchpoint 1.101 (colored) to selected 1.8 (colored)

Move ACPI_EVENT_POWER_BUTTON reset into acpi_md_sleep. Add splhigh
guards around the x86_disable_intr/x86_enable_intr calls for the moment
until it is clear where the interrupts are incorrectly reenabled.

Revision 1.101.16.20 / (download) - annotate - [select for diffs], Thu Oct 4 15:05:45 2007 UTC (16 years, 6 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.101.16.19: +4 -3 lines
Diff to previous 1.101.16.19 (colored) to branchpoint 1.101 (colored) to selected 1.8 (colored)

Require the HID only for normal devices. Other types can be used without
HID easily, e.g. Thermal Zones.

Revision 1.101.16.19 / (download) - annotate - [select for diffs], Wed Oct 3 01:01:27 2007 UTC (16 years, 6 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.101.16.18: +4 -3 lines
Diff to previous 1.101.16.18 (colored) to branchpoint 1.101 (colored) to selected 1.8 (colored)

Fix merge botch from acpica update.

Revision 1.101.16.18 / (download) - annotate - [select for diffs], Tue Oct 2 23:37:17 2007 UTC (16 years, 6 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.101.16.17: +45 -19 lines
Diff to previous 1.101.16.17 (colored) to branchpoint 1.101 (colored) to selected 1.8 (colored)

Update to ACPI-CA 20070320

Revision 1.101.16.17 / (download) - annotate - [select for diffs], Tue Oct 2 21:44:10 2007 UTC (16 years, 6 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.101.16.16: +4 -5 lines
Diff to previous 1.101.16.16 (colored) to branchpoint 1.101 (colored) to selected 1.8 (colored)

Rewrite the ACPI Embedded Controller handler to use pure event driven
operation. On suspend a special flag is set to force explicit polling
as AcpiLeaveSleep accesses the interrupt before GPE handling is
restored. The driver uses a kernel thread to handle GPE queries and
mutex/condvar for synchronisation.

Split the ACPI EC into two drivers, one that is attached directly by
acpi.c for the ECDT driven attachment and the normal acpiec for late
attachment. Share almost all code between this two drivers. If acpiecdt
is attached, acpiec is returning. This was discussed with cube@ and is
the best solution so far.

Revision 1.101.16.16 / (download) - annotate - [select for diffs], Sun Sep 30 17:24:09 2007 UTC (16 years, 6 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.101.16.15: +17 -4 lines
Diff to previous 1.101.16.15 (colored) to branchpoint 1.101 (colored) to selected 1.8 (colored)

Change ACPI and IOAPIC initialisation to better deal with early
interrupts.

(a) Split the ACPI subsystem initialisation into the hardware init and
ACPI enabling on the one side and the event and SCI setup on the other
side. Process the ACPI interrupt tables in between. Strictly speaking is
this a violation of the ACPI specs as the switch to APIC mode requires
evaluation of an ACPI object and that could depend on the SCI. In
practise, the SCI never worked at this point and before the removal of
the defered setup it wasn't even created.

(b) Always write entries to all IOAPIC pins. The first 16 pins are
threated as ISA IRQs by default, the others like PCI IRQs. This avoids
inconsistencies based on incomplete BIOS setups. This resulted in early
ACPI SCI notifications to be lost, effectively breaking the Embedded
Controller on cold start on many notebooks.

Don't special case the IOAPIC setup between ioapic_attach and
ioapic_enable, always setup the correct redirections. Depend on
splhigh/disable_intr to stop interrupts and don't keep them masked in the
IOAPIC. This avoids unacknowleged edge interrupts and fixing the problem
of broken PS/2 keyboard when hitting keys during early boot.

Revision 1.101.16.15 / (download) - annotate - [select for diffs], Tue Sep 25 13:14:17 2007 UTC (16 years, 6 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.101.16.14: +5 -6 lines
Diff to previous 1.101.16.14 (colored) to branchpoint 1.101 (colored) to selected 1.8 (colored)

Make this code a bit easier to follow by duplicating the LeaveSleepState
and merging the !S1 cases of the ifs. Reduce the spl protection to
exactly what it is intended to protect, the race against the power
button.

Revision 1.101.16.14 / (download) - annotate - [select for diffs], Tue Sep 25 02:11:06 2007 UTC (16 years, 6 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.101.16.13: +8 -5 lines
Diff to previous 1.101.16.13 (colored) to branchpoint 1.101 (colored) to selected 1.8 (colored)

Call AcpiLeaveSleepState before running power handlers again, and wrap
acpi_md_sleep call with splhigh.

Revision 1.101.16.13 / (download) - annotate - [select for diffs], Mon Sep 24 19:31:11 2007 UTC (16 years, 6 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.101.16.12: +3 -7 lines
Diff to previous 1.101.16.12 (colored) to branchpoint 1.101 (colored) to selected 1.8 (colored)

Revert previous and expect power handler to do the right thing as
requested by jmcneill@.

Revision 1.101.16.12 / (download) - annotate - [select for diffs], Mon Sep 24 16:37:27 2007 UTC (16 years, 6 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.101.16.11: +7 -3 lines
Diff to previous 1.101.16.11 (colored) to branchpoint 1.101 (colored) to selected 1.8 (colored)

Until the various drivers are fixed to handle interrupts correctly,
restore original splhigh during state transitions.

Revision 1.101.16.11 / (download) - annotate - [select for diffs], Mon Sep 10 00:25:17 2007 UTC (16 years, 7 months ago) by christos
Branch: jmcneill-pm
Changes since 1.101.16.10: +3 -3 lines
Diff to previous 1.101.16.10 (colored) to branchpoint 1.101 (colored) to selected 1.8 (colored)

Move the call to AcpiLeaveSleepState after pnp_global_transition as suggested
by jmcneill. This makes my vgn-t250p resume properly.

Revision 1.101.16.10 / (download) - annotate - [select for diffs], Sun Sep 9 20:50:16 2007 UTC (16 years, 7 months ago) by christos
Branch: jmcneill-pm
Changes since 1.101.16.9: +15 -9 lines
Diff to previous 1.101.16.9 (colored) to branchpoint 1.101 (colored) to selected 1.8 (colored)

Re-order some calls that got mixed up on the previous merge. This makes
my VGN-T250P boot again.
XXX: Might need to be reverted when we merge the new acpica.

Revision 1.101.16.9 / (download) - annotate - [select for diffs], Fri Sep 7 14:36:13 2007 UTC (16 years, 7 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.101.16.8: +3 -5 lines
Diff to previous 1.101.16.8 (colored) to branchpoint 1.101 (colored) to selected 1.8 (colored)

Expect acpi_md_sleep to protect itself against interrupts.
This avoids DIAGNOSTIC assertions from within pmap.

Revision 1.76.2.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:33:18 2007 UTC (16 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.76.2.3: +26 -8 lines
Diff to previous 1.76.2.3 (colored) to branchpoint 1.76 (colored) to selected 1.8 (colored)

sync with head.

Revision 1.101.16.8 / (download) - annotate - [select for diffs], Thu Aug 23 09:25:29 2007 UTC (16 years, 7 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.101.16.7: +26 -4 lines
Diff to previous 1.101.16.7 (colored) to branchpoint 1.101 (colored) to selected 1.8 (colored)

From FreeBSD: explicitly load regions first to allow acpi_md_callback
to actually query the routing tables.

Drop the argment to acpi_md_callback, passing around singletons is not
that helpful.

Revision 1.101.4.1 / (download) - annotate - [select for diffs], Mon Aug 20 18:36:39 2007 UTC (16 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.101: +26 -8 lines
Diff to previous 1.101 (colored) next main 1.102 (colored) to selected 1.8 (colored)

Sync with HEAD.

Revision 1.101.12.1 / (download) - annotate - [select for diffs], Wed Aug 15 13:48:13 2007 UTC (16 years, 8 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.101: +26 -8 lines
Diff to previous 1.101 (colored) next main 1.102 (colored) to selected 1.8 (colored)

Sync with HEAD.

Revision 1.101.16.7 / (download) - annotate - [select for diffs], Tue Aug 14 22:25:07 2007 UTC (16 years, 8 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.101.16.6: +9 -8 lines
Diff to previous 1.101.16.6 (colored) to branchpoint 1.101 (colored) to selected 1.8 (colored)

Call the MD ACPI callback before enabling ACPI. This allows
the MD layer to scan the MADT table and in turn allows the
retiring of defering the interrupt setup.

Revision 1.101.16.6 / (download) - annotate - [select for diffs], Sun Aug 12 04:23:29 2007 UTC (16 years, 8 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.101.16.5: +12 -14 lines
Diff to previous 1.101.16.5 (colored) to branchpoint 1.101 (colored) to selected 1.8 (colored)

* Run suspend power handlers earlier in suspend path, and later on
  resume path.
* Give ACPI device drivers a chance to attach to nodes of type
  ACPI_TYPE_DEVICE where there is not a valid HID, and silence autoconf
  'not configured' messages for ACPI_TYPE_DEVICE nodes where a driver
  does not attach and no valid HID is present.

Revision 1.101.16.5 / (download) - annotate - [select for diffs], Thu Aug 9 02:37:07 2007 UTC (16 years, 8 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.101.16.4: +26 -8 lines
Diff to previous 1.101.16.4 (colored) to branchpoint 1.101 (colored) to selected 1.8 (colored)

Sync with HEAD.

Revision 1.102 / (download) - annotate - [select for diffs], Wed Aug 8 08:52:31 2007 UTC (16 years, 8 months ago) by cube
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking2-base1, vmlocking-nbase, vmlocking-base, nick-csl-alignment-base5, matt-armv6-prevmlocking, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: vmlocking2, mjf-devfs, matt-armv6
Changes since 1.101: +26 -8 lines
Diff to previous 1.101 (colored) to selected 1.8 (colored)

Print ACPI device name in a way that Jared McNeill and I find prettier.
I like it better because I get to see the name of the device as it appears
in the DSDT, which sometimes makes sense and that way it's easier to locate
the relevant code when debugging.

E.g.:

PIC (PNP0000) [AT Interrupt Controller] at acpipcib0 not configured
DMAD (PNP0200) [AT DMA Controller] at acpipcib0 not configured
attimer0 at acpipcib0 (TMR, PNP0100): AT Timer
RTC0 (PNP0B00) [AT Real-Time Clock] at acpipcib0 not configured
pckbc0 at acpipcib0 (PS2K, PNP0303): kbd port
acpibat0 at acpi0 (BAT0, PNP0C0A-0): ACPI Battery (Control Method)

Revision 1.101.16.4 / (download) - annotate - [select for diffs], Sun Aug 5 19:27:52 2007 UTC (16 years, 8 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.101.16.3: +7 -2 lines
Diff to previous 1.101.16.3 (colored) to branchpoint 1.101 (colored) to selected 1.8 (colored)

Use pnp_generic_power

Revision 1.101.16.3 / (download) - annotate - [select for diffs], Sun Aug 5 16:49:27 2007 UTC (16 years, 8 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.101.16.2: +6 -4 lines
Diff to previous 1.101.16.2 (colored) to branchpoint 1.101 (colored) to selected 1.8 (colored)

Make sure that we clear fixed power button events on resume. ACPI 3.0 says
we should do this, presumably to work around buggy firmware. Fixes issues
on some machines where when waking with the power button, a power button
event is received by the kernel after resume and the machine will enter
S5 (poweroff) automatically. Fix confirmed by Jukka Salmi on current-users
on a Thinkpad X40.

Revision 1.101.16.2 / (download) - annotate - [select for diffs], Sat Aug 4 19:39:06 2007 UTC (16 years, 8 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.101.16.1: +3 -8 lines
Diff to previous 1.101.16.1 (colored) to branchpoint 1.101 (colored) to selected 1.8 (colored)

Don't run resume hooks on failure, and certainly don't run them twice.

Revision 1.101.16.1 / (download) - annotate - [select for diffs], Fri Aug 3 22:17:14 2007 UTC (16 years, 8 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.101: +14 -10 lines
Diff to previous 1.101 (colored) to selected 1.8 (colored)

Pull in power management changes from private branch.

Revision 1.99.2.1 / (download) - annotate - [select for diffs], Tue Feb 27 16:53:49 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-idlelwp
Changes since 1.99: +8 -5 lines
Diff to previous 1.99 (colored) next main 1.100 (colored) to selected 1.8 (colored)

- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.

Revision 1.76.2.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:09:57 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.76.2.2: +12 -8 lines
Diff to previous 1.76.2.2 (colored) to branchpoint 1.76 (colored) to selected 1.8 (colored)

sync with head.

Revision 1.101 / (download) - annotate - [select for diffs], Mon Feb 19 22:31:05 2007 UTC (17 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, nick-csl-alignment-base, mjf-ufs-trans-base, mjf-ufs-trans, matt-mips64-base, matt-mips64, hpcarm-cleanup, ad-audiomp-base, ad-audiomp
Branch point for: vmlocking, nick-csl-alignment, jmcneill-pm
Changes since 1.100: +5 -3 lines
Diff to previous 1.100 (colored) to selected 1.8 (colored)

Initialize acpi_interrupt_list_mtx in acpi_probe().

Revision 1.100 / (download) - annotate - [select for diffs], Sun Feb 18 23:39:20 2007 UTC (17 years, 2 months ago) by xtraeme
Branch: MAIN
Changes since 1.99: +5 -4 lines
Diff to previous 1.99 (colored) to selected 1.8 (colored)

Replace a simple_lock with a mutex, reviewed by ad@.

Revision 1.99 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:26 2007 UTC (17 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: post-newlock2-merge
Branch point for: yamt-idlelwp
Changes since 1.98: +6 -5 lines
Diff to previous 1.98 (colored) to selected 1.8 (colored)

Merge newlock2 to head.

Revision 1.94.4.3 / (download) - annotate - [select for diffs], Tue Feb 6 13:11:47 2007 UTC (17 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.94.4.2: +6 -5 lines
Diff to previous 1.94.4.2 (colored) to branchpoint 1.94 (colored) next main 1.95 (colored) to selected 1.8 (colored)

Quieten noisy boot messages.

Revision 1.94.4.2 / (download) - annotate - [select for diffs], Fri Jan 12 00:57:34 2007 UTC (17 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.94.4.1: +17 -2 lines
Diff to previous 1.94.4.1 (colored) to branchpoint 1.94 (colored) to selected 1.8 (colored)

Sync with head.

Revision 1.76.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:47:54 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.76.2.1: +83 -234 lines
Diff to previous 1.76.2.1 (colored) to branchpoint 1.76 (colored) to selected 1.8 (colored)

sync with head.

Revision 1.94.6.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:16:57 2006 UTC (17 years, 4 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.94.6.1: +23 -8 lines
Diff to previous 1.94.6.1 (colored) to branchpoint 1.94 (colored) next main 1.95 (colored) to selected 1.8 (colored)

sync with head.

Revision 1.98 / (download) - annotate - [select for diffs], Sun Nov 26 12:30:05 2006 UTC (17 years, 4 months ago) by cube
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.97: +17 -2 lines
Diff to previous 1.97 (colored) to selected 1.8 (colored)

Introduce acpi_check() to inform the caller whether the acpi driver is
still enabled, as it could have been disabled through USERCONF.

Use it in amd64 and i386 mainbus code and skip all ACPI processing in case
it is disabled.

Revision 1.94.4.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:34:03 2006 UTC (17 years, 5 months ago) by ad
Branch: newlock2
Changes since 1.94: +4 -4 lines
Diff to previous 1.94 (colored) to selected 1.8 (colored)

Sync with head.

Revision 1.97 / (download) - annotate - [select for diffs], Thu Nov 16 01:32:47 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.96: +8 -8 lines
Diff to previous 1.96 (colored) to selected 1.8 (colored)

__unused removal on arguments; approved by core.

Revision 1.94.6.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:05:31 2006 UTC (17 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.94: +8 -8 lines
Diff to previous 1.94 (colored) to selected 1.8 (colored)

sync with head

Revision 1.96 / (download) - annotate - [select for diffs], Thu Oct 12 01:30:54 2006 UTC (17 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.95: +8 -7 lines
Diff to previous 1.95 (colored) to selected 1.8 (colored)

- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.95 / (download) - annotate - [select for diffs], Tue Sep 26 01:50:43 2006 UTC (17 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.94: +2 -3 lines
Diff to previous 1.94 (colored) to selected 1.8 (colored)

When resuming from S1 standby, don't try to release a mutex that we hadn't
previously acquired.

Revision 1.81.2.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:49:28 2006 UTC (17 years, 7 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.81: +140 -259 lines
Diff to previous 1.81 (colored) next main 1.82 (colored) to selected 1.8 (colored)

sync with head

Revision 1.85.2.2 / (download) - annotate - [select for diffs], Fri Aug 11 15:43:59 2006 UTC (17 years, 8 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.85.2.1: +63 -231 lines
Diff to previous 1.85.2.1 (colored) to branchpoint 1.85 (colored) next main 1.86 (colored) to selected 1.8 (colored)

sync with head

Revision 1.94 / (download) - annotate - [select for diffs], Sun Aug 6 15:46:54 2006 UTC (17 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, rpaulo-netinet-merge-pcb-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.93: +6 -5 lines
Diff to previous 1.93 (colored) to selected 1.8 (colored)

PR/34116: Takuya SHIOZAKI: acpiapm(4) misuses config(9)
acpiapm(4) always matches the first node of AML, which is unrelated
with acpiapm. Separate acpi(4)'s children into two individual interface
attributes.

Revision 1.85.10.1 / (download) - annotate - [select for diffs], Thu Jul 13 17:49:17 2006 UTC (17 years, 9 months ago) by gdamore
Branch: gdamore-uart
Changes since 1.85: +100 -221 lines
Diff to previous 1.85 (colored) next main 1.86 (colored) to selected 1.8 (colored)

Merge from HEAD.

Revision 1.93 / (download) - annotate - [select for diffs], Tue Jul 4 00:30:23 2006 UTC (17 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.92: +38 -211 lines
Diff to previous 1.92 (colored) to selected 1.8 (colored)

Apply fvdl's acpi pci interrupt configuration code.
- MPACPI is no more.
- MPACPI_SCANPCI -> ACPI_SCANPCI

Revision 1.92 / (download) - annotate - [select for diffs], Sat Jul 1 21:44:13 2006 UTC (17 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.91: +23 -19 lines
Diff to previous 1.91 (colored) to selected 1.8 (colored)

- use aprint instead of printf.
- centralize all the suspend/resume glue in one function.

Revision 1.85.2.1 / (download) - annotate - [select for diffs], Mon Jun 26 12:50:37 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.85: +52 -4 lines
Diff to previous 1.85 (colored) to selected 1.8 (colored)

sync with head.

Revision 1.91 / (download) - annotate - [select for diffs], Sat Jun 24 23:40:50 2006 UTC (17 years, 9 months ago) by tsarna
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6
Changes since 1.90: +3 -3 lines
Diff to previous 1.90 (colored) to selected 1.8 (colored)

fix typo: idicator -> indicator

Revision 1.90 / (download) - annotate - [select for diffs], Wed Jun 21 17:47:23 2006 UTC (17 years, 9 months ago) by drochner
Branch: MAIN
Changes since 1.89: +4 -2 lines
Diff to previous 1.89 (colored) to selected 1.8 (colored)

First cut on an implementation of an ACPI power management counter
backend for timecounters.
Due to known bugs in some chipsets, always read until we get 3 successive
samples which are monotonic, as FreeBSD does in its "safe" variant.
This can be refined later, either by chipset quirks or by a test (as
FreeBSD does).

Revision 1.76.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:02:31 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.76: +158 -59 lines
Diff to previous 1.76 (colored) to selected 1.8 (colored)

sync with head.

Revision 1.89 / (download) - annotate - [select for diffs], Tue Jun 20 12:31:19 2006 UTC (17 years, 10 months ago) by cube
Branch: MAIN
Changes since 1.88: +3 -2 lines
Diff to previous 1.88 (colored) to selected 1.8 (colored)

When we consume a resource definition from _PRS, advance to the next one.
Otherwise, if there are two resources definitions of the same type in _CRS,
the same one from _PRS will be used twice, which of course leads to errors.

Note:  _PRS is Possible Resources Set
       _CRS is Current Resources Set

XXX acpi_allocate_resources is still very weak, e.g. it completely ignores
    StartDependentFn entries which are kind of a switch.  But at least it's
    slightly better that way.

Tested by jmcneill@.

Revision 1.88 / (download) - annotate - [select for diffs], Mon Jun 19 10:18:08 2006 UTC (17 years, 10 months ago) by jmcneill
Branch: MAIN
CVS Tags: chap-midi-nbase, chap-midi-base
Changes since 1.87: +2 -6 lines
Diff to previous 1.87 (colored) to selected 1.8 (colored)

acpi_pci_fixup didn't work as well as I had hoped; don't bother for now.

Revision 1.85.8.1 / (download) - annotate - [select for diffs], Mon Jun 19 03:58:12 2006 UTC (17 years, 10 months ago) by chap
Branch: chap-midi
Changes since 1.85: +48 -3 lines
Diff to previous 1.85 (colored) next main 1.86 (colored) to selected 1.8 (colored)

Sync with head.

Revision 1.87 / (download) - annotate - [select for diffs], Mon Jun 19 02:32:12 2006 UTC (17 years, 10 months ago) by jmcneill
Branch: MAIN
Changes since 1.86: +6 -2 lines
Diff to previous 1.86 (colored) to selected 1.8 (colored)

Fixup PCI interrupt routing using ACPI tables on return from S3 sleep.
Requires options PCI_INTR_FIXUP in your kernel.

Revision 1.86 / (download) - annotate - [select for diffs], Thu Jun 15 18:05:08 2006 UTC (17 years, 10 months ago) by jmcneill
Branch: MAIN
Changes since 1.85: +48 -3 lines
Diff to previous 1.85 (colored) to selected 1.8 (colored)

EXPERIMENTAL: Add sysctl for triggering ACPI sleep. This interface is not
    stable, so do not depend on it!

    To trigger sleep:
        # sysctl -w machdep.sleep_state=<n>
    Where <n> is typically 1 (standby), 3 (suspend), or 4 (hibernate).

Revision 1.81.4.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:38:46 2006 UTC (17 years, 11 months ago) by simonb
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.81: +39 -38 lines
Diff to previous 1.81 (colored) next main 1.82 (colored) to selected 1.8 (colored)

Sync with head.

Revision 1.79.2.3 / (download) - annotate - [select for diffs], Wed Mar 1 09:28:11 2006 UTC (18 years, 1 month ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.79.2.2: +38 -37 lines
Diff to previous 1.79.2.2 (colored) next main 1.80 (colored) to selected 1.8 (colored)

sync with head.

Revision 1.85 / (download) - annotate - [select for diffs], Sun Feb 26 18:46:04 2006 UTC (18 years, 1 month ago) by cube
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, simonb-timecounters-base, peter-altq-base, peter-altq, gdamore-uart-base, elad-kernelauth-base, elad-kernelauth
Branch point for: yamt-pdpolicy, gdamore-uart, chap-midi
Changes since 1.84: +9 -9 lines
Diff to previous 1.84 (colored) to selected 1.8 (colored)

Resource lists end with END_TAG, not END_DEPENDENT.  Makes the
PCI_INTR_FIXUP code "work" again.

Most of the time it will produce a warning about a misaligned resource
pointer, but it's harmless, and the warning was removed in the next version
of the ACPI-CA code.

Revision 1.84 / (download) - annotate - [select for diffs], Thu Feb 23 17:38:03 2006 UTC (18 years, 1 month ago) by wiz
Branch: MAIN
Changes since 1.83: +4 -4 lines
Diff to previous 1.83 (colored) to selected 1.8 (colored)

Fix typo in aprint argument.

Revision 1.83 / (download) - annotate - [select for diffs], Mon Feb 20 12:17:49 2006 UTC (18 years, 1 month ago) by kochi
Branch: MAIN
Changes since 1.82: +31 -30 lines
Diff to previous 1.82 (colored) to selected 1.8 (colored)

use aprint_*

Revision 1.79.2.2 / (download) - annotate - [select for diffs], Sat Feb 18 15:39:02 2006 UTC (18 years, 2 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.79.2.1: +3 -3 lines
Diff to previous 1.79.2.1 (colored) to selected 1.8 (colored)

sync with head.

Revision 1.82 / (download) - annotate - [select for diffs], Thu Feb 16 09:23:23 2006 UTC (18 years, 2 months ago) by kochi
Branch: MAIN
Changes since 1.81: +3 -3 lines
Diff to previous 1.81 (colored) to selected 1.8 (colored)

define acpi_dbgr as static

Revision 1.79.2.1 / (download) - annotate - [select for diffs], Wed Feb 1 14:51:48 2006 UTC (18 years, 2 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.79: +23 -30 lines
Diff to previous 1.79 (colored) to selected 1.8 (colored)

sync with head.

Revision 1.81 / (download) - annotate - [select for diffs], Tue Jan 31 09:30:06 2006 UTC (18 years, 2 months ago) by kochi
Branch: MAIN
Branch point for: simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.80: +5 -12 lines
Diff to previous 1.80 (colored) to selected 1.8 (colored)

remove ACPI_DISABLE_ON_POWEROFF option, which was there just for
compatibility of our old driver behavior, which is not necessary.

Revision 1.80 / (download) - annotate - [select for diffs], Sun Jan 29 03:12:22 2006 UTC (18 years, 2 months ago) by kochi
Branch: MAIN
Changes since 1.79: +20 -20 lines
Diff to previous 1.79 (colored) to selected 1.8 (colored)

adapt for ACPI-CA 20060113

Revision 1.79 / (download) - annotate - [select for diffs], Tue Dec 13 23:27:31 2005 UTC (18 years, 4 months ago) by cube
Branch: MAIN
Branch point for: yamt-uio_vmspace
Changes since 1.78: +32 -6 lines
Diff to previous 1.78 (colored) to selected 1.8 (colored)

machdep.acpi_root -> hw.acpi.root, as discussed on source-changes.

Revision 1.78 / (download) - annotate - [select for diffs], Mon Dec 12 15:04:50 2005 UTC (18 years, 4 months ago) by cube
Branch: MAIN
Changes since 1.77: +35 -2 lines
Diff to previous 1.77 (colored) to selected 1.8 (colored)

Move the (one liner) logic of AcpiOsGetRootPointer() out of acpica/Osd to
acpi.c and take the opportunity to create a sysctl node that contains the
address of the main ACPI table.

The name of the node, "machdep.acpi_root", is questionable but matches the
one FreeBSD has, which will make it easier to port their acpidump(8)
program.

Revision 1.77 / (download) - annotate - [select for diffs], Sun Dec 11 12:21:01 2005 UTC (18 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.76: +2 -2 lines
Diff to previous 1.76 (colored) to selected 1.8 (colored)

merge ktrace-lwp.

Revision 1.36.2.6 / (download) - annotate - [select for diffs], Thu Nov 10 14:03:11 2005 UTC (18 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.36.2.5: +53 -20 lines
Diff to previous 1.36.2.5 (colored) next main 1.37 (colored) to selected 1.8 (colored)

Sync with HEAD. Here we go again...

Revision 1.76 / (download) - annotate - [select for diffs], Thu Jun 30 22:28:03 2005 UTC (18 years, 9 months ago) by sekiya
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Branch point for: yamt-lazymbuf
Changes since 1.75: +3 -3 lines
Diff to previous 1.75 (colored) to selected 1.8 (colored)

Fix up interrupt line when line == 0.  Discussed with christos@

Revision 1.75 / (download) - annotate - [select for diffs], Thu Jun 30 19:31:53 2005 UTC (18 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.74: +4 -4 lines
Diff to previous 1.74 (colored) to selected 1.8 (colored)

There is an error when we return -1, not < 1.

Revision 1.74 / (download) - annotate - [select for diffs], Tue Jun 21 11:49:10 2005 UTC (18 years, 10 months ago) by sekiya
Branch: MAIN
Changes since 1.73: +6 -2 lines
Diff to previous 1.73 (colored) to selected 1.8 (colored)

Likewise, ACPI_PCI_FIXUP has been replaced by PCI_INTR_FIXUP, and we should
notify when an old kernel config is used.  Recommended by wiz@

Revision 1.73 / (download) - annotate - [select for diffs], Tue Jun 21 08:19:25 2005 UTC (18 years, 10 months ago) by sekiya
Branch: MAIN
Changes since 1.72: +11 -10 lines
Diff to previous 1.72 (colored) to selected 1.8 (colored)

Rework the configuration scheme for PCI fixups:

* bus enumeration fixups are not PCIBIOS-specific, interrupt fixups are done
  by both PCIBIOS and ACPI.  The redundancy is very redundant.  Therefore,
  rename PCIBIOS_*_FIXUP to PCI_*_FIXUP, use PCI_INTR_FIXUP in place of
  ACPI_PCI_FIXUP, and change code refences to match.

* move the fixup defines from opt_pcibios.h to opt_pcifixup.h to reflect
  the above.

* fix up the PCI bus numbering in mainbus_attach(), right after we detect the
  configuration mode.  This probably renders the fixup in pcibios.c
  redundant -- but it should be harmless.

These changes make cardbus work in ACPI-only machines, when PCI_BUS_FIXUP
and PCI_INTR_FIXUP are defined.

Revision 1.72 / (download) - annotate - [select for diffs], Mon Jun 20 12:21:36 2005 UTC (18 years, 10 months ago) by sekiya
Branch: MAIN
Changes since 1.71: +3 -5 lines
Diff to previous 1.71 (colored) to selected 1.8 (colored)

Also fix up interrupt line if interrupt is zero, as well as 255.  Fixes
interrupt issues on two of my laptops that lack PCIBIOS.

Revision 1.71 / (download) - annotate - [select for diffs], Tue May 31 21:08:37 2005 UTC (18 years, 10 months ago) by drochner
Branch: MAIN
Changes since 1.70: +3 -3 lines
Diff to previous 1.70 (colored) to selected 1.8 (colored)

lots of cast-qual fallout

Revision 1.70 / (download) - annotate - [select for diffs], Sun May 29 20:56:02 2005 UTC (18 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.69: +7 -7 lines
Diff to previous 1.69 (colored) to selected 1.8 (colored)

Sprinkle const freely and delete unnecessary casts.

Revision 1.69 / (download) - annotate - [select for diffs], Mon May 2 14:53:59 2005 UTC (18 years, 11 months ago) by kochi
Branch: MAIN
Changes since 1.68: +32 -2 lines
Diff to previous 1.68 (colored) to selected 1.8 (colored)

Merge changes for ACPI-CA 20050408

Revision 1.67.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:28:44 2005 UTC (18 years, 11 months ago) by kent
Branch: kent-audio2
Changes since 1.67: +4 -4 lines
Diff to previous 1.67 (colored) next main 1.68 (colored) to selected 1.8 (colored)

sync with -current

Revision 1.67.6.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:33:55 2005 UTC (19 years, 1 month ago) by yamt
Branch: yamt-km
Changes since 1.67: +4 -4 lines
Diff to previous 1.67 (colored) next main 1.68 (colored) to selected 1.8 (colored)

sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.36.2.5 / (download) - annotate - [select for diffs], Fri Mar 4 16:40:54 2005 UTC (19 years, 1 month ago) by skrll
Branch: ktrace-lwp
Changes since 1.36.2.4: +4 -4 lines
Diff to previous 1.36.2.4 (colored) to selected 1.8 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.68 / (download) - annotate - [select for diffs], Sun Feb 27 00:26:58 2005 UTC (19 years, 1 month ago) by perry
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, kent-audio2-base
Changes since 1.67: +4 -4 lines
Diff to previous 1.67 (colored) to selected 1.8 (colored)

nuke trailing whitespace

Revision 1.36.2.4 / (download) - annotate - [select for diffs], Tue Sep 21 13:26:39 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.36.2.3: +2 -2 lines
Diff to previous 1.36.2.3 (colored) to selected 1.8 (colored)

Fix the sync with head I botched.

Revision 1.36.2.3 / (download) - annotate - [select for diffs], Sat Sep 18 14:44:42 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.36.2.2: +2 -2 lines
Diff to previous 1.36.2.2 (colored) to selected 1.8 (colored)

Sync with HEAD.

Revision 1.36.2.2 / (download) - annotate - [select for diffs], Fri Sep 3 12:45:17 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.36.2.1: +2 -7 lines
Diff to previous 1.36.2.1 (colored) to selected 1.8 (colored)

Sync with HEAD

Revision 1.67 / (download) - annotate - [select for diffs], Mon Aug 30 15:05:19 2004 UTC (19 years, 7 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.66: +2 -7 lines
Diff to previous 1.66 (colored) to selected 1.8 (colored)

Phase out the use of a string as first "attach args" member to control
which bustype should be attached with a specific call to config_found()
(from a "mainbus" or a bus bridge).
Do it for isa/eisa/mca and pci/agp for now. These buses all attach to
an mi interface attribute "isabus", "eisabus" etc., and the autoconf
framework now allows to specify an interface attribute on config_found()
and config_search(), which limits the search of matching config data
to these which attach to that specific attribute.
So we basically have to call config_found_ia(..., "foobus", ...) where
such a bus is attached.
As a consequence, where a "mainbus" or alike also attaches other
devices (eg CPUs) which do not attach to a specific attribute yet,
we need at least pass an attribute name (different from "foobus") so
that the foo bus is not found at these places. This made some minor
changes necessary which are not obviously related to the mentioned buses.

Revision 1.36.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:45:03 2004 UTC (19 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.36: +310 -296 lines
Diff to previous 1.36 (colored) to selected 1.8 (colored)

Sync with HEAD

Revision 1.59.2.3 / (download) - annotate - [select for diffs], Mon Jun 14 03:18:58 2004 UTC (19 years, 10 months ago) by jmc
Branch: netbsd-2-0
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2
Changes since 1.59.2.2: +4 -2 lines
Diff to previous 1.59.2.2 (colored) to branchpoint 1.59 (colored) next main 1.60 (colored) to selected 1.8 (colored)

Pullup patch (requested by kochi in ticket #463)

Add ACPI_DISABLE_ON_POWEROFF option. PR#24869

Revision 1.66 / (download) - annotate - [select for diffs], Mon Jun 7 15:33:17 2004 UTC (19 years, 10 months ago) by kochi
Branch: MAIN
Changes since 1.65: +4 -2 lines
Diff to previous 1.65 (colored) to selected 1.8 (colored)

Add ACPI_DISABLE_ON_POWEROFF option.
Note: the default behavior is changed.  Now we don't disable the ACPI
subsystem on power off (halt -p) by default.
'options ACPI_DISABLE_ON_POWEROFF' in a kernel config file makes the kernel
behave the way we used to be.

Revision 1.65 / (download) - annotate - [select for diffs], Wed May 26 17:15:17 2004 UTC (19 years, 10 months ago) by kochi
Branch: MAIN
Changes since 1.64: +46 -2 lines
Diff to previous 1.64 (colored) to selected 1.8 (colored)

ThermalZone improvement work by lha at stacken.kth.se, inspired from
FreeBSD thermal zone code.  Minor style fixes and bugfixes by me.

Revision 1.64 / (download) - annotate - [select for diffs], Sat May 1 12:03:48 2004 UTC (19 years, 11 months ago) by kochi
Branch: MAIN
Changes since 1.63: +25 -25 lines
Diff to previous 1.63 (colored) to selected 1.8 (colored)

specify static where appropriate.

Revision 1.59.2.2 / (download) - annotate - [select for diffs], Wed Apr 28 05:25:31 2004 UTC (19 years, 11 months ago) by jmc
Branch: netbsd-2-0
Changes since 1.59.2.1: +4 -2 lines
Diff to previous 1.59.2.1 (colored) to branchpoint 1.59 (colored) to selected 1.8 (colored)

Pullup rev 1.61 (requested by kochi in ticket #191)

Add ACPI ECDT (Embedded Controller Description Table) support.
This will enable usage of EC in early stage of ACPI initialization.

Revision 1.59.2.1 / (download) - annotate - [select for diffs], Wed Apr 28 05:24:38 2004 UTC (19 years, 11 months ago) by jmc
Branch: netbsd-2-0
Changes since 1.59: +6 -2 lines
Diff to previous 1.59 (colored) to selected 1.8 (colored)

Pullup rev 1.60 (requested by kochi in ticket #191)

Add ACPI ECDT (Embedded Controller Description Table) support.
This will enable usage of EC in early stage of ACPI initialization.

Revision 1.63 / (download) - annotate - [select for diffs], Sun Apr 11 06:48:25 2004 UTC (20 years ago) by kochi
Branch: MAIN
Changes since 1.62: +26 -26 lines
Diff to previous 1.62 (colored) to selected 1.8 (colored)

return (x) -> return x
use consitent variable name for ACPI_STATUS

Revision 1.62 / (download) - annotate - [select for diffs], Sat Apr 10 11:48:10 2004 UTC (20 years ago) by kochi
Branch: MAIN
Changes since 1.61: +9 -9 lines
Diff to previous 1.61 (colored) to selected 1.8 (colored)

whitespace nit

Revision 1.61 / (download) - annotate - [select for diffs], Wed Mar 31 11:19:39 2004 UTC (20 years ago) by tron
Branch: MAIN
Changes since 1.60: +4 -2 lines
Diff to previous 1.60 (colored) to selected 1.8 (colored)

Only call acpiec_early_attach() in "acpi.c" if the kernel is configured
to include the "acpiec" device.

Revision 1.60 / (download) - annotate - [select for diffs], Tue Mar 30 15:18:55 2004 UTC (20 years ago) by kochi
Branch: MAIN
Changes since 1.59: +6 -2 lines
Diff to previous 1.59 (colored) to selected 1.8 (colored)

Add ACPI ECDT (Embedded Controller Description Table) support.
This will enable usage of EC in early stage of ACPI initialization.

Revision 1.59 / (download) - annotate - [select for diffs], Tue Mar 23 19:00:03 2004 UTC (20 years ago) by drochner
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.58: +3 -3 lines
Diff to previous 1.58 (colored) to selected 1.8 (colored)

some int->ACPI_INTEGER to make it compile on amd64 again

Revision 1.58 / (download) - annotate - [select for diffs], Tue Mar 23 14:08:17 2004 UTC (20 years ago) by kochi
Branch: MAIN
Changes since 1.57: +5 -23 lines
Diff to previous 1.57 (colored) to selected 1.8 (colored)

Don't use ACPI CA internal functions

Revision 1.57 / (download) - annotate - [select for diffs], Mon Nov 3 18:51:31 2003 UTC (20 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.56: +7 -6 lines
Diff to previous 1.56 (colored) to selected 1.8 (colored)

Use pmatch() so that we can use patterns.

Revision 1.56 / (download) - annotate - [select for diffs], Mon Nov 3 18:07:10 2003 UTC (20 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.55: +37 -26 lines
Diff to previous 1.55 (colored) to selected 1.8 (colored)

More cleanup:
* Use ACPI_FAILURE() and ACPI_SUCCESS().
* Output exception strings in a few more places.

Revision 1.55 / (download) - annotate - [select for diffs], Mon Nov 3 17:24:22 2003 UTC (20 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.54: +14 -11 lines
Diff to previous 1.54 (colored) to selected 1.8 (colored)

Clean up some messages:
* Use AcpiFormatException() in a bunch of places.
* acpi_resource_parse() already prints an error, so don't do it in the callers.

Revision 1.54 / (download) - annotate - [select for diffs], Mon Nov 3 06:03:47 2003 UTC (20 years, 5 months ago) by kochi
Branch: MAIN
Changes since 1.53: +74 -46 lines
Diff to previous 1.53 (colored) to selected 1.8 (colored)

* now the size of ACPI_DEVICE_INFO is variable:
  it can now accomodate multiple _CIDs
  sizeof(ACPI_DEVICE_INFO) should not be used
* make ad_devinfo member in acpi_devnode a pointer
* implement acpi_match_hid() to simplify matching devices;
  _CIDs are also taken into account now as well as _HID

Revision 1.53 / (download) - annotate - [select for diffs], Sat Nov 1 20:58:33 2003 UTC (20 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.52: +3 -3 lines
Diff to previous 1.52 (colored) to selected 1.8 (colored)

One more spot for a structure change.

Revision 1.52 / (download) - annotate - [select for diffs], Sat Nov 1 19:24:42 2003 UTC (20 years, 5 months ago) by yamt
Branch: MAIN
Changes since 1.51: +7 -3 lines
Diff to previous 1.51 (colored) to selected 1.8 (colored)

make this compilable again with ACPI_DEBUG.

Revision 1.51 / (download) - annotate - [select for diffs], Sat Nov 1 08:03:24 2003 UTC (20 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.50: +2 -30 lines
Diff to previous 1.50 (colored) to selected 1.8 (colored)

Do not install address handlers before calling AcpiEnableSubsystem() -- this
is done by AcpiInitializeObjects() anyway.

Revision 1.50 / (download) - annotate - [select for diffs], Sat Nov 1 03:45:48 2003 UTC (20 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.49: +38 -2 lines
Diff to previous 1.49 (colored) to selected 1.8 (colored)

Update copyright.

Revision 1.49 / (download) - annotate - [select for diffs], Sat Nov 1 01:03:23 2003 UTC (20 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.48: +3 -4 lines
Diff to previous 1.48 (colored) to selected 1.8 (colored)

Move a declaration.

Revision 1.48 / (download) - annotate - [select for diffs], Fri Oct 31 20:54:18 2003 UTC (20 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.47: +22 -88 lines
Diff to previous 1.47 (colored) to selected 1.8 (colored)

Catch up with ABI changes in ACPI-CA.  Some additional changes to acpi_bat to
set the VALID bits correctly, so we don't report garbage for missing batteries.

Revision 1.47 / (download) - annotate - [select for diffs], Fri Oct 31 17:22:28 2003 UTC (20 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.46: +10 -9 lines
Diff to previous 1.46 (colored) to selected 1.8 (colored)

We were passing flags to AcpiEnableSubsystem() that aren't even used there.
Call AcpiInitializeObjects() to create global variables and run _INI methods.

Revision 1.46 / (download) - annotate - [select for diffs], Thu Oct 30 20:29:54 2003 UTC (20 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.45: +16 -29 lines
Diff to previous 1.45 (colored) to selected 1.8 (colored)

Use AcpiEvulateObjectTyped() to simplify some code.

Revision 1.45 / (download) - annotate - [select for diffs], Thu Oct 30 19:33:24 2003 UTC (20 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.44: +5 -3 lines
Diff to previous 1.44 (colored) to selected 1.8 (colored)

Check to see if we have valid status info before looking at it.

Revision 1.44 / (download) - annotate - [select for diffs], Thu Oct 30 18:15:35 2003 UTC (20 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.43: +3 -3 lines
Diff to previous 1.43 (colored) to selected 1.8 (colored)

Remove another extra AcpiGetObjectInfo().

Revision 1.43 / (download) - annotate - [select for diffs], Thu Oct 30 18:13:38 2003 UTC (20 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.42: +13 -8 lines
Diff to previous 1.42 (colored) to selected 1.8 (colored)

Minor tweaks:
* Only fetch the object info a second time if we activated the device.
* Do not attempt to activate a device with no HID.

Revision 1.42 / (download) - annotate - [select for diffs], Sun Aug 17 03:45:19 2003 UTC (20 years, 8 months ago) by kochi
Branch: MAIN
Changes since 1.41: +8 -3 lines
Diff to previous 1.41 (colored) to selected 1.8 (colored)

check return value of AcpiEnterSleepStatePrep() to catch
any failure

Revision 1.41 / (download) - annotate - [select for diffs], Sun Jul 6 05:24:18 2003 UTC (20 years, 9 months ago) by kochi
Branch: MAIN
Changes since 1.40: +14 -12 lines
Diff to previous 1.40 (colored) to selected 1.8 (colored)

make bootup messages prettier

Revision 1.40 / (download) - annotate - [select for diffs], Sun Jul 6 04:03:22 2003 UTC (20 years, 9 months ago) by kochi
Branch: MAIN
Changes since 1.39: +12 -18 lines
Diff to previous 1.39 (colored) to selected 1.8 (colored)

o cleanup usage of ACPI_ACTIVATE_DEV/ACPI_PCI_FIXUP
o delete usage of ENABLE_DEBUGGER

As ACPI_ACTIVATE_DEV/ACPI_PCI_FIXUP are defflag'ed in files.acpi,
these options don't have to have a value.

Revision 1.39 / (download) - annotate - [select for diffs], Thu Jul 3 14:37:34 2003 UTC (20 years, 9 months ago) by kochi
Branch: MAIN
Changes since 1.38: +4 -2 lines
Diff to previous 1.38 (colored) to selected 1.8 (colored)

Cleanup usage of ENABLE_DEBUGGER/ACPI_DEBUGGER/DDB.

By this change, ACPI debugger/disassembler are only
compiled when both DDB and ACPI_DEBUG options are
specified.  This change also reduces the kernel size
a little when ACPI_DEBUG is not specified.

Revision 1.38 / (download) - annotate - [select for diffs], Wed Jul 2 12:23:25 2003 UTC (20 years, 9 months ago) by kochi
Branch: MAIN
Changes since 1.37: +10 -19 lines
Diff to previous 1.37 (colored) to selected 1.8 (colored)

cleanup usage of ACPI_ALLOCATE_BUFFER/AcpiOsFree combination

Revision 1.37 / (download) - annotate - [select for diffs], Wed Jul 2 11:54:43 2003 UTC (20 years, 9 months ago) by kochi
Branch: MAIN
Changes since 1.36: +5 -2 lines
Diff to previous 1.36 (colored) to selected 1.8 (colored)

print ACPI CA version

Revision 1.36 / (download) - annotate - [select for diffs], Thu May 15 21:29:49 2003 UTC (20 years, 11 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.35: +6 -3 lines
Diff to previous 1.35 (colored) to selected 1.8 (colored)

Add quirk handling to ACPI. First quirk entry is "PTLTD " rev 0x06040000,
which gives problems with PCI bus finding; the object hierarchy doesn't
match the real world for some systems, most notably SuperMicro boards.
Linux has this one blacklisted as well.

Revision 1.35 / (download) - annotate - [select for diffs], Fri Apr 18 01:31:34 2003 UTC (21 years ago) by thorpej
Branch: MAIN
Changes since 1.34: +7 -5 lines
Diff to previous 1.34 (colored) to selected 1.8 (colored)

* Add a generic power management event API, defined in <sys/power.h>.
  Right now, only power switch state change events are supported.  This
  is a work-in-progress.
* Add support to sysmon for delivering power mangement events to userland.
  Add poll, kqueue, and read entry points to sysmon.
* Adapt ACPI to use the new generic <sys/power.h> event types.

This provides the kernel support for a forthcoming powerd(8) which can
do nice things like gracefully shut the system down when an ACPI power
button is pressed.

Revision 1.34 / (download) - annotate - [select for diffs], Thu Apr 17 01:22:21 2003 UTC (21 years ago) by thorpej
Branch: MAIN
Changes since 1.33: +71 -56 lines
Diff to previous 1.33 (colored) to selected 1.8 (colored)

* Don't do the ACPI_PCI_FIXUP unless it is explicitly enabled in
  the kernel config file.  That code makes a total mess of any
  system with multiple PCI busses.
* Rework the way buttons are handled; register them with sysmon,
  and let it take the appropriate action.  This lets us gracefully
  shut down when the power button is pressed.

Revision 1.33 / (download) - annotate - [select for diffs], Wed Mar 5 23:00:56 2003 UTC (21 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.32: +13 -11 lines
Diff to previous 1.32 (colored) to selected 1.8 (colored)

use M_ACPI where appropriate.

Revision 1.32 / (download) - annotate - [select for diffs], Fri Feb 14 11:05:39 2003 UTC (21 years, 2 months ago) by tshiozak
Branch: MAIN
Changes since 1.31: +91 -22 lines
Diff to previous 1.31 (colored) to selected 1.8 (colored)

- add acpi_acquire_global_lock()/acpi_release_global_lock()/
  acpi_is_global_locked() functions.
  AcpiGlobalLock() API should be used to acquire lock between BIOS and OS.
  This API cannot be used to lock between threads of the OS side,
  because this function immediately returns if the lock is already acquired
  by the OS.  c.f. AcpiEvAcquireGlobalLock()@evmisc.c

- make sure that acpiec driver uses above functions.

- use ACPI_ALLOCATE_BUFFER instead of twice calls of AcpiEvaluateObject(),
  in acpi_eval_string()/acpi_eval_struct().
  Twice AcpiEvaluateObject() calls may cause twice side effects
  to ACPI machine / hardware and this may be wrong in some cases.

Revision 1.4.4.13 / (download) - annotate - [select for diffs], Wed Jan 15 18:44:14 2003 UTC (21 years, 3 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.4.4.12: +5 -5 lines
Diff to previous 1.4.4.12 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored) to selected 1.8 (colored)

Sync with HEAD.

Revision 1.31 / (download) - annotate - [select for diffs], Mon Jan 13 01:24:11 2003 UTC (21 years, 3 months ago) by fvdl
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored) to selected 1.8 (colored)

Use 'int' in the SCI interrupt message, not 'irq'. The number in question
is a global ACPI interrupt number.

Revision 1.30 / (download) - annotate - [select for diffs], Thu Jan 9 10:35:29 2003 UTC (21 years, 3 months ago) by jdolecek
Branch: MAIN
Changes since 1.29: +4 -4 lines
Diff to previous 1.29 (colored) to selected 1.8 (colored)

use AcpiUtGetTypeName() to print object type name in acpi_print()

Revision 1.4.4.12 / (download) - annotate - [select for diffs], Wed Jan 8 17:10:54 2003 UTC (21 years, 3 months ago) by thorpej
Branch: nathanw_sa
Changes since 1.4.4.11: +8 -2 lines
Diff to previous 1.4.4.11 (colored) to branchpoint 1.4 (colored) to selected 1.8 (colored)

Sync with HEAD.

Revision 1.29 / (download) - annotate - [select for diffs], Wed Jan 8 16:52:49 2003 UTC (21 years, 3 months ago) by fvdl
Branch: MAIN
Changes since 1.28: +8 -2 lines
Diff to previous 1.28 (colored) to selected 1.8 (colored)

Print some OEM version info for the R/XSDT. Can be used to help identify
buggy ACPI implementations.

Revision 1.4.4.11 / (download) - annotate - [select for diffs], Tue Jan 7 21:33:56 2003 UTC (21 years, 3 months ago) by thorpej
Branch: nathanw_sa
Changes since 1.4.4.10: +103 -46 lines
Diff to previous 1.4.4.10 (colored) to branchpoint 1.4 (colored) to selected 1.8 (colored)

Sync with HEAD.

Revision 1.28 / (download) - annotate - [select for diffs], Tue Jan 7 18:46:48 2003 UTC (21 years, 3 months ago) by fvdl
Branch: MAIN
Changes since 1.27: +29 -5 lines
Diff to previous 1.27 (colored) to selected 1.8 (colored)

* Add aux argument to functions called from apic_madt_walk
* Improve acpi interrupt fixup a bit
	* Source is an array, don't compare it to NULL, instead
	  look for an empty string to denote a link-device-less
	  entry.
	* For root PCI busses, try to use the _BBN method to get
	  numbering right.
* Add acpi_md_callback() function for MD handling after the init,
  but before * at acpi probing.

Revision 1.27 / (download) - annotate - [select for diffs], Sun Jan 5 22:33:21 2003 UTC (21 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.26: +48 -23 lines
Diff to previous 1.26 (colored) to selected 1.8 (colored)

add ACPIVERBOSE; while I am there, fix the eval_string function so it does
not leak.

Revision 1.26 / (download) - annotate - [select for diffs], Sun Jan 5 06:19:05 2003 UTC (21 years, 3 months ago) by jmcneill
Branch: MAIN
Changes since 1.25: +4 -3 lines
Diff to previous 1.25 (colored) to selected 1.8 (colored)

Print something a bit more informative when displaying 'not configured'
messages for objects without a valid HID.

Revision 1.25 / (download) - annotate - [select for diffs], Sat Jan 4 05:32:15 2003 UTC (21 years, 3 months ago) by jmcneill
Branch: MAIN
Changes since 1.24: +33 -26 lines
Diff to previous 1.24 (colored) to selected 1.8 (colored)

Attempt to attach drivers to devices without a valid HID so long as they're
not of type ACPI_TYPE_DEVICE.

Revision 1.4.4.10 / (download) - annotate - [select for diffs], Fri Jan 3 17:01:10 2003 UTC (21 years, 3 months ago) by thorpej
Branch: nathanw_sa
Changes since 1.4.4.9: +25 -10 lines
Diff to previous 1.4.4.9 (colored) to branchpoint 1.4 (colored) to selected 1.8 (colored)

Sync with HEAD.

Revision 1.24 / (download) - annotate - [select for diffs], Wed Jan 1 00:10:16 2003 UTC (21 years, 3 months ago) by thorpej
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.23: +8 -8 lines
Diff to previous 1.23 (colored) to selected 1.8 (colored)

Use aprint_normal() in cfprint routines.

Revision 1.23 / (download) - annotate - [select for diffs], Tue Dec 31 11:23:34 2002 UTC (21 years, 3 months ago) by augustss
Branch: MAIN
Changes since 1.22: +10 -6 lines
Diff to previous 1.22 (colored) to selected 1.8 (colored)

Fix some messages and some formatting.

Revision 1.22 / (download) - annotate - [select for diffs], Tue Dec 31 05:59:53 2002 UTC (21 years, 3 months ago) by jmcneill
Branch: MAIN
Changes since 1.21: +10 -4 lines
Diff to previous 1.21 (colored) to selected 1.8 (colored)

If we have a valid UID but it's a null string, display '<null>' rather than
nothing at all.

Revision 1.21 / (download) - annotate - [select for diffs], Mon Dec 30 09:33:25 2002 UTC (21 years, 3 months ago) by matt
Branch: MAIN
Changes since 1.20: +7 -2 lines
Diff to previous 1.20 (colored) to selected 1.8 (colored)

Print out the pnpname that was matched.

Revision 1.20 / (download) - annotate - [select for diffs], Mon Dec 30 01:56:44 2002 UTC (21 years, 3 months ago) by jmcneill
Branch: MAIN
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored) to selected 1.8 (colored)

Allow ACPI_EXTRA_DEBUG without ACPI_DEBUG

Revision 1.4.4.9 / (download) - annotate - [select for diffs], Sun Dec 29 20:45:30 2002 UTC (21 years, 3 months ago) by thorpej
Branch: nathanw_sa
Changes since 1.4.4.8: +4 -2 lines
Diff to previous 1.4.4.8 (colored) to branchpoint 1.4 (colored) to selected 1.8 (colored)

Sync with HEAD.

Revision 1.19 / (download) - annotate - [select for diffs], Sat Dec 28 06:14:07 2002 UTC (21 years, 3 months ago) by jmcneill
Branch: MAIN
Changes since 1.18: +4 -2 lines
Diff to previous 1.18 (colored) to selected 1.8 (colored)

Pass ISA chipset information through to ACPI devices, to allow for porting
of pnpbios(4) glue to acpi(4).

Revision 1.4.4.8 / (download) - annotate - [select for diffs], Fri Oct 18 02:41:29 2002 UTC (21 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.4.4.7: +4 -5 lines
Diff to previous 1.4.4.7 (colored) to branchpoint 1.4 (colored) to selected 1.8 (colored)

Catch up to -current.

Revision 1.5.2.6 / (download) - annotate - [select for diffs], Thu Oct 10 18:38:23 2002 UTC (21 years, 6 months ago) by jdolecek
Branch: kqueue
Changes since 1.5.2.5: +4 -5 lines
Diff to previous 1.5.2.5 (colored) next main 1.6 (colored) to selected 1.8 (colored)

sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.18 / (download) - annotate - [select for diffs], Wed Oct 2 16:33:35 2002 UTC (21 years, 6 months ago) by thorpej
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored) to selected 1.8 (colored)

Add trailing ; to CFATTACH_DECL.

Revision 1.17 / (download) - annotate - [select for diffs], Mon Sep 30 20:41:16 2002 UTC (21 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.16: +4 -5 lines
Diff to previous 1.16 (colored) to selected 1.8 (colored)

Use CFATTACH_DECL().

Revision 1.16 / (download) - annotate - [select for diffs], Fri Sep 27 20:37:32 2002 UTC (21 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored) to selected 1.8 (colored)

Declare all cfattach structures const.

Revision 1.5.2.5 / (download) - annotate - [select for diffs], Fri Sep 6 08:43:48 2002 UTC (21 years, 7 months ago) by jdolecek
Branch: kqueue
Changes since 1.5.2.4: +425 -6 lines
Diff to previous 1.5.2.4 (colored) to selected 1.8 (colored)

sync kqueue branch with HEAD

Revision 1.7.2.4 / (download) - annotate - [select for diffs], Thu Aug 29 05:22:20 2002 UTC (21 years, 7 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.7.2.3: +341 -3 lines
Diff to previous 1.7.2.3 (colored) to branchpoint 1.7 (colored) next main 1.8 (colored)

catch up with -current.

Revision 1.4.4.7 / (download) - annotate - [select for diffs], Thu Aug 1 02:44:35 2002 UTC (21 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.4.4.6: +343 -3 lines
Diff to previous 1.4.4.6 (colored) to branchpoint 1.4 (colored) to selected 1.8 (colored)

Catch up to -current.

Revision 1.15 / (download) - annotate - [select for diffs], Mon Jul 29 03:26:20 2002 UTC (21 years, 8 months ago) by augustss
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.14: +54 -4 lines
Diff to previous 1.14 (colored) to selected 1.8 (colored)

Add code to activate devices that are no active.

Revision 1.14 / (download) - annotate - [select for diffs], Mon Jul 29 03:10:16 2002 UTC (21 years, 8 months ago) by augustss
Branch: MAIN
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored) to selected 1.8 (colored)

Only be very verbose with ACPI_EXTRA_DEBUG set.

Revision 1.13 / (download) - annotate - [select for diffs], Mon Jul 29 03:06:56 2002 UTC (21 years, 8 months ago) by augustss
Branch: MAIN
Changes since 1.12: +290 -2 lines
Diff to previous 1.12 (colored) to selected 1.8 (colored)

Add code to perform PCI interrupt routing fixup.

Revision 1.7.2.3 / (download) - annotate - [select for diffs], Sat Jul 20 11:35:06 2002 UTC (21 years, 9 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.7.2.2: +4 -2 lines
Diff to previous 1.7.2.2 (colored) to branchpoint 1.7 (colored) to selected 1.8 (colored)

catch up with -current.

Revision 1.12 / (download) - annotate - [select for diffs], Thu Jul 18 12:05:11 2002 UTC (21 years, 9 months ago) by kanaoka
Branch: MAIN
Changes since 1.11: +4 -2 lines
Diff to previous 1.11 (colored) to selected 1.8 (colored)

 - Disable Interrput before execute AcpiEnterSleepState().
 - Add acpi_md_OsDisableInterrupt() for this.

Revision 1.7.2.2 / (download) - annotate - [select for diffs], Mon Jul 15 10:35:11 2002 UTC (21 years, 9 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.7.2.1: +78 -2 lines
Diff to previous 1.7.2.1 (colored) to branchpoint 1.7 (colored) to selected 1.8 (colored)

catch up with -current.

Revision 1.5.2.4 / (download) - annotate - [select for diffs], Sun Jun 23 17:45:02 2002 UTC (21 years, 9 months ago) by jdolecek
Branch: kqueue
Changes since 1.5.2.3: +49 -9 lines
Diff to previous 1.5.2.3 (colored) to selected 1.8 (colored)

catch up with -current on kqueue branch

Revision 1.7.2.1 / (download) - annotate - [select for diffs], Thu Jun 20 16:31:24 2002 UTC (21 years, 10 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.7: +12 -8 lines
Diff to previous 1.7 (colored) to selected 1.8 (colored)

catch up with -current.

Revision 1.4.4.6 / (download) - annotate - [select for diffs], Thu Jun 20 03:43:25 2002 UTC (21 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.4.4.5: +88 -8 lines
Diff to previous 1.4.4.5 (colored) to branchpoint 1.4 (colored) to selected 1.8 (colored)

Catch up to -current.

Revision 1.11 / (download) - annotate - [select for diffs], Tue Jun 18 10:26:15 2002 UTC (21 years, 10 months ago) by drochner
Branch: MAIN
Changes since 1.10: +3 -3 lines
Diff to previous 1.10 (colored) to selected 1.8 (colored)

make it compile with ACPI_DEBUG

Revision 1.10 / (download) - annotate - [select for diffs], Tue Jun 18 08:09:21 2002 UTC (21 years, 10 months ago) by tshiozak
Branch: MAIN
Changes since 1.9: +78 -2 lines
Diff to previous 1.9 (colored) to selected 1.8 (colored)

add MI part of ACPI sleep state transition code.
However, we have no interface to use it, and we also need device driver
support. (e.g. D2/D3 support for PCI)

Revision 1.9 / (download) - annotate - [select for diffs], Mon Jun 17 08:18:51 2002 UTC (21 years, 10 months ago) by kanaoka
Branch: MAIN
Changes since 1.8: +8 -5 lines
Diff to previous 1.8 (colored)

 - Show SCI interrupt information.
 - Remove ACPI_STA_DEV_SHOW from device check in acpi_build_tree().

Revision 1.8 / (download) - annotate - [selected], Sat Jun 15 18:03:41 2002 UTC (21 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.7: +6 -5 lines
Diff to previous 1.7 (colored)

Update for acpica-unix-20020612.  From Takayoshi Kochi.

Revision 1.4.4.5 / (download) - annotate - [select for diffs], Mon Apr 1 07:45:06 2002 UTC (22 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.4.4.4: +45 -6 lines
Diff to previous 1.4.4.4 (colored) to branchpoint 1.4 (colored) to selected 1.8 (colored)

Catch up to -current.
(CVS: It's not just a program. It's an adventure!)

Revision 1.7 / (download) - annotate - [select for diffs], Sun Mar 24 03:32:14 2002 UTC (22 years ago) by sommerfeld
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6
Branch point for: gehenna-devsw
Changes since 1.6: +45 -6 lines
Diff to previous 1.6 (colored) to selected 1.8 (colored)

Add acpi_eval_struct, to evaluate a complex data structure.

#if 0-out a half-fixed acpi_eval_string() and #if 0 the only call to it.
(Previous code referenced an uninitialized local variable and couldn't
have possibly worked).

Revision 1.4.4.4 / (download) - annotate - [select for diffs], Thu Feb 28 04:13:12 2002 UTC (22 years, 1 month ago) by nathanw
Branch: nathanw_sa
Changes since 1.4.4.3: +3 -4 lines
Diff to previous 1.4.4.3 (colored) to branchpoint 1.4 (colored) to selected 1.8 (colored)

Catch up to -current.

Revision 1.5.2.3 / (download) - annotate - [select for diffs], Mon Feb 11 20:09:38 2002 UTC (22 years, 2 months ago) by jdolecek
Branch: kqueue
Changes since 1.5.2.2: +3 -4 lines
Diff to previous 1.5.2.2 (colored) to selected 1.8 (colored)

Sync w/ -current.

Revision 1.6 / (download) - annotate - [select for diffs], Sat Jan 12 16:43:53 2002 UTC (22 years, 3 months ago) by tsutsui
Branch: MAIN
CVS Tags: newlock-base, newlock, ifpoll-base, eeh-devprop-base, eeh-devprop
Changes since 1.5: +3 -4 lines
Diff to previous 1.5 (colored) to selected 1.8 (colored)

Call malloc(9) with M_ZERO flag instead of memset() after malloc().

Revision 1.5.2.2 / (download) - annotate - [select for diffs], Thu Jan 10 19:52:51 2002 UTC (22 years, 3 months ago) by thorpej
Branch: kqueue
Changes since 1.5.2.1: +673 -0 lines
Diff to previous 1.5.2.1 (colored) to selected 1.8 (colored)

Sync kqueue branch with -current.

Revision 1.4.4.3 / (download) - annotate - [select for diffs], Wed Nov 14 19:13:43 2001 UTC (22 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.4.4.2: +4 -1 lines
Diff to previous 1.4.4.2 (colored) to branchpoint 1.4 (colored) to selected 1.8 (colored)

Catch up to -current.

Revision 1.5.2.1, Tue Nov 13 13:01:57 2001 UTC (22 years, 5 months ago) by thorpej
Branch: kqueue
Changes since 1.5: +0 -673 lines
FILE REMOVED

file acpi.c was added on branch kqueue on 2002-01-10 19:52:51 +0000

Revision 1.5 / (download) - annotate - [select for diffs], Tue Nov 13 13:01:57 2001 UTC (22 years, 5 months ago) by lukem
Branch: MAIN
Branch point for: kqueue
Changes since 1.4: +4 -1 lines
Diff to previous 1.4 (colored) to selected 1.8 (colored)

add RCSID

Revision 1.4.4.2 / (download) - annotate - [select for diffs], Mon Oct 8 21:18:05 2001 UTC (22 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.4.4.1: +670 -0 lines
Diff to previous 1.4.4.1 (colored) to branchpoint 1.4 (colored) to selected 1.8 (colored)

Catch up to -current.

Revision 1.4.2.2 / (download) - annotate - [select for diffs], Mon Oct 1 12:44:14 2001 UTC (22 years, 6 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.4.2.1: +670 -0 lines
Diff to previous 1.4.2.1 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored) to selected 1.8 (colored)

Catch up with -current.

Revision 1.4.4.1, Sat Sep 29 18:13:48 2001 UTC (22 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.4: +0 -670 lines
FILE REMOVED

file acpi.c was added on branch nathanw_sa on 2001-10-08 21:18:05 +0000

Revision 1.4.2.1, Sat Sep 29 18:13:48 2001 UTC (22 years, 6 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.4: +0 -670 lines
FILE REMOVED

file acpi.c was added on branch thorpej-devvp on 2001-10-01 12:44:14 +0000

Revision 1.4 / (download) - annotate - [select for diffs], Sat Sep 29 18:13:48 2001 UTC (22 years, 6 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2
Branch point for: thorpej-devvp, nathanw_sa
Changes since 1.3: +52 -3 lines
Diff to previous 1.3 (colored) to selected 1.8 (colored)

- Add an acpi_evaluate_string() to evaluate string objects.
- In acpi_print(), try to evaluate the _STR object, and print
  it if the device is not configured.
- Make this compile without ACPI_DEBUG, from Masanori Kanaoka.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Sep 29 05:39:14 2001 UTC (22 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.2: +1 -27 lines
Diff to previous 1.2 (colored) to selected 1.8 (colored)

Don't install a single system notify handler.

Revision 1.2 / (download) - annotate - [select for diffs], Sat Sep 29 05:34:00 2001 UTC (22 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.1: +31 -1 lines
Diff to previous 1.1 (colored) to selected 1.8 (colored)

Add code to parse ACPI bus resources.

Revision 1.1 / (download) - annotate - [select for diffs], Fri Sep 28 02:09:22 2001 UTC (22 years, 6 months ago) by thorpej
Branch: MAIN
Diff to selected 1.8 (colored)

Add some basic ACPI probing framework.  This is far from complete,
it is merely a work in progress.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>