dragonfly.git
8 months agoUpdate UPDATING a bit.
Sascha Wildner [Mon, 5 Aug 2013 14:03:40 +0000 (16:03 +0200)]
Update UPDATING a bit.

8 months agoRemove some unused externs.
Sascha Wildner [Mon, 5 Aug 2013 11:48:48 +0000 (13:48 +0200)]
Remove some unused externs.

8 months agorp(4): Remove ISA attachment and some dead code, too.
Sascha Wildner [Mon, 5 Aug 2013 11:48:18 +0000 (13:48 +0200)]
rp(4): Remove ISA attachment and some dead code, too.

8 months agokernel/raid: Match xpt_alloc_ccb() and xpt_free_ccb() for rescan callbacks.
Sascha Wildner [Sun, 4 Aug 2013 20:24:17 +0000 (22:24 +0200)]
kernel/raid: Match xpt_alloc_ccb() and xpt_free_ccb() for rescan callbacks.

8 months agokernel/drm2: Remove two unused externs.
Sascha Wildner [Sun, 4 Aug 2013 18:54:28 +0000 (20:54 +0200)]
kernel/drm2: Remove two unused externs.

8 months agodrm/i915: Do not check only primary displays
François Tigeot [Sun, 4 Aug 2013 14:58:23 +0000 (16:58 +0200)]
drm/i915: Do not check only primary displays

* On IBM-PC compatible systems, only one graphic adapter can be
  VGA-compatible at the same time

* This adapter is marked with the PCIS_DISPLAY_VGA capability in
  the PCI device list

* With KMS, we do not care about VGA compatibility anymore; let's
  just use whatever hardware is present

* Tested-with: A radeon X550 as primary display adapter

8 months agoacpi/pstate: AMD CPUs' Family >= 10h use same P-State controls
Sepherosa Ziehau [Sun, 4 Aug 2013 13:52:26 +0000 (21:52 +0800)]
acpi/pstate: AMD CPUs' Family >= 10h use same P-State controls

While I'm here, clean up the code little bit by using CPUID_TO_FAMILY
and cpu_exthigh.

8 months agodrm2: Synchronize with FreeBSD
François Tigeot [Sun, 4 Aug 2013 12:14:46 +0000 (14:14 +0200)]
drm2: Synchronize with FreeBSD

as of r253709 (2013-07-27): The pmap_qenter() and pmap_qremove() perform
TLB invalidation on its own, no need to call pmap_invalidate_range() one
more time.

8 months agobce.4: Mention the tranmission queue arbitration
Sepherosa Ziehau [Sun, 4 Aug 2013 12:28:42 +0000 (20:28 +0800)]
bce.4: Mention the tranmission queue arbitration

8 months agoloader.conf - Clarify kernel early boot comport operation
Matthew Dillon [Sun, 4 Aug 2013 02:39:03 +0000 (19:39 -0700)]
loader.conf - Clarify kernel early boot comport operation

* Add clarification.  sioX.port must also be specified for early kernel
  boot messages, otherwise the serial console doesn't activate until
  init is executed.

  Defaulting this value is difficult because missing serial ports can
  cause different units to probe to different ports.  Thus this is a
  required field if a serial console is desired.

8 months agoFix typo in some manpages: specifed -> specified
Sascha Wildner [Sat, 3 Aug 2013 18:13:53 +0000 (20:13 +0200)]
Fix typo in some manpages: specifed -> specified

8 months agokernel: Use TABs to indent in 'files'.
Sascha Wildner [Sat, 3 Aug 2013 08:33:50 +0000 (10:33 +0200)]
kernel: Use TABs to indent in 'files'.

8 months agokernel - Fix panic when usched is used to force a cpu w/the dfly scheduler (2)
Matthew Dillon [Fri, 2 Aug 2013 22:53:28 +0000 (15:53 -0700)]
kernel - Fix panic when usched is used to force a cpu w/the dfly scheduler (2)

* Missing file in last commit.

8 months agokernel - Fix sendfile() based deadlock
Matthew Dillon [Fri, 2 Aug 2013 22:51:23 +0000 (15:51 -0700)]
kernel - Fix sendfile() based deadlock

* Fix a sendfile() based deadlock.  It turns out that after all of
  that work we can't soft-busy the page anyway because it can deadlock
  against a vfs_msync() -> ... -> vm_object_page_clean() sequence.

Reported-by: pavalos
8 months agokernel/amr: Move amrd (disk) adding before amrp (cam passthrough).
Sascha Wildner [Fri, 2 Aug 2013 17:58:28 +0000 (19:58 +0200)]
kernel/amr: Move amrd (disk) adding before amrp (cam passthrough).

This fixes a panic seen when amr/amrp were compiled into the kernel.

Dragonfly-bug: <http://bugs.dragonflybsd.org/issues/2575>
Reported-by: justin
Actual-fix-by: sephe
8 months agokernel - Fix panic when usched is used to force a cpu w/the dfly scheduler
Matthew Dillon [Fri, 2 Aug 2013 17:46:40 +0000 (10:46 -0700)]
kernel - Fix panic when usched is used to force a cpu w/the dfly scheduler

* Fix a panic for 'usched dfly:0x1 sh', or other similar cpu forcing
  mechanic.

* The scheduler was not being notified of the forced migration which
  caused it to assert on a sanity check later on.  Add the needed
  infrastructure.

Reported-by: vsrinivas
8 months agokernel - Fix /dev/mem
Matthew Dillon [Fri, 2 Aug 2013 17:09:37 +0000 (10:09 -0700)]
kernel - Fix /dev/mem

* Fix offset vs page-index mistake for old-style device mmap.  This
  fixes /dev/mem and programs that use it like acpidump.

* There may be other issues.

Reported-by: David Shao bug #2576
8 months agokernel: Fix bus_dmamem_alloc()
François Tigeot [Fri, 2 Aug 2013 17:02:55 +0000 (19:02 +0200)]
kernel: Fix bus_dmamem_alloc()

Its call to pmap_change_attr() contained a typo which caused kernel
panics on some machines.

Reported-by: Markus Pfeiffer
With-advice-from: Venkatesh Srinivas

8 months agoigb.4: Mention the tranmission queue arbitration
Sepherosa Ziehau [Fri, 2 Aug 2013 09:55:55 +0000 (17:55 +0800)]
igb.4: Mention the tranmission queue arbitration

8 months agobnx.4: Mention the tranmission queue arbitration
Sepherosa Ziehau [Fri, 2 Aug 2013 09:43:30 +0000 (17:43 +0800)]
bnx.4: Mention the tranmission queue arbitration

8 months agoem/emx.4: Mention the tranmission queue arbitration
Sepherosa Ziehau [Fri, 2 Aug 2013 09:35:00 +0000 (17:35 +0800)]
em/emx.4: Mention the tranmission queue arbitration

8 months agokernel - Fix pageout algorithm regression
Matthew Dillon [Thu, 1 Aug 2013 20:30:14 +0000 (13:30 -0700)]
kernel - Fix pageout algorithm regression

* The pageout algorithm was trying to calculate when it might have
  to do 'a little extra' moving of pages active->inactive and wound
  up forcing an active->inactive queue run in all cases, even when
  the inactive queue was well over target.

* Remove the broken case.

* Greatly improves (as in restores) performance on systems with heavy
  paging and file caching activity.

8 months agokernel/drm2: Add a missing #include (for drm_free()).
Sascha Wildner [Thu, 1 Aug 2013 12:47:20 +0000 (14:47 +0200)]
kernel/drm2: Add a missing #include (for drm_free()).

8 months agomake_dev.9: Adjust make_dev_covering() description too.
Sascha Wildner [Thu, 1 Aug 2013 11:55:34 +0000 (13:55 +0200)]
make_dev.9: Adjust make_dev_covering() description too.

Pointed-out-by: alexh
8 months agoAdjust two devfs manual pages and some comments to match reality.
Sascha Wildner [Thu, 1 Aug 2013 11:17:32 +0000 (13:17 +0200)]
Adjust two devfs manual pages and some comments to match reality.

8 months agotcp: Allow socket/syncache inheritance between SO_REUSEPORT listen sockets
Sepherosa Ziehau [Wed, 31 Jul 2013 08:31:02 +0000 (16:31 +0800)]
tcp: Allow socket/syncache inheritance between SO_REUSEPORT listen sockets

This is intend to address the drawback of the following SO_REUSEPORT tcp
listen socket usage model:
Multiple processses create their own listen socket w/ SO_REUSEPORT, if
one of the process crashed, i.e. the listen socket is closed, then any
syncache, pending sockets on the completion and incompletion queues
are just dropped.

Compared w/ multiple processes sharing the same tcp listen socket, this
drawback could be unacceptable (e.g. when nginx reload configure).

This commit addresses this drawback by allowing another tcp listen socket
in the same local group, i.e. bound to the same listen port and address,
to inherit the syncache and pending sockets of the to-be-closed tcp
listen socket.  The tcp listen socket, which inherits the syncache and
pending sockets, is the last tcp listen socket in the same local group.

8 months agonrelease: Install a default pkg.conf from pkg(8)
François Tigeot [Thu, 1 Aug 2013 07:13:06 +0000 (09:13 +0200)]
nrelease: Install a default pkg.conf from pkg(8)

Do not hardcode the file contents anymore

8 months agoigb: Force status register reading in ifmedia status, if iface is not up
Sepherosa Ziehau [Thu, 1 Aug 2013 03:00:47 +0000 (11:00 +0800)]
igb: Force status register reading in ifmedia status, if iface is not up

Reported-by: dillon@
8 months agokernel - Add hw.cpu_mwait_haltand hw.cpu_mwait_spin
Matthew Dillon [Wed, 31 Jul 2013 23:34:28 +0000 (16:34 -0700)]
kernel - Add hw.cpu_mwait_haltand hw.cpu_mwait_spin

* Add globals with machine-specific meanings.  This allows us to operate
  with MONITOR/MWAIT and gain the same power savings that we get with
  ACPI halt mode when idle.  Waiting on a follow-up commit to set the
  the defaults.

* For example, if we sysctl hw.cpu_mwait_halt=0x44 hw.cpu_mwait_spin=0x11
  (and leaving machdep.cpu_idle_hlt=2) on a haswell cpu it will shave the
  idle power down by another 5W, from 25W to 20W on an idle Haswell Xeon
  3.4 GHz server chip without impacting wakeup performance too badly.

8 months agosh: Fix compilation for older DragonFly versions.
Peter Avalos [Wed, 31 Jul 2013 21:39:03 +0000 (14:39 -0700)]
sh: Fix compilation for older DragonFly versions.

O_CLOEXEC and F_DUPFD_CLOEXEC were added in the past year, and since sh
is a bootstrap tool, older versions of DragonFly won't be able to
compile this latest version.

Reviewed-by: swildner
8 months agodrm: consistently use drm_free()
Johannes Hofmann [Wed, 31 Jul 2013 20:30:56 +0000 (22:30 +0200)]
drm: consistently use drm_free()

Rename the drm specific kfree() wrapper to drm_free(), as free()
is confusing.

8 months agodrm: remove unused size parameter from drm_free
Johannes Hofmann [Wed, 31 Jul 2013 20:09:37 +0000 (22:09 +0200)]
drm: remove unused size parameter from drm_free

8 months agotest
Johannes Hofmann [Wed, 31 Jul 2013 19:00:34 +0000 (21:00 +0200)]
test

8 months agotest: Sync with FreeBSD.
Peter Avalos [Wed, 31 Jul 2013 04:07:10 +0000 (21:07 -0700)]
test: Sync with FreeBSD.

* Add examples and non-standard primaries to the manual page.
* Reduce code size of ops table.
* Put some static keywords in the source code.
* Accept == as an alias of = which is a popular GNU extension.
* Add more regression tests.

-We have eaccess(2) now, so use it.

Obtained-from:   FreeBSD

8 months agosh: Sync with FreeBSD
Peter Avalos [Wed, 31 Jul 2013 02:47:45 +0000 (19:47 -0700)]
sh: Sync with FreeBSD

* Recognize "--" and explicitly reject options in wait builtin.
* Mention possible ambiguities with $(( and ((.
* Write as much into the heredoc pipe as possible, to avoid forking.
* Don't modify exit status when break/continue/return passes !.
* Document a few expansions for the $PS1 and $PS2 environmental
  variables.
* Don't consider jobs -s/-p as reporting the status of jobs.
* Improve error handling in read builtin.
* Use O_CLOEXEC and F_DUPFD_CLOEXEC instead of separate fcntl() call.
* Remove linked list of stack marks.
* Allow multiple operands in wait builtin.
* Return status 127 for unknown jobs in wait builtin.
* Do not read from stdin if an error occurs during -i -c cmd.
* Remove mkinit.

Obtained-from:   FreeBSD

8 months agokernel/drm2: Some build and warning fixes.
Sascha Wildner [Wed, 31 Jul 2013 13:58:28 +0000 (15:58 +0200)]
kernel/drm2: Some build and warning fixes.

8 months agodrm: Fix incorrect usage of taskqueue_thread
François Tigeot [Wed, 31 Jul 2013 11:48:38 +0000 (13:48 +0200)]
drm: Fix incorrect usage of taskqueue_thread

Replace invalid occurences by taskqueue_thread[mycpuid]

8 months agogetservent.3: Adjust getservent() prototype.
Sascha Wildner [Wed, 31 Jul 2013 09:02:03 +0000 (11:02 +0200)]
getservent.3: Adjust getservent() prototype.

8 months agoi386: Partially revert 9e5e15787783090b6f8cc9f3dc990820c0d66248
François Tigeot [Wed, 31 Jul 2013 08:10:26 +0000 (10:10 +0200)]
i386: Partially revert 9e5e15787783090b6f8cc9f3dc990820c0d66248

* The new fake page handling changes were breaking assertions in the
  existing i386 pmap code.

* This commit fixes boot panics on i386

8 months agoboot - Clarify loader.conf documentation
Matthew Dillon [Wed, 31 Jul 2013 05:00:42 +0000 (22:00 -0700)]
boot - Clarify loader.conf documentation

* Add clarification for situations where you want the boot loader
  to use video output for IPMI purposes, but you want the kernel to
  use sio1.

8 months agoboot - Add loader.conf variable sioX.baud for console operation
Matthew Dillon [Wed, 31 Jul 2013 03:03:18 +0000 (20:03 -0700)]
boot - Add loader.conf variable sioX.baud for console operation

* We already have 'comconsole' and 'sioX.flags=0x10' to set the
  serial port to use as the console, which the kernel boot uses.
  Add in 'sioX.baud' to set the baud rate, so we don't have to
  compile a custom kernel.

* Useful for IPMI setups.

8 months agolibc/db: Sync with FreeBSD
Peter Avalos [Sun, 2 Jun 2013 14:22:33 +0000 (07:22 -0700)]
libc/db: Sync with FreeBSD

- libc/db/hash: cap auto-tuned block size with a value that actually
  works
- Consider flag == 0 as the same of flag == R_NEXT
- Minor changes from Berkeley DB 1.86 and further improvements from
  OpenBSD
- Allow O_SYNC and O_NOFOLLOW flags in dbopen()
- Plug memory leaks and a potential NULL dereference
- Simplify the logic when determining whether to zero out a db file to
  after open().
- When deleting a big key, the offset of an empty page should be bsize,
  not bsize-1
- Avoid overwriting the cursor page when the cursor page becomes the LRU
  page.
- Fix for sequential retrieval failure when using large key/data pairs.
- Fix a crash when iterating over a hash and removing its elements.
- Only squeeze a short key/value pair onto a page with other complete
  key/value pairs
- Return meaningful errno in overflow case
- Save errno before calling _close(), which may clear it
- Explicitly specify bit width for on-disk data structure.

Obtained-from:   FreeBSD

8 months agoatomic.9: add brackets in a C snippet
Joris GIOVANNANGELI [Tue, 30 Jul 2013 20:43:58 +0000 (22:43 +0200)]
atomic.9: add brackets in a C snippet

8 months agogetmntopts.3: Adjust manpage prototype.
Sascha Wildner [Tue, 30 Jul 2013 20:23:02 +0000 (22:23 +0200)]
getmntopts.3: Adjust manpage prototype.

8 months agogetfsstat.2: Fix getvfsstat() prototype.
Sascha Wildner [Tue, 30 Jul 2013 19:57:32 +0000 (21:57 +0200)]
getfsstat.2: Fix getvfsstat() prototype.

8 months agodlvsym.3: Restrict to documenting dlvsym().
Sascha Wildner [Tue, 30 Jul 2013 19:32:37 +0000 (21:32 +0200)]
dlvsym.3: Restrict to documenting dlvsym().

* Remove wrong prototype. dlsym() has its own manual page which has it
  correctly.

* Do not reference itself in SEE ALSO.

* Fix .Nm

8 months agomsgport.9: lwkt_dropmsg returns an int.
Sascha Wildner [Tue, 30 Jul 2013 19:11:18 +0000 (21:11 +0200)]
msgport.9: lwkt_dropmsg returns an int.

8 months agodrm: Properly initialize drm_debug_flag
glebius [Fri, 2 Nov 2012 05:26:33 +0000 (05:26 +0000)]
drm: Properly initialize drm_debug_flag

- If DRM_DEBUG_DEFAULT_ON is defined, then initialize drm_debug_flagi to
  all supported debugging bits.
- If DRM_DEBUG_DEFAULT_ON isn't defined, then initialize drm_debug_flag
  to zero.

DRM_DEBUG_DEFAULT_ON is defined when module is build with -DDEBUG_DRM
or if kernel config has 'options DEBUG_DRM'.

Reviewed by: kib

8 months agodrm/i915: Add no-lvds quirk for Supermicro X7SPA-H
Chris Wilson [Thu, 18 Oct 2012 19:07:01 +0000 (20:07 +0100)]
drm/i915: Add no-lvds quirk for Supermicro X7SPA-H

Reported-and-tested-by: Francois Tigeot <ftigeot@wolfpond.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=55375
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
8 months agodrm2: Hook to DragonFly's build infrastructure
François Tigeot [Thu, 7 Jun 2012 08:44:09 +0000 (10:44 +0200)]
drm2: Hook to DragonFly's build infrastructure

* The drm2+i915 code is built as kernel modules only

* Remove unneeded dependency on 'mem' device

8 months agodrm: disable drm_kms_helper_poll for now
Johannes Hofmann [Tue, 30 Jul 2013 19:42:40 +0000 (21:42 +0200)]
drm: disable drm_kms_helper_poll for now

8 months agodrm2: Comment out i915_info_sysctl_handler()
François Tigeot [Tue, 30 Jul 2013 19:31:34 +0000 (21:31 +0200)]
drm2: Comment out i915_info_sysctl_handler()

8 months agoi915_gem.c: Revisit initialization code
François Tigeot [Sun, 21 Jul 2013 05:41:49 +0000 (07:41 +0200)]
i915_gem.c: Revisit initialization code

8 months agokernel: Correctly handle fake pages
Matthew Dillon [Fri, 12 Jul 2013 06:35:54 +0000 (08:35 +0200)]
kernel: Correctly handle fake pages

8 months agodrm2: Make the PAT code more compatible with FreeBSD
François Tigeot [Thu, 18 Jul 2013 18:43:28 +0000 (20:43 +0200)]
drm2: Make the PAT code more compatible with FreeBSD

* drm_mmap() still has issues with the memattr parameter

8 months agokernel: PAT work, test_and_set_bit()
Matthew Dillon [Tue, 25 Jun 2013 18:07:05 +0000 (20:07 +0200)]
kernel: PAT work, test_and_set_bit()

Partially based on work by
Aggelos Economopoulos <aoiko@cc.ece.ntua.gr>

8 months agodrm: preliminary replacement for vm_phys_fictitious functions
Johannes Hofmann [Thu, 23 May 2013 17:37:22 +0000 (19:37 +0200)]
drm: preliminary replacement for vm_phys_fictitious functions

8 months agokernel: Add atomic_load_acq_64()
François Tigeot [Tue, 30 Jul 2013 18:35:59 +0000 (20:35 +0200)]
kernel: Add atomic_load_acq_64()

* This routine was already implemented on x86_64 under another name

* Take the FreeBSD i586 version for i386; this variant use a chmxchg8b
  instruction and require at least a Pentium CPU to run

8 months agodrm: lockmgr() returns 0 on success
Johannes Hofmann [Tue, 30 Jul 2013 17:32:25 +0000 (19:32 +0200)]
drm: lockmgr() returns 0 on success

8 months agodrm: Implement vm_fault_quick_hold_pages and vm_page_unhold_pages
Johannes Hofmann [Tue, 23 Jul 2013 12:08:46 +0000 (14:08 +0200)]
drm: Implement vm_fault_quick_hold_pages and vm_page_unhold_pages

Also call vm_page_busy_wait() before vm_page_unwire() to avoid
page not busy asserts in vm_page_unwire() as recommended by dillon.

8 months agodrm2 porting: Small changes
Johannes Hofmann [Tue, 30 Jul 2013 17:31:17 +0000 (19:31 +0200)]
drm2 porting: Small changes

* don't pass handle to default_pager_alloc()

* call vm_map_find() with fitit TRUE

* use IDX_TO_OFF()/OFF_TO_IDX() macros

8 months agodrm: switch back from kfree to free and add a NULL check
Johannes Hofmann [Tue, 30 Jul 2013 17:09:38 +0000 (19:09 +0200)]
drm: switch back from kfree to free and add a NULL check

8 months agodrm2: Properly handle requests passing page boundaries
Matthew Dillon [Mon, 29 Jul 2013 20:52:04 +0000 (22:52 +0200)]
drm2: Properly handle requests passing page boundaries

Change pmap_mapdev_attr() call in drm2 to properly handle
requests passing page boundaries.

8 months agodrm2: Translate some vm calls, comment out others
François Tigeot [Tue, 30 Jul 2013 16:59:22 +0000 (18:59 +0200)]
drm2: Translate some vm calls, comment out others

8 months agodrm2: Replace or comment out devfs cdevpriv calls
Johannes Hofmann [Tue, 30 Jul 2013 16:48:13 +0000 (18:48 +0200)]
drm2: Replace or comment out devfs cdevpriv calls

8 months agoi915: fix sf_buf_alloc() calls
François Tigeot [Tue, 30 Jul 2013 14:41:39 +0000 (16:41 +0200)]
i915: fix sf_buf_alloc() calls

8 months agoi915: Rename pipe to i915_pipe
François Tigeot [Tue, 30 Jul 2013 14:33:07 +0000 (16:33 +0200)]
i915: Rename pipe to i915_pipe

8 months agodrm2: replace callout_schedule by callout_reset()
François Tigeot [Tue, 30 Jul 2013 14:31:21 +0000 (16:31 +0200)]
drm2: replace callout_schedule by callout_reset()

8 months agoi915: replace several sleep functions by DELAY()
François Tigeot [Tue, 30 Jul 2013 14:29:54 +0000 (16:29 +0200)]
i915: replace several sleep functions by DELAY()

8 months agodrm2: Small porting fixes
François Tigeot [Tue, 30 Jul 2013 14:27:10 +0000 (16:27 +0200)]
drm2: Small porting fixes

* Add missing rb-tree function prototype

* Replace member2struct() by container_of() like it was done
  in the original Linux code

* Fix taskqueue_start_threads() call

* Remove unused vm_mmap call

8 months agoiicbus: add intel_iic to iicbb driver
Johannes Hofmann [Tue, 30 Jul 2013 14:05:56 +0000 (16:05 +0200)]
iicbus: add intel_iic to iicbb driver

8 months agodrm2: Port d_mmap_single() from FreeBSD
Johannes Hofmann [Wed, 24 Apr 2013 17:31:38 +0000 (19:31 +0200)]
drm2: Port d_mmap_single() from FreeBSD

8 months agodrm2: Handle device creation, translate dev_ops functions
François Tigeot [Tue, 30 Jul 2013 11:29:00 +0000 (13:29 +0200)]
drm2: Handle device creation, translate dev_ops functions

* drm_attach, drm_open, drm_close, drm_mmap, drm_read, drm_ioctl modified
  following the model of the existing functions in the old drm/ implementation

* poll and select don't exist on DragonFly and are replaced by kqueue

* Additional fixes from Johannes Hofmann to set ap->a_result in drm_mmap()
  and resolve crashes in drm_open() and drm_ioctl()

8 months agoproto: Fix copy-n-paste error; PR_ASYNC_RCVD should be 0x0800.
Sepherosa Ziehau [Tue, 30 Jul 2013 13:19:04 +0000 (21:19 +0800)]
proto: Fix copy-n-paste error; PR_ASYNC_RCVD should be 0x0800.

It was defined to the same value as PR_ASYNC_SEND.  However, in the
current code base, it does not hurt, since only TCP has this flag set.

8 months agokernel/bus: Remove NULL check after kmalloc with M_INTWAIT (w/o M_NULLOK).
Sascha Wildner [Tue, 30 Jul 2013 10:44:01 +0000 (12:44 +0200)]
kernel/bus: Remove NULL check after kmalloc with M_INTWAIT (w/o M_NULLOK).

Pointed-out-by: sephe
8 months agoaio_return.3: The return type is ssize_t, not int.
Sascha Wildner [Tue, 30 Jul 2013 10:42:21 +0000 (12:42 +0200)]
aio_return.3: The return type is ssize_t, not int.

8 months agokernel: add OBJT_MGTDEVICE in some more places
Johannes Hofmann [Tue, 30 Jul 2013 06:12:34 +0000 (08:12 +0200)]
kernel: add OBJT_MGTDEVICE in some more places

8 months agokernel: Port new device_pager interface from FreeBSD
Johannes Hofmann [Mon, 29 Jul 2013 20:39:56 +0000 (22:39 +0200)]
kernel: Port new device_pager interface from FreeBSD

Some parts implemented by François Tigeot and Matthew Dillon

8 months agokernel - Do not invalidate the vnode+children in the NFS core on ESTALE
Matthew Dillon [Mon, 29 Jul 2013 22:11:09 +0000 (15:11 -0700)]
kernel - Do not invalidate the vnode+children in the NFS core on ESTALE

* When NFS encounters ESTALE it would try to invalidate the related
  namecache topology in the core socket code, requiring an exclusive
  lock on related namecache entries.  This is not compatible with
  shared namecache locking because it can occur as part of any operation,
  even simple GETATTRs.

* Remove the invalidation for now.  The kernel already has a high-level
  solution in place for terminal nodes but we will also need one for
  traversals.

8 months agokernel/pci: Fix extern in pcivar.h and clean up a bit.
Sascha Wildner [Mon, 29 Jul 2013 00:15:08 +0000 (02:15 +0200)]
kernel/pci: Fix extern in pcivar.h and clean up a bit.

8 months ago<wchar.h>: We don't have wcswcs(), so remove prototype.
Sascha Wildner [Sun, 28 Jul 2013 22:24:12 +0000 (00:24 +0200)]
<wchar.h>: We don't have wcswcs(), so remove prototype.

8 months agousr.bin: fix more mandoc(1) warnings
Franco Fichtner [Sun, 28 Jul 2013 13:20:10 +0000 (15:20 +0200)]
usr.bin: fix more mandoc(1) warnings

Unfortunately, most other man pages come from the contrib/ dir,
each with a couple of associated warnings that even sed(1) can't
completely amend.

8 months agoRemove 'device firmware' from various manpages because it is not optional.
Sascha Wildner [Sun, 28 Jul 2013 09:41:12 +0000 (11:41 +0200)]
Remove 'device firmware' from various manpages because it is not optional.

8 months agokether_ntoa.9: Small whitespace fix.
Sascha Wildner [Sun, 28 Jul 2013 01:38:18 +0000 (03:38 +0200)]
kether_ntoa.9: Small whitespace fix.

8 months agolibm: Fix a typo in the MLINKS line for log2l(3).
Sascha Wildner [Sun, 28 Jul 2013 00:45:25 +0000 (02:45 +0200)]
libm: Fix a typo in the MLINKS line for log2l(3).

8 months agostrchr.3: Fix typo, it's strchrnul, not strrchrnul.
Sascha Wildner [Sun, 28 Jul 2013 00:23:19 +0000 (02:23 +0200)]
strchr.3: Fix typo, it's strchrnul, not strrchrnul.

8 months agoFix typo in MLINKS line for taskqueue_drain_timeout(9).
Sascha Wildner [Sun, 28 Jul 2013 00:16:43 +0000 (02:16 +0200)]
Fix typo in MLINKS line for taskqueue_drain_timeout(9).

8 months agokernel: Stop installing pst(4) module and manual page on x86_64.
Sascha Wildner [Sat, 27 Jul 2013 22:51:03 +0000 (00:51 +0200)]
kernel: Stop installing pst(4) module and manual page on x86_64.

It is i386 only.

8 months agotaskqueue.9: Use .Er for errors numbers.
Sascha Wildner [Sat, 27 Jul 2013 21:11:23 +0000 (23:11 +0200)]
taskqueue.9: Use .Er for errors numbers.

8 months ago<sys/proc.h>: Remove suser() and suser_cred() prototypes.
Sascha Wildner [Sat, 27 Jul 2013 20:41:59 +0000 (22:41 +0200)]
<sys/proc.h>: Remove suser() and suser_cred() prototypes.

suser_*() was replaced with priv_*() more than 4 years ago.

Reported-by: Joris Giovannangeli <joris@giovannangeli.fr>
8 months agoDocument isgreater(3) and friends.
Sascha Wildner [Sat, 27 Jul 2013 20:19:12 +0000 (22:19 +0200)]
Document isgreater(3) and friends.

8 months agowindow.1: unbreak macros, hyphens are `-' not minus `\-'
Franco Fichtner [Sat, 27 Jul 2013 13:05:27 +0000 (15:05 +0200)]
window.1: unbreak macros, hyphens are `-' not minus `\-'

8 months agohexdump(1): clean up tables in man pages, output is lower-case
Franco Fichtner [Sat, 27 Jul 2013 12:25:14 +0000 (14:25 +0200)]
hexdump(1): clean up tables in man pages, output is lower-case

8 months agosed.1/sail.6: Fix section references and a function name.
Sascha Wildner [Fri, 26 Jul 2013 15:36:00 +0000 (17:36 +0200)]
sed.1/sail.6: Fix section references and a function name.

8 months agosail.6: mdoc conversion
Franco Fichtner [Thu, 25 Jul 2013 17:19:45 +0000 (19:19 +0200)]
sail.6: mdoc conversion

Synced from parts of both OpenBSD and NetBSD, with a little
tweaking in the AUTHORS section.  mandoc(1) warnings are gone.

8 months agosys/boot: Remove some unused externs.
Sascha Wildner [Thu, 25 Jul 2013 17:43:32 +0000 (19:43 +0200)]
sys/boot: Remove some unused externs.

8 months agodhclient.conf.5: .Nm needs a parameter only once.
Sascha Wildner [Thu, 25 Jul 2013 16:29:09 +0000 (18:29 +0200)]
dhclient.conf.5: .Nm needs a parameter only once.

8 months agounquote section names in man pages
Franco Fichtner [Thu, 18 Jul 2013 21:07:22 +0000 (23:07 +0200)]
unquote section names in man pages

While there, make them upper case, try to simplify and
consolidate, zap comments that nobody will ever see again
and tweak one AUTHORS instance with '.An -nosplit'.

8 months agoresolve mandoc(1) warnings in games/
Franco Fichtner [Thu, 25 Jul 2013 14:48:56 +0000 (16:48 +0200)]
resolve mandoc(1) warnings in games/

larn.6 was redesigned in parts for readability.
sail.6 needs a separate commit.

8 months agoadjust grammar in a few man pages: s/was/were/
Franco Fichtner [Wed, 24 Jul 2013 20:25:19 +0000 (22:25 +0200)]
adjust grammar in a few man pages: s/was/were/