122976 Commits

Author SHA1 Message Date
mlaier
96a233ef38 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.
2008-04-12 19:52:13 +00:00
marius
1971796076 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.
2008-04-12 13:41:32 +00:00
marius
2fb6610d1d 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.
2008-04-11 23:41:43 +00:00
cvs2svn
6d7dceedaf This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2008-04-11 10:35:00 +00:00
remko
079ee2e09f 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).
2008-04-11 10:14:19 +00:00
brooks
313bd47a97 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]
2008-04-11 00:18:37 +00:00
delphij
3a4abd3fa6 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
2008-04-10 22:43:46 +00:00
peter
76c7afa7ab MFC: rev 1.205: compile on systems without SCTL_MASK32 2008-04-10 02:45:39 +00:00
peter
c7bd46983f MFC: backport -P (per-cpu) stats for %user/%system/%idle etc. 2008-04-09 19:48:06 +00:00
peter
fe5794c1d5 MFC: record per-cpu stats for %user/%nice/%system/%idle 2008-04-09 19:47:20 +00:00
trhodes
5e91ed3f04 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).
2008-04-08 17:40:43 +00:00
rpaulo
bbc4538871 MFC r1.11:
Add Qualcomm, Inc. ZTE CDMA Technologies MSM to the list of supported
  devices.
2008-04-08 16:39:00 +00:00
rpaulo
693a4fdfbc MFC:
Add Qualcomm ZTE CMDMA MSM modem to the list of supported modems.
2008-04-08 16:36:49 +00:00
jhb
97251c6257 MFC: Explicitly bypass bpf(4) for media test packets during attach. 2008-04-08 14:23:23 +00:00
rpaulo
4aeba63066 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.
2008-04-08 12:35:56 +00:00
flz
cf9ab334e9 Add pkg_check and pkg_sign to ObsoleteFiles.inc. 2008-04-08 09:08:17 +00:00
emaste
43ed987a3b 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.
2008-04-07 14:19:57 +00:00
flz
657a605681 Synchronize pkg_install with HEAD:
- Add pkg_updating,
- Remove pkg_sign,
- Support for 8-CURRENT,
- Style cleanup (__P use),
- ... and much more.
2008-04-07 11:32:01 +00:00
mav
788ab66c9b 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.
2008-04-07 10:33:28 +00:00
syrinx
f146f4a757 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)
2008-04-06 17:49:37 +00:00
bmah
0069fa455a MFC: BTX real mode, tzdata2008b, GNOME 2.22. 2008-04-06 05:34:14 +00:00
cperciva
cbe3b0a530 MFC revision 1.4: Add /boot/devices.hints to the default list of files
which have local modifications merged during upgrading.
2008-04-04 23:25:08 +00:00
cperciva
10e176c6ce 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.
2008-04-04 23:22:49 +00:00
julian
91515fa1c7 MFC: ipfw2.c 1.114
ipfw.8    1.209

Use an explicit argument to format table args as IP addresses.
2008-04-04 18:10:50 +00:00
scottl
429cad3e68 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.
2008-04-04 16:42:17 +00:00
jhb
d7dd67e510 MFC: Make it possible to continue working after calling doadump() manually. 2008-04-03 19:40:58 +00:00
jhb
027c346c97 MFC: Add the 'tid' command to select a thread using a kernel thread ID. 2008-04-03 18:49:05 +00:00
jhb
5cea40fbed 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.
2008-04-03 18:47:05 +00:00
brueffer
cad32d9a71 MFC: rev. 1.6
ARC-1680 is supported.
2008-04-02 16:53:04 +00:00
remko
e7694ccc3f 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
2008-04-01 18:22:37 +00:00
emaste
4581616dd5 Acquire Giant in aac_cam_event for xpt_release_simq. Not necessary with
MPSAFE CAM so not an MFC.
2008-04-01 00:09:29 +00:00
emaste
076d3593ba MFC aac.c r1.126:
Do not recursively acquire aac_io_lock in aac_ioctl_event.
2008-03-31 23:16:05 +00:00
emaste
d98ae2e1a9 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.
2008-03-31 20:11:46 +00:00
emaste
4bcb5fb6b2 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.
2008-03-31 20:03:31 +00:00
emaste
6ab558f96b 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
2008-03-31 19:50:53 +00:00
emaste
b532a21f6a 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
2008-03-31 17:04:10 +00:00
emaste
9572309011 MFC aac.c 1.121:
Correct calculation of aac_sg_tablesize.

  Obtained from:  Adaptec, via driver b11669
2008-03-31 14:44:08 +00:00
kientzle
9e0f2dbfe9 Include Guido's license information from the pattern-matching code. 2008-03-31 06:20:46 +00:00
remko
55a2645084 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)
2008-03-29 13:44:36 +00:00
emaste
88ed128a3a 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
2008-03-28 18:13:38 +00:00
emaste
9c6471edd3 MFC aac.c r1.127
Avoid holding the aac_io_lock over copyout.

  Submitted by: Achim Leubner @ Adaptec.
2008-03-27 20:47:21 +00:00
kib
6d49f1490b 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.
2008-03-27 13:53:52 +00:00
bmah
122f44c907 Fix typo and wording glitch.
Submitted by:	Ben Kaduk
2008-03-27 04:55:06 +00:00
lulf
e887aa30ce MFC Revision 1.27
- Fix a memory leak when re-discovering a gvinum configuration.

Approved by:    pjd (mentor)
2008-03-26 16:33:57 +00:00
emaste
5cfb50446a 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.
2008-03-26 14:46:43 +00:00
emaste
a3a661cbbc MFC aac.c r1.128:
Change spelling and eliminate a typo in comments to reduce diffs with
  Adaptec's vendor driver.
2008-03-26 14:22:22 +00:00
ume
6661549bac MFC 1.31: Change .8s port name restriction to .15s.
This change corresponds to inet.c 1.13.
2008-03-25 13:14:29 +00:00
edwin
92ff549ae8 MFC of tzdata2008b 2008-03-25 03:50:01 +00:00
jkim
e5a00acadf MFC: 1.26
Update list of possible mixer devices.
2008-03-24 17:50:24 +00:00
jkim
ab8e47d7ba 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.
2008-03-24 17:49:34 +00:00