]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
14 years agoCorrect the DCR_IPE macro to refer to the right bit. Also improve the
marius [Sat, 10 Apr 2010 11:13:51 +0000 (11:13 +0000)]
Correct the DCR_IPE macro to refer to the right bit. Also improve the
associated comment as besides US-IV+ these bits are only available with
US-III++, i.e. the 1.2GHz version of the US-III+.

14 years agoUnlike the sun4v variant, the sun4u version of SUNW,set-trap-table
marius [Sat, 10 Apr 2010 10:56:59 +0000 (10:56 +0000)]
Unlike the sun4v variant, the sun4u version of SUNW,set-trap-table
actually only takes one argument.

14 years agoDo as the comment suggests and determine the bus space based on the last
marius [Sat, 10 Apr 2010 10:44:41 +0000 (10:44 +0000)]
Do as the comment suggests and determine the bus space based on the last
bus we actually mapped at rather than always based on the last bus we
encountered while moving upward in the tree. Otherwise we might use the
wrong bus space in case the bridge directly underneath the nexus doesn't
require mapping, i.e. was skipped as it's the case for ssm(4) nodes.

14 years agoCorrect broken build.
jfv [Sat, 10 Apr 2010 07:26:51 +0000 (07:26 +0000)]
Correct broken build.

14 years agoUpdate firmware for the 6000 series Intel cards to version 9.193.4.1.
bschmidt [Sat, 10 Apr 2010 07:07:08 +0000 (07:07 +0000)]
Update firmware for the 6000 series Intel cards to version 9.193.4.1.

Approved by: rpaulo (mentor)
MFC after: 2 weeks

14 years agoiwn4965_set_txpower() uses maxpwr from EEPROM to calculate the power to
bschmidt [Sat, 10 Apr 2010 07:00:26 +0000 (07:00 +0000)]
iwn4965_set_txpower() uses maxpwr from EEPROM to calculate the power to
set, it make sense to actually initialize that array.  This fixes some
issues with 4965 adapters where the TX power is crucial.

This got lost somewhere while merging with the OpenBSD code.

Approved by: rpaulo (mentor)
Obtained from: OpenBSD
MFC after: 2 weeks

14 years ago* Rename bluetooth coexistence flags, no binary change.
bschmidt [Sat, 10 Apr 2010 06:58:24 +0000 (06:58 +0000)]
* Rename bluetooth coexistence flags, no binary change.
* Enable DC calibration and crystal calibration on Centrino Advanced-N
  6250 parts.
* Workaround for a HW bug (does not affect 4965AGN) that may sporadically
  affect latency under some rare circumstances. From a similar commit to
  iwlwifi.
* Update sensitivity settings for 5000 series to workaround a performance
  bug in the DSP (1000 is not affected so we keep the old values for 5000).
* Update sensitivity settings for 6000 series.
* Set differential gains on 6250 too (but use a 1.0 factor, not 1.5).
* Init OFDM sensitivity with min value (which depends on the chip)
  instead of hardcoding it to 90.
* Read calibration version from ROM and set IWN_GP_DRIVER_CALIB_VER6
  bit on 6x50 if version >= 6.

Approved by: rpaulo (mentor)
Obtained from: OpenBSD
MFC after: 2 weeks

14 years agoSmall whitespace cleanup.
bschmidt [Sat, 10 Apr 2010 06:55:29 +0000 (06:55 +0000)]
Small whitespace cleanup.

Approved by: rpaulo (mentor)
MFC after: 2 weeks

14 years agoA few more changes from yongari:
jfv [Fri, 9 Apr 2010 23:15:37 +0000 (23:15 +0000)]
A few more changes from yongari:
- code flow in handler could let interrupt be
  reenabled when not wanted.
- change where the RX lock is taken to improve
  performance.
- adapter->msix is true for MSI systems also,
  it needs to explicitly test for 82574, good one :)

14 years agoConsistently use capital letters.
yongari [Fri, 9 Apr 2010 23:00:24 +0000 (23:00 +0000)]
Consistently use capital letters.

14 years agoAdd preliminary support for 8168E/8111E PCIe controller.
yongari [Fri, 9 Apr 2010 22:50:28 +0000 (22:50 +0000)]
Add preliminary support for 8168E/8111E PCIe controller.
While I'm here simplify device description string.

Tested by: Michael Beckmann < michael <> apfel dot de >
MFC after: 5 days

14 years agoDUH, must be tired, I missed the second instance...
jfv [Fri, 9 Apr 2010 21:18:46 +0000 (21:18 +0000)]
DUH, must be tired, I missed the second instance...
time for the weekend :)

14 years agoThanks to Michael Tuexen for catching this, bit set that
jfv [Fri, 9 Apr 2010 21:16:45 +0000 (21:16 +0000)]
Thanks to Michael Tuexen for catching this, bit set that
keeps the clock from being reset when writing to EITR was
incorrect, also there is a shared code #define for it anyway.

14 years agoIncorporate suggested improvements from yongari.
jfv [Fri, 9 Apr 2010 18:42:15 +0000 (18:42 +0000)]
Incorporate suggested improvements from yongari.

Also, from feedback, make the multiqueue code an
option (EM_MULTIQUEUE) that is off by default.
Problems have been seen with UDP when its on.

14 years agoThis commit enables partial operation of dummynet with kernels
luigi [Fri, 9 Apr 2010 18:02:19 +0000 (18:02 +0000)]
This commit enables partial operation of dummynet with kernels
compiled with "options VIMAGE".
As it is now, there is still a single instance of the pipes,
and it is only usable from vnet0 (the main instance).
Trying to use a pipe from a different vimage does not crash
the system as it did before, but the traffic coming out from
the pipe goes to the wrong place, and i still need to
figure out where.

Support for per-vimage pipes is almost there (just a matter of
uncommenting the VNET_* definitions for dn_cfg, plus putting into
the structure the remaining static variables), however i need
first to figure out how init/uninit work, and also to understand
where packets are ending up on exit from a pipe.

In summary: vimage support for dummynet is not complete yet,
but we are getting there.

14 years agoAdd rc.d/ubthidhci. This small script calls usbconfig(1) to change a USB
rpaulo [Fri, 9 Apr 2010 17:32:38 +0000 (17:32 +0000)]
Add rc.d/ubthidhci. This small script calls usbconfig(1) to change a USB
Bluetooth controller from HID mode to HCI mode.

MFC after: 1 week

14 years agoBuilding wlan_amrr is now mandatory. This is an interim fix.
rpaulo [Fri, 9 Apr 2010 16:19:30 +0000 (16:19 +0000)]
Building wlan_amrr is now mandatory. This is an interim fix.

14 years agono need to pass an argument to dn_compat_calc_size()
luigi [Fri, 9 Apr 2010 16:06:53 +0000 (16:06 +0000)]
no need to pass an argument to dn_compat_calc_size()

MFC after: 3 days

14 years agoRename the ALIGN macro to LINT_ALIGN so it does not clash with machine/param.h
rdivacky [Fri, 9 Apr 2010 15:21:11 +0000 (15:21 +0000)]
Rename the ALIGN macro to LINT_ALIGN so it does not clash with machine/param.h

Bump the alignment to 16bytes because lint1 memory allocator is used for
objects that require 16bytes alignment on amd64 (ie. val_t). This makes
lint1 work when compiled with compiler(s) that use SSE for memcpy on amd64.
(e.g. clang).

Approved by: ed (mentor)

14 years agoShift the version of perl used by the release build process over to
kensmith [Fri, 9 Apr 2010 14:27:17 +0000 (14:27 +0000)]
Shift the version of perl used by the release build process over to
perl-5.10.  This aligns the release build process with the current
default version of perl in the ports tree.

I'll MFC this to all active branches.

MFC after: 3 days

14 years agoPass the HTTP_PROXY and FTP_PROXY environment variables through in addition
kensmith [Fri, 9 Apr 2010 14:24:00 +0000 (14:24 +0000)]
Pass the HTTP_PROXY and FTP_PROXY environment variables through in addition
to FTP_PASSIVE_MODE so release building works for a machine that needs
to use a proxy.

PR: misc/137688
Submitted by: Michael Leun
MFC after: 2 weeks

14 years agoDefault the machdep.lapic_allclocks to be enabled in order to cope with
attilio [Fri, 9 Apr 2010 14:22:09 +0000 (14:22 +0000)]
Default the machdep.lapic_allclocks to be enabled in order to cope with
broken atrtc.
Now if you want more correct stats on profhz and stathz it may be
disabled by setting to 0.

Reported by: A. Akephalos <akephalos dot akephalos at gmail dot com>,
Jakub Lach <jakub_lach at mailplus dot pl>
MFC: 1 week

14 years agoSetup the correct RX/TX chainmask when we play with the antenna
rpaulo [Fri, 9 Apr 2010 13:58:54 +0000 (13:58 +0000)]
Setup the correct RX/TX chainmask when we play with the antenna
settings.

MFC after: 1 week
Sponsored by: iXsystems, inc

14 years agoUse M_NOWAIT instead of M_WAITOK to avoid race conditions.
rpaulo [Fri, 9 Apr 2010 12:06:19 +0000 (12:06 +0000)]
Use M_NOWAIT instead of M_WAITOK to avoid race conditions.

MFC after: 1 month

14 years agoAdd ieee80211_{amrr,rssadapt}.c.
rpaulo [Fri, 9 Apr 2010 12:05:24 +0000 (12:05 +0000)]
Add ieee80211_{amrr,rssadapt}.c.

MFC after: 1 month

14 years agoRemove previously added if 0's.
rpaulo [Fri, 9 Apr 2010 11:56:38 +0000 (11:56 +0000)]
Remove previously added if 0's.

MFC after: 1 month

14 years agoFix recent breakage: wpi_newassoc() wasn't supposed to be removed and
rpaulo [Fri, 9 Apr 2010 11:47:03 +0000 (11:47 +0000)]
Fix recent breakage: wpi_newassoc() wasn't supposed to be removed and
it needs to call ieee80211_ratectl_node_init().

Submitted by: bschmidt
MFC after: 1 month

14 years agoSwap IEEE80211_RATECTL_TX_SUCCESS/IEEE80211_RATECTL_TX_FAILURE.
rpaulo [Fri, 9 Apr 2010 11:29:16 +0000 (11:29 +0000)]
Swap IEEE80211_RATECTL_TX_SUCCESS/IEEE80211_RATECTL_TX_FAILURE.

Submitted by: PseudoCylon Furukoshi <moonlightakkiy at yahoo.ca>
MFC after: 1 month

14 years agoIntroduce the function kmem_alloc_attr(), which allocates kernel virtual
alc [Fri, 9 Apr 2010 02:39:20 +0000 (02:39 +0000)]
Introduce the function kmem_alloc_attr(), which allocates kernel virtual
memory with the specified physical attributes.  In particular, like
kmem_alloc_contig(), the caller can specify the physical address range
from which the physical pages are allocated and the memory attributes
(i.e., cache behavior) for these physical pages.  However, in contrast to
kmem_alloc_contig() or contigmalloc(), the physical pages that are
allocated by kmem_alloc_attr() are not necessarily physically contiguous.
This function is needed by DRM and VirtualBox.

Correct an error in the prototype for kmem_malloc().  The third argument
had the wrong type.

Tested by: rnoland
MFC after: 3 days

14 years agoImprove the handling of IPv6 configuration in rc.d. The ipv6_enable
dougb [Fri, 9 Apr 2010 01:35:09 +0000 (01:35 +0000)]
Improve the handling of IPv6 configuration in rc.d. The ipv6_enable
and ipv6_ifconfig_<interface> options have already been deprecated,
these changes do not alter that.

With these changes any value set for ipv6_enable will emit a
warning. In order to avoid a POLA violation for the deprecation
of the option ipv6_enable=NO will still disable configuration
for all interfaces other than lo0. ipv6_enable=YES will not have
any effect, but will emit an additional warning. Support and
warnings for this option will be removed in FreeBSD 10.x.

Consistent with the current code, in order for IPv6 to be configured
on an interface (other than lo0) an ifconfig_<interface>_ipv6
option will have to be added to /etc/rc.conf[.local].

1. Clean up and minor optimizations for the following functions:
ifconfig_up (the ipv6 elements)
ipv6if
ipv6_autoconfif
get_if_var
_ifconfig_getargs
The cleanups generally were to move the "easy" tests earlier in the
functions, and consolidate duplicate code.

2. Stop overloading ipv6_prefer with the ability to disable IPv6
configuration.

3. Remove noafif() which was only ever called from ipv6_autoconfif.
Instead, simplify and integrate the tests into that function, and
convert the test to use is_wired_interface() instead of listing
wireless interfaces explicitly.

4. Integrate backwards compatibility for ipv6_ifconfig_<interface>
into _ifconfig_getargs. This dramatically simplifies the code in
all of the callers, and avoids a lot of other code duplication.

5. In rc.d/netoptions, add code for an ipv6_privacy option to use
RFC 4193 style pseudo-random addresses (this is what windows does
by default, FYI).

6. Add support for the [NO]RTADV options in ifconfig_getargs() and
ipv6_autoconfif(). In the latter, include support for the explicit
addition of [-]accept_rtadv in ifconfig_<interface>_ipv6 as is done
in the current code.

7. In rc.d/netif add a warning if $ipv6_enable is set, and remove
the set_rcvar_obsolete for it. Also remove the latter from
rc.d/ip6addrctl.

8. In /etc/defaults/rc.conf:

Add an example for RTADV configuration.

Set ipv6_network_interfaces to AUTO.

Switch ipv6_prefer to YES. If ipv6_enable is not set this will have
no effect.

Add a default for ipv6_privacy (NO).

9. Document all of this in rc.conf.5.

14 years agoFix a bug where bus_dma_load_xxx() would not bounce misaligned buffers
nwhitehorn [Fri, 9 Apr 2010 01:14:11 +0000 (01:14 +0000)]
Fix a bug where bus_dma_load_xxx() would not bounce misaligned buffers
due to rounding the buffer's physical address to the beginning of its
page. This fixes a panic in arge(4) when using PPPoE.

Reported by: Jakob van Santen <vansanten at wisc dot edu>
Reviewed by: gonzo
Obtained from: amd64

14 years agoAdd BUS_SPACE_UNRESTRICTED and define it to be ~0, just like all the
imp [Thu, 8 Apr 2010 19:34:55 +0000 (19:34 +0000)]
Add BUS_SPACE_UNRESTRICTED and define it to be ~0, just like all the
other platforms.

14 years agoThree changes:
jfv [Thu, 8 Apr 2010 19:13:42 +0000 (19:13 +0000)]
Three changes:
- add CRC stripping to the RX side, this was handled
  by some obscure code in rxeof previously, its easier
  to simply have the hardware strip it now.
- Add back an ALTQ change that slipped between the cracks
- Add an update to the watchdog_time in the xmit code, not
  doing this in ixgbe caused problems, think its needed here
  as well.

14 years ago- Fix mutex type for miibus_mtx: it's not spinlock, it's def lock
gonzo [Thu, 8 Apr 2010 18:32:13 +0000 (18:32 +0000)]
- Fix mutex type for miibus_mtx: it's not spinlock, it's def lock

14 years agoDisambiguate `IPs' to a more specific term.
ume [Thu, 8 Apr 2010 15:19:57 +0000 (15:19 +0000)]
Disambiguate `IPs' to a more specific term.

Submitted by: Garrett Cooper <yanefbsd__at__gmail.com>
MFC after: 3 days

14 years agoPrevent foot-shooting in ieee80211_ratectl_node_deinit().
rpaulo [Thu, 8 Apr 2010 13:34:08 +0000 (13:34 +0000)]
Prevent foot-shooting in ieee80211_ratectl_node_deinit().

MFC after: 1 month

14 years agoEnhance r199804 by marking the daemonised child as immune to OOM instead
kib [Thu, 8 Apr 2010 12:07:40 +0000 (12:07 +0000)]
Enhance r199804 by marking the daemonised child as immune to OOM instead
of short-living parent. Only mark the master process that accepts
connections, do not protect connection handlers spawned from inetd.

Submitted by: Mykola Dzham <i levsha me>
Reviewed by: attilio
MFC after: 1 week

14 years agoPeople working on sysinstall are encouraged to contact randi to
cperciva [Thu, 8 Apr 2010 09:01:20 +0000 (09:01 +0000)]
People working on sysinstall are encouraged to contact randi to
coordinate major changes.

14 years agoDo not leak master pty or ptmx vnode.
kib [Thu, 8 Apr 2010 08:58:18 +0000 (08:58 +0000)]
Do not leak master pty or ptmx vnode.

Report and test case by: Petr Salinger <Petr.Salinger seznam cz>
Reviewed by: ed
MFC after: 1 week

14 years agoImportant fix got clobbered in the em driver, keeping
jfv [Thu, 8 Apr 2010 00:50:43 +0000 (00:50 +0000)]
Important fix got clobbered in the em driver, keeping
VLAN HWFILTER from being used by default, this breaks
stacked pseudo devices, and as it turns out, also breaks
virtual machines that happen to use VLANS (didn't know that
before :). Put the fix back into the em driver, and for good
measure add the same code to the igb driver where it should
have been anyway.

14 years agoDiff reduction against NetBSD and add myself to AUTHORS section of the
delphij [Wed, 7 Apr 2010 22:54:53 +0000 (22:54 +0000)]
Diff reduction against NetBSD and add myself to AUTHORS section of the
manual page as I wrote the unpack functionality.  No actual executable
code change verified with md5(1).

14 years agoAllocate memory for VBE info block with malloc(9), not as static local.
jkim [Wed, 7 Apr 2010 21:38:42 +0000 (21:38 +0000)]
Allocate memory for VBE info block with malloc(9), not as static local.

14 years agoRemove extraneous '>'.
emaste [Wed, 7 Apr 2010 19:13:31 +0000 (19:13 +0000)]
Remove extraneous '>'.

14 years agoAdd EFI boot info fields.
rpaulo [Wed, 7 Apr 2010 18:52:51 +0000 (18:52 +0000)]
Add EFI boot info fields.

14 years agoCorrect beastie_saver module name.
jkim [Wed, 7 Apr 2010 18:42:21 +0000 (18:42 +0000)]
Correct beastie_saver module name.

14 years agoSwitch to our preferred 2-clause BSD license.
joel [Wed, 7 Apr 2010 18:26:13 +0000 (18:26 +0000)]
Switch to our preferred 2-clause BSD license.

Approved by: jfv

14 years agoAdd a copyright.
rpaulo [Wed, 7 Apr 2010 18:24:38 +0000 (18:24 +0000)]
Add a copyright.

14 years agoEFI boot loader for FreeBSD/i386.
rpaulo [Wed, 7 Apr 2010 18:16:05 +0000 (18:16 +0000)]
EFI boot loader for FreeBSD/i386.

Doesn't boot a kernel yet, but it can read an ELF file from the EFI FAT
partition.

14 years agofirewall_trusted_ipv6 was gone by r202460. Remove stale comment about
ume [Wed, 7 Apr 2010 18:14:30 +0000 (18:14 +0000)]
firewall_trusted_ipv6 was gone by r202460.  Remove stale comment about
it as well.

14 years agoReflect recent logo_saver changes and mention dragon_saver.
jkim [Wed, 7 Apr 2010 18:04:25 +0000 (18:04 +0000)]
Reflect recent logo_saver changes and mention dragon_saver.

14 years agoRemove unnecessary assignment.
rpaulo [Wed, 7 Apr 2010 17:52:32 +0000 (17:52 +0000)]
Remove unnecessary assignment.

Submitted by: gavin
MFC after: 1 month

14 years agoAvoid NULL deref.
rpaulo [Wed, 7 Apr 2010 17:51:06 +0000 (17:51 +0000)]
Avoid NULL deref.

Submitted by: gavin
MFC after: 1 month

14 years agoAvoid NULL deref.
rpaulo [Wed, 7 Apr 2010 17:49:47 +0000 (17:49 +0000)]
Avoid NULL deref.

Submitted by: gavin
MFC after: 1 month

14 years agoRemove debugging code that snuck in.
rpaulo [Wed, 7 Apr 2010 17:48:13 +0000 (17:48 +0000)]
Remove debugging code that snuck in.

14 years agoAdd an entry for the old Beastie logo saver and re-sort.
jkim [Wed, 7 Apr 2010 17:40:48 +0000 (17:40 +0000)]
Add an entry for the old Beastie logo saver and re-sort.

14 years agoFix build.
rpaulo [Wed, 7 Apr 2010 17:31:56 +0000 (17:31 +0000)]
Fix build.

Pointy hat: me
MFC after: 1 month

14 years agoReconnect the old Beastie logo_saver to build as beastie_saver.
jkim [Wed, 7 Apr 2010 17:20:55 +0000 (17:20 +0000)]
Reconnect the old Beastie logo_saver to build as beastie_saver.

14 years agoCopy logo_saver module to beastie_saver.
jkim [Wed, 7 Apr 2010 17:13:18 +0000 (17:13 +0000)]
Copy logo_saver module to beastie_saver.

14 years agoPartial revert r204545.
yongari [Wed, 7 Apr 2010 17:12:57 +0000 (17:12 +0000)]
Partial revert r204545.
Just relying on status LE ownership of status block seems to cause
poor performance. Always read current status index register first
and then check status ownership as we had before. Accessing status
index register seems to trigger immediate status update if
controller have pending status updates.

MFC after: 1 week
Reported by: Andre Albsmeier <Andre.Albsmeier <> siemens dot com>
Tested by: Andre Albsmeier <Andre.Albsmeier <> siemens dot com>

14 years agoAdd the official FreeBSD logo image file for logo_saver.
jkim [Wed, 7 Apr 2010 17:07:06 +0000 (17:07 +0000)]
Add the official FreeBSD logo image file for logo_saver.

14 years agoCopy Beastie image file to prepare for an official logo image.
jkim [Wed, 7 Apr 2010 17:03:05 +0000 (17:03 +0000)]
Copy Beastie image file to prepare for an official logo image.

14 years agoSwitch to our preferred 2-clause BSD license.
joel [Wed, 7 Apr 2010 16:50:38 +0000 (16:50 +0000)]
Switch to our preferred 2-clause BSD license.

Approved by: bp

14 years agoStart copyright notice with /*-
joel [Wed, 7 Apr 2010 16:29:10 +0000 (16:29 +0000)]
Start copyright notice with /*-

14 years agonet80211 rate control framework (net80211 ratectl).
rpaulo [Wed, 7 Apr 2010 15:29:13 +0000 (15:29 +0000)]
net80211 rate control framework (net80211 ratectl).

This framework allows drivers to abstract the rate control algorithm and
just feed the framework with the usable parameters. The rate control
framework will now deal with passing the parameters to the selected
algorithm. Right now we have AMRR (the default) and RSSADAPT but there's
no way to select one with ifconfig, yet.
The objective is to have more rate control algorithms in the net80211
stack so all drivers[0] can use it. Ideally, we'll have the well-known
sample rate control algorithm in the net80211 at some point so all
drivers can use it (not just ath).

[0] all drivers that do rate control in software, that is.

Reviewed by: bschmidt, thompsa, weyongo
MFC after: 1 months

14 years agoadd priority scheduler to the module
luigi [Wed, 7 Apr 2010 13:02:20 +0000 (13:02 +0000)]
add priority scheduler to the module

14 years agoHopefully fix the recent breakage in rule deletion.
luigi [Wed, 7 Apr 2010 08:23:58 +0000 (08:23 +0000)]
Hopefully fix the recent breakage in rule deletion.
A few  more tests and this will also go into -stable where
the problem is more critical.

14 years agoFix a off-by-one bug in zeroing out the mapping arrays.
tuexen [Tue, 6 Apr 2010 18:57:50 +0000 (18:57 +0000)]
Fix a off-by-one bug in zeroing out the mapping arrays.
Fix sctp_print_mapping_array().

MFC after: 1 week

14 years agoFix comment about NANO_ARCH. It can be set now. Also add a warning
imp [Tue, 6 Apr 2010 16:23:12 +0000 (16:23 +0000)]
Fix comment about NANO_ARCH.  It can be set now.  Also add a warning
about how it confuses TARGET and TARGET_ARCH and the need to separate
the two out into independent variables.

14 years ago- Fixed 5708S 2.5G support broken in last commit.
davidch [Tue, 6 Apr 2010 12:44:28 +0000 (12:44 +0000)]
- Fixed 5708S 2.5G support broken in last commit.
- Added some new debug helper routines to systcl.
- Fixed many of the style(9) violations that have crept into the code
  due to my use of a "smart" editor.

MFC after: 2 weeks

14 years agoUse the stored length value instead of calculating it by strlen().
ume [Tue, 6 Apr 2010 12:33:05 +0000 (12:33 +0000)]
Use the stored length value instead of calculating it by strlen().

14 years agoSet net.inet6.ip6.fw.enable as well.
ume [Tue, 6 Apr 2010 12:28:08 +0000 (12:28 +0000)]
Set net.inet6.ip6.fw.enable as well.

14 years agoWhen OOM searches for a process to kill, ignore the processes already
kib [Tue, 6 Apr 2010 10:43:01 +0000 (10:43 +0000)]
When OOM searches for a process to kill, ignore the processes already
killed by OOM. When killed process waits for a page allocation, try to
satisfy the request as fast as possible.

This removes the often encountered deadlock, where OOM continously
selects the same victim process, that sleeps uninterruptibly waiting
for a page. The killed process may still sleep if page cannot be
obtained immediately, but testing has shown that system has much
higher chance to survive in OOM situation with the patch.

In collaboration with: pho
Reviewed by: alc
MFC after: 4 weeks

14 years agoIn wait_for_pids(), pwait(1) can return when the process exits, but
dougb [Tue, 6 Apr 2010 05:20:46 +0000 (05:20 +0000)]
In wait_for_pids(), pwait(1) can return when the process exits, but
still exists as a zombie. The 'kill -0' test in this function can
therefore return true even if the process isn't actually running.
This could lead to wait_for_pids() printing an endless string of the
pid number until the zombie finally exits.

Solve this problem by moving the sleep up to after the 'kill -0' test, but
only after we've run through the function once already. In the common case
(only one pid in the list) this will always do the right thing. On the rare
occasion that there is more than one pid in the list this will sleep 1
second per zombie process which will allow that process, and any other
in the list a chance to exit.

While I'm here, local'ize the variables that this function uses.

14 years agoRemove yet another vestage of alpha support.
imp [Tue, 6 Apr 2010 02:48:59 +0000 (02:48 +0000)]
Remove yet another vestage of alpha support.

14 years agoHarden the experimental NFS server a little, by adding range
rmacklem [Tue, 6 Apr 2010 01:14:49 +0000 (01:14 +0000)]
Harden the experimental NFS server a little, by adding range
checks on the length of the client's open/lock owner name. Also,
add free()'s for one case where they were missing and would
have caused a leak if NFSERR_BADXDR had been replied. Probably
never happens, but the leak is now plugged, just in case.

MFC after: 2 weeks

14 years agoMFV of tzdata2010h:
edwin [Mon, 5 Apr 2010 22:15:06 +0000 (22:15 +0000)]
MFV of tzdata2010h:

From tzdata2010h:

- Tunis will not go into DST this year.
- Pakistan will not go into DST this year.

From tzdata2010g:

- Bangladesh cancels DST.
- Palestine goes into DST one day later than expected.

- Russian timezones update:
  Europe/Samara goes to Moscow time.
  Asia/Kamchatka goes to Moscow+8 time.
  Asia/Anadyr goes to Moscow+8 time.

14 years agoI feel this wording of the history is more clear.
obrien [Mon, 5 Apr 2010 22:09:29 +0000 (22:09 +0000)]
I feel this wording of the history is more clear.
ANSIfy vasprintf() while I'm here.

14 years agoSynchronize Coda kernel module definitions in our coda.h to Coda 6's
rwatson [Mon, 5 Apr 2010 20:12:54 +0000 (20:12 +0000)]
Synchronize Coda kernel module definitions in our coda.h to Coda 6's
coda.h:

- CodaFid typdef -> struct CodaFid throughout.
- Use unsigned int instead of unsigned long for venus_dirent and other
  cosmetic fixes.
- Introduce cuid_t and cgid_t and use instead of uid_t and gid_t in RPCs.
- Synchronize comments and macros.
- Use u_int32_t instead of unsigned long for coda_out_hdr.

With these changes, a 64-bit Coda kernel module now works with
coda6_client, whereas previous userspace and kernel versions of RPCs
differed sufficiently to prevent using the file system.  This has been
verified only with casual testing, but /coda is now usable for at least
basic operations on amd64.

MFC after: 1 week

14 years agoCorrect definition of CIOC_KERNEL_VERSION Coda ioctl() for systems
rwatson [Mon, 5 Apr 2010 19:40:13 +0000 (19:40 +0000)]
Correct definition of CIOC_KERNEL_VERSION Coda ioctl() for systems
where sizeof(int) != sizeof(sizeof(int)), or the ioctl will return
EINVAL.

MFC after: 3 days

14 years agoRefine previous partial merge of OpenSolaris onnv revision 9396:f41cf682d0d3.
delphij [Mon, 5 Apr 2010 18:27:58 +0000 (18:27 +0000)]
Refine previous partial merge of OpenSolaris onnv revision 9396:f41cf682d0d3.
This fixes a regression that zfs list would crash on zfs having user properties.

PR: kern/145377
Submitted by: mm
Approved by: pjd
Obtained from: OpenSolaris
MFC after: 10 days

14 years agoFirst steps as committer:
jacula [Mon, 5 Apr 2010 17:26:23 +0000 (17:26 +0000)]
First steps as committer:
- add an entry for myself to committers-ports.dot

Approved by:    pgj (mentor)

14 years agosh: Automatically enable -o emacs in interactive shells with terminals.
jilles [Mon, 5 Apr 2010 14:15:51 +0000 (14:15 +0000)]
sh: Automatically enable -o emacs in interactive shells with terminals.

This makes sh a bit more friendly in single user mode, make buildenv, chroot
and the like, and matches other shells.

The -o emacs can be overridden on the command line or in the ENV file.

14 years agoAdd missing @ to the NORMAL_CTFCONVERT line to keep it from appearing
imp [Mon, 5 Apr 2010 11:00:21 +0000 (11:00 +0000)]
Add missing @ to the NORMAL_CTFCONVERT line to keep it from appearing
in the output.

14 years agolibc/db/hash: cap auto-tuned block size with a value that actually works
avg [Mon, 5 Apr 2010 10:12:21 +0000 (10:12 +0000)]
libc/db/hash: cap auto-tuned block size with a value that actually works

This fix mostly matters after r206129 that made it possible for
st_blksize to be greater than 4K.  For this reason, this change should
be MFC-ed before r206129.
Also, it seems that all FreeBSD uitlities that use db(3) hash databases
and create new databases in files, specify their own block size value
and thus do not depend on block size autotuning.

PR: bin/144446
Submitted by: Peter Jeremy <peterjeremy@acm.org>
MFC after: 5 days

14 years agohash.3: fix a factual mistake in the man page
avg [Mon, 5 Apr 2010 10:01:53 +0000 (10:01 +0000)]
hash.3: fix a factual mistake in the man page

PR: bin/144446
Submitted by: Peter Jeremy <peterjeremy@acm.org>
MFC after: 3 days

14 years agoindent.pro example: put all options one per line
avg [Mon, 5 Apr 2010 09:26:03 +0000 (09:26 +0000)]
indent.pro example: put all options one per line

This should help with modification tracking.

Discussed with: bde
MFC after: 7 days

14 years agoindent.pro example: correctly place -ta option
avg [Mon, 5 Apr 2010 09:24:24 +0000 (09:24 +0000)]
indent.pro example: correctly place -ta option

The options are sorted, leading 'n' (for 'off') should be ignored.

Pointed out by: bde
MFC after: 7 days

14 years agovm_reserv_alloc_page() should never be called on an OBJT_SG object, just as
alc [Mon, 5 Apr 2010 06:23:31 +0000 (06:23 +0000)]
vm_reserv_alloc_page() should never be called on an OBJT_SG object, just as
it is never called on an OBJT_DEVICE object.  (This change should have been
included in r195840.)

Reported by: dougb@, avg@
MFC after: 3 days

14 years agoHarden the experimental NFS server a little, by adding extra checks
rmacklem [Sun, 4 Apr 2010 23:19:11 +0000 (23:19 +0000)]
Harden the experimental NFS server a little, by adding extra checks
in the readdir functions for non-positive byte count arguments.
For the negative case, set it to the maximum allowable, since it
was actually a large positive value (unsigned) on the wire.
Also, fix up the readdir function comment a bit.

Suggested by: dillon AT apollo.backplane.com
MFC after: 2 weeks

14 years agosh: Add test for nested arithmetic substitution.
jilles [Sun, 4 Apr 2010 16:48:33 +0000 (16:48 +0000)]
sh: Add test for nested arithmetic substitution.

Pre-r206145 sh changes nested arithmetic substitution to parentheses, which
is not always correct, as exercised by this test.

14 years agosh: Add test for some associativity in arithmetic.
jilles [Sun, 4 Apr 2010 16:29:48 +0000 (16:29 +0000)]
sh: Add test for some associativity in arithmetic.

14 years agoFix compilation error on amd64.
ume [Sun, 4 Apr 2010 15:21:09 +0000 (15:21 +0000)]
Fix compilation error on amd64.

Reported by: stefanf
MFC after: 2 weeks

14 years agoAdd missing MNT_NFS4ACLS.
jh [Sun, 4 Apr 2010 14:48:43 +0000 (14:48 +0000)]
Add missing MNT_NFS4ACLS.

14 years agoFix compilation error on 9-CURRENT.
ume [Sun, 4 Apr 2010 14:23:28 +0000 (14:23 +0000)]
Fix compilation error on 9-CURRENT.

Reported by: nyan
MFC after: 2 weeks

14 years agosh: Document the expansion changes in the man page.
jilles [Sun, 4 Apr 2010 13:17:05 +0000 (13:17 +0000)]
sh: Document the expansion changes in the man page.

Note that the following sentence
> Enclosing the full parameter expansion string in double-quotes does not
> cause the following four varieties of pattern characters to be quoted,
> whereas quoting characters within the braces has this effect.
is now true, but used to be incorrect.

14 years agoservices_mkdb; generate db file from services(5) to increase
ume [Sun, 4 Apr 2010 08:38:14 +0000 (08:38 +0000)]
services_mkdb; generate db file from services(5) to increase
speed of getserv*()

Obtained from: NetBSD
MFC after: 2 weeks

14 years agoAdd capability to use a db version of services. It is enabled by
ume [Sun, 4 Apr 2010 08:31:03 +0000 (08:31 +0000)]
Add capability to use a db version of services.  It is enabled by
specifying `db' as source of service in /etc/nsswitch.conf.

MFC after: 2 weeks

14 years agoReduce duplicate code.
ume [Sun, 4 Apr 2010 07:31:10 +0000 (07:31 +0000)]
Reduce duplicate code.

MFC after: 2 weeks

14 years agoTreat '+' as special only when in compat mode, and simplify
ume [Sun, 4 Apr 2010 07:21:45 +0000 (07:21 +0000)]
Treat '+' as special only when in compat mode, and simplify
the logic bit.

MFC after: 2 weeks

14 years agoStop adding trailing '\n'. The servent_unpack() doesn't expect
ume [Sun, 4 Apr 2010 07:02:10 +0000 (07:02 +0000)]
Stop adding trailing '\n'.  The servent_unpack() doesn't expect
lines terminated with '\n'.

MFC after: 2 weeks