- install the example wpa_supplicant.conf file to the share/examples/etc
directory [1]
- add the FILES section to the wpa_supplicant.conf.5 file, so that people
will be able to detect the example configuration file easier. [2]
- markup fixes
- advise to use rc script to SIGHUP mountd
- add some missing words
- add information about possiblity of using /prefix network notation [1]
Merge files:1.1309 (r179787) from head to stable/7:
When NETATALK is compiled into the kernel, at_rmx.c is required regardless
of whether NETATALKDEBUG is enabled, so make building it conditional on
NETATALK instead. This problem appears to have been present from the time
that the netatalk implementation was imported.
Merge ip_dummynet.c:1.116, raw_ip.c:1.185 (r179201) from head to
stable/7:
Consistently check IPFW and DUMMYNET privileges in the configuration
routines for those modules, rather than in the raw socket code. This
each privilege check to occur in exactly once place and avoids
duplicate checks across layers.
Merge uipc_syscalls.c:1.272 (r179196) from head to stable/7:
When sendto(2) is called with an explicit destination address
argument, call mac_socket_check_connect() on that address before
proceeding with the send. Otherwise policies instrumenting the
connect entry point for the purposes of checking destination
addresses will not have the opportunity to check implicit
connect requests.
Merge audit_worker.c:1.24 (sys:r179176) from head to stable/7:
Don't use LK_DRAIN before calling VOP_FSYNC() in the panic case for
audit trail failure -- this doesn't contribute anything, and might
arguably be wrong.
MFC after: 1 week
Requested by: attilio
Notice that the previous commit merging r179178 was in fact for
audit_worker.c:1.25, but the same description applies.
Merge audit_worker.c:1.24 (179178) from head to stable/7:
Don't use LK_DRAIN before calling VOP_FSYNC() in the panic case for
audit trail failure -- this doesn't contribute anything, and might
arguably be wrong.
MFC r179969:
Fix test for waiting AIFs in aac_poll(). This seems to solve the
problem where Adaptec's arcconf monitoring tool hangs after producing
its expected output.
MFC r180062:
Add the missing support for Asus Eee PC in acpi_asus(4).
This includes hotkeys support and sysctl variables to control camera
and card reader. These new sysctls don't have CTFLAG_ANYBODY set.
While there add entries to devd.conf related to the Eee volume keys.
Reviewed by: phillip
Also tested by: lme (previous version)
Merge audit.h:1.18 (sys:r178802) from head to stable/7:
When testing whether to enter the audit argument gathering code, rather
than checking whether audit is enabled globally, instead check whether
the current thread has an audit record. This avoids entering the audit
code to collect argument data if auditing is enabled but the current
system call is not of interest to audit.
rwatson [Mon, 30 Jun 2008 22:19:18 +0000 (22:19 +0000)]
Merge extattr.h:1.22, ufs_extattr.c:1.91 (r176797) from head to
stable/7:
Continue on-going campaign to replace lockmgr locks with sx locks where
the specific semantics of lockmgr aren't required: update UFS1 extended
attributes to protect its data structures using an sx lock.
lulf [Mon, 30 Jun 2008 15:41:57 +0000 (15:41 +0000)]
MFC rev r179288:
- Add locking to all filesystem operations in fdescfs and flag it as MPSAFE.
- Use proper synhronization primitives to protect the internal fdesc node cache
used in fdescfs.
- Properly initialize and uninitalize hash.
- Remove unused functions.
Since fdescfs might recurse on itself, adding proper locking to it needed some
tricky workarounds in some parts to make it work. For instance, a descriptor in
fdescfs could refer to an open descriptor to itself, thus forcing the thread to
recurse on vnode locks. Because of this, other race conditions also had to be
fixed.
jhb [Sat, 28 Jun 2008 23:54:51 +0000 (23:54 +0000)]
MFC: Add a BUS_BIND_INTR() method to the bus interface to bind an IRQ
resource to a CPU. A bus_bind_intr(9) wrapper routine similar to
bus_setup/teardown_intr() is added for device drivers to use. Currently
it is supported on amd64, i386, and sparc64 via nexus(4) methods that
simply call the intr_bind() routine.
jhb [Sat, 28 Jun 2008 23:26:57 +0000 (23:26 +0000)]
MFC: Add preliminary support for binding interrupts to CPUs:
- Add a new method to interrupt events (ie_assign_cpu) for binding events
to CPUs.
- Bind ithreads to CPUs in their main loop (this is the original
implementation, it may be changed if the cpuset stuff is MFC'd).
- Add intr_event_bind().
- Implement ie_assign_cpu() and a 'intr_bind()' wrapper on amd64, i386,
and sparc64.
emaste [Fri, 27 Jun 2008 15:20:18 +0000 (15:20 +0000)]
MFC r175163:
Honour the logical current working directory ($PWD) when using config's
-d destdir option. For an automounted src tree using the logical cwd
in the Makefile keeps amd(8)'s mount timeout refreshed. Code to check
$PWD's validity cribbed from pwd(1).
obrien [Fri, 27 Jun 2008 14:26:43 +0000 (14:26 +0000)]
MFC: r177101, r177102, r177541:
If the special target .MAKEFILEDEPS exists, then enable the
"remaking makefiles" feature. Otherwise, follow traditional Pmake behavior.
jhb [Fri, 27 Jun 2008 03:49:22 +0000 (03:49 +0000)]
MFC: Probe CPUs after the PCI hierarchy on i386, amd64, and ia64. This
allows the cpufreq drivers to reliably use properties of PCI devices for
quirks, etc.
rodrigc [Thu, 26 Jun 2008 22:58:20 +0000 (22:58 +0000)]
ffs_vfsops.c:
MFC 179269-179270
- delete "snapshot" from options list after we convert mount option to MNT_SNAPSHOT flag
- do not perform string to flag conversions for mount option which are converted
further up in vfs_donmount() in vfs_mount.c
vfs_mount.c:
MFC 179268
- Do not convert the "snapshot" string to the MNT_SNAPSHOT flag here, since
we do it further down in ffs_vfsops.c
mav [Thu, 26 Jun 2008 20:21:20 +0000 (20:21 +0000)]
MFC rev. 1.155-1.156
Rewrite node's r/w/q-lock semantics using only atomics instead of mutex
and atomics combination. Mutex is now used only for queue protection.
Also avoid unneded extra swi scheduling calls.
Add memory barriers to the node locking operations.
Add some comments.
mav [Mon, 23 Jun 2008 14:38:33 +0000 (14:38 +0000)]
MFC r179478:
Make m_megapullup() more intelligent:
- to increase performance do not reallocate mbuf when possible,
- to support up to 16K packets (was 2K max) use mbuf cluster of proper size.
This change depends on recent ng_nat and ip_fw_nat changes.
mav [Mon, 23 Jun 2008 14:28:32 +0000 (14:28 +0000)]
MFC r179480, r179924:
Increase LINK_TABLE_OUT_SIZE from 101 to 4001 like LINK_TABLE_IN_SIZE
to reduce performance degradation under heavy outgoing scan/flood.
Scalability is now much more important then several kilobytes of RAM.
Remove unneded TCP-specific expiration handeling. Before this connected
TCP sessions could never expire. Now connected TCP sessions will expire
after 24hours of inactivity.
Simplify HouseKeeping() to avoid several mul/div-s per packet. Taking into
account increased LINK_TABLE_OUT_SIZE, precision is still much more then
required.
mav [Mon, 23 Jun 2008 14:19:48 +0000 (14:19 +0000)]
MFC r179477:
Pass really available buffer size to libalias instead of MCLBYTES constant.
MCLBYTES constant were used with believe that m_megapullup() always moves
date into a fresh cluster that may become not so.
mav [Mon, 23 Jun 2008 14:15:53 +0000 (14:15 +0000)]
MFC r179473:
PKT_ALIAS_FOUND_HEADER_FRAGMENT result is not an error, so pass that packet.
This fixes packet fragmentation handeling.
Pass really available buffer size to libalias instead of MCLBYTES constant.
MCLBYTES constant were used with believe that m_megapullup() always moves
date into a fresh cluster that sometimes may become not so.
peter [Sun, 22 Jun 2008 00:13:19 +0000 (00:13 +0000)]
MFC: revs 175291,175384. Add .POSIX: to break timestamp-sensitive problems
between Makefile and Makefile.in that was disturbed by changes in
src/usr.bin/make/main.c rev 167330 (1.161).
yongari [Thu, 19 Jun 2008 01:36:31 +0000 (01:36 +0000)]
MFC: r179647
Ethernet hardware address stored in DC_AL_PAR0/DC_AL_PAR1 register
is in little endian form. Likewise setting DC_AL_PAR0/DC_AL_PAR1
register expect the address to be in little endian form. For big
endian architectures the address should be swapped to get correct
one.
Change setting/getting ethernet hardware address to big endian
architecture frendly.
Reported by: Robert Murillo ( billypilgrim782001 at yahoo dot com )
Tested by: Robert Murillo ( billypilgrim782001 at yahoo dot com )
jasone [Mon, 16 Jun 2008 23:42:05 +0000 (23:42 +0000)]
MFC allocator improvements and fixes:
* Implement more compact red-black trees, thus reducing memory usage
by ~0.5-1%.
* Add a separate tree to track dirty-page-containing chunks, thus
improving worst case allocation performance.
* Fix a deadlock in base_alloc() for the error (OOM) path.
* Catch integer overflow for huge allocations when using sbrk(2).
* Fix bit vector initialization for run headers. This fix has no
practical impact for correct programs. Incorrect programs will
potentially experience allocation failures rather than memory
corruption, both of which are "undefined behavior".
ambrisko [Fri, 13 Jun 2008 15:45:48 +0000 (15:45 +0000)]
MFC: All changes in current to 7.X.
- Native 32bit compat modes for amd64
- Limit max commands to 128
- Add in compat mode for using mfi0 to talk to any card
marius [Wed, 11 Jun 2008 21:10:06 +0000 (21:10 +0000)]
MFC: r176996, r177560
- Fix some style bugs and remove another banal comment missed in
rev. 1.46.
- Move the KASSERT on gem_add_rxbuf() to the right spot and add an
equivalent one to gem_disable_tx().
- Split the registers into two halves in preparation for SBus
support. [1]
marius [Wed, 11 Jun 2008 20:52:34 +0000 (20:52 +0000)]
MFC: r178589
- Use the revamped code from the gem(4) PCI front-end, which
doesn't require parts of the Expansion ROM to be copied around,
for obtaining the MAC address on !OFW platforms.
- Don't unnecessarily cache bus space tag and handle nor RIDs
in the softcs of the front-ends.
- Don't use function calls in initializers.
- Let the SBus front-end depend on sbus(4).
marius [Wed, 11 Jun 2008 19:48:35 +0000 (19:48 +0000)]
MFC: r178470
o Disable HMEDEBUG by default.
o Add CTASSERTs ensuring that HME_NRXDESC and HME_NTXDESC are set to
legal values.
o Use appropriate maxsize, nsegments and maxsegsize parameters when
creating DMA tags and correct some comments related to them.
o The FreeBSD bus_dmamap_sync(9) supports ored together flags for quite
some time now so collapse calls accordingly.
o Add missing BUS_DMASYNC_PREREAD when syncing the control DMA maps in
hme_rint() and hme_start_locked().
o Keep state of the link state and use it to enable or disable the MAC
in hme_mii_statchg() accordingly as well as to return early from
hme_start_locked() in case the link is down.
o Introduce a sc_flags and use it to replace individual members like
sc_pci.
o Add bus_barrier(9) calls to hme_mac_bitflip(), hme_mii_readreg(),
hme_mii_writereg() and hme_stop() to ensure the respective bit
has been written before we starting polling on it and for the right
bits to change.
o Rather just returning in case hme_mac_bitflip() fails and leaving us
in an undefined state report the problem and move on; chances are
the requested configuration will become active shortly after.
o Don't call hme_start_locked() in hme_init_locked() unconditionally
but only after calls to hme_init_locked() when it's appropriate, i.e.
in hme_watchdog().
o Add a KASSERT which asserts nsegs is valid also to hme_load_txmbuf().
o In hme_load_txmbuf():
- use a maximum of the newly introduced HME_NTXSEGS segments instead
of the incorrect HME_NTXQ, which reflects the maximum TX queue
length, for loading the mbufs and put the DMA segments back onto
the stack instead of the softc as 16 should be ok there.
- use the common errno(2) return values instead of homegrown ones,
- given that hme_load_txmbuf() is allowed to fail resulting in a
packet drop for quite some time now implement the functionality of
hme_txcksum() by means of m_pullup(9), which de-obfuscates the code
and allows to always retrieve the correct length of the IP header, [1]
- also add a KASSERT which asserts nsegs is valid,
- take advantage of m_collapse(9) instead of m_defrag(9) for
performance reasons.
o Don't bother to check whether the interface is running or whether its
queue is empty before calling hme_start_locked() in hme_tint(), the
former will check these anyway.
o In hme_intr() call hme_rint() before hme_tint() as gem_tint() may
take quite a while to return when it calls hme_start_locked().
o Get rid of sc_debug and just check if_flags for IFF_DEBUG directly.
o Add a shadow sc_ifflags so we don't reset the chip when unnecessary.
o Handle IFF_ALLMULTI correctly. [2]
o Use PCIR_BAR instead of a homegrown macro.
o Replace sc_enaddr[6] with sc_enaddr[ETHER_ADDR_LEN].
o Use the maximum of 256 TX descriptors for better performance as using
all of them has no additional static cost rather than using just half
of them.
marcel [Tue, 10 Jun 2008 03:19:33 +0000 (03:19 +0000)]
MFC revisions 172857 through 179688:
o Allow building a rescue version (not applicable yet)
o Add the bootcode verb for installing bootcode.
o Various manpage updates.