]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years agoUpdate pthread errata note with errata notice.
bmah [Sun, 20 Apr 2008 17:55:48 +0000 (17:55 +0000)]
Update pthread errata note with errata notice.

Mention multicast refcounting kernel panic.

16 years agoMFC to RELENG_6:
antoine [Sun, 20 Apr 2008 16:32:20 +0000 (16:32 +0000)]
MFC to RELENG_6:
  Merge changes from NetBSD on humanize_number.c, 1.8 -> 1.13
  Significant changes:
  - rev. 1.11: Use PRId64 instead of a cast to long long and %lld to print
  an int64_t.
  - rev. 1.12: Fix a bug that humanize_number() produces "1000" where it
  should be "1.0G" or "1.0M".  The bug reported by Greg Troxel.

  PR:             118461
  PR:             102694
  Approved by:    rwatson (mentor)
  Obtained from:  NetBSD
  MFC after:      1 month

16 years agoMFC some small optimizations:
mav [Sun, 20 Apr 2008 11:34:56 +0000 (11:34 +0000)]
MFC some small optimizations:
rev. 1.151: Remove impossible (hk_peer == NULL) check.
rev. 1.152: Remove ng_setisr() call from ng_dequeue().
rev. 1.153: There is no need to erase hook->hk_node before freeing hook.
rev. 1.154: Use new atomic_fetchadd() primitive instead of looping atomic_cmpset().
rev. 1.158: ng_address_hook() microoptimization.

16 years agoMove our ".mcount" bits around a little.
obrien [Fri, 18 Apr 2008 16:06:46 +0000 (16:06 +0000)]
Move our ".mcount" bits around a little.

16 years agoMFC:
emax [Fri, 18 Apr 2008 00:55:03 +0000 (00:55 +0000)]
MFC:

Fix possible buffer overrun on 64-bit arch when generating MAC
address for tap interface.

Reported by: Marc Lorner < marc dot loerner at hob dot de >
Reviewed by: bms
MFC after: 3 days

16 years agoDocument SA-08:05.openssh
delphij [Thu, 17 Apr 2008 19:10:57 +0000 (19:10 +0000)]
Document SA-08:05.openssh

16 years agoMFC if_rl.c, rev 1.174 to RELENG_6.
yongari [Thu, 17 Apr 2008 04:18:29 +0000 (04:18 +0000)]
MFC if_rl.c, rev 1.174 to RELENG_6.
  It seems that RealTek 8129/8139 chip reports invalid length of
  received frame under certain conditions. wpaul said the length
  0xfff0 is special meaning that indicates hardware is in the
  process of copying a packet into host memory. But it seems
  there are other cases that hardware is busy or stuck in bad
  situation even if the received frame length is not 0xfff0.
  To work-around this condition, add a check that verifys that
  recevied frame length is in valid range. If received length is out
  of range reinitialize hardware to recover from stuck condition.

16 years agoMention bzip2 1.0.5 MFC.
delphij [Thu, 17 Apr 2008 01:02:03 +0000 (01:02 +0000)]
Mention bzip2 1.0.5 MFC.

16 years agoMFC: bzip2 1.0.5
delphij [Thu, 17 Apr 2008 00:53:13 +0000 (00:53 +0000)]
MFC: bzip2 1.0.5

16 years agoFix logic error in sshd(8) concerning the handling of failed
cperciva [Thu, 17 Apr 2008 00:00:41 +0000 (00:00 +0000)]
Fix logic error in sshd(8) concerning the handling of failed
attempts to bind ports for X11 forwarding.

Security: FreeBSD-SA-08:05.openssh

16 years agoMFC rev 1.431 menus.c
remko [Wed, 16 Apr 2008 18:50:04 +0000 (18:50 +0000)]
MFC rev 1.431 menus.c

  Remove ftp.hk.super.net, the DNS isn't pointing to anything at the moment.

  I tested this as well as the submitter and couldn't resolve this either,
  since I dont want to "announce" dead mirrors, I'll remove it from the
  list.

  PR:             122567
  Submitted by:   vs
  Approved by:    imp (mentor, implicit for trivial changes)
  MFC after:      1 week

Approved by: imp (mentor, implicit)

16 years agoThis commit was manufactured by cvs2svn to create branch 'RELENG_6'.
cvs2svn [Wed, 16 Apr 2008 09:09:51 +0000 (09:09 +0000)]
This commit was manufactured by cvs2svn to create branch 'RELENG_6'.

16 years agoMFC revs 1.17-1.20, the functional components of which are:
brooks [Tue, 15 Apr 2008 22:37:43 +0000 (22:37 +0000)]
MFC revs 1.17-1.20, the functional components of which are:

1.17:
Allow the characters .-+/ to appear in ppp profile names by folding them
to _ when evaluating ppp_<profile>_nat and ppp_<profile>_mode.  Document
the per-profile variables.

1.18:
Add support for hardwiring ppp sessions to particular devices with new
per-profile variables of the form ppp_<profile>_unit.  No ppp_unit
variable is supported since tying the same unit to more than one profile
won't work.

PR: conf/121452, conf/122127

16 years agoMFC:
emax [Tue, 15 Apr 2008 20:31:14 +0000 (20:31 +0000)]
MFC:

Add rfcomm_pppd_server rc script to allow start rfcomm_pppd(8) in server
mode at boot time. Multiple profiles can be started at the same time.
The whole idea is very similar to the ppp rc script.

Document Bluetooth knobs in rc.conf(5)

Set defaults for the rfcomm_pppd_server rc script

16 years agostyle(9)
obrien [Mon, 14 Apr 2008 18:56:48 +0000 (18:56 +0000)]
style(9)

16 years agoMFC:
mlaier [Sat, 12 Apr 2008 19:52:13 +0000 (19:52 +0000)]
MFC:
  Make ALTQ cope with disappearing interfaces (particularly common with mpd
  and netgraph in gernal).  This also allows to add queues for an interface
  that is not yet existing (you have to provide the bandwidth for the
  interface, however).

  PR: kern/106400, kern/117827

Tested by: Florian Smeets, Boris S.

16 years agoMFC: tlb.h 1.27; cache.c 1.21; cheetah.c 1.6; mp_machdep.c 1.38;
marius [Sat, 12 Apr 2008 13:41:32 +0000 (13:41 +0000)]
MFC: tlb.h 1.27; cache.c 1.21; cheetah.c 1.6; mp_machdep.c 1.38;
     pmap.c 1.171; spitfire.c 1.6; tlb.c 1.9

- Do as the comment in pmap_bootstrap() suggests and flush all non-locked
  TLB entries possibly left over by the firmware and also do so while
  bootstrapping APs.
- Use __FBSDID.

16 years agoMFC: if_dc.c 1.195, 1.194; if_dcreg.h 1.55
marius [Fri, 11 Apr 2008 23:41:43 +0000 (23:41 +0000)]
MFC: if_dc.c 1.195, 1.194; if_dcreg.h 1.55

- Fix function prototype for device_shutdown method.
- Const'ify the dc_devs array.
- Correct the maxsize parameter when creating the mbufs busdma tag to
  reflect the actual requirement of dc(4).
- Move the KASSERT in dc_newbuf() to the right spot.
- Also convert the TX side to take advantage of bus_dmamap_load_mbuf_sg(9).
- Move the comment regarding dc_start_locked() to the right spot.

16 years agoThis commit was manufactured by cvs2svn to create branch 'RELENG_6'.
cvs2svn [Fri, 11 Apr 2008 10:35:00 +0000 (10:35 +0000)]
This commit was manufactured by cvs2svn to create branch 'RELENG_6'.

16 years agoMFC rev 1.134 ObsoleteFiles.inc
remko [Fri, 11 Apr 2008 10:14:19 +0000 (10:14 +0000)]
MFC rev 1.134 ObsoleteFiles.inc

  Document the removal data for usbdevs.h and usbdevs_data.h,
  sort the entry into it's correct place (behind 200407XX before
  200406XX because we have an explicit date here).

  PR:             misc/122098
  Submitted by:   "John Hein" <jhein@timing.com>
  MFC after:      3 days

Approved by: imp (mentor, implicit)
PR: misc/122099 (should have been this PR).

16 years agoMFC rev 1.19
brooks [Fri, 11 Apr 2008 00:18:37 +0000 (00:18 +0000)]
MFC rev 1.19

Add a new function is_default_interface() which determines if this
interface is one with the default route (or there isn't one).  Use it to
decide if we should adjust the default route and /etc/resolv.conf.

Fix the delete of the default route.  The if statement was totally bogus
and the delete only worked due to a typo. [1]

Reported by:    Jordan Coleman <jordan at JordanColeman dot com> [1]

16 years agoMFC revision 1.22
delphij [Thu, 10 Apr 2008 22:43:46 +0000 (22:43 +0000)]
MFC revision 1.22
date: 2008/03/07 00:01:19;  author: delphij;  state: Exp;  lines: +61 -68
Merge revisions 1.10 and 1.11 from DragonFly:

 - Use real getopt() handling instead of the hand-rolled and
   IOCCC-worthy "Micro getopt()" macros, plus clean up to the
   option handling code:
    * Sort the options in the switch statement;
    * Plug piddling memory leaks when processing repeated options
      by freeing strings before allocating them for a second time;
    * Die with a fatal error if the requested report file cannot
      be opened for appending;
    * Don't call init() before usage() (to prevent the usage
      message being mangled by changes to the terminal settings;)
 - Clean up the usage message, both in usage() and in the main
   program comment, both stylistically (sort and combine options)
   and for accuracy (following the manual page, make note of the -s
   and -S flags, and use the term 'send' instead of 'say' to reduce
   confusion (SAY is the name of a command for output to the user,
   not the connection.))

Obtained from:  DragonFly

16 years agoMFC: rev 1.205: compile on systems without SCTL_MASK32
peter [Thu, 10 Apr 2008 02:45:39 +0000 (02:45 +0000)]
MFC: rev 1.205: compile on systems without SCTL_MASK32

16 years agoMFC: backport -P (per-cpu) stats for %user/%system/%idle etc.
peter [Wed, 9 Apr 2008 19:48:06 +0000 (19:48 +0000)]
MFC: backport -P (per-cpu) stats for %user/%system/%idle etc.

16 years agoMFC: record per-cpu stats for %user/%nice/%system/%idle
peter [Wed, 9 Apr 2008 19:47:20 +0000 (19:47 +0000)]
MFC: record per-cpu stats for %user/%nice/%system/%idle

16 years agoMFC revisions 1.56 and 1.57:
trhodes [Tue, 8 Apr 2008 17:40:43 +0000 (17:40 +0000)]
MFC revisions 1.56 and 1.57:

Bring the DIAGNOSTICS section in ed.4 closer to reality by removing missing
diagnostic messages and adding a few found in the code.

PR: 51891

Properly Xref device.hints(5).

16 years agoMFC r1.11:
rpaulo [Tue, 8 Apr 2008 16:39:00 +0000 (16:39 +0000)]
MFC r1.11:
  Add Qualcomm, Inc. ZTE CDMA Technologies MSM to the list of supported
  devices.

16 years agoMFC:
rpaulo [Tue, 8 Apr 2008 16:36:49 +0000 (16:36 +0000)]
MFC:
  Add Qualcomm ZTE CMDMA MSM modem to the list of supported modems.

16 years agoMFC: Explicitly bypass bpf(4) for media test packets during attach.
jhb [Tue, 8 Apr 2008 14:23:23 +0000 (14:23 +0000)]
MFC: Explicitly bypass bpf(4) for media test packets during attach.

16 years agoMFC r1.97:
rpaulo [Tue, 8 Apr 2008 12:35:56 +0000 (12:35 +0000)]
MFC r1.97:
  Sync with rev 1.63 of NetBSD's ums.c:
       If a mouse has both a wheel and a Z direction we report both.
       XXX Due to tradition the wheel is reported as the Z direction (and the Z
       direction as W).
       Now Apple's Mighty Mouse is fully supported, except the X11 mouse driver
       doesn't know what to do with the new coordinate.

16 years agoAdd pkg_check and pkg_sign to ObsoleteFiles.inc.
flz [Tue, 8 Apr 2008 09:08:17 +0000 (09:08 +0000)]
Add pkg_check and pkg_sign to ObsoleteFiles.inc.

16 years agoMFC aac.c 1.137:
emaste [Mon, 7 Apr 2008 14:19:57 +0000 (14:19 +0000)]
MFC aac.c 1.137:
  Calling RequestSupplementAdapterInfo before RequestAdapterInfo appears
  to trip a bug causing the latter to return a zeroed struct
  aac_adapter_info.  This causes two issues.  One is cosmetic only --
  a verbose boot prints information about the controller, and shows all
  zero:

  aac0: Unknown processor 0MHz, 0MB memory (0MB cache, 0MB execution),
    unknown battery platform

  The second problem is that the firmware version information is stored
  away for aac_rev_check, for userland tools (like aaccli) to query via
  the FSACTL_MINIPORT_REV_CHECK and FSACTL_LNX_MINIPORT_REV_CHECK ioctls.
  When aaccli encounters this issue it prints

  Command Error: <The current AFAAPI.DLL is too old to work with the
    current controller software.>

  Move the RequestSupplementAdapterInfo call after RequestAdapterInfo,
  which seems to fix both problems.

16 years agoSynchronize pkg_install with HEAD:
flz [Mon, 7 Apr 2008 11:32:01 +0000 (11:32 +0000)]
Synchronize pkg_install with HEAD:

- Add pkg_updating,
- Remove pkg_sign,
- Support for 8-CURRENT,
- Style cleanup (__P use),
- ... and much more.

16 years agoMFC ng_pptpgre.c rev. 1.41-1.42
mav [Mon, 7 Apr 2008 10:33:28 +0000 (10:33 +0000)]
MFC ng_pptpgre.c rev. 1.41-1.42
Rewrite node to support multiple hooks, alike to ng_l2tp, to use one pair
of pptpgre and ksocket nodes for all calls between two peers. This patch
modifies node's API by adding new "session_%04x" hook names support, while
keeping backward compatibility.

16 years agoMFC:
syrinx [Sun, 6 Apr 2008 17:49:37 +0000 (17:49 +0000)]
MFC:
src/contrib/bsnmp/snmpd/main.c: Revision 1.1.1.14

Vendor patch: Prevent bsnmpd from dumping core when a module's init hook
returns an error.

Approved by:    bz (mentor)

16 years agoMFC: BTX real mode, tzdata2008b, GNOME 2.22.
bmah [Sun, 6 Apr 2008 05:34:14 +0000 (05:34 +0000)]
MFC:  BTX real mode, tzdata2008b, GNOME 2.22.

16 years agoMFC revision 1.4: Add /boot/devices.hints to the default list of files
cperciva [Fri, 4 Apr 2008 23:25:08 +0000 (23:25 +0000)]
MFC revision 1.4: Add /boot/devices.hints to the default list of files
which have local modifications merged during upgrading.

16 years agoMFC revisions 1.13, 1.14: Don't try to compute the SHA256 hashes of
cperciva [Fri, 4 Apr 2008 23:22:49 +0000 (23:22 +0000)]
MFC revisions 1.13, 1.14: Don't try to compute the SHA256 hashes of
files which don't exist; and fix the handling of symlinks to
dynamically linked libraries.

16 years agoMFC: ipfw2.c 1.114
julian [Fri, 4 Apr 2008 18:10:50 +0000 (18:10 +0000)]
MFC: ipfw2.c   1.114
     ipfw.8    1.209

Use an explicit argument to format table args as IP addresses.

16 years agoMerge rev 1.20:
scottl [Fri, 4 Apr 2008 16:42:17 +0000 (16:42 +0000)]
Merge rev 1.20:
  Fix a buffer overflow in the processing of various SCSI commands.  This
  likely fixes a great number of weird problems that have been reported
  with this driver.

16 years agoMFC: Make it possible to continue working after calling doadump() manually.
jhb [Thu, 3 Apr 2008 19:40:58 +0000 (19:40 +0000)]
MFC: Make it possible to continue working after calling doadump() manually.

16 years agoMFC: Add the 'tid' command to select a thread using a kernel thread ID.
jhb [Thu, 3 Apr 2008 18:49:05 +0000 (18:49 +0000)]
MFC: Add the 'tid' command to select a thread using a kernel thread ID.

16 years agoMFC: Initialize list of kld's correctly when there are no kld's and catch
jhb [Thu, 3 Apr 2008 18:47:05 +0000 (18:47 +0000)]
MFC: Initialize list of kld's correctly when there are no kld's and catch
errors in kgdb_parse() so it returns 0 for invalid expressions.  This
fixes the kld loading for 6.x and 7.x.

16 years agoMFC: rev. 1.6
brueffer [Wed, 2 Apr 2008 16:53:04 +0000 (16:53 +0000)]
MFC: rev. 1.6

ARC-1680 is supported.

16 years agoMFC rev 1.212 ata-chipset.c
remko [Tue, 1 Apr 2008 18:22:37 +0000 (18:22 +0000)]
MFC rev 1.212 ata-chipset.c
MFC rev 1.83 ata-pci.h

  Add proper support for the SATA/AHCI part of IXP[67]00

Approved by:    imp (mentor, implicit), sos

16 years agoAcquire Giant in aac_cam_event for xpt_release_simq. Not necessary with
emaste [Tue, 1 Apr 2008 00:09:29 +0000 (00:09 +0000)]
Acquire Giant in aac_cam_event for xpt_release_simq.  Not necessary with
MPSAFE CAM so not an MFC.

16 years agoMFC aac.c r1.126:
emaste [Mon, 31 Mar 2008 23:16:05 +0000 (23:16 +0000)]
MFC aac.c r1.126:

  Do not recursively acquire aac_io_lock in aac_ioctl_event.

16 years agoMFC aac_cam.c 1.30:
emaste [Mon, 31 Mar 2008 20:11:46 +0000 (20:11 +0000)]
MFC aac_cam.c 1.30:

  Merge from Adaptec a 64 bit fix and a workaround for luns != 0
  returning CAM_SEL_TIMEOUT on SAS controllers, which prevented
  passthrough devices from being created.

16 years agoMFC aac.c 1.125, aac_pci.c 1.66, aacreg.h:1.24:
emaste [Mon, 31 Mar 2008 20:03:31 +0000 (20:03 +0000)]
MFC aac.c 1.125, aac_pci.c 1.66, aacreg.h:1.24:

  Add family support to allow the driver to attach to new devices that
  share the same interface.

16 years agoMFC aac.c 1.130:
emaste [Mon, 31 Mar 2008 19:50:53 +0000 (19:50 +0000)]
MFC aac.c 1.130:
  Restore creation of passthrough devices with newer controller firmware by
  putting the correct size in the fib header.  Presumably the older firmware
  silently ignored a bad size field.

  (This change tested with a 3805 controller.  Passthrough devices were
  created when running firmware build 12814, but not 15323 or later.  With
  this change they're created for both old and new firmware versions.)

  Submitted by: Adaptec

16 years agoMFC aac.c 1.131:
emaste [Mon, 31 Mar 2008 17:04:10 +0000 (17:04 +0000)]
MFC aac.c 1.131:
  Diff reduction to Adaptec driver build 15317 (refactoring and code shuffling):

  - Resource allocation in aac_alloc (moved from from aac_init)
  - Interrupt setup in aac_setup_intr (from aac_attach)
  - Container probing in aac_get_container_info (from aac_startup and
    aac_handle_aif)
  - Firmware status check moved to aac_check_firmware from aac_init

16 years agoMFC aac.c 1.121:
emaste [Mon, 31 Mar 2008 14:44:08 +0000 (14:44 +0000)]
MFC aac.c 1.121:
  Correct calculation of aac_sg_tablesize.

  Obtained from:  Adaptec, via driver b11669

16 years agoInclude Guido's license information from the pattern-matching code.
kientzle [Mon, 31 Mar 2008 06:20:46 +0000 (06:20 +0000)]
Include Guido's license information from the pattern-matching code.

16 years agoMFC rev 1.84 route.c
remko [Sat, 29 Mar 2008 13:44:36 +0000 (13:44 +0000)]
MFC rev 1.84 route.c

  In route.c in newroute() there's a call to exit(0) if the command was
  'get'. Since rtmsg() always gets called and returns 0 on success and -1
  on failure, it's possible to exit with a suitable exit code by calling
  exit(ret != 0) instead, as is done at the end of newroute().

  PR: bin/112303
  Submitted by: bruce@cran.org.uk
  MFC after: 1 week

Approved by: imp (mentor, implicit)

16 years agoMFC aac.c r1.133:
emaste [Fri, 28 Mar 2008 18:13:38 +0000 (18:13 +0000)]
MFC aac.c r1.133:
  Correct data direction flags in aac_bio_command() in the
  !AAC_FLAGS_RAW_IO && AAC_FLAGS_SG_64BIT case.

  Submitted by:   Adaptec

16 years agoMFC aac.c r1.127
emaste [Thu, 27 Mar 2008 20:47:21 +0000 (20:47 +0000)]
MFC aac.c r1.127

  Avoid holding the aac_io_lock over copyout.

  Submitted by: Achim Leubner @ Adaptec.

16 years agoMFC
kib [Thu, 27 Mar 2008 13:53:52 +0000 (13:53 +0000)]
MFC
rev. 1.682 of sys/amd64/amd64/machdep.c
rev. 1.16  of sys/amd64/ia32/ia32_signal.c
rev. 1.33  of sys/amd64/linux32/linux32_sysvec.c
rev. 1.666 of sys/i386/i386/machdep.c
rev. 1.152 of sys/i386/linux/linux_sysvec.c
rev. 1.39  of sys/i386/svr4/svr4_machdep.c
rev. 1.402 of sys/pc98/pc98/machdep.c

Modify the signal handler frame setup code to clear the DF {e,r}flags
bit on the amd64/i386 for the signal handlers.

16 years agoFix typo and wording glitch.
bmah [Thu, 27 Mar 2008 04:55:06 +0000 (04:55 +0000)]
Fix typo and wording glitch.

Submitted by: Ben Kaduk

16 years agoMFC Revision 1.27
lulf [Wed, 26 Mar 2008 16:33:57 +0000 (16:33 +0000)]
MFC Revision 1.27
  - Fix a memory leak when re-discovering a gvinum configuration.

Approved by:    pjd (mentor)

16 years agoMFC aac.c r1.123:
emaste [Wed, 26 Mar 2008 14:46:43 +0000 (14:46 +0000)]
MFC aac.c r1.123:
  Dequeue all events in aac_release_command (instead of just one)
  so that there's no risk of them getting stranded.

16 years agoMFC aac.c r1.128:
emaste [Wed, 26 Mar 2008 14:22:22 +0000 (14:22 +0000)]
MFC aac.c r1.128:
  Change spelling and eliminate a typo in comments to reduce diffs with
  Adaptec's vendor driver.

16 years agoMFC 1.31: Change .8s port name restriction to .15s.
ume [Tue, 25 Mar 2008 13:14:29 +0000 (13:14 +0000)]
MFC 1.31: Change .8s port name restriction to .15s.
This change corresponds to inet.c 1.13.

16 years agoMFC of tzdata2008b
edwin [Tue, 25 Mar 2008 03:50:01 +0000 (03:50 +0000)]
MFC of tzdata2008b

16 years agoMFC: 1.26
jkim [Mon, 24 Mar 2008 17:50:24 +0000 (17:50 +0000)]
MFC: 1.26

Update list of possible mixer devices.

16 years agoMFC: 1.24-1.26
jkim [Mon, 24 Mar 2008 17:49:34 +0000 (17:49 +0000)]
MFC: 1.24-1.26

- Check device masks and bypass printing headers if capable device does
not exist.  /etc/rc.d/mixer tried to restore non-existent recording
source because /var/var/db/mixer*-state contains '=rec' for example.
- Remove hardcoded mixer2 and mixer3 and do the right thing.
- Replace getopt(3) with hand-rolled option parser.  It was not able
to handle 'mixer -rec mic' although it is a valid command.
- Make '-s' and '-S' mutualy exclusive as mixer(8) says.
- Do not re-read recording source unless it has been modified.
- Clean up code and fix style(9) nits.

16 years agoMFC: 1.80-1.83
jkim [Mon, 24 Mar 2008 17:23:25 +0000 (17:23 +0000)]
MFC: 1.80-1.83

- Prefer clock_gettime(2) over gettimeofday(2) and use CLOCK_MONOTONIC
as it is only used to track elapsed time.[1]
- Fix compiler warnings and style(9) bugs.

[1] CLOCK_MONOTONIC is used on here because CLOCK_MONOTONIC_FAST is
unimplemented on RELENG_6.

16 years agoMFC:
emax [Mon, 24 Mar 2008 16:26:38 +0000 (16:26 +0000)]
MFC:

Separate SDP parameters data structures for the BNEP based profiles.

Generalize Service Availability SDP parameter creation.

Add mandatory "security description" SDP parameter to the PANU profile

Pointed-out by: Iain Hibbert < plunky at rya-online dot net >

16 years agoMFC rev 1.73 newfs.8
remko [Mon, 24 Mar 2008 10:46:00 +0000 (10:46 +0000)]
MFC rev 1.73 newfs.8

  Replace reference from vinum.8 to gvinum.8, it was advised in the PR to
  replace this with vinum.4, but that's the kernel interface manual, which
  is not appropriate in my understanding.  I think that gvinum is a suitable
  replacement for this.

  PR:             docs/121938
  Submitted by:   "Federico" <federicogalvezdurand at yahoo dot com>
  MFC after:      3 days

16 years agoMFC rev 1.9 drm_pciids.h
remko [Mon, 24 Mar 2008 10:43:41 +0000 (10:43 +0000)]
MFC rev 1.9 drm_pciids.h
MFC rev 1.7 i915_dma.c

  Add the i915 GME device to DRM.

  PR:             kern/121808
  Submitted by:   Volker Werth <volker at vwsoft dot com>
  Approved by:    imp (mentor, implicit for trivial changes)
  MFC after:      3 days

Approved by: imp (mentor, implicit)

16 years agoMFC: Repair handling of X11BASE and LOCALBASE
kris [Sat, 22 Mar 2008 15:13:26 +0000 (15:13 +0000)]
MFC: Repair handling of X11BASE and LOCALBASE

16 years agoMFC: Use the SMAP data from the loader if it is provided.
jhb [Fri, 21 Mar 2008 15:40:33 +0000 (15:40 +0000)]
MFC: Use the SMAP data from the loader if it is provided.

16 years agoMFC: Add constants for the different memory types in the SMAP table and
jhb [Fri, 21 Mar 2008 15:34:39 +0000 (15:34 +0000)]
MFC: Add constants for the different memory types in the SMAP table and
use the SMAP types and constants from <machine/pc/bios.h> in the boot code.

16 years agoMFC of 1.48
edwin [Thu, 20 Mar 2008 11:27:15 +0000 (11:27 +0000)]
MFC of 1.48

Add projects-all collection to cvs-supfile

PR: misc/121680
Submitted by: "Philip M. Gollucci" <pgollucci@p6m7g8.com>

16 years agoMFC:
mtm [Thu, 20 Mar 2008 10:53:18 +0000 (10:53 +0000)]
MFC:
The check for errors from the mount command did not work as
intended because another command (echo) is executed between
the mount command and the check.

Reported by: Sergey Baturov <sergey@toor.org.ru>

16 years agoMFC:
brueffer [Thu, 20 Mar 2008 08:59:04 +0000 (08:59 +0000)]
MFC:

Use a standard section 4 SYNOPSIS.

16 years agoMFC: rev. 1.4 + 1.5
brueffer [Thu, 20 Mar 2008 08:34:24 +0000 (08:34 +0000)]
MFC: rev. 1.4 + 1.5

Correct bpf data-link type.

16 years agoMFC: rev. 1.23
brueffer [Thu, 20 Mar 2008 08:15:03 +0000 (08:15 +0000)]
MFC: rev. 1.23

Device counts are long gone.

16 years agoMFC: rev. 1.18
brueffer [Thu, 20 Mar 2008 08:11:24 +0000 (08:11 +0000)]
MFC: rev. 1.18

Fix AUTHORS formatting.

16 years agoMFC: rev. 1.29
brueffer [Thu, 20 Mar 2008 08:09:07 +0000 (08:09 +0000)]
MFC: rev. 1.29

Device counts are long gone, also remove the outdated FILES section.

16 years agoMFC: rev. 1.62
brueffer [Thu, 20 Mar 2008 08:04:48 +0000 (08:04 +0000)]
MFC: rev. 1.62

In the description of the password field, -w was meant, not the
nonexistant -p flag.

16 years agoMFC: Relax the BIOS/OS sempahore handoff code to workaround different hard
jhb [Wed, 19 Mar 2008 16:39:07 +0000 (16:39 +0000)]
MFC: Relax the BIOS/OS sempahore handoff code to workaround different hard
hangs on boot and shutdown.

16 years agoMFC: Use a runtime mask for the PhysBase and PhysMask fields in variable
jhb [Wed, 19 Mar 2008 16:37:24 +0000 (16:37 +0000)]
MFC: Use a runtime mask for the PhysBase and PhysMask fields in variable
sized MTRR registers.

16 years agoMFC: Break up the logic in the mem_drvinit routines.
jhb [Wed, 19 Mar 2008 16:33:58 +0000 (16:33 +0000)]
MFC: Break up the logic in the mem_drvinit routines.

16 years agoMFC: Minimize diffs with i686_mem.c.
jhb [Wed, 19 Mar 2008 16:31:32 +0000 (16:31 +0000)]
MFC: Minimize diffs with i686_mem.c.

16 years agoMFC: Add constants for the various fields in MTRR registers and apply
jhb [Wed, 19 Mar 2008 16:29:07 +0000 (16:29 +0000)]
MFC: Add constants for the various fields in MTRR registers and apply
style(9).  No functional changes.

16 years agoMFC: explicitate newpacket size.
piso [Wed, 19 Mar 2008 11:50:45 +0000 (11:50 +0000)]
MFC: explicitate newpacket size.

Bug pointed out by: many
Pointy hat to: me :(

16 years agoMFC icsphy(4) to RELENG_6.
yongari [Wed, 19 Mar 2008 01:11:39 +0000 (01:11 +0000)]
MFC icsphy(4) to RELENG_6.
icsphy(4) is required to support PHYs found on Xbox and VIA Rhine
ethernet controllers.

PR: kern/121459

16 years agoMFC: Use real moder to invoke BIOS routines rather than virtual 86 mode.
jhb [Tue, 18 Mar 2008 17:44:28 +0000 (17:44 +0000)]
MFC: Use real moder to invoke BIOS routines rather than virtual 86 mode.

16 years agoMFC:
mav [Tue, 18 Mar 2008 17:39:42 +0000 (17:39 +0000)]
MFC:
Improve apply callback error reporting:
Before this patch callback returned result of the last finished call chain.
Now it returns last nonzero result from all call chain results in this request.

As soon as this improvement gives reliable error reporting, it is now possible
to remove dirty workaround in ng_socket, made to return ENOBUFS error statuses
of request-response operations. That workaround was responsible for returning
ENOBUFS errors to completely unrelated requests working at the same time
on socket.

16 years agoMFC rev. 1.25
mav [Tue, 18 Mar 2008 17:33:03 +0000 (17:33 +0000)]
MFC rev. 1.25
Add session ID hashing to speedup incoming packets dispatch in case
of many connections working via the same tunnel. For example, in case
of full "client <-> LAC <-> LNS" setup.

16 years agoMFC Revision 1.25:
piso [Tue, 18 Mar 2008 14:39:05 +0000 (14:39 +0000)]
MFC Revision 1.25:
Don't abuse stack space while in kernel land, use heap instead.

PR: kern/118432

16 years agoMFC if_bfe.c rev 1.44, if_bfereg.h rev 1.11 to RELENG_6:
yongari [Tue, 18 Mar 2008 02:17:36 +0000 (02:17 +0000)]
MFC if_bfe.c rev 1.44, if_bfereg.h rev 1.11 to RELENG_6:
  Fix link state handling in bfe(4).
   o conversion to callout(9) API.
   o add a missing driver lock in bfe_ifmedia_sts().
   o use our callout to drive watchdog timer.
   o restart Tx routine if pending queued packets are present in
     watchdog handler.
   o unarm watchdog timer only if there are no queued packets.
   o don't blindly reset phy and let phy driver handle link change
     request in bfe_init_locked().
   o return the status of mii_mediachg() to caller in
     bfe_ifmedia_upd(). Previously it always returned 0 to caller.
   o add check for IFF_DRV_RUNNING flag as well as IFF_DRV_OACTIVE
     in bfe_start_locked().
   o implement miibus_statchg method that keeps track of current
     link state changes as well as negotiated speed/duplex/
     flow-control configuration.
     Reprogram MAC to appropriate duplex state. Flow-control
     configuration was also implemented but commented out at the
     moment. The flow-control configuration will be enabled again
     after we have general flow-control framework in mii layer.

16 years agoMFC if_lge.c rev 1.53 to RELENG_6:
yongari [Tue, 18 Mar 2008 02:01:21 +0000 (02:01 +0000)]
MFC if_lge.c rev 1.53 to RELENG_6:
  Plug memory leak in jumbo buffer allocation failure path.
  Patch in the PR was modified to check active jumbo buffers in use
  and other possible jumbo buffer leak.

  Jumbo buffer usage in lge(4) still wouldn't be reliable due to lack
  of driver lock in local jumbo buffer allocator. Either introduce
  a new lock to protect jumbo buffer or switch to UMA backed page
  allocator for jumbo frame is required.

  I've removed informational device_printf in lge_free_jumbo_mem as
  lge_dev member variable in softc does not exist on RELENG_6.
  if_printf can't be used as sc->lge_ifp could be NULL.

  PR: kern/78072

16 years agoMFC: if_msk.c 1.30, if_msk.c 1.31 to RELENG_6
yongari [Tue, 18 Mar 2008 01:33:47 +0000 (01:33 +0000)]
MFC: if_msk.c 1.30, if_msk.c 1.31 to RELENG_6
  To overcome hardware checksum offload bug msk(4) used to compute
  TCP/UDP checksum in driver for short frames. For frames that requires
  hardware VLAN tag insertion, the checksum offload trick does not
  work due to changes of checksum offset in mbuf after the VLAN tag.

  Disable hardware checksum offload for VLAN interface to fix the bug.

16 years agoMFC: if_msk.c 1.29, if_mskreg.h 1.12 to RELENG_6
yongari [Tue, 18 Mar 2008 01:27:15 +0000 (01:27 +0000)]
MFC: if_msk.c 1.29, if_mskreg.h 1.12 to RELENG_6
  Workaround GMAC hardware hang of Yukon II on the receipt of pause
  frames. This bug seems to happen on certain hardware model/revision
  (e.g. 88E8053) but it's not identified which hardwares are affected.
  Revision 1.4 of if_mskreg.h was not enough to workaround the bug.
  To workaround it, inrease GMAC FIFO threshold by one FIFO word to
  flush received pause frames.

16 years agoMFC:
emax [Tue, 18 Mar 2008 00:29:26 +0000 (00:29 +0000)]
MFC:

Add support for the NAP, GN and PANU profiles to the sdpd(8).
It should be mentioned that a somewhat similar patch was
submitted by Rako < rako29 at gmail dot com >

16 years agoMFC:
emax [Tue, 18 Mar 2008 00:26:01 +0000 (00:26 +0000)]
MFC:

Add structures to hold SDP parameters for the NAP, GN and PANU profiles.
It should be mentioned that a somewhat similar patch was submitted by
Rako < rako29 at gmail dot com >

16 years agoMFC r1.71:
rpaulo [Mon, 17 Mar 2008 19:57:21 +0000 (19:57 +0000)]
MFC r1.71:
 Some PIIX4 chipsets need to be told to generate Stop Breaks by
 setting
 the appropriate bit in the DEVACTB register.
 This change allows the C2 state on those systems to work as expected.

 Reviewed by:    njl
 Submitted by:   Andriy Gapon <avg at icyb.net.ua>

16 years agoMFC to RELENG_6
antoine [Mon, 17 Mar 2008 19:08:32 +0000 (19:08 +0000)]
MFC to RELENG_6
  - Make Disk_Names() behave as documented in libdisk(3): return an array
  of disk names, where you must free each pointer, as well as the array
  by hand. [1]
  - Destaticize "disks" in Disk_Names, it has no reasons to be static.

  PR:             kern/96077 [1]
  PR:             kern/114110 [1]
  MFC after:      1 month
  Approved by:    rwatson (mentor)

16 years agoMFC: Use cpu_feature2 and don't free anything in detach.
jhb [Mon, 17 Mar 2008 18:31:06 +0000 (18:31 +0000)]
MFC: Use cpu_feature2 and don't free anything in detach.