Commit Graph

191566 Commits

Author SHA1 Message Date
njoly
e800a040dc Make vers.c depend on sys/param.h too, to ensure that this file is
regenerated for on kernel version bump. Avoids __NetBSD_Version__ and
osrelease out of sync problem for mkupdate builds.

ok from pooka@.
2010-06-06 20:09:38 +00:00
jruoho
d0cb358383 Fix a build failure.
Apparently upstream does not bother to test-build their own releases.
2010-06-06 19:42:16 +00:00
jruoho
0384acea3d Add missing files required for iASL from ACPICA 20100528. 2010-06-06 19:35:38 +00:00
jruoho
143803d37d Note the ACPICA update to 20100528. 2010-06-06 19:19:58 +00:00
pgoyette
579b659f6c Update usbverbose module to use module_autoload() rather than module_load().
Load the module right before each attempt to use its features, and let the
module subsystem handle unloading.
2010-06-06 18:58:26 +00:00
pgoyette
6bf1e09446 Update pciverbose module to use module_autoload() rather than module_load().
Load the module right before each attempt to use its features, and let the
module subsystem handle unloading.
2010-06-06 18:58:23 +00:00
pgoyette
90f0882b7a Update miiverbose module to use module_autoload() rather than module_load().
Load the module right before each attempt to use its features, and let the
module subsystem handle unloading.
2010-06-06 18:58:22 +00:00
jruoho
d02842f45a 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.
2010-06-06 18:56:10 +00:00
jruoho
4563fc3267 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
2010-06-06 18:40:51 +00:00
jruoho
1b0493cb92 Add new files from ACPICA 20100528. 2010-06-06 18:34:45 +00:00
jruoho
82d8b2ce07 ACPICA does not understand the const type qualifier. 2010-06-06 18:33:14 +00:00
jruoho
55ce606f5a Merge ACPICA 20100528 2010-06-06 18:28:35 +00:00
jruoho
ebc86364fb Import ACPICA 20100528. 2010-06-06 18:16:40 +00:00
wiz
76aa4cd57b Bump date for previous. 2010-06-06 17:28:48 +00:00
christos
d6169708b4 fix conditional, from dholland. 2010-06-06 12:37:57 +00:00
skrll
4d532c945b MULTIPROCESSOR fixes
- provide curcpu in a control register instead of curlwp
- define {GET,SET}_CURLWP and GET_CURCPU and use whereever possible.
- define a cpu count and use it in CPU_INFO_FOREACH

XXX hppa_ncpus isn't valid yet.
2010-06-06 12:13:35 +00:00
he
df6736b3e1 Only include opt_m68k_arch.h if _KERNEL_OPT is defined, so that librump
builds again.  OK'ed by mrg@.
2010-06-06 11:41:06 +00:00
jruoho
03fcc3422b Although sysmon_pswitch_unregister(9) does not currently do anything, in
order to be ready for possible future API changes, call it if we failed to
install the fixed event handlers. Also small ACPI_DEBUG_PRINT clarifications.
2010-06-06 10:44:40 +00:00
skrll
8d20091e0c Fix CPU_INFO_FOREACH in previous. 2010-06-06 10:22:43 +00:00
skrll
e2b7df5a2a *** empty log message *** 2010-06-06 10:15:51 +00:00
skrll
2c2594876d Pullup across/adapt fix from OpenBSD:
Properly initialize the members of `struct mdproc' that deal with
single-stepping when we fork and reset them upon exec.
2010-06-06 09:12:39 +00:00
hannken
62bfdd2b21 Change layered file systems to always pass the locking VOP's down to the
leaf file system.  Remove now unused member v_vnlock from struct vnode.
Welcome to 5.99.30

Discussed on tech-kern.
2010-06-06 08:01:30 +00:00
skrll
1c518780b3 Follow the correct locking protocol when creating an LWP and the process
is stopping.

Problem found by running the gdb testsuite (gdb didn't have pthreads
support)

Thanks to rmind for help with this.
2010-06-06 07:46:17 +00:00
dholland
c2fc97579a Improve previous: there were two printfs and I'd only noticed and fixed
one of them. PR 43217.
2010-06-06 06:20:16 +00:00
dholland
6d96ac29cb Add missing backslash in macro definition in apparently-disused #if branch.
(has been this way since 2001)
From Henning Petersen in PR 42525.
2010-06-06 06:12:49 +00:00
dholland
9cfeb48d29 Add missing close-parenthesis; reported by Henning Petersen in PR 42526.
(HI CEGGER!)
2010-06-06 06:10:03 +00:00
mrg
99a1ab2be1 defflag GRF_COMPAT. 2010-06-06 04:52:17 +00:00
mrg
fb81c7d694 fix PR 6724 - convert m68k options to defflag's. this means that
M680[12346] are now available from opt_m68k_arch.h.  FPSP meantioned
in the PR has already been fixed, and i could not find any more.

i built these kernels to ensure i did not break their builds:

amiga: GENERIC DRACO
atari: HADES FALCON MILAN-PCIIDE
mac68k: GENERIC
sun2: GENERIC
sun3: GENERIC GENERIC3X
cesfic: attempted GENERIC, does not build due to lack of machine/bus.h
hp300: GENERIC
luna68k: GENERIC
mvme68k: GENERIC
news68k: GENERIC
next68k: GENERIC
x68k: GENERIC
2010-06-06 04:51:33 +00:00
dholland
319ed136d2 Document the changes in the previous version of this file. If we're
going to whitewash the test failures, we should at least keep track of
what the "real" correct behavior/output is. Especially since a large
portion of the tests in here were added specifically to illuminate
points at issue in prior discussions.
2010-06-06 04:51:13 +00:00
mrg
bd01b4a30e fix PR 6724 - convert m68k options to defflag's. this means that
M680[12346] are now available from opt_m68k_arch.h.  FPSP meantioned
in the PR has already been fixed, and i could not find any more.

i built these kernels to ensure i did not break their builds:

amiga: GENERIC DRACO
atari: HADES FALCON MILAN-PCIIDE
mac68k: GENERIC
sun2: GENERIC
sun3: GENERIC GENERIC3X
cesfic: attempted GENERIC, does not build due to lack of machine/bus.h
hp300: GENERIC
luna68k: GENERIC
mvme68k: GENERIC
news68k: GENERIC
next68k: GENERIC
x68k: GENERIC
2010-06-06 04:50:05 +00:00
mrg
1b9a8bbaba implement ddb help for sun2/sun3 commands. PR#38310 and PR#38308. 2010-06-06 03:34:14 +00:00
mrg
315bed49a4 note that sun2 has the same ddb mach commands as sun3/sun3x. part of PR#38310 2010-06-06 03:26:57 +00:00
mrg
4286a16a38 fix some errors in debug code, found by henning petersen in PR#42529. 2010-06-06 02:51:46 +00:00
sjg
fbb620d711 Add .export-env which tells make to export a variable to the environment
but not to track it - as is done for .export
This allows the variable to be updated without affecting what was put
into the environment.
Older versions of make will simply treat this as .export
2010-06-06 01:13:12 +00:00
wiz
90abead58e Fix typo in comment. 2010-06-06 00:00:33 +00:00
dholland
23beeb1a3b +t_sort 2010-06-05 22:39:18 +00:00
dholland
b324463ca0 Add a very basic test and some tests for the problem in PR 43358.
XXX: the sort tests in src/regress should be folded into this
2010-06-05 22:38:39 +00:00
jnemeth
c8bd5cbe3b The US formally left the Gold Standard in 1971, not 1933. See:
http://en.wikipedia.org/wiki/Nixon_Shock
2010-06-05 20:53:44 +00:00
dholland
fcf4d3f750 Rework previous change to fixit() to not trip on option arguments. (Noticed
by wiz.) Clarify the loop logic involved.
2010-06-05 17:46:08 +00:00
dholland
8696c1b71e fixit() needs to know the getopt options list to do its thing correctly. 2010-06-05 17:44:51 +00:00
jruoho
7b26e5d94f Remove also the debug-printf in case of long Stall() requests;
/*
	* sleep(9) isn't safe because AcpiOsStall may be called
	* with interrupt-disabled. (eg. by AcpiEnterSleepState)
	* we should watch out for long stall requests.
	*/

ACPICA has long printed a similar warning by itself. Moreover, this message
was never reached as the interpreter does not invoke AcpiOsStall() when a
delay longer than 255 usec is requested.
2010-06-05 16:57:48 +00:00
jruoho
3aca70d9a2 Remove the recently added warning about long Sleep() requests.
This is now in ACPICA (20100528):

	Added support to limit the maximum time for the ASL Sleep()
	operator. To prevent accidental deep sleeps, limit the maximum time
	that Sleep() will actually sleep. Configurable, the default maximum
	is two seconds. ACPICA bugzilla 854.
2010-06-05 16:47:49 +00:00
tnozaki
0ab294f640 remove unused magic. 2010-06-05 16:37:13 +00:00
jruoho
e42cf0f8ae Switch the third argument to the _DSW method from 3 to 0. This means that
devices should be placed in the D0 state ("fully on") after resume. We were
not prepared to handle the previous value as it implied that devices could
be placed in an arbitrary power state once in S0.

Minimal functional change, given that the _DSW is seldom seen in the field.
2010-06-05 15:47:59 +00:00
jruoho
1bfe5139f3 Complete the support for wakeup devices. As imposed by the standard, all
power resources should be turned on for wakeup devices. This follows common
sense: a device cannot wake if the power of it is turned off.

ok jmcneill@
2010-06-05 15:31:21 +00:00
lukem
f8daa4a728 In ftpvis(), prevent incomplete escape sequences at end of dst,
and ensure NUL-termination of dst.  Also tweak for readibility.
Fix from Uwe Stuehler and Stefan Sperling, via Marc Balmer.
2010-06-05 13:59:39 +00:00
jruoho
8e7819f753 Convert an aprint_error_dev() to ACPI_DEBUG_PRINT in acpi_power_set().
This "fixes" the issue observed by dyoung@. Since the AML may not keep any
state by itself, it is possible that the firmware tries to continuously put
a device into a power state where the device already is (e.g. D3 -> D3).

XXX: The code (like the old power resource code) rests on the assumption
     that it is possible to reliably obtain the power state of a device
     either directly via _PSC or indirectly via _STA. However, because there
     is some evidence that few broken systems implement these methods
     incorrectly (e.g. always returns D0 as a constant, even if the state
     would be D3 in reality), we may need to revisit this by always setting
     the power state, even if it is impossible to get the power state.
2010-06-05 07:59:13 +00:00
jruoho
1f4ce9efc5 Remove trailing white space. 2010-06-05 06:07:12 +00:00
dholland
2480682bb2 Avoid SIGSEGV on out-of-range time_t. 2010-06-05 03:24:01 +00:00
sjg
6d83722e40 PR: 39604
Reviewed by:

add_glob:
Do not stop scanning if we see '$' as it does more harm than good.
For $HOME/tm we should return $HOME/tm*
2010-06-05 03:02:37 +00:00