The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.86.4.1 / (download) - annotate - [select for diffs], Sun Jul 30 12:01:53 2023 UTC (7 months, 4 weeks ago) by martin
Branch: netbsd-10
CVS Tags: netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1
Changes since 1.86: +331 -140 lines
Diff to previous 1.86 (colored) next main 1.87 (colored) to selected 1.51.4.3 (colored)

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

	sys/dev/acpi/acpi_ec.c: revision 1.102
	sys/dev/acpi/acpi_ec.c: revision 1.103
	sys/dev/acpi/acpi_ec.c: revision 1.104
	sys/dev/acpi/acpi_ec.c: revision 1.105
	sys/dev/acpi/acpi_ec.c: revision 1.106
	sys/dev/acpi/acpi_ec.c: revision 1.107
	sys/dev/acpi/acpi_ec.c: revision 1.108
	sys/dev/acpi/acpi_ec.c: revision 1.90
	sys/dev/acpi/acpi_ec.c: revision 1.91
	sys/dev/acpi/acpi_ec.c: revision 1.92
	sys/dev/acpi/acpi_ec.c: revision 1.93
	sys/dev/acpi/acpi_ec.c: revision 1.94
	sys/dev/acpi/files.acpi: revision 1.128
	sys/dev/acpi/acpi_ec.c: revision 1.95
	sys/dev/acpi/acpi_ec.c: revision 1.96
	sys/dev/acpi/acpi_ec.c: revision 1.97
	sys/arch/amd64/conf/ALL: revision 1.179
	sys/dev/acpi/acpi_ec.c: revision 1.98
	sys/dev/acpi/acpi_ec.c: revision 1.99
	sys/dev/acpi/acpi_ec.c: revision 1.87
	sys/dev/acpi/acpi_ec.c: revision 1.88
	sys/dev/acpi/acpi_ec.c: revision 1.89
	sys/arch/i386/conf/ALL: revision 1.511
	sys/dev/acpi/acpi_ec.c: revision 1.100
	sys/dev/acpi/acpi_ec.c: revision 1.101

acpiec(4): Record device_t self.

Not used yet, to be used soon for device_printf and to allow making
some of the internal functions a little more type-safe later.
acpiec(4): New ACPIEC_DEBUG option.

Value is bit mask of debug messages to enable.

Enable in x86/ALL kernels.

No functional change intended when the option is off.

acpiec(4): Clarify lock order and sprinkle lock assertions.
No functional change intended.

acpiec(4): Sprinkle comments.
Note where this code is abusing cv_wait and needs a loop to handle
spurious wakeups.
No functional change intended.

acpiec(4): Assert state is free when we start a transaction.
No functional change intended.

acpiec(4): Set sc_got_sci only when a transaction is over.

Before, when the acpiec thread noticed an SCI had been requested and
entered acpiec_gpe_state_machine to send the query command, it would
see the SCI is still requested -- because it had yet to acknowledge
it by setting the query command! -- and think the EC was asking for a
_second_ SCI.

So once the first SCI transaction was over, it would start a second
one, even though the EC hadn't asked for another -- and this would
wedge on some ECs.

Now, acpiec_gpe_state_machine waits to see what state we transition
to before taking the SCI bit to mean we need to notify the acpiec
thread to handle another query.

That way, when the acpiec thread enters acpiec_gpe_state_machine with
EC_STATE_QUERY, it can send the query command first, with the side
effect of clearing the SCI bit in subsequent reads of the status
register, and it won't think another SCI has been requested until it
returns to EC_STATE_FREE and sees the SCI bit set again in the status
register.

Possibly relevant PRs:
PR kern/53135
PR kern/52763
PR kern/57162

acpiec(4): Fix cv_wait loop around sc->sc_got_sci.

That is, make it actually loop as required, so it gracefully handles
spurious wakeups instead of barging into invalid states.

acpiec(4): Fix interrupt wait loop in acpiec_gpe_query thread.

acpiec(4): Fix cv_timedwait abuse in acpiec_read/write.

acpiec(4): Don't touch sc->sc_state outside sc->sc_mtx.

acpiec(4): Merge returns in acpiec_read/write.
No functional change intended.

acpiec(4): Factor wait logic out.
No functional change intended.

acpiec(4): Pass softc, not device_t, to acpiec_gpe_state_machine.
Simpler, type-safer.
No functional change intended.

acpiec(4): Pass softc, not device_t, to acpiec_callout.
Simpler.
No functional change intended.

acpiec(4): Pass softc, not device_t, to acpiec_gpe_handler.
Simpler.
No functional change intended.

acpiec(4): Pass softc, not device_t, to acpiec_lock/unlock.
Simpler, type-safer.
No functional change intended.

acpiec(4): Pass softc, not device_t, to acpiec_read/write.
Simpler, type-safer.
No functional change intended.

acpiec(4): Pass softc, not device_t, to acpiec_gpe_query thread.
Simpler.
No functional change intended.

acpiec(4): Pass softc, not device_t, to acpiec_space_handler.
Better to keep the device_t isolated to public interfaces.  Simpler
internally this way.
No functional change intended.

acpiec(4): Factor out if (state == FREE) cv_signal(sc_cv).

In principle this could have a functional change, but at worst, it is
to signal more wakeups than needed, which should always be safe.
acpiec(4): Take a lock around acpiec_cold updates.

Otherwise we race with readers -- probably harmlessly, but let's
avoid the appearance of problems.
XXX Maybe acpiec_suspend and acpiec_shutdown should interrupt
transactions and force them to fail promptly?
XXX This looks bad because acpiec_cold is global and sc->sc_mtx
doesn't look like it's global, but we expect to have only one
acpiec(4) device anyway from what I understand.  Maybe we should move
acpiec_cold into the softc?

acpiec(4): One more debug message about read/write polling timeout.

Revision 1.108 / (download) - annotate - [select for diffs], Tue Jul 18 10:17:12 2023 UTC (8 months, 1 week ago) by riastradh
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, HEAD
Changes since 1.107: +3 -2 lines
Diff to previous 1.107 (colored) to selected 1.51.4.3 (colored)

acpiec(4): One more debug message about read/write polling timeout.

Revision 1.107 / (download) - annotate - [select for diffs], Tue Jul 18 10:17:02 2023 UTC (8 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.106: +24 -2 lines
Diff to previous 1.106 (colored) to selected 1.51.4.3 (colored)

acpiec(4): Take a lock around acpiec_cold updates.

Otherwise we race with readers -- probably harmlessly, but let's
avoid the appearance of problems.

XXX Maybe acpiec_suspend and acpiec_shutdown should interrupt
transactions and force them to fail promptly?

XXX This looks bad because acpiec_cold is global and sc->sc_mtx
doesn't look like it's global, but we expect to have only one
acpiec(4) device anyway from what I understand.  Maybe we should move
acpiec_cold into the softc?

Revision 1.106 / (download) - annotate - [select for diffs], Tue Jul 18 10:10:49 2023 UTC (8 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.105: +7 -8 lines
Diff to previous 1.105 (colored) to selected 1.51.4.3 (colored)

acpiec(4): Factor out if (state == FREE) cv_signal(sc_cv).

In principle this could have a functional change, but at worst, it is
to signal more wakeups than needed, which should always be safe.

Revision 1.105 / (download) - annotate - [select for diffs], Tue Jul 18 10:06:55 2023 UTC (8 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.104: +12 -9 lines
Diff to previous 1.104 (colored) to selected 1.51.4.3 (colored)

acpiec(4): Pass softc, not device_t, to acpiec_space_handler.

Better to keep the device_t isolated to public interfaces.  Simpler
internally this way.

No functional change intended.

Revision 1.104 / (download) - annotate - [select for diffs], Tue Jul 18 10:06:44 2023 UTC (8 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.103: +5 -6 lines
Diff to previous 1.103 (colored) to selected 1.51.4.3 (colored)

acpiec(4): Pass softc, not device_t, to acpiec_gpe_query thread.

Simpler.

No functional change intended.

Revision 1.103 / (download) - annotate - [select for diffs], Tue Jul 18 10:06:33 2023 UTC (8 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.102: +11 -12 lines
Diff to previous 1.102 (colored) to selected 1.51.4.3 (colored)

acpiec(4): Pass softc, not device_t, to acpiec_read/write.

Simpler, type-safer.

No functional change intended.

Revision 1.102 / (download) - annotate - [select for diffs], Tue Jul 18 10:06:22 2023 UTC (8 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.101: +12 -14 lines
Diff to previous 1.101 (colored) to selected 1.51.4.3 (colored)

acpiec(4): Pass softc, not device_t, to acpiec_lock/unlock.

Simpler, type-safer.

No functional change intended.

Revision 1.101 / (download) - annotate - [select for diffs], Tue Jul 18 10:06:11 2023 UTC (8 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.100: +4 -5 lines
Diff to previous 1.100 (colored) to selected 1.51.4.3 (colored)

acpiec(4): Pass softc, not device_t, to acpiec_gpe_handler.

Simpler.

No functional change intended.

Revision 1.100 / (download) - annotate - [select for diffs], Tue Jul 18 10:06:00 2023 UTC (8 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.99: +4 -5 lines
Diff to previous 1.99 (colored) to selected 1.51.4.3 (colored)

acpiec(4): Pass softc, not device_t, to acpiec_callout.

Simpler.

No functional change intended.

Revision 1.99 / (download) - annotate - [select for diffs], Tue Jul 18 10:05:49 2023 UTC (8 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.98: +9 -11 lines
Diff to previous 1.98 (colored) to selected 1.51.4.3 (colored)

acpiec(4): Pass softc, not device_t, to acpiec_gpe_state_machine.

Simpler, type-safer.

No functional change intended.

Revision 1.98 / (download) - annotate - [select for diffs], Tue Jul 18 10:05:24 2023 UTC (8 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.97: +72 -88 lines
Diff to previous 1.97 (colored) to selected 1.51.4.3 (colored)

acpiec(4): Factor wait logic out.

No functional change intended.

Revision 1.97 / (download) - annotate - [select for diffs], Tue Jul 18 10:05:13 2023 UTC (8 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.96: +18 -18 lines
Diff to previous 1.96 (colored) to selected 1.51.4.3 (colored)

acpiec(4): Merge returns in acpiec_read/write.

No functional change intended.

Revision 1.96 / (download) - annotate - [select for diffs], Tue Jul 18 10:05:01 2023 UTC (8 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.95: +6 -6 lines
Diff to previous 1.95 (colored) to selected 1.51.4.3 (colored)

acpiec(4): Don't touch sc->sc_state outside sc->sc_mtx.

Revision 1.95 / (download) - annotate - [select for diffs], Tue Jul 18 10:04:50 2023 UTC (8 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.94: +32 -24 lines
Diff to previous 1.94 (colored) to selected 1.51.4.3 (colored)

acpiec(4): Fix cv_timedwait abuse in acpiec_read/write.

Revision 1.94 / (download) - annotate - [select for diffs], Tue Jul 18 10:04:40 2023 UTC (8 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.93: +12 -4 lines
Diff to previous 1.93 (colored) to selected 1.51.4.3 (colored)

acpiec(4): Fix interrupt wait loop in acpiec_gpe_query thread.

Revision 1.93 / (download) - annotate - [select for diffs], Tue Jul 18 10:04:28 2023 UTC (8 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.92: +4 -5 lines
Diff to previous 1.92 (colored) to selected 1.51.4.3 (colored)

acpiec(4): Fix cv_wait loop around sc->sc_got_sci.

That is, make it actually loop as required, so it gracefully handles
spurious wakeups instead of barging into invalid states.

Revision 1.92 / (download) - annotate - [select for diffs], Tue Jul 18 10:04:14 2023 UTC (8 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.91: +15 -10 lines
Diff to previous 1.91 (colored) to selected 1.51.4.3 (colored)

acpiec(4): Set sc_got_sci only when a transaction is over.

Before, when the acpiec thread noticed an SCI had been requested and
entered acpiec_gpe_state_machine to send the query command, it would
see the SCI is still requested -- because it had yet to acknowledge
it by setting the query command! -- and think the EC was asking for a
_second_ SCI.

So once the first SCI transaction was over, it would start a second
one, even though the EC hadn't asked for another -- and this would
wedge on some ECs.

Now, acpiec_gpe_state_machine waits to see what state we transition
to before taking the SCI bit to mean we need to notify the acpiec
thread to handle another query.

That way, when the acpiec thread enters acpiec_gpe_state_machine with
EC_STATE_QUERY, it can send the query command first, with the side
effect of clearing the SCI bit in subsequent reads of the status
register, and it won't think another SCI has been requested until it
returns to EC_STATE_FREE and sees the SCI bit set again in the status
register.

Possibly relevant PRs:

PR kern/53135
PR kern/52763
PR kern/57162

Revision 1.91 / (download) - annotate - [select for diffs], Tue Jul 18 10:03:59 2023 UTC (8 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.90: +8 -2 lines
Diff to previous 1.90 (colored) to selected 1.51.4.3 (colored)

acpiec(4): Assert state is free when we start a transaction.

No functional change intended.

Revision 1.90 / (download) - annotate - [select for diffs], Tue Jul 18 10:03:46 2023 UTC (8 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.89: +27 -10 lines
Diff to previous 1.89 (colored) to selected 1.51.4.3 (colored)

acpiec(4): Sprinkle comments.

Note where this code is abusing cv_wait and needs a loop to handle
spurious wakeups.

No functional change intended.

Revision 1.89 / (download) - annotate - [select for diffs], Tue Jul 18 10:03:35 2023 UTC (8 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.88: +17 -9 lines
Diff to previous 1.88 (colored) to selected 1.51.4.3 (colored)

acpiec(4): Clarify lock order and sprinkle lock assertions.

No functional change intended.

Revision 1.88 / (download) - annotate - [select for diffs], Tue Jul 18 10:02:25 2023 UTC (8 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.87: +150 -15 lines
Diff to previous 1.87 (colored) to selected 1.51.4.3 (colored)

acpiec(4): New ACPIEC_DEBUG option.

Value is bit mask of debug messages to enable.

Enable in x86/ALL kernels.

No functional change intended when the option is off.

Revision 1.87 / (download) - annotate - [select for diffs], Tue Jul 18 10:02:09 2023 UTC (8 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.86: +6 -2 lines
Diff to previous 1.86 (colored) to selected 1.51.4.3 (colored)

acpiec(4): Record device_t self.

Not used yet, to be used soon for device_printf and to allow making
some of the internal functions a little more type-safe later.

Revision 1.86 / (download) - annotate - [select for diffs], Fri Dec 31 17:22:25 2021 UTC (2 years, 2 months ago) by riastradh
Branch: MAIN
CVS Tags: netbsd-10-base, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Branch point for: netbsd-10
Changes since 1.85: +40 -2 lines
Diff to previous 1.85 (colored) to selected 1.51.4.3 (colored)

acpiec(4): Make sure to fully initialize an ACPI_INTEGER on read.

Write as essay about what this is supposed to do, as far as I can
tell from reading acpica and the commit history and the relevant PR.

Revision 1.84.2.1 / (download) - annotate - [select for diffs], Sat Apr 3 22:28:43 2021 UTC (2 years, 11 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.84: +6 -9 lines
Diff to previous 1.84 (colored) next main 1.85 (colored) to selected 1.51.4.3 (colored)

Sync with HEAD.

Revision 1.85 / (download) - annotate - [select for diffs], Fri Jan 29 15:49:55 2021 UTC (3 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.84: +6 -9 lines
Diff to previous 1.84 (colored) to selected 1.51.4.3 (colored)

Use acpi_compatible_match().

Revision 1.75.20.4 / (download) - annotate - [select for diffs], Sat Jun 20 15:52:50 2020 UTC (3 years, 9 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE
Changes since 1.75.20.3: +7 -2 lines
Diff to previous 1.75.20.3 (colored) to branchpoint 1.75 (colored) next main 1.76 (colored) to selected 1.51.4.3 (colored)

Pull up following revision(s) (requested by jdolecek in ticket #959):

	sys/dev/acpi/acpi_ec.c: revision 1.84

only install space handler and enable interrupt for EC if ACPI

claims the device is actually present, it's not enough when there
is entry for it in the ACPI tables
fixes interrupt storm triggered on Dell PowerEdge R220 by enabling
GPE interrupt on a non-enabled EC (for which _REG call later
fails), reported and fix tested by Dima Veselov:
http://mail-index.netbsd.org/netbsd-users/2020/03/02/msg024166.html

XXX pullup netbsd-9

Revision 1.84 / (download) - annotate - [select for diffs], Mon Jun 15 15:29:46 2020 UTC (3 years, 9 months ago) by jdolecek
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.83: +7 -2 lines
Diff to previous 1.83 (colored) to selected 1.51.4.3 (colored)

only install space handler and enable interrupt for EC if ACPI
claims the device is actually present, it's not enough when there
is entry for it in the ACPI tables

fixes interrupt storm triggered on Dell PowerEdge R220 by enabling
GPE interrupt on a non-enabled EC (for which _REG call later
fails), reported and fix tested by Dima Veselov:
http://mail-index.netbsd.org/netbsd-users/2020/03/02/msg024166.html

XXX pullup netbsd-9

Revision 1.83 / (download) - annotate - [select for diffs], Mon May 4 20:06:38 2020 UTC (3 years, 10 months ago) by jdolecek
Branch: MAIN
Changes since 1.82: +3 -3 lines
Diff to previous 1.82 (colored) to selected 1.51.4.3 (colored)

constify

Revision 1.75.20.3 / (download) - annotate - [select for diffs], Wed Apr 29 13:33:35 2020 UTC (3 years, 11 months ago) by martin
Branch: netbsd-9
Changes since 1.75.20.2: +9 -11 lines
Diff to previous 1.75.20.2 (colored) to branchpoint 1.75 (colored) to selected 1.51.4.3 (colored)

Pull up following revision(s) (requested by jmcneill in ticket #866):

	sys/dev/acpi/acpi_ec.c: revision 1.82

kern/55206: acpibat reporting broken by acpi_ec.c r1.81

Assume byte instead of qword alignment of the buffer passed to the EC
space handler.

Revision 1.82 / (download) - annotate - [select for diffs], Tue Apr 28 10:04:32 2020 UTC (3 years, 11 months ago) by jmcneill
Branch: MAIN
Changes since 1.81: +9 -11 lines
Diff to previous 1.81 (colored) to selected 1.51.4.3 (colored)

kern/55206: acpibat reporting broken by acpi_ec.c r1.81

Assume byte instead of qword alignment of the buffer passed to the EC
space handler.

Revision 1.75.14.2 / (download) - annotate - [select for diffs], Tue Apr 21 18:42:15 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.75.14.1: +27 -21 lines
Diff to previous 1.75.14.1 (colored) to branchpoint 1.75 (colored) next main 1.76 (colored) to selected 1.51.4.3 (colored)

Sync with HEAD

Revision 1.77.6.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.77: +29 -23 lines
Diff to previous 1.77 (colored) next main 1.78 (colored) to selected 1.51.4.3 (colored)

Sync with HEAD

Revision 1.75.14.1 / (download) - annotate - [select for diffs], Mon Apr 13 08:04:18 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.75: +39 -35 lines
Diff to previous 1.75 (colored) to selected 1.51.4.3 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.75.20.2 / (download) - annotate - [select for diffs], Sun Apr 12 08:48:56 2020 UTC (3 years, 11 months ago) by martin
Branch: netbsd-9
Changes since 1.75.20.1: +29 -23 lines
Diff to previous 1.75.20.1 (colored) to branchpoint 1.75 (colored) to selected 1.51.4.3 (colored)

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

	sys/dev/acpi/acpi_ec.c: revision 1.78
	sys/dev/acpi/acpi_ec.c: revision 1.79
	sys/dev/acpi/acpi_ec.c: revision 1.80
	sys/dev/acpi/acpi_ec.c: revision 1.81

Revert acpi_ec.c 1.77.
We will do this another way.
ok msaitoh

Revert acpi_ec.c 1.76.
We will do this another way, and separate KNF fixes from the critical
functional change.
ok msaitoh

KNF

Reject overly large widths, from mlelstv.
We are returning an ACPI_INTEGER (= uint64_t), so it doesn't make
sense to handle more than 64 bits.

Apparently there are some ACPIs out there that ask for unreasonably
large widths here.  Just reject those requests, rather than writing
past the caller's stack buffer.

Previously we attempted to fix this by copying byte by byte as large
as the caller asked, in order to avoid the undefined behaviour of
shifting past the size of ACPI_INTEGER, but that just turned a shift
(which might have been harmless on real machines) into a stack buffer
overflow (!).

ok msaitoh

Revision 1.81 / (download) - annotate - [select for diffs], Sun Apr 12 01:12:03 2020 UTC (3 years, 11 months ago) by riastradh
Branch: MAIN
CVS Tags: phil-wifi-20200421, bouyer-xenpvh-base2, bouyer-xenpvh-base1
Changes since 1.80: +4 -4 lines
Diff to previous 1.80 (colored) to selected 1.51.4.3 (colored)

Reject overly large widths, from mlelstv.

We are returning an ACPI_INTEGER (= uint64_t), so it doesn't make
sense to handle more than 64 bits.

Apparently there are some ACPIs out there that ask for unreasonably
large widths here.  Just reject those requests, rather than writing
past the caller's stack buffer.

Previously we attempted to fix this by copying byte by byte as large
as the caller asked, in order to avoid the undefined behaviour of
shifting past the size of ACPI_INTEGER, but that just turned a shift
(which might have been harmless on real machines) into a stack buffer
overflow (!).

ok msaitoh

Revision 1.80 / (download) - annotate - [select for diffs], Sun Apr 12 01:11:52 2020 UTC (3 years, 11 months ago) by riastradh
Branch: MAIN
Changes since 1.79: +21 -11 lines
Diff to previous 1.79 (colored) to selected 1.51.4.3 (colored)

KNF

Revision 1.79 / (download) - annotate - [select for diffs], Sun Apr 12 01:11:43 2020 UTC (3 years, 11 months ago) by riastradh
Branch: MAIN
Changes since 1.78: +35 -44 lines
Diff to previous 1.78 (colored) to selected 1.51.4.3 (colored)

Revert acpi_ec.c 1.76.

We will do this another way, and separate KNF fixes from the critical
functional change.

ok msaitoh

Revision 1.78 / (download) - annotate - [select for diffs], Sun Apr 12 01:11:23 2020 UTC (3 years, 11 months ago) by riastradh
Branch: MAIN
Changes since 1.77: +12 -7 lines
Diff to previous 1.77 (colored) to selected 1.51.4.3 (colored)

Revert acpi_ec.c 1.77.

We will do this another way.

ok msaitoh

Revision 1.75.6.1 / (download) - annotate - [select for diffs], Fri Aug 16 15:24:41 2019 UTC (4 years, 7 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE
Changes since 1.75: +39 -35 lines
Diff to previous 1.75 (colored) next main 1.76 (colored) to selected 1.51.4.3 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #1337):

	sys/dev/acpi/acpi_ec.c: revision 1.76
	sys/dev/acpi/acpi_ec.c: revision 1.77

- Fix a bug that acpiec_space_handler() doesn't access more than 64bit
  correctly. Found by kUBSan on Thinkpad X220. acpiec0 accessed 128bits from
  address 0xa0. The error message was:
	UBSan: Undefined Behavior in ../../../../dev/acpi/acpi_ec.c:672:32, shift exponent 64 is too large for 64-bit type 'long unsigned int'
- KNF.
- Make the case that width < 8 behave as the same as before. Pointed out by
  Joerg.
- Change "switch" to "if" for simplify.

Revision 1.75.20.1 / (download) - annotate - [select for diffs], Fri Aug 9 16:13:35 2019 UTC (4 years, 7 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Changes since 1.75: +39 -35 lines
Diff to previous 1.75 (colored) to selected 1.51.4.3 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #38):

	sys/dev/acpi/acpi_ec.c: revision 1.76
	sys/dev/acpi/acpi_ec.c: revision 1.77

- Fix a bug that acpiec_space_handler() doesn't access more than 64bit
  correctly. Found by kUBSan on Thinkpad X220. acpiec0 accessed 128bits from
  address 0xa0. The error message was:
	UBSan: Undefined Behavior in ../../../../dev/acpi/acpi_ec.c:672:32, shift exponent 64 is too large for 64-bit type 'long unsigned int'

- KNF.

- Make the case that width < 8 behave as the same as before. Pointed out by
  Joerg.

- Change "switch" to "if" for simplify.

Revision 1.77 / (download) - annotate - [select for diffs], Tue Aug 6 01:53:47 2019 UTC (4 years, 7 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, is-mlppp-base, is-mlppp, bouyer-xenpvh-base, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Branch point for: bouyer-xenpvh
Changes since 1.76: +7 -12 lines
Diff to previous 1.76 (colored) to selected 1.51.4.3 (colored)

- Make the case that width < 8 behave as the same as before. Pointed out by
  Joerg.
- Change "switch" to "if" for simplify.

Revision 1.76 / (download) - annotate - [select for diffs], Mon Aug 5 10:12:04 2019 UTC (4 years, 7 months ago) by msaitoh
Branch: MAIN
Changes since 1.75: +44 -35 lines
Diff to previous 1.75 (colored) to selected 1.51.4.3 (colored)

- Fix a bug that acpiec_space_handler() doesn't access more than 64bit
  correctly. Found by kUBSan on Thinkpad X220. acpiec0 accessed 128bits from
  address 0xa0. The error message was:

	UBSan: Undefined Behavior in ../../../../dev/acpi/acpi_ec.c:672:32, shift exponent 64 is too large for 64-bit type 'long unsigned int'

- KNF.
The error message was:

Revision 1.73.4.2 / (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.73.4.1: +2 -4 lines
Diff to previous 1.73.4.1 (colored) to branchpoint 1.73 (colored) next main 1.74 (colored) to selected 1.51.4.3 (colored)

Sync with HEAD

Revision 1.74.4.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:53:44 2017 UTC (6 years, 11 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.74: +2 -4 lines
Diff to previous 1.74 (colored) next main 1.75 (colored) to selected 1.51.4.3 (colored)

Sync with HEAD

Revision 1.74.2.1 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:27 2017 UTC (7 years ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.74: +2 -4 lines
Diff to previous 1.74 (colored) next main 1.75 (colored) to selected 1.51.4.3 (colored)

Sync with HEAD

Revision 1.75 / (download) - annotate - [select for diffs], Sat Mar 11 08:26:23 2017 UTC (7 years ago) by tsutsui
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20190609, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-9-base, netbsd-8-base, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncqfixes-base, jdolecek-ncqfixes, jdolecek-ncq-base, jdolecek-ncq, isaki-audio2-base, isaki-audio2, bouyer-socketcan-base1
Branch point for: phil-wifi, netbsd-9, netbsd-8
Changes since 1.74: +2 -4 lines
Diff to previous 1.74 (colored) to selected 1.51.4.3 (colored)

Remove extra newline during attach.

> acpiec0 at acpi0 (EC, PNP0C09)
> : io 0x62,0x66
> acpiec0: using global ACPI lock

acpi_resource_parse() with &acpi_resource_parse_ops_default prints
resouce info and newline.  Found and tested on ThinkPad X21.

Revision 1.73.4.1 / (download) - annotate - [select for diffs], Mon Apr 6 15:18:08 2015 UTC (8 years, 11 months ago) by skrll
Branch: nick-nhusb
Changes since 1.73: +4 -2 lines
Diff to previous 1.73 (colored) to selected 1.51.4.3 (colored)

Sync with HEAD

Revision 1.73.2.1 / (download) - annotate - [select for diffs], Thu Jan 8 11:07:43 2015 UTC (9 years, 2 months ago) by martin
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, 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
Changes since 1.73: +4 -2 lines
Diff to previous 1.73 (colored) next main 1.74 (colored) to selected 1.51.4.3 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #392):
	sys/dev/acpi/acpi_ec.c: revision 1.74
	sys/dev/isa/pcppi.c: revision 1.43
Add missing newlines...

Revision 1.74 / (download) - annotate - [select for diffs], Mon Dec 8 16:16:45 2014 UTC (9 years, 3 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, localcount-20160914, bouyer-socketcan-base
Branch point for: pgoyette-localcount, bouyer-socketcan
Changes since 1.73: +4 -2 lines
Diff to previous 1.73 (colored) to selected 1.51.4.3 (colored)

Add missing newlines...

Revision 1.71.8.1 / (download) - annotate - [select for diffs], Mon Sep 29 18:28:15 2014 UTC (9 years, 6 months ago) by msaitoh
Branch: netbsd-6
Changes since 1.71: +14 -10 lines
Diff to previous 1.71 (colored) next main 1.72 (colored) to selected 1.51.4.3 (colored)

Pull up following revision(s) (requested by riastradh in ticket #1122):
	sys/dev/acpi/acpi_ec.c: revision 1.73
Register a null power handler if acpiec fails to attach.
On one of my machines, there's no _GPE method, so
acpiec_parse_gpe_package fails, and the only function acpiec(4)
serves is to inhibit suspend/resume.
XXX We should really put the power handlers in the cfattach so that
it's not necessary to register a null power handler in every error
branch of every device's attach routine...

Revision 1.71.12.1 / (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.71: +14 -12 lines
Diff to previous 1.71 (colored) next main 1.72 (colored) to selected 1.51.4.3 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.72.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:54:50 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.72: +14 -10 lines
Diff to previous 1.72 (colored) next main 1.73 (colored) to selected 1.51.4.3 (colored)

Rebase.

Revision 1.73 / (download) - annotate - [select for diffs], Sun Jul 6 15:35:42 2014 UTC (9 years, 8 months ago) by riastradh
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, nick-nhusb-base, netbsd-7-base
Branch point for: nick-nhusb, netbsd-7
Changes since 1.72: +14 -10 lines
Diff to previous 1.72 (colored) to selected 1.51.4.3 (colored)

Register a null power handler if acpiec fails to attach.

On one of my machines, there's no _GPE method, so
acpiec_parse_gpe_package fails, and the only function acpiec(4)
serves is to inhibit suspend/resume.

XXX We should really put the power handlers in the cfattach so that
it's not necessary to register a null power handler in every error
branch of every device's attach routine...

Revision 1.71.2.1 / (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.71: +2 -4 lines
Diff to previous 1.71 (colored) next main 1.72 (colored) to selected 1.51.4.3 (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.71.16.1 / (download) - annotate - [select for diffs], Sun May 18 17:45:35 2014 UTC (9 years, 10 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.71: +2 -4 lines
Diff to previous 1.71 (colored) next main 1.72 (colored) to selected 1.51.4.3 (colored)

sync with head

Revision 1.72 / (download) - annotate - [select for diffs], Wed Oct 16 17:31:01 2013 UTC (10 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Changes since 1.71: +2 -4 lines
Diff to previous 1.71 (colored) to selected 1.51.4.3 (colored)

remove unused variable

Revision 1.71 / (download) - annotate - [select for diffs], Sun Jul 24 20:15:09 2011 UTC (12 years, 8 months ago) by jakllsch
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-6-base, 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, 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, khorben-n900, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, agc-symver-base, agc-symver
Branch point for: yamt-pagecache, tls-maxphys, rmind-smpnet, netbsd-6
Changes since 1.70: +3 -3 lines
Diff to previous 1.70 (colored) to selected 1.51.4.3 (colored)

Fix off-by-one in validation of EmbeddedControl OperationRegion handler.

Revision 1.68.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:07:41 2011 UTC (12 years, 9 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.68: +6 -6 lines
Diff to previous 1.68 (colored) next main 1.69 (colored) to selected 1.51.4.3 (colored)

Sync with HEAD.

Revision 1.62.2.3 / (download) - annotate - [select for diffs], Sat Mar 5 20:53:02 2011 UTC (13 years ago) by rmind
Branch: rmind-uvmplock
Changes since 1.62.2.2: +8 -8 lines
Diff to previous 1.62.2.2 (colored) to branchpoint 1.62 (colored) next main 1.63 (colored) to selected 1.51.4.3 (colored)

sync with head

Revision 1.68.4.2 / (download) - annotate - [select for diffs], Sat Mar 5 15:10:16 2011 UTC (13 years ago) by bouyer
Branch: bouyer-quota2
Changes since 1.68.4.1: +1 -1 lines
Diff to previous 1.68.4.1 (colored) to branchpoint 1.68 (colored) next main 1.69 (colored) to selected 1.51.4.3 (colored)

Sync with HEAD

Revision 1.70 / (download) - annotate - [select for diffs], Sat Feb 19 19:39:28 2011 UTC (13 years, 1 month ago) by jruoho
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase
Changes since 1.69: +3 -3 lines
Diff to previous 1.69 (colored) to selected 1.51.4.3 (colored)

After the GPE handler has finished, inform ACPICA that the interrupt has
been handled and it is safe to re-enable the GPE. Should fix all problems
introduced during the merge of ACPICA 20110211.

Revision 1.68.4.1 / (download) - annotate - [select for diffs], Thu Feb 17 13:58:44 2011 UTC (13 years, 1 month ago) by bouyer
Branch: bouyer-quota2
Changes since 1.68: +5 -5 lines
Diff to previous 1.68 (colored) to selected 1.51.4.3 (colored)

Sync with HEAD

Revision 1.69 / (download) - annotate - [select for diffs], Thu Feb 17 10:49:29 2011 UTC (13 years, 1 month ago) by jruoho
Branch: MAIN
CVS Tags: bouyer-quota2-base
Changes since 1.68: +5 -5 lines
Diff to previous 1.68 (colored) to selected 1.51.4.3 (colored)

ACPICA 20101209:

Completed the major overhaul of the GPE support code that was begun in July
2010. Major features include: removal of _PRW execution in ACPICA (host
executes _PRWs anyway), cleanup of "wake" GPE interfaces and processing,
changes to existing interfaces, simplification of GPE handler operation, and
a handful of new interfaces:

    AcpiUpdateAllGpes
    AcpiFinishGpe
    AcpiSetupGpeForWake
    AcpiSetGpeWakeMask

ACPICA 20100702:

Implemented several updates to the recently added GPE reference count
support. The model for "wake" GPEs is changing to give the host OS complete
control of these GPEs. Eventually, the ACPICA core will not execute any _PRW
methods, since the host already must execute them. Also, additional changes
were made to help ensure that the reference counts are kept in proper
synchronization with reality. Rafael J. Wysocki.

1) Ensure that GPEs are not enabled twice during initialization.
2) Ensure that GPE enable masks stay in sync with the reference count.
3) Do not inadvertently enable GPEs when writing GPE registers.
4) Remove the internal wake reference counter and add new AcpiGpeWakeup
interface. This interface will set or clear individual GPEs for wakeup.
5) Remove GpeType argument from AcpiEnable and AcpiDisable. These interfaces
are now used for "runtime" GPEs only.

Revision 1.68 / (download) - annotate - [select for diffs], Fri Jan 7 14:08:29 2011 UTC (13 years, 2 months ago) by cegger
Branch: MAIN
CVS Tags: jruoho-x86intr-base
Branch point for: jruoho-x86intr, bouyer-quota2
Changes since 1.67: +4 -4 lines
Diff to previous 1.67 (colored) to selected 1.51.4.3 (colored)

use aprint_error_dev

Revision 1.59.2.2 / (download) - annotate - [select for diffs], Tue Aug 17 06:45:59 2010 UTC (13 years, 7 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.59.2.1: +1 -16 lines
Diff to previous 1.59.2.1 (colored) to branchpoint 1.59 (colored) next main 1.60 (colored) to selected 1.51.4.3 (colored)

Sync with HEAD.

Revision 1.51.4.5 / (download) - annotate - [select for diffs], Wed Aug 11 22:53:15 2010 UTC (13 years, 7 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.51.4.4: +25 -33 lines
Diff to previous 1.51.4.4 (colored) to branchpoint 1.51 (colored) next main 1.52 (colored) to selected 1.51.4.3 (colored)

sync with head.

Revision 1.62.2.2 / (download) - annotate - [select for diffs], Sat Jul 3 01:19:34 2010 UTC (13 years, 8 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.62.2.1: +3 -18 lines
Diff to previous 1.62.2.1 (colored) to branchpoint 1.62 (colored) to selected 1.51.4.3 (colored)

sync with head

Revision 1.67 / (download) - annotate - [select for diffs], Sun Jun 6 18:56:10 2010 UTC (13 years, 9 months ago) by jruoho
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, matt-mips64-premerge-20101231
Changes since 1.66: +2 -10 lines
Diff to previous 1.66 (colored) to selected 1.51.4.3 (colored)

We can no longer explicitly clear a GPE by calling AcpiClearGpe() in the
interrupt handler. However, all edge-triggered GPEs should already be
cleared before our GPE handler has a chance to run.

The reason can be found from the changes in the locking primitives of
ACPICA. All GPE operations now use a spin mutex on AcpiGbl_GpeLock, acquired
via AcpiOsAcquireLock(). This same lock is now acquired unconditionally in
the AcpiClearGpe() function. This causes a deadlock of the following form:

  ...

  AcpiEvGpeDetect() : acquire AcpiGbl_GpeLock;

 	  -> AcpiEvGpeDispatch();

		  -> acpiec_gpe_handler();

			  -> AcpiClearGpe() : acquire AcpiGbl_GpeLock;

			 	  -> panic.

Revision 1.66 / (download) - annotate - [select for diffs], Sun Jun 6 18:40:51 2010 UTC (13 years, 9 months ago) by jruoho
Branch: MAIN
Changes since 1.65: +9 -16 lines
Diff to previous 1.65 (colored) to selected 1.51.4.3 (colored)

ACPICA 20100331:

	Completed a major update for the GPE support in order to improve
	support for shared GPEs and to simplify both host OS and ACPICA
	code. Added a reference count mechanism to support shared GPEs that
	require multiple device drivers.  Several external interfaces have
	changed. One external interface has been removed. One new external
	interface was added. Most of the GPE external interfaces now use the
	GPE spinlock instead of the events mutex (and the Flags parameter
	for many GPE interfaces has been removed.) See the updated ACPICA
	Programmer Reference for details. Matthew Garrett, Bob Moore, Rafael
	Wysocki. ACPICA BZ 831.

	Changed:
	    AcpiEnableGpe, AcpiDisableGpe, AcpiClearGpe, AcpiGetGpeStatus
	Removed:
	    AcpiSetGpeType
	New:
	    AcpiSetGpe

Revision 1.62.2.1 / (download) - annotate - [select for diffs], Sun May 30 05:17:17 2010 UTC (13 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.62: +24 -17 lines
Diff to previous 1.62 (colored) to selected 1.51.4.3 (colored)

sync with head

Revision 1.59.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:43:05 2010 UTC (13 years, 11 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.59: +31 -25 lines
Diff to previous 1.59 (colored) to selected 1.51.4.3 (colored)

Sync with HEAD.

Revision 1.52.16.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.52: +5 -8 lines
Diff to previous 1.52 (colored) next main 1.53 (colored) to selected 1.51.4.3 (colored)

sync to netbsd-5

Revision 1.65 / (download) - annotate - [select for diffs], Wed Apr 14 19:27:28 2010 UTC (13 years, 11 months ago) by jruoho
Branch: MAIN
CVS Tags: uebayasi-xip-base1
Changes since 1.64: +12 -12 lines
Diff to previous 1.64 (colored) to selected 1.51.4.3 (colored)

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

	UINT8 -> uint8_t and UINT32 -> uint32_t.

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

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

Revision 1.63 / (download) - annotate - [select for diffs], Wed Mar 24 01:13:30 2010 UTC (14 years ago) by dyoung
Branch: MAIN
Changes since 1.62: +14 -7 lines
Diff to previous 1.62 (colored) to selected 1.51.4.3 (colored)

Do not use unitialized bus_space_tag_t's.  Use the tag(s) from the
attachment arguments.

Revision 1.51.4.4 / (download) - annotate - [select for diffs], Thu Mar 11 15:03:22 2010 UTC (14 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.51.4.3: +25 -33 lines
Diff to previous 1.51.4.3 (colored) to branchpoint 1.51 (colored)

sync with head

Revision 1.62 / (download) - annotate - [select for diffs], Fri Mar 5 14:00:16 2010 UTC (14 years ago) by jruoho
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9
Branch point for: rmind-uvmplock
Changes since 1.61: +4 -5 lines
Diff to previous 1.61 (colored) to selected 1.51.4.3 (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.61 / (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.60: +3 -3 lines
Diff to previous 1.60 (colored) to selected 1.51.4.3 (colored)

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

Revision 1.60 / (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.59: +6 -6 lines
Diff to previous 1.59 (colored) to selected 1.51.4.3 (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.59 / (download) - annotate - [select for diffs], Mon Jan 18 18:36:49 2010 UTC (14 years, 2 months ago) by jruoho
Branch: MAIN
CVS Tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Changes since 1.58: +8 -19 lines
Diff to previous 1.58 (colored) to selected 1.51.4.3 (colored)

Use acpi_eval_reference_handle() to simplify code. No functional change.

ok jmcneill@, pgoyette@

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

Expand PMF_FN_* macros.

Revision 1.57 / (download) - annotate - [select for diffs], Wed Sep 16 10:47:54 2009 UTC (14 years, 6 months ago) by mlelstv
Branch: MAIN
CVS Tags: matt-premerge-20091211, jym-xensuspend-nbase
Changes since 1.56: +13 -9 lines
Diff to previous 1.56 (colored) to selected 1.51.4.3 (colored)

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

Revision 1.52.12.2 / (download) - annotate - [select for diffs], Thu Jul 23 23:31:45 2009 UTC (14 years, 8 months ago) by jym
Branch: jym-xensuspend
Changes since 1.52.12.1: +14 -4 lines
Diff to previous 1.52.12.1 (colored) to branchpoint 1.52 (colored) next main 1.53 (colored) to selected 1.51.4.3 (colored)

Sync with HEAD.

Revision 1.51.4.3 / (download) - annotate - [selected], Sat Jul 18 14:52:59 2009 UTC (14 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.51.4.2: +14 -4 lines
Diff to previous 1.51.4.2 (colored) to branchpoint 1.51 (colored)

sync with head.

Revision 1.56 / (download) - annotate - [select for diffs], Mon Jul 6 00:54:00 2009 UTC (14 years, 8 months ago) by alc
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, jymxensuspend-base
Changes since 1.55: +14 -4 lines
Diff to previous 1.55 (colored) to selected 1.51.4.3 (colored)

Add a pmf(9) shutdown hook to acpiec(4) to use polling on shutdown.

This fixes DIAGNOSTIC's assertion failure:

cpu_switchto(): switching above IPL_SCHED

during ACPI shutdown.

OK'd by joerg@

Revision 1.51.4.2 / (download) - annotate - [select for diffs], Sat May 16 10:41:18 2009 UTC (14 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.51.4.1: +6 -6 lines
Diff to previous 1.51.4.1 (colored) to branchpoint 1.51 (colored) to selected 1.51.4.3 (colored)

sync with head

Revision 1.52.12.1 / (download) - annotate - [select for diffs], Wed May 13 17:19:10 2009 UTC (14 years, 10 months ago) by jym
Branch: jym-xensuspend
Changes since 1.52: +9 -12 lines
Diff to previous 1.52 (colored) to selected 1.51.4.3 (colored)

Sync with HEAD.

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

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

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

Revision 1.51.4.1 / (download) - annotate - [select for diffs], Mon May 4 08:12:33 2009 UTC (14 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.51: +7 -10 lines
Diff to previous 1.51 (colored) to selected 1.51.4.3 (colored)

sync with head.

Revision 1.52.8.2 / (download) - annotate - [select for diffs], Fri May 1 01:42:33 2009 UTC (14 years, 11 months ago) by snj
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.52.8.1: +4 -4 lines
Diff to previous 1.52.8.1 (colored) to branchpoint 1.52 (colored) next main 1.53 (colored) to selected 1.51.4.3 (colored)

Pull up following revision(s) (requested by jmcneill in ticket #535):
	sys/dev/acpi/acpi_ec.c: revision 1.54
Change a confusing attach message; if the embedded controller was attached
via ECDT, we would print:
  acpiec0 at acpi0 (EC, PHP0C09-0): ACPI Embedded Controller (disabled)
The embedded controller isn't actually disabled, but instead this driver
instance, so change the message to read:
  acpiec0 at acpi0 (EC, PHP0C09-0): using acpiecdt0

Revision 1.52.8.1 / (download) - annotate - [select for diffs], Fri May 1 01:38:16 2009 UTC (14 years, 11 months ago) by snj
Branch: netbsd-5
Changes since 1.52: +4 -7 lines
Diff to previous 1.52 (colored) to selected 1.51.4.3 (colored)

Pull up following revision(s) (requested by jmcneill in ticket #498):
	sys/dev/acpi/acpi_ec.c: revision 1.53
	sys/dev/acpi/acpi_resource.c: revision 1.27
	sys/dev/acpi/atppc_acpi.c: revision 1.16
	sys/dev/acpi/attimer_acpi.c: revision 1.12
	sys/dev/acpi/com_acpi.c: revision 1.28
	sys/dev/acpi/fdc_acpi.c: revision 1.35
	sys/dev/acpi/hpet_acpi.c: revision 1.4
	sys/dev/acpi/joy_acpi.c: revision 1.9
	sys/dev/acpi/lpt_acpi.c: revision 1.18
	sys/dev/acpi/mpu_acpi.c: revision 1.9
	sys/dev/acpi/pckbc_acpi.c: revision 1.31
	sys/dev/acpi/pcppi_acpi.c: revision 1.11
	sys/dev/acpi/ug_acpi.c: revision 1.5
	sys/dev/acpi/wss_acpi.c: revision 1.20
	sys/dev/acpi/ym_acpi.c: revision 1.6
Cut the amount of spam from acpi devices in roughly half by printing
resources on the same line as autoconf messages. Things like:
  pcppi1 at acpi0 (SPKR, PNP0800)
  pcppi1: io 0x61
become:
  pcppi1 at acpi0 (SPKR, PNP0800): io 0x61

Revision 1.52.6.1 / (download) - annotate - [select for diffs], Tue Mar 3 18:30:31 2009 UTC (15 years ago) by skrll
Branch: nick-hppapmap
Changes since 1.52: +5 -8 lines
Diff to previous 1.52 (colored) next main 1.53 (colored) to selected 1.51.4.3 (colored)

Sync with HEAD.

Revision 1.54 / (download) - annotate - [select for diffs], Sat Feb 28 19:40:23 2009 UTC (15 years, 1 month ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base
Changes since 1.53: +4 -4 lines
Diff to previous 1.53 (colored) to selected 1.51.4.3 (colored)

Change a confusing attach message; if the embedded controller was attached
via ECDT, we would print:
  acpiec0 at acpi0 (EC, PHP0C09-0): ACPI Embedded Controller (disabled)
The embedded controller isn't actually disabled, but instead this driver
instance, so change the message to read:
  acpiec0 at acpi0 (EC, PHP0C09-0): using acpiecdt0

Revision 1.53 / (download) - annotate - [select for diffs], Tue Feb 17 12:46:01 2009 UTC (15 years, 1 month ago) by jmcneill
Branch: MAIN
Changes since 1.52: +4 -7 lines
Diff to previous 1.52 (colored) to selected 1.51.4.3 (colored)

Cut the amount of spam from acpi devices in roughly half by printing
resources on the same line as autoconf messages. Things like:
  pcppi1 at acpi0 (SPKR, PNP0800)
  pcppi1: io 0x61
become:
  pcppi1 at acpi0 (SPKR, PNP0800): io 0x61

Revision 1.51.6.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.51: +4 -4 lines
Diff to previous 1.51 (colored) next main 1.52 (colored) to selected 1.51.4.3 (colored)

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

Revision 1.50.6.2 / (download) - annotate - [select for diffs], Thu Jun 5 19:14:35 2008 UTC (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.50.6.1: +2 -2 lines
Diff to previous 1.50.6.1 (colored) to branchpoint 1.50 (colored) next main 1.51 (colored) to selected 1.51.4.3 (colored)

Sync with HEAD.

Also fix build.

Revision 1.51.2.1 / (download) - annotate - [select for diffs], Wed Jun 4 02:05:10 2008 UTC (15 years, 9 months ago) by yamt
Branch: yamt-pf42
Changes since 1.51: +4 -4 lines
Diff to previous 1.51 (colored) next main 1.52 (colored) to selected 1.51.4.3 (colored)

sync with head

Revision 1.52 / (download) - annotate - [select for diffs], Tue Jun 3 15:12:39 2008 UTC (15 years, 9 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, netbsd-5-base, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, mjf-devfs2-base, 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, matt-mips64-base2, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, netbsd-5, matt-nb5-mips64, jym-xensuspend
Changes since 1.51: +4 -4 lines
Diff to previous 1.51 (colored) to selected 1.51.4.3 (colored)

Before 1.46, the EC driver would try to send a command again to the EC
after a timeout. This was removed, but the loops remained, so fix them
up as well.

Revision 1.50.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:42:37 2008 UTC (15 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.50: +6 -6 lines
Diff to previous 1.50 (colored) to selected 1.51.4.3 (colored)

Sync with HEAD.

Revision 1.50.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.50: +6 -6 lines
Diff to previous 1.50 (colored) next main 1.51 (colored) to selected 1.51.4.3 (colored)

sync with head.

Revision 1.41.8.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:35 2008 UTC (16 years ago) by matt
Branch: matt-armv6
Changes since 1.41.8.2: +28 -12 lines
Diff to previous 1.41.8.2 (colored) to branchpoint 1.41 (colored) next main 1.42 (colored) to selected 1.51.4.3 (colored)

sync with HEAD

Revision 1.33.2.7 / (download) - annotate - [select for diffs], Mon Mar 17 09:14:37 2008 UTC (16 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.33.2.6: +6 -6 lines
Diff to previous 1.33.2.6 (colored) to branchpoint 1.33 (colored) next main 1.34 (colored) to selected 1.51.4.3 (colored)

sync with head.

Revision 1.51 / (download) - annotate - [select for diffs], Fri Feb 29 06:35:40 2008 UTC (16 years, 1 month ago) by dyoung
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base2, yamt-pf42-base, yamt-nfs-mp-base2, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, hpcarm-cleanup-nbase, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp, wrstuden-revivesa
Changes since 1.50: +6 -6 lines
Diff to previous 1.50 (colored) to selected 1.51.4.3 (colored)

Use PMF_FN_ARGS, PMF_FN_PROTO.

Revision 1.42.2.3 / (download) - annotate - [select for diffs], Mon Feb 18 21:05:36 2008 UTC (16 years, 1 month ago) by mjf
Branch: mjf-devfs
Changes since 1.42.2.2: +24 -8 lines
Diff to previous 1.42.2.2 (colored) to branchpoint 1.42 (colored) next main 1.43 (colored) to selected 1.51.4.3 (colored)

Sync with HEAD.

Revision 1.33.2.6 / (download) - annotate - [select for diffs], Mon Jan 21 09:42:29 2008 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.33.2.5: +681 -825 lines
Diff to previous 1.33.2.5 (colored) to branchpoint 1.33 (colored) to selected 1.51.4.3 (colored)

sync with head

Revision 1.44.2.3 / (download) - annotate - [select for diffs], Sat Jan 19 12:15:02 2008 UTC (16 years, 2 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.44.2.2: +22 -6 lines
Diff to previous 1.44.2.2 (colored) to branchpoint 1.44 (colored) next main 1.45 (colored) to selected 1.51.4.3 (colored)

Sync with HEAD

Revision 1.50 / (download) - annotate - [select for diffs], Fri Jan 18 01:03:24 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, bouyer-xeni386-nbase, bouyer-xeni386-base
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.49: +6 -6 lines
Diff to previous 1.49 (colored) to selected 1.51.4.3 (colored)

Don't be so aggressive in polling the EC when cold, port-i386/37790.

Revision 1.49 / (download) - annotate - [select for diffs], Fri Jan 18 00:33:54 2008 UTC (16 years, 2 months ago) by jmcneill
Branch: MAIN
Changes since 1.48: +22 -6 lines
Diff to previous 1.48 (colored) to selected 1.51.4.3 (colored)

If we are in polling mode, do not try to spin forever in the state machine
waiting for a read or write to complete. Workaround an issue on my VAIO,
but we really need to figure out why it is failing in the first place.

Revision 1.41.8.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:52:18 2008 UTC (16 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.41.8.1: +665 -824 lines
Diff to previous 1.41.8.1 (colored) to branchpoint 1.41 (colored) to selected 1.51.4.3 (colored)

sync with HEAD

Revision 1.44.2.2 / (download) - annotate - [select for diffs], Wed Jan 2 21:53:49 2008 UTC (16 years, 2 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.44.2.1: +80 -16 lines
Diff to previous 1.44.2.1 (colored) to branchpoint 1.44 (colored) to selected 1.51.4.3 (colored)

Sync with HEAD

Revision 1.42.2.2 / (download) - annotate - [select for diffs], Thu Dec 27 00:44:53 2007 UTC (16 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.42.2.1: +665 -825 lines
Diff to previous 1.42.2.1 (colored) to branchpoint 1.42 (colored) to selected 1.51.4.3 (colored)

Sync with HEAD.

Revision 1.42.4.2 / (download) - annotate - [select for diffs], Wed Dec 26 21:39:22 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.42.4.1: +665 -825 lines
Diff to previous 1.42.4.1 (colored) to branchpoint 1.42 (colored) next main 1.43 (colored) to selected 1.51.4.3 (colored)

Sync with head.

Revision 1.48 / (download) - annotate - [select for diffs], Fri Dec 21 21:22:54 2007 UTC (16 years, 3 months ago) by jmcneill
Branch: MAIN
CVS Tags: vmlocking2-base3, matt-armv6-base
Changes since 1.47: +23 -2 lines
Diff to previous 1.47 (colored) to selected 1.51.4.3 (colored)

Add acpiec_bus_{read,write} and acpiec_get_handle, for use in other
device drivers.

Revision 1.47 / (download) - annotate - [select for diffs], Wed Dec 19 20:48:56 2007 UTC (16 years, 3 months ago) by joerg
Branch: MAIN
Changes since 1.46: +4 -2 lines
Diff to previous 1.46 (colored) to selected 1.51.4.3 (colored)

It seems like ACPICA can't deal with GPEs being handled before the GPE
handler is called, so clear the GPE bit in the callout as well.
This fixes the EC issues on T42 models.

Revision 1.46 / (download) - annotate - [select for diffs], Sat Dec 15 09:30:59 2007 UTC (16 years, 3 months ago) by joerg
Branch: MAIN
Changes since 1.45: +59 -18 lines
Diff to previous 1.45 (colored) to selected 1.51.4.3 (colored)

Don't retry to post a command if the EC doesn't answer for a second.
It seems to create more issues than it fixes. Try to defend against
lost/late GPEs by using a callout to kick the state machine regulary.
Add some notes about the purpose and working of the driver.

Revision 1.44.2.1 / (download) - annotate - [select for diffs], Thu Dec 13 21:55:24 2007 UTC (16 years, 3 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.44: +10 -10 lines
Diff to previous 1.44 (colored) to selected 1.51.4.3 (colored)

Sync with HEAD

Revision 1.43.2.2 / (download) - annotate - [select for diffs], Thu Dec 13 05:05:32 2007 UTC (16 years, 3 months ago) by yamt
Branch: yamt-kmem
Changes since 1.43.2.1: +10 -10 lines
Diff to previous 1.43.2.1 (colored) to branchpoint 1.43 (colored) next main 1.44 (colored) to selected 1.51.4.3 (colored)

sync with head.

Revision 1.45 / (download) - annotate - [select for diffs], Wed Dec 12 12:57:48 2007 UTC (16 years, 3 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-kmem-base3
Changes since 1.44: +10 -10 lines
Diff to previous 1.44 (colored) to selected 1.51.4.3 (colored)

Rename acpiec_gpe_state_maschine -> acpiec_gpe_state_machine

Revision 1.43.2.1 / (download) - annotate - [select for diffs], Tue Dec 11 15:22:30 2007 UTC (16 years, 3 months ago) by yamt
Branch: yamt-kmem
Changes since 1.43: +609 -833 lines
Diff to previous 1.43 (colored) to selected 1.51.4.3 (colored)

sync with head.

Revision 1.44 / (download) - annotate - [select for diffs], Sun Dec 9 20:27:52 2007 UTC (16 years, 3 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-kmem-base2, cube-autoconf-base, cube-autoconf
Branch point for: bouyer-xeni386
Changes since 1.43: +609 -833 lines
Diff to previous 1.43 (colored) to selected 1.51.4.3 (colored)

Merge jmcneill-pm branch.

Revision 1.41.6.14 / (download) - annotate - [select for diffs], Sun Dec 9 19:37:44 2007 UTC (16 years, 3 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.41.6.13: +2 -2 lines
Diff to previous 1.41.6.13 (colored) to branchpoint 1.41 (colored) next main 1.42 (colored) to selected 1.51.4.3 (colored)

Sync with HEAD.

Revision 1.42.2.1 / (download) - annotate - [select for diffs], Sat Dec 8 18:19:22 2007 UTC (16 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.42: +10 -9 lines
Diff to previous 1.42 (colored) to selected 1.51.4.3 (colored)

Sync with HEAD.

Revision 1.42.4.1 / (download) - annotate - [select for diffs], Sat Dec 8 17:57:19 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.42: +10 -9 lines
Diff to previous 1.42 (colored) to selected 1.51.4.3 (colored)

Sync with head.

Revision 1.41.6.13 / (download) - annotate - [select for diffs], Sat Dec 8 16:21:04 2007 UTC (16 years, 3 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.41.6.12: +4 -4 lines
Diff to previous 1.41.6.12 (colored) to branchpoint 1.41 (colored) to selected 1.51.4.3 (colored)

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

Revision 1.33.2.5 / (download) - annotate - [select for diffs], Fri Dec 7 17:29:36 2007 UTC (16 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.33.2.4: +10 -9 lines
Diff to previous 1.33.2.4 (colored) to branchpoint 1.33 (colored) to selected 1.51.4.3 (colored)

sync with head

Revision 1.43 / (download) - annotate - [select for diffs], Wed Dec 5 07:58:29 2007 UTC (16 years, 3 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.42: +10 -9 lines
Diff to previous 1.42 (colored) to selected 1.51.4.3 (colored)

lockmgr -> mutex

Revision 1.41.8.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:25:32 2007 UTC (16 years, 4 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.41: +3 -3 lines
Diff to previous 1.41 (colored) to selected 1.51.4.3 (colored)

sync with HEAD

Revision 1.41.6.12 / (download) - annotate - [select for diffs], Tue Nov 6 14:27:12 2007 UTC (16 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.41.6.11: +19 -38 lines
Diff to previous 1.41.6.11 (colored) to branchpoint 1.41 (colored) to selected 1.51.4.3 (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.33.2.4 / (download) - annotate - [select for diffs], Sat Oct 27 11:30:00 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.33.2.3: +3 -3 lines
Diff to previous 1.33.2.3 (colored) to branchpoint 1.33 (colored) to selected 1.51.4.3 (colored)

sync with head.

Revision 1.41.6.11 / (download) - annotate - [select for diffs], Fri Oct 26 15:44:12 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.41.6.10: +3 -3 lines
Diff to previous 1.41.6.10 (colored) to branchpoint 1.41 (colored) to selected 1.51.4.3 (colored)

Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.

Revision 1.41.12.1 / (download) - annotate - [select for diffs], Thu Oct 25 22:37:06 2007 UTC (16 years, 5 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.41: +3 -3 lines
Diff to previous 1.41 (colored) next main 1.42 (colored) to selected 1.51.4.3 (colored)

Sync with HEAD.

Revision 1.40.8.2 / (download) - annotate - [select for diffs], Tue Oct 23 20:06:50 2007 UTC (16 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.40.8.1: +3 -3 lines
Diff to previous 1.40.8.1 (colored) to branchpoint 1.40 (colored) next main 1.41 (colored) to selected 1.51.4.3 (colored)

Sync with head.

Revision 1.42 / (download) - annotate - [select for diffs], Fri Oct 19 11:59:34 2007 UTC (16 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: vmlocking2-base1, vmlocking-nbase, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: vmlocking2, mjf-devfs
Changes since 1.41: +3 -3 lines
Diff to previous 1.41 (colored) to selected 1.51.4.3 (colored)

machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h

Revision 1.41.6.10 / (download) - annotate - [select for diffs], Thu Oct 4 22:47:20 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.41.6.9: +6 -6 lines
Diff to previous 1.41.6.9 (colored) to branchpoint 1.41 (colored) to selected 1.51.4.3 (colored)

When failing to acquire or release the global lock, print the error
message.

Revision 1.41.6.9 / (download) - annotate - [select for diffs], Thu Oct 4 13:26:09 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.41.6.8: +4 -4 lines
Diff to previous 1.41.6.8 (colored) to branchpoint 1.41 (colored) to selected 1.51.4.3 (colored)

Fix thinko: if acpiec_cold is set, the device is in D3, not D0.
This fixes the timeouts on resume.

Revision 1.41.6.8 / (download) - annotate - [select for diffs], Thu Oct 4 10:43:47 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.41.6.7: +3 -2 lines
Diff to previous 1.41.6.7 (colored) to branchpoint 1.41 (colored) to selected 1.51.4.3 (colored)

Explicitly initialise variable written to via or.

Revision 1.41.6.7 / (download) - annotate - [select for diffs], Thu Oct 4 10:38:27 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.41.6.6: +78 -33 lines
Diff to previous 1.41.6.6 (colored) to branchpoint 1.41 (colored) to selected 1.51.4.3 (colored)

Random undocumented fact #741:
The ACPI Embedded Controller will generally only except new commands if
the input buffer is not full.

Push the command write into acpiec_gpe_state_machine and start the
processing with a few busy iterations in
acpiec_write/acpiec_read/acpiec_gpe_query. Also move the read of data
into the state machine to keep all register access in one place.

This fixes random read/write errors that occured with a chance of 10% or
so. It is unclear why the old code didn't hit it more often.

Revision 1.41.6.6 / (download) - annotate - [select for diffs], Tue Oct 2 23:37:18 2007 UTC (16 years, 6 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.41.6.5: +13 -16 lines
Diff to previous 1.41.6.5 (colored) to branchpoint 1.41 (colored) to selected 1.51.4.3 (colored)

Update to ACPI-CA 20070320

Revision 1.41.6.5 / (download) - annotate - [select for diffs], Tue Oct 2 21:44:11 2007 UTC (16 years, 6 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.41.6.4: +603 -813 lines
Diff to previous 1.41.6.4 (colored) to branchpoint 1.41 (colored) to selected 1.51.4.3 (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.41.6.4 / (download) - annotate - [select for diffs], Wed Sep 26 16:53:38 2007 UTC (16 years, 6 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.41.6.3: +35 -65 lines
Diff to previous 1.41.6.3 (colored) to branchpoint 1.41 (colored) to selected 1.51.4.3 (colored)

Merge EcWaitEvent and EcWaitEventIntr. I don't see a good reason to wait
0.99s for the EC, just use 1sec.

Revision 1.41.6.3 / (download) - annotate - [select for diffs], Wed Sep 26 16:36:54 2007 UTC (16 years, 6 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.41.6.2: +28 -30 lines
Diff to previous 1.41.6.2 (colored) to branchpoint 1.41 (colored) to selected 1.51.4.3 (colored)

Reorder slightly to make clear that EcRead and EcWrite are used only by
EcTransaction.

Revision 1.33.2.3 / (download) - annotate - [select for diffs], Mon Sep 3 14:33:19 2007 UTC (16 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.33.2.2: +12 -11 lines
Diff to previous 1.33.2.2 (colored) to branchpoint 1.33 (colored) to selected 1.51.4.3 (colored)

sync with head.

Revision 1.41.6.2 / (download) - annotate - [select for diffs], Sun Aug 5 19:01:01 2007 UTC (16 years, 7 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.41.6.1: +4 -2 lines
Diff to previous 1.41.6.1 (colored) to branchpoint 1.41 (colored) to selected 1.51.4.3 (colored)

Certain devices either don't require a power handler, or are restored
on resume outside of the pnp power management framework. For such devices,
introduce the null power handler, pnp_generic_power.

Revision 1.41.6.1 / (download) - annotate - [select for diffs], Fri Aug 3 22:17:14 2007 UTC (16 years, 7 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.41: +4 -11 lines
Diff to previous 1.41 (colored) to selected 1.51.4.3 (colored)

Pull in power management changes from private branch.

Revision 1.40.8.1 / (download) - annotate - [select for diffs], Sun Jul 15 13:21:08 2007 UTC (16 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.40: +12 -11 lines
Diff to previous 1.40 (colored) to selected 1.51.4.3 (colored)

Sync with head.

Revision 1.40.10.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:05:08 2007 UTC (16 years, 8 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.40: +12 -11 lines
Diff to previous 1.40 (colored) next main 1.41 (colored) to selected 1.51.4.3 (colored)

Sync with head.

Revision 1.41 / (download) - annotate - [select for diffs], Tue Jun 26 22:36:16 2007 UTC (16 years, 9 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking-base, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: matt-armv6, jmcneill-pm, bouyer-xenamd64
Changes since 1.40: +12 -11 lines
Diff to previous 1.40 (colored) to selected 1.51.4.3 (colored)

Don't be quite so aggressive in EcWaitEvent; makes acpiec work on the
Sony VAIO VGN-N250E, and possibly others.

Revision 1.33.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.33.2.1: +4 -3 lines
Diff to previous 1.33.2.1 (colored) to branchpoint 1.33 (colored) to selected 1.51.4.3 (colored)

sync with head.

Revision 1.38.10.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:16:57 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.38.10.1: +6 -6 lines
Diff to previous 1.38.10.1 (colored) to branchpoint 1.38 (colored) next main 1.39 (colored) to selected 1.51.4.3 (colored)

sync with head.

Revision 1.38.8.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:34:03 2006 UTC (17 years, 4 months ago) by ad
Branch: newlock2
Changes since 1.38: +4 -3 lines
Diff to previous 1.38 (colored) next main 1.39 (colored) to selected 1.51.4.3 (colored)

Sync with head.

Revision 1.40 / (download) - annotate - [select for diffs], Thu Nov 16 01:32:47 2006 UTC (17 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-idlelwp-base8, yamt-idlelwp, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, post-newlock2-merge, 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, ad-audiomp-base, ad-audiomp
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.39: +6 -6 lines
Diff to previous 1.39 (colored) to selected 1.51.4.3 (colored)

__unused removal on arguments; approved by core.

Revision 1.38.10.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.38: +7 -6 lines
Diff to previous 1.38 (colored) to selected 1.51.4.3 (colored)

sync with head

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

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

Revision 1.35.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:49:28 2006 UTC (17 years, 6 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.35: +27 -32 lines
Diff to previous 1.35 (colored) next main 1.36 (colored) to selected 1.51.4.3 (colored)

sync with head

Revision 1.33.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:02:31 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.33: +33 -38 lines
Diff to previous 1.33 (colored) to selected 1.51.4.3 (colored)

sync with head.

Revision 1.35.6.2 / (download) - annotate - [select for diffs], Thu Jun 1 22:36:19 2006 UTC (17 years, 10 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.35.6.1: +3 -3 lines
Diff to previous 1.35.6.1 (colored) next main 1.36 (colored) to selected 1.51.4.3 (colored)

Sync with head.

Revision 1.37.6.1 / (download) - annotate - [select for diffs], Wed May 24 15:50:07 2006 UTC (17 years, 10 months ago) by tron
Branch: peter-altq
Changes since 1.37: +3 -3 lines
Diff to previous 1.37 (colored) next main 1.38 (colored) to selected 1.51.4.3 (colored)

Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.37.2.1 / (download) - annotate - [select for diffs], Wed May 24 10:57:36 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.37: +3 -3 lines
Diff to previous 1.37 (colored) next main 1.38 (colored) to selected 1.51.4.3 (colored)

sync with head.

Revision 1.38 / (download) - annotate - [select for diffs], Sun May 14 03:02:14 2006 UTC (17 years, 10 months ago) by dogcow
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, simonb-timecounters-base, rpaulo-netinet-merge-pcb-base, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.37: +3 -3 lines
Diff to previous 1.37 (colored) to selected 1.51.4.3 (colored)

gcc4: 'Data' may be used uninitialized in this function

Revision 1.35.6.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:38:46 2006 UTC (17 years, 11 months ago) by simonb
Branch: simonb-timecounters
Changes since 1.35: +26 -31 lines
Diff to previous 1.35 (colored) to selected 1.51.4.3 (colored)

Sync with head.

Revision 1.35.2.2 / (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.35.2.1: +16 -15 lines
Diff to previous 1.35.2.1 (colored) next main 1.36 (colored) to selected 1.51.4.3 (colored)

sync with head.

Revision 1.37 / (download) - annotate - [select for diffs], Mon Feb 20 12:17:49 2006 UTC (18 years, 1 month ago) by kochi
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base, elad-kernelauth-base, elad-kernelauth
Branch point for: yamt-pdpolicy, peter-altq
Changes since 1.36: +16 -15 lines
Diff to previous 1.36 (colored) to selected 1.51.4.3 (colored)

use aprint_*

Revision 1.35.2.1 / (download) - annotate - [select for diffs], Sat Feb 18 15:39:02 2006 UTC (18 years, 1 month ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.35: +12 -18 lines
Diff to previous 1.35 (colored) to selected 1.51.4.3 (colored)

sync with head.

Revision 1.36 / (download) - annotate - [select for diffs], Thu Feb 16 06:19:26 2006 UTC (18 years, 1 month ago) by kochi
Branch: MAIN
Changes since 1.35: +12 -18 lines
Diff to previous 1.35 (colored) to selected 1.51.4.3 (colored)

prototypes don't need argument names

Revision 1.35 / (download) - annotate - [select for diffs], Sat Dec 24 20:27:29 2005 UTC (18 years, 3 months ago) by perry
Branch: MAIN
Branch point for: yamt-uio_vmspace, simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.34: +8 -8 lines
Diff to previous 1.34 (colored) to selected 1.51.4.3 (colored)

Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.

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

merge ktrace-lwp.

Revision 1.9.2.4 / (download) - annotate - [select for diffs], Thu Nov 10 14:03:11 2005 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.9.2.3: +42 -10 lines
Diff to previous 1.9.2.3 (colored) next main 1.10 (colored) to selected 1.51.4.3 (colored)

Sync with HEAD. Here we go again...

Revision 1.33 / (download) - annotate - [select for diffs], Mon May 2 14:54:00 2005 UTC (18 years, 11 months ago) by kochi
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.32: +42 -10 lines
Diff to previous 1.32 (colored) to selected 1.51.4.3 (colored)

Merge changes for ACPI-CA 20050408

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

Fix the sync with head I botched.

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

Sync with HEAD.

Revision 1.9.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:45:03 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.9: +375 -177 lines
Diff to previous 1.9 (colored) to selected 1.51.4.3 (colored)

Sync with HEAD

Revision 1.32 / (download) - annotate - [select for diffs], Fri Jun 25 11:15:15 2004 UTC (19 years, 9 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, 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, kent-audio2, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Changes since 1.31: +4 -3 lines
Diff to previous 1.31 (colored) to selected 1.51.4.3 (colored)

don't rely on the value of hz.

Revision 1.31 / (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.30: +6 -6 lines
Diff to previous 1.30 (colored) to selected 1.51.4.3 (colored)

specify static where appropriate.

Revision 1.22.2.2 / (download) - annotate - [select for diffs], Thu Apr 29 04:33:58 2004 UTC (19 years, 11 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.22.2.1: +3 -4 lines
Diff to previous 1.22.2.1 (colored) to branchpoint 1.22 (colored) next main 1.23 (colored) to selected 1.51.4.3 (colored)

Pullup rev 1.30 (requested by yamt in ticket #221)

EcGpeHandler: in the case that the ec is EcLock'ed, always set
EC_F_PENDQUERY flag so that AcpiClearGpe() will be called later.

Revision 1.22.2.1 / (download) - annotate - [select for diffs], Wed Apr 28 05:24:33 2004 UTC (19 years, 11 months ago) by jmc
Branch: netbsd-2-0
Changes since 1.22: +145 -32 lines
Diff to previous 1.22 (colored) to selected 1.51.4.3 (colored)

Pullup rev 1.23 (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.30 / (download) - annotate - [select for diffs], Sat Apr 24 09:07:50 2004 UTC (19 years, 11 months ago) by yamt
Branch: MAIN
Changes since 1.29: +3 -4 lines
Diff to previous 1.29 (colored) to selected 1.51.4.3 (colored)

EcGpeHandler: in the case that the ec is EcLock'ed, always set
EC_F_PENDQUERY flag so that AcpiClearGpe() will be called later.

Revision 1.29 / (download) - annotate - [select for diffs], Thu Apr 22 00:17:10 2004 UTC (19 years, 11 months ago) by itojun
Branch: MAIN
Changes since 1.28: +3 -3 lines
Diff to previous 1.28 (colored) to selected 1.51.4.3 (colored)

sprintf -> snprintf

Revision 1.28 / (download) - annotate - [select for diffs], Sun Apr 11 15:41:50 2004 UTC (19 years, 11 months ago) by kochi
Branch: MAIN
Changes since 1.27: +14 -12 lines
Diff to previous 1.27 (colored) to selected 1.51.4.3 (colored)

- don't evaluate _UID, reuse ACPI_DEVINFO
- move acpi_resources from acpi_ec_softc to stack

Revision 1.27 / (download) - annotate - [select for diffs], Sun Apr 11 10:36:35 2004 UTC (19 years, 11 months ago) by kochi
Branch: MAIN
Changes since 1.26: +10 -9 lines
Diff to previous 1.26 (colored) to selected 1.51.4.3 (colored)

Clean up memory allocated during autoconfiguration

Revision 1.26 / (download) - annotate - [select for diffs], Sun Apr 11 08:36:19 2004 UTC (19 years, 11 months ago) by kochi
Branch: MAIN
Changes since 1.25: +4 -4 lines
Diff to previous 1.25 (colored) to selected 1.51.4.3 (colored)

change acpi_resource_parse API to support _PRS parsing as well as _CRS

Revision 1.25 / (download) - annotate - [select for diffs], Sun Apr 11 06:48:25 2004 UTC (19 years, 11 months ago) by kochi
Branch: MAIN
Changes since 1.24: +62 -61 lines
Diff to previous 1.24 (colored) to selected 1.51.4.3 (colored)

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

Revision 1.24 / (download) - annotate - [select for diffs], Sat Apr 10 11:48:10 2004 UTC (19 years, 11 months ago) by kochi
Branch: MAIN
Changes since 1.23: +17 -17 lines
Diff to previous 1.23 (colored) to selected 1.51.4.3 (colored)

whitespace nit

Revision 1.23 / (download) - annotate - [select for diffs], Tue Mar 30 15:18:56 2004 UTC (20 years ago) by kochi
Branch: MAIN
Changes since 1.22: +145 -32 lines
Diff to previous 1.22 (colored) to selected 1.51.4.3 (colored)

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

Revision 1.22 / (download) - annotate - [select for diffs], Wed Mar 24 14:47:19 2004 UTC (20 years ago) by kanaoka
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.21: +4 -4 lines
Diff to previous 1.21 (colored) to selected 1.51.4.3 (colored)

Set sc->sc_glk,if acpi_eval_integer() evaluate _GLK in acpiec_attach.

Revision 1.21 / (download) - annotate - [select for diffs], Wed Mar 24 11:32:09 2004 UTC (20 years ago) by kanaoka
Branch: MAIN
Changes since 1.20: +7 -5 lines
Diff to previous 1.20 (colored) to selected 1.51.4.3 (colored)

Make it compile (int -> ACPI_INTEGER)

Revision 1.20 / (download) - annotate - [select for diffs], Wed Nov 12 13:59:23 2003 UTC (20 years, 4 months ago) by yamt
Branch: MAIN
Changes since 1.19: +85 -57 lines
Diff to previous 1.19 (colored) to selected 1.51.4.3 (colored)

- fix deadlocks due to using lock_status() from interrupt context.
- process pending queries in EcUnlock() to close a race window.
  now there's no need to do polling for EcQuery().
- reorder inline functions and other prototypes so that
  the formers can get needed prototypes.
- add missing prototypes.

Revision 1.19 / (download) - annotate - [select for diffs], Wed Nov 12 13:18:24 2003 UTC (20 years, 4 months ago) by yamt
Branch: MAIN
Changes since 1.18: +3 -4 lines
Diff to previous 1.18 (colored) to selected 1.51.4.3 (colored)

use snprintf("%X") instead of "%x" + strupr().

Revision 1.18 / (download) - annotate - [select for diffs], Mon Nov 3 18:07:10 2003 UTC (20 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.17: +48 -41 lines
Diff to previous 1.17 (colored) to selected 1.51.4.3 (colored)

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

Revision 1.17 / (download) - annotate - [select for diffs], Mon Nov 3 17:23:38 2003 UTC (20 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.16: +76 -9 lines
Diff to previous 1.16 (colored) to selected 1.51.4.3 (colored)

Fix locking protocol, and use _GLK appropriately.  From kochi, with some
modifications.

Revision 1.16 / (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.15: +8 -6 lines
Diff to previous 1.15 (colored) to selected 1.51.4.3 (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.15 / (download) - annotate - [select for diffs], Sat Nov 1 08:34:54 2003 UTC (20 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.14: +2 -3 lines
Diff to previous 1.14 (colored) to selected 1.51.4.3 (colored)

sc_lockhandle is garbage.

Revision 1.14 / (download) - annotate - [select for diffs], Sat Nov 1 08:27:37 2003 UTC (20 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.13: +2 -6 lines
Diff to previous 1.13 (colored) to selected 1.51.4.3 (colored)

Remove an unnecessary call to AcpiGlearGpe().

Revision 1.13 / (download) - annotate - [select for diffs], Sat Nov 1 08:14:39 2003 UTC (20 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.12: +4 -6 lines
Diff to previous 1.12 (colored) to selected 1.51.4.3 (colored)

Correct arguments to AcpiClearGpe().

Revision 1.12 / (download) - annotate - [select for diffs], Sat Nov 1 01:38:25 2003 UTC (20 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.11: +4 -5 lines
Diff to previous 1.11 (colored) to selected 1.51.4.3 (colored)

Correct arguments to AcpiInstallGpeHandler, as per Linux and FreeBSD.

Revision 1.11 / (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.10: +17 -30 lines
Diff to previous 1.10 (colored) to selected 1.51.4.3 (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.10 / (download) - annotate - [select for diffs], Sun Aug 3 08:16:07 2003 UTC (20 years, 8 months ago) by kochi
Branch: MAIN
Changes since 1.9: +4 -7 lines
Diff to previous 1.9 (colored) to selected 1.51.4.3 (colored)

Fix a wrong handling of clearing a flag

Revision 1.9 / (download) - annotate - [select for diffs], Fri Feb 14 11:05:39 2003 UTC (21 years, 1 month ago) by tshiozak
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.8: +22 -17 lines
Diff to previous 1.8 (colored) to selected 1.51.4.3 (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.1.4.6 / (download) - annotate - [select for diffs], Fri Oct 18 02:41:29 2002 UTC (21 years, 5 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.1.4.5: +4 -6 lines
Diff to previous 1.1.4.5 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored) to selected 1.51.4.3 (colored)

Catch up to -current.

Revision 1.8 / (download) - annotate - [select for diffs], Tue Oct 15 20:53:37 2002 UTC (21 years, 5 months ago) by tshiozak
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, kqueue-beforemerge, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.7: +2 -3 lines
Diff to previous 1.7 (colored) to selected 1.51.4.3 (colored)

fix a simple, but wicked bug in EcSpaceHandler().
this bug causes EcWrite via EcSpaceHandler to always write 0 as the data byte.

Revision 1.3.2.4 / (download) - annotate - [select for diffs], Thu Oct 10 18:38:24 2002 UTC (21 years, 5 months ago) by jdolecek
Branch: kqueue
Changes since 1.3.2.3: +4 -5 lines
Diff to previous 1.3.2.3 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored) to selected 1.51.4.3 (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.7 / (download) - annotate - [select for diffs], Wed Oct 2 16:33:36 2002 UTC (21 years, 6 months ago) by thorpej
Branch: MAIN
CVS Tags: kqueue-base
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored) to selected 1.51.4.3 (colored)

Add trailing ; to CFATTACH_DECL.

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

Use CFATTACH_DECL().

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

Declare all cfattach structures const.

Revision 1.3.2.3 / (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.3.2.2: +22 -18 lines
Diff to previous 1.3.2.2 (colored) to branchpoint 1.3 (colored) to selected 1.51.4.3 (colored)

catch up with -current on kqueue branch

Revision 1.3.10.1 / (download) - annotate - [select for diffs], Thu Jun 20 16:31:24 2002 UTC (21 years, 9 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.3: +22 -18 lines
Diff to previous 1.3 (colored) next main 1.4 (colored) to selected 1.51.4.3 (colored)

catch up with -current.

Revision 1.1.4.5 / (download) - annotate - [select for diffs], Thu Jun 20 03:43:26 2002 UTC (21 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.1.4.4: +22 -18 lines
Diff to previous 1.1.4.4 (colored) to branchpoint 1.1 (colored) to selected 1.51.4.3 (colored)

Catch up to -current.

Revision 1.4 / (download) - annotate - [select for diffs], Sat Jun 15 18:03:41 2002 UTC (21 years, 9 months ago) by thorpej
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.3: +22 -18 lines
Diff to previous 1.3 (colored) to selected 1.51.4.3 (colored)

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

Revision 1.3.2.2 / (download) - annotate - [select for diffs], Thu Jan 10 19:52:52 2002 UTC (22 years, 2 months ago) by thorpej
Branch: kqueue
Changes since 1.3.2.1: +795 -0 lines
Diff to previous 1.3.2.1 (colored) to branchpoint 1.3 (colored) to selected 1.51.4.3 (colored)

Sync kqueue branch with -current.

Revision 1.1.4.4 / (download) - annotate - [select for diffs], Wed Nov 14 19:13:43 2001 UTC (22 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.1.4.3: +4 -1 lines
Diff to previous 1.1.4.3 (colored) to branchpoint 1.1 (colored) to selected 1.51.4.3 (colored)

Catch up to -current.

Revision 1.3.2.1, Tue Nov 13 13:01:57 2001 UTC (22 years, 4 months ago) by thorpej
Branch: kqueue
Changes since 1.3: +0 -795 lines
FILE REMOVED

file acpi_ec.c was added on branch kqueue on 2002-01-10 19:52:52 +0000

Revision 1.3 / (download) - annotate - [select for diffs], Tue Nov 13 13:01:57 2001 UTC (22 years, 4 months ago) by lukem
Branch: MAIN
CVS Tags: newlock-base, newlock, 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, ifpoll-base, eeh-devprop-base, eeh-devprop
Branch point for: kqueue, gehenna-devsw
Changes since 1.2: +4 -1 lines
Diff to previous 1.2 (colored) to selected 1.51.4.3 (colored)

add RCSID

Revision 1.1.4.3 / (download) - annotate - [select for diffs], Mon Oct 22 20:41:16 2001 UTC (22 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.1.4.2: +2 -2 lines
Diff to previous 1.1.4.2 (colored) to branchpoint 1.1 (colored) to selected 1.51.4.3 (colored)

Catch up to -current.

Revision 1.2 / (download) - annotate - [select for diffs], Fri Oct 12 07:30:23 2001 UTC (22 years, 5 months ago) by enami
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored) to selected 1.51.4.3 (colored)

Fix printf format.

Revision 1.1.4.2 / (download) - annotate - [select for diffs], Mon Oct 8 21:18:05 2001 UTC (22 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.1.4.1: +792 -0 lines
Diff to previous 1.1.4.1 (colored) to branchpoint 1.1 (colored) to selected 1.51.4.3 (colored)

Catch up to -current.

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Mon Oct 1 12:44:15 2001 UTC (22 years, 6 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.1.2.1: +792 -0 lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored) to selected 1.51.4.3 (colored)

Catch up with -current.

Revision 1.1.4.1, Sat Sep 29 05:34:23 2001 UTC (22 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.1: +0 -792 lines
FILE REMOVED

file acpi_ec.c was added on branch nathanw_sa on 2001-10-08 21:18:05 +0000

Revision 1.1.2.1, Sat Sep 29 05:34:23 2001 UTC (22 years, 6 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.1: +0 -792 lines
FILE REMOVED

file acpi_ec.c was added on branch thorpej-devvp on 2001-10-01 12:44:15 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Sat Sep 29 05:34:23 2001 UTC (22 years, 6 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-devvp-base3, thorpej-devvp-base2
Branch point for: thorpej-devvp, nathanw_sa
Diff to selected 1.51.4.3 (colored)

ACPI Embedded Controller driver.

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>