]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
13 years agoFix typo in kernel configuration entry.
Glen Barber [Sun, 27 Feb 2011 17:14:06 +0000 (17:14 +0000)]
Fix typo in kernel configuration entry.

PR: 155074
Submitted by: Warren Block (wblock of wonkity com)
MFC after: 3 days

13 years agoForce DMA for controller found in Lenovo T510 (probably in others too).
Pawel Jakub Dawidek [Sun, 27 Feb 2011 13:58:20 +0000 (13:58 +0000)]
Force DMA for controller found in Lenovo T510 (probably in others too).
This makes reads 10 times faster.

Discussed with: mav

13 years agoAccept == as an alias of = which is a popular GNU extension.
Xin LI [Sun, 27 Feb 2011 12:28:06 +0000 (12:28 +0000)]
Accept == as an alias of = which is a popular GNU extension.

This is intentionally undocumented for now since it's not part
of any standard.

MFC after: 1 month

13 years agoRename bcpy() macro to bcopy().
Pawel Jakub Dawidek [Sun, 27 Feb 2011 12:25:47 +0000 (12:25 +0000)]
Rename bcpy() macro to bcopy().

13 years agoRecognize 'reload' command, as hastd can be reloaded with the SIGHUP signal.
Pawel Jakub Dawidek [Sun, 27 Feb 2011 11:40:20 +0000 (11:40 +0000)]
Recognize 'reload' command, as hastd can be reloaded with the SIGHUP signal.

MFC after: 1 week

13 years agoMerge fix from r1.108 of NetBSD's usr.bin/ftp/main.c:
Rebecca Cran [Sun, 27 Feb 2011 10:13:16 +0000 (10:13 +0000)]
Merge fix from r1.108 of NetBSD's usr.bin/ftp/main.c:

Only attempt to el_parse() a command unknown by the default parser
if editing is enabled.

PR: bin/100089
MFC after: 3 days

13 years agoClang's integrated assembler can now handle sys/boot/i386/boot2/sio.S.
Dimitry Andric [Sun, 27 Feb 2011 02:06:09 +0000 (02:06 +0000)]
Clang's integrated assembler can now handle sys/boot/i386/boot2/sio.S.
It used to choke on the notation "inb (%dx),%al" for "inb %dx,%al"; GNU
as accepts both forms.  Which notation is more 'correct' is an open
question. :)

13 years agoRegenerate clang and tblgen manpages; the clang manpage has some minor
Dimitry Andric [Sun, 27 Feb 2011 01:45:36 +0000 (01:45 +0000)]
Regenerate clang and tblgen manpages; the clang manpage has some minor
updates.

13 years agoUpdate llvm/clang to trunk r126547.
Dimitry Andric [Sun, 27 Feb 2011 01:32:10 +0000 (01:32 +0000)]
Update llvm/clang to trunk r126547.

There are several bugfixes in this update, but the most important one is
to ensure __start_ and __stop_ symbols for linker sets and kernel module
metadata are always emitted in object files:

  http://llvm.org/bugs/show_bug.cgi?id=9292

Before this fix, if you compiled kernel modules with clang, they would
not be properly processed by kldxref, and if they had any dependencies,
the kernel would fail to load those.  Another problem occurred when
attempting to mount a tmpfs filesystem, which would result in 'operation
not supported by device'.

13 years agoInstead of defining LLVM_MULTITHREADED as 0 or 1, define or undefine it,
Dimitry Andric [Sun, 27 Feb 2011 00:02:48 +0000 (00:02 +0000)]
Instead of defining LLVM_MULTITHREADED as 0 or 1, define or undefine it,
and test appropriately.  Otherwise it might erroneously pick up some
pthread primitives, and fail to link.

13 years agoMissed a file in r219056: add disk description for da(4).
Nathan Whitehorn [Sat, 26 Feb 2011 23:30:32 +0000 (23:30 +0000)]
Missed a file in r219056: add disk description for da(4).

13 years agoUpdate llvm's config.h files to match more closely what is generated by
Dimitry Andric [Sat, 26 Feb 2011 23:12:36 +0000 (23:12 +0000)]
Update llvm's config.h files to match more closely what is generated by
a regular autoconf-based build.  More cosmetic than functional changes.

13 years agoRemove getDriver().Dir + /../libexec and /usr/libexec from clang's
Dimitry Andric [Sat, 26 Feb 2011 23:07:43 +0000 (23:07 +0000)]
Remove getDriver().Dir + /../libexec and /usr/libexec from clang's
program paths.  Unlike gcc, clang has no executables in libexec.

13 years agoRemove misapplied space.
Dimitry Andric [Sat, 26 Feb 2011 23:05:47 +0000 (23:05 +0000)]
Remove misapplied space.

13 years agoFix breakage in sys/netinet/sctp_sysctl.c, introduced by r219057. If
Dimitry Andric [Sat, 26 Feb 2011 22:45:40 +0000 (22:45 +0000)]
Fix breakage in sys/netinet/sctp_sysctl.c, introduced by r219057.  If
SCTP_HAS_RTTC is not defined, this file fails to compile.  Insert the
necessary #ifdefs to make it work.

Pointy hat to: rrs

13 years agoVendor import of clang trunk r126547:
Dimitry Andric [Sat, 26 Feb 2011 22:09:03 +0000 (22:09 +0000)]
Vendor import of clang trunk r126547:
http://llvm.org/svn/llvm-project/cfe/trunk@126547

13 years agoWhen WITH_ICONV is set, use our in-tree iconv.
Hajimu UMEMOTO [Sat, 26 Feb 2011 18:54:54 +0000 (18:54 +0000)]
When WITH_ICONV is set, use our in-tree iconv.

13 years ago- Allocate the DMA memory shared between the host and the controller as
Marius Strobl [Sat, 26 Feb 2011 17:28:09 +0000 (17:28 +0000)]
- Allocate the DMA memory shared between the host and the controller as
  coherent.
- Update a comment to no longer reference Alpha.

13 years agoConnect uep.ko to build
Gleb Smirnoff [Sat, 26 Feb 2011 17:22:11 +0000 (17:22 +0000)]
Connect uep.ko to build

PR: kern/155044
Submitted by: Carl <k0802647 telus.net>
MFC after: 1 week

13 years agoShow disk model numbers in partition wizard screen. Also, since da(4) disks
Nathan Whitehorn [Sat, 26 Feb 2011 15:44:03 +0000 (15:44 +0000)]
Show disk model numbers in partition wizard screen. Also, since da(4) disks
are probably more likely to be USB or Firewire these days than SCSI, just
call them and anyone unknown "Disk" instead of SCSI disk.

13 years agoImprovements to CC modules:
Randall Stewart [Sat, 26 Feb 2011 15:23:46 +0000 (15:23 +0000)]
Improvements to CC modules:
1) Add four new points that allow you to get more information
   to cc algo's
2) Fix the case where user changes module on a existing TCB, in
   such a case, the initialization module needs to be called on all nets.
3) Move htcp_cc structure to a union that other modules can use.
4) Add 5th point for get/set socket options for cc_module specific options

MFC after: 2 months

13 years agoAdd the disk ident and a human-meaningful description (here, the disk model
Nathan Whitehorn [Sat, 26 Feb 2011 14:58:54 +0000 (14:58 +0000)]
Add the disk ident and a human-meaningful description (here, the disk model
string) to the geom_disk config XML so that they are easily accessible from
userland.

MFC after: 1 week

13 years agoFix typo - "is is" should have been changed to "it is" in r218965.
Rebecca Cran [Sat, 26 Feb 2011 12:50:28 +0000 (12:50 +0000)]
Fix typo - "is is" should have been changed to "it is" in r218965.

13 years agoNot only had I included a syntax / style error, nice.3 is also
Remko Lodder [Sat, 26 Feb 2011 11:20:51 +0000 (11:20 +0000)]
Not only had I included a syntax / style error, nice.3 is also
deprecated.

13 years ago- Correct USB 3.0 wire-speed to 5.0Gbps
Hans Petter Selasky [Sat, 26 Feb 2011 09:28:52 +0000 (09:28 +0000)]
- Correct USB 3.0 wire-speed to 5.0Gbps

MFC after: 3 days
Approved by: thompsa (mentor)

13 years agoSet C1 "I/O then Halt" capability bit for Intel EIST. Some broken BIOSes
Jung-uk Kim [Fri, 25 Feb 2011 23:14:24 +0000 (23:14 +0000)]
Set C1 "I/O then Halt" capability bit for Intel EIST.  Some broken BIOSes
refuse to load external SSDTs if this bit is unset for _PDC.  It seems Linux
and OpenSolaris did the same long ago.

MFC after: 1 week

13 years agoFix style(9) issues in pututxline(3).
Ed Schouten [Fri, 25 Feb 2011 23:05:35 +0000 (23:05 +0000)]
Fix style(9) issues in pututxline(3).

Also, make sure to initialize the `ret' variable properly.

Reported by: Cedric Jonas <cedric c84 eu>
Patch by: Garrett Cooper <yanegomi gmail com>

13 years agoUpdate manual page to reflect latest changes of ABI description support.
Dmitry Chagin [Fri, 25 Feb 2011 22:14:12 +0000 (22:14 +0000)]
Update manual page to reflect latest changes of ABI description support.

MFC after: 1 Month.

13 years agoTeach kdump to understand sv_flags records in the trace files.
Dmitry Chagin [Fri, 25 Feb 2011 22:07:23 +0000 (22:07 +0000)]
Teach kdump to understand sv_flags records in the trace files.

MFC after: 1 Month.

13 years agoIntroduce preliminary support of the show description of the ABI of
Dmitry Chagin [Fri, 25 Feb 2011 22:05:33 +0000 (22:05 +0000)]
Introduce preliminary support of the show description of the ABI of
traced process by adding two new events which records value of process
sv_flags to the trace file at process creation/execing/exiting time.

MFC after: 1 Month.

13 years agoktrace_resize_pool() locking slightly reworked:
Dmitry Chagin [Fri, 25 Feb 2011 22:03:28 +0000 (22:03 +0000)]
ktrace_resize_pool() locking slightly reworked:
1) do not take a lock around the single atomic operation.
2) do not lose the invariant of lock by dropping/acquiring
   ktrace_mtx around free() or malloc().

MFC after: 1 Month.

13 years agoRevert r217871.
Doug Barton [Fri, 25 Feb 2011 20:49:07 +0000 (20:49 +0000)]
Revert r217871.

13 years agoRevert the commit that I made, there is a lot of discussion
Remko Lodder [Fri, 25 Feb 2011 19:38:42 +0000 (19:38 +0000)]
Revert the commit that I made, there is a lot of discussion
and it's not accurate anyway

Requested by: jb, bde

13 years agoDocument the input line length limit.
Jaakko Heinonen [Fri, 25 Feb 2011 19:10:19 +0000 (19:10 +0000)]
Document the input line length limit.

Submitted by: Dominic Fandrey (original version)

13 years agoAdd more definitions for vendor-specific CPU capability bits to the last
Jung-uk Kim [Fri, 25 Feb 2011 18:29:57 +0000 (18:29 +0000)]
Add more definitions for vendor-specific CPU capability bits to the last
revision, which is renamed to "Intel Processor Vendor-Specific ACPI".

13 years agoSilence 'out of chain frames' warnings and bump the number of frames.
Kenneth D. Merry [Fri, 25 Feb 2011 17:30:25 +0000 (17:30 +0000)]
Silence 'out of chain frames' warnings and bump the number of frames.

mps.c: Hide the 'out of chain frames' warning behind MPS_INFO.

mps_sas.c: Hide the SIM queue freeze/unfreeze messages behind MPS_INFO.

mpsvar.h: Bump the number of chain frames from 1024 to 2048.  From
testing, it looks like this makes it less likely that we'll
run out of chain frames, and it doesn't cost much memory
(32K).

MFC after: 3 days

13 years agoFix division by zero, causing floating point exception in a drive progress
Sergey Kandaurov [Fri, 25 Feb 2011 13:59:59 +0000 (13:59 +0000)]
Fix division by zero, causing floating point exception in a drive progress
command.

It was possible to read a value of zero from a busy controller used
as the divisor to calculate the remaining rebuild time.

Reported by: Pavel Udovenko <udovenko att nic.ru>
Discussed with: jhb
Approved by: kib (mentor)
MFC after: 1 week

13 years agoMake the description of the feature consistent with another similar
Alexander Leidinger [Fri, 25 Feb 2011 12:46:43 +0000 (12:46 +0000)]
Make the description of the feature consistent with another similar
description for another feature.

Noticed by: trasz

13 years agoAdd some FEATURE macros for various GEOM classes.
Alexander Leidinger [Fri, 25 Feb 2011 10:24:35 +0000 (10:24 +0000)]
Add some FEATURE macros for various GEOM classes.

No FreeBSD version bump, the userland application to query the features will
be committed last and can serve as an indication of the availablility if
needed.

Sponsored by: Google Summer of Code 2010
Submitted by: kibab
Reviewed by: silence on geom@ during 2 weeks
X-MFC after: to be determined in last commit with code from this project

13 years agoAdd some FEATURE macros for various features (AUDIT/CAM/IPC/KTR/MAC/NFS/NTP/
Alexander Leidinger [Fri, 25 Feb 2011 10:11:01 +0000 (10:11 +0000)]
Add some FEATURE macros for various features (AUDIT/CAM/IPC/KTR/MAC/NFS/NTP/
PMC/SYSV/...).

No FreeBSD version bump, the userland application to query the features will
be committed last and can serve as an indication of the availablility if
needed.

Sponsored by:   Google Summer of Code 2010
Submitted by:   kibab
Reviewed by:    arch@ (parts by rwatson, trasz, jhb)
X-MFC after:    to be determined in last commit with code from this project

13 years agoFix a bunch of trivial whitespace mistakes and update the miniobj.h
Poul-Henning Kamp [Fri, 25 Feb 2011 09:40:17 +0000 (09:40 +0000)]
Fix a bunch of trivial whitespace mistakes and update the miniobj.h
file before the real work starts.

13 years agofixed size of AH_ALEN_MAX, which is 64 bytes for SHA-512.
VANHULLEBUS Yvan [Fri, 25 Feb 2011 09:29:32 +0000 (09:29 +0000)]
fixed size of AH_ALEN_MAX, which is 64 bytes for SHA-512.

Obtained from: Matthias Drochner <M.Drochner@fz-juelich.de>
MFC after: 3d

13 years agoAdd a real dependency on the microcode.
David E. O'Brien [Fri, 25 Feb 2011 09:07:17 +0000 (09:07 +0000)]
Add a real dependency on the microcode.
Now when one does 'make kernel ; make kernel' the second invocation
only does:  `kernel.ko' is up to date.
rather than reproduce all the binary microcode files and relink the kernel.
[continuation of r212429]

13 years agoo FreeBSD 8.2 and 7.4-RELEASE added. Mac OS X 10.6 added belatedly.
Maxim Konovalov [Fri, 25 Feb 2011 07:33:42 +0000 (07:33 +0000)]
o FreeBSD 8.2 and 7.4-RELEASE added.  Mac OS X 10.6 added belatedly.

13 years ago- Add two more iconv-related files, which were left out from previous commit
Gabor Kovesdan [Fri, 25 Feb 2011 00:10:26 +0000 (00:10 +0000)]
- Add two more iconv-related files, which were left out from previous commit

Approved by: delphij (mentor)

13 years agoAdd the BSD-licensed Citrus iconv to the base system with default off
Gabor Kovesdan [Fri, 25 Feb 2011 00:04:39 +0000 (00:04 +0000)]
Add the BSD-licensed Citrus iconv to the base system with default off
setting. It can be built by setting the WITH_ICONV knob. While this
knob is unset, the library part, the binaries, the header file and
the metadata files will not be built or installed so it makes no impact
on the system if left turned off.

This work is based on the iconv implementation in NetBSD but a great
number of improvements and feature additions have been included:

- Some utilities have been added. There is a conversion table generator,
  which can compare conversion tables to reference data generated by
  GNU libiconv. This helps ensuring conversion compatibility.
- UTF-16 surrogate support and some endianness issues have been fixed.
- The rather chaotic Makefiles to build metadata have been refactored
  and cleaned up, now it is easy to read and it is also easier to add
  support for new encodings.
- A bunch of new encodings and encoding aliases have been added.
- Support for 1->2, 1->3 and 1->4 mappings, which is needed for
  transliterating with flying accents as GNU does, like "u.
- Lots of warnings have been fixed, the major part of the code is
  now WARNS=6 clean.
- New section 1 and section 5 manual pages have been added.
- Some GNU-specific calls have been implemented:
  iconvlist(), iconvctl(), iconv_canonicalize(), iconv_open_into()
- Support for GNU's //IGNORE suffix has been added.
- The "-" argument for stdin is now recognized in iconv(1) as per POSIX.
- The Big5 conversion module has been fixed.
- The iconv.h header files is supposed to be compatible with the
  GNU version, i.e. sources should build with base iconv.h and
  GNU libiconv. It also includes a macro magic to deal with the
  char ** and const char ** incompatibility.
- GNU compatibility: "" or "char" means the current local
  encoding in use
- Various cleanups and style(9) fixes.

Approved by: delphij (mentor)
Obtained from: The NetBSD Project
Sponsored by: Google Summer of Code 2009

13 years agoEnable the check for negative permissions (the group on a file can't do
Brooks Davis [Thu, 24 Feb 2011 23:51:59 +0000 (23:51 +0000)]
Enable the check for negative permissions (the group on a file can't do
something "everyone" can) by default.

X-MFC after: never

13 years ago* Fix several bugs where the scaled versions of srtt and rttvar
Michael Tuexen [Thu, 24 Feb 2011 22:58:15 +0000 (22:58 +0000)]
* Fix several bugs where the scaled versions of srtt and rttvar
  where used incorrectly.
* Use appropriate variable names for RTO instead of RTT.

MFC after: 3 months.

13 years ago* Cleanup the code computing the retransmission timeout.
Michael Tuexen [Thu, 24 Feb 2011 22:36:40 +0000 (22:36 +0000)]
* Cleanup the code computing the retransmission timeout.
* Fix an initialization bug for the scaled variance of the RTO.

MFC after: 3 months.

13 years agoUse ffs() to locate free bits in the inode and block bitmaps rather than
John Baldwin [Thu, 24 Feb 2011 22:11:36 +0000 (22:11 +0000)]
Use ffs() to locate free bits in the inode and block bitmaps rather than
loops with bit shifts.

13 years agoRecently, in upstream clang, a fix was done to add -L/usr/lib to the
Dimitry Andric [Thu, 24 Feb 2011 21:45:58 +0000 (21:45 +0000)]
Recently, in upstream clang, a fix was done to add -L/usr/lib to the
arguments passed to ld, when linking.  This was to appease configure
scripts in several ports, that grep for such a -L option in "${CC} -v"
output, to determine the startup objects passed to ld.  Note ld itself
does not need to be told about /usr/lib, since it has this path builtin
anyway.

However, if clang is built as a bootstrap tool during buildworld, it
should not use *anything* outside ${WORLDTMP} to include or link with.
The upstream fix to add -L/usr/lib breaks this assumption, and can thus
cause libraries from /usr/lib to be linked in during buildworld.

This can result in buildworld dying during linking of zinject, where it
picks up the wrong copy of libzpool.so, eventually leading to:

/usr/obj/usr/src/tmp/lib/libthr.so.3: undefined reference to `_rtld_get_stack_prot'

Fix this issue by not adding any hardcoded paths, but by looping through
the run-time library path list, which is already correctly set for the
bootstrap phase.

Reported by: datastream.freecity@gmail.com
Pointy hat to: dim

13 years agoAdd sticky.8 to the obsolete files since it had been
Remko Lodder [Thu, 24 Feb 2011 18:13:53 +0000 (18:13 +0000)]
Add sticky.8 to the obsolete files since it had been
moved to sticky.7

Submitted by: maxim and pluknet

13 years ago- Add missing xhci(4) manual page.
Hans Petter Selasky [Thu, 24 Feb 2011 18:08:23 +0000 (18:08 +0000)]
- Add missing xhci(4) manual page.
- Minor update in some USB manual pages.

MFC after: 3 days
Approved by: thompsa (mentor)

13 years agoAdd wording about the priority range and
Remko Lodder [Thu, 24 Feb 2011 16:13:33 +0000 (16:13 +0000)]
Add wording about the priority range and
mention what effect this has at certain
values.

PR: 124469
Obtained from: NetBSD nice.1 v1.14
MFC after: 1 week

13 years agoUpdate xz to release 5.0.1
Martin Matuska [Thu, 24 Feb 2011 13:42:35 +0000 (13:42 +0000)]
Update xz to release 5.0.1

MFC after: 1 week

13 years agoVendor import of xz (stripped)
Martin Matuska [Thu, 24 Feb 2011 13:18:49 +0000 (13:18 +0000)]
Vendor import of xz (stripped)
Git revision: 7232fcf96bf4bd5f9cd4fc6c93ca2912c665e004
Release: 5.0.1

13 years agoMove the sticky manual from section 8 to section
Remko Lodder [Thu, 24 Feb 2011 13:03:47 +0000 (13:03 +0000)]
Move the sticky manual from section 8 to section
7 like NetBSD has, since this is not a command
on itself.

PR: 124468
MFC after: 1 week

13 years ago- Fix typo
Pietro Cerutti [Thu, 24 Feb 2011 10:21:26 +0000 (10:21 +0000)]
- Fix typo

Approved by: davidxu

13 years agoRemove sysctl vm.max_proc_mmap used to protect from KVA space exhaustion.
Sergey Kandaurov [Thu, 24 Feb 2011 09:22:56 +0000 (09:22 +0000)]
Remove sysctl vm.max_proc_mmap used to protect from KVA space exhaustion.
As it was pointed out by Alan Cox, that no longer serves its purpose with
the modern UMA allocator compared to the old one used in 4.x days.

The removal of sysctl eliminates max_proc_mmap type overflow leading to
the broken mmap(2) seen with large amount of physical memory on arches
with factually unbound KVA space (such as amd64).  It was found that
slightly less than 256GB of physmem was enough to trigger the overflow.

Reviewed by: alc, kib
Approved by: avg (mentor)
MFC after: 2 months

13 years ago- Add support for some non-standard USB MIDI devices from Roland, by
Hans Petter Selasky [Thu, 24 Feb 2011 09:13:47 +0000 (09:13 +0000)]
- Add support for some non-standard USB MIDI devices from Roland, by
means of allowing vendor specific interface class for audio and MIDI devices.
- Add new quirks for this. The vendor and product list in OpenBSD's
dev/usb/umidi_quirks.c was used as reference.

MFC after: 14 days
Approved by: thompsa (mentor)

13 years agoThe new accounting file needs to be 644 so that unprivileged users
Doug Barton [Thu, 24 Feb 2011 06:28:48 +0000 (06:28 +0000)]
The new accounting file needs to be 644 so that unprivileged users
can use lastcomm(1)

13 years agoUse the cprd_mem field when setting the start and length for a memory
Rebecca Cran [Wed, 23 Feb 2011 21:45:28 +0000 (21:45 +0000)]
Use the cprd_mem field when setting the start and length for a memory
resource - the layout of cprd_port is identical but using cprd_mem
makes the code easier to understand.

PR: kern/118493
Submitted by: Weongyo Jeong <weongyo.jeong at gmail.com>
MFC after: 3 days

13 years agoFix the 32-bit build stage on amd64 when WITH_CTF is enabled. It seems
Dimitry Andric [Wed, 23 Feb 2011 21:17:38 +0000 (21:17 +0000)]
Fix the 32-bit build stage on amd64 when WITH_CTF is enabled.  It seems
ctfconvert will corrupt object files that are compiled with -g, if it is
not run with -g itself.

To fix it, remove -g from CFLAGS in lib/librt/Makefile.  If you need to
compile this library with debug info, use DEBUG_FLAGS=-g instead, which
will work correctly, even when using WITH_CTF.

13 years agoClean up the now unused #include statement.
Sergey Kandaurov [Wed, 23 Feb 2011 18:22:40 +0000 (18:22 +0000)]
Clean up the now unused #include statement.

Approved by: kib (mentor)
MFC after: 1 week
X-MFC with: r218972

13 years agoAlter comment to reflect change in code.
Josh Paetzel [Wed, 23 Feb 2011 17:52:26 +0000 (17:52 +0000)]
Alter comment to reflect change in code.
Try atacontrol if camcontrol fails.

Approved by: kib (mentor, implicit)

13 years agoHandle memory allocation failures in include().
Rebecca Cran [Wed, 23 Feb 2011 17:17:05 +0000 (17:17 +0000)]
Handle memory allocation failures in include().

PR: i386/85652
Submitted by: Ben Thomas <bthomas at virtualiron.com>
MFC after: 3 days

13 years agoAdd a catch-all for miscellaneous RAID volumes while seeking a better
Nathan Whitehorn [Wed, 23 Feb 2011 13:51:41 +0000 (13:51 +0000)]
Add a catch-all for miscellaneous RAID volumes while seeking a better
solution here. It would really help if CAM devices were part of newbus.

13 years agoMove the max_threads_per_proc and max_threads_hits variables to the
Konstantin Belousov [Wed, 23 Feb 2011 13:50:24 +0000 (13:50 +0000)]
Move the  max_threads_per_proc and max_threads_hits variables to the
file where they are used. Declare the kern.threads sysctl node at the
same location. Since no external use for the variables exists, make them
static.

Discussed with: dchagin
MFC after: 1 week

13 years agoRevert previous change, the existing check was correct.
John Baldwin [Wed, 23 Feb 2011 13:25:42 +0000 (13:25 +0000)]
Revert previous change, the existing check was correct.

Pointy hat to: jhb

13 years agoUse umtx_key objects to uniquely identify futexes. Private futexes in
John Baldwin [Wed, 23 Feb 2011 13:23:28 +0000 (13:23 +0000)]
Use umtx_key objects to uniquely identify futexes.  Private futexes in
different processes that happen to use the same user address in the
separate processes will now be treated as distinct futexes rather than the
same futex.  We can now honor shared futexes properly by mapping them to a
PROCESS_SHARED umtx_key.  Private futexes use THREAD_SHARED umtx_key
objects.

In conjunction with: dchagin
Reviewed by: kib
MFC after: 1 week

13 years agoExpose the umtx_key structure and API to the rest of the kernel.
John Baldwin [Wed, 23 Feb 2011 13:19:14 +0000 (13:19 +0000)]
Expose the umtx_key structure and API to the rest of the kernel.

MFC after: 3 days

13 years agoProperly handle BARs bigger than 4G. The '1' was treated as an int
John Baldwin [Wed, 23 Feb 2011 12:58:50 +0000 (12:58 +0000)]
Properly handle BARs bigger than 4G.  The '1' was treated as an int
causing the size calculation to be truncated to the size of an int
(32-bits on all current architectures).

Submitted by: Anish  akgupt3 of gmail
MFC after: 1 week

13 years agoFix off-by-one error in check against max_threads_per_proc.
John Baldwin [Wed, 23 Feb 2011 12:56:25 +0000 (12:56 +0000)]
Fix off-by-one error in check against max_threads_per_proc.

Submitted by: arundel
MFC after: 1 week

13 years agoCalculate and return the count in vmspace_swap_count as a vm_offset_t
Rebecca Cran [Wed, 23 Feb 2011 10:28:37 +0000 (10:28 +0000)]
Calculate and return the count in vmspace_swap_count as a vm_offset_t
instead of an int to avoid overflow.

While here, clean up some style(9) issues.

PR: kern/152200
Reviewed by: kib
MFC after: 2 weeks

13 years agoFix typos - remove duplicate "is".
Rebecca Cran [Wed, 23 Feb 2011 09:22:33 +0000 (09:22 +0000)]
Fix typos - remove duplicate "is".

PR: docs/154934
Submitted by: Eitan Adler <lists at eitanadler.com>
MFC after: 3 days

13 years agoRemove unnecessary controller reinitialization which resulted in
Pyun YongHyeon [Wed, 23 Feb 2011 02:40:31 +0000 (02:40 +0000)]
Remove unnecessary controller reinitialization which resulted in
link flips during alias address insertion or dhclient operation.
While I'm here remove dc_reset() in DC_ISR_BUS_ERR case. Device is
fully reinitialized again in dc_init_locked().

13 years agoUpdate how accounting log files are rotated.
Doug Barton [Tue, 22 Feb 2011 21:13:40 +0000 (21:13 +0000)]
Update how accounting log files are rotated.

The old version had a race between the time that the old file was
cp'ed to acct.0 and the time that 'sa -s' was run that prevented
the commands that occurred in the meantime from being backed up.

It's also arguable that the old version was inefficient in using
cp which can be a problem on a space-constrained system.

This version avoids both problems, albeit it's considerably more
complicated. The advantage of putting the log rotation in the rc.d
script is that it can handle the _enable and _file questions without
having to do gymnastics to discover either value in the periodic script.

As a side effect of reviewing the rc.d script I cleaned it up a bit.

13 years agoAdded patch-functions-upgrade which should fix some kernel panics
Josh Paetzel [Tue, 22 Feb 2011 19:37:12 +0000 (19:37 +0000)]
Added patch-functions-upgrade which should fix some kernel panics
doing upgrades and uninstalling linux compat ports.

Submitted by: Joerg-Christian Boehme <joerg@chaosdorf.de>
Approved by: kib (mentor, implicit)

13 years agoBetter method for grabbing disk name, dmesg may produce mangled output.
Josh Paetzel [Tue, 22 Feb 2011 19:18:56 +0000 (19:18 +0000)]
Better method for grabbing disk name, dmesg may produce mangled output.

Approved by: kib (mentor, implicit)

13 years agoMake sure to only accept and handle action frames which are for us. In
Bernhard Schmidt [Tue, 22 Feb 2011 19:05:42 +0000 (19:05 +0000)]
Make sure to only accept and handle action frames which are for us. In
promiscuous mode we might receive stuff which otherwise gets filtered
by hardware.

13 years agoXref makefs(8).
Jaakko Heinonen [Tue, 22 Feb 2011 15:31:40 +0000 (15:31 +0000)]
Xref makefs(8).

PR: 154708
Submitted by: jhs

13 years agoFix whitespace nit.
John Baldwin [Tue, 22 Feb 2011 14:58:14 +0000 (14:58 +0000)]
Fix whitespace nit.

13 years agoEliminate two dubious attempts at optimizing the implementation of a
Alan Cox [Tue, 22 Feb 2011 14:47:10 +0000 (14:47 +0000)]
Eliminate two dubious attempts at optimizing the implementation of a
file's last accessed, modified, and changed times:

TMPFS_NODE_ACCESSED and TMPFS_NODE_CHANGED should be set unconditionally
in tmpfs_remove() without regard to the number of hard links to the file.
Otherwise, after the last directory entry for a file has been removed, a
process that still has the file open could read stale values for the last
accessed and changed times with fstat(2).

Similarly, tmpfs_close() should update the time-related fields even if all
directory entries for a file have been removed.  In this case, the effect
is that the time-related fields will have values that are later than
expected.  They will correspond to the time at which fstat(2) is called.

In collaboration with: kib
MFC after: 1 week

13 years agoAdd support for optional distributions, installation of the ports tree and
Nathan Whitehorn [Tue, 22 Feb 2011 13:56:59 +0000 (13:56 +0000)]
Add support for optional distributions, installation of the ports tree and
src. Fitting all of this on a single CD along with a full system requires
changing the default compression algorithm from gzip to xz.

13 years agoMFi386: revision 218926
Yoshihiro Takahashi [Tue, 22 Feb 2011 13:52:03 +0000 (13:52 +0000)]
MFi386: revision 218926

  In sys/boot/i386/boot2/boot2.c, change the type of the 'opts' variable
  from uint16_t back to uint32_t.  The actual option bitmasks (RB_* and
  RBX_*) assume at least a 32 bit variable.

  Submitted by: rdivacky

13 years agoUse a single list to simplify future maintenance and ensure all list items are
Lawrence Stewart [Tue, 22 Feb 2011 10:09:34 +0000 (10:09 +0000)]
Use a single list to simplify future maintenance and ensure all list items are
aligned the same (no functional change at the moment as both list items are the
same number of characters).

Sponsored by: FreeBSD Foundation
MFC after: 3 months
X-MFC with: 218912

13 years agoMake code more friendly to the non-C99 compilers - don't allocate
Maxim Sobolev [Tue, 22 Feb 2011 09:11:47 +0000 (09:11 +0000)]
Make code more friendly to the non-C99 compilers - don't allocate
local variables in the `for' loop declaration. This allows trunk
newsyslog.c to be compiled on 7.x. This change should be no-op from
the functional POV.

13 years agoRegen src.conf(5) after r218941 and r218942.
Ulrich Spörlein [Tue, 22 Feb 2011 08:21:22 +0000 (08:21 +0000)]
Regen src.conf(5) after r218941 and r218942.

13 years agoThe default for FDT has changed, rename the flag/options file.
Ulrich Spörlein [Tue, 22 Feb 2011 08:20:12 +0000 (08:20 +0000)]
The default for FDT has changed, rename the flag/options file.

13 years agoFlesh out WITHOUT_GROFF support to DTRT.
Ulrich Spörlein [Tue, 22 Feb 2011 08:13:49 +0000 (08:13 +0000)]
Flesh out WITHOUT_GROFF support to DTRT.

A full featured groff is required during buildworld, so build it always
and don't rely on it being present on the host system.

vgrind(1) is tightly coupled to a roff processor and will not be
built/installed when groff is disabled. Also much of the roff'ed
documentation under share/doc will not be built/installed when
WITHOUT_GROFF is defined.

Reviewed by: ru (partial)

13 years agoTeach tools/install.sh the -d directory mode.
Ulrich Spörlein [Tue, 22 Feb 2011 08:07:17 +0000 (08:07 +0000)]
Teach tools/install.sh the -d directory mode.

Sync up with flags understood by install(1) [1], and make install(1)'s
usage output not hide the clearly documented -M flag.

PR: misc/154739 [1]
Submitted by: arundel

13 years agoFix bzero() for 64-bit.
Jayachandran C. [Tue, 22 Feb 2011 07:49:51 +0000 (07:49 +0000)]
Fix bzero() for 64-bit.

The existing implementation of bzero incorrectly clears bytes when the
start address is not word aligned. Fix it by using REG_SHI macro which
works on both 32 and 64 bit.

Submitted by: Artem Belevich (fbsdlist at src cx)

13 years ago- Fix QA issues
Martin Wilke [Tue, 22 Feb 2011 05:13:26 +0000 (05:13 +0000)]
- Fix QA issues

PR: misc/146687
Submitted by: Garrett Cooper <gcooper@FreeBSD.org>
Approved by: rwatson (mentor)

13 years ago- Remove no longer in use
Martin Wilke [Tue, 22 Feb 2011 05:10:13 +0000 (05:10 +0000)]
- Remove no longer in use

PR: kern/152354
Submitted by: vehemens <vehemens@verizon.net>
Discussion with:kib
Approved by: rwatson (mentor)

13 years agoBack out 218933 and 281934. The easy cases still worked, but some
Warner Losh [Tue, 22 Feb 2011 04:49:57 +0000 (04:49 +0000)]
Back out 218933 and 281934.  The easy cases still worked, but some
hard cases broke in worse ways than the status quo.  Back them out
until that can be resolved.

13 years agoDon't set the RTS/CTS enable bit per-scenario if the global RTS/CTS
Adrian Chadd [Tue, 22 Feb 2011 04:41:04 +0000 (04:41 +0000)]
Don't set the RTS/CTS enable bit per-scenario if the global RTS/CTS
flags aren't set.

13 years agoSelect building CLANG based on ${TARGET_ARCH} and existence of
Warner Losh [Tue, 22 Feb 2011 04:07:15 +0000 (04:07 +0000)]
Select building CLANG based on ${TARGET_ARCH} and existence of
WITH{,OUT}_CLANG.  We default to yes on some archs, no on others,
unless WITHOUT_CLANG or WITH_CLANG is defined respectively.

13 years agoTesting based on MACHINE_ARCH is problematic. Default to yes to build
Warner Losh [Tue, 22 Feb 2011 04:03:33 +0000 (04:03 +0000)]
Testing based on MACHINE_ARCH is problematic.  Default to yes to build
clang.  A separate change will fix buildworld to default to yes or no
based on the target.

13 years agoShuffle around the RTS/CTS rate/duration logic.
Adrian Chadd [Tue, 22 Feb 2011 00:37:53 +0000 (00:37 +0000)]
Shuffle around the RTS/CTS rate/duration logic.

* Turn ath_tx_calc_ctsduration() into a function that
  returns the ctsduration, or -1 for HT rates;
* add a printf() to ath_tx_calc_ctsduration() which will be
  very loud if somehow that function is called with an MCS
  rate;
* Add ath_tx_get_rtscts_rate() which returns the RTS/CTS
  rate to use for the given data rate, incl. the short
  preamble flag;
* Only call ath_tx_calc_ctsduration() for non-11n chipsets;
  11n chipsets don't require the rtscts duration to be
  calculated.

13 years ago* Don't setup the scenario if the try count is 0
Adrian Chadd [Tue, 22 Feb 2011 00:01:19 +0000 (00:01 +0000)]
* Don't setup the scenario if the try count is 0
* Comment what else is going on during rate scenario setup