57245 Commits

Author SHA1 Message Date
sam
b900ca9d90 MFC 1.7: add IEEE80211_IS_CHAN_PASSIVE 2007-03-10 00:28:43 +00:00
sam
8151e24eb2 MFC: add ath hal rules 2007-03-10 00:19:24 +00:00
sam
db7b02c07b MFC 1.10: elaborate on stepping names 2007-03-10 00:16:52 +00:00
kib
2377c12ade MFC
rev. 1.201 src/sys/kern/kern_prot.c
rev. 1.334 src/sys/kern/vfs_export.c
rev. 1.95  src/sys/nfsserver/nfs_srvsock.c
rev. 1.137 src/sys/nfsserver/nfs_srvsubs.c
rev. 1.53  src/sys/sys/ucred.h
rev. 1.273 src/sys/ufs/ufs/ufs_vnops.c

Use the refcount API to manage the reference count for user credentials
rather than using pool mutexes.

MFC changes:
The cr_mtxp field of struct ucred is preserved as padding to keep structure
size intact. nfs_srvsock.c change is nullified by rev. 1.96, that was MFCed
as rev. 1.94.2.2.

OKed by:	jhb
LOR:		187
2007-03-09 13:54:26 +00:00
jhb
24b0c044ed MFC:
- Flesh out list of UART simple comms programming interfaces.
- Add list of PIC base peripheral programming interfaces.
- Add VPD capability register offsets.
2007-03-08 16:23:04 +00:00
bms
594ef8f3f8 MFC rev 1.270:
Fix undirected broadcast sends for the case where SO_DONTROUTE has also
  been set at the socket layer, in our somewhat convoluted IPv4 source
  selection logic in ip_output().

  IP_ONESBCAST is actually a special case of SO_DONTROUTE, as 255.255.255.255
  must always be delivered on a local link with a TTL of 1.

  If IP_ONESBCAST has been set at the socket layer, also perform destination
  interface lookup for point-to-point interfaces based on the destination
  address of the link; previously it was not possible to use the option with
  such interfaces; also, the destination/broadcast address fields map to the
  same field within struct ifnet, which doesn't help matters.

Reviewed by:	andre
2007-03-08 13:19:03 +00:00
bms
f3c32e6087 MFC rev 1.266:
Fix a bug in if_findmulti(), whereby it would not find (and thus delete)
  a link-layer multicast group membership.
  Such memberships are needed in order to support protocols such as
  IS-IS without putting the interface into PROMISC or ALLMULTI modes.
  sa_equal() is not OK for comparing sockaddr_dl as it has deeper structure
  than a simple byte array, so add sa_dl_equal() and use that instead.

Reviewed by:	rwatson
Verified with:	/usr/sbin/mtest
Bug found by:	Jouke Witteveen
MFC after:	2 weeks
2007-03-08 13:15:27 +00:00
mjacob
b0363093e9 Synchronize with -current as of this date. There is a lot of source
churn, but it's there to make diffs in the future easier. There isn't
much substantive change that springs to mind.
2007-03-08 05:35:08 +00:00
mjacob
6ab2916c1c MFC 4 Gb support for QLogic cards. 2007-03-08 05:32:12 +00:00
mjacob
6b70b2e395 MFC 4 Gb support + rewrite of loop/fabric state machine code. 2007-03-08 05:31:40 +00:00
mjacob
0d1e5370c4 MFC xpt_rescan functionality. 2007-03-08 05:30:26 +00:00
trhodes
8fac418a89 MFC:
Add a 3rd entry in the cache, which keeps the end position
from just before extending a file.  This has the desired effect
of keeping the write speed constant.  And yes, that helps a lot
copying large files always at full speed now, and I have seen
improvements using benchmarks/bonnie.

Stolen from:	NetBSD
Reviewed by:	bde
2007-03-08 03:01:00 +00:00
remko
add99c57d9 MFC cdboot.s rev 1.17
Fix the cdboot twiddle display.
  I created and tested this with a custom FreeSBIE cd-image.

  PR:             i386/96452
  Submitted by:   Yuichiro Goto <y7goto at gmail dot com>
  MFC after:      3 days
  Approved by:    imp (mentor)

Approved by:	imp (mentor)
2007-03-06 18:28:28 +00:00
thomas
67d43c42e6 MFC rev. 1.47:
(cam_rescan): Do not reference ccb->ccb_h.path in CAM_DEBUG call before
it is initialized; use path instead.
PR: kern/103602
2007-03-06 16:56:50 +00:00
bms
3118d31a96 MFC rev 1.59:
Add ELSA XI330 product.  This is rebadged and sold as SMC 2532W-B and
  I/O Data also resells it.  Add an alternative airvast an100 id.

PR:	kern/92323
2007-03-05 12:46:16 +00:00
bms
abafa81715 MFC rev 1.152:
Do not dispatch SIGPIPE from the generic write path for a socket; with
  this patch the code behaves according to the comment on the line above.

  Without this patch, a socket could cause SIGPIPE to be delivered to its
  process, once with SO_NOSIGPIPE set, and twice without.

With this patch, the kernel now passes the sigpipe regression test in
both HEAD and RELENG_6.

PR:		78478 (the bug fix for this PR introduced this bug)
Tested by:	Anton Yuzhaninov
Reviewed by:	jhb
2007-03-05 11:17:31 +00:00
bms
d11017d03a MFC rev 1.33:
Add missing TH_PUSH to the TH_FLAGS enumeration.

Submitted by:	Andre Albsmeier <Andre.Albsmeier-at-siemens.com>
PR:		kern/85203
2007-03-05 10:21:52 +00:00
bms
176d53dfc4 MFC rev 1.60:
In the output path, mask off M_BCAST|M_MCAST so as to prevent incorrect
  addressing if a packet is later re-encapsulated and sent to a
  non-broadcast, non-multicast destination after being received on the
  ng_ksocket input hook.

These mbuf flags should not be set on the mbuf packet header chain until
the data thus sent re-enters ip_output() by way of the pru_sosend callback
anyway.

PR:		106999
Tested by:	ume
Submitted by:	Kevin Lahey
2007-03-04 14:54:02 +00:00
bms
b083fe7338 MFC:
Implement ifnet cloning for tun(4)/tap(4).
  Make devfs cloning a sysctl/tunable which defaults to on.

  If devfs cloning is enabled, only the super-user may create
  tun(4)/tap(4)/vmnet(4) instances. Devfs cloning is still enabled by
  default; it may be disabled from the loader or via sysctl with
  "net.link.tap.devfs_cloning" and "net.link.tun.devfs_cloning".

  Disabling its use affects potentially all tun(4)/tap(4) consumers
  including OpenSSH, OpenVPN and VMware.

  Revision  Changes    Path
  1.18      +32 -5     src/share/man/man4/tap.4
  1.24      +33 -4     src/share/man/man4/tun.4
  1.69      +126 -32   src/sys/net/if_tap.c
  1.162     +77 -7     src/sys/net/if_tun.c

PR:		105228 (potentially also 90413, 105570)
Submitted by:	Landon Fuller
Tested by:	Andrej Tobola
Approved by:	core (rwatson)
2007-03-04 14:34:42 +00:00
bms
07e180ae7f MFC rev 1.131:
Unlock a mutex which should be unlocked before returning.
2007-03-04 12:39:43 +00:00
cperciva
a0ed3a9320 MFi386: Ident the SMP kernel as SMP-GENERIC (not GENERIC). 2007-03-03 23:20:42 +00:00
jkim
67dc4fb9f0 MFC: Use ETHER_BPF_MTAP() instead of BPF_MTAP(). 2007-03-02 19:19:31 +00:00
jhb
d15ff42ded MFC: Always protect the kthread flags with the lock and close a race with
module unload and kthread_exit().
2007-03-02 17:03:04 +00:00
csjp
017aa33028 MFC ether_vlan_mtap and modifications to em(4) which remove the
promisc mode hack while vlan hardware tag processing is enabled.

For all the details view the commitlog for the following files:

sys/net/ethernet.h revision 1.26
sys/net/if_ethersubr.c revision 1.220
sys/dev/em/if_em.c revision 1.165
2007-03-01 17:32:28 +00:00
rwatson
da61ddb4e0 Merge uipc_usrreq.c:1.183 from HEAD to RELENG_6:
Close a race that occurs when using sendto() to connect and send on a
  UNIX domain socket at the same time as the remote host is closing the
  new connections as quickly as they open.  Since the connect() and
  send() paths are non-atomic with respect to another, it is possible
  for the second thread's close() call to disconnect the two sockets
  as connect() returns, leading to the consumer (which plans to send())
  with a NULL kernel pointer to its proposed peer.  As a result, after
  acquiring the UNIX domain socket subsystem lock, we need to revalidate
  the connection pointers even though connect() has technically succeed,
  and reurn an error to say that there's no connection on which to
  perform the send.

  We might want to rethink the specific errno number, perhaps ECONNRESET
  would be better.

  Reported by:    Young Hyun <youngh at caida dot org>

PR:             100940
2007-03-01 11:07:18 +00:00
brueffer
0c4accedf4 MFC: rev. 1.29
Complete the support for altq(4).

Approved by:	rwatson (mentor)
2007-02-28 14:04:25 +00:00
kib
31bbfa289d 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.
2007-02-28 09:27:45 +00:00
kib
f6205ce3f9 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.
2007-02-28 09:26:53 +00:00
bms
af00f62b0a 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
2007-02-27 13:27:06 +00:00
n_hibma
f876e34691 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).
2007-02-27 12:15:51 +00:00
cognet
03d7a26664 MFC:
Teach the kernel and the ELF trampoline how to boot from onboard flash.
2007-02-27 00:27:50 +00:00
cognet
c23dfaf394 MFC:
make arm/disassem.c conditional on DDB.
2007-02-27 00:02:40 +00:00
cognet
21848b0cc8 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.
2007-02-26 23:33:07 +00:00
cognet
88c8fd1fdc MFC:
bounce pages for arm.
2007-02-26 23:23:31 +00:00
cognet
fe49e57ad3 MFC:
Use -EB for LD as well, if we're running big endian.
2007-02-26 23:18:21 +00:00
cognet
64734e694e 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
2007-02-26 23:17:51 +00:00
cognet
8b187cbd12 MFC support for the IXP425.
MFC work largely done by:	sam
2007-02-26 23:13:09 +00:00
cognet
032a727211 MFC:
Add CPU_XSCALE_IXP425
2007-02-26 23:10:16 +00:00
jhb
2f6d2004f4 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
2007-02-26 20:58:08 +00:00
jhb
5f8676f100 MFC: Add missing MIIBUS_MEDIAINIT() call. 2007-02-26 20:56:34 +00:00
jhb
1afdcc3412 MFC r1.47: Use mii_phy_dev_probe() to reduce diffs with HEAD. 2007-02-26 20:50:58 +00:00
cognet
aca523ed24 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.
2007-02-26 20:38:31 +00:00
cvs2svn
3703e9b9c6 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2007-02-26 02:04:25 +00:00
cognet
6a0309a716 MFC: Big endian support. 2007-02-26 01:05:01 +00:00
thompsa
e631434cab MFC r1.93
Move the lock init until after if_alloc in case the allocation fails and we                                                                 free the softc and return.
2007-02-26 00:33:06 +00:00
cognet
e48d7f48ed MFC (in preparation for IXP425 support):
Use the good prototype for bus_space_unmap().
Add stream operations.
2007-02-25 23:09:51 +00:00
cognet
33298bb8a4 MFC: remove useless ixp425_icu_init(). 2007-02-25 23:08:22 +00:00
marius
daa1d7ef35 MFC: 1.48
Fix typo in printf string.
2007-02-25 19:08:54 +00:00
marius
c266b6114e 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]
2007-02-25 19:02:01 +00:00
marius
c025acfb10 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.
2007-02-25 18:36:36 +00:00