Hasso Tepper [Tue, 31 Mar 2009 17:07:06 +0000 (20:07 +0300)]
Add a comment for reminder about nocache.
Hasso Tepper [Tue, 31 Mar 2009 17:03:03 +0000 (20:03 +0300)]
Load the right microcode for RS780.
Obtained-from: FreeBSD
Peter Avalos [Wed, 1 Apr 2009 03:55:41 +0000 (03:55 +0000)]
Fix typo in cpdup.1.
Matthew Dillon [Wed, 1 Apr 2009 03:34:54 +0000 (20:34 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Wed, 1 Apr 2009 03:32:22 +0000 (20:32 -0700)]
vkernel: Fix startup race with I/O cothread support.
The cothread interlocks using pthread calls but there is a small window
of opportunity where a cpu thread can signal the cothread before the
cothread has managed to interlock its first wait. Moving the wait from the
top of the loop to the bottom fixes the problem.
Reported-by: Joe Talbott <josepht@cstone.net>
Matthew Dillon [Wed, 1 Apr 2009 00:16:31 +0000 (17:16 -0700)]
cpdup: '#' in cpignore files is no longer interpreted as a comment.
A '#' as the first character on a line in a cpignore file used to be
interpreted as a comment. It is no just considered another valid
character in a filename. Comments may no longer be represented in
cpignore files.
Matthew Dillon [Tue, 31 Mar 2009 23:56:14 +0000 (16:56 -0700)]
Use atomic_fetchadd_int() in fdrop() instead of the spin-lock.
Matthew Dillon [Tue, 31 Mar 2009 22:17:33 +0000 (15:17 -0700)]
Adjust vfinddev() to return a referenced vnode in *vpp.
Fix a small race condition in sys_linux_ustat() related to accessing
a vnode which can get ripped out from under the procedure.
Sascha Wildner [Tue, 31 Mar 2009 22:14:12 +0000 (00:14 +0200)]
Markup fixes in several manual pages.
Stathis Kamperis [Tue, 31 Mar 2009 07:26:17 +0000 (07:26 +0000)]
vnconfig(8): document -S default size modifier
Sascha Wildner [Mon, 30 Mar 2009 10:50:26 +0000 (12:50 +0200)]
Sort SEE ALSO in some manual pages.
Stathis Kamperis [Mon, 30 Mar 2009 09:57:36 +0000 (09:57 +0000)]
vnconfig: remove unnecessary casts
Approved-by: corecode@
Stathis Kamperis [Mon, 30 Mar 2009 07:48:36 +0000 (07:48 +0000)]
vnconfig -l: print an error if supplied vn is unknown
The code as it is has no effect, because `tmp' is never NULL.
Make it behave as initially intended. Also, since we are here
replace the printf() call with errx().
Approved-by: corecode@
Sascha Wildner [Sun, 29 Mar 2009 16:00:23 +0000 (18:00 +0200)]
rpc.rstatd(8): Silence warnings.
Sascha Wildner [Sun, 29 Mar 2009 16:04:26 +0000 (18:04 +0200)]
<sys/tree.h>: Add __unused (fixes warning in undo(1)).
Sascha Wildner [Sun, 29 Mar 2009 16:08:10 +0000 (18:08 +0200)]
rpc.rusersd(8): Silence warnings.
Sascha Wildner [Sun, 29 Mar 2009 16:16:45 +0000 (18:16 +0200)]
rpc.rwalld(8): Silence warnings.
Sascha Wildner [Sun, 29 Mar 2009 16:18:36 +0000 (18:18 +0200)]
rpc.sprayd(8): Silence warnings.
Sascha Wildner [Sun, 29 Mar 2009 17:52:21 +0000 (19:52 +0200)]
rpc.lockd(8): Silence warnings.
Sascha Wildner [Sun, 29 Mar 2009 17:56:50 +0000 (19:56 +0200)]
rpc.statd(8): Silence warnings.
Sascha Wildner [Sun, 29 Mar 2009 17:58:31 +0000 (19:58 +0200)]
rpc.ypxfrd(8): Silence warnings.
Sascha Wildner [Sun, 29 Mar 2009 17:59:48 +0000 (19:59 +0200)]
yp_mkdb(8): Silence warnings.
Sascha Wildner [Sun, 29 Mar 2009 19:56:27 +0000 (21:56 +0200)]
lib/libc/yp: Silence warnings.
Sascha Wildner [Sun, 29 Mar 2009 20:03:14 +0000 (22:03 +0200)]
ypset(8): Silence warnings.
Sascha Wildner [Sun, 29 Mar 2009 20:03:31 +0000 (22:03 +0200)]
mountd(8): Silence warnings.
Matthew Dillon [Sun, 29 Mar 2009 17:29:40 +0000 (10:29 -0700)]
Adjust patch for qemu build - increase size of gen_opc_buf
Work around a memory tromping bug in qemu 0.10.0 and 0.10.1 by
expanding the gen_opc_buf[] array. I'm not sure where the bug
actually is, but this makes qemu work for us.
Matthew Dillon [Sun, 29 Mar 2009 07:44:30 +0000 (00:44 -0700)]
Add an indexing feature to the -t option.
Add an indexing feature to the -t option where -t 0 indicates the
latest version and higher values indicate successively older versions.
Transaction ids are specified with 0x.
Automatically go into DIFF mode (-d) by default if two -t options are
specified, unless overridden.
Submitted-by: "Joel K. Pettersson" <joelkpettersson@gmail.com>
Matthew Dillon [Sun, 29 Mar 2009 05:07:42 +0000 (22:07 -0700)]
Fix an IPI messaging lockup which can occur while in DDB.
When entering DDB on a SMP system we must also enter a critical section
prior to stopping the other cpus. If we do not interrupts may generate
calls to sched_ithd() instead of just flagging the interrupt in ipending
and returning. This, in turn, may attempt to send an IPI to another
cpu. These IPIs will not be processed while the target cpu is stopped.
If the IPI FIFO then fills up the lwkt_send_ipiq*() function will hard-loop
and the system will lock-up.
Resizing the window a vkernel is running in while the vkernel is in DDB
exercises the bug. The bug is more easily demonstrated simply by sending
a stream of SIGWINCH signals via a while(1)/kill loop to the vkernel.
The bug is potentially an issue on all architectures so fix all
architectures.
Reported-by: Joe Talbott <josepht@cstone.net>
With-help-from: YONETANI Tomokazu <qhwt+dfly@les.ath.cx>
Sascha Wildner [Sat, 28 Mar 2009 07:30:06 +0000 (08:30 +0100)]
objcache(9): Fix wrong function name in the manual page.
Sascha Wildner [Fri, 27 Mar 2009 21:27:38 +0000 (22:27 +0100)]
vkernel(7): Start sentences on new lines.
Sascha Wildner [Fri, 27 Mar 2009 21:02:01 +0000 (22:02 +0100)]
makekey(8): Ansify and remove 'register'.
Sascha Wildner [Fri, 27 Mar 2009 20:57:11 +0000 (21:57 +0100)]
mknetid(8): Raise WARNS to 6 and fix warnings (also -Wold-style-definition).
Stathis Kamperis [Sat, 28 Mar 2009 18:02:33 +0000 (18:02 +0000)]
ddb(4): mention 'show ktr' command
Sepherosa Ziehau [Sat, 28 Mar 2009 06:20:28 +0000 (14:20 +0800)]
ipflow: Add macros to check ipflow refcnt, which is more expressive
Sepherosa Ziehau [Sat, 28 Mar 2009 04:25:50 +0000 (12:25 +0800)]
ipflow: React to local address change quickly.
Sepherosa Ziehau [Sat, 28 Mar 2009 03:02:45 +0000 (11:02 +0800)]
ipflow: Flush ipflow if a new route is successfully added.
ipflow suffers same problem as described in FreeBSD-PR: kern/10778
Though the time of mis-routing will not be "arbitrarily long time"
for intermittent packet flow (thanks to the ipflow timeout), it
still could be quite long for a constant packet flow.
Matthew Dillon [Sat, 28 Mar 2009 03:32:37 +0000 (20:32 -0700)]
Add a build system for amd64 build/test environments in /usr/src/test/amd64
This build system will fetch, compile, and install qemu, do all
necessary buildworlds and buildkernels, including the amd64 cross-builds,
and generate a fully bootable root.img. The Makefile also includes a
run target to run qemu on the image.
It can take a few hours to build the whole mess due to the buildworlds but
it's a hit-the-start-button-and-forget build which should prove useful.
WARNING: Initial commit only. qemu 0.10.{0,1} is seriously broken and is not
yet able to fully-boot either a 32 or 64 bit kernel without seg-faulting.
Matthew Dillon [Sat, 28 Mar 2009 03:28:41 +0000 (20:28 -0700)]
Misc fixes for cross-building amd64.
Use the proper IMAKEENV instead of CROSSENV when installing a 64 bit
kernel via installkernel. IMAKEENV supplies the proper cross-building
path so objcopy works properly.
Remove the -mcmodel option from the compilation of genassym.c. This
utility is compiled for the host OS, not the target.
Add MACHINE_ARCH, MACHINE, and MACHINE_PLATFORM to the module build
called from the kernel build.
Add -fno-omit-frame-pointer to kmod.mk for amd64 builds (from FreeBSD).
Matthew Dillon [Fri, 27 Mar 2009 22:24:46 +0000 (15:24 -0700)]
Fix improper directory following when 'cpu' softlink already exists.
Change ln -fs to ln -hfs for the 'cpu' directory link. Without this
the ln command will create a cpu/cpu softlink instead of replacing the
cpu softlink.
This also fixes a build failure which will occur if the world
sources are mounted read-only.
Matthew Dillon [Fri, 27 Mar 2009 17:08:14 +0000 (10:08 -0700)]
Make the jg_tos_ok debug check amd64-specific only and fix compiler warnings.
Matthew Dillon [Fri, 27 Mar 2009 17:05:46 +0000 (10:05 -0700)]
Adjust the KTR code to use cache-aligned per-cpu structures.
* Create a cache-aligned per-cpu structure containing per-cpu information.
* Increase the __cachealign constants from 32 bytes to 64 bytes
(512 bit cache line).
* Adjust ktrdump to handle both the old and new kernel structures.
Matthew Dillon [Fri, 27 Mar 2009 16:03:10 +0000 (09:03 -0700)]
Adjust vnconfig recommendation when creating a new rootimg.
When using a HAMMER filesystem it makes no sense to pre-zero the rootimg
before mounting and populating it, because HAMMER will not reuse the
underlying data blocks anyway.
Matthew Dillon [Fri, 27 Mar 2009 16:01:35 +0000 (09:01 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Fri, 27 Mar 2009 16:00:05 +0000 (09:00 -0700)]
Fix DDB's 'show ktr' command - improper panic and improper scan
DDB's 'show ktr' command was using the wrong index to check the KTR
buffers and also improperly panicing when no KTR entries could be found.
Stathis Kamperis [Fri, 27 Mar 2009 14:43:02 +0000 (14:43 +0000)]
vkernel(7): mention how to autologin as root
Approved-by: swildner@, aggelos@
Sascha Wildner [Fri, 27 Mar 2009 12:46:52 +0000 (13:46 +0100)]
bootpd(8): Remove 'register' and P() and silence -Wold-style-definition.
Sascha Wildner [Fri, 27 Mar 2009 10:13:48 +0000 (11:13 +0100)]
Fix a few typos.
Sascha Wildner [Fri, 27 Mar 2009 07:54:00 +0000 (08:54 +0100)]
Remove old README.amd64
Sascha Wildner [Fri, 27 Mar 2009 07:51:55 +0000 (08:51 +0100)]
build(7): Add some lines about TARGET_PLATFORM.
Sascha Wildner [Fri, 27 Mar 2009 07:50:28 +0000 (08:50 +0100)]
kernconf(5): Add some words about pc64.
Hasso Tepper [Thu, 26 Mar 2009 08:33:40 +0000 (10:33 +0200)]
Add support for devctl(4) into MAKEDEV.
Hasso Tepper [Fri, 27 Mar 2009 08:32:47 +0000 (10:32 +0200)]
Add a -O option: force one volume.
This causes pax to not prompt for a new volume upon premature end-of-volume
(e.g. broken pipe). This is especially useful in automated environments
where error recovery cannot be performed by a human.
Unbreaks a lot of pkgsrc packages.
Obtained-from: NeBSD
Sascha Wildner [Thu, 26 Mar 2009 11:01:44 +0000 (12:01 +0100)]
md5(1): Raise WARNS to 6.
Hasso Tepper [Thu, 26 Mar 2009 08:34:49 +0000 (10:34 +0200)]
Sync DRM code with FreeBSD trunk rev 190433.
Matthew Dillon [Fri, 27 Mar 2009 02:52:05 +0000 (19:52 -0700)]
Fix a recently introduced compile time error w/ IPSEC.
Submitted-by: Sepherosa Ziehau <sephe@dragonflybsd.org>
Stathis Kamperis [Thu, 26 Mar 2009 15:22:55 +0000 (15:22 +0000)]
committer(7): fix typo
Sepherosa Ziehau [Thu, 26 Mar 2009 12:57:19 +0000 (20:57 +0800)]
ip_forward: Don't cache IP forwarding route.
There are two problems with this cached route:
- Any newly created route will nuke this cached route. If any new
route was created when the ip_output() was put to sleep due to
contention on the output path, then the rtentry of this cached
route would be ripped away behind our back.
The reported panic was caused by this problem. The call path:
ip_forward()->ip_output()->ipflow_create(); the cached route was
ripped before ipflow_create() was called.
- All network threads on the same CPU share this cached route:
o Network thread1 and network thread2 are on the same CPU
o Network thread1 uses this cached route to do the ip_output()
o Network thread1 is put to sleep due to contention on the
output path
o Network thread2 uses this cached route to do the ip_output()
o Now network thread1 was scheduled ...
If we ever want to cached previously used route, we will have to
use per-thread route cache.
Sepherosa Ziehau [Thu, 26 Mar 2009 10:46:44 +0000 (18:46 +0800)]
em/emx(4): Add 82571EB Bypass to the supported device list.
Reported/Tested-by: ruse39 on EFnet #dragonflybsd
Sepherosa Ziehau [Wed, 25 Mar 2009 11:59:15 +0000 (19:59 +0800)]
ip_dooptions: Don't abuse ipforward_rt
Sascha Wildner [Thu, 26 Mar 2009 10:54:57 +0000 (11:54 +0100)]
csh(1): Raise WARNS to 2.
Sascha Wildner [Thu, 26 Mar 2009 09:20:04 +0000 (10:20 +0100)]
devices.conf(5): mdoc cleanup
Sascha Wildner [Thu, 26 Mar 2009 09:15:15 +0000 (10:15 +0100)]
stdint(7): mdoc cleanup
Sascha Wildner [Thu, 26 Mar 2009 08:59:41 +0000 (09:59 +0100)]
development(7): Mention mirrors plus some minor fixes.
Sascha Wildner [Thu, 26 Mar 2009 08:58:55 +0000 (09:58 +0100)]
committer(7): Mention remote entry for crater and improve wording a bit.
Stathis Kamperis [Wed, 25 Mar 2009 19:57:40 +0000 (19:57 +0000)]
Test commit@ mail
Stathis Kamperis [Wed, 25 Mar 2009 19:49:02 +0000 (19:49 +0000)]
Test commit bit
Sascha Wildner [Tue, 24 Mar 2009 18:23:33 +0000 (19:23 +0100)]
tset(1): Raise WARNS to 6 and silence all warnings.
Sascha Wildner [Tue, 24 Mar 2009 18:33:11 +0000 (19:33 +0100)]
pctrack(8): Raise WARNS to 6 and silence all warnings.
Sascha Wildner [Tue, 24 Mar 2009 10:11:37 +0000 (11:11 +0100)]
mptable(1): Make dumping the raw MP table an option.
Sascha Wildner [Tue, 24 Mar 2009 10:38:04 +0000 (11:38 +0100)]
mtree(8): Silence warnings when compiling with -DBOOTSTRAPPING.
Sascha Wildner [Tue, 24 Mar 2009 10:10:23 +0000 (11:10 +0100)]
Remove the formatted version of iwicontrol(8) too per 'make upgrade.
Sascha Wildner [Tue, 24 Mar 2009 08:12:45 +0000 (09:12 +0100)]
Sync zoneinfo database with tzdata2009d from elsie.
africa: 8.17 -> 8.18
asia: 8.25 -> 8.26
southamerica: 8.33 -> 8.34
* Morocco will observe DST from June 1, 2009 0:00 to August 21, 2009 0:00
* Tunisia will not observe DST this year.
* Syria will start DST one week earlier this year (March 27, 0:00)
* San Luis, Argentina, decided to observe standard Argentine DST in the
future.
Sascha Wildner [Tue, 24 Mar 2009 07:45:22 +0000 (08:45 +0100)]
share/misc/iso639: Sync with Library of Congress list.
Sascha Wildner [Mon, 23 Mar 2009 11:19:08 +0000 (12:19 +0100)]
Miscellaneous mdoc fixes.
Sascha Wildner [Sun, 22 Mar 2009 23:35:52 +0000 (00:35 +0100)]
mount_std(8): Raise WARNS to 6 and silence all warnings.
Sascha Wildner [Sun, 22 Mar 2009 23:30:00 +0000 (00:30 +0100)]
gpt(8): Raise WARNS to 6.
Sascha Wildner [Sun, 22 Mar 2009 23:27:12 +0000 (00:27 +0100)]
ccdconfig(8): Raise WARNS to 6 and silence all warnings.
Sascha Wildner [Sun, 22 Mar 2009 23:10:16 +0000 (00:10 +0100)]
ppp(8): Raise WARNS to 1.
Sascha Wildner [Sun, 22 Mar 2009 23:09:32 +0000 (00:09 +0100)]
ppp(8): pcomp->slots (u_char) can't be higher than MAX_VJ_STATES (255).
Sascha Wildner [Sun, 22 Mar 2009 22:39:18 +0000 (23:39 +0100)]
Remove usr.sbin/dpt which was never built.
If someone needs it, it can be revived later.
Sascha Wildner [Sun, 22 Mar 2009 22:32:34 +0000 (23:32 +0100)]
kernbb(8): Raise WARNS to 6 and silence all warnings.
Sascha Wildner [Sun, 22 Mar 2009 22:23:38 +0000 (23:23 +0100)]
mtree(8): Raise WARNS to 6 and silence all warnings.
Sascha Wildner [Sun, 22 Mar 2009 21:39:19 +0000 (22:39 +0100)]
pwd_mkdb(8): Raise WARNS to 6.
Stathis Kamperis [Mon, 2 Mar 2009 21:25:33 +0000 (21:25 +0000)]
vnconfig: raise WARNS and fix resulting warnings
Stathis Kamperis [Mon, 2 Mar 2009 09:16:19 +0000 (09:16 +0000)]
vnconfig -l: handle gracefully missing regular file
Check if VNIOCGET failed to retrieve the path of the regular
file, that is associated with the respective vn device. If so,
treat this kind of error as non-fatal (with respect to the rest
of the vn devices).
Stathis Kamperis [Mon, 2 Mar 2009 21:26:14 +0000 (21:26 +0000)]
vnconfig: cleanup a bit
- constify
- remove bogus cast
- style(9)
- fix typo in comment
Sascha Wildner [Sun, 22 Mar 2009 18:22:53 +0000 (19:22 +0100)]
localtime(3): Switch from GMT to UTC as the default time zone string.
Sascha Wildner [Sun, 22 Mar 2009 18:12:57 +0000 (19:12 +0100)]
Use .Dv for ioctls in several manual pages.
Hasso Tepper [Sun, 22 Mar 2009 12:26:08 +0000 (14:26 +0200)]
Argh, this wasn't meant to be committed.
Hasso Tepper [Sun, 22 Mar 2009 09:49:50 +0000 (11:49 +0200)]
Fix target machine define in compiler.
Make(1) doesn't like "target" as a name for variable, seems.
Stathis Kamperis [Sat, 7 Mar 2009 14:55:41 +0000 (14:55 +0000)]
stat(2): sort error codes
Sascha Wildner [Sun, 22 Mar 2009 09:10:10 +0000 (10:10 +0100)]
ttyname(3): Bump .Dd
Stathis Kamperis [Sat, 7 Mar 2009 17:57:26 +0000 (17:57 +0000)]
ttyname(3): mention error codes
Stathis Kamperis [Sat, 7 Mar 2009 15:58:30 +0000 (15:58 +0000)]
isatty(3): mention return values and error codes
Stathis Kamperis [Sun, 8 Mar 2009 04:44:50 +0000 (04:44 +0000)]
Comment on the purpose of _Exit()
Sascha Wildner [Sun, 22 Mar 2009 09:03:56 +0000 (10:03 +0100)]
stdint(7): Update FreeBSD CVS ID and bump .Dd.
Stathis Kamperis [Sun, 8 Mar 2009 05:29:04 +0000 (05:29 +0000)]
stdint(7): import manual page from FreeBSD
Also document macros for minimum-width integer constants
and macros for greatest-width integer constants, which
aren't mentioned in the original manual page.
Sascha Wildner [Sun, 22 Mar 2009 09:01:29 +0000 (10:01 +0100)]
flockfile(3): Update FreeBSD CVS ID, bump .Dd and add some references.
Sascha Wildner [Sun, 22 Mar 2009 08:57:41 +0000 (09:57 +0100)]
getc(3)/putc(3): Bump .Dd
Stathis Kamperis [Sun, 8 Mar 2009 06:55:22 +0000 (06:55 +0000)]
flockfile(3): import manual page from FreeBSD