Sascha Wildner [Sun, 16 May 2010 18:03:10 +0000 (20:03 +0200)]
Add a missing break in the 64 bit vkernel, too.
Sascha Wildner [Sun, 16 May 2010 17:41:01 +0000 (19:41 +0200)]
vkernel: To restart the scan, npv needs to be reset, not pv.
Matthew Dillon [Sun, 16 May 2010 17:46:35 +0000 (10:46 -0700)]
kernel - zero pages during idle
Bring in base work by Venkatesh Srinivas:
* vm/vm_zeropage.c and bzeront() code.
Plus make the following adjustments:
* Move the bzeront code from platform/ to cpu/ and add a x86_64 version
of bzeront().
* Expose the page zeroing rate via sysctl and adjust the default upwards.
* Expose the movnti feature via sysctl (defaults to off).
* Change poll interval from 1 second to 1/10 second.
* Correct a bug where the MP lock was not being initially released. The
thread is created with the MP lock held. This was causing the hysteresis
check to fail.
* Correct a bug where vm_page_zero_count was being double-incremented
due to changes in how the zerod page is freed.
* Clean up the code syntax a bit.
Submitted-by: Venkatesh Srinivas <me@endeavour.zapto.org>
Sascha Wildner [Sun, 16 May 2010 17:26:16 +0000 (19:26 +0200)]
vkernel: Fix a wrong check of netif_set_tapflags()'s return value.
Sascha Wildner [Sun, 16 May 2010 15:39:12 +0000 (17:39 +0200)]
kx86_64_set_watch(): Add a missing 'break'.
Sascha Wildner [Sun, 16 May 2010 01:46:31 +0000 (03:46 +0200)]
cxm(4) doesn't depend on smbus(4).
Reported-by: Thomas Klausner <wiz@netbsd.org>
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1766>
Sascha Wildner [Sun, 16 May 2010 01:45:42 +0000 (03:45 +0200)]
Fix compiling iic(4) on x86_64 by adding <machine/iic.h>.
Reported-by: Thomas Klausner <wiz@netbsd.org>
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1766>
Matthew Dillon [Sat, 15 May 2010 16:54:37 +0000 (09:54 -0700)]
kernel - Update random number generator
* Update the random number generator with recommended changes to IBAA.
This addresses a short-cycle problem and prevents bad initial states.
* Passes diehard (as did the original).
* Note that DragonFly continuously injects entropy and was likely not
subject to these issues, and with these changes is even less so.
Submitted-by: Robin Carey <robin.carey1@googlemail.com>
Sascha Wildner [Fri, 14 May 2010 23:07:03 +0000 (01:07 +0200)]
Fix the x86_64 kernel build with 'options BUS_DEBUG'.
Reported-by: Thomas Klausner <wiz@netbsd.org>
Venkatesh Srinivas [Sun, 9 May 2010 20:32:07 +0000 (13:32 -0700)]
Remove unused vm.stats.misc.cnt_prezero sysctl.
Sascha Wildner [Fri, 14 May 2010 00:58:10 +0000 (02:58 +0200)]
cxm(4): Right now, cxm(4) isn't built as a module.
Reported-by: Thomas Klausner <wiz@netbsd.org>
Venkatesh Srinivas [Fri, 30 Apr 2010 07:56:48 +0000 (00:56 -0700)]
patch: Free temporary buffer after stripping.
Imported from OpenBSD 2010/01.
Sascha Wildner [Thu, 13 May 2010 20:16:56 +0000 (22:16 +0200)]
umass(4): Add IDs for the Sony Cybershot, model DSC-W80.
Submitted-by: Francis Gudin <fgudin@nerim.net>
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1765>
Sascha Wildner [Thu, 13 May 2010 19:52:57 +0000 (21:52 +0200)]
Silence some warnings in the kernel.
Sascha Wildner [Wed, 12 May 2010 19:39:06 +0000 (21:39 +0200)]
release.7: The USB image is now built by default.
Sascha Wildner [Wed, 12 May 2010 19:34:25 +0000 (21:34 +0200)]
Add a manual page for the ioprio_get() and ioprio_set() system calls.
Matthew Dillon [Wed, 12 May 2010 17:48:32 +0000 (10:48 -0700)]
hammer utility - Update manual page
* Update the manual page with information on how to properly restore from
a snapshot.
Matthew Dillon [Wed, 12 May 2010 17:42:12 +0000 (10:42 -0700)]
release build - 'img' is now the default.
* Both the ISO and the IMG will be generated by default now instead of just
the ISO.
Sascha Wildner [Tue, 11 May 2010 03:57:00 +0000 (05:57 +0200)]
Sync zoneinfo database with tzdata2010j from elsie.nci.nih.gov
northamerica: 8.30 -> 8.31
zone.tab: 8.35 -> 8.36
Bahia de Banderas (municipality in the Mexican state of Nayarit) changed
time zone from UTC-7 to UTC-6. This requires introducing a new zone
(America/Bahia_Banderas).
Sascha Wildner [Sun, 9 May 2010 23:15:08 +0000 (01:15 +0200)]
Increase the LiveCD's /var a bit since it was at 104% capacity.
Sascha Wildner [Sun, 9 May 2010 18:20:41 +0000 (20:20 +0200)]
Add a mutex(9) manual page.
Submitted-by: Venkatesh Srinivas <me@endeavour.zapto.org>
Sascha Wildner [Sun, 9 May 2010 10:17:30 +0000 (12:17 +0200)]
Add manual pages for pfind(), pgfind() and zpfind() (taken from FreeBSD).
Sascha Wildner [Sat, 8 May 2010 22:37:15 +0000 (00:37 +0200)]
make upgrade: Don't remove rc scripts which could be from pkgsrc.
Sascha Wildner [Sat, 8 May 2010 22:24:43 +0000 (00:24 +0200)]
Makefile_upgrade.inc: Fix some merging artifacts.
Sascha Wildner [Sat, 8 May 2010 22:22:45 +0000 (00:22 +0200)]
make upgrade: Remove BIND's rc script, too.
Sascha Wildner [Sat, 8 May 2010 22:17:34 +0000 (00:17 +0200)]
Remove some more (BIND related) files via 'make upgrade'.
Sascha Wildner [Sat, 8 May 2010 20:43:42 +0000 (22:43 +0200)]
pthread* manual pages: <pthread_np.h> needs <pthread.h>.
Sascha Wildner [Sat, 8 May 2010 19:56:20 +0000 (21:56 +0200)]
extattr.9: Some cosmetic changes.
Sascha Wildner [Sat, 8 May 2010 19:56:02 +0000 (21:56 +0200)]
Bring in a extattr(2) manual page (from FreeBSD, with changes).
Sascha Wildner [Sat, 8 May 2010 06:56:16 +0000 (08:56 +0200)]
ieee80211.9: Comment out reference to ieee80211_amrr(9).
Sascha Wildner [Sat, 8 May 2010 05:54:12 +0000 (07:54 +0200)]
Remove some unnecessary lines in Makefile_upgrade.inc.
Sascha Wildner [Fri, 7 May 2010 18:52:55 +0000 (20:52 +0200)]
make.conf(5): Remove some no longer used (BIND related) options.
Sascha Wildner [Fri, 7 May 2010 10:03:44 +0000 (12:03 +0200)]
mtree: Remove /usr/include/isc
Sascha Wildner [Thu, 6 May 2010 21:00:57 +0000 (23:00 +0200)]
Makefile_upgrade.inc: Remove conflict marker.
On-behalf-of: lentferj
Jan Lentfer [Thu, 6 May 2010 20:53:42 +0000 (22:53 +0200)]
BIND: add pkgsrc/bind96 to nrelease
* Add BIND 9.6 to nrelease so it will be build
as a replacement for the base BIND during CD builds.
Jan Lentfer [Thu, 22 Apr 2010 18:33:47 +0000 (20:33 +0200)]
BIND removal: more cleanup
* remove more BIND leftovers
Jan Lentfer [Mon, 8 Mar 2010 14:50:00 +0000 (15:50 +0100)]
BIND-Removal: Add removals to make upgrade.
Jan Lentfer [Mon, 8 Mar 2010 10:17:32 +0000 (11:17 +0100)]
BIND: entirely purge BIND and related stuff from base
Jan Lentfer [Sat, 6 Mar 2010 19:15:27 +0000 (20:15 +0100)]
BIND: remove bind/ from contrib.
First step to entirely get rid of BIND.
Jan Lentfer [Wed, 5 May 2010 20:17:40 +0000 (22:17 +0200)]
iostat - add read/write details to output
This adds option "-D" that will output read/write
details to the output as described in the manpage.
This is based on Matt Dillon's addition to systat.
Matthew Dillon [Fri, 30 Apr 2010 18:10:06 +0000 (11:10 -0700)]
nrelease - try to workaround a problem with ./bootstrap
* setenv share_dir during the bootstrap build to try to work around a
problem where recent changes in the build cause bmake to try to access
the system mk files in /usr/share/mk.
Matthew Dillon [Fri, 30 Apr 2010 18:08:14 +0000 (11:08 -0700)]
kernel - Try to fix NULL pointer issue in syncache_timer_handler()
* There seems to be a case where a tcpcb's inp can be NULL when accessed
from syncache_timer_handler(). Try to handle it.
Matthew Dillon [Fri, 30 Apr 2010 18:06:56 +0000 (11:06 -0700)]
kernel - Disallow dsioctl when no media is present
* Attempt to fix a panic which can occur when attempts are made to
call ioctl() via a slice/partition on removable drives with no media.
Venkatesh Srinivas [Fri, 30 Apr 2010 06:58:29 +0000 (23:58 -0700)]
Remove references to VAX and MIPS from ddb(4).
Samuel J. Greear [Fri, 30 Apr 2010 04:30:05 +0000 (22:30 -0600)]
kernel - mmap offset is invalid for MAP_ANON
Submitted-by: Venkatesh Srinivas
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1723>
Sascha Wildner [Fri, 30 Apr 2010 10:03:52 +0000 (12:03 +0200)]
bpf(4): Fix the division by zero check in bpf_validate().
BPF_RVAL() was being used where BPF_SRC() would have been correct.
Reported-by: Guy Harris <guy@alum.mit.edu>
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1748>
Matthew Dillon [Fri, 30 Apr 2010 02:48:58 +0000 (19:48 -0700)]
kernel - Fix resident_count problems with kernel_pmap & related crashes
* kernel_pmap.pm_stats.resident_count could get out of sync due to the
lwbuf code calling kmem_free() on KVM with pages that were entered
via pmap_kenter(). Delete the pages before calling kmem_free().
This in turn caused various failures and kernel panics due to conditionals
based on resident_count == 0. Heavy sendfile() activity could trigger
the bug but it was taking a few days for the resident_count to decrement
to zero.
* Fix a similar issue in zdestroy() on ZONE_INTERRUPT zones. Nothing calls
this routine so it was not a vector for crashes.
* Document the case.
Sascha Wildner [Thu, 29 Apr 2010 22:45:54 +0000 (00:45 +0200)]
ieee80211.9: Fix typo.
Sascha Wildner [Thu, 29 Apr 2010 20:35:01 +0000 (22:35 +0200)]
ieee80211.9: Remove some references to manual pages which don't exist.
Sascha Wildner [Thu, 29 Apr 2010 20:34:24 +0000 (22:34 +0200)]
ath.4: We don't have a pcic.4 manual page.
Sascha Wildner [Thu, 29 Apr 2010 20:33:01 +0000 (22:33 +0200)]
ieee80211_proto.9: Fix typo in function name.
Sascha Wildner [Thu, 29 Apr 2010 20:29:27 +0000 (22:29 +0200)]
ieee80211_scan.9: Fix typo in function name.
Sascha Wildner [Thu, 29 Apr 2010 20:18:05 +0000 (22:18 +0200)]
Add a regdomain.5 manual page (from FreeBSD).
Sascha Wildner [Thu, 29 Apr 2010 20:09:16 +0000 (22:09 +0200)]
Comment out a reference to iwi(4) for now until it is ported.
Sascha Wildner [Thu, 29 Apr 2010 19:58:56 +0000 (21:58 +0200)]
ieee80211_{ddb,radiotap}.9: Remove some unneeded .Pp's.
Sascha Wildner [Thu, 29 Apr 2010 19:58:07 +0000 (21:58 +0200)]
Disable ieee80211_amrr.9 for now.
This was replaced by the new ratectl code.
Sascha Wildner [Wed, 28 Apr 2010 23:23:14 +0000 (01:23 +0200)]
mptutil(8): Misc. cleanup
* Raise WARNS to 6
* Move CVS IDs to the comments
* Bump date in the manual page
YONETANI Tomokazu [Wed, 28 Apr 2010 15:57:05 +0000 (00:57 +0900)]
ips - Make use of new dumping scheme
YONETANI Tomokazu [Wed, 28 Apr 2010 15:57:04 +0000 (00:57 +0900)]
ips - The comment no longer applies as b_blkno has been yanked off years ago.
Sascha Wildner [Wed, 28 Apr 2010 22:48:56 +0000 (00:48 +0200)]
mkioctls: Miscellaneous cleanup.
* Add a proper '#!/bin/sh' since this is a shell script.
* Clean up the list of excluded /usr/include/* softlinks.
* Remove unneeded #include's.
* Remove some empty lines.
Sascha Wildner [Wed, 28 Apr 2010 13:41:09 +0000 (15:41 +0200)]
make upgrade: ieee80211_free_node() still exists.
Sascha Wildner [Wed, 28 Apr 2010 12:53:11 +0000 (14:53 +0200)]
ieee80211*.9: Fix include paths.
Sascha Wildner [Wed, 28 Apr 2010 12:50:33 +0000 (14:50 +0200)]
ieee80211_node.9: Fix section number.
Sascha Wildner [Wed, 28 Apr 2010 12:49:13 +0000 (14:49 +0200)]
ieee80211_{amrr,vap}.9: Fix typos in .Dt
Sascha Wildner [Wed, 28 Apr 2010 12:48:15 +0000 (14:48 +0200)]
ieee80211.9: Adjust .Dt
Sascha Wildner [Wed, 28 Apr 2010 12:47:13 +0000 (14:47 +0200)]
Sync our ieee80211*(9) manual pages with FreeBSD.
b86 [Wed, 28 Apr 2010 06:35:56 +0000 (01:35 -0500)]
fixup errors for mkdir & rmdir '/' - EEXIST & EACCES, respectively
Sascha Wildner [Tue, 27 Apr 2010 20:16:17 +0000 (22:16 +0200)]
Sync ath.4 and ath_hal.4 manual pages with FreeBSD.
Sascha Wildner [Tue, 27 Apr 2010 20:04:53 +0000 (22:04 +0200)]
Yet another round of typo fixes in manpages and messages.
Sascha Wildner [Tue, 27 Apr 2010 19:49:59 +0000 (21:49 +0200)]
ral.4/firmware.9: Fix some mdoc issues in two manual pages.
Alex Hornung [Tue, 27 Apr 2010 06:29:52 +0000 (06:29 +0000)]
Remove ieee80211_ioctl.9 from Makefile, too
Reported-by: Dylan Reinhold
Sascha Wildner [Tue, 27 Apr 2010 00:37:37 +0000 (02:37 +0200)]
Remove ieee80211_ioctl.9 manual page and MLINKS.
Sascha Wildner [Mon, 26 Apr 2010 17:25:37 +0000 (19:25 +0200)]
Bring in FreeBSD's tools/tools/{ath,net80211}.
Sascha Wildner [Mon, 26 Apr 2010 16:37:33 +0000 (18:37 +0200)]
Move wlandebug(8) to usr.sbin (like FreeBSD) and sync.
Sascha Wildner [Mon, 26 Apr 2010 16:26:56 +0000 (18:26 +0200)]
ral.4: Sync with FreeBSD.
Matthew Dillon [Mon, 26 Apr 2010 16:04:21 +0000 (09:04 -0700)]
kernel - make sysent update
* Update for changes in the extattr family of system calls.
Matthew Dillon [Mon, 26 Apr 2010 16:03:04 +0000 (09:03 -0700)]
kernel - Update extattr infrastructure
* Update the extattr infrastructure to match FreeBSD. Numerous arguments
have changed in the system calls and created an issue with libarchive.
Sascha Wildner [Mon, 26 Apr 2010 10:11:12 +0000 (12:11 +0200)]
diskless: Miscellaneous fixes.
* Increase the space reserved for /etc whose size has grown considerably
due to the blacklists in /etc/ssh.
* Remove the check for devfs which has been around long enough.
* Use tmpfs instead of mfs.
* Pass whatever is in md_size (e.g. 10M) directly to mount_tmpfs. For
backwards compatibility, treat number-only values as sectors (i.e.,
multiply by 512 and pass that to mount_tmpfs).
Submitted-by: Rumko <rumcic@gmail.com>
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1732>
Rumko [Wed, 14 Apr 2010 21:09:48 +0000 (21:09 +0000)]
Wrong variable used.
Alex Hornung [Mon, 26 Apr 2010 08:27:22 +0000 (08:27 +0000)]
dsched.h - don't provide _KERNEL_STRUCTURES stuff
* Don't provide anything for _KERNEL_STRUCTURES, since that would
require sysctl.h to export the sysctl_ctx_list for _KERNEL_STRUCTURES,
too.
Reported-by: luxh, Siju George
Sascha Wildner [Mon, 26 Apr 2010 06:03:50 +0000 (08:03 +0200)]
Really exclude the ndis(4) manual page from the build for now.
Sascha Wildner [Sun, 25 Apr 2010 23:54:22 +0000 (01:54 +0200)]
kern/subr_firmware.c: Oops, forgot a {
Sascha Wildner [Sun, 25 Apr 2010 22:19:26 +0000 (00:19 +0200)]
firmware(9): Check for securelevel > 0 instead of PRIV_ROOT.
The patch is modeled after FreeBSD and fixes a panic when loading a
firmware image.
Submitted-by: Johannes Hofmann <johannes.hofmann@gmx.de>
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1735>
Alex Hornung [Sun, 25 Apr 2010 21:21:24 +0000 (21:21 +0000)]
dsched - Support policy switching via sysctl
* Add the sysctl dsched.policy tree to show the current policy of disks
/ serial numbers of disks and allow for switching to another available
policy.
Requested-by: Sascha Wildner
Sascha Wildner [Sun, 25 Apr 2010 14:30:58 +0000 (16:30 +0200)]
Move dsched to sys/kern/.
Sascha Wildner [Sun, 25 Apr 2010 12:53:16 +0000 (14:53 +0200)]
Remove firmware(9) from LINT, too.
Sascha Wildner [Sun, 25 Apr 2010 12:50:29 +0000 (14:50 +0200)]
Make firmware(9) standard again instead of optional.
ral(4), which is in GENERIC, uses it and we don't want all people with
GENERIC-derived systems to have to add 'device firmware' to their
configs.
Sascha Wildner [Sun, 25 Apr 2010 12:00:35 +0000 (14:00 +0200)]
ifconfig(8): Raise WARNS to 2 and fix the resulting warnings.
Sascha Wildner [Sun, 25 Apr 2010 11:23:15 +0000 (13:23 +0200)]
firmware(9): GC our old firmware framework in favor of the one from FreeBSD.
* Move the helper module to kern/firmware and name it firmware.ko. Also
make it buildable into the kernel. Add it to GENERIC.
* Adjust mxge(4) to use the new framework, too. Therefore, bring in firmware
modules from FreeBSD.
* Update the firmware(9) manual page.
* Bring in other missing bits and pieces (share/examples/kld/firmware).
* Adjust 'make upgrade'.
Sascha Wildner [Sat, 24 Apr 2010 23:43:22 +0000 (01:43 +0200)]
Remove /usr/include/kadm5 and sort etc/mtree/BSD.include.dist.
Sascha Wildner [Sat, 24 Apr 2010 20:55:20 +0000 (22:55 +0200)]
Sync the wlan*(4) manual pages with FreeBSD for the 802.11 update.
Sascha Wildner [Sat, 24 Apr 2010 14:11:31 +0000 (16:11 +0200)]
Adjust a bit more for the 802.11 upgrade.
Sascha Wildner [Sat, 24 Apr 2010 14:07:35 +0000 (16:07 +0200)]
mptutil.8: Remove trailing whitespace.
Sascha Wildner [Sat, 24 Apr 2010 14:07:09 +0000 (16:07 +0200)]
mount_nfs.8: Write "RFC xxxx" instead of "RFCxxxx".
Sascha Wildner [Sat, 24 Apr 2010 14:06:21 +0000 (16:06 +0200)]
pthread.3: Add missing section.
Sascha Wildner [Sat, 24 Apr 2010 13:17:39 +0000 (15:17 +0200)]
Adjust manual page installation for the 802.11 upgrade.
Sascha Wildner [Sat, 24 Apr 2010 10:32:21 +0000 (12:32 +0200)]
evtr: ktrfmt.tab.h is not supposed to be installed to /usr/include.
Sascha Wildner [Sat, 24 Apr 2010 01:47:23 +0000 (03:47 +0200)]
manpages: Fix some mdoc issues and remove trailing whitespace.
Sascha Wildner [Sat, 24 Apr 2010 01:45:23 +0000 (03:45 +0200)]
xstr(1): Sync with FreeBSD.
Alex Hornung [Fri, 23 Apr 2010 10:17:09 +0000 (10:17 +0000)]
dsched - serno support
* Add support for serno loader tunables, e.g. dsched.policy.WD1293193 =
"fq".
* Incidentally do another name change on the loader tunables from
kern.dsched.* to dsched.* to have the same namespace as the sysctls.
* Add a sysctl dsched.policies showing the currently available policies.