]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
13 years agoFix the path to the sys dir when cross compiling after r209510.
thompsa [Tue, 21 Sep 2010 07:03:53 +0000 (07:03 +0000)]
Fix the path to the sys dir when cross compiling after r209510.

Reviewed by: imp

13 years agoIf we are at cancellation point, always work as deferred mode despite
davidxu [Tue, 21 Sep 2010 06:47:04 +0000 (06:47 +0000)]
If we are at cancellation point, always work as deferred mode despite
whether asynchronous mode is turned on or not, this always gives us a
chance to decide whether thread should be canceled or not in
cancellation points.

13 years agozfs_map_page/zfs_unmap_page: do not use sched_pin() and SFB_CPUPRIVATE
avg [Tue, 21 Sep 2010 05:58:45 +0000 (05:58 +0000)]
zfs_map_page/zfs_unmap_page: do not use sched_pin() and SFB_CPUPRIVATE

zfs_map_page/zfs_unmap_page are mostly called around potential I/O paths
and it seems to be a not very good idea to do cpu pinning there.

Suggested by: kib
MFC after: 2 weeks

13 years agozfs_vnops: use zfs_map_page/zfs_unmap_page helper functions in another place
avg [Tue, 21 Sep 2010 05:54:36 +0000 (05:54 +0000)]
zfs_vnops: use zfs_map_page/zfs_unmap_page helper functions in another place

MFC after: 2 weeks

13 years agotools/umastat: more cleanups
avg [Tue, 21 Sep 2010 05:36:30 +0000 (05:36 +0000)]
tools/umastat: more cleanups

PR: misc/146119
Submitted by: pluknet <pluknet@gmail.com>
MFC after: 1 week

13 years agoSupport new variable NANO_LABEL. When set to a non-null string,
imp [Mon, 20 Sep 2010 23:36:54 +0000 (23:36 +0000)]
Support new variable NANO_LABEL.  When set to a non-null string,
nanobsd will build a system that uses this label (via
/dev/ufs/${NANO_LABEL}sX) in preference to NANO_DRIVE (well, it forces
NANO_DRIVE to be ufs/${NANO_LABEL}).  This allows images that will
boot off usb stick or CF card easily well.

There is no change if you don't set this variable.

13 years agoAdd a geli resize subcommand to resize encrypted filesystems prior
brian [Mon, 20 Sep 2010 22:04:59 +0000 (22:04 +0000)]
Add a geli resize subcommand to resize encrypted filesystems prior
to growing the filesystem.

Refuse to attach providers where the metadata provider size is
wrong.  This makes post-boot attaches behave consistently with
pre-boot attaches.  Also refuse to restore metadata to a provider
of the wrong size without the new -f switch.  The new -f switch
forces the metadata restoration despite the provider size, and
updates the provider size in the restored metadata to the correct
value.

Helped by: pjd
Reviewed by: pjd

13 years agotools/umastat: fix build on amd64
avg [Mon, 20 Sep 2010 21:22:15 +0000 (21:22 +0000)]
tools/umastat: fix build on amd64

And perhaps other 64-bit platforms.

Submitted by: Fabian Keil <freebsd-listen@fabiankeil.de>
MFC after: 1 week

13 years agoReplace an XXX comment with the appropriate code.
mdf [Mon, 20 Sep 2010 20:41:59 +0000 (20:41 +0000)]
Replace an XXX comment with the appropriate code.

Submitted by: alc

13 years agoAdd Simplified Chinese messages for BSD grep.
delphij [Mon, 20 Sep 2010 19:42:52 +0000 (19:42 +0000)]
Add Simplified Chinese messages for BSD grep.

13 years agoUse destroy_dev_sched(9) instead of destroy_dev(9) in passcleanup() as
mdf [Mon, 20 Sep 2010 19:42:14 +0000 (19:42 +0000)]
Use destroy_dev_sched(9) instead of destroy_dev(9) in passcleanup() as
it is indirectly a d_close method.

Prompted by: kib
Reviewed by: mav
MFC after: 2 weeks

13 years agoFirst step at adopting FreeBSD to support PSARC/2010/029. This makes
trasz [Mon, 20 Sep 2010 17:10:06 +0000 (17:10 +0000)]
First step at adopting FreeBSD to support PSARC/2010/029.  This makes
acl_is_trivial_np(3) properly recognize the new trivial ACLs.  From
the user point of view, that means "ls -l" no longer shows plus signs
for all the files when running ZFS v28.

13 years agoUpgrade our Clang in base to r114020, from upstream's release_28 branch.
dim [Mon, 20 Sep 2010 16:43:17 +0000 (16:43 +0000)]
Upgrade our Clang in base to r114020, from upstream's release_28 branch.

Approved-by: rpaulo (mentor)

13 years agoTweak the stats exported by the e1000 drivers:
jhb [Mon, 20 Sep 2010 16:04:44 +0000 (16:04 +0000)]
Tweak the stats exported by the e1000 drivers:
- Add a single sysctl procedure to all three drivers to read an arbitrary
  register (the register is passed as arg2).  Use it to replace existing
  routines in igb(4) that used a separate routine for each register, and
  to add support for missing stats in em(4) and lem(4).
- Move the 'rx_overruns' and 'watchdog_timeouts' stats out of the MAC stats
  section as they are driver stats, not MAC counters.
- Simplify the code that creates per-queue stats in igb(4) to use a single
  loop and remove duplicated code.
- Properly read all 64 bits of the 'good octets received/transmitted' in
  em(4) and lem(4).
- Actually read the interrupt count registers in em(4), and drop the
  'host to card' sysctl stats from em(4) as they are not implemented in
  any of the hardware this driver supports.
- Restore several stats to em(4) that were lost in the earlier stats
  conversion including per-queue stats.
- Export several MAC stats in em(4) that were exported in igb(4) but not
  in em(4).
- Export stats in lem(4) using individual sysctls as in em(4) and igb(4).

Reviewed by: jfv
MFC after: 1 week

13 years agoFix an integer overflow in RLE length parsing when decompressing
cperciva [Mon, 20 Sep 2010 14:58:08 +0000 (14:58 +0000)]
Fix an integer overflow in RLE length parsing when decompressing
corrupt bzip2 data.

Approved by: so (cperciva)
Security: FreeBSD-SA-10:08.bzip2

13 years agoAdd __dead2 to functions that we know they are going to exit.
pjd [Mon, 20 Sep 2010 13:23:43 +0000 (13:23 +0000)]
Add __dead2 to functions that we know they are going to exit.

MFC after: 3 days

13 years agoDo not convert some meaningful error value to EINVAL.
glebius [Mon, 20 Sep 2010 12:23:10 +0000 (12:23 +0000)]
Do not convert some meaningful error value to EINVAL.

Reviewed by: will

13 years agoFix a locking issue which resulted in aborted associations
tuexen [Mon, 20 Sep 2010 12:19:11 +0000 (12:19 +0000)]
Fix a locking issue which resulted in aborted associations
due to a corrupted nr-mapping array.

MFC after: 2 weeks.

13 years agoAdd 64 bit support to nlge, and additional fixes
jchandra [Mon, 20 Sep 2010 11:53:57 +0000 (11:53 +0000)]
Add 64 bit support to nlge, and additional fixes

- 64 bit fixes for ifnlge.c
- Use m_nextpkt to save mbuf vaddr on 64 bit, we cannot store the
  64 bit vaddr  in the 40bit freeback field.
- remove unused code and unnecessary variables.
- use xlr_io_mmio macro instead of adding io base address
- rewrite GPIO related code to fixup nlge using xlr_write_reg and DELAY
- support for engg boards major num 11 and 12
- add xlr_paddr_lw() to load 32bit value from physical address, fix
  inline assembly
- style fixes

13 years agoUnbreak the build on strong-aligned architectures (arm, ia64).
marcel [Mon, 20 Sep 2010 04:20:55 +0000 (04:20 +0000)]
Unbreak the build on strong-aligned architectures (arm, ia64).
Casting from (char *) to (struct ufs1_dinode *) changes the
alignment requirement of the pointer and GCC does not know that
the pointer is adequately aligned (due to malloc(3)), and warns
about it. Cast to (void *) first to by-pass the check.

13 years agoAllow a POSIX shared memory object that is opened for read but not for
alc [Sun, 19 Sep 2010 19:42:04 +0000 (19:42 +0000)]
Allow a POSIX shared memory object that is opened for read but not for
write to nonetheless be mapped PROT_WRITE and MAP_PRIVATE, i.e.,
copy-on-write.

(This is a regression in the new implementation of POSIX shared memory
objects that is used by HEAD and RELENG_8.  This bug does not exist in
RELENG_7's user-level, file-based implementation.)

PR: 150260
MFC after: 3 weeks

13 years agoMake refinements to r212824. In particular, don't make
alc [Sun, 19 Sep 2010 17:43:22 +0000 (17:43 +0000)]
Make refinements to r212824.  In particular, don't make
vm_map_unlock_nodefer() part of the synchronization interface for maps.

Add comments to vm_map_unlock_and_wait() and vm_map_wakeup() describing
how they should be used.  In particular, describe the deferred deallocations
issue with vm_map_unlock_and_wait().

Redo the implementation of vm_map_unlock_and_wait() so that it passes
along the caller's file and line information, just like the other map
locking primitives.

Reviewed by: kib
X-MFC after: r212824

13 years agoJust make callout devices and /dev/console force CLOCAL on open().
ed [Sun, 19 Sep 2010 16:35:42 +0000 (16:35 +0000)]
Just make callout devices and /dev/console force CLOCAL on open().

Instead of adding custom checks to wait for DCD on open(), just modify
the termios structure to set CLOCAL. This means SIGHUP is no longer
generated when losing DCD as well.

Reviewed by: kib@
MFC after: 1 week

13 years agoAdd support 'device tpm' for amd64.
nork [Sun, 19 Sep 2010 14:40:37 +0000 (14:40 +0000)]
Add support 'device tpm' for amd64.
Add tpm(4)'s default setting to /boot/defaults/loader.conf.
Add 'device tpm' to NOTES for amd64 and i386.

Discussed with: takawata
Approved by: imp (mentor)

13 years agoIgnore DCD handling on /dev/console entirely.
ed [Sun, 19 Sep 2010 14:21:39 +0000 (14:21 +0000)]
Ignore DCD handling on /dev/console entirely.

This makes /dev/console more fail-safe and prevents a potential console
lock-up during boot.

Discussed on: stable@
Tested by: koitsu@
MFC after: 1 week

13 years agoManual page for the kernel side Secure Neighbor Discovery support.
anchie [Sun, 19 Sep 2010 12:54:18 +0000 (12:54 +0000)]
Manual page for the kernel side Secure Neighbor Discovery support.

Reviewed by: brueffer
Approved by: bz (mentor)

13 years agoFix typo in previous commit.
bschmidt [Sun, 19 Sep 2010 12:52:23 +0000 (12:52 +0000)]
Fix typo in previous commit.

13 years agoRewrite parts of the calibration code which is run while bringing up
bschmidt [Sun, 19 Sep 2010 12:47:41 +0000 (12:47 +0000)]
Rewrite parts of the calibration code which is run while bringing up
the device:
- unobscure some of the code by moving it into its own functions
- get rid of some magic numbers
- create similar structure as the reference driver has, this should
  make further syncs easier

13 years agoGroup functions used for initial calibration.
bschmidt [Sun, 19 Sep 2010 12:39:04 +0000 (12:39 +0000)]
Group functions used for initial calibration.

13 years agoIndicate that POSIX semaphores are always supported.
tijl [Sun, 19 Sep 2010 12:01:50 +0000 (12:01 +0000)]
Indicate that POSIX semaphores are always supported.

Reported by: avilla
Reviewed by: davidxu
Approved by: kib (mentor)

13 years agoAllow the initial congestion window to be configure
tuexen [Sun, 19 Sep 2010 11:57:21 +0000 (11:57 +0000)]
Allow the initial congestion window to be configure
to one MTU. Improve the description.

MFC after: 2 weeks.

13 years agoFix a locking issue which shows up when the code is used
tuexen [Sun, 19 Sep 2010 11:42:16 +0000 (11:42 +0000)]
Fix a locking issue which shows up when the code is used
on Mac OS X.

MFC after: 2 weeks.

13 years agoIn all Makefiles under lib/clang, consistently use tabs instead of
dim [Sun, 19 Sep 2010 10:54:58 +0000 (10:54 +0000)]
In all Makefiles under lib/clang, consistently use tabs instead of
spaces after the '=' sign in macro assignments.

Approved-by: rpaulo (mentor)

13 years agoFix indent.
pjd [Sun, 19 Sep 2010 10:51:55 +0000 (10:51 +0000)]
Fix indent.

13 years agoSupport attaching version 4 metadata
brian [Sun, 19 Sep 2010 10:45:53 +0000 (10:45 +0000)]
Support attaching version 4 metadata

Reviewed by: pjd

13 years agoAdd preliminary support for the Lanner MR-955. It boots multi-user but there
jmallett [Sun, 19 Sep 2010 09:19:38 +0000 (09:19 +0000)]
Add preliminary support for the Lanner MR-955.  It boots multi-user but there
seem to be problems both with the on-board Ethernet interfaces and the em(4)
interfaces on PCI under FreeBSD.

Thanks to Lanner for providing access to hardware.

13 years agoFix to specify generic bus_add_child.
jmallett [Sun, 19 Sep 2010 09:18:27 +0000 (09:18 +0000)]
Fix to specify generic bus_add_child.

13 years agoDon't use memory that can't be direct-mapped on !n64.
jmallett [Sun, 19 Sep 2010 09:18:07 +0000 (09:18 +0000)]
Don't use memory that can't be direct-mapped on !n64.

13 years agoBecause atfork lock is held while forking, a thread cancellation triggered
davidxu [Sun, 19 Sep 2010 09:03:11 +0000 (09:03 +0000)]
Because atfork lock is held while forking, a thread cancellation triggered
by atfork handler is unsafe, use intenal flag no_cancel to disable it.

13 years agoFix typo.
davidxu [Sun, 19 Sep 2010 08:55:36 +0000 (08:55 +0000)]
Fix typo.

13 years agoRevise r197763 which fixes filesystem corruption when extending
brian [Sun, 19 Sep 2010 08:18:56 +0000 (08:18 +0000)]
Revise r197763 which fixes filesystem corruption when extending
into un-zeroed storage.

The original patch was questioned by Kirk as it forces the filesystem
to do excessive work initialising inodes on first use, and was never
MFC'd.  This change mimics the newfs(8) approach of zeroing two
blocks of inodes for each new cylinder group.

Reviewed by: mckusick
MFC after: 3 weeks

13 years ago- _Unwind_Resume function is not used, remove it.
davidxu [Sun, 19 Sep 2010 05:42:29 +0000 (05:42 +0000)]
- _Unwind_Resume function is not used, remove it.
- Use a store barrier to make sure uwl_forcedunwind is lastest thing
  other threads can see.
- Add some comments.

13 years agoFix a race condition when finding stack unwinding functions.
davidxu [Sun, 19 Sep 2010 05:19:47 +0000 (05:19 +0000)]
Fix a race condition when finding stack unwinding functions.

13 years agoFix nfsrv_freeallnfslocks() in the experimental NFSv4 server so that
rmacklem [Sun, 19 Sep 2010 01:18:03 +0000 (01:18 +0000)]
Fix nfsrv_freeallnfslocks() in the experimental NFSv4 server so that
it frees local locks correctly upon close. In order for
nfsrv_localunlock() to work correctly, the lock can no longer be in
the lockowner's stateid list. As such, nfsrv_freenfslock() has to
be called before nfsrv_localunlock(), to get rid of the lock structure
on the lockowner's stateid list. This only affected operation when
local locks (vfs.newnfs.enable_locallocks=1) are enabled, which is
not the default at this time.

MFC after: 1 week

13 years agoFix the experimental NFSv4 server so that it performs local VOP_ADVLOCK()
rmacklem [Sun, 19 Sep 2010 01:05:19 +0000 (01:05 +0000)]
Fix the experimental NFSv4 server so that it performs local VOP_ADVLOCK()
unlock operations correctly. It was passing in F_SETLK instead of
F_UNLCK as the operation for the unlock case. This only affected
operation when local locking (vfs.newnfs.enable_locallocks=1) was enabled.

MFC after: 1 week

13 years agoFix the grammar after I added a second environmental variable.
obrien [Sun, 19 Sep 2010 00:36:26 +0000 (00:36 +0000)]
Fix the grammar after I added a second environmental variable.

Submitted by: wxs

13 years agoIgnore EINTR when calling waitpid.
rpaulo [Sat, 18 Sep 2010 23:38:21 +0000 (23:38 +0000)]
Ignore EINTR when calling waitpid.

13 years agoCleanup white space and typos.
n_hibma [Sat, 18 Sep 2010 22:37:47 +0000 (22:37 +0000)]
Cleanup white space and typos.

13 years agoBugfix: Reset the packet counters at the same time as the byte counts.
n_hibma [Sat, 18 Sep 2010 22:26:50 +0000 (22:26 +0000)]
Bugfix: Reset the packet counters at the same time as the byte counts.

Reviewed by: brian
MFC after: 3 weeks

13 years agoNote that devfs(5) and fdescfs(5) both create /dev/fd file descriptors.
gjb [Sat, 18 Sep 2010 19:23:14 +0000 (19:23 +0000)]
Note that devfs(5) and fdescfs(5) both create /dev/fd file descriptors.

PR: 144534
Submitted by: Matthew Seaman <m.seaman at infracaninophile co uk>
Patch by: Matthew Seaman, keramida
Approved by: keramida (mentor)
MFC after: 1 week

13 years ago- For consistency, remove "." and ".." entries from de_dlist before
jh [Sat, 18 Sep 2010 18:37:41 +0000 (18:37 +0000)]
- For consistency, remove "." and ".." entries from de_dlist before
  calling devfs_delete() (and thus possibly dropping dm_lock) in
  devfs_rmdir_empty().
- Assert that we don't return doomed entries from devfs_find(). [1]

Suggested by: kib [1]
Reviewed by: kib

13 years agoAdd basic cpu_sleep() support for Marvell SoCs. This drops my SheevaPlug's
mav [Sat, 18 Sep 2010 16:57:05 +0000 (16:57 +0000)]
Add basic cpu_sleep() support for Marvell SoCs. This drops my SheevaPlug's
heatsink termperature in open air from 49C to 43C when idle.

13 years agoAdopt the deferring of object deallocation for the deleted map entries
kib [Sat, 18 Sep 2010 15:03:31 +0000 (15:03 +0000)]
Adopt the deferring of object deallocation for the deleted map entries
on map unlock to the lock downgrade and later read unlock operation.

System map entries cannot be backed by OBJT_VNODE objects, no need to
defer deallocation for them. Map entries from user maps do not require
the owner map for deallocation, and can be accumulated in the
thread-local list for freeing when a user map is unlocked.

Move the collection of entries for deferred reclamation into
vm_map_delete(). Create helper vm_map_process_deferred(), that is
called from locations where processing is feasible. Do not process
deferred entries in vm_map_unlock_and_wait() since map_sleep_mtx is
held.

Reviewed by: alc, rstone (previous versions)
Tested by: pho
MFC after: 2 weeks

13 years agoClear timer interrupt status before calling callback, not after it,
mav [Sat, 18 Sep 2010 13:44:39 +0000 (13:44 +0000)]
Clear timer interrupt status before calling callback, not after it,
This fixes timer interrupt losses, fatal in one-shot mode.

13 years agoWith reworking of the socket life cycle in 7.x, the need for a "sotryfree()"
rwatson [Sat, 18 Sep 2010 11:18:42 +0000 (11:18 +0000)]
With reworking of the socket life cycle in 7.x, the need for a "sotryfree()"
was eliminated: all references to sockets are explicitly managed by sorele()
and the protocols.  As such, garbage collect sotryfree(), and update
sofree() comments to make the new world order more clear.

MFC after: 3 days
Reported by: Anuranjan Shukla <anshukla at juniper dot net>

13 years agokern.sched.topology_spec sysctl: use step of 1 for group levels numeration
avg [Sat, 18 Sep 2010 11:16:43 +0000 (11:16 +0000)]
kern.sched.topology_spec sysctl: use step of 1 for group levels numeration

This is just a cosmetic change for prettier output.
'indent' variable/parameter serves two purposes: it specifies whitespace
indentation level and also implies cpu group level/depth.
It would have been better to split those two uses,
but for now just a simple change.

MFC after: 1 week

13 years agoDocument hw.i8254.freq tunable and machdep.i8254_freq sysctl.
mav [Sat, 18 Sep 2010 07:45:54 +0000 (07:45 +0000)]
Document hw.i8254.freq tunable and machdep.i8254_freq sysctl.

13 years agoRestore pre-r212778 optimization, skipping timer reprogramming when it is
mav [Sat, 18 Sep 2010 07:36:43 +0000 (07:36 +0000)]
Restore pre-r212778 optimization, skipping timer reprogramming when it is
not neccessary. It allows to avoid time counter jump of up to 1/18s, when
base frequency slightly tuned via machdep.i8254_freq sysctl.
Fix few style things.

Suggested by: bde

13 years agoWhen global timer used at SMP system, update nextevent field on BSP before
mav [Sat, 18 Sep 2010 07:18:30 +0000 (07:18 +0000)]
When global timer used at SMP system, update nextevent field on BSP before
sending IPI to other CPUs. Otherwise, other CPUs will try to honor stale
value, programming timer for zero interval. If timer is fast enough,
it caused extra interrupt before timer correctly reprogrammed by BSP.

13 years agoFix octusb build.
jmallett [Sat, 18 Sep 2010 00:58:44 +0000 (00:58 +0000)]
Fix octusb build.

13 years agoRework r210248. Although it fixed most of problems, it did not fix one
jkim [Fri, 17 Sep 2010 23:09:31 +0000 (23:09 +0000)]
Rework r210248.  Although it fixed most of problems, it did not fix one
particular edge case where X-axis resolution is not multiple of font width.
Now we just advance enough scan lines, then deduct a partial scan line.
It is more intuitive than the previous code.  Apply the same wisdom to EGA
and VGA planar renderers for consistency.

Reported by: David DEMELIER (demelier dot david at gmail dot com)

13 years agoBefore VirtualBox is fixed, mark with #ifdef what has to be done to make
pjd [Fri, 17 Sep 2010 22:59:15 +0000 (22:59 +0000)]
Before VirtualBox is fixed, mark with #ifdef what has to be done to make
it possible to boot from ZFS RAIDZ for example from within VirtualBox.
The problem with VirtualBox is that its BIOS reports only one disk present.
If we choose to ignore this report, we can find all the disks available.
We can't have this work-around to be turned on by default, because some broken
BIOSes report true when it comes to number of disks, but present the same disk
multiple times.

13 years agoRemove magic value.
pjd [Fri, 17 Sep 2010 22:51:45 +0000 (22:51 +0000)]
Remove magic value.

13 years agoRearrange the TSO code to make it more readable and to clearly
andre [Fri, 17 Sep 2010 22:05:27 +0000 (22:05 +0000)]
Rearrange the TSO code to make it more readable and to clearly
separate the decision logic, of whether we can do TSO, and the
calculation of the burst length into two distinct parts.

Change the way the TSO burst length calculation is done. While
TSO could do bursts of 65535 bytes that can't be represented in
ip_len together with the IP and TCP header. Account for that and
use IP_MAXPACKET instead of TCP_MAXWIN as base constant (both
have the same value of 64K). When more data is available prevent
less than MSS sized segments from being sent during the current
TSO burst.

Add two more KASSERTs to ensure the integrity of the packets.

Tested by: Ben Wilber <ben-at-desync com>
MFC after: 10 days

13 years agoFix a couple of mps problems.
ken [Fri, 17 Sep 2010 21:53:56 +0000 (21:53 +0000)]
Fix a couple of mps problems.

When the driver is completely saturated with commands (1024 in the
case of the SAS2008 in my test system), I/O stops.  If we tell CAM
that we have one less command slot than we have actually allocated,
everything works fine.  We also need a few extra command slots to
allow for aborts and other task management commands to be sent down.

This needs more investigation to determine the root cause, but for
now this fixes things in my testing.

mps.c: Change a printf() to mps_printf().

mps_sas.c: Subtract 5 command slots when we tell CAM how many
commands we can handle.

Add some commented-out logic to print the contents
the CDBs for timed-out commands.  This can help
in debugging devices that are timing out.  This
will be uncommented once I bring some CAM changes in.

Reported by: Andrew Boyer <aboyer at averesystems dot com>

13 years agoFix a bug where the wrong PR-SCTP policy was considered.
tuexen [Fri, 17 Sep 2010 19:20:39 +0000 (19:20 +0000)]
Fix a bug where the wrong PR-SCTP policy was considered.
While there, use always the same code for the check of
TTL expiration.

MFC after: 2 weeks.

13 years agoMake the initial congestion window configurable via sysctl.
tuexen [Fri, 17 Sep 2010 18:53:07 +0000 (18:53 +0000)]
Make the initial congestion window configurable via sysctl.

MFC after: 2 weeks.

13 years ago* Implement initial version of send buffer splitting.
tuexen [Fri, 17 Sep 2010 16:20:29 +0000 (16:20 +0000)]
* Implement initial version of send buffer splitting.
* Make send/recv buffer splitting switchable via sysctl.
* While there: Fix some comments.

13 years agoBy popular demand, kill all the non GIANT related interrupt messages.
imp [Fri, 17 Sep 2010 16:05:25 +0000 (16:05 +0000)]
By popular demand, kill all the non GIANT related interrupt messages.
They are confusing and add little value.

Reviewed by: jhb@

13 years agoVendor import of clang r114020 (from the release_28 branch):
dim [Fri, 17 Sep 2010 15:54:40 +0000 (15:54 +0000)]
Vendor import of clang r114020 (from the release_28 branch):
http://llvm.org/svn/llvm-project/cfe/branches/release_28@114020

Approved by: rpaulo (mentor)

13 years agoVendor import of llvm r114020 (from the release_28 branch):
dim [Fri, 17 Sep 2010 15:48:55 +0000 (15:48 +0000)]
Vendor import of llvm r114020 (from the release_28 branch):
http://llvm.org/svn/llvm-project/llvm/branches/release_28@114020

Approved by: rpaulo (mentor)

13 years agoRemove duplicate include of <strings.h>
mm [Fri, 17 Sep 2010 14:15:03 +0000 (14:15 +0000)]
Remove duplicate include of <strings.h>

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

13 years agoFixes for XLR network accelerator driver (nlge).
jchandra [Fri, 17 Sep 2010 10:28:10 +0000 (10:28 +0000)]
Fixes for XLR network accelerator driver (nlge).

- Process some tx done messages in the transmit path, to ensure that
  the XLR NA tx done FIFO does not overflow.
- Add a message ring handler API to process atmost a given number of
  messages from a specified bucket mask. This will be used to process
  the tx done messages
- Add a callout to restart transmit in the case transmit gets blocked.
- Update enable_msgring_int() and disable_msgring_int(), remove unused
  args and make static.

Obtained from: Sriram Gorti (srgorti at netlogicmicro dot com)

13 years agonextboot: warn about limitations of /boot/nextboot.conf on ZFS
avg [Fri, 17 Sep 2010 09:50:36 +0000 (09:50 +0000)]
nextboot: warn about limitations of /boot/nextboot.conf on ZFS

MFC after: 1 week

13 years agoCorrect some non-code typos.
obrien [Fri, 17 Sep 2010 09:14:40 +0000 (09:14 +0000)]
Correct some non-code typos.

13 years agoAdd atrtc(4) manual page.
mav [Fri, 17 Sep 2010 08:44:54 +0000 (08:44 +0000)]
Add atrtc(4) manual page.

13 years agoFix typo ${attimer.4} -> ${_attimer.4}.
mav [Fri, 17 Sep 2010 07:44:01 +0000 (07:44 +0000)]
Fix typo ${attimer.4} -> ${_attimer.4}.

13 years agoChase the ports list to make snapshots work again with NOPORTS set.
jhay [Fri, 17 Sep 2010 07:40:02 +0000 (07:40 +0000)]
Chase the ports list to make snapshots work again with NOPORTS set.

13 years agoamd64: reduce VM_KMEM_SIZE_SCALE to 1 allowing kernel to use more memory
avg [Fri, 17 Sep 2010 07:36:32 +0000 (07:36 +0000)]
amd64: reduce VM_KMEM_SIZE_SCALE to 1 allowing kernel to use more memory

KVA space is abundant on amd64, so there is no reason to limit kernel
map size to a fraction of available physical memory.  In fact, it could
be larger than physical memory.

This should help with memory auto-tuning for ZFS and shouldn't affect
other workloads.
This should reduce number of circumstances for "kmem_map too small"
panics, but probably won't eliminate them entirely due to potential kmem
fragmentation.

In fact, you might want/need to limit maximum ARC size after this commit
if you need to resrve more memory for applications.

This change was discussed on arch@ and nobody said "don't do it".

MFC after: 6 weeks

13 years agozfs arc_reclaim_needed: fix typo in mismerge in r212780
avg [Fri, 17 Sep 2010 07:34:50 +0000 (07:34 +0000)]
zfs arc_reclaim_needed: fix typo in mismerge in r212780

PR: kern/146410, kern/138790
MFC after: 3 weeks
X-MFC with: r212780

13 years agozfs+sendfile: advance uio_offset upon reading as well
avg [Fri, 17 Sep 2010 07:20:20 +0000 (07:20 +0000)]
zfs+sendfile: advance uio_offset upon reading as well

Picked from analogous code in tmpfs.

MFC after: 1 week

13 years agozfs arc_reclaim_needed: remove redundant checks for arc_c_max and arc_c_max
avg [Fri, 17 Sep 2010 07:17:38 +0000 (07:17 +0000)]
zfs arc_reclaim_needed: remove redundant checks for arc_c_max and arc_c_max

Those checks are not present in upstream code and they are enforced in
actual calculations of delta by which ARC size can be grown or should be
reduced.

MFC after: 3 weeks

13 years agozfs arc_reclaim_needed: more reasonable threshold for available pages
avg [Fri, 17 Sep 2010 07:14:07 +0000 (07:14 +0000)]
zfs arc_reclaim_needed: more reasonable threshold for available pages

vm_paging_target() is not a trigger of any kind for pageademon, but
rather a "soft" target for it when it's already triggered.
Thus, trying to keep 2048 pages above that level at the expense of ARC
was simply driving ARC size into the ground even with normal memory
loads.
Instead, use a threshold at which a pagedaemon scan is triggered, so
that ARC reclaiming helps with pagedaemon's task, but the latter still
recycles active and inactive pages.

PR: kern/146410, kern/138790
MFC after: 3 weeks

13 years agoAdd attimer(4) manual page.
mav [Fri, 17 Sep 2010 04:55:01 +0000 (04:55 +0000)]
Add attimer(4) manual page.

13 years agoAdd one-shot mode support to attimer (i8254) event timer.
mav [Fri, 17 Sep 2010 04:48:50 +0000 (04:48 +0000)]
Add one-shot mode support to attimer (i8254) event timer.

Unluckily, using one-shot mode is impossible, when same hardware used for
time counting. Introduce new tunable hint.attimer.0.timecounter, setting
which to 0 disables i8254 time counter and allows one-shot mode. Note,
that on some systems there may be no other reliable enough time counters,
so this tunable should be used with understanding.

13 years agoGet rid of the unnecessary redirection of 'is_cacheable_mem()' to
neel [Fri, 17 Sep 2010 02:20:12 +0000 (02:20 +0000)]
Get rid of the unnecessary redirection of 'is_cacheable_mem()' to
'is_physical_memory()' through a macro.

Implement 'is_cacheable_mem()' directly instead.

13 years agoGet rid of unused macros.
neel [Fri, 17 Sep 2010 02:14:21 +0000 (02:14 +0000)]
Get rid of unused macros.

13 years agoMake a note of which platforms the mac strings come from.
thompsa [Fri, 17 Sep 2010 01:13:48 +0000 (01:13 +0000)]
Make a note of which platforms the mac strings come from.

Suggested by: adrian

13 years agoUse getenv to find the mac address since it could be in the bootloader
thompsa [Fri, 17 Sep 2010 01:09:12 +0000 (01:09 +0000)]
Use getenv to find the mac address since it could be in the bootloader
environment or command line and under different names.

13 years agoUse device_printf where possible, and otherwise at least include the
emaste [Thu, 16 Sep 2010 23:33:24 +0000 (23:33 +0000)]
Use device_printf where possible, and otherwise at least include the
driver name in printf strings.

Reported by: Mark Johnston

13 years agoMFp4 (//depot/projects/mps/...):
ken [Thu, 16 Sep 2010 22:54:56 +0000 (22:54 +0000)]
MFp4 (//depot/projects/mps/...):

According to the MPT2 spec, task management commands are
serialized, and so no I/O should start while task management
commands are active.

So, to comply with that, freeze the SIM queue before we send any
task management commands (abort, target reset, etc.) down to the
IOC.  We unfreeze the queue once the task management command
completes.

It isn't clear from the spec whether multiple simultaneous task
management commands are supported.  Right now it is possible to
have multiple outstanding task management commands, especially in
the abort case.  Multiple outstanding aborts do complete
successfully, so it may be supported.

We also don't yet have any recovery mechanism (e.g. reset the IOC)
if the task management command fails.

13 years agoIncrease the hostname display width. Many machines are named
obrien [Thu, 16 Sep 2010 22:38:27 +0000 (22:38 +0000)]
Increase the hostname display width.  Many machines are named
with >12 characters.  This still allows for 80 column output
with load averages of 99.99, 99.99, 99.99.

13 years ago+ Add the SCRIPT environmental variable to the sub-shell. Its value is
obrien [Thu, 16 Sep 2010 22:31:03 +0000 (22:31 +0000)]
+ Add the SCRIPT environmental variable to the sub-shell.  Its value is
the name of the typescript file.
+ Add the 'command' argument (if supplied on the command line) to the
typescript file.  This creates a more complete typescript when invoked
this way - more equal to invoking script without supplying the 'command'
argument.

13 years agoThe inflight bandwidth limiter was removed in r212765.
andre [Thu, 16 Sep 2010 22:11:55 +0000 (22:11 +0000)]
The inflight bandwidth limiter was removed in r212765.

13 years agoMake vendor/clang/dist exactly the same as upstream's r108428. Some
dim [Thu, 16 Sep 2010 21:14:28 +0000 (21:14 +0000)]
Make vendor/clang/dist exactly the same as upstream's r108428.  Some
files and directories were already added/removed in the upstream
repository, but were not added/removed here, when the previous snapshot
was imported.

Note: I did not import the file test/Lexer/conflict-marker.c, because it
contains merge conflict markers on purpose, which upsets our pre-commit
hooks.

Approved by: rpaulo (mentor)

13 years agoRemove the TCP inflight bandwidth limiter as announced in r211315
andre [Thu, 16 Sep 2010 21:06:45 +0000 (21:06 +0000)]
Remove the TCP inflight bandwidth limiter as announced in r211315
to give way for the pluggable congestion control framework.  It is
the task of the congestion control algorithm to set the congestion
window and amount of inflight data without external interference.

In 'struct tcpcb' the variables previously used by the inflight
limiter are renamed to spares to keep the ABI intact and to have
some more space for future extensions.

In 'struct tcp_info' the variable 'tcpi_snd_bwnd' is not removed to
preserve the ABI.  It is always set to 0.

In siftr.c in 'struct pkt_node' the variable 'snd_bwnd' is not removed
to preserve the ABI.  It is always set to 0.

These unused variable in the various structures may be reused in the
future or garbage collected before the next release or at some other
point when an ABI change happens anyway for other reasons.

No MFC is planned.  The inflight bandwidth limiter stays disabled by
default in the other branches but remains available.

13 years agostatus bits should be &'ed against status to be really functional.
delphij [Thu, 16 Sep 2010 21:06:23 +0000 (21:06 +0000)]
status bits should be &'ed against status to be really functional.

Reported by: Jike Song
Reviewed by: yongari
MFC after: 1 week

13 years agoRMI security accelerator driver update.
jchandra [Thu, 16 Sep 2010 20:23:22 +0000 (20:23 +0000)]
RMI security accelerator driver update.

- Compile fixes for 9.0, the previous version of this driver was
  for FreeBSD 6.
- Add virtual address field in OperationDescriptor_t, we cannot use
  MIPS_PHYS_TO_KSEG0 on physical address.
- Fixes for new message ring API
- Remove unused sys/mips/rmi/dev/sec/stats.h
- Whitespace fixes

13 years agoRemove an unnecessary hack from ACPICA 20100915 (r212761).
jkim [Thu, 16 Sep 2010 20:11:40 +0000 (20:11 +0000)]
Remove an unnecessary hack from ACPICA 20100915 (r212761).

13 years agoMerge ACPICA 20100915.
jkim [Thu, 16 Sep 2010 20:08:00 +0000 (20:08 +0000)]
Merge ACPICA 20100915.