]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
17 years agoMFC rev. 1.579: MFi386 rev. 1.544 of i386/i386/pmap.c:
kib [Wed, 28 Feb 2007 09:27:45 +0000 (09:27 +0000)]
MFC rev. 1.579: MFi386 rev. 1.544 of i386/i386/pmap.c:
Rounding addr upwards to next 2M boundary in pmap_growkernel() could
cause addr to become 0, resulting in an early return without populating
the last PDE.

17 years agoMFC rev. 1.431:
kib [Wed, 28 Feb 2007 09:26:53 +0000 (09:26 +0000)]
MFC rev. 1.431:
Remove union_dircheckp hook, it is not needed by new unionfs code anymore.
As consequence, getdirentries() no longer needs to drop/reacquire
directory vnode lock, that would allow it to be reclaimed in between.

17 years agoForced commit (cut&paste error in the MFC):
n_hibma [Tue, 27 Feb 2007 18:59:27 +0000 (18:59 +0000)]
Forced commit (cut&paste error in the MFC):
The default is '-t swap' not '-t malloc'.

Noticed by: brooks

17 years agoMake hosts.allow a link to hosts_options instead.
n_hibma [Tue, 27 Feb 2007 14:20:40 +0000 (14:20 +0000)]
Make hosts.allow a link to hosts_options instead.

Requested by: ru

17 years agoMFC:
bms [Tue, 27 Feb 2007 13:27:06 +0000 (13:27 +0000)]
MFC:
  Use int instead of u_int for the 'extra' argument to the
  clone_create() KPI.
  This fixes a signedness bug in unit number comparisons.

  Revision  Changes    Path
    1.201     +1 -1      src/sys/kern/kern_conf.c
    1.67      +1 -1      src/sys/net/if_tap.c
    1.231     +1 -1      src/sys/sys/conf.h

Submitted by: imp, Landon Fuller
PR: kern/105228

17 years agoMFC:
n_hibma [Tue, 27 Feb 2007 12:15:51 +0000 (12:15 +0000)]
MFC:
1.203     +6 -2      src/sys/cam/scsi/scsi_da.c
1.101     +1 -1      src/sys/geom/geom_disk.c

Reduce the noise when plugging in (USB) mass storage devices, like a 4 port
flash card reader.
Also remove an 'Opened da0 -> <random number>' which is not needed on a daily
basis (available through bootverbose).

17 years agoMFC
n_hibma [Tue, 27 Feb 2007 09:04:56 +0000 (09:04 +0000)]
MFC
rev. 1.34-1.36 mdconfig.8
rev. 1.52-1.54 mdconfig.c

Make attach the default for -f and assume '-a' and '-t malloc' flags for '-s
<size>' (malloc ramdisk) if not specified.

To mount an image:

MD=`mdconfig -f image`
mount $MD /mnt

To create and mount a RAM disk (gosh, last I used those was on an Atari 1040ST:
256kb just to piss off the 640kb PC loosers)

MD=`mdconfig -s 5mb`
newfs /dev/$MD
mount /dev/$MD /mnt

Et voila! Much easier to remember.

17 years agoMFC r1.19:
n_hibma [Tue, 27 Feb 2007 08:41:15 +0000 (08:41 +0000)]
MFC r1.19:

Create a link from hosts.allow(5) hosts_access(3), to give the user a
starting point for more information on a file in /etc.

17 years agoMFC fbsd-threads.c 1.16:
emaste [Tue, 27 Feb 2007 01:54:17 +0000 (01:54 +0000)]
MFC fbsd-threads.c 1.16:

  Avoid writing uninitialized stack data into a thread's MMX/SSE state by
  first getting the current state with td_thr_getxmmregs_p.

17 years agoMFC:
cognet [Tue, 27 Feb 2007 00:27:50 +0000 (00:27 +0000)]
MFC:
Teach the kernel and the ELF trampoline how to boot from onboard flash.

17 years agoMFC:
cognet [Tue, 27 Feb 2007 00:02:40 +0000 (00:02 +0000)]
MFC:
make arm/disassem.c conditional on DDB.

17 years agoPartial MFC of rev 1.22 (the other bits were already MFC'd by marcel).
cognet [Mon, 26 Feb 2007 23:33:07 +0000 (23:33 +0000)]
Partial MFC of rev 1.22 (the other bits were already MFC'd by marcel).
Additionally, remove the probe for the high 4 bits of IER being 0 and don't
assume we can always read/write 0 to/from those bits.

This is needed to get uart(4) to work on Xscale PXA255 and IXP425.

17 years agoMFC:
cognet [Mon, 26 Feb 2007 23:23:31 +0000 (23:23 +0000)]
MFC:
bounce pages for arm.

17 years agoMFC:
cognet [Mon, 26 Feb 2007 23:18:21 +0000 (23:18 +0000)]
MFC:
Use -EB for LD as well, if we're running big endian.

17 years agoMFC: add support for the Analog Devices AD7418 chip and the DS1672 RTC.
cognet [Mon, 26 Feb 2007 23:17:51 +0000 (23:17 +0000)]
MFC: add support for the Analog Devices AD7418 chip and the DS1672 RTC.
This require some bits of the work done by imp@ on iicbus, it should be
harmless.

MFC work done by: sam

17 years agoMFC support for the IXP425.
cognet [Mon, 26 Feb 2007 23:13:09 +0000 (23:13 +0000)]
MFC support for the IXP425.
MFC work largely done by: sam

17 years agoMFC:
cognet [Mon, 26 Feb 2007 23:10:16 +0000 (23:10 +0000)]
MFC:
Add CPU_XSCALE_IXP425

17 years agoMFC: rev. 1.7
brueffer [Mon, 26 Feb 2007 21:11:38 +0000 (21:11 +0000)]
MFC: rev. 1.7

Remove an obsolete error message.

17 years agoMFC: Add support for SERDES phys which are handled by gentbi(4). brgphy(4)
jhb [Mon, 26 Feb 2007 20:58:08 +0000 (20:58 +0000)]
MFC: Add support for SERDES phys which are handled by gentbi(4).  brgphy(4)
had to be changed to only attach to 5706C phys as the SERDES phys use the
same MII model ID.

Approved by: dwhite

17 years agoMFC: Add missing MIIBUS_MEDIAINIT() call.
jhb [Mon, 26 Feb 2007 20:56:34 +0000 (20:56 +0000)]
MFC: Add missing MIIBUS_MEDIAINIT() call.

17 years agoMFC r1.47: Use mii_phy_dev_probe() to reduce diffs with HEAD.
jhb [Mon, 26 Feb 2007 20:50:58 +0000 (20:50 +0000)]
MFC r1.47: Use mii_phy_dev_probe() to reduce diffs with HEAD.

17 years agoMFC rev 1.29 and 1.30:
cognet [Mon, 26 Feb 2007 20:38:31 +0000 (20:38 +0000)]
MFC rev 1.29 and 1.30:
Use __QUAD_LOWWORD for __syscall, to always use the good word, whatever the
endianness is.

Special casing of __syscall return value for big endian.

17 years agoMFC rev 1.2:
cognet [Mon, 26 Feb 2007 20:29:29 +0000 (20:29 +0000)]
MFC rev 1.2:
Provide definitions suitable for arm big-endian.

17 years agoMFC:
emax [Mon, 26 Feb 2007 17:48:35 +0000 (17:48 +0000)]
MFC:

Check that the length of the received message is at least as big as a PDU
before we use pdu->len.

Submitted by: Iain Hibbert

17 years agoRemove extraneous "No advisories" notation that should have gone away
bmah [Mon, 26 Feb 2007 17:09:29 +0000 (17:09 +0000)]
Remove extraneous "No advisories" notation that should have gone away
when 6.2 got its first security advisory.

Submitted by: Johann Tonsing jtonsing at fastmail dot fm

17 years agoThis commit was manufactured by cvs2svn to create branch 'RELENG_6'.
cvs2svn [Mon, 26 Feb 2007 02:04:25 +0000 (02:04 +0000)]
This commit was manufactured by cvs2svn to create branch 'RELENG_6'.

17 years agoMFC: Big endian support for arm.
cognet [Mon, 26 Feb 2007 01:19:06 +0000 (01:19 +0000)]
MFC: Big endian support for arm.

17 years agoMFC: Big endian support.
cognet [Mon, 26 Feb 2007 01:05:01 +0000 (01:05 +0000)]
MFC: Big endian support.

17 years agoMFC r1.93
thompsa [Mon, 26 Feb 2007 00:33:06 +0000 (00:33 +0000)]
MFC r1.93

 Move the lock init until after if_alloc in case the allocation fails and we                                                                 free the softc and return.

17 years agoMFC (in preparation for IXP425 support):
cognet [Sun, 25 Feb 2007 23:09:51 +0000 (23:09 +0000)]
MFC (in preparation for IXP425 support):
Use the good prototype for bus_space_unmap().
Add stream operations.

17 years agoMFC: remove useless ixp425_icu_init().
cognet [Sun, 25 Feb 2007 23:08:22 +0000 (23:08 +0000)]
MFC: remove useless ixp425_icu_init().

17 years agoMFC: 1.48
marius [Sun, 25 Feb 2007 19:08:54 +0000 (19:08 +0000)]
MFC: 1.48

Fix typo in printf string.

17 years agoMFC: if_pcn.c 1.76, 1.81, 1.82; if_pcnreg.h 1.15
marius [Sun, 25 Feb 2007 19:02:01 +0000 (19:02 +0000)]
MFC: if_pcn.c 1.76, 1.81, 1.82; if_pcnreg.h 1.15

- In detach method, move if_free() after bus_teardown_intr().
- Clear the PCN_MISC_ASEL bit so the media port can be actually set
  via the PCN_CSR_MODE register. Along with sys/dev/mii/nsphy.c 1.23.2.3
  this fixes the case of certain Am79c971-based HP cards and on-board
  ones in IBM machines reporting link but not actually passing any
  traffic. [1]
- Add support for the internal 10baseT PHY, which actually is used on
  at least said HP cards (together with an external DP83840A in a
  multiple PHYs configuration). With cards that don't make use of this
  internal PHY it'll also show up in FreeBSD but not cause any harm.
  This is still missing support for multiple PHYs configuration using
  the internal 100baseTX and/or HomePNA PHYs together with external
  PHYs or multiple external PHYs though.
- Allow multiple (external) PHYs with Am79C97{2,6}, which actually
  only support external PHYs (besides not connectable internal ones
  which respond at the usual addresses, but which don't hurt if we
  let them show up) and don't wedge when isolating PHYs. Actually,
  this change special cases limiting PHYs to Am79C97{3,5,8}, for
  which this driver doesn't implement swiching between the internal
  and external PHYs, yet, and Am79C971, where isolating the external
  PHY (at least in case it's a DP83840A) wedges the chip. Together
  with sys/dev/mii/acphy.c rev. 1.16.2.5 this adds support for the
  100baseFX port of AT-2700 series adaptors, which use two AC101,
  one for the copper and one for the fibre port (there might be
  variants which only use one PHY though).
- In pcn_ifmedia_upd() call pcn_reset() as otherwise the Am79C971 of
  at least said HP cards can wedge when switching from the internal
  10baseT PHY to the external PHY. This means that we need to also
  initialize and possibly start the chip again in pcn_ifmedia_upd(),
  which isn't that bad though as for setting the media port the chip
  has to be powered down or stopped anyway and unlike documented
  doesn't take effect until the next initialization.
- Don't bother to set if_mtu to ETHERMTU, ether_ifattach() does that.

PR: 27995, 25959, 72966 (likely) [1]

17 years agoMFC: 1.6
marius [Sun, 25 Feb 2007 18:36:36 +0000 (18:36 +0000)]
MFC: 1.6

- Take advantage of mii_phy_dev_probe() and mii_phy_setmedia().
- Set MIIF_NOLOOP as loopback doesn't work with this PHY. The MIIF_NOLOOP
  flag currently triggers nothing but hopefully will be respected by
  mii_phy_setmedia() later on.
- Use MII_ANEGTICKS instead of 5.
- Remove an unused macro.
- Fix some whitespace nits.

17 years agoMFC: 1.23
marius [Sun, 25 Feb 2007 18:34:57 +0000 (18:34 +0000)]
MFC: 1.23

- Take advantage of mii_phy_dev_probe().
- In exphy_service() for the MII_TICK case don't bother to check whether
  the currently selected media is of type IFM_AUTO as auto-negotiation
  doesn't need to be kicked anyway.
- Remove #if 0'ed unapplicable code.
- Fix some whitespace nits.

17 years agoMFC: exphy.c 1.22; inphy.c 1.17
marius [Sun, 25 Feb 2007 18:31:48 +0000 (18:31 +0000)]
MFC: exphy.c 1.22; inphy.c 1.17

Use mii_phy_add_media()/mii_phy_setmedia()-compatible media table
indices when manually adding media. These were longstanding bugs.

17 years agoMFC: 1.21, 1.22
marius [Sun, 25 Feb 2007 18:25:14 +0000 (18:25 +0000)]
MFC: 1.21, 1.22

- Probe Davicom DM9102 PHYs.
- Don't set MIIF_NOISOLATE so amphy(4) can be used in configurations
  with multiple PHYs. There doesn't seem to be a problem with isolating
  AM79c873 and workalikes per se nor in combination with the NICs they're
  used with and amphy(4) was already adding IFM_NONE anyway.
- Use mii_phy_add_media() instead of mii_add_media() so the latter can
  be eventually retired.
- Take advantage of mii_phy_setmedia().
- Fix a whitespace nit.

Obtained from: NetBSD dmphy(4) (except for the last item)

17 years agoMFC: 1.21
marius [Sun, 25 Feb 2007 18:22:30 +0000 (18:22 +0000)]
MFC: 1.21

Set MIIF_HAVE_FIBER and add IFM_100_FX media when the AC_MCTL_FX_SEL
and thus the FX_DIS pin indicates fibre media. This is part 1/2 of
adding support for the 100baseFX interface/port of AT-2700 series
adaptors.

Idea from: NetBSD

17 years agoMFC: 1.20
marius [Sun, 25 Feb 2007 18:20:28 +0000 (18:20 +0000)]
MFC: 1.20

- In acphy_service() for the MII_TICK case don't bother to check whether
  the currently selected media is of type IFM_AUTO as auto-negotiation
  doesn't need to be kicked anyway.
- Fix a whitespace nit.
- Probe another Altima PHY, which is a AC101 workalike and integrated
  in at least ADMtek ADM8511 but apparently is not mentioned in any
  publically available data sheet so the actual identifier is unknown.
- Don't set MIIF_NOISOLATE so acphy(4) can be used in configurations
  with multiple PHYs. There doesn't seem to be a problem with isolating
  AC101 and workalikes per se nor in combination with the NICs they're
  used with.
- Use mii_phy_add_media() instead of mii_add_media() so the latter can
  be eventually retired.
- Take advantage of mii_phy_setmedia().

Obtained from: NetBSD (except for the first and second item)

17 years agoMFC: 1.2
marius [Sun, 25 Feb 2007 18:18:27 +0000 (18:18 +0000)]
MFC: 1.2

- Correct the AC_MCTL_BYP_PCS constant.
- Correct whitespace nits (use #define<tab>, remove trailing whitespace).

17 years agoMFC: 1.35
marius [Sun, 25 Feb 2007 18:16:31 +0000 (18:16 +0000)]
MFC: 1.35

- Add another Altima PHY, which is a AC101 workalike and integrated
  in at least ADMtek ADM8511 but apparently is not mentioned in any
  publically available data sheet so the actual identifier is unknown.
- Add Davicom DM9102 PHY.
- Add DM9101 to the description of AMD 79C873 as at least some Davicom
  DM9101F identify identical to AMD 79C873.

Obtained from: NetBSD

17 years agoMFC: 1.22
marius [Sun, 25 Feb 2007 18:13:14 +0000 (18:13 +0000)]
MFC: 1.22

- Don't set MIIF_NOISOLATE so tdkphy(4) can be used in configurations
  with multiple PHYs. There doesn't seem to be a problem with isolating
  78Q2120 per se nor in combination with the NICs they're used with and
  tdkphy(4) was already adding IFM_NONE anyway.
- Set MIIF_NOLOOP as loopback doesn't work with this PHY. The MIIF_NOLOOP
  flag currently triggers nothing but hopefully will be respected by
  mii_phy_setmedia() later on.
- Use mii_phy_add_media() instead of mii_add_media() so the latter can
  be eventually retired.
- Take advantage of mii_phy_setmedia().

Thanks to Hans-Joerg Sirtl for lending me test hardware.

Obtained from: NetBSD tqphy(4)

17 years agoMFC: 1.9 (partial), 1.14, 1.15
marius [Sun, 25 Feb 2007 18:11:00 +0000 (18:11 +0000)]
MFC: 1.9 (partial), 1.14, 1.15

- Remove the first rgephy_reset() invocation in rgephy_attach(). This
  seems to have been missed when merging rev. 1.9, which actually moves
  the rgephy_reset() invocation further down, in rev. 1.6.2.1.
- Don't set MIIF_NOISOLATE so rgephy(4) can be used in configurations
  with multiple PHYs and un-comment case IFM_NONE in case MII_MEDIACHG
  rgephy_service(). There doesn't seem to be a problem with isolating
  RTL8169S and their internal PHY.
- Take advantage of mii_phy_add_media(). [1]

Obtained from: NetBSD [1]

17 years agoMFC: brgphy.c 1.48; ciphy.c 1.6, 1.8; mlphy.c 1.22; rgephy.c 1.13;
marius [Sun, 25 Feb 2007 17:57:12 +0000 (17:57 +0000)]
MFC: brgphy.c 1.48; ciphy.c 1.6, 1.8; mlphy.c 1.22; rgephy.c 1.13;
     tdkphy.c 1.21; tlphy.c 1.22; xmphy.c 1.21

Some style changes to a couple of PHY drivers:
- Fix some whitespace nits.
- Fix some spelling in comments.
- Use MII_ANEGTICKS instead of 5.
- Don't define variables in nested scope.
- Remove superfluous returns at the end of void functions.
- Remove unused static global rgephy_mii_model.
- Remove dupe $FreeBSD$ in ciphy(4) and dupe $Id$ in tdkphy(4).
- Sort brgphys table.

17 years agoMFC: acphy.c 1.19; amphy.c 1.20; bmtphy.c 1.12; brgphy.c 1.44, 1.47;
marius [Sun, 25 Feb 2007 16:57:43 +0000 (16:57 +0000)]
MFC: acphy.c 1.19; amphy.c 1.20; bmtphy.c 1.12; brgphy.c 1.44, 1.47;
     ciphy.c 1.7; inphy.c 1.16; ip1000phy.c 1.2; lxtphy.c 1.18;
     mii_physubr.c 1.28; miivar.h 1.20; nsgphy.c 1.24; nsphy.c 1.27;
     pnaphy.c 1.18; qsphy.c 1.18; rgephy.c 1.12; rlphy.c 1.25, 1.27, 1.28;
     tdkphy.c 1.20; tlphy.c 1.21; xmphy.c 1.20

Add a helper function mii_phy_dev_probe(), which wraps around the
mii_phy_match() API and takes care of the PHY device probe based on
the struct mii_phydesc array and the match return value provided.
Convert PHY drivers to take advantage of mii_phy_dev_probe(),
converting drivers to provide a mii_phydesc table in the first
place where necessary.

17 years agoMFC: miivar.h 1.16; nsgphy.c 1.20
marius [Sun, 25 Feb 2007 16:07:23 +0000 (16:07 +0000)]
MFC: miivar.h 1.16; nsgphy.c 1.20

Add macros which follow the miidevs design pattern to make it easier
to construct tables for mii_phy_match.

17 years agoMFC rev 1.163:
bms [Sun, 25 Feb 2007 14:48:29 +0000 (14:48 +0000)]
MFC rev 1.163:
  Clean up after tun(4) properly; remove routes whose ifp is set to
  that of the tun instance even for the !AF_INET case, and properly
  remove configured addresses by calling if_purgeaddrs().

  Maintain the TUN_DSTADDR behaviour for compatibility with the OS/390
  emulator.

PR: 100080
Reviewed by: bz

17 years agoMFC write.c 1.54. This implements -r support for empty or
kientzle [Sun, 25 Feb 2007 07:24:44 +0000 (07:24 +0000)]
MFC write.c 1.54.  This implements -r support for empty or
nonexistent files and corrects the bad handling of files that
change size during archiving.

PR: bin/108607
PR: bin/108990

17 years agoMFC (1.118: only bzero() data in rtalloc1() if the data is actually used).
bde [Sun, 25 Feb 2007 05:36:25 +0000 (05:36 +0000)]
MFC (1.118: only bzero() data in rtalloc1() if the data is actually used).

17 years agoMFC (1.80: style fixes and 1.81: fix high resolution kernel profiling).
bde [Sun, 25 Feb 2007 05:01:05 +0000 (05:01 +0000)]
MFC (1.80: style fixes and 1.81: fix high resolution kernel profiling).

I was reminded of the brokenness when attempting to profile sendto()
to compare RELENG_6 with -current.  Just configuring high res profiling
made sendto() with profiling inactive almost twice as slow in RELENG_6,
and actual profiles were almost unusable due to multiple copies of
non-inlined inline functions like curthread().

17 years agoMFC rev 1.112:
cognet [Sat, 24 Feb 2007 16:08:03 +0000 (16:08 +0000)]
MFC rev 1.112:
Use __NO_STRICT_ALIGNMENT, instead of special casing ia64 and sparc64.

17 years agoMFC:
philip [Sat, 24 Feb 2007 15:10:25 +0000 (15:10 +0000)]
MFC:
Optimize set_origin() use in some screensavers to stop them eating
cpu power when the origin hasn't changed.

17 years agoMFC rev 1.68:
bms [Sat, 24 Feb 2007 11:11:36 +0000 (11:11 +0000)]
MFC rev 1.68:
  Drop unicast Ethernet frames not destined for the configured address
  of a tap(4) instance, if IFF_PROMISC is not set.

  In tap(4), we should emulate the effect IFF_PROMISC would have on
  hardware, otherwise we risk introducing layer 2 loops if tap(4) is
  used with bridges. This means not even bpf(4) gets to see them.

  This patch has been tested in a variety of situations. Multicast and
  broadcast frames are correctly allowed through. I have observed this
  behaviour causing problems with multiple QEMU instances hosted on
  the same FreeBSD machine.

  The checks in in ether_demux() [if_ethersubr.c, rev 1.222, line 638]
  are insufficient to prevent this bug from occurring, as ifp->if_vlantrunk
  will always be NULL for the non-vlan case.

PR:             86429
Submitted by:   Pieter de Boer (with changes)

17 years agoFix mis-merge.
jhb [Fri, 23 Feb 2007 20:56:27 +0000 (20:56 +0000)]
Fix mis-merge.

17 years agoMFC rev. 1.285:
kib [Fri, 23 Feb 2007 12:27:23 +0000 (12:27 +0000)]
MFC rev. 1.285:
Remove not needed acquision of the mount interlock aroung reading of
mnt_kern_flags in ufs_itimes().

17 years agoMFC rev. 1.98:
kib [Fri, 23 Feb 2007 12:23:41 +0000 (12:23 +0000)]
MFC rev. 1.98:
Handle the case when both ISDOTDOT and NOCROSSMOUNT are set, inside lookup().

Submitted by:   tegge

17 years agoMFC: sync firmware(9) and iwi(4) with the version in HEAD (the changes
luigi [Thu, 22 Feb 2007 19:10:48 +0000 (19:10 +0000)]
MFC: sync firmware(9) and iwi(4) with the version in HEAD (the changes
are related and this is why the MFC is done together).
In detail:

firmware(9):
  Cleanup and document the implementation of firmware(9) based on
  a version that i posted earlier on the -current mailing list,
  and subsequent feedback received. See the commit log
luigi       2007-02-15 17:21:31 UTC
  The core of the change is just in sys/firmware.h and kern/subr_firmware.c,
  while other files are just adaptation of the clients to the ABI change
  (const-ification of some parameters and hiding of internal info,
  so this is fully compatible at the binary level).

  Note that in RELENG_6 sys/arm/xscale/ixp425, sys/dev/ipw and
  sys/dev/mxge do not exist or have not been updated to use firmware(9).

iwi(4)
  + add debugging code IWI_LOCK_CHECK() to print (under sysctl debug.iwi)
    missing locks;
  + make sure that iwi_ioctl() wait until the previous iwi_cmd() terminates.

17 years agoMFC: Catch up to nfiles -> openfiles rename.
jhb [Wed, 21 Feb 2007 16:22:17 +0000 (16:22 +0000)]
MFC: Catch up to nfiles -> openfiles rename.

17 years agoMFC: Restore support for kvm_get_swapinfo(3) on crash dumps.
jhb [Wed, 21 Feb 2007 16:21:32 +0000 (16:21 +0000)]
MFC: Restore support for kvm_get_swapinfo(3) on crash dumps.

17 years agoMFC the following commits:
n_hibma [Tue, 20 Feb 2007 22:56:28 +0000 (22:56 +0000)]
MFC the following commits:

  Align the interfaces for the various watchdogs and make the interface
  behave as expected.

  Also:
  - Return an error if WD_PASSIVE is passed in to the ioctl as only
    WD_ACTIVE is implemented at the moment. See sys/watchdog.h for an
    explanation of the difference between WD_ACTIVE and WD_PASSIVE.
  - Remove the I_HAVE_TOTALLY_LOST_MY_SENSE_OF_HUMOR define. If you've
    lost your sense of humor, than don't add a define.

  Specific changes:

  i80321_wdog.c
    Don't roll your own passive watchdog tickle as this would defeat the
    purpose of an active (userland) watchdog tickle.

  ichwd.c / ipmi.c:
    WD_ACTIVE means active patting of the watchdog by a userland process,
    not whether the watchdog is active. See sys/watchdog.h.

  kern_clock.c:
    (software watchdog) Remove a check for WD_ACTIVE as this does not make
    sense here. This reverts r1.181.

  Revision  Changes    Path
  1.371     +1 -0      src/share/man/man4/Makefile
  1.8       +69 -25    src/share/man/man4/watchdog.4
  1.4       +7 -1      src/share/man/man9/watchdog.9
  1.3       +15 -11    src/sys/arm/xscale/i80321/i80321_wdog.c
  1.7       +12 -30    src/sys/dev/ichwd/ichwd.c
  1.8       +8 -17     src/sys/dev/ipmi/ipmi.c
  1.8       +3 -1      src/sys/dev/mk48txx/mk48txx.c
  1.4       +4 -1      src/sys/dev/watchdog/watchdog.c
  1.33      +9 -9      src/sys/i386/i386/elan-mmcr.c
  1.193     +3 -3      src/sys/kern/kern_clock.c
  1.4       +0 -4      src/sys/sys/watchdog.h

and

  Don't exit from watchdogd on receiving a signal if we cannot stop the watchdog.
  That'll require -KILL. This avoids resetting your system on one of the
  watchdogs that you cannot disable.

  Revision  Changes    Path
  1.15      +18 -11    src/usr.sbin/watchdogd/watchdogd.c

Reviewed by: phk

17 years agoMFC rev 1.2 and 1.5:
cognet [Tue, 20 Feb 2007 18:03:28 +0000 (18:03 +0000)]
MFC rev 1.2 and 1.5:
revision 1.2
date: 2005/10/03 14:18:21;  author: cognet;  state: Exp;  lines: +12 -2
Make mem.c know about the pages allocated with ARM_USE_SMALL_ALLOC.
revision 1.5
date: 2007/02/13 15:35:57;  author: cognet;  state: Exp;  lines: +13 -0
Make sure the address is valid before mapping it.

17 years agoMFC: Replace gzip(1) with the BSD licensed version found in -HEAD.
delphij [Tue, 20 Feb 2007 08:33:32 +0000 (08:33 +0000)]
MFC: Replace gzip(1) with the BSD licensed version found in -HEAD.

Discussed with: re, so, portmgr (kris)

All bugs are mine.

17 years agoMFC (1.23: fix -mprofiler-epilogue by working around a garbage-collection
bde [Mon, 19 Feb 2007 02:47:30 +0000 (02:47 +0000)]
MFC (1.23: fix -mprofiler-epilogue by working around a garbage-collection
problem).

17 years agoMFC the AUDIT_SYSCALL_ENTER/EXIT entry points in syscall handling. This
csjp [Mon, 19 Feb 2007 00:34:28 +0000 (00:34 +0000)]
MFC the AUDIT_SYSCALL_ENTER/EXIT entry points in syscall handling.  This
will unbreak auditing for the ARM architecture in RELENG_6

17 years agoOops, we have no sc here, so use the global sa11x0_softc.
cognet [Mon, 19 Feb 2007 00:23:40 +0000 (00:23 +0000)]
Oops, we have no sc here, so use the global sa11x0_softc.

Spotted out by: csjp

17 years agoMFC revision 1.168
csjp [Sat, 17 Feb 2007 20:52:55 +0000 (20:52 +0000)]
MFC revision 1.168

ANSI cleanup, no functional change. This should make merging a bit easier.

17 years agoMFC:
brueffer [Fri, 16 Feb 2007 13:55:25 +0000 (13:55 +0000)]
MFC:

Xref altq(4) for drivers that support it according to altq(4).

17 years agoMFC:
mohans [Fri, 16 Feb 2007 03:53:33 +0000 (03:53 +0000)]
MFC:
Backing out an earlier change. It seems harmless for NFS to miss the "force
unmount" flag, making the acquisition of the MNT_ILOCK in nfs_request() and
nfs_sigintr() unnecessary. Pointed out by tegge@.

17 years agoThis commit was manufactured by cvs2svn to create branch 'RELENG_6'.
cvs2svn [Thu, 15 Feb 2007 22:22:58 +0000 (22:22 +0000)]
This commit was manufactured by cvs2svn to create branch 'RELENG_6'.

17 years agoUpdate state of IPv6-over-gif(4) item.
bmah [Thu, 15 Feb 2007 22:16:05 +0000 (22:16 +0000)]
Update state of IPv6-over-gif(4) item.

17 years agoMFC kern_linker.c 1.133 and related changes:
luigi [Thu, 15 Feb 2007 19:49:27 +0000 (19:49 +0000)]
MFC kern_linker.c 1.133 and related changes:

- push Giant into linker_reference_module();
- introduce linker_release_module(), which also takes care of
  proper locking.

The latter also fixes a missing mtx_loc/unlock in subr_firmware.c .

Apparently, digi.c is the only external client of linker_reference_module()
which is a bit suspicious - perhaps dev/digi/ could make with a bit
of review from someone knowledgeable to check how the function is used,
and whether it could be replaced by something else.

17 years agoNew errata: SA-07:02.bind.
bmah [Thu, 15 Feb 2007 17:52:29 +0000 (17:52 +0000)]
New errata:  SA-07:02.bind.

17 years agoMFC:
brueffer [Thu, 15 Feb 2007 17:35:16 +0000 (17:35 +0000)]
MFC:

The KAME project has been dissolved and kame.4 isn't terribly useful.
=> Sayonara

17 years agoMFC: rev. 1.316
brueffer [Thu, 15 Feb 2007 17:31:14 +0000 (17:31 +0000)]
MFC: rev. 1.316

Nuke pcnfsd(8) reference.

17 years agoMFC: rev. 1.4
brueffer [Thu, 15 Feb 2007 17:29:55 +0000 (17:29 +0000)]
MFC: rev. 1.4

There is no isa(4) manpage, convert to normal text an join lines.

17 years agoMFC: rev. 1.3
brueffer [Thu, 15 Feb 2007 17:27:19 +0000 (17:27 +0000)]
MFC: rev. 1.3

Remove Xref to non-existant uhub(4).

17 years agoMFC: rev. 1.4
brueffer [Thu, 15 Feb 2007 17:24:31 +0000 (17:24 +0000)]
MFC: rev. 1.4

Correct references to tcpdump(1).

17 years agoMFC: rev. 1.21 + 1.22
brueffer [Thu, 15 Feb 2007 17:19:38 +0000 (17:19 +0000)]
MFC: rev. 1.21 + 1.22

Don't reference the non-existant lkm(4), use .Nm instead
since lkm is the name of an api.

17 years agoMFC:
le [Wed, 14 Feb 2007 19:57:15 +0000 (19:57 +0000)]
MFC:

  Add support for Huawei Technologies Mobile card (3G).

  Submitted by:  Thorsten Schroeder <ths_AT_dev.io>

17 years agoAdd a couple of missing breaks that are harmless, though the first one
jhb [Wed, 14 Feb 2007 17:04:05 +0000 (17:04 +0000)]
Add a couple of missing breaks that are harmless, though the first one
missing meant that a PCI-PCI bridge that supported MSI but didn't support
PCIY_SUBVENDOR (or the MSI capability came after the subvendor cap) would
have garbage in its subvendor ID.

17 years agoMFC rev 1.98:
bms [Wed, 14 Feb 2007 13:39:01 +0000 (13:39 +0000)]
MFC rev 1.98:
  Import macros IN_LINKLOCAL(), IN_PRIVATE(), IN_LOCAL_GROUP(), IN_ANY_LOCAL().
  This is not a functional change.

  IN_LINKLOCAL() tests if an address falls within the IPv4 link-local prefix.
  IN_PRIVATE() tests if an address falls within an RFC 1918 private prefix.
  IN_LOCAL_GROUP() tests if an address falls within the statically assigned
  link-local multicast scope specified in RFC 2365.
  IN_ANY_LOCAL() tests for either of IN_LINKLOCAL() or IN_LOCAL_GROUP().

  As with the existing macros in the FreeBSD netinet stack, comparisons
  are performed in host-byte order.

See also: RFC 1918, RFC 2365, RFC 3927
Obtained from: NetBSD (dyoung@)

17 years agoMFC rev 1.75:
bms [Wed, 14 Feb 2007 13:35:11 +0000 (13:35 +0000)]
MFC rev 1.75:
  In the ICMP6 path to handle FQDN 'who-are-you' queries, check that the
  packet header mbuf is non-NULL before trying to create a duplicate of it.

PR: 95957
Reviewed by: ume

17 years agoMFC rev. 1.15: fix race with execve().
kib [Wed, 14 Feb 2007 10:24:50 +0000 (10:24 +0000)]
MFC rev. 1.15: fix race with execve().

17 years agoMFC 1.41:
pav [Wed, 14 Feb 2007 09:37:15 +0000 (09:37 +0000)]
MFC 1.41:

  Fix a bug in 1.40 - it missed three occurences in pkg_info which leads to
  (null)/file output.

17 years agoMFC 1.63:
pav [Wed, 14 Feb 2007 09:29:33 +0000 (09:29 +0000)]
MFC 1.63:

  Rewrite the udf_read() routine to use a file vnode instead of the devvp vnode.
  The code is modelled after cd9660, including support for simple read-ahead
  courtesy of clustered read.

  Fix udf_strategy to DTRT.

  This change fixes sendfile(2) not to send out garbage.

17 years agoMFC: "empty" format support
kientzle [Wed, 14 Feb 2007 08:29:35 +0000 (08:29 +0000)]
MFC: "empty" format support
PR: bin/108607

17 years agoMFC rev. 1.158: increment requests counter right before send out
maxim [Tue, 13 Feb 2007 15:38:17 +0000 (15:38 +0000)]
MFC rev. 1.158: increment requests counter right before send out
an ARP query actually.  Otherwise the code could lead to the
spurious EHOSTDOWN errors.

17 years agoMFC archive_read.c rev. 1.29:
cperciva [Tue, 13 Feb 2007 07:31:22 +0000 (07:31 +0000)]
MFC archive_read.c rev. 1.29:
  Don't reference a NULL pointer.

MFC archive_read_support_compression_none.c rev. 1.14:
  Print off_t by casting to intmax_t and using %jd.
  Ask the client skipper to handle requests > SSIZE_MAX if the API works.

17 years agoMFC: New unionfs implementation from Daichi GOTO and Masanori OZAWA,
rodrigc [Tue, 13 Feb 2007 05:56:43 +0000 (05:56 +0000)]
MFC: New unionfs implementation from Daichi GOTO and Masanori OZAWA,
     which fixes many locking and crashing problems in the previous
     implementation.  kib@ helped a lot by eliminating a source
     of deadlocks encountered with unionfs with these commits:
       rev. 1.50 of src/sys/fs/deadfs/dead_vnops.c
       rev. 1.97 of src/sys/kern/vfs_lookup.c
Submitted by: daichi, Masanori OZAWA <ozawa ongs co jp>

17 years agoMFC: rev. 1.29 + 1.30
brueffer [Mon, 12 Feb 2007 21:24:56 +0000 (21:24 +0000)]
MFC: rev. 1.29 + 1.30

- Use the standard section 4 SYNOPSIS
- Utilize .Nm

17 years agoMFC: Don't send interrupts to CPUs disabled via lapic hints.
jhb [Mon, 12 Feb 2007 21:20:43 +0000 (21:20 +0000)]
MFC: Don't send interrupts to CPUs disabled via lapic hints.

17 years agoMFC: Do not set B_NOCACHE on buffers when releasing them in flushbuflist().
jhb [Mon, 12 Feb 2007 19:08:29 +0000 (19:08 +0000)]
MFC: Do not set B_NOCACHE on buffers when releasing them in flushbuflist().
If B_NOCACHE is set the pages of vm backed buffers will be invalidated.
However clean buffers can be backed by dirty VM pages so invalidating them
can lead to data loss.
Add support for flush dirty page in the data invalidation function
of some network file systems.

This fixes data losses during vnode recycling (and other code paths
using invalbuf(*,V_SAVE,*,*)) for data written using an mmaped file.

17 years agoMFC: Sync up bus_dma(9) to rev 1.39 (except for rev 1.37 since 6.x doesn't
jhb [Mon, 12 Feb 2007 17:57:14 +0000 (17:57 +0000)]
MFC: Sync up bus_dma(9) to rev 1.39 (except for rev 1.37 since 6.x doesn't
have a real bus_get_dma_tag()) and add MLINK for bus_dmamap_load_mbuf_sg().
Prompted by a user who noticed the bus_dmamap_sync ops stuff was still
wrong in 6.x.

Reported by: Jason Harmening <jason.harmening at gmail>

17 years agoMFC rev 1.39:
bms [Mon, 12 Feb 2007 12:52:54 +0000 (12:52 +0000)]
MFC rev 1.39:
  When fast-forwarding is enabled, do not forward directed IPv4 broadcasts
  to locally attached broadcast networks.

  Note well: This relies on the layer 2 route cloning behaviour in BSD.

PR: 98799
Tested by: Dmitry Sergienko

17 years agoMFC: rev. 1.71 + part of 1.69
brueffer [Mon, 12 Feb 2007 05:37:55 +0000 (05:37 +0000)]
MFC: rev. 1.71 + part of 1.69

- Document NetCell NC3000 and NC5000 support.
- New supported ALI and ServerWorks chipsets.

17 years agoMFC: Add support for the NetCell NC3000/5000 series SATA RAID cards.
rink [Sun, 11 Feb 2007 23:46:45 +0000 (23:46 +0000)]
MFC: Add support for the NetCell NC3000/5000 series SATA RAID cards.

Reviewed by: sos
Approved by: imp (mentor)

17 years agoMention that the 'zonelimit' issue has been fixed on -HEAD and RELENG_6.
delphij [Sun, 11 Feb 2007 19:04:57 +0000 (19:04 +0000)]
Mention that the 'zonelimit' issue has been fixed on -HEAD and RELENG_6.

Confirmed by: mohans

17 years agoMFC: 1.24, 1.26
marius [Sun, 11 Feb 2007 18:10:58 +0000 (18:10 +0000)]
MFC: 1.24, 1.26

- In rlphy_service() for the MII_TICK case don't bother to check whether
  the currently selected media is of type IFM_AUTO as auto-negotiation
  doesn't need to be kicked anyway.
- In rlphy_status() just use if_dname instead of determining the name
  of the parent NIC via device_get_name(device_get_parent(sc->mii_dev)).
- Use mii_phy_add_media() instead of mii_add_media() so the latter can
  be eventually retired.
- Take advantage of mii_phy_setmedia().
- Fix some whitespace nits and remove commented out code that just can't
  be used with RealTek PHYs.

17 years agoMFC: 1.17
marius [Sun, 11 Feb 2007 18:05:42 +0000 (18:05 +0000)]
MFC: 1.17

- In qsphy_service() for the MII_TICK case don't bother to check whether
  the currently selected media is of type IFM_AUTO as auto-negotiation
  doesn't need to be kicked anyway.
- Don't set MIIF_NOISOLATE so qsphy(4) can be used in configurations
  with multiple PHYs. There doesn't seem to be a problem with isolating
  QS6612 per se nor in combination with the NICs they're used with.
- Use mii_phy_add_media() instead of mii_add_media() so the latter can
  be eventually retired.
- Take advantage of mii_phy_setmedia().

Obtained from: NetBSD (except for the first item)

17 years agoMFC: 1.26, 1.28
marius [Sun, 11 Feb 2007 18:03:22 +0000 (18:03 +0000)]
MFC: 1.26, 1.28

- Don't add IFM_NONE when used in combination with pcn(4) as for MII
  loopback to work PCnet chips additionally need to be placed into
  external loopback mode which pcn(4) doesn't do so far.
- In nsphy_service() just use if_dname instead of determining the name
  of the parent NIC via device_get_name(device_get_parent(sc->mii_dev)).
- Don't set MIIF_NOISOLATE, except for when used in combination with a
  NIC that wedges when isolating the PHYs, so nsphy(4) can be used in
  configurations with multiple PHYs.
- Use mii_phy_add_media() instead of mii_add_media() so the latter can
  be eventually retired.
- Take advantage of mii_phy_setmedia() (requires the MIIF_FORCEANEG
  added in sys/dev/mii/mii_physubr.c 1.22.2.3, sys/dev/mii/miivar.h
  1.15.14.2).
- Implement a separate nsphy_reset(). There are two reasons for this:
  1) This PHY can take an inordinate amount of time to reset if media
     is attached; under fairly normal circumstances up to nearly one
     second. This is because it appears to go through an implicit auto-
     negotiation cycle as part of the reset.
  2) During reset and auto-negotiation, the BMCR will clear the reset
     bit before the process is complete. It will return 0 until the
     process is complete and it's safe to access the PHY again.

  This is the first of two changes required to make the combination of
  Am79c971 and DP83840A found on certain HP cards and on-board in IBM
  machines work.
- Fix some whitespace nits.

Based on: NetBSD (except for the first and second item)