]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
13 years agoCommit the missing linux_videdev2_compat.h (lost somewhere between
Alexander Leidinger [Wed, 4 May 2011 13:09:20 +0000 (13:09 +0000)]
Commit the missing linux_videdev2_compat.h (lost somewhere between
commit tree patch generation -> successful compile tree build test -> commmit).

Pointy hat to: netchild

13 years agoWhen checking existence of providers skip those which are orphaned.
Andrey V. Elsukov [Wed, 4 May 2011 12:59:11 +0000 (12:59 +0000)]
When checking existence of providers skip those which are orphaned.

PR: kern/132273
MFC after: 2 week

13 years agoThe security run requests unmaskable output, even if the only output is to
Alexander Leidinger [Wed, 4 May 2011 12:48:02 +0000 (12:48 +0000)]
The security run requests unmaskable output, even if the only output is to
tell that there is a separate email or that the output is logged to a file.

This commit changes the return code for the non-inline case to tell that
this message is not important enough and can be masked if necessary. The
messages from the security checks themself are not affected by this and
show up as before in the periodic security email/file.

The inline case still requests to not mask the output, as with the current
way of handling this there is no easy way to handle this.

PR: 138692
Analysis/patch atch by: Chris Cowart <ccowart@timesinks.net>
X-MFC after: on request

13 years agoRegression tests for Capsicum capability mode.
Jonathan Anderson [Wed, 4 May 2011 12:44:46 +0000 (12:44 +0000)]
Regression tests for Capsicum capability mode.

Ensure that system calls that access global namespaces, e.g. open(2), are not permitted, and that whitelisted sysctls like kern.osreldate are.

Approved by: rwatson
Sponsored by: Google, Inc.

13 years agoUse proper return codes (valuable output, invalid config, problems).
Alexander Leidinger [Wed, 4 May 2011 12:37:10 +0000 (12:37 +0000)]
Use proper return codes (valuable output, invalid config, problems).

MFC after: 1 week

13 years agoIn ncl_printf(), call vprintf() instead of printf().
Ruslan Ermilov [Wed, 4 May 2011 11:22:52 +0000 (11:22 +0000)]
In ncl_printf(), call vprintf() instead of printf().

MFC after: 3 days

13 years agoAdd FEATURE macros for v4l and v4l2 to the linuxulator.
Alexander Leidinger [Wed, 4 May 2011 09:52:34 +0000 (09:52 +0000)]
Add FEATURE macros for v4l and v4l2 to the linuxulator.

Suggested by: ae

13 years agoRemove this useless bit of code for Kite. The RIFS register value is overriden
Adrian Chadd [Wed, 4 May 2011 09:26:33 +0000 (09:26 +0000)]
Remove this useless bit of code for Kite. The RIFS register value is overriden
by the initvals, so disabling RIFS before calling writeIni() effectively does
nothing.

13 years agoThis is v4l2 support for the linuxulator. This allows to access FreeBSD
Alexander Leidinger [Wed, 4 May 2011 09:05:39 +0000 (09:05 +0000)]
This is v4l2 support for the linuxulator. This allows to access FreeBSD
native devices which support the v4l2 API from processes running within
the linuxulator, e.g. skype or flash can access the multimedia/pwcbsd
or multimedia/webcamd supplied drivers.

Submitted by: nox
MFC after: 1 month

13 years agoFix typo in comment, improve comment.
Alexander Leidinger [Wed, 4 May 2011 08:42:31 +0000 (08:42 +0000)]
Fix typo in comment, improve comment.

13 years agoAdd explanation about the use-permission and FreeBSDify it.
Alexander Leidinger [Wed, 4 May 2011 08:41:55 +0000 (08:41 +0000)]
Add explanation about the use-permission and FreeBSDify it.

13 years agoCopy the v4l2 header unchanged from the vendor branch.
Alexander Leidinger [Wed, 4 May 2011 08:31:58 +0000 (08:31 +0000)]
Copy the v4l2 header unchanged from the vendor branch.

13 years agoAdd the v4l2 header now that we have an use case for it.
Alexander Leidinger [Wed, 4 May 2011 08:21:24 +0000 (08:21 +0000)]
Add the v4l2 header now that we have an use case for it.

13 years agoUpgrade to OpenSSH 5.8p2.
Dag-Erling Smørgrav [Wed, 4 May 2011 07:34:44 +0000 (07:34 +0000)]
Upgrade to OpenSSH 5.8p2.

13 years agoMake sure to run make obj before release. Trying to run them in one step
Nathan Whitehorn [Wed, 4 May 2011 02:52:41 +0000 (02:52 +0000)]
Make sure to run make obj before release. Trying to run them in one step
doesn't always work reliably.

13 years agoFix some corner cases in the net80211 sequence number retransmission
Adrian Chadd [Wed, 4 May 2011 02:23:59 +0000 (02:23 +0000)]
Fix some corner cases in the net80211 sequence number retransmission
handling.

The current sequence number code does a few things incorrectly:

* It didn't try eliminating duplications from HT nodes. I guess it's assumed
  that out of order / retransmission handling would be handled by the AMPDU RX
  routines. If a HT node isn't doing AMPDU RX, then retransmissions need to
  be eliminated. Since most of my debugging is based on this (as AMPDU TX
  software packet aggregation isn't yet handled), handle this corner case.

* When a sequence number of 4095 was received, any subsequent sequence number
  is going to be (by definition) less than 4095. So if the following sequence
  number (0) doesn't initially occur and the retransmit is received, it's
  incorrectly eliminated by the IEEE80211_FC1_RETRY && SEQ_LEQ() check.
  Try to handle this better.

This almost completely eliminates out of order TCP statistics showing up during
iperf testing for the 11a, 11g and non-aggregate 11n AMPDU RX case. The only
other packet loss conditions leading to this are due to baseband resets or
heavy interference.

13 years agoRemove code with any effect.
Michael Tuexen [Tue, 3 May 2011 20:34:02 +0000 (20:34 +0000)]
Remove code with any effect.

13 years agoAdd a missing break. This bug was introduced in r221249.
Michael Tuexen [Tue, 3 May 2011 20:32:21 +0000 (20:32 +0000)]
Add a missing break. This bug was introduced in r221249.

MFC after: 1 week

13 years agoConvert the last use of xcopyout() to ddi_copyout() and remove the now
Marius Strobl [Tue, 3 May 2011 20:13:27 +0000 (20:13 +0000)]
Convert the last use of xcopyout() to ddi_copyout() and remove the now
unused xcopyin() as well as xcopyout().
MFC together with r219089.

Approved by: mm

13 years ago- Remove attempts to implement setting of BMCR_LOOP/MIIF_NOLOOP
Marius Strobl [Tue, 3 May 2011 19:51:29 +0000 (19:51 +0000)]
- Remove attempts to implement setting of BMCR_LOOP/MIIF_NOLOOP
  (reporting IFM_LOOP based on BMCR_LOOP is left in place though as
  it might provide useful for debugging). For most mii(4) drivers it
  was unclear whether the PHYs driven by them actually support
  loopback or not. Moreover, typically loopback mode also needs to
  be activated on the MAC, which none of the Ethernet drivers using
  mii(4) implements. Given that loopback media has no real use (and
  obviously hardly had a chance to actually work) besides for driver
  development (which just loopback mode should be sufficient for
  though, i.e one doesn't necessary need support for loopback media)
  support for it is just dropped as both NetBSD and OpenBSD already
  did quite some time ago.
- Let mii_phy_add_media() also announce the support of IFM_NONE.
- Restructure the PHY entry points to use a structure of entry points
  instead of discrete function pointers, and extend this to include
  a "reset" entry point. Make sure any PHY-specific reset routine is
  always used, and provide one for lxtphy(4) which disables MII
  interrupts (as is done for a few other PHYs we have drivers for).
  This includes changing NIC drivers which previously just called the
  generic mii_phy_reset() to now actually call the PHY-specific reset
  routine, which might be crucial in some cases. While at it, the
  redundant checks in these NIC drivers for mii->mii_instance not being
  zero before calling the reset routines were removed because as soon
  as one PHY driver attaches mii->mii_instance is incremented and we
  hardly can end up in their media change callbacks etc if no PHY driver
  has attached as mii_attach() would have failed in that case and not
  attach a miibus(4) instance.
  Consequently, NIC drivers now no longer should call mii_phy_reset()
  directly, so it was removed from EXPORT_SYMS.
- Add a mii_phy_dev_attach() as a companion helper to mii_phy_dev_probe().
  The purpose of that function is to perform the common steps to attach
  a PHY driver instance and to hook it up to the miibus(4) instance and to
  optionally also handle the probing, addition and initialization of the
  supported media. So all a PHY driver without any special requirements
  has to do in its bus attach method is to call mii_phy_dev_attach()
  along with PHY-specific MIIF_* flags, a pointer to its PHY functions
  and the add_media set to one. All PHY drivers were updated to take
  advantage of mii_phy_dev_attach() as appropriate. Along with these
  changes the capability mask was added to the mii_softc structure so
  PHY drivers taking advantage of mii_phy_dev_attach() but still
  handling media on their own do not need to fiddle with the MII attach
  arguments anyway.
- Keep track of the PHY offset in the mii_softc structure. This is done
  for compatibility with NetBSD/OpenBSD.
- Keep track of the PHY's OUI, model and revision in the mii_softc
  structure. Several PHY drivers require this information also after
  attaching and previously had to wrap their own softc around mii_softc.
  NetBSD/OpenBSD also keep track of the model and revision on their
  mii_softc structure. All PHY drivers were updated to take advantage
  as appropriate.
- Convert the mebers of the MII data structure to unsigned where
  appropriate. This is partly inspired by NetBSD/OpenBSD.
- According to IEEE 802.3-2002 the bits actually have to be reversed
  when mapping an OUI to the MII ID registers. All PHY drivers and
  miidevs where changed as necessary. Actually this now again allows to
  largely share miidevs with NetBSD, which fixed this problem already
  9 years ago. Consequently miidevs was synced as far as possible.
- Add MIIF_NOMANPAUSE and mii_phy_flowstatus() calls to drivers that
  weren't explicitly converted to support flow control before. It's
  unclear whether flow control actually works with these but typically
  it should and their net behavior should be more correct with these
  changes in place than without if the MAC driver sets MIIF_DOPAUSE.

Obtained from: NetBSD (partially)
Reviewed by: yongari (earlier version), silence on arch@ and net@

13 years agoFix prototype for ffsll(3) and fls(3).
Xin LI [Tue, 3 May 2011 19:33:06 +0000 (19:33 +0000)]
Fix prototype for ffsll(3) and fls(3).

PR: docs/156796
Submitted by: Jean-Yves Migeon <jeanyves.migeon free.fr>
MFC after: 3 days

13 years agoUse make_dev_alias_p() added in r221397 to create alias dev entry.
Alexander Motin [Tue, 3 May 2011 19:12:42 +0000 (19:12 +0000)]
Use make_dev_alias_p() added in r221397 to create alias dev entry.
It removes panic in case if alias name is already busy for some reason.

13 years agoDocument make_dev_alias_p().
Andrey V. Elsukov [Tue, 3 May 2011 18:55:16 +0000 (18:55 +0000)]
Document make_dev_alias_p().

MFC after: 2 weeks

13 years agoAdd make_dev_alias_p() function. It is similar to make_dev_alias(),
Andrey V. Elsukov [Tue, 3 May 2011 18:54:18 +0000 (18:54 +0000)]
Add make_dev_alias_p() function. It is similar to make_dev_alias(),
but it may return an error like make_dev_p() does.

Reviewed by: kib (previous version)
MFC after: 2 weeks

13 years agoEnable the new PCI-PCI bridge driver on amd64 and i386 by default. It can
John Baldwin [Tue, 3 May 2011 18:23:11 +0000 (18:23 +0000)]
Enable the new PCI-PCI bridge driver on amd64 and i386 by default.  It can
be disabled via 'nooptions NEW_PCIB'.

13 years agoReimplement how PCI-PCI bridges manage their I/O windows. Previously the
John Baldwin [Tue, 3 May 2011 17:37:24 +0000 (17:37 +0000)]
Reimplement how PCI-PCI bridges manage their I/O windows.  Previously the
driver would verify that requests for child devices were confined to any
existing I/O windows, but the driver relied on the firmware to initialize
the windows and would never grow the windows for new requests.  Now the
driver actively manages the I/O windows.

This is implemented by allocating a bus resource for each I/O window from
the parent PCI bus and suballocating that resource to child devices.  The
suballocations are managed by creating an rman for each I/O window.  The
suballocated resources are mapped by passing the bus_activate_resource()
call up to the parent PCI bus.  Windows are grown when needed by using
bus_adjust_resource() to adjust the resource allocated from the parent PCI
bus.  If the adjust request succeeds, the window is adjusted and the
suballocation request for the child device is retried.

When growing a window, the rman_first_free_region() and
rman_last_free_region() routines are used to determine if the front or
end of the existing I/O window is free.  From using that, the smallest
ranges that need to be added to either the front or back of the window
are computed.  The driver will first try to grow the window in whichever
direction requires the smallest growth first followed by the other
direction if that fails.

Subtractive bridges will first attempt to satisfy requests for child
resources from I/O windows (including attempts to grow the windows).  If
that fails, the request is passed up to the parent PCI bus directly
however.

The PCI-PCI bridge driver will try to use firmware-assigned ranges for
child BARs first and only allocate a "fresh" range if that specific range
cannot be accommodated in the I/O window.  This allows systems where the
firmware assigns resources during boot but later wipes the I/O windows
(some ACPI BIOSen are known to do this) to "rediscover" the original I/O
window ranges.

The ACPI Host-PCI bridge driver has been adjusted to correctly honor
hw.acpi.host_mem_start and the I/O port equivalent when a PCI-PCI bridge
makes a wildcard request for an I/O window range.

The new PCI-PCI bridge driver is only enabled if the NEW_PCIB kernel option
is enabled.  This is a transition aide to allow platforms that do not
yet support bus_activate_resource() and bus_adjust_resource() in their
Host-PCI bridge drivers (and possibly other drivers as needed) to use the
old driver for now.  Once all platforms support the new driver, the
kernel option and old driver will be removed.

PR: kern/143874 kern/149306
Tested by: mav

13 years agoGive some sort of message when the program is not run as root.
George V. Neville-Neil [Tue, 3 May 2011 16:00:36 +0000 (16:00 +0000)]
Give some sort of message when the program is not run as root.
Root privileges are required to talk to the device.

Submitted by: Sriram Rapuru at Wipro for Exar Inc.
MFC after: 2 weeks

13 years agoDon't pass empty mount options to nmount(2).
Jaakko Heinonen [Tue, 3 May 2011 16:00:26 +0000 (16:00 +0000)]
Don't pass empty mount options to nmount(2).

Reviewed by: pjd
MFC after: 2 weeks

13 years agoAdd in support for multicast.
George V. Neville-Neil [Tue, 3 May 2011 15:58:24 +0000 (15:58 +0000)]
Add in support for multicast.

Submitted by: Sriram Rapuru at @ Wipro for Exar Inc.
MFC after: 2 weeks

13 years agoSNDCTL_DSP_GETIPTR: set pointer to sndbuf_getfreeptr()
Andriy Gapon [Tue, 3 May 2011 15:50:22 +0000 (15:50 +0000)]
SNDCTL_DSP_GETIPTR: set pointer to sndbuf_getfreeptr()

Rationale:
- unlike current behavior this seems to be compliant with OSS
  specification:
  http://manuals.opensound.com/developer/SNDCTL_DSP_GETIPTR.html
- this seems to meet expectations of some OSS programs compiled for or
  ported from Linux, e.g. ALSA OSS plugin
- this doesn't seem to break any programs as far as current testing
  shows

Tested by: nox, hselasky
MFC after: 4 days

13 years agoAdd support for synthesizing an APM partition map to map Mac PowerPC
Nathan Whitehorn [Tue, 3 May 2011 15:12:01 +0000 (15:12 +0000)]
Add support for synthesizing an APM partition map to map Mac PowerPC
bootstrap partitions from the ISO9660 boot catalog. This preserves OS X's
ability to mount the CD, while allowing us a way to provide HFS-ified
bootstrap code for Open Firmware.

13 years agoFix stack smash problem in makeinfo, by increasing buffer sizes in
Dimitry Andric [Tue, 3 May 2011 14:43:16 +0000 (14:43 +0000)]
Fix stack smash problem in makeinfo, by increasing buffer sizes in
current_chapter_number().

13 years agoFixed the HISTORY section which was copied without editing from aio(4).
Ruslan Ermilov [Tue, 3 May 2011 13:34:40 +0000 (13:34 +0000)]
Fixed the HISTORY section which was copied without editing from aio(4).

Submitted by: Igor Sysoev

13 years agoDo not report legacy unit numbers (do not create legacy aliases) for disks
Alexander Motin [Tue, 3 May 2011 13:16:02 +0000 (13:16 +0000)]
Do not report legacy unit numbers (do not create legacy aliases) for disks
on port multiplier ports above first two. They don't fit into ATA_STATIC_ID
scheme and so can't be mapped properly. No need to pollute dev.

13 years agoFixed bad format and misorder.
Ruslan Ermilov [Tue, 3 May 2011 12:29:03 +0000 (12:29 +0000)]
Fixed bad format and misorder.

13 years agoUpdated `flags' field description.
Ruslan Ermilov [Tue, 3 May 2011 12:22:46 +0000 (12:22 +0000)]
Updated `flags' field description.

13 years agoUpdate to a 1-May-2011 release (except for the isblank change).
Ruslan Ermilov [Tue, 3 May 2011 11:47:19 +0000 (11:47 +0000)]
Update to a 1-May-2011 release (except for the isblank change).

13 years agoVendor import of bwk's 1-May-2011 release.
Ruslan Ermilov [Tue, 3 May 2011 11:37:03 +0000 (11:37 +0000)]
Vendor import of bwk's 1-May-2011 release.

13 years agoVendor import of OpenSSH 5.8p2
Dag-Erling Smørgrav [Tue, 3 May 2011 11:22:37 +0000 (11:22 +0000)]
Vendor import of OpenSSH 5.8p2

13 years agoCall pam_setcred() before login_getpwclass to support home directories
Doug Rabson [Tue, 3 May 2011 10:18:27 +0000 (10:18 +0000)]
Call pam_setcred() before login_getpwclass to support home directories
on GSS-API authenticated NFS where the kerberos credentials need to be
saved so that the kernel can authenticate to the NFS server.

13 years agoProperly detect interface's state in the LINK_STATE_UNKNOWN case.
Ruslan Ermilov [Tue, 3 May 2011 10:11:44 +0000 (10:11 +0000)]
Properly detect interface's state in the LINK_STATE_UNKNOWN case.

MFC after: 1 week

13 years agoDon't call -f option's argument "stdin".
Ruslan Ermilov [Tue, 3 May 2011 10:08:11 +0000 (10:08 +0000)]
Don't call -f option's argument "stdin".

MFC after: 3 days

13 years agoRename DEBUG macro to TFTP_DEBUG, to be more consistent with
Craig Rodrigues [Tue, 3 May 2011 07:46:02 +0000 (07:46 +0000)]
Rename DEBUG macro to TFTP_DEBUG, to be more consistent with
debug macros in other files.

13 years ago- Comment out unused variable.
Craig Rodrigues [Tue, 3 May 2011 07:43:47 +0000 (07:43 +0000)]
- Comment out unused variable.
- Add parentheses around expression to eliminate compiler warning.

13 years agoAdd #include <netinet/in_pcb.h> for missing forward declation of
Craig Rodrigues [Tue, 3 May 2011 07:39:54 +0000 (07:39 +0000)]
Add #include <netinet/in_pcb.h> for missing forward declation of
struct inpcb.

13 years agoAdd "-a alignment" option to gpart(8). When it specified gpart(8)
Andrey V. Elsukov [Tue, 3 May 2011 07:33:39 +0000 (07:33 +0000)]
Add "-a alignment" option to gpart(8). When it specified gpart(8)
tries to align partition start offset and size to be multiple of
alignment value.

MFC after: 2 weeks

13 years agoChange the way rctl interfaces with jails by introducing prison_racct
Edward Tomasz Napierala [Tue, 3 May 2011 07:32:58 +0000 (07:32 +0000)]
Change the way rctl interfaces with jails by introducing prison_racct
structure, which acts as a proxy between them.  This makes jail rules
persistent, i.e. they can be added before jail gets created, and they
don't disappear when the jail gets destroyed.

13 years agoSwitch to ANSI function prototypes in a few places.
Craig Rodrigues [Tue, 3 May 2011 04:44:50 +0000 (04:44 +0000)]
Switch to ANSI function prototypes in a few places.
Get rid of some unused parameter warnings.

13 years agoFix corner case where the size is a power of two.
Marcel Moolenaar [Tue, 3 May 2011 01:43:04 +0000 (01:43 +0000)]
Fix corner case where the size is a power of two.

13 years ago- Fixed a typo in an if() statement when setting flow control for MTU
David Christensen [Mon, 2 May 2011 23:34:33 +0000 (23:34 +0000)]
- Fixed a typo in an if() statement when setting flow control for MTU
  greater than 5000 bytes.

Submitted by: yongari

13 years agoAdd LINT-NOINET6 which we have inofficially supported for years
Bjoern A. Zeeb [Mon, 2 May 2011 22:54:24 +0000 (22:54 +0000)]
Add LINT-NOINET6 which we have inofficially supported for years
and our users complained when broken.
Similarly add LINT-NOINET, and for at least documentation purposes add
LINT-NOIP (which compiles out INET and INET6 and couple of NIC drivers).

Tested by: make universe (if you broke it since you fix it)
Reviewed by: gnn
Sponsored by: The FreeBSD Foundation
Sponsored by: iXsystems
MFC after: 2 weeks

13 years agoClang r130700 can now compile sys/boot/i386/boot2 with room to spare.
Dimitry Andric [Mon, 2 May 2011 21:13:08 +0000 (21:13 +0000)]
Clang r130700 can now compile sys/boot/i386/boot2 with room to spare.

13 years agoMinor updates to the clang and tblgen manpages.
Dimitry Andric [Mon, 2 May 2011 21:10:13 +0000 (21:10 +0000)]
Minor updates to the clang and tblgen manpages.

13 years agoHandle a rare edge case with nearly full TCP receive buffers. If a TCP
John Baldwin [Mon, 2 May 2011 21:05:52 +0000 (21:05 +0000)]
Handle a rare edge case with nearly full TCP receive buffers.  If a TCP
buffer fills up causing the remote sender to enter into persist mode, but
there is still room available in the receive buffer when a window probe
arrives (either due to window scaling, or due to the local application
very slowing draining data from the receive buffer), then the single byte
of data in the window probe is accepted.  However, this can cause rcv_nxt
to be greater than rcv_adv.  This condition will only last until the next
ACK packet is pushed out via tcp_output(), and since the previous ACK
advertised a zero window, the ACK should be pushed out while the TCP
pcb is write-locked.

During the window while rcv_nxt is greather than rcv_adv, a few places
would compute the remaining receive window via rcv_adv - rcv_nxt.
However, this value was then (uint32_t)-1.  On a 64 bit machine this
could expand to a positive 2^32 - 1 when cast to a long.  In particular,
when calculating the receive window in tcp_output(), the result would be
that the receive window was computed as 2^32 - 1 resulting in advertising
a far larger window to the remote peer than actually existed.

Fix various places that compute the remaining receive window to either
assert that it is not negative (i.e. rcv_nxt <= rcv_adv), or treat the
window as full if rcv_nxt is greather than rcv_adv.

Reviewed by: bz
MFC after: 1 month

13 years agoUpgrade our copy of llvm/clang to r130700, from upstream's trunk.
Dimitry Andric [Mon, 2 May 2011 21:04:37 +0000 (21:04 +0000)]
Upgrade our copy of llvm/clang to r130700, from upstream's trunk.

13 years agoCorrect spelling in comments.
Marius Strobl [Mon, 2 May 2011 21:04:23 +0000 (21:04 +0000)]
Correct spelling in comments.

Submitted by: brucec

13 years agoFix an logic bug which caused jumbo buffers to not be synced.
Marius Strobl [Mon, 2 May 2011 20:45:19 +0000 (20:45 +0000)]
Fix an logic bug which caused jumbo buffers to not be synced.
Reported and tested by: Michael Moll

MFC after: 3 days

13 years ago- Re-committed r220603 which was accidentally backed out by an earlier
David Christensen [Mon, 2 May 2011 20:43:24 +0000 (20:43 +0000)]
- Re-committed r220603 which was accidentally backed out by an earlier
  commit.
- Fixed a bug in an unused debug macro.

MFC after: One week.

13 years agoProbe the PHY accompanying BCM57765.
Marius Strobl [Mon, 2 May 2011 20:37:30 +0000 (20:37 +0000)]
Probe the PHY accompanying BCM57765.
Tested by: Paul Thornton

MFC after: 1 week

13 years agoVendor import of clang trunk r130700:
Dimitry Andric [Mon, 2 May 2011 19:39:53 +0000 (19:39 +0000)]
Vendor import of clang trunk r130700:
http://llvm.org/svn/llvm-project/cfe/trunk@130700

13 years agoVendor import of llvm trunk r130700:
Dimitry Andric [Mon, 2 May 2011 19:34:44 +0000 (19:34 +0000)]
Vendor import of llvm trunk r130700:
http://llvm.org/svn/llvm-project/llvm/trunk@130700

13 years agoThe ACPI Host-PCI bridge driver actually supports multiple domains via
John Baldwin [Mon, 2 May 2011 19:02:30 +0000 (19:02 +0000)]
The ACPI Host-PCI bridge driver actually supports multiple domains via
the optional _SEG function.  Return that value (ap->segment) rather than
0 for the pcib domain ivar.

13 years agoCorrect a typo. According to Intel document 318914, the Tj(max) for Core 2
Xin LI [Mon, 2 May 2011 18:41:54 +0000 (18:41 +0000)]
Correct a typo.  According to Intel document 318914, the Tj(max) for Core 2
Duo Mobile CPUs should be 105.

Noticed by: Mark Johnston <markjdb gmail.com>
MFC after: 3 days

13 years agoDon't use the whole region 5 for KVA, because the CPU may not implement all
Marcel Moolenaar [Mon, 2 May 2011 17:49:05 +0000 (17:49 +0000)]
Don't use the whole region 5 for KVA, because the CPU may not implement all
of the 61 bits available within the region for virtual addressing.  Since
there's no good way for us to map out the gap in the virtual address space,
limit KVA to the architectural minimum implemented address bits. This still
gives us 1 petabyte of KVA, so no worries.

13 years agoRemove usr/include/nfs/krpc.h and usr/include/nfs/nfsdiskless.h from
Dimitry Andric [Mon, 2 May 2011 17:46:59 +0000 (17:46 +0000)]
Remove usr/include/nfs/krpc.h and usr/include/nfs/nfsdiskless.h from
ObsoleteFiles.inc, since these files have been reincarnated in the new
NFS implementation.

Reviewed by: rmacklem

13 years agoFix build with clang. Please note there is an LLVM/Clang PR:
Jung-uk Kim [Mon, 2 May 2011 17:08:36 +0000 (17:08 +0000)]
Fix build with clang.  Please note there is an LLVM/Clang PR:

http://llvm.org/bugs/show_bug.cgi?id=9379

Reported by: rpaulo, dim

13 years agoAll PCI based wireless drivers seem to be explicitly removed from the
Bernhard Schmidt [Mon, 2 May 2011 16:51:02 +0000 (16:51 +0000)]
All PCI based wireless drivers seem to be explicitly removed from the
PAE kernel config, do that also for those added to GENERIC lately.

13 years agoSome more cleanups related to an kernel without INET.
Michael Tuexen [Mon, 2 May 2011 15:53:00 +0000 (15:53 +0000)]
Some more cleanups related to an kernel without INET.

MFC after: 1 week

13 years agoDon't explicitly list pci_write_ivar() for bus_write_ivar, the method is
John Baldwin [Mon, 2 May 2011 15:01:28 +0000 (15:01 +0000)]
Don't explicitly list pci_write_ivar() for bus_write_ivar, the method is
already inherited from the PCI bus driver.

13 years agoAdd an entry for the Kuroutoshikou SERIAL4P-LPPCI2 which uses an Oxford
John Baldwin [Mon, 2 May 2011 14:34:03 +0000 (14:34 +0000)]
Add an entry for the Kuroutoshikou SERIAL4P-LPPCI2 which uses an Oxford
4 port chip but with a nonstandard clock.

PR: kern/104212
Submitted by: Shuichi KITAGUCHI  kit of ysnb net
MFC after: 1 week

13 years agoAdd implementations of BUS_ADJUST_RESOURCE() to the PCI bus driver,
John Baldwin [Mon, 2 May 2011 14:13:12 +0000 (14:13 +0000)]
Add implementations of BUS_ADJUST_RESOURCE() to the PCI bus driver,
generic PCI-PCI bridge driver, x86 nexus driver, and x86 Host to PCI bridge
drivers.

13 years agoAdd in the work-around for the AR8316 gige switch PHY.
Adrian Chadd [Mon, 2 May 2011 10:42:19 +0000 (10:42 +0000)]
Add in the work-around for the AR8316 gige switch PHY.

This allows the ethernet to function on the PB92 board.

Submitted by: Luiz Otavio O Souza

13 years agoAdd -Wmissing-include-dirs to CWARNFLAGS, so tinderbox will punish those
Rebecca Cran [Mon, 2 May 2011 10:35:27 +0000 (10:35 +0000)]
Add -Wmissing-include-dirs to CWARNFLAGS, so tinderbox will punish those
developers committing new code with broken include directories.
Fix a few whitespace issues.
Improve a couple of comments.
-W is now deprecated and is referred to as -Wextra (see gcc(1)).

Submitted by: arundel

13 years agoo OpenBSD 4.9 added.
Maxim Konovalov [Mon, 2 May 2011 09:47:13 +0000 (09:47 +0000)]
o OpenBSD 4.9 added.

13 years agoAdd documentation to sys/conf/options pointing out that AH_SUPPORT_AR9130
Adrian Chadd [Mon, 2 May 2011 05:39:43 +0000 (05:39 +0000)]
Add documentation to sys/conf/options pointing out that AH_SUPPORT_AR9130
shouldn't be enabled by default unless you're truely building for the
AR913x platform.

13 years agoFix nfsstat.1 to indicate that "-z" now works for
Rick Macklem [Sun, 1 May 2011 23:55:56 +0000 (23:55 +0000)]
Fix nfsstat.1 to indicate that "-z" now works for
the new NFS subsystems after r221308.
This is a content change.

MFC after: 2 weeks

13 years agoFix nfsstat so that the "-z" option works for the
Rick Macklem [Sun, 1 May 2011 23:41:35 +0000 (23:41 +0000)]
Fix nfsstat so that the "-z" option works for the
new NFS subsystem.

MFC after: 2 weeks

13 years agoSome AR724x PCIe fixes, which should wrap up the first round
Adrian Chadd [Sun, 1 May 2011 23:32:37 +0000 (23:32 +0000)]
Some AR724x PCIe fixes, which should wrap up the first round
of endian-ness issues with the AR724x.

From Luiz:

* Fix the bus space tag used so endian-ness is correctly handled;
* Only do the workaround for the AR7240; AR7241/AR7242 (PB92)
  don't require this

From me:

* Add a read flush from openwrt

Submitted by: Luiz Otavio O Souza

13 years agoAdd the kernel support needed to zero out the nfsstats
Rick Macklem [Sun, 1 May 2011 22:19:52 +0000 (22:19 +0000)]
Add the kernel support needed to zero out the nfsstats
structure for the new NFS subsystem. This will be used
by nfsstats.c to implement the "-z" option.

MFC after: 2 weeks

13 years agoMinor cleanup.
Christian Brueffer [Sun, 1 May 2011 20:46:37 +0000 (20:46 +0000)]
Minor cleanup.

13 years agorecoverdisk(8): treat output file consistently and abort on EINVAL
Ulrich Spörlein [Sun, 1 May 2011 20:14:10 +0000 (20:14 +0000)]
recoverdisk(8): treat output file consistently and abort on EINVAL

This improves usability a little as we no longer require using touch.
Also reword the manpage wrt. parameters and fix usage() [1]

With no media in a cd(4) drive, the reads will loop producing EINVAL,
abort in that case [2].

Document the shortcoming of sectorsize and MAXPHYS (a quick solution
to this might be having MAXPHYS as the "bigsize", in short testing it
didn't make a difference on throughput).

Submitted by: arundel [1]
PR: bin/154528 [2]

13 years agoLet users' PATH decide which groff suite to pick up.
Ulrich Spörlein [Sun, 1 May 2011 19:47:34 +0000 (19:47 +0000)]
Let users' PATH decide which groff suite to pick up.

Let groff pass the -c flag to grotty, which will turn off ANSI
sequences. While these are not a problem for our more/less, they get
mangled by col(1) and this will result in garbage output.

This makes man(1) work together with textproc/groff, in case the
user decided to delete the old groff from base (-DWITHOUT_GROFF).

13 years agoThese are of course i386/amd64 only.
Bernhard Schmidt [Sun, 1 May 2011 19:05:54 +0000 (19:05 +0000)]
These are of course i386/amd64 only.

13 years agoAdd files for wpi(4)
Bernhard Schmidt [Sun, 1 May 2011 18:42:56 +0000 (18:42 +0000)]
Add files for wpi(4)

13 years agoNo need for htole32(), which is an uint8_t.
Bernhard Schmidt [Sun, 1 May 2011 18:41:57 +0000 (18:41 +0000)]
No need for htole32(), which is an uint8_t.

13 years agoFix typo in manpage resolvconf.conf(5).
Hajimu UMEMOTO [Sun, 1 May 2011 15:46:18 +0000 (15:46 +0000)]
Fix typo in manpage resolvconf.conf(5).

PR: docs/156494
Submitted by: bcr
Requested by: bcr
Obtained from: http://roy.marples.name/projects/openresolv/ticket/12

13 years agoAdd the remaining wireless drivers.
Bernhard Schmidt [Sun, 1 May 2011 13:26:34 +0000 (13:26 +0000)]
Add the remaining wireless drivers.

Discussed with: joel

13 years agoFix the Makefile for mount_nfs so that it creates a
Rick Macklem [Sun, 1 May 2011 01:34:22 +0000 (01:34 +0000)]
Fix the Makefile for mount_nfs so that it creates a
link for mount_oldnfs.8 instead of mount_newnfs.8.

13 years agoAdd ChangeLog.gcc43 for backported changes from gcc 4.3
Martin Matuska [Sat, 30 Apr 2011 23:00:41 +0000 (23:00 +0000)]
Add ChangeLog.gcc43 for backported changes from gcc 4.3

MFC after: 3 days

13 years agoFix typos.
Konstantin Belousov [Sat, 30 Apr 2011 22:46:02 +0000 (22:46 +0000)]
Fix typos.

Noted by: Fabian Keil <freebsd-listen fabiankeil de>
Pointy hat to: kib
MFC after: 1 week

13 years agoStop linking against a direct-mapped virtual address and instead
Marcel Moolenaar [Sat, 30 Apr 2011 20:49:00 +0000 (20:49 +0000)]
Stop linking against a direct-mapped virtual address and instead
use the PBVM. This eliminates the implied hardcoding of the
physical address at which the kernel needs to be loaded. Using the
PBVM makes it possible to load the kernel irrespective of the
physical memory organization and allows us to replicate kernel text
on NUMA machines.

While here, reduce the direct-mapped page size to the kernel's
page size so that we can support memory attributes better.

13 years agoLACP frames must not be send VLAN-tagged, check for that before processing.
Andrew Thompson [Sat, 30 Apr 2011 20:34:52 +0000 (20:34 +0000)]
LACP frames must not be send VLAN-tagged, check for that before processing.

PR: kern/156743
Submitted by: Dmitrij Tejblum
MFC after: 1 week

13 years agoTurn PBVM page table entries into PTEs so that they can be inserted
Marcel Moolenaar [Sat, 30 Apr 2011 20:16:49 +0000 (20:16 +0000)]
Turn PBVM page table entries into PTEs so that they can be inserted
into the TLB as-is.

While here, have ia64_platform_alloc() return ~0UL on failure.

13 years agoUpdate carp, gre and pf module builds to be depenent on INET and/or
Bjoern A. Zeeb [Sat, 30 Apr 2011 17:59:54 +0000 (17:59 +0000)]
Update carp, gre and pf module builds to be depenent on INET and/or
INET6_SUPPORT.

Reviewed by: gnn (slightly earlier version without pf)
Sponsored by: The FreeBSD Foundation
Sponsored by: iXsystems
MFC after: 2 weeks

13 years agoIntroduce two new options MK_INET and MK_INET_SUPPORT analogically
Bjoern A. Zeeb [Sat, 30 Apr 2011 17:58:28 +0000 (17:58 +0000)]
Introduce two new options MK_INET and MK_INET_SUPPORT analogically
with INET6 equivalents. Patch reather than re-genenerating src.conf
(given the current problem with the script that does the re-gen).

Reviewed by: gnn
Sponsored by: The FreeBSD Foundation
Sponsored by: iXsystems
MFC after: 2 weeks

13 years agoAllow MKMODULESENV being preset from other sources like makeoptions
Bjoern A. Zeeb [Sat, 30 Apr 2011 17:51:39 +0000 (17:51 +0000)]
Allow MKMODULESENV being preset from other sources like makeoptions
kernel configurations to apply WITH_* WITHOUT_* knobs we use for
module building as well to restrict or control opt_*.h flags.

Reviewed by: imp, +
Sponsored by: The FreeBSD Foundation
Sponsored by: iXsystems
MFC after: 2 weeks

13 years agoFix a mismerge from p4 in that in_localaddr() is not available without INET.
Bjoern A. Zeeb [Sat, 30 Apr 2011 16:30:18 +0000 (16:30 +0000)]
Fix a mismerge from p4 in that in_localaddr() is not available without INET.

Sponsored by: The FreeBSD Foundation
Sponsored by: iXsystems
MFC after: 4 days

13 years agoFix deduplicated zfs receive
Martin Matuska [Sat, 30 Apr 2011 14:52:49 +0000 (14:52 +0000)]
Fix deduplicated zfs receive
(dmu_recv_stream builds incomplete guid_to_ds_map)

Illumos-gate changeset: 13329:c48b8bf84ab7
MFC together with v28

Approved by: pjd
Obtained from: Illumos (Bug #755)

13 years agoFis a problem with r221258 that mac is still needed in case for ient6 only
Bjoern A. Zeeb [Sat, 30 Apr 2011 14:22:45 +0000 (14:22 +0000)]
Fis a problem with r221258 that mac is still needed in case for ient6 only
for mac_inet.c.

Reported by: Luiz Otavio O Souza (lists.br gmail.com)
MFC after: 4 days

13 years agoClarify the comment.
Konstantin Belousov [Sat, 30 Apr 2011 13:49:03 +0000 (13:49 +0000)]
Clarify the comment.

MFC after: 1 week