]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years agoMFC: r178470
marius [Wed, 11 Jun 2008 19:49:10 +0000 (19:49 +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:31:19 +0000 (18:31 +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:56:11 +0000 (09:56 +0000)]
Synchronize pkg_install with HEAD (20080530)

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

16 years agoMFC: r179497
jkim [Mon, 9 Jun 2008 18:45:21 +0000 (18:45 +0000)]
MFC: r179497

Fix a crash when Arctic Ocean is selected.

16 years agoMFC: r179510 - nlm_global_lock doesn't exist (yet)
dfr [Mon, 9 Jun 2008 12:11:27 +0000 (12:11 +0000)]
MFC: r179510 - nlm_global_lock doesn't exist (yet)

Pointed out by: kib

16 years agoMFC: r179489 - add a missing call to init_nsm().
dfr [Mon, 9 Jun 2008 10:55:59 +0000 (10:55 +0000)]
MFC: r179489 - add a missing call to init_nsm().

16 years agoMFC: r179488 - check for client reboot before executing the lock request
dfr [Mon, 9 Jun 2008 10:52:43 +0000 (10:52 +0000)]
MFC: r179488 - check for client reboot before executing the lock request

16 years agoMFC: Sync restore with the version in -current.
dwmalone [Mon, 9 Jun 2008 07:53:16 +0000 (07:53 +0000)]
MFC: Sync restore with the version in -current.

Fix remaining nits from PR bin/39905.
Check for write failure while building temp files.
Correctly set file group when restore is run by a user other than root.
Use safer string handling.
Fixes the "getfile: lost data" panic when restoring older dumps.
Fix spurious "Header with wrong dumpdate" message.
Add -D for degraded mode, which tries harder to read corrupted backups.
Remove a diagnostic message from man page that is no longer printed.

16 years agoMFC r174749, r175396, r175419, r175432
thompsa [Fri, 6 Jun 2008 21:57:28 +0000 (21:57 +0000)]
MFC r174749, r175396, r175419, r175432
 - Simplify the error handling
 - Nuke licence clause 3 & 4
 - Drop frames to any of the reserved multicast addresses
 - Remove duplicated code for testing local packets.

16 years agoMFC: r179358,179434 - make libc's fcntl symbol weak and extend the limited
dfr [Fri, 6 Jun 2008 09:13:43 +0000 (09:13 +0000)]
MFC: r179358,179434 - make libc's fcntl symbol weak and extend the limited
forward ABI compatibility for fcntl to the thread libraries.

16 years agoMFC: r179425 - cope better when client NLM port changes
dfr [Fri, 6 Jun 2008 08:54:51 +0000 (08:54 +0000)]
MFC: r179425 - cope better when client NLM port changes

16 years agoMFC r179024: Change a use of u_int32_t to uint32_t.
brooks [Thu, 5 Jun 2008 22:35:58 +0000 (22:35 +0000)]
MFC r179024: Change a use of u_int32_t to uint32_t.

PR: bin/93172

16 years agoMFC: Recode the colemak keymap to ISO-8859.
philip [Thu, 5 Jun 2008 10:53:01 +0000 (10:53 +0000)]
MFC: Recode the colemak keymap to ISO-8859.

16 years ago- Associate myself with ncurses
rafan [Wed, 4 Jun 2008 07:37:56 +0000 (07:37 +0000)]
- Associate myself with ncurses

16 years agoThis file should define HAVE_MEMMOVE and HAVE_MEMCHR, but for some
dougb [Tue, 3 Jun 2008 21:26:37 +0000 (21:26 +0000)]
This file should define HAVE_MEMMOVE and HAVE_MEMCHR, but for some
reason configure did not pick it up. Add them here in the same way
that it's done when running configure for the port. All of the
other generated files are functionally equivalent to how they
look when generated by the port.

16 years agoRestore the global cp_time[] array that was removed when the per-CPU stats
jhb [Tue, 3 Jun 2008 18:51:53 +0000 (18:51 +0000)]
Restore the global cp_time[] array that was removed when the per-CPU stats
were MFC'd.  This restores the ABI and allows some tools like vmstat to
work on crash dumps again.

16 years agoMFC: distfile target, pkg registration optimization
flz [Tue, 3 Jun 2008 15:02:04 +0000 (15:02 +0000)]
MFC: distfile target, pkg registration optimization

    r178032,179377,179520: add distfile target
    r178103,178753-178754: optimize package registration

16 years agoMFC: Add support for the Colemak keyboard layout from: http://colemak.com/.
philip [Tue, 3 Jun 2008 10:55:22 +0000 (10:55 +0000)]
MFC: Add support for the Colemak keyboard layout from: http://colemak.com/.

Submitted by: Geert Hendrickx <ghen -at- netbsd.org>

16 years agoMFC the change from version 1.189, add a space between a
dougb [Tue, 3 Jun 2008 06:02:27 +0000 (06:02 +0000)]
MFC the change from version 1.189, add a space between a
close quote and the closing bracket of a test.

16 years agoChanges to generated files related to the 9.3.5 update.
dougb [Tue, 3 Jun 2008 05:43:27 +0000 (05:43 +0000)]
Changes to generated files related to the 9.3.5 update.

16 years agoMFC versions 1.11 and 1.12, bmake glue updates that are also
dougb [Tue, 3 Jun 2008 05:40:47 +0000 (05:40 +0000)]
MFC versions 1.11 and 1.12, bmake glue updates that are also
relevant to BIND 9.3.5.

16 years agoUpdate to version 9.3.5. It contains the latest bug fixes, updates
dougb [Tue, 3 Jun 2008 05:38:10 +0000 (05:38 +0000)]
Update to version 9.3.5. It contains the latest bug fixes, updates
to root server addresses, and a fix for the vulnerability mentioned
here: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-0122

Users of BIND 9.3.x are strongly encouraged to upgrade to this
version. Also, the 9.3.x branch is now in maintenance-only mode.
Users are encouraged to investigate BIND 9.4.x or perhaps 9.5.x.

http://www.isc.org/index.pl?/sw/bind/versions_and_support.php

This udpate is being done by updating the files directly in this
branch rather than an import + MFC because BIND in HEAD is 9.4.x.

16 years agoAdd proper mime-types for files that they are relevant for.
dougb [Mon, 2 Jun 2008 20:54:45 +0000 (20:54 +0000)]
Add proper mime-types for files that they are relevant for.
This is useful for things like *.pdf files that svn needs
to know about, and will probably be useful down the road
for other things.

16 years agoMFC r177993
thompsa [Mon, 2 Jun 2008 02:30:02 +0000 (02:30 +0000)]
MFC r177993

 Fix spelling, retaining old define.

16 years agoDisown ncurses, as a multi-branch commit test, to make sure the exporter
peter [Sat, 31 May 2008 22:32:51 +0000 (22:32 +0000)]
Disown ncurses, as a multi-branch commit test, to make sure the exporter
handles it.

16 years agoMFC: sym_defs.h 1.12; sym_fw.h 1.6; sym_fw1.h 1.9; sym_fw2.h 1.10;
marius [Fri, 30 May 2008 22:00:45 +0000 (22:00 +0000)]
MFC: sym_defs.h 1.12; sym_fw.h 1.6; sym_fw1.h 1.9; sym_fw2.h 1.10;
     sym_hipd.c 1.69 (partial), 1.70

- Remove unused members related to bus addresses in struct sym_hcb.
- sym(4) takes care of allocating an instance of struct sym_hcb
  itself so don't let newbus allocate it as an unused softc also.
- Const'ify firmware and lookup-tables.
- Obsolete redundant inst_name and unit members of struct sym_hcb.
- Fix three more NULL vs. 0 confusions.
- Use device_set_softc(9) to tell the bus layer that this driver
  allocates a instance of struct sym_hcb itself.

16 years agoMFC: 1.56; 1.57; 1.58; 1.63; 1.66; 1.68
marius [Fri, 30 May 2008 19:59:38 +0000 (19:59 +0000)]
MFC: 1.56; 1.57; 1.58; 1.63; 1.66; 1.68

- Fix -Wundef.
- FreeBSD has had endian conversion macros for a long time.  Axe the custom
  macros in this driver.
- Fix typo in comment.
- Fix various compilation warnings for gcc-4.2.
- Use NULL instead of 0 for pointers.
- Remove superfluous returns in functions returning void.
- In sym_alloc_lcb_tags() return directly instead of jumping
  to a label which just returns.
- Fix some spelling in comments.
- Remove trailing whitespace.

16 years agoMFC:
emax [Fri, 30 May 2008 00:42:50 +0000 (00:42 +0000)]
MFC:

Bluetooth SIG is being difficult and keep moving specification
documents away from being public accessible. Replace link to
the Bluetooth specification document with the document name.

Pointed out by: SoftLover < slserg at uic dot tula dot ru >

16 years agoMFC: Add memrchr(3).
delphij [Tue, 27 May 2008 20:04:27 +0000 (20:04 +0000)]
MFC: Add memrchr(3).

Obtained from: OpenBSD

16 years agoMFC to RELENG_6:
antoine [Tue, 27 May 2008 18:33:17 +0000 (18:33 +0000)]
MFC to RELENG_6:
  Move "1000baseT" from IFM_SUBTYPE_ETHERNET_DESCRIPTIONS to
  IFM_SUBTYPE_ETHERNET_ALIASES: there is already "1000baseTX" in
  IFM_SUBTYPE_ETHERNET_DESCRIPTIONS.  This doesn't change ifconfig
  behaviour.

  PR:             45793 (maybe)
  Approved by:    rwatson (mentor)
  MFC after:      1 month

16 years agoMFC:
gabor [Mon, 26 May 2008 19:26:10 +0000 (19:26 +0000)]
MFC:
hu_HU.ISO8859-2.src r1.9
hu_HU.UTF-8.src r1.4

- The names of the months and the days are in lowercase according to the
  Hungarian spelling, change them accordingly

16 years agoMFC rev. 1.278:
kib [Mon, 26 May 2008 11:15:15 +0000 (11:15 +0000)]
MFC rev. 1.278:
Use the t_state for the TS_GONE test.

16 years agoMFC revision 1.293
alc [Sun, 25 May 2008 07:38:09 +0000 (07:38 +0000)]
MFC revision 1.293
  Add a read/write sysctl for reconfiguring the maximum number of physical
  pages that can be wired.

PR: 114654

16 years agoMFC revision 1.52
delphij [Sat, 24 May 2008 00:42:53 +0000 (00:42 +0000)]
MFC revision 1.52
date: 2008/05/10 01:27:23;  author: delphij;  state: Exp;  lines: +6 -0

Add support for LSI 1078DE (ServeRAID-AR10is SAS/SATA Controller)

16 years ago- Close a small fd leak that can occur if we have to do more than one
jhb [Fri, 23 May 2008 20:06:59 +0000 (20:06 +0000)]
- Close a small fd leak that can occur if we have to do more than one
  PIOCWAIT after forking a new child process.
- Use NULL instead of 0 in one spot.

This is a direct commit to RELENG_6 since it only applies to the procfs
code and newer branches use ptrace() rather than procfs.

16 years agoMFC: Teach truss about 32-bit FreeBSD and Linux binaries on amd64.
jhb [Fri, 23 May 2008 20:04:55 +0000 (20:04 +0000)]
MFC: Teach truss about 32-bit FreeBSD and Linux binaries on amd64.

16 years agoMFC of an update to the dump program to save extended attributes
mckusick [Fri, 23 May 2008 18:08:32 +0000 (18:08 +0000)]
MFC of an update to the dump program to save extended attributes
and an update to the restore program to restore all dumped extended
attributes. The affected files and the version being MFC'ed:

  Revision  Path
  1.11      src/include/protocols/dumprestore.h
  1.28      src/sbin/dump/dump.h
  1.38      src/sbin/dump/traverse.c
  1.31      src/sbin/restore/dirs.c
  1.11      src/sbin/restore/extern.h
  1.12      src/sbin/restore/restore.h
  1.48      src/sbin/restore/tape.c
  1.16      src/sys/sys/extattr.h
  1.21      src/sys/ufs/ufs/extattr.h
  1.24      src/share/man/man5/fs.5

Note that this code will not compile until these header
files have been updated: <protocols/dumprestore.h> and
<sys/extattr.h>. This should happen in the course of doing
a normal `buildworld'.

This resolves PR 93085 which will be closed.

PR:             bin/93085
MFC request by: Robert Watson

16 years agoMFC revision 1.6
lulf [Fri, 23 May 2008 15:39:27 +0000 (15:39 +0000)]
MFC revision 1.6
- Recognize the 'volume' parameter when creating a plex.

16 years agoMFC:
dwmalone [Tue, 20 May 2008 11:32:03 +0000 (11:32 +0000)]
MFC:
Dummynet has a limit of 100 slots queue size (or 1MB, if you give
the limit in bytes) hard coded into both the kernel and userland.
Make both these limits a sysctl, so it is easy to change the limit.

16 years agoMFC:
dwmalone [Tue, 20 May 2008 11:17:51 +0000 (11:17 +0000)]
MFC:
If we are walking the IPv6 header chain and we hit an IPPROTO_NONE
header, then don't try to pullup anything, because there is no next
header if we hit IPPROTO_NONE. Set ulp to a non-NULL value so the
search for an upper layer header terinates.

16 years agoMFC: moused.c rev 1.84
philip [Tue, 20 May 2008 10:53:58 +0000 (10:53 +0000)]
MFC: moused.c rev 1.84
     moused.8 rev 1.62

    Improve the virtual scrolling mechanism to make middle clicking less
    difficult.  Add a -L option (yet another option, indeed!) which changes
    the speed of scrolling and change -U to only affect the scroll threshold.

    This should make middle-clicking a much more pleasant experience.

Submitted by:   Aragon Gouveia <aragon -at- phat.za.net>

16 years agoSync with -current:
dwmalone [Tue, 20 May 2008 10:51:27 +0000 (10:51 +0000)]
Sync with -current:
 - ability to traceroute with packets with no upper layer header.
 - clean __P use.
 - place each router entry on its own line.
 - get ipsec.h from netipsec directory.

16 years agoFix a harmless mismerge.
dfr [Tue, 20 May 2008 07:55:03 +0000 (07:55 +0000)]
Fix a harmless mismerge.

Pointed out by: jhb

16 years agoMFC: bus_common.h 1.9; iommuvar.h 1.17; psycho.c 1.77;
marius [Mon, 19 May 2008 19:23:06 +0000 (19:23 +0000)]
MFC: bus_common.h 1.9; iommuvar.h 1.17; psycho.c 1.77;
     sbus.c 1.46 (partial), 1.48; counter.c 1.7;
     iommu.c 1.44 (partial), 1.45 (partial), 1.47

- Use the name returned by device_get_nameunit(9) for the name of the
  counter-timer timecounter so the associated SYSCTL nodes don't clash on
  machines having multiple U2P and U2S bridges as well as establishing a
  clear mapping between these bridges and their timecounter device.
- Don't bother setting up a "nice" name for the IOMMU, just use the name
  returned by device_get_nameunit(9), too.
- Correct a typo in sbus_alloc_resource() which caused (pass-through)
  allocations to only work down to the grandchildren of the bus, which
  wasn't a real problem so far as we don't support any devices which are
  great-grandchildren or greater of a U2S bridge, yet.
- Fix some minor style(9) bugs.
- Use __FBSDID in counter.c and iommu.c.

16 years agoMFC: Only output details about the current working directory of a process
jhb [Mon, 19 May 2008 18:21:52 +0000 (18:21 +0000)]
MFC:  Only output details about the current working directory of a process
if the vnode pointer is not NULL.

16 years agoMFC: Set D_TRACKCLOSE to avoid a race in devfs that could lead to orphaned
jhb [Mon, 19 May 2008 18:19:48 +0000 (18:19 +0000)]
MFC: Set D_TRACKCLOSE to avoid a race in devfs that could lead to orphaned
bpf devices never getting fully closed.

16 years agoMFC:
emax [Mon, 19 May 2008 16:46:42 +0000 (16:46 +0000)]
MFC:

Make -t <tty> optional in server mode. If not specified use stdin/stdout.
Document this. Do not require channel number in server mode. If not
specified - bind to ''wildcard'' channel zero. Real channel number will
be obtained automatically and registered with local sdpd(8). While I'm
here fix serial port service registration.

Submitted by: luigi
Tested by: Helge Oldach <freebsd-bluetooth at oldach dot net>

16 years agoMFC
kib [Mon, 19 May 2008 11:50:48 +0000 (11:50 +0000)]
MFC
rev. 1.15 of lib/libc/gen/readdir.c
rev. 1.11 of lib/libc/gen/telldir.c
rev. 1.3  of lib/libc/gen/telldir.h

Do not read away the target directory entry when encountering deleted
files after a seekdir().

The seekdir shall set the position for the next readdir operation.
When the _readdir_unlocked() encounters deleted entry, dd_loc is
already advanced. Continuing the loop leads to premature read of
the target entry.

Submitted by: Marc Balmer <mbalmer at openbsd org>
Obtained from: OpenBSD

16 years agoMFC: Don't require a configuration file. Ntpd will be perfectly happy if there's
flz [Mon, 19 May 2008 09:21:24 +0000 (09:21 +0000)]
MFC: Don't require a configuration file. Ntpd will be perfectly happy if there's
none or if the file doesn't exist (there's no ntp.conf in the base install).

  src/etc/rc.d/ntpd: rev 1.13 -> 1.14

16 years agogetopt.c is public domain. Add a comment to that effect.
brooks [Mon, 19 May 2008 02:49:02 +0000 (02:49 +0000)]
getopt.c is public domain. Add a comment to that effect.

Remove confusing README.

PR: bin/98911
Submitted by: Jason McIntyre <jmc at kerhand dot co dot uk>
Obtained from: OpenBSD

16 years agoMFC:
scf [Mon, 19 May 2008 02:30:56 +0000 (02:30 +0000)]
MFC:
Spelling and capitalization fixes.

    src/sys/net/ethernet.h: rev 1.34 -> 1.35

16 years agoMFC rev 1.216 scsi_da.c
remko [Sat, 17 May 2008 23:41:27 +0000 (23:41 +0000)]
MFC rev 1.216 scsi_da.c

  Quirk for Denver MP3 player usb.

  Submitted by: Ed Schouten
  PR: 107101
  Approved by: re (blanket for device supprot)

Approved by: imp (mentor, implicit)

16 years agoMFC r1.8:
rpaulo [Sat, 17 May 2008 17:02:55 +0000 (17:02 +0000)]
MFC r1.8:
  style(9): remove FreeBSD CVS ID from the initial license comment.

16 years agoMFC the MPSAFE quotas.
kib [Sat, 17 May 2008 12:46:24 +0000 (12:46 +0000)]
MFC the MPSAFE quotas.

kern/vfs_syscalls.c rev. 1.433:
Busy filesystem around call of VFS_QUOTACTL() vfs op.

ufs/ffs/ffs_softdep.c remaining parts of the rev. 1.206 after 1.181.2.24:
Replace unconditional acquision of Giant when QUOTAS are defined with
VFS_LOCK_GIANT(NULL) call.

ufs/ffs/ffs_vfsops.c rev. 1.327, 1.328
rev. 1.327: Implement fine-grained locking for UFS quotas.
rev. 1.328: Mark UFS as being MP-Safe in "options QUOTA" case too.

ufs/ufs/quota.h remaining parts of the rev. 1.30 after 1.27.2.3:
Implement fine-grained locking for UFS quotas.

ufs/ufs/ufs_lookup.c rev. 1.83:
Call getinoquota() before allocating new block for the directory to properly
account for block allocation.

ufs/ufs/ufs_quota.c rev. 1.93:
Implement fine-grained locking for UFS quotas.

ufs/ufs/ufs_vnops.c rev. 1.289:
Remove unneeded getinoquota() call in the ufs_access().

16 years agoMFC rev. 1.158
mav [Sat, 17 May 2008 08:45:58 +0000 (08:45 +0000)]
MFC rev. 1.158
Use separate UMA zone for data items allocation. It is a partial
rev. 1.149 rework.
It allows to save several percents of CPU time on SMP by using UMA's
internal per-CPU allocation limits instead of own global variable
each time updated with atomics.
Also it restores NG_WAITOK flag processing.

PR:             kern/123741

16 years agoMFC rev 1.32 and rev 1.33 termios.4
remko [Sat, 17 May 2008 01:29:44 +0000 (01:29 +0000)]
MFC rev 1.32 and rev 1.33 termios.4

  The first of thirteen patches by Ed that resolves a documentation
  issue in termios.4, ttydefaults.h does not exist in /usr/include
  but in /usr/include/sys.

  MFC after:      3 days
  Submitted by:   Ed Schouten (ed at 80386 dot nl)

16 years agoThis commit was manufactured by cvs2svn to create branch 'RELENG_6'.
cvs2svn [Fri, 16 May 2008 15:34:07 +0000 (15:34 +0000)]
This commit was manufactured by cvs2svn to create branch 'RELENG_6'.

16 years agoMFC part of the rev. 1.210, and the rev. 1.211.
kib [Fri, 16 May 2008 11:41:50 +0000 (11:41 +0000)]
MFC part of the rev. 1.210, and the rev. 1.211.

In the giant_XXX wrappers for the device methods of the D_NEEDGIANT
drivers, do not dereference the cdev->si_devsw. It is racing with
the destroy_devl() clearing of the si_devsw. Instead, use the
dev_refthread() and return ENXIO for the destroyed device.

PR: kern/122287

16 years agoMFC rev. 1.24 of the sys/fs/devfs/devfs_rule.c,
kib [Fri, 16 May 2008 10:35:16 +0000 (10:35 +0000)]
MFC rev. 1.24 of the sys/fs/devfs/devfs_rule.c,
    rev. 1.218 of the sys/vm/vm_mmap.c

Do not dereference cdev->si_cdevsw, use the dev_refthread() to properly
obtain the reference. In particular, this fixes the panic reported in
the PR. Remove the comments stating that this needs to be done.

PR: kern/119422

16 years agoMFC rev. 1.320:
kib [Fri, 16 May 2008 10:32:52 +0000 (10:32 +0000)]
MFC rev. 1.320:

The wakeup() line from the rev. 1.319 is wrong and reintroduces
a panic race on module unload. The wakeup() is internal to
kproc_exit/kthread_exit. The correct fix is to fix the msleep() in
detach to sleep on fdc->fdc_thread instead of &fdc->fdc_thread.

MFC rev. 1.319:
Wakeup the thread doing the fdc_detach() when the fdc worker thread exits [1].
Write access to the write-protected floppy shall call device_unbusy() to
pair the device_busy() in the fd_access() [2].

PR: 116537 [1], 116539 [2]

16 years agoMFC: rev 1.88
ps [Fri, 16 May 2008 08:30:25 +0000 (08:30 +0000)]
MFC: rev 1.88
Remove a check that didn't allow > 12 byte CDB's to be issued to
ciss.  This should allow volumes > 2TB to work.

16 years agoMFC:
scf [Fri, 16 May 2008 01:22:20 +0000 (01:22 +0000)]
MFC:
Define the size_t type since readpassphrase(3) requires it in its
definition and sys/types.h is not listed within the synopsis of the man
page.

    src/include/readpassphrase.h: rev 1.2 -> 1.3

16 years agoMFC: 1.6
marius [Thu, 15 May 2008 18:50:10 +0000 (18:50 +0000)]
MFC: 1.6

Style(9) fix - use #define<tab> consistently.

16 years agoMFC rev 1.8: When sending packets directly to the DHCP server, use a socket
brooks [Thu, 15 May 2008 01:59:20 +0000 (01:59 +0000)]
MFC rev 1.8: When sending packets directly to the DHCP server, use a socket
and send directly rather than bogusly sending it out as a link layer
broadcast (which fails to be received on some networks).

PR: bin/96018

16 years agoMFC: Add very limited support for the isc-dhclient. It will almostly certaintly
brooks [Thu, 15 May 2008 01:53:46 +0000 (01:53 +0000)]
MFC: Add very limited support for the isc-dhclient. It will almostly certaintly
only work if there's just one interface doing dhcp. This version implements
the same logic as the version in the PR, but uses pgrep to be less verbose.

PR: conf/95905

16 years agoMFC: 1.206 (partial)
marius [Wed, 14 May 2008 21:22:17 +0000 (21:22 +0000)]
MFC: 1.206 (partial)

Use more appropriate maxsize, nsegments and maxsegsize parameters
when creating the parent bus DMA tag. While at it correct the style
and a nearby comment.

16 years agoMFC r1.7:
rpaulo [Wed, 14 May 2008 10:04:17 +0000 (10:04 +0000)]
MFC r1.7:
  Change the check for cpu_high to actually match CPUID 0x06.

  Submitted by: Arthur Hartwig <arthur.hartwig at nokia.com>
  PR: 122878

16 years agoMFC:
mtm [Mon, 12 May 2008 07:37:40 +0000 (07:37 +0000)]
MFC:
o Change the warning dialog for the 'W' command in both the label
  and partition editors to reflect the fact that this is a stand-alone
  application, not sysinstall(8).
o Change an instance of sade(8) refering to itself as sysinstall(8) in
  a confirmation dialog.

16 years agoMFC:
mtm [Mon, 12 May 2008 07:29:03 +0000 (07:29 +0000)]
MFC:
Fix improper use of checkyesno routine.
Noticed by: oliver

16 years agofix stupid typo in runq-fuzz
julian [Mon, 12 May 2008 06:45:37 +0000 (06:45 +0000)]
fix stupid typo in runq-fuzz

16 years agoMFC kern_lockf.c revision 1.64:
dfr [Sun, 11 May 2008 08:53:55 +0000 (08:53 +0000)]
MFC kern_lockf.c revision 1.64:
When blocking on an F_FLOCK style lock request which is upgrading a
shared lock to exclusive, drop the shared lock before deadlock
detection.

16 years agoMFC: Fix a few edge cases with error handling in cpufreq(4)'s CPUFREQ_GET()
jhb [Fri, 9 May 2008 19:03:55 +0000 (19:03 +0000)]
MFC: Fix a few edge cases with error handling in cpufreq(4)'s CPUFREQ_GET()
method.

16 years agoMFC: Enable use of 'tid' for remote targets and use gdb_thread_select()
jhb [Fri, 9 May 2008 18:59:50 +0000 (18:59 +0000)]
MFC: Enable use of 'tid' for remote targets and use gdb_thread_select()
for 'tid' and 'proc' so they provide UI feedback like the 'thread'
command.

16 years agoMFC: Rework how kgdb manages kernel and vmcore files to be a bit more
jhb [Fri, 9 May 2008 18:47:10 +0000 (18:47 +0000)]
MFC: Rework how kgdb manages kernel and vmcore files to be a bit more
gdb-ish.  Specifically, you can now use the 'file' and 'core' commands.
Also, the kernel module stuff now works for remote targets.

16 years agoMFC: Add 'fbsdcoreops_suppress_target' to support kgdb having its own
jhb [Fri, 9 May 2008 18:20:35 +0000 (18:20 +0000)]
MFC: Add 'fbsdcoreops_suppress_target' to support kgdb having its own
coredump target and adjust core dump target's long name and documentation.

16 years agoMFC if_bfe.c rev 1.45 to RELENG_6.
yongari [Wed, 7 May 2008 01:33:01 +0000 (01:33 +0000)]
MFC if_bfe.c rev 1.45 to RELENG_6.
  Don't panic even if bus_dmamap_load(9) was failed. Just return
  ENOBUFS so callers can reuse previous mbuf.

16 years agoMFC(rev.1.25):
hrs [Tue, 6 May 2008 18:07:17 +0000 (18:07 +0000)]
MFC(rev.1.25):
Add AUTHORS section[*] and fix HISTORY section.

Requested by: Dave Yost (original author)[*]
History checked by: The CSRG Archives

16 years agoMFC:
mtm [Tue, 6 May 2008 10:50:51 +0000 (10:50 +0000)]
MFC:
Add a dummynet_enable knob to go with firewall_enable. If this knob
is enabled dummynet(4) is added to the list of required modules.

Discussed on: #freebsd-bugbusters (rwatson, trhodes)
PR: conf/79196

16 years agoMFC rev. 1.328:
mtm [Tue, 6 May 2008 09:45:40 +0000 (09:45 +0000)]
MFC rev. 1.328:
date: 2008/03/06 14:01:10;  author: mtm;  state: Exp;  lines: +1 -1
The rarpd(8) daemon must be instructed to start on all interfaces or a
specific one. Instruct it to listen on all interfaces so that enabling
it in rc.conf(5) works "out of the box."

PR:     conf/121406
Submited by: trasz

16 years agoMFC: Remove the 'add_kld_command' arg from load_kld().
jhb [Mon, 5 May 2008 19:15:38 +0000 (19:15 +0000)]
MFC: Remove the 'add_kld_command' arg from load_kld().

16 years agoMFC: Emit a warning when the network_interfaces variable is not set to AUTO.
brooks [Sun, 4 May 2008 16:15:04 +0000 (16:15 +0000)]
MFC: Emit a warning when the network_interfaces variable is not set to AUTO.

16 years agoMFC: Add error handling for PSEUDO syscalls.
dfr [Sun, 4 May 2008 09:09:29 +0000 (09:09 +0000)]
MFC: Add error handling for PSEUDO syscalls.

PR: 123325

16 years agoMFC: add -f option and other small fixes
simokawa [Fri, 2 May 2008 06:17:16 +0000 (06:17 +0000)]
MFC: add -f option and other small fixes
firewire.8 rev 1.22
firewire.c rev 1.24

16 years agoMFC: A few fixes.
jhb [Thu, 1 May 2008 20:15:01 +0000 (20:15 +0000)]
MFC: A few fixes.
- Increase time we wait for things to settle to 1 millisecond,
  10 microseconds is too short.
- In est_acpi_info(), initialize count.

16 years agoMFC:
scf [Wed, 30 Apr 2008 23:35:46 +0000 (23:35 +0000)]
MFC:
Have the man page catch up with the namespace pollution cleanup that
occurred between 2001-2003.  Thanks to bde for the history lesson[1]
concerning sys/types.h and the many system calls that at one time
(pre-2001) were required by POSIX to include it.

1. http://lists.freebsd.org/pipermail/freebsd-arch/2008-April/008126.html

    src/lib/libc/sys/mkdir.2: rev 1.25 -> 1.26

16 years agoMFC: 1.5
marius [Wed, 30 Apr 2008 11:26:55 +0000 (11:26 +0000)]
MFC: 1.5

- Include <machine/utrap.h> so this header doesn't have an MD
  dependency.
- Make prototypes style(9) compliant.

16 years agoMFC rev 1.278:
brooks [Tue, 29 Apr 2008 20:43:48 +0000 (20:43 +0000)]
MFC rev 1.278:

Delay the global registration of the struct ifnet in if_alloc() until after
we're certain the allocation will entierly succeed.  This fixes a leak in a
fairly unlikely case.

Reported by: vijay singh <vijjus at rocketmail dot com>

16 years agoMFC per ppp profile variable documentation (revs 1.336 and 1.337)
brooks [Tue, 29 Apr 2008 20:34:31 +0000 (20:34 +0000)]
MFC per ppp profile variable documentation (revs 1.336 and 1.337)

PR: conf/121452, conf/122127

16 years agoMFC: Fix a resource leak in the recent fixes for file descriptors >
jhb [Tue, 29 Apr 2008 17:44:00 +0000 (17:44 +0000)]
MFC: Fix a resource leak in the recent fixes for file descriptors >
SHRT_MAX.

16 years agoMFC: Support for the detach packet.
jhb [Mon, 28 Apr 2008 20:48:42 +0000 (20:48 +0000)]
MFC: Support for the detach packet.

16 years agoMFC: sys/netipsec/key.c rev. 1.31,
bz [Mon, 28 Apr 2008 16:19:36 +0000 (16:19 +0000)]
MFC: sys/netipsec/key.c rev. 1.31,
     also apply to sys/netkey/key.c not present in 7.x/8.

  Import change from KAME, rev. 1.362 kame/kame/sys/netkey/key.c

  In case of "new SA", we must check the hard lifetime of the old SA
  to find out if it is not permanent and we can delete it.

  Submitted by:   sakane via gnn

16 years agoRevert, this was supposed to go into HEAD.
stefanf [Sun, 27 Apr 2008 20:43:26 +0000 (20:43 +0000)]
Revert, this was supposed to go into HEAD.

16 years ago- Fix bugs where the value of arithmetic expansion$((...)) was trucated
stefanf [Sun, 27 Apr 2008 20:25:43 +0000 (20:25 +0000)]
- Fix bugs where the value of arithmetic expansion$((...)) was trucated
  to type int.
- Change the type used for arithmetic expansion to intmax_t (ie. 64 bit on all
  currently supported FreeBSD architectures).  SUSv3 requires at least type
  long but allows for larger types.  Other shells (eg. bash, zsh, NetBSD's sh)
  do that too.

PR: 122659
Submitted by: Jaakko Heinonen (minor modifications by me)

16 years agoMFC:
scf [Sun, 27 Apr 2008 17:39:33 +0000 (17:39 +0000)]
MFC:
Capitalize "Eve".  This is the correct form and now matches
calendar.usholiday.

    src/usr.bin/calendar/calendars/calendar.christian: rev 1.10 -> 1.11

16 years agoMFC: 1.61
marius [Sun, 27 Apr 2008 11:36:42 +0000 (11:36 +0000)]
MFC: 1.61

- vx_stop() requires the driver lock to be held.
- Add some missing newlines to messages printed by vx_getlink().

16 years agoBack out the last revision - it shouldn't have been committed and in any
dfr [Sun, 27 Apr 2008 10:57:53 +0000 (10:57 +0000)]
Back out the last revision - it shouldn't have been committed and in any
case its wrong for RELENG_6.

16 years agoUnbreak RELENG_6 build.
oleg [Sat, 26 Apr 2008 19:15:57 +0000 (19:15 +0000)]
Unbreak RELENG_6 build.

PR: misc/123110

16 years agoMFC to RELENG_6:
antoine [Sat, 26 Apr 2008 17:39:56 +0000 (17:39 +0000)]
MFC to RELENG_6:
  Don't allocate the constant array "props" on the stack in wctype.

  PR:             74743
  Submitted by:   knut st. osmundsen
  Approved by:    rwatson (mentor)
  MFC after:      1 month

16 years agoMFC: 1.111
oleg [Fri, 25 Apr 2008 10:35:53 +0000 (10:35 +0000)]
MFC: 1.111

Calculate p.fs.lookup_step correctly. This should prevent zeroing of
w_q_lookup table (used in RED algorithm for (1 - w_q)^t computation).

16 years agoMFC:
oleg [Fri, 25 Apr 2008 10:29:26 +0000 (10:29 +0000)]
MFC:
src/sys/netinet/ip_dummynet.h 1.41
src/sys/netinet/ip_dummynet.c 1.111-1.114
src/sys/netinet/ip_fw_pfil.c 1.26
src/sys/net/if_bridge.c 1.107
src/sys/net/if_ethersubr.c 1.240
src/sbin/ipfw/ipfw.8 1.206

- style(9) cleanup.
- dummynet_io() declaration has changed.
- Alter packet flow inside dummynet and introduce 'fast' mode of dummynet
  operation: allow certain packets to bypass dummynet scheduler. Benefits are:
  -- lower latency: if packet flow does not exceed pipe bandwidth, packets
     will not be (up to tick) delayed (due to dummynet's scheduler granularity).
  -- lower overhead: if packet avoids dummynet scheduler it shouldn't reenter
     ip stack later. Such packets can be fastforwarded.
  -- recursion (which can lead to kernel stack exhaution) eliminated. This fix
     long existed panic, which can be triggered this way:
kldload dummynet
sysctl net.inet.ip.fw.one_pass=0
ipfw pipe 1 config bw 0
for i in `jot 30`; do ipfw add 1 pipe 1 icmp from any to any; done
ping -c 1 localhost
- New sysctl nodes:
  net.inet.ip.dummynet.io_fast - enables 'fast' dummynet io
  net.inet.ip.dummynet.io_pkt - packets passed to dummynet
  net.inet.ip.dummynet.io_pkt_fast - packets avoided dummynet scheduler
  net.inet.ip.dummynet.io_pkt_drop - packets dropped by dummynet
- Workaround p->numbytes overflow, which can result in infinite loop inside
  dummynet module (prerequisite is using queues with "fat" pipe).

PR: kern/113548 kern/121955