]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
13 years agokern/153772 fix variable names.
Jack F Vogel [Fri, 7 Jan 2011 22:34:56 +0000 (22:34 +0000)]
kern/153772   fix variable names.

Thank you Andrew Boyer for catching these

MFC in 3 days

13 years agoTrim extra spaces before tabs.
John Baldwin [Fri, 7 Jan 2011 21:40:34 +0000 (21:40 +0000)]
Trim extra spaces before tabs.

13 years agomake targets
Warner Losh [Fri, 7 Jan 2011 20:36:27 +0000 (20:36 +0000)]
make targets

This produces a list of currently supported targets.  Here "supported"
means "built in make universe" on the theory that those targets are
more supported than any that might work in 'make buildworld TARGET=x
TARGET_ARCH=y' since the latter are less tested.

Suggested by: rwatson

13 years agoRetire TARGET_ABI.
Warner Losh [Fri, 7 Jan 2011 20:26:33 +0000 (20:26 +0000)]
Retire TARGET_ABI.

Implement MACHINE_ARCH=mips64e[lb] to build N64 images.  This replaces
MACHINE_ARCH=mipse[lb] TARGET_ABI=n64.

MACHINE_ARCH=mipsn32e[lb] has been added, but currently requires
WITHOUT_CDDL due to atomic issues in libzfs.  I've not investigated
this much, but implemented this to preserve as much of the TARGET_ABI
functionality that I could.  Since its presence doesn't affect the
working cases, I've kept it in for now.

Added mips64e[lb] to make universe, so more kernels build.

And I think this (finally) closes the curtain on the tbemd tree.

13 years agoFix a memory leak in ARP queues.
George V. Neville-Neil [Fri, 7 Jan 2011 20:02:05 +0000 (20:02 +0000)]
Fix a memory leak in ARP queues.

Pointed out by: jhb@
MFC after: 2 weeks

13 years ago- Save some space relying on the fact that all ioctl commands
Stanislav Sedov [Fri, 7 Jan 2011 18:52:08 +0000 (18:52 +0000)]
- Save some space relying on the fact that all ioctl commands
  prefixes are the same.

Suggested by: "Carlos A. M. dos Santos" <unixmania@gmail.com>

13 years agoDon't try to free an unassigned pointer.
Bernhard Schmidt [Fri, 7 Jan 2011 18:41:59 +0000 (18:41 +0000)]
Don't try to free an unassigned pointer.

Submitted by: Paul B Mahol <onemda at gmail.com>
MFC after: 1 week

13 years agoAdjust ARP hold queue locking.
George V. Neville-Neil [Fri, 7 Jan 2011 18:14:58 +0000 (18:14 +0000)]
Adjust ARP hold queue locking.

Submitted by: Rozhuk Ivan, jhb
MFC after: 2 weeks

13 years agoUse a regular taskqueue for dummynet rather than a "fast" taskqueue.
John Baldwin [Fri, 7 Jan 2011 16:47:20 +0000 (16:47 +0000)]
Use a regular taskqueue for dummynet rather than a "fast" taskqueue.

Reviewed by: luigi

13 years agoFix a memory overflow where the input length to g_gpt_utf8_to_utf16()
Matthew D Fleming [Fri, 7 Jan 2011 16:46:20 +0000 (16:46 +0000)]
Fix a memory overflow where the input length to g_gpt_utf8_to_utf16()
was specified incorrectly, causing the bzero to run past the end of a
malloc(9)'d object.

Submitted by: Eric Youngblut < eyoungblut AT isilon DOT com >
MFC after: 3 days

13 years agoAdd section .note.GNU-stack for assembly files used by 386 and amd64.
Konstantin Belousov [Fri, 7 Jan 2011 16:13:12 +0000 (16:13 +0000)]
Add section .note.GNU-stack for assembly files used by 386 and amd64.

13 years agoAdd section .note.GNU-stack for assembly files used by 386 and amd64.
Konstantin Belousov [Fri, 7 Jan 2011 16:09:33 +0000 (16:09 +0000)]
Add section .note.GNU-stack for assembly files used by 386 and amd64.

13 years agoAdd section .note.GNU-stack for assembly files used by 386 and amd64.
Konstantin Belousov [Fri, 7 Jan 2011 16:08:40 +0000 (16:08 +0000)]
Add section .note.GNU-stack for assembly files used by 386 and amd64.

13 years agoAdd section .note.GNU-stack for assembly files used by 386 and amd64.
Konstantin Belousov [Fri, 7 Jan 2011 16:07:51 +0000 (16:07 +0000)]
Add section .note.GNU-stack for assembly files used by 386 and amd64.

13 years agoUse a regular taskqueue rather than a fast taskqueue for mxge(4).
John Baldwin [Fri, 7 Jan 2011 16:07:29 +0000 (16:07 +0000)]
Use a regular taskqueue rather than a fast taskqueue for mxge(4).

Reviewed by: gallatin

13 years agoAdd section .note.GNU-stack for assembly files used by 386 and amd64.
Konstantin Belousov [Fri, 7 Jan 2011 16:07:05 +0000 (16:07 +0000)]
Add section .note.GNU-stack for assembly files used by 386 and amd64.

13 years agoFix braino in r217101. -Wa is used to supply assembler flag to cc driver.
Konstantin Belousov [Fri, 7 Jan 2011 15:59:23 +0000 (15:59 +0000)]
Fix braino in r217101. -Wa is used to supply assembler flag to cc driver.

Noted by: Anonymous <swell.k gmail com>

13 years agoOn amd64 and i386, force assembler to mark objects compiled from the
Konstantin Belousov [Fri, 7 Jan 2011 14:35:45 +0000 (14:35 +0000)]
On amd64 and i386, force assembler to mark objects compiled from the
assembler source for libcompiler_rt as not needed executable stack. This
is done with a hammer instead of properly marking each assembly file
with section .note.GNU-stack to avoid modifying contributed source.

Discussed with: ed

13 years agoIntroduce make variable ACFLAGS used to supply additional flags to
Konstantin Belousov [Fri, 7 Jan 2011 14:32:29 +0000 (14:32 +0000)]
Introduce make variable ACFLAGS used to supply additional flags to
cc driver when compiling assembler source file that is preprocessed.

13 years agoEmit .note.GNU-stack for the syscall stubs generated by libc.
Konstantin Belousov [Fri, 7 Jan 2011 14:28:54 +0000 (14:28 +0000)]
Emit .note.GNU-stack for the syscall stubs generated by libc.

13 years agoMake gcc emit the .note.GNU-stack section into the assembler files.
Konstantin Belousov [Fri, 7 Jan 2011 14:24:24 +0000 (14:24 +0000)]
Make gcc emit the .note.GNU-stack section into the assembler files.

Reviewed by: kan

13 years agoAdd AT_STACKPROT elf aux vector. Will be used to inform rtld about the
Konstantin Belousov [Fri, 7 Jan 2011 14:22:34 +0000 (14:22 +0000)]
Add AT_STACKPROT elf aux vector. Will be used to inform rtld about the
initial stack protection set by the kernel image activator.

13 years agoWarn if rules could not be read from a ruleset file. Now at least
Jaakko Heinonen [Fri, 7 Jan 2011 10:59:22 +0000 (10:59 +0000)]
Warn if rules could not be read from a ruleset file. Now at least
something gets logged if the file has syntax errors.

PR: conf/91342
Silence on: freebsd-rc

13 years agoRestore comment describing /* NOTREACHED */, updated to match reality.
Edward Tomasz Napierala [Fri, 7 Jan 2011 08:34:12 +0000 (08:34 +0000)]
Restore comment describing /* NOTREACHED */, updated to match reality.

13 years ago- Properly initialize the base priority (td_base_pri) of thread0 to PVM
John Baldwin [Thu, 6 Jan 2011 22:26:00 +0000 (22:26 +0000)]
- Properly initialize the base priority (td_base_pri) of thread0 to PVM
  to match the desired priority in td_priority.  Otherwise the first time
  thread0 used a borrowed priority it would drop down to PUSER instead of
  PVM.
- Explicitly initialize the starting priority of new kprocs to PVM to
  avoid inheriting some random priority from thread0.

MFC after: 2 weeks

13 years ago- Move sched_fork() later in fork() after the various sections of the new
John Baldwin [Thu, 6 Jan 2011 22:24:00 +0000 (22:24 +0000)]
- Move sched_fork() later in fork() after the various sections of the new
  thread and proc have been copied and zeroed from the old thread and
  proc.  Otherwise attempts to modify thread or process data in sched_fork()
  could be undone.
- Don't copy td_{base,}_user_pri from the old thread to the new thread in
  sched_fork_thread() in ULE.  This is already done courtesy the bcopy()
  of the thread copy region.
- Always initialize the real priority (td_priority) of new threads to the
  new thread's base priority (td_base_pri) to avoid bogusly inheriting a
  borrowed priority from the parent thread.

MFC after: 2 weeks

13 years agoOnly change the priority of timeshare threads to PRI_MAX_TIMESHARE
John Baldwin [Thu, 6 Jan 2011 22:19:15 +0000 (22:19 +0000)]
Only change the priority of timeshare threads to PRI_MAX_TIMESHARE
when yield() is called.  Specifically, leave the priority of real time
and idle threads unchanged.

MFC after: 2 weeks

13 years ago- Restore dropping the priority of syncer down to PPAUSE when it is idle.
John Baldwin [Thu, 6 Jan 2011 22:17:07 +0000 (22:17 +0000)]
- Restore dropping the priority of syncer down to PPAUSE when it is idle.
  This was lost when it was converted to using a condition variable instead
  of lbolt.
- Drop the priority of flowtable down to PPAUSE when it is idle as well
  since it is a similar background task.

MFC after: 2 weeks

13 years agoRetire PCONFIG and leave the priority of thread0 alone when waiting for
John Baldwin [Thu, 6 Jan 2011 22:09:37 +0000 (22:09 +0000)]
Retire PCONFIG and leave the priority of thread0 alone when waiting for
interrupt config hooks to execute.

13 years agoRetire the INTR_FAST flag as it was obsoleted by the introduction of the
John Baldwin [Thu, 6 Jan 2011 21:14:34 +0000 (21:14 +0000)]
Retire the INTR_FAST flag as it was obsoleted by the introduction of the
filter argument to bus_setup_intr().

13 years agoDon't require /usr/lib/aout to be on the system. Test for its
Warner Losh [Thu, 6 Jan 2011 21:09:22 +0000 (21:09 +0000)]
Don't require /usr/lib/aout to be on the system.  Test for its
existance since we don't generally need it.

MFC after: 1 week

13 years agoRemove bogus usage of INTR_FAST. "Fast" interrupts are now indicated by
John Baldwin [Thu, 6 Jan 2011 21:08:06 +0000 (21:08 +0000)]
Remove bogus usage of INTR_FAST.  "Fast" interrupts are now indicated by
registering a filter handler rather than a threaded handler.  Also remove
a bogus use of INTR_MPSAFE for a filter.

13 years agoMake this work on big endian MIPS, while not breaking it for small
Warner Losh [Thu, 6 Jan 2011 21:07:51 +0000 (21:07 +0000)]
Make this work on big endian MIPS, while not breaking it for small
endian mips.  This will also make it work automatically on all future
big endian platforms.

13 years agoNo need to genreate these here
Warner Losh [Thu, 6 Jan 2011 21:04:00 +0000 (21:04 +0000)]
No need to genreate these here

13 years ago- Add a proper return value to mv_gpio_intr().
John Baldwin [Thu, 6 Jan 2011 21:03:55 +0000 (21:03 +0000)]
- Add a proper return value to mv_gpio_intr().
- Remove an obsolete use of INTR_FAST.

13 years agoRemove an unnecessary INTR_MPSAFE and a comment suggesting it was
John Baldwin [Thu, 6 Jan 2011 21:02:14 +0000 (21:02 +0000)]
Remove an unnecessary INTR_MPSAFE and a comment suggesting it was
unnecessary.

13 years agoHelp static analysis by initializing variables that we know cannot be
Marcel Moolenaar [Thu, 6 Jan 2011 20:50:16 +0000 (20:50 +0000)]
Help static analysis by initializing variables that we know cannot be
used uninitialized, but which cannot be inferred from the code itself.

13 years agoDelete the NFS_STARTWRITE() and NFS_ENDWRITE() macros that
Rick Macklem [Thu, 6 Jan 2011 20:31:33 +0000 (20:31 +0000)]
Delete the NFS_STARTWRITE() and NFS_ENDWRITE() macros that
obscured vn_start_write() and vn_finished_write() for the
old OpenBSD port, since most uses have been replaced by the
correct calls.

MFC after: 12 days

13 years agoRemove unused variables. Spotted by a cppcheck
Andreas Tobler [Thu, 6 Jan 2011 20:19:01 +0000 (20:19 +0000)]
Remove unused variables. Spotted by a cppcheck
(devel/cppcheck, http://sourceforge.net/projects/cppcheck) run.

Approved by: nwhitehorn (mentor)

13 years agotests: sort & fix includes, remove -include from CFLAGS of acct tests
Giorgos Keramidas [Thu, 6 Jan 2011 20:05:24 +0000 (20:05 +0000)]
tests: sort & fix includes, remove -include from CFLAGS of acct tests

- Sort the includes of pack.c, moving sys/*.h files near the top.
- Add a couple of missing #include lines, and remove the need for
  custom -include options in the CFLAGS of the test Makefile.
- Remove the ad-hoc 'all' target, but keep its 'regress' bits for
  testing.
- Convert the ad-hoc 'clean' target to proper CLEANFILES stuff,
  so that the normal bsd.prog.mk machinery can clean up.
- Use `make -V .OBJDIR' to detect the place where 'pack' lives,
  so that regress.t works both with and without 'make obj'.

Reviewed by: uqs
MFC after: 1 week

13 years agoSince the VFS_LOCK_GIANT() code in the experimental NFS
Rick Macklem [Thu, 6 Jan 2011 19:50:11 +0000 (19:50 +0000)]
Since the VFS_LOCK_GIANT() code in the experimental NFS
server is broken and the major file systems are now all
mpsafe, modify the server so that it will only export
mpsafe file systems. This was discussed on freebsd-fs@
and removes a fair bit of crufty code.

MFC after: 12 days

13 years ago- Use macbstart_locked() directly instead of deferring it to a task.
John Baldwin [Thu, 6 Jan 2011 19:32:00 +0000 (19:32 +0000)]
- Use macbstart_locked() directly instead of deferring it to a task.
- Expand locking scope in interrupt handler.
- Flesh out the detach routine.

Reviewed by: cognet

13 years agoSupport the Uniform Industrial Corp (UIC) MSR206 Magnetic Card Reader.
Gavin Atkinson [Thu, 6 Jan 2011 19:17:29 +0000 (19:17 +0000)]
Support the Uniform Industrial Corp (UIC) MSR206 Magnetic Card Reader.

MFC after: 1 week

13 years agoRemove an unused variable accidentally added in r216803.
Marius Strobl [Thu, 6 Jan 2011 17:28:31 +0000 (17:28 +0000)]
Remove an unused variable accidentally added in r216803.

13 years agoUnbreak the LINT build. PS3 kernels can only be built 64-bit, and LINT is
Nathan Whitehorn [Thu, 6 Jan 2011 14:12:24 +0000 (14:12 +0000)]
Unbreak the LINT build. PS3 kernels can only be built 64-bit, and LINT is
built for both architectures. We need a better solution here.

13 years agoGet rid of bad advice regarding /* NOTREACHED */. Compilers don't
Edward Tomasz Napierala [Thu, 6 Jan 2011 08:33:48 +0000 (08:33 +0000)]
Get rid of bad advice regarding /* NOTREACHED */.  Compilers don't
really need it (one can use __dead2 instead), and style(9) was not
even consistent with itself in this regard.

13 years agoReturn 0 instead of garbage value.
David Xu [Thu, 6 Jan 2011 08:13:30 +0000 (08:13 +0000)]
Return 0 instead of garbage value.

Found by: clang static analyzer

13 years ago- Show textual representation of ioctl command in warning message
Stanislav Sedov [Thu, 6 Jan 2011 07:13:23 +0000 (07:13 +0000)]
- Show textual representation of ioctl command in warning message
  if ioctl(4) is failed besides the command number.

Suggested by: delphij
MFC after: 2 weeks

13 years agoImport support for the Sony Playstation 3 using the OtherOS feature
Nathan Whitehorn [Thu, 6 Jan 2011 04:12:29 +0000 (04:12 +0000)]
Import support for the Sony Playstation 3 using the OtherOS feature
available on firmwares 3.15 and earlier.

Caveats: Support for the internal SATA controller is currently missing,
as is support for framebuffer resolutions other than 720x480. These
deficiencies will be remedied soon.

Special thanks to Peter Grehan for providing the hardware that made this
port possible, and thanks to Geoff Levand of Sony Computer Entertainment
for advice on the LV1 hypervisor.

13 years agoFix a whitespace nit.
Lawrence Stewart [Thu, 6 Jan 2011 04:05:25 +0000 (04:05 +0000)]
Fix a whitespace nit.

MFC after: 1 week
X-MFC with: r216995

13 years agoAdd an entry to the gpart XML to determine if the geom has pending changes
Nathan Whitehorn [Thu, 6 Jan 2011 03:36:04 +0000 (03:36 +0000)]
Add an entry to the gpart XML to determine if the geom has pending changes
that need to be committed (or undone).

MFC after: 2 weeks

13 years agoRemove leftover for r214093.
David Xu [Thu, 6 Jan 2011 03:30:16 +0000 (03:30 +0000)]
Remove leftover for r214093.

13 years agoRemove support for SKYEYE simulator
Warner Losh [Wed, 5 Jan 2011 23:45:07 +0000 (23:45 +0000)]
Remove support for SKYEYE simulator

13 years agosh: Do not call exitshell() from evalcommand() unless evalcommand() forked
Jilles Tjoelker [Wed, 5 Jan 2011 23:17:29 +0000 (23:17 +0000)]
sh: Do not call exitshell() from evalcommand() unless evalcommand() forked
itself.

This ensures that certain traps caused by builtins are executed.

13 years agoUpdate firmware to more recent versions.
Matt Jacob [Wed, 5 Jan 2011 23:15:22 +0000 (23:15 +0000)]
Update firmware to more recent versions.

MFC after: 3 months

13 years agoOn i386 and amd64, consistently use the following options whenever we
Dimitry Andric [Wed, 5 Jan 2011 22:24:33 +0000 (22:24 +0000)]
On i386 and amd64, consistently use the following options whenever we
want to avoid using any "advanced" CPU features:

  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float

13 years agoRemove ancient simulation code. Skyeye simulation never really worked
Warner Losh [Wed, 5 Jan 2011 22:15:57 +0000 (22:15 +0000)]
Remove ancient simulation code.  Skyeye simulation never really worked
quite right and hasn't been used in ages and is likely broken.  QEMU
with GUMSTIX is a more promising road to FreeBSD/arm in emulation
anyway.

Reviewed by: cognet@

13 years agoRemove an empty .if/.endif pair from sys/boot/ficl/Makefile that I
Dimitry Andric [Wed, 5 Jan 2011 22:12:06 +0000 (22:12 +0000)]
Remove an empty .if/.endif pair from sys/boot/ficl/Makefile that I
forgot to cleanup in the last commit.

13 years agoIn lib/libstand, sys/boot/ficl and sys/boot/zfs, -mno-sse3 should also
Dimitry Andric [Wed, 5 Jan 2011 22:00:37 +0000 (22:00 +0000)]
In lib/libstand, sys/boot/ficl and sys/boot/zfs, -mno-sse3 should also
be used for amd64, not just for i386.

13 years agoRemove superfluous -mno-(mmx|3dnow|sse|sse2|sse3) flags in Makefiles
Dimitry Andric [Wed, 5 Jan 2011 21:46:08 +0000 (21:46 +0000)]
Remove superfluous -mno-(mmx|3dnow|sse|sse2|sse3) flags in Makefiles
under sys/boot/{i386,pc98}, since these are already added via
sys/boot/{i386,pc98}/Makefile.inc.

Submitted by: arundel

13 years agoFix null string handling in ofw_real_nextprop function. Pass the right
Andreas Tobler [Wed, 5 Jan 2011 21:38:02 +0000 (21:38 +0000)]
Fix null string handling in ofw_real_nextprop function. Pass the right
length to ofw_real_map in case of a null string.
This makes ofwdump(8) work correctly when trying to print all properties
with ofwdump -p.

Approved by: nwhitehorn (mentor)

13 years agoSort -mno-(mmx|3dnow|sse|sse2|sse3) options consistently throughout the
Dimitry Andric [Wed, 5 Jan 2011 21:23:26 +0000 (21:23 +0000)]
Sort -mno-(mmx|3dnow|sse|sse2|sse3) options consistently throughout the
tree.

Submitted by: arundel

13 years agoFix typo: March -> September.
Sergey A. Osokin [Wed, 5 Jan 2011 21:17:14 +0000 (21:17 +0000)]
Fix typo: March -> September.

13 years agoModify the experimental NFS server so that it calls
Rick Macklem [Wed, 5 Jan 2011 19:35:35 +0000 (19:35 +0000)]
Modify the experimental NFS server so that it calls
vn_start_write() with a non-NULL vp. That way it will
find the correct mount point mp and use that mp for the
subsequent vn_finished_write() call. Also, it should fail
without crashing if the mount point is being forced dismounted
because vn_start_write() will set the mp NULL via VOP_GETWRITEMOUNT().

Reviewed by: kib
MFC after: 12 days

13 years agoFix the experimental NFS server to use vfs_busyfs() instead
Rick Macklem [Wed, 5 Jan 2011 18:46:05 +0000 (18:46 +0000)]
Fix the experimental NFS server to use vfs_busyfs() instead
of vfs_getvfs() so that the mount point is busied for the
VFS_FHTOVP() call. This is analagous to r185432 for the
regular NFS server.

Reviewed by: kib
MFC after: 12 days

13 years agoThe camcontrol smppc option to clear a PHY error log is 'clearerrlog',
Kenneth D. Merry [Wed, 5 Jan 2011 18:27:38 +0000 (18:27 +0000)]
The camcontrol smppc option to clear a PHY error log is 'clearerrlog',
not 'clearerrorlog'.

13 years agoTeach ifconfig(8) the handy shared option shortcut aliases the NetBSD
Marius Strobl [Wed, 5 Jan 2011 15:28:30 +0000 (15:28 +0000)]
Teach ifconfig(8) the handy shared option shortcut aliases the NetBSD
counterpart also takes, i.e. "fdx" for "full-duplex", "flow" for
"flowcontrol", "hdx" for "half-duplex" as well as "loop" and "loopback"
for "hw-loopback".

MFC after: 1 week

13 years agoFix whitespace.
Marius Strobl [Wed, 5 Jan 2011 14:51:04 +0000 (14:51 +0000)]
Fix whitespace.

MFC after: 1 week

13 years agoRemove a redundant variable assignment found with the clang static analyzer.
Marius Strobl [Wed, 5 Jan 2011 14:33:48 +0000 (14:33 +0000)]
Remove a redundant variable assignment found with the clang static analyzer.

MFC after: 1 week

13 years agoAdd a man page for the Object Specific Data (OSD) KPI.
Lawrence Stewart [Wed, 5 Jan 2011 11:49:23 +0000 (11:49 +0000)]
Add a man page for the Object Specific Data (OSD) KPI.

Although not directly related the FreeBSD Foundation funded "Five New TCP
Congestion Control Algorithms for FreeBSD" project, the understanding and
inspiration required to write this documentation was significantly bolstered
by the Foundation's support.

Reviewed by: pjd
MFC after: 1 week

13 years agoFix page fault that occurred when trying to initialize preloaded kernel module,
Edward Tomasz Napierala [Wed, 5 Jan 2011 09:58:41 +0000 (09:58 +0000)]
Fix page fault that occurred when trying to initialize preloaded kernel module,
the dependency of which was preloaded, but failed to initialize.  Previously,
kernel dereferenced NULL pointer returned by modlist_lookup2(); now, when this
happens, we unload the dependent module.  Since the depended_files list is
sorted in dependency order, this properly propagates, unloading modules that
depend on failed ones.

From the user point of view, this prevents the kernel from panicing when
trying to boot kernel compiled without KDTRACE_HOOKS with dtraceall_load="YES"
in /boot/loader.conf.

Reviewed by: kib

13 years agoGlen Barber is co-mentored by me and jkois, so add another
Giorgos Keramidas [Wed, 5 Jan 2011 09:45:20 +0000 (09:45 +0000)]
Glen Barber is co-mentored by me and jkois, so add another
relationship edge to the committer graph to show this.

13 years agoAdd gjb to the doc committer graph, as my current mentee.
Giorgos Keramidas [Wed, 5 Jan 2011 09:43:04 +0000 (09:43 +0000)]
Add gjb to the doc committer graph, as my current mentee.

13 years agoFix typo in default config file.
Josh Paetzel [Tue, 4 Jan 2011 23:00:54 +0000 (23:00 +0000)]
Fix typo in default config file.

Approved by: Warner Losh <imp@FreeBSD.org>
MFC after: 3 days

13 years agoUpdate committers-doc.dot, noving doc committer alumni into the alumni
Gavin Atkinson [Tue, 4 Jan 2011 22:56:18 +0000 (22:56 +0000)]
Update committers-doc.dot, noving doc committer alumni into the alumni
section and recording the date these commit bits were returned.  Also, sort
the remaining entries, and add a node for mheinen, who is already referenced
within the mentor relationships.

Other doc committers are encouraged to add themselves, and any mentor/mentee
relationships.  The current rendered output is available at
http://people.freebsd.org/~gavin/comm-doc.png

13 years agoOn amd64 and i386, tell the compiler to refrain from generating SSE,
Dimitry Andric [Tue, 4 Jan 2011 20:51:28 +0000 (20:51 +0000)]
On amd64 and i386, tell the compiler to refrain from generating SSE,
3DNow, MMX and floating point instructions in rtld-elf.

Otherwise, _rtld_bind() (and whatever it calls) could possibly clobber
function arguments that are passed in SSE/3DNow/MMX/FP registers,
usually floating point values.  This can happen, for example, when clang
generates SSE code for memset() or memcpy() calls.

One symptom of this is sshd dying early on amd64 with "PRNG not seeded",
which is ultimately caused by libcrypto.so.6 calling RAND_add() with a
double parameter.  That parameter is passed via %xmm0, which gets wiped
out by an SSE memset() in _rtld_bind().

Reviewed by: kib, kan

13 years agoRemove '-elf' from build flags for libexec/rtld-elf for amd64 and i386.
Dimitry Andric [Tue, 4 Jan 2011 20:26:41 +0000 (20:26 +0000)]
Remove '-elf' from build flags for libexec/rtld-elf for amd64 and i386.
ELF has been the default format for almost 12 years now.

13 years agoLimit hardware bug workaround to controllers that have 4GB boundary
Pyun YongHyeon [Tue, 4 Jan 2011 20:06:26 +0000 (20:06 +0000)]
Limit hardware bug workaround to controllers that have 4GB boundary
bug instead of blindly applying it to all controllers.

Pointed out by: marius
MFC after: 3 days

13 years agoCorrect an 8-year-old typo which reliably leads to typo after typo today:
Juli Mallett [Tue, 4 Jan 2011 19:32:03 +0000 (19:32 +0000)]
Correct an 8-year-old typo which reliably leads to typo after typo today:

The macros here for generating coprocessor 0 accessors are named like:

MIPS_RDRW32_COP0

That macro would produce mips_rd_<register>() and mips_wr_<register>()
inlines to access the specified register by name from C.  The problem is that
the R and the W were swapped in the macros originally; it was meant to be named
RDWR because it generated mips_rd_* and mips_wr_* functions, but was instead
spelled RDRW, which nobody should be expected to get right by anything other
than copy and paste.

It's too many consonants in a row to keep straight anyway, so just prefer e.g.:

MIPS_RW32_COP0

While here, add a missing #undef.

13 years agoOLDCARD is long gone.
Bernhard Schmidt [Tue, 4 Jan 2011 19:26:11 +0000 (19:26 +0000)]
OLDCARD is long gone.

Discussed with: imp

13 years agoPartially revert change made in r212061. r212061 relied on
Pyun YongHyeon [Tue, 4 Jan 2011 19:10:54 +0000 (19:10 +0000)]
Partially revert change made in r212061. r212061 relied on
bus_dma(9)'s capability which honors boundary restrictions of DMA
tag for dynamic buffers. However it seems this does not work well
and it triggered watchodg timeouts on controller that has the
hardware bug. It's not clear whether there is still another
hardware bug not mentioned in errata. This should be revisited
since this change shall make use of bounce buffers which in turn
reduces performance a lot on systems that have more than 4GB
memory.

Reported by: Michael L. Squires (mikes <> siralan dot org)
Tested by: Michael L. Squires (mikes <> siralan dot org)
MFC after: 3 days

13 years agoRemove OCTEON1-32. Since moving to the Cavium SDK, we've lost our support for
Juli Mallett [Tue, 4 Jan 2011 19:09:05 +0000 (19:09 +0000)]
Remove OCTEON1-32.  Since moving to the Cavium SDK, we've lost our support for
running an o32 kernel safely, and would have to add interrupt disabling and
reenabling to a bunch of macros in the Simple Executive sources to support it.

The only reason one would run an o32 kernel on Octeon would be to run o32 world,
which is better worked towards by adding o32 binary compatibility to n64 kernels
along with, eventually, supporting multilib systems so o32 binaries can run
alongside n32 and n64 ones.

Discussed with: imp

13 years agoUse errx() instead of err() in parseint. There is usually no interesting
Konstantin Belousov [Tue, 4 Jan 2011 17:27:17 +0000 (17:27 +0000)]
Use errx() instead of err() in parseint. There is usually no interesting
information in errno.

Noted by: Garrett Cooper <yanegomi gmail com>
MFC after: 1 week

13 years agoClarify the previous commit. AcpiFinishGpe() will not clear GPE for us
Jung-uk Kim [Tue, 4 Jan 2011 17:06:03 +0000 (17:06 +0000)]
Clarify the previous commit.  AcpiFinishGpe() will not clear GPE for us
because we set it to edge-trigger.

13 years agoSpell CRITICAL_ASSERT correctly.
Colin Percival [Tue, 4 Jan 2011 16:29:07 +0000 (16:29 +0000)]
Spell CRITICAL_ASSERT correctly.

Submitted by: jhb
MFC with: r216944

13 years agoInherit the APB and the generic OFW PCI-PCI bridge driver from the generic
Marius Strobl [Tue, 4 Jan 2011 16:21:14 +0000 (16:21 +0000)]
Inherit the APB and the generic OFW PCI-PCI bridge driver from the generic
PCI-PCI bridge driver in order to safe some code.

13 years agoReserve INTR_MD[1-4] similarly to what BUS_DMA_BUS[1-4] are intended for
Marius Strobl [Tue, 4 Jan 2011 16:11:32 +0000 (16:11 +0000)]
Reserve INTR_MD[1-4] similarly to what BUS_DMA_BUS[1-4] are intended for
and switch sparc64 to use the first one for bus error filter handlers of
bridge drivers instead of (ab)using INTR_FAST for that so we eventually
can get rid of the latter.

Reviewed by: jhb
MFC after: 1 month

13 years agoAdd hamfisted locking to the Xen/PV pmap code: Only allow one thread to
Colin Percival [Tue, 4 Jan 2011 15:55:15 +0000 (15:55 +0000)]
Add hamfisted locking to the Xen/PV pmap code: Only allow one thread to
be in {pmap_pinit, pmap_copy, pmap_release} at a time.

This reduces the rate of panics when running 'make index' from ~0.6/hour
to ~0.02/hour (p < 10^-30).

At a later date this locking will be removed, and for this reason, it is
wrapped in #ifdef HAMFISTED_LOCKING; this temporary hack is being put in
place with the intention of shipping somewhat-stable Xen bits in FreeBSD
8.2-RELEASE.

PR: kern/153672
MFC after: 3 days

13 years agoMake "options XENHVM" compile for i386, not just amd64 -- a largely
Robert Watson [Tue, 4 Jan 2011 14:49:54 +0000 (14:49 +0000)]
Make "options XENHVM" compile for i386, not just amd64 -- a largely
mechanical change.  This opens the door for using PV device drivers
under Xen HVM on i386, as well as more general harmonisation of i386
and amd64 Xen support in FreeBSD.

Reviewed by:    cperciva
MFC after:      3 weeks

13 years agoMake the parsing of the integer arguments for rtprio(1)/idprio(1) stricter.
Konstantin Belousov [Tue, 4 Jan 2011 14:13:09 +0000 (14:13 +0000)]
Make the parsing of the integer arguments for rtprio(1)/idprio(1) stricter.
Style.

Based on submission by: Eitan Adler <lists eitanadler com>, keramida
Reviewed by: jhb, keramida
MFC after: 1 week

13 years agokproc_exit() is already marked __dead2 so a NOTREACHED comment here isn't
John Baldwin [Tue, 4 Jan 2011 13:16:28 +0000 (13:16 +0000)]
kproc_exit() is already marked __dead2 so a NOTREACHED comment here isn't
needed for lint.

Submitted by: bde

13 years agoQuiet clang warnings by using string literal format strings.
Ed Maste [Tue, 4 Jan 2011 13:02:52 +0000 (13:02 +0000)]
Quiet clang warnings by using string literal format strings.

13 years agoFinish r210923, 210926. Mark some devices as eternal.
Konstantin Belousov [Tue, 4 Jan 2011 10:59:38 +0000 (10:59 +0000)]
Finish r210923, 210926. Mark some devices as eternal.

MFC after: 2 weeks

13 years agoInstead of incrementing freework reference counter in indir_trunc(), do
Konstantin Belousov [Tue, 4 Jan 2011 10:25:55 +0000 (10:25 +0000)]
Instead of incrementing freework reference counter in indir_trunc(), do
it at the allocation time for journaled fs and indirect blocks, when
the allocated object is not accessible outside.

Requested and reviewed by: jeff
Tested by: pho

13 years agoBecause sleepqueue may still being used, we should always check wchan with
David Xu [Tue, 4 Jan 2011 05:35:19 +0000 (05:35 +0000)]
Because sleepqueue may still being used, we should always check wchan with
queue locked.

13 years agoQuiet clang warnings by using literal format strings for printf-like
Ed Maste [Tue, 4 Jan 2011 02:52:22 +0000 (02:52 +0000)]
Quiet clang warnings by using literal format strings for printf-like
functions.

13 years agoo) Add MIPS_COP_0_EXC_PC accessors to <machine/cpufunc.h>.
Juli Mallett [Tue, 4 Jan 2011 02:33:48 +0000 (02:33 +0000)]
o) Add MIPS_COP_0_EXC_PC accessors to <machine/cpufunc.h>.
o) Make the octeon_wdog driver work on multi-CPU systems and to also print more
   information on NMI that may aid debugging.  Simplify and clean up internal
   API and structure.

13 years agoo) Unmask Central Interrupt Unit interrupts on APs, too.
Juli Mallett [Tue, 4 Jan 2011 02:11:03 +0000 (02:11 +0000)]
o) Unmask Central Interrupt Unit interrupts on APs, too.
o) There's no good reason to make the low bits of the ebase the core
   number.  While per-CPU exception bases would be nice, for now we just
   need to make ebase the same on all cores.

13 years agoMake format string a string literal. (Discovered by clang.)
Ed Maste [Tue, 4 Jan 2011 00:39:56 +0000 (00:39 +0000)]
Make format string a string literal.  (Discovered by clang.)

MFC After: 1 week

13 years agoAdjust the critical section protecting _xen_flush_queue to cover the
Colin Percival [Tue, 4 Jan 2011 00:16:38 +0000 (00:16 +0000)]
Adjust the critical section protecting _xen_flush_queue to cover the
entire range where the page mapping request queue needs to be atomically
examined and modified.

Oddly, while this doesn't seem to affect the overall rate of panics
(running 'make index' on EC2 t1.micro instances, there are 0.6 +/- 0.1
panics per hour, both before and after this change), it eliminates
vm_fault from panic backtraces, leaving only backtraces going through
vmspace_fork.