Commit Graph

191381 Commits

Author SHA1 Message Date
jruoho dfba418d38 Add mq(3), a manual page for the POSIX message queues. This tries to act as
a short introduction to the rationale and API, noting also some pros and cons.

rmind@: basically ok. Please feel free to adjust, correct, and extend.
2010-06-07 07:11:27 +00:00
jruoho f4cbf9faff Add "optional" keyword to rc.d/xdm and rc.d/xfs. Fixes PR misc/43307. 2010-06-07 04:48:47 +00:00
dholland 4035b6ee7d Improve wording describing the behavior of the attributes argument, and
add reference to pthread_attr(3), as requested in PR 42871. The text
added is different from but based on a suggestion by Matthew Mondor.
2010-06-07 04:36:34 +00:00
jruoho c751d2d518 Instead of disabling all GPEs for non-wakedevs, set both runtime and wake
GPEs, but unset only wake GPEs. The old behavior was questionable, as the
intention was only to disable a device's ability to wake the system.
Maintaining the runtime GPE generation is more important now as ACPICA
supports sharing a single GPE across multiple devices.

Discussed with jmcneill@.
2010-06-07 04:08:26 +00:00
riz b8ec406166 Remove a test (that a created directory had a predictable inode number)
that no longer makes sense since the vmlocking2 branch was merged.
2010-06-07 03:43:50 +00:00
riz 94a47d543f Use atf_check to su in a couple cases, to make the test failure
easier to understand when the unprivileged user has /sbin/nologin
for a shell.
2010-06-07 03:39:41 +00:00
jakllsch 8e253f8eaf Four more quirky umass(4)es.
These include the Philips SA235, and iRiver iFP-series audio players.
Mostly from PR#25440 and PR#43264.
2010-06-07 01:56:51 +00:00
pgoyette 9f0fa4d25b Update acpiverbose module to use module_autoload() rather than module_load().
Load the module right before each attempt to use its features, and let the
module subsystem handle unloading.
2010-06-07 01:45:27 +00:00
pgoyette 4eee9f144a Update scsiverbose 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-07 01:41:39 +00:00
pooka a7bb34b4fd Actually, disable pathconf for a while longer: the retval needs a
little finetuning (not that everyone is jumping right to using it,
but fixing will have to wait until tomorrow, and who knows what
i'll forget during the night and how long it will eventually take).
2010-06-06 23:11:05 +00:00
jakllsch 7da579e9e1 Regenerate. 2010-06-06 23:02:31 +00:00
jakllsch da9693290f Add Philips SA235 Digital Audio Player.
This USB Mass Storage Class device stops responding after a
SCSI PREVENT ALLOW MEDIUM REMOVAL command.
2010-06-06 23:01:05 +00:00
jakllsch af6823ad04 Sort Sigmatel products. 2010-06-06 22:56:48 +00:00
pooka 1cfb9937ae Pass VOP_PATHCONF to backend file server. inspired by njoly. 2010-06-06 22:46:17 +00:00
pooka aef13c83d0 signal pathconf in the vector of supported ops 2010-06-06 22:44:54 +00:00
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