]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years agoMFC: r180010
marius [Sat, 5 Jul 2008 16:30:46 +0000 (16:30 +0000)]
MFC: r180010

Given that sun4u uses sparc64/sparc64/in_cksum.c, use the sparc64
<machine/in_cksum.h> here also.

16 years agoMFC: r180073
marius [Sat, 5 Jul 2008 16:28:08 +0000 (16:28 +0000)]
MFC: r180073

Add the condition codes to the clobber list.

16 years agoMFC r180158:
danger [Sat, 5 Jul 2008 11:08:26 +0000 (11:08 +0000)]
MFC r180158:

- 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]

PR: docs/121821 [2]

16 years agoMFC r180155:
danger [Sat, 5 Jul 2008 10:47:59 +0000 (10:47 +0000)]
MFC r180155:

- add the -m option to the example commands because they would fail w/o it
  as the ``man'' user does not have a valid shell by default.

PR: docs/121713

16 years agoMFC r79910:
marck [Sat, 5 Jul 2008 08:14:04 +0000 (08:14 +0000)]
MFC r79910:
Add -v (verbose) option to -l command, to show size and backing store
of all md devices at one time.

Approved by: phk

16 years agoMFC revision 179895 and 179896:
delphij [Fri, 4 Jul 2008 01:29:12 +0000 (01:29 +0000)]
MFC revision 179895 and 179896:

Add et(4), a port of DragonFly's Agere ET1310 10/100/Gigabit
Ethernet device driver, written by sephe@

Obtained from: DragonFly
Sponsored by: iXsystems
MFC after: 2 weeks

16 years agoMFC r180071, r180112, r180154:
danger [Thu, 3 Jul 2008 17:02:04 +0000 (17:02 +0000)]
MFC r180071, r180112, r180154:

- markup fixes
- advise to use rc script to SIGHUP mountd
- add some missing words
- add information about possiblity of using /prefix network notation [1]

PR: docs/124373 [1]
Obtained from: NetBSD [1]

16 years agoMerge files:1.1309 (r179787) from head to stable/7:
rwatson [Wed, 2 Jul 2008 17:40:34 +0000 (17:40 +0000)]
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.

  PR:             124456
  Submitted by:   Nathan Whitehorn <whitehorn at wisc dot edu>

16 years agoMerge ip_dummynet.c:1.116, raw_ip.c:1.185 (r179201) from head to
rwatson [Wed, 2 Jul 2008 17:28:41 +0000 (17:28 +0000)]
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.

  Sponsored by:   nCircle Network Security, Inc.

16 years agoMerge uipc_syscalls.c:1.272 (r179196) from head to stable/7:
rwatson [Wed, 2 Jul 2008 16:22:00 +0000 (16:22 +0000)]
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.

  Sponsored by:   nCircle Network Security, Inc.

16 years agoMerge spx_usrreq.c:1.89 (r179410) from head to stable/7:
rwatson [Wed, 2 Jul 2008 16:08:42 +0000 (16:08 +0000)]
Merge spx_usrreq.c:1.89 (r179410) from head to stable/7:

  Rather than m_free(dtom(si)) in spx_reass(), return (1) which causes the
  caller to free the mbuf without using dtom().

16 years agoMerge spx_usrreq.c:1.88 (r179408) from head to stable/7:
rwatson [Wed, 2 Jul 2008 15:38:20 +0000 (15:38 +0000)]
Merge spx_usrreq.c:1.88 (r179408) from head to stable/7:

  Correct minor comment typos, make white space use before block comments
  more consistent.

16 years agoMerge spx_usrreq.c:1.87 (r179332) from head to stable/7:
rwatson [Wed, 2 Jul 2008 15:23:08 +0000 (15:23 +0000)]
Merge spx_usrreq.c:1.87 (r179332) from head to stable/7:

  Avoid unnecessary one use of dtom(9) in spx_input().

16 years agoMerge audit_worker.c:1.24 (sys:r179176) from head to stable/7:
rwatson [Wed, 2 Jul 2008 14:50:30 +0000 (14:50 +0000)]
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.

16 years agoMerge audit_worker.c:1.24 (179178) from head to stable/7:
rwatson [Wed, 2 Jul 2008 14:31:51 +0000 (14:31 +0000)]
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.

  Requested by:   attilio

16 years agoMFC r177899:
emaste [Wed, 2 Jul 2008 14:17:49 +0000 (14:17 +0000)]
MFC r177899:
  Allow crashdumps on machines with >4GB of RAM as long as the adapter can
  do 64-bit S/G.

16 years agoMFC r180060:
mtm [Wed, 2 Jul 2008 13:03:08 +0000 (13:03 +0000)]
MFC r180060:
  Support for filtering on major device number was removed in rev. 1.7 or
  rule.c. Update man page example accordingly.

  Submitted by: Mateusz Guzik <mjguzik@gmail.com>
  PR: docs/124892

16 years agoMFC r179969:
emaste [Tue, 1 Jul 2008 22:16:33 +0000 (22:16 +0000)]
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.

16 years agoMFC r180062:
rpaulo [Tue, 1 Jul 2008 21:36:03 +0000 (21:36 +0000)]
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)

16 years agoMerge audit.h:1.18 (sys:r178802) from head to stable/7:
rwatson [Tue, 1 Jul 2008 18:58:07 +0000 (18:58 +0000)]
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.

  Sponsored by:   Apple, Inc.

16 years agoMFC: r180109 / rev 1.53
obrien [Tue, 1 Jul 2008 16:42:51 +0000 (16:42 +0000)]
MFC: r180109 / rev 1.53
Document the layout of the address space.

16 years agoMerge db_capture.c:1.6 (178492) from head to stable/7:
rwatson [Tue, 1 Jul 2008 12:15:55 +0000 (12:15 +0000)]
Merge db_capture.c:1.6 (178492) from head to stable/7:

  Rename debug.ddb.capture.bytes sysctl to debug.ddb.capture.bufoff in
  order to match the internal variable name.

  Add a new sysctl debug.ddb.capture.inprogress to export the inprogress
  variable.

16 years agoMFC of SVN rev 180061 on 2008-06-27 10:30:08Z by luigi
luigi [Tue, 1 Jul 2008 10:52:15 +0000 (10:52 +0000)]
MFC of SVN rev 180061 on 2008-06-27 10:30:08Z by luigi

 Add USB ids for the Epson DX7400 / CX7300 multifunction scanner printer
 card reader.
On passing, also MFC similar entries for other epson MFP devices.

MFC after: 3 days

16 years agoMerge nwfs_node.c:1.43 (r176745) from head to stable/7:
rwatson [Tue, 1 Jul 2008 10:40:49 +0000 (10:40 +0000)]
Merge nwfs_node.c:1.43 (r176745) from head to stable/7:

  Replace lockmgr lock protecting nwfs vnode hash table with an sx lock.

16 years agoMerge smbfs.h:1.13, smbfs_node.c:1.38, smbfs_vfsops.c:1.44 (r176744)
rwatson [Tue, 1 Jul 2008 08:41:02 +0000 (08:41 +0000)]
Merge smbfs.h:1.13, smbfs_node.c:1.38, smbfs_vfsops.c:1.44 (r176744)
from head to stable/7:

  Replace lockmgr lock protecting smbfs node hash table with sx lock.

16 years agoMerge extattr.h:1.22, ufs_extattr.c:1.91 (r176797) from head to
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.

  While here, update comments on lock granularity.

16 years agoMerge auditpipe.4:1.6 (r178726) from head to stable/7:
rwatson [Mon, 30 Jun 2008 18:35:11 +0000 (18:35 +0000)]
Merge auditpipe.4:1.6 (r178726) from head to stable/7:

  Fix type name: struct auditpipe_preselect is actually struct
  auditpipe_ioctl_preselect.

  Submitted by:   Stacey D. Son <stacey at son.org>

16 years agoMFC rev r179288:
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.

Approved by: kib (mentor)
Reviewed by: kib (mentor)
Tested by: pho

16 years agoMFC rev. 180024:
danger [Mon, 30 Jun 2008 09:16:22 +0000 (09:16 +0000)]
MFC rev. 180024:

- Mark the section describing return values with an appropriate
  section flag.

PR: docs/122818

16 years ago- MFC rev. 180030 and 180113:
danger [Mon, 30 Jun 2008 09:06:19 +0000 (09:06 +0000)]
- MFC rev. 180030 and 180113:
  - add description of the MLINK error
  - bump a date

PR: docs/123019

16 years agoMFC r179918:
das [Sun, 29 Jun 2008 16:35:33 +0000 (16:35 +0000)]
MFC r179918:

  Bring in the vendor's fix for a bug in strtod() whereby
  strtod("0xyz", &endp) resulted in endp pointing to "0xyz"
  instead of "xyz".

16 years agoMFC r180077:
philip [Sun, 29 Jun 2008 12:51:49 +0000 (12:51 +0000)]
MFC r180077:

    Remove stray "miibus0" reference from ancient kernel config file times.

16 years agoMFC: Add a BUS_BIND_INTR() method to the bus interface to bind an IRQ
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.

16 years agoMFC: Add preliminary support for binding interrupts to CPUs:
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.

16 years agoMFC r175163:
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).

  Discussed on hackers@.

16 years agoMFC: r177101, r177102, r177541:
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.

16 years agoMFC: Add the mpt_user personality to mpt(4).
jhb [Fri, 27 Jun 2008 04:42:19 +0000 (04:42 +0000)]
MFC: Add the mpt_user personality to mpt(4).

16 years agoMFC: Probe CPUs after the PCI hierarchy on i386, amd64, and ia64. This
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.

16 years agoMFC: Add support for the BCM5906[M] adapters including subsequent
jhb [Fri, 27 Jun 2008 03:24:54 +0000 (03:24 +0000)]
MFC: Add support for the BCM5906[M] adapters including subsequent
improvements by marius@.

16 years agoMFC: Add a flag for Ethernet@WireSpeed capability and correct chip
jhb [Fri, 27 Jun 2008 03:02:50 +0000 (03:02 +0000)]
MFC: Add a flag for Ethernet@WireSpeed capability and correct chip
revisions.

16 years agoMFC: Use sysctl to fetch stats from the kernel instead of reading variables
jhb [Fri, 27 Jun 2008 02:18:01 +0000 (02:18 +0000)]
MFC: Use sysctl to fetch stats from the kernel instead of reading variables
directly via libkvm.

16 years agoMFC: Workaround a bug in the BIOS of Dell R900 machines by padding the
jhb [Fri, 27 Jun 2008 00:58:39 +0000 (00:58 +0000)]
MFC: Workaround a bug in the BIOS of Dell R900 machines by padding the
structure used to fetch SMAP entries.

16 years agoMFC: After probing the available frequency settings, restore the CPU to run
jhb [Fri, 27 Jun 2008 00:48:23 +0000 (00:48 +0000)]
MFC: After probing the available frequency settings, restore the CPU to run
at whatever frequency it started at.

16 years agoConsolidate merge info in sys/.
jhb [Fri, 27 Jun 2008 00:37:08 +0000 (00:37 +0000)]
Consolidate merge info in sys/.

16 years agoffs_vfsops.c:
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

PR: 122833

16 years agoMFC rev. 1.155-1.156
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.

16 years agoMFC r179989: Fix links to online gcc docs.
ale [Thu, 26 Jun 2008 05:41:25 +0000 (05:41 +0000)]
MFC r179989: Fix links to online gcc docs.

16 years agoMFC: Removed the no-op -p; documented -P.
ru [Wed, 25 Jun 2008 22:13:24 +0000 (22:13 +0000)]
MFC: Removed the no-op -p; documented -P.

16 years agoMFC: src/compat is gone.
ru [Wed, 25 Jun 2008 20:37:04 +0000 (20:37 +0000)]
MFC: src/compat is gone.

16 years agoMove mergeinfo from file to containing directory.
peter [Wed, 25 Jun 2008 10:13:03 +0000 (10:13 +0000)]
Move mergeinfo from file to containing directory.

16 years agoMove mergeinfo up from file to containing directory.
peter [Wed, 25 Jun 2008 10:10:30 +0000 (10:10 +0000)]
Move mergeinfo up from file to containing directory.

16 years agoMove mergeinfo to containing directory. Fix some very strange records
peter [Wed, 25 Jun 2008 10:06:00 +0000 (10:06 +0000)]
Move mergeinfo to containing directory.  Fix some very strange records
that make no sense.

16 years agoMove mergeinfo from file up to directory; fix broken mergeinfo record.
peter [Wed, 25 Jun 2008 10:00:28 +0000 (10:00 +0000)]
Move mergeinfo from file up to directory; fix broken mergeinfo record.

16 years agoMove mergeinfo from file up to parent directory
peter [Wed, 25 Jun 2008 09:56:44 +0000 (09:56 +0000)]
Move mergeinfo from file up to parent directory

16 years agoMove mergeinfo from ciss.c up to containing directory.
peter [Wed, 25 Jun 2008 09:51:59 +0000 (09:51 +0000)]
Move mergeinfo from ciss.c up to containing directory.

16 years agoMFC: r179490
mlaier [Tue, 24 Jun 2008 23:24:38 +0000 (23:24 +0000)]
MFC: r179490

  Sort IP addresses before hashing them for the signature.  Otherwise carp
  is sensitive to address configuration order.

  PR: kern/121574
  Reported by: Douglas K. Rand, Wouter de Jong
  Obtained from: OpenBSD (rev 1.114 + fixes)

16 years agoMFC: Add KASSERT()'s to catch attempts to recurse on spin mutexes that
jhb [Tue, 24 Jun 2008 22:07:51 +0000 (22:07 +0000)]
MFC: Add KASSERT()'s to catch attempts to recurse on spin mutexes that
aren't marked recursable either via mtx_lock_spin() or thread_lock().

16 years agoMFC: Add 'compat_freebsd[456]' features corresponding to the kernel options
jhb [Tue, 24 Jun 2008 21:06:02 +0000 (21:06 +0000)]
MFC: Add 'compat_freebsd[456]' features corresponding to the kernel options
COMPAT_FREEBSD[456].

16 years agoMFC r173182: remove extraneous .Ef request
wollman [Tue, 24 Jun 2008 21:00:48 +0000 (21:00 +0000)]
MFC r173182: remove extraneous .Ef request

16 years agoMFC: Add the kern.features sysctl tree and FEATURE() macro. Add a "pae"
jhb [Tue, 24 Jun 2008 20:04:39 +0000 (20:04 +0000)]
MFC: Add the kern.features sysctl tree and FEATURE() macro.  Add a "pae"
feature for PAE kernels on i386.

16 years agoMFC: Change the roundrobin implementation in the 4BSD scheduler to trigger a
jhb [Tue, 24 Jun 2008 19:36:33 +0000 (19:36 +0000)]
MFC: Change the roundrobin implementation in the 4BSD scheduler to trigger a
userland preemption directly from hardclock() via sched_clock().

16 years agoMFC rev. 173742-178057.
marcel [Mon, 23 Jun 2008 21:45:04 +0000 (21:45 +0000)]
MFC rev. 173742-178057.

Requested by: mav (twice)

16 years agoMFC r179478:
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.

16 years agoMFC r179480, r179924:
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.

16 years agoMFC r179477:
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.

16 years agoMFC r179473:
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.

16 years agoMFC r179670:
kib [Mon, 23 Jun 2008 11:02:40 +0000 (11:02 +0000)]
MFC r179670:
Provide the mutual exclusion between the nfs export list modifications
and nfs requests processing.

16 years agoMFC rev. 179903: link powerd(8) man page
danger [Mon, 23 Jun 2008 08:01:53 +0000 (08:01 +0000)]
MFC rev. 179903: link powerd(8) man page

PR: docs/123111

16 years agoMFC: revs 175291,175384. Add .POSIX: to break timestamp-sensitive problems
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).

16 years agoMFC r179634:
kib [Sat, 21 Jun 2008 08:51:21 +0000 (08:51 +0000)]
MFC r179634:
Fix the incorrect calculation of a block address within a single indirect
block.

PR: 108215

16 years agoMFC r179897:
lulf [Fri, 20 Jun 2008 21:17:40 +0000 (21:17 +0000)]
MFC r179897:

- Fix spelling errors.

Approved by: kib (mentor)
PR: kern/124788
Submitted by: Hywel Mallett <Hywel -at- hmallett.co.uk>

16 years agoMFC: more intelligent handling of /usr/ports subdirectories.
joerg [Fri, 20 Jun 2008 08:48:33 +0000 (08:48 +0000)]
MFC: more intelligent handling of /usr/ports subdirectories.

16 years agoMFC svn rev 179834.
kan [Fri, 20 Jun 2008 00:13:37 +0000 (00:13 +0000)]
MFC svn rev 179834.

Install extra include files that were forgotten in original GCC 4.2.x
import changes.

PR: 124647
Submitted by: Vlad GALU

16 years agoMFC revisions: 179654
scf [Thu, 19 Jun 2008 23:25:00 +0000 (23:25 +0000)]
MFC revisions: 179654

Fixed the output grammar to properly speak non-terminal dits.

Updated Lyndon Nerenberg's radio callsign and E-mail address.

PR: bin/7868
Submitted by: Lyndon Nerenberg <lyndon@orthanc.ca>

16 years agoMFC: SMBus detection for the MCP65 chipset.
joerg [Thu, 19 Jun 2008 07:35:08 +0000 (07:35 +0000)]
MFC: SMBus detection for the MCP65 chipset.

16 years agoMFC: r179099
yongari [Thu, 19 Jun 2008 04:23:26 +0000 (04:23 +0000)]
MFC: r179099

Connect atphy(4) to the build.

16 years agoMFC: r179098
yongari [Thu, 19 Jun 2008 03:56:39 +0000 (03:56 +0000)]
MFC: r179098

Add Attansic/Atheros F1 PHY driver.

16 years agoMFC: r179647
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 )

16 years agoMFC: Allow negative values to be specified in the loader.
ambrisko [Wed, 18 Jun 2008 21:39:00 +0000 (21:39 +0000)]
MFC: Allow negative values to be specified in the loader.

16 years agoMFC r179722:
kib [Wed, 18 Jun 2008 09:31:56 +0000 (09:31 +0000)]
MFC r179722:
In cd9660_readdir vop, always initialize the idp->uio_off member.

PR: 122925

16 years agoMFC r179808:
kib [Wed, 18 Jun 2008 09:25:26 +0000 (09:25 +0000)]
MFC r179808:
Do not redo the vnode tear-down work already done by insmntque() when
vnode cannot be put on the vnode list for mount.

16 years agoMFC rev r179848 shar.sh
remko [Tue, 17 Jun 2008 19:04:17 +0000 (19:04 +0000)]
MFC rev r179848 shar.sh

  Remove superfluous eofmarker.

  Requested by:   Jaakko Heinonen
  Discussed with: Jaakko, edwin

  Approved by:    imp (mentor, implicit)

Approved by: imp (mentor, implicit)

16 years agoMFC: remove 4.x support (r179835)
flz [Tue, 17 Jun 2008 10:47:24 +0000 (10:47 +0000)]
MFC: remove 4.x support (r179835)

16 years agoFix a bad mergeinfo path
peter [Tue, 17 Jun 2008 06:34:48 +0000 (06:34 +0000)]
Fix a bad mergeinfo path

16 years agoMFC allocator improvements and fixes:
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".

16 years agoMFC: style fixes (naked commands, r179819)
flz [Mon, 16 Jun 2008 09:17:59 +0000 (09:17 +0000)]
MFC: style fixes (naked commands, r179819)

16 years agoSynchronize pkg_install with HEAD (20080612)
flz [Mon, 16 Jun 2008 09:02:59 +0000 (09:02 +0000)]
Synchronize pkg_install with HEAD (20080612)

    r179760: fix recursive -K (add), '\n' not part of pkg origin (updating)

16 years agoMFC rev 179460
remko [Sun, 15 Jun 2008 20:12:11 +0000 (20:12 +0000)]
MFC rev 179460

Dont install .svn metadata with the sendmail install.

Submitted by:   marcel
Approved by:    imp (mentor, implicit)

16 years agoMFC -r 179355 on behalf of remko.
keramida [Sun, 15 Jun 2008 14:36:01 +0000 (14:36 +0000)]
MFC -r 179355 on behalf of remko.

% r179355 | remko | 2008-05-27 12:45:18 +0300 (Tue, 27 May 2008) | 11 lines
%
% Limit the EOF marker length to a maximum of 79 characters. [1]
%
% Add $FreeBSD$ tag so that I can actually commit this.
%
% PR:             bin/118782
% Reported by:    Bjoern Koenig
% Patch by:       edwin, Jaakko Heinonen (not used patch)
% MFC after:      1 week
% Approved by:    imp (mentor, implicit)

16 years agoMFC: All changes in current to 7.X.
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

16 years agoMFC r178697: Add support for Microsoft Notebook Optical
kaiw [Thu, 12 Jun 2008 16:45:46 +0000 (16:45 +0000)]
MFC r178697: Add support for Microsoft Notebook Optical
Mouse 3000 Model 1049.

PR:   usb/121052

16 years agoMFC r177341: decrement matched patterns instead of incrementing.
kientzle [Thu, 12 Jun 2008 06:17:15 +0000 (06:17 +0000)]
MFC r177341: decrement matched patterns instead of incrementing.
In particular, this fixes --exit-fast behavior.

16 years agoMFC: r176996, r177560
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]

Obtained from: NetBSD (loosely) [1]

16 years agoMFC: r178589
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).

16 years agoMFC: r178470
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.

Reported by: rwatson [2]
Suggested by: yongari [1]
Reviewed by: yongari

16 years agoMFC: r179705
ps [Tue, 10 Jun 2008 18:11:14 +0000 (18:11 +0000)]
MFC: r179705
Add support for the P212, P410, P410i, P411, and P812 HP Smart Array
controllers.

16 years agoSynchronize pkg_install with HEAD (20080530)
flz [Tue, 10 Jun 2008 09:55:25 +0000 (09:55 +0000)]
Synchronize pkg_install with HEAD (20080530)

    r179352,179366: don't regenerate packages
    r179433: add long options

16 years agoMFC revisions 172857 through 179688:
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.

16 years agoMFC rev 179628: Add gctl_delete_param() and gctl_has_param().
marcel [Tue, 10 Jun 2008 03:02:51 +0000 (03:02 +0000)]
MFC rev 179628: Add gctl_delete_param() and gctl_has_param().

16 years agoMFC r176724 through r179687 (geom_part): Module support
marcel [Mon, 9 Jun 2008 19:25:04 +0000 (19:25 +0000)]
MFC r176724 through r179687 (geom_part): Module support