122920 Commits

Author SHA1 Message Date
jhb
303513927d 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.
2008-03-21 15:34:39 +00:00
edwin
d3daa7de75 MFC of 1.48
Add projects-all collection to cvs-supfile

PR:		misc/121680
Submitted by:	"Philip M. Gollucci" <pgollucci@p6m7g8.com>
2008-03-20 11:27:15 +00:00
mtm
5ddfaf5df3 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>
2008-03-20 10:53:18 +00:00
brueffer
846407dc67 MFC:
Use a standard section 4 SYNOPSIS.
2008-03-20 08:59:04 +00:00
brueffer
da41f15760 MFC: rev. 1.4 + 1.5
Correct bpf data-link type.
2008-03-20 08:34:24 +00:00
brueffer
a0bad91eda MFC: rev. 1.23
Device counts are long gone.
2008-03-20 08:15:03 +00:00
brueffer
d0970977c2 MFC: rev. 1.18
Fix AUTHORS formatting.
2008-03-20 08:11:24 +00:00
brueffer
d712071dc1 MFC: rev. 1.29
Device counts are long gone, also remove the outdated FILES section.
2008-03-20 08:09:07 +00:00
brueffer
f8c106c5cd MFC: rev. 1.62
In the description of the password field, -w was meant, not the
nonexistant -p flag.
2008-03-20 08:04:48 +00:00
jhb
1d8e189fb2 MFC: Relax the BIOS/OS sempahore handoff code to workaround different hard
hangs on boot and shutdown.
2008-03-19 16:39:07 +00:00
jhb
b1769b65e6 MFC: Use a runtime mask for the PhysBase and PhysMask fields in variable
sized MTRR registers.
2008-03-19 16:37:24 +00:00
jhb
144b6820dc MFC: Break up the logic in the mem_drvinit routines. 2008-03-19 16:33:58 +00:00
jhb
79661bdbd0 MFC: Minimize diffs with i686_mem.c. 2008-03-19 16:31:32 +00:00
jhb
aca442d36a MFC: Add constants for the various fields in MTRR registers and apply
style(9).  No functional changes.
2008-03-19 16:29:07 +00:00
piso
fddf8af542 MFC: explicitate newpacket size.
Bug pointed out by: many
Pointy hat to: me :(
2008-03-19 11:50:45 +00:00
yongari
8e897decf1 MFC icsphy(4) to RELENG_6.
icsphy(4) is required to support PHYs found on Xbox and VIA Rhine
ethernet controllers.

PR:	kern/121459
2008-03-19 01:11:39 +00:00
jhb
9fd1df4b9a MFC: Use real moder to invoke BIOS routines rather than virtual 86 mode. 2008-03-18 17:44:28 +00:00
mav
56502c9d89 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.
2008-03-18 17:39:42 +00:00
mav
fcb865fb9a 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.
2008-03-18 17:33:03 +00:00
piso
4d4b3aeee7 MFC Revision 1.25:
Don't abuse stack space while in kernel land, use heap instead.

PR:	kern/118432
2008-03-18 14:39:05 +00:00
yongari
2f69c362af 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.
2008-03-18 02:17:36 +00:00
yongari
fda0556ed2 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
2008-03-18 02:01:21 +00:00
yongari
78d61a1d36 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.
2008-03-18 01:33:47 +00:00
yongari
d9c3b930aa 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.
2008-03-18 01:27:15 +00:00
emax
08f482b2ee 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 >
2008-03-18 00:29:26 +00:00
emax
36d31a4160 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 >
2008-03-18 00:26:01 +00:00
rpaulo
4bd774d0b3 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>
2008-03-17 19:57:21 +00:00
antoine
4393c6109b 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)
2008-03-17 19:08:32 +00:00
jhb
ee63d7e78a MFC: Use cpu_feature2 and don't free anything in detach. 2008-03-17 18:31:06 +00:00
jhb
617495c5d4 MFC: Calculate the number of pages the GATT spans instead of assuming it
always spans 33 pages.
2008-03-17 18:27:23 +00:00
jhb
8dbb58f339 MFC: Add support for the BCM5722. 2008-03-17 18:24:04 +00:00
jhb
3ca0754306 MFC: Force an explicit dependency on opt_global.h for all module object
files.
2008-03-17 18:12:13 +00:00
jhb
61adc24114 MFC: Add a 'c7' CPUTYPE for VIA C7 CPUs. 2008-03-17 18:08:45 +00:00
jhb
0e5c8de59c MFC: Display the correct /boot.config file contents after parsing it. 2008-03-17 18:04:59 +00:00
jhb
dec5cd6ff9 MFC: Fail attempts to use file descriptors larger than SHRT_MAX. 2008-03-17 17:42:26 +00:00
jhb
9c82fd4f0f MFC: Remove the 'needbounce' variable from _bus_dmamap_load_buffer(). 2008-03-17 17:33:32 +00:00
gshapiro
95623d189d MFC: Switch libmilter from select(2) to poll(2) so milters are not limited
by the size of FD_SETSIZE.

     PR:             118824
     Submitted by:   vsevolod
2008-03-15 20:55:37 +00:00
alfred
4ca8b29bef In calcru, we make sure the thread's state is correct, however we
do not emit the thread or proc information making debugging this
assertion difficult.

Emit the thread/proc that caused the KASSERT to fail to ease debugging.

Note: this assert does not exist in later branches of FreeBSD.
2008-03-15 03:20:53 +00:00
emax
37ed69d618 MFC:
Update usage() - add new -D option. While I'm here, update copyright
information and license formatting
2008-03-15 02:36:32 +00:00
emax
e664415a4e MFC:
Add an option to register DUN (Dial-Up Networking) service on the same
RFCOMM channel if needed. There is really no good reason to not to support
this. AT-command exchange can be faked with chat script in ppp.conf.
2008-03-14 16:11:20 +00:00
emaste
977c485418 Honour mpsafe_vfs=0 in softdep_flush. This is basically a MFC of revision
1.206, except that Giant remains unconditionally acquired in the #ifdef
QUOTA case here (as QUOTA-enabled UFS on RELENG_6 is not MPSAFE).

Reviewed by:	kib
2008-03-14 15:25:44 +00:00
kensmith
a1f09e03eb MFC: dist.c v1.254, dist.h v1.72, menus.c v1.429, sysinstall.h v1.275
> Change sysinstall's handling of X11 stuff.  Doing it in pieces was
> probably the right thing to do a while ago but xorg has progressed
> to the point that for novice users (who are the ones expected to think
> installing X11 during an install...) it's best to just install the
> whole x11/xorg metaport for them.  This removes the X11 sub-menus
> and sets it up so you just select whether or not you want X11.  While
> here garbage collect an X11 configuration menu I missed removing when
> I removed support for attempting xorg configuration from inside sysinstall
> a while ago.
2008-03-13 15:28:17 +00:00
csjp
519bf56805 MFC revision 1.25 -- Make sure we return EINVAL for invalid commands 2008-03-13 13:53:20 +00:00
wollman
2b54dfe0c2 MFC rev. 1.26:
stdio is currently limited to file descriptors not greater than
  {SHRT_MAX}, so {STREAM_MAX} should be no greater than that.  (This
  does not exactly meet the letter of POSIX but comes reasonably close
  to it in spirit.)
2008-03-13 02:33:20 +00:00
brooks
7f99930208 Sync with current merging revs 1.27 and 1.31.
1.27:
Use get_if_var() to retrieve interface specific values of dhclient_flags
and background_dhclient.  This allows interfaces who's names are not
valid parts of shell variables and shortens the code.

1.31:
When the state of the interface changes rapidly enough there is a race
where dhclient is in the process of exiting due to the link going down
when the link coming up causes devd to try and start a new one.  This
results is the link being up, but no dhclient running.

Work around this race by checking a second time after a one second delay
before refusing to start a dhclient instance due to one already being
running.
2008-03-12 17:41:37 +00:00
brooks
3355824a91 MFC rev 1.18:
During PREINIT, when giving the interface the address 0.0.0.0, do it as an
alias to avoid distrubing other addresses.

PR:		bin/119255
Submitted by:	Jaakko Heinonen <jh at saunalahti dot fi>
2008-03-12 17:29:42 +00:00
cognet
49273f3e8c MFC rev 1.6:
date: 2008/03/06 22:27:35;  author: cognet;  state: Exp;  lines: +3 -1
MFi386:
revision 1.6
date: 2004/08/21 18:50:34;  author: alc;  state: Exp;  lines: +3 -1
Properly free the temporary sf_buf in uiomove_fromphys() if a copyin or
copyout fails.

Obtained from: DragonFlyBSD

Spotted out by: Mark Tinguely
2008-03-12 13:51:51 +00:00
rwatson
f4830d9c85 Merge gzip.c:1.6 from HEAD to RELENG_7:
Teach gunzip that .tbz and .tbz2 uncompress to .tar, in a manner similar to
  its existing understanding that .tgz uncompresses to .tar.

  PR:             121519
  Submitted by:   Ighighi <ighighi at gmail.com>
2008-03-12 11:34:26 +00:00
rwatson
526e2cbe38 Merge NOTES:1.1475 from HEAD to RELENG_6:
HZ now defaults to 1000 on many architectures, so update NOTES to reflect
  that.

  PR:             113670
  Submitted by:   Ighighi <ighighi at gmail.com>
2008-03-12 11:33:06 +00:00
delphij
a5473e5bf3 Merge revision 1.1.1.8
date: 2007/04/03 15:51:53;  author: mp;  state: Exp;  lines: +2 -1
Import vendor patch to fix postcmd regression in tcsh-6.15.00.
2008-03-12 01:52:48 +00:00