]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
13 years agoMake refinements to r212824. In particular, don't make
Alan Cox [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 Schouten [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.
Norikatsu Shigemura [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 Schouten [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.
Ana Kukec [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.
Bernhard Schmidt [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
Bernhard Schmidt [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.
Bernhard Schmidt [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 Coosemans [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
Michael 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
Michael 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
Dimitry Andric [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.
Pawel Jakub Dawidek [Sun, 19 Sep 2010 10:51:55 +0000 (10:51 +0000)]
Fix indent.

13 years agoSupport attaching version 4 metadata
Brian Somers [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
Juli Mallett [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.
Juli Mallett [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.
Juli Mallett [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
David Xu [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.
David Xu [Sun, 19 Sep 2010 08:55:36 +0000 (08:55 +0000)]
Fix typo.

13 years agoRevise r197763 which fixes filesystem corruption when extending
Brian Somers [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.
David Xu [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.
David Xu [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
Rick Macklem [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()
Rick Macklem [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.
David E. O'Brien [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.
Rui Paulo [Sat, 18 Sep 2010 23:38:21 +0000 (23:38 +0000)]
Ignore EINTR when calling waitpid.

13 years agoCleanup white space and typos.
Nick 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.
Nick 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.
Glen Barber [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
Jaakko Heinonen [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
Alexander Motin [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
Konstantin Belousov [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,
Alexander Motin [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()"
Robert Watson [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
Andriy Gapon [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.
Alexander Motin [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
Alexander Motin [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
Alexander Motin [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.
Juli Mallett [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
Jung-uk Kim [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
Pawel Jakub Dawidek [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.
Pawel Jakub Dawidek [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 Oppermann [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.
Kenneth D. Merry [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.
Michael 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.
Michael 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.
Michael 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.
Warner Losh [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 agoRemove duplicate include of <strings.h>
Martin Matuska [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).
Jayachandran C. [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
Andriy Gapon [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.
David E. O'Brien [Fri, 17 Sep 2010 09:14:40 +0000 (09:14 +0000)]
Correct some non-code typos.

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

13 years agoFix typo ${attimer.4} -> ${_attimer.4}.
Alexander Motin [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.
John Hay [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
Andriy Gapon [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
Andriy Gapon [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
Andriy Gapon [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
Andriy Gapon [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
Andriy Gapon [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.
Alexander Motin [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.
Alexander Motin [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 Natu [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 Natu [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.
Andrew Thompson [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
Andrew Thompson [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
Ed Maste [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/...):
Kenneth D. Merry [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
David E. O'Brien [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
David E. O'Brien [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 Oppermann [Thu, 16 Sep 2010 22:11:55 +0000 (22:11 +0000)]
The inflight bandwidth limiter was removed in r212765.

13 years agoRemove the TCP inflight bandwidth limiter as announced in r211315
Andre Oppermann [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.
Xin LI [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.
Jayachandran C. [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).
Jung-uk Kim [Thu, 16 Sep 2010 20:11:40 +0000 (20:11 +0000)]
Remove an unnecessary hack from ACPICA 20100915 (r212761).

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

13 years agoUpdate acfreebsd.h for ACPI_THREAD_ID change.
Jung-uk Kim [Thu, 16 Sep 2010 19:43:32 +0000 (19:43 +0000)]
Update acfreebsd.h for ACPI_THREAD_ID change.

Note this patch was committed on upstream GIT:

http://git.moblin.org/cgit.cgi/acpica/commit/?id=184ee2428cf02b0035d5de8a82c06fdfbc2ae14c

13 years agoUpdate rge.h for r212758 - stats incremented using xlr_ldaddwu should be
Jayachandran C. [Thu, 16 Sep 2010 19:25:24 +0000 (19:25 +0000)]
Update rge.h for r212758 - stats incremented using xlr_ldaddwu should be
unsigned int.

13 years agoNetwork driver updates.
Jayachandran C. [Thu, 16 Sep 2010 19:13:55 +0000 (19:13 +0000)]
Network driver updates.

- Move RMI MIPS extension to atomic increment word (LDADDWU) to common
  header file sys/mips/rmi/rmi_mips_exts.h
- Fix xlr_ldaddwu() for 64 bit, it is a 32 bit operation, use
  unsigned int* instead of unsigned long* argument
- Provide dummy xlr_enable_kx/xlr_restore_kx for n32 and n64.
- Provide xlr_paddr_ld() instead of xlr_paddr_lw(), so that the
  descriptor formats are same for 32 and 64 bit
- update nlge and rge for the changes

These changes are also needed by the security driver which will be
added later.

13 years agoFix a typo in a comment.
Jung-uk Kim [Thu, 16 Sep 2010 18:37:33 +0000 (18:37 +0000)]
Fix a typo in a comment.

Submitted by: afiveg

13 years agoImplement device unbusying via a cdevpriv destructor.
Attilio Rao [Thu, 16 Sep 2010 17:49:10 +0000 (17:49 +0000)]
Implement device unbusying via a cdevpriv destructor.

Suggested by: jhb
Tested by: Mark Johnston <mjohnston at sandvine dot com>
Reviewed by: emaste, jhb
MFC after: 10 days
X-MFC: r212661

13 years agoFix incorrect RX BD producer updates. The producer index was
Pyun YongHyeon [Thu, 16 Sep 2010 17:32:37 +0000 (17:32 +0000)]
Fix incorrect RX BD producer updates. The producer index was
already updated after allocating mbuf so driver had to use the last
index instead of using next producer index. This should fix driver
hang which may happen under high network load.

Reported by: Igor Sysoev <is <> rambler-co dot ru>, Vlad Galu <dudu <> dudu dot ro>
Tested by: Igor Sysoev <is <> rambler-co dot ru>, Vlad Galu <dudu <> dudu dot ro>
MFC after: 10 days

13 years agoAdd support for dumping kernel to gconcat.
Alexander Motin [Thu, 16 Sep 2010 17:24:25 +0000 (17:24 +0000)]
Add support for dumping kernel to gconcat.
Dumping goes to the component, where dump partition begins.

13 years agoRe-add r212370 now that the LOR in powerpc64 has been resolved:
Matthew D Fleming [Thu, 16 Sep 2010 16:13:12 +0000 (16:13 +0000)]
Re-add r212370 now that the LOR in powerpc64 has been resolved:

Add a drain function for struct sysctl_req, and use it for a variety
of handlers, some of which had to do awkward things to get a large
enough SBUF_FIXEDLEN buffer.

Note that some sysctl handlers were explicitly outputting a trailing
NUL byte.  This behaviour was preserved, though it should not be
necessary.

Reviewed by:    phk (original patch)

13 years agoOnly attempt to list extended capabilities for devices that have a
John Baldwin [Thu, 16 Sep 2010 16:03:12 +0000 (16:03 +0000)]
Only attempt to list extended capabilities for devices that have a
PCI-express capabilities.  Non-PCI-express PCI devices may simply ignore
the upper bits in a config register address effectively aliasing the
device ID register to 0x100 rather than returning 0xFFFFFFFF.  Previously
the code relied on these reads returning 0xFFFFFFFF.

MFC after: 3 days

13 years agoFix panic, when due to some kind of congestion on FIS-based switching
Alexander Motin [Thu, 16 Sep 2010 12:39:50 +0000 (12:39 +0000)]
Fix panic, when due to some kind of congestion on FIS-based switching
port multiplier some command triggers false positive timeout, but then
completes normally.

MFC after: 2 weeks

13 years agoImprove comment to TCP_MINMSS by taking the wording from lstewart (with
Andre Oppermann [Thu, 16 Sep 2010 12:13:06 +0000 (12:13 +0000)]
Improve comment to TCP_MINMSS by taking the wording from lstewart (with
a small difference in the last paragraph though) as suggested by jhb.

Clarify that the 'reviewed by' in r212653 by lstewart was for the
functional change, not the comments in the committed version.

13 years agoRemove accidentally committed test code which effectively prevented the
Marius Strobl [Thu, 16 Sep 2010 12:05:46 +0000 (12:05 +0000)]
Remove accidentally committed test code which effectively prevented the
use of the SPARC64 V VIS-based block copy function added in r212709.
Reported by: Michael Moll

13 years agoMerge from powerpc:
Marius Strobl [Thu, 16 Sep 2010 12:05:00 +0000 (12:05 +0000)]
Merge from powerpc:
- Change putc_func_t to use a char instead of an int for the character.
- Make functions and variables not used outside of this source file static.
- Remove unused prototypes and variables.
- The OFW read and seek methods take 3 and not 4 input arguments.

13 years agoFix indenting of the previous commit.
Rui Paulo [Thu, 16 Sep 2010 11:40:41 +0000 (11:40 +0000)]
Fix indenting of the previous commit.

13 years agoWhen generating functions to print the arguments of system calls with
Rui Paulo [Thu, 16 Sep 2010 11:33:31 +0000 (11:33 +0000)]
When generating functions to print the arguments of system calls with
bitwise parameters (e.g. mmap), print the syscall parameter value first.
The resulting output looks like the %b specifier of printf(9).

Before:
mmap(0,0x8000,PROT_READ|PROT_WRITE,...
After:
mmap(0,0x8000,0x3<PROT_READ|PROT_WRITE>,...

Submitted by: Norberto Lopes <nlopes.ml at gmail.com>
Idea from: freebsd-arch/2006-April/005116.html

13 years agoMake the format of "Real Memory" and "Virtual Memory" lines more
Marko Zec [Thu, 16 Sep 2010 10:53:01 +0000 (10:53 +0000)]
Make the format of "Real Memory" and "Virtual Memory" lines more
consistent with the rest of sysctl vm.vmtotal output.

MFC after: 3 days

13 years agoMerge r207585 from cas(4):
Marius Strobl [Thu, 16 Sep 2010 09:29:48 +0000 (09:29 +0000)]
Merge r207585 from cas(4):
- Don't probe for PHYs if we already know to use a SERDES. Unlike as with
  cas(4) this only serves to speed up the the device attach though and can
  only be determined via the OFW device tree but not from the VPD.
- Don't touch the MIF when using a SERDES.
- Add some missing bus space barriers, mainly in the PCS code path.

13 years agoAdd support for identifying a journaled root filesystem.
Brian Somers [Thu, 16 Sep 2010 08:16:53 +0000 (08:16 +0000)]
Add support for identifying a journaled root filesystem.
Fix support for identifying the given /dev/vinum/root example.

MFC after: 3 weeks

13 years agoImplement proc/$$/environment.
Dag-Erling Smørgrav [Thu, 16 Sep 2010 07:56:34 +0000 (07:56 +0000)]
Implement proc/$$/environment.

Submitted by: Fernando Apesteguía <fernando.apesteguia@gmail.com>
MFC after: 3 weeks

13 years agoSplit the SLB mirror cache into two kinds of object, one for kernel maps
Nathan Whitehorn [Thu, 16 Sep 2010 03:46:17 +0000 (03:46 +0000)]
Split the SLB mirror cache into two kinds of object, one for kernel maps
which are similar to the previous ones, and one for user maps, which
are arrays of pointers into the SLB tree. This changes makes user SLB
updates atomic, closing a window for memory corruption. While here,
rearrange the allocation functions to make context switches faster.

13 years agoFew whitespace cleanups and comments tunings.
Alexander Motin [Thu, 16 Sep 2010 02:59:25 +0000 (02:59 +0000)]
Few whitespace cleanups and comments tunings.

Submitted by: arundel

13 years agoReplace the SLB backing store splay tree used on 64-bit PowerPC AIM
Nathan Whitehorn [Thu, 16 Sep 2010 00:22:25 +0000 (00:22 +0000)]
Replace the SLB backing store splay tree used on 64-bit PowerPC AIM
hardware with a lockless sparse tree design. This marginally improves
the performance of PMAP and allows copyin()/copyout() to run without
acquiring locks when used on wired mappings.

Submitted by: mdf

13 years agoRemove old debug code.
Michael Tuexen [Wed, 15 Sep 2010 23:56:25 +0000 (23:56 +0000)]
Remove old debug code.

MFC after: 2 weeks.

13 years agoRemove unused variable/assignment.
Michael Tuexen [Wed, 15 Sep 2010 23:40:36 +0000 (23:40 +0000)]
Remove unused variable/assignment.

MFC after: 3 weeks.