]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
10 years agoRegen.
Roman Divacky [Wed, 18 Sep 2013 17:58:03 +0000 (17:58 +0000)]
Regen.

Approved by:    re (delphij)

10 years agoImplement epoll support in Linuxulator. This is a tiny wrapper around kqueue
Roman Divacky [Wed, 18 Sep 2013 17:56:04 +0000 (17:56 +0000)]
Implement epoll support in Linuxulator. This is a tiny wrapper around kqueue
to implement epoll subset of functionality. The kqueue user data are 32bit
on i386 which is not enough for epoll user data so this patch overrides
kqueue fileops to maintain enough space in struct file.

Initial patch developed by me in 2007 and then extended and finished
by Yuri Victorovich.

Approved by:    re (delphij)
Sponsored by:   Google Summer of Code
Submitted by:   Yuri Victorovich <yuri at rawbw dot com>
Tested by:      Yuri Victorovich <yuri at rawbw dot com>

10 years agoMake iscsictl(8) automatically try to load the iscsi module. While here,
Edward Tomasz Napierala [Wed, 18 Sep 2013 08:37:14 +0000 (08:37 +0000)]
Make iscsictl(8) automatically try to load the iscsi module.  While here,
improve module loading in iscsid(8) and ctld(8).

Approved by: re (delphij)

10 years agomdoc: sort SEE ALSO.
Joel Dahl [Wed, 18 Sep 2013 04:44:54 +0000 (04:44 +0000)]
mdoc: sort SEE ALSO.

Approved by: re (blanket)

10 years agoFix 'make installcheck' to check for missing UID/GID as well, broken
Bryan Drewery [Wed, 18 Sep 2013 00:33:24 +0000 (00:33 +0000)]
Fix 'make installcheck' to check for missing UID/GID as well, broken
since r249893, by adding a separate _installcheck_world and
_installcheck_kernel so the destination targets can be more explicit
on which they are needed for.

installcheck will call both, while installworld only calls
_installcheck_world and installkernel only calls _installcheck_kernel

While here, mark the internal targets as starting with _.

Reported by: des
Reviewed by: des
Pointyhat to: bdrewery
Approved by: re (delphij)

10 years agoBring in configuration for Buffalo Airstation WZR-300HP, Atheros based
Sean Bruno [Tue, 17 Sep 2013 22:26:07 +0000 (22:26 +0000)]
Bring in configuration for Buffalo Airstation WZR-300HP, Atheros based
wireless home router.

Notable things:
2x 16 MB flash devices
Atheros Wireless
Atheros Switching

Many thanks to adrian@ for his guidance on this and keeping the drivers in
the base system up to date

Approved by:    re (delphij)

10 years agoRegenerate for freebsd32_cap_enter().
Jilles Tjoelker [Tue, 17 Sep 2013 20:49:05 +0000 (20:49 +0000)]
Regenerate for freebsd32_cap_enter().

Approved by: re (hrs)

10 years agoDisallow cap_enter() in freebsd32 compatibility mode.
Jilles Tjoelker [Tue, 17 Sep 2013 20:48:19 +0000 (20:48 +0000)]
Disallow cap_enter() in freebsd32 compatibility mode.

The freebsd32 compatibility mode (for running 32-bit binaries on 64-bit
kernels) does not currently allow any system calls in capability mode, but
still permits cap_enter(). As a result, 32-bit binaries on 64-bit kernels
that use capability mode do not work (they crash after being disallowed to
call sys_exit()). Affected binaries include dhclient and uniq. The latter's
crashes cause obscure build failures.

This commit makes freebsd32 cap_enter() fail with [ENOSYS], as if capability
mode was not compiled in. Applications deal with this by doing their work
without capability mode.

This commit does not fix the uncommon situation where a 64-bit process
enters capability mode and then executes a 32-bit binary using fexecve().

This commit should be reverted when allowing the necessary freebsd32 system
calls in capability mode.

Reviewed by: pjd
Approved by: re (hrs)

10 years agoWe have grown a bit too big lately. Shrinking the kernel for TP-Link
Hiren Panchasara [Tue, 17 Sep 2013 20:33:42 +0000 (20:33 +0000)]
We have grown a bit too big lately. Shrinking the kernel for TP-Link
TL-WR1043ND.

Submitted by:   loos (initial version)
Reviewed by:    adrian
Approved by:    sbruno (mentor, implicit)
Approved by: re (delphij)
Tested by:      hiren

10 years agoAdd EXAMPLES section to explain the format of fstab(5).
Hiroki Sato [Tue, 17 Sep 2013 20:25:29 +0000 (20:25 +0000)]
Add EXAMPLES section to explain the format of fstab(5).

Approved by: re (marius)
Reviewed by: wblock

10 years ago- Fix pidfile handling in sendmail_msp_queue. The pidfile was ignored
Hiroki Sato [Tue, 17 Sep 2013 20:24:03 +0000 (20:24 +0000)]
- Fix pidfile handling in sendmail_msp_queue.  The pidfile was ignored
  and multiple instances were invoked by start/stop cycles.

- Remove redundant start_cmd rewrite.

Approved by: re (gjb)
Tested by: jmg

10 years agoFix parsing lines of ifconfig output which include \t in the case of
Hiroki Sato [Tue, 17 Sep 2013 20:22:24 +0000 (20:22 +0000)]
Fix parsing lines of ifconfig output which include \t in the case of
inet and inet6.

Approved by: re (delphij)

10 years agoRemove description "ifconfig_IF_aliasN is deprecated". While this
Hiroki Sato [Tue, 17 Sep 2013 20:20:04 +0000 (20:20 +0000)]
Remove description "ifconfig_IF_aliasN is deprecated".  While this
sentence was added in 2005, many users still need it.

Approved by: re (gjb)
PR: docs/162354

10 years agoshare/i18n: Fix installworld with read-only obj.
Jilles Tjoelker [Tue, 17 Sep 2013 20:09:25 +0000 (20:09 +0000)]
share/i18n: Fix installworld with read-only obj.

Since iconv was enabled (r254273, August 13), it has been impossible to
installworld using a read-only obj tree. This is common with NFS. Parts of
share/i18n unconditionally rebuild files like mapper.dir during
installation.

This patch ensures the files like mapper.dir are not rewritten with the same
contents.

Tested by: joel
Approved by: re (hrs)

10 years agoFix a typo when accounting for tx_broadcast statistics.
Xin LI [Tue, 17 Sep 2013 18:46:10 +0000 (18:46 +0000)]
Fix a typo when accounting for tx_broadcast statistics.

Submitted by: Paul A. Patience <paul-a patience polymtl ca>
MFC after: 2 weeks
Approved by: re (hrs)

10 years agoPass the number of supported vectors to pci_emul_add_msicap() and
Peter Grehan [Tue, 17 Sep 2013 18:42:13 +0000 (18:42 +0000)]
Pass the number of supported vectors to pci_emul_add_msicap() and
not the actual PCI BAR number.

Reviewed by: neel
Approved by: re@ (blanket)

10 years agopsm: Update "struct synapticshw" in psm(4) man page
Jean-Sébastien Pédron [Tue, 17 Sep 2013 18:41:32 +0000 (18:41 +0000)]
psm: Update "struct synapticshw" in psm(4) man page

This structure was updated in r255153 and r255154.

PR: kern/170834
Approved by: re (hrs)

10 years agoHide TSC-deadline APIC timer support from guests. This mode
Peter Grehan [Tue, 17 Sep 2013 17:56:53 +0000 (17:56 +0000)]
Hide TSC-deadline APIC timer support from guests. This mode
isn't yet implemented in bhyve's APIC emulation.

Reviewed by: neel
Approved by: re@ (blanket)

10 years agoMerge in support for PAPR-compliant (Power Architecture Platform
Nathan Whitehorn [Tue, 17 Sep 2013 17:37:04 +0000 (17:37 +0000)]
Merge in support for PAPR-compliant (Power Architecture Platform
Requirements) systems from the projects/pseries branch. This in principle
includes all IBM POWER hardware released in the last 15 years with the
exception of POWER3-based systems when run in 64-bit mode. The main
development target, however, has been the PAPR logical partition support
that is the default target in KVM on POWER and QEMU -- mileage may vary
on actual hardware at present. Much of the heavy lifting here was done
by Andreas Tobler.

Approved by: re (kib)

10 years agoOnly attach if properties we need (address, in particular) are present.
Nathan Whitehorn [Tue, 17 Sep 2013 17:31:53 +0000 (17:31 +0000)]
Only attach if properties we need (address, in particular) are present.
This is the correct version of r255420.

Approved by: re (kib)

10 years agoCDs are not partitioned, so this is not correct syntax for loading from
Nathan Whitehorn [Tue, 17 Sep 2013 17:30:49 +0000 (17:30 +0000)]
CDs are not partitioned, so this is not correct syntax for loading from
ISO 9660. Omit the partition ID.

Approved by: re (kib)
MFC after: 2 weeks

10 years agoAdd POWER7+ and POWER8 to the CPU ID table.
Nathan Whitehorn [Tue, 17 Sep 2013 17:29:56 +0000 (17:29 +0000)]
Add POWER7+ and POWER8 to the CPU ID table.

Approved by: re (kib)

10 years agoMake sure to copy segments back to the segs array if non-NULL. This is
Nathan Whitehorn [Tue, 17 Sep 2013 17:29:07 +0000 (17:29 +0000)]
Make sure to copy segments back to the segs array if non-NULL. This is
relied upon by bus_dmamap_load_mbuf_sg() (i.e. all network drivers).

Approved by: re (kib)
MFC after: 2 weeks

10 years agoFix a bug in decoding an instruction that has an SIB byte as well as an
Neel Natu [Tue, 17 Sep 2013 16:06:07 +0000 (16:06 +0000)]
Fix a bug in decoding an instruction that has an SIB byte as well as an
immediate operand. The presence of an SIB byte in decoding the ModR/M field
would cause 'imm_bytes' to not be set to the correct value.

Fix this by initializing 'imm_bytes' independent of the ModR/M decoding.

Reported by: grehan@
Approved by: re@

10 years agoDon't attempt to build ports with missing dependencies.
Poul-Henning Kamp [Tue, 17 Sep 2013 15:19:26 +0000 (15:19 +0000)]
Don't attempt to build ports with missing dependencies.

Approved by: re (gjb)

10 years agoImprove iSCSI address resolution, fixing "InitiatorAddress" handling,
Edward Tomasz Napierala [Tue, 17 Sep 2013 14:23:15 +0000 (14:23 +0000)]
Improve iSCSI address resolution, fixing "InitiatorAddress" handling,
and error reporting.

Approved by: re (kib)

10 years agoExplicitly require Security Officer's approval for kernel PRNG bits.
Edward Tomasz Napierala [Tue, 17 Sep 2013 14:19:05 +0000 (14:19 +0000)]
Explicitly require Security Officer's approval for kernel PRNG bits.

Note that there is ongoing discussion about approval requirement
for userland PRNG bits.

Reviewed by: so (des)
Approved by: core (jhb)
Approved by: re (gjb)

10 years agoAdd unbound to the list of UIDs / GIDs to check fore before installing.
Dag-Erling Smørgrav [Tue, 17 Sep 2013 12:59:37 +0000 (12:59 +0000)]
Add unbound to the list of UIDs / GIDs to check fore before installing.

Approved by: re (blanket)

10 years agoAssume that the -f argument is /dev/gpioc0 if it is not passed.
Sean Bruno [Tue, 17 Sep 2013 11:48:47 +0000 (11:48 +0000)]
Assume that the -f argument is /dev/gpioc0 if it is not passed.

hrs@ provided this verison of the patch and showed me where all the needed
changes were to be made outside of gpioctl.c

Approved by: re (hrs)
MFC after: 2 weeks

10 years agoSet the correct path for LIBUNBOUND.
Dag-Erling Smørgrav [Tue, 17 Sep 2013 07:41:08 +0000 (07:41 +0000)]
Set the correct path for LIBUNBOUND.

Approved by: re (blanket)

10 years agoPG_SLAB no longer serves a useful purpose, since m->object is no
Konstantin Belousov [Tue, 17 Sep 2013 07:35:26 +0000 (07:35 +0000)]
PG_SLAB no longer serves a useful purpose, since m->object is no
longer abused to store pointer to slab. Remove it.

Reviewed by:    alc
Sponsored by:   The FreeBSD Foundation
Approved by: re (hrs)

10 years ago Fix assertion in sendfile_readpage() to assert only the validity
Gleb Smirnoff [Tue, 17 Sep 2013 06:37:21 +0000 (06:37 +0000)]
  Fix assertion in sendfile_readpage() to assert only the validity
of requested amount of data in a page. Move assertion down below
object unlock.

Approved by: re (kib)
Sponsored by: Nginx, Inc.
Sponsored by: Netflix

10 years ago- Reword the 20121201 entry.
Glen Barber [Tue, 17 Sep 2013 04:24:34 +0000 (04:24 +0000)]
- Reword the 20121201 entry.
- Clean up minor whitespace nit.

Approved by: re (hrs)
Sponsored by: The FreeBSD Foundation

10 years agoAdd vmx(4) to i386 and amd64 GENERIC
Bryan Venteicher [Tue, 17 Sep 2013 01:54:13 +0000 (01:54 +0000)]
Add vmx(4) to i386 and amd64 GENERIC

Approved by: re (gjb)

10 years agoDocument that the 'unbound' user is required for installworld since
Glen Barber [Tue, 17 Sep 2013 00:13:42 +0000 (00:13 +0000)]
Document that the 'unbound' user is required for installworld since
the import of ldns/unbound.

Approved by: re (delphij)
Sponsored by: The FreeBSD Foundation

10 years agoMerge the change r255607 from amd64 to i386.
Konstantin Belousov [Mon, 16 Sep 2013 19:58:37 +0000 (19:58 +0000)]
Merge the change r255607 from amd64 to i386.

Reviewed by: alc
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Approved by: re (gjb)

10 years agoUpdate head/ to -ALPHA2 status.
Glen Barber [Mon, 16 Sep 2013 19:29:18 +0000 (19:29 +0000)]
Update head/ to -ALPHA2 status.

Approved by: re (implicit)

10 years agoAdd a loader tunable to use only device tree-provided PCI devices. This is
Nathan Whitehorn [Mon, 16 Sep 2013 15:10:11 +0000 (15:10 +0000)]
Add a loader tunable to use only device tree-provided PCI devices. This is
needed on some more fragile systems to avoid machine checks when blindly
probing the PCI bus. Also reduce ofw_pcibus's priority slightly so that it
can be overridden.

Approved by: re (gjb)

10 years agoFix bug in busdma: if segs is a preexisting buffer, we memcpy it
Nathan Whitehorn [Mon, 16 Sep 2013 14:32:56 +0000 (14:32 +0000)]
Fix bug in busdma: if segs is a preexisting buffer, we memcpy it
into the DMA map. The length of the buffer had not yet been
initialized, however, so this would copy gibberish unless it
happened to be right by chance. This bug mostly only affected
systems with IOMMUs.

Approved by: re (gjb)
MFC after: 3 days

10 years agoFix GCC build error when building for ARMv6
Zbigniew Bodek [Mon, 16 Sep 2013 10:46:58 +0000 (10:46 +0000)]
Fix GCC build error when building for ARMv6

Apply theravens's idea to move __strong_reference
macros into the proper ifdef section.

Approved by: cognet (mentor)
Approved by: re

10 years agoImplement pmap_advise() for ARMv6/v7 pmap module
Zbigniew Bodek [Mon, 16 Sep 2013 10:39:35 +0000 (10:39 +0000)]
Implement pmap_advise() for ARMv6/v7 pmap module

Apply the given advice to the specified range of addresses within the
given pmap. Depending on the advice, clear the referenced and/or
modified flags in each mapping. Superpage within the given range will
be demoted or destroyed.

Reviewed by: alc
Approved by: cognet (mentor)
Approved by: re

10 years agoWrite protect base page after superpage demotion so that it may repromote
Zbigniew Bodek [Mon, 16 Sep 2013 10:34:44 +0000 (10:34 +0000)]
Write protect base page after superpage demotion so that it may repromote

When clearing the modification status of the superpage, one of the
base pages produced during demotion should be marked as write disabled.
The intention is that subsequent write access may repromote.
In the current implementation this was done wrong as write permission was
granted instead of forbidden.

Approved by: cognet (mentor)
Approved by: re

10 years agoRemove zero-copy sockets code. It only worked for anonymous memory,
Konstantin Belousov [Mon, 16 Sep 2013 06:25:54 +0000 (06:25 +0000)]
Remove zero-copy sockets code.  It only worked for anonymous memory,
and the equivalent functionality is now provided by sendfile(2) over
posix shared memory filedescriptor.

Remove the cow member of struct vm_page, and rearrange the remaining
members.  While there, make hold_count unsigned.

Requested and reviewed by: alc
Tested by: pho
Sponsored by: The FreeBSD Foundation
Approved by: re (delphij)

10 years agoIn pmap_copy(), when the copied region is mapped with superpage but does
Konstantin Belousov [Mon, 16 Sep 2013 06:15:15 +0000 (06:15 +0000)]
In pmap_copy(), when the copied region is mapped with superpage but does
not cover entire superpage, avoid copying.  Doing partial copy would
require demotion, which is incompatible with the already held locks.

Reported by:    cperciva
Reviewed by:    alc
Sponsored by: The FreeBSD Foundation
MFC after:      1 week
Approved by: re (delphij)

10 years agoUse the address of the inpcb rather than the tcpcb to identify TCP
Mark Johnston [Sun, 15 Sep 2013 21:38:46 +0000 (21:38 +0000)]
Use the address of the inpcb rather than the tcpcb to identify TCP
connections. This keeps the tcp provider consistent with the other network
providers.

Approved by: re (delphij)

10 years agoSet NO_WERROR for unbound until I can figure out how to unbreak the
Dag-Erling Smørgrav [Sun, 15 Sep 2013 16:27:25 +0000 (16:27 +0000)]
Set NO_WERROR for unbound until I can figure out how to unbreak the
non-clang build.

Approved by: re (blanket)

10 years agoMove libldns to the correct (ordered) library list.
Dag-Erling Smørgrav [Sun, 15 Sep 2013 15:55:21 +0000 (15:55 +0000)]
Move libldns to the correct (ordered) library list.

Approved by: re (blanket)

10 years agoRemove duplicate function declaration.
Dag-Erling Smørgrav [Sun, 15 Sep 2013 15:52:07 +0000 (15:52 +0000)]
Remove duplicate function declaration.

Approved by: re (blanket)

10 years agoThe Unbound developers have never met a pointer game they didn't like.
Dag-Erling Smørgrav [Sun, 15 Sep 2013 15:49:17 +0000 (15:49 +0000)]
The Unbound developers have never met a pointer game they didn't like.
Fix needless deconsting.

Approved by: re (blanket)

10 years agoRegnerate.
Dag-Erling Smørgrav [Sun, 15 Sep 2013 15:23:50 +0000 (15:23 +0000)]
Regnerate.

Approved by: re (blanket)

10 years agoBuild and install the Unbound caching DNS resolver daemon.
Dag-Erling Smørgrav [Sun, 15 Sep 2013 14:51:23 +0000 (14:51 +0000)]
Build and install the Unbound caching DNS resolver daemon.

Approved by: re (blanket)

10 years agoAdd a kernel interface (OF_xref_phandle()) for systems where phandles
Nathan Whitehorn [Sun, 15 Sep 2013 14:19:17 +0000 (14:19 +0000)]
Add a kernel interface (OF_xref_phandle()) for systems where phandles
used as cross-references in the device tree and phandles as used by the
Open Firmware client interface are in different namespaces. This include
IBM pSeries hardware as well as FDT systems. FDT certainly abuses
ihandles for this purpose and should be modified to use this API
eventually. This changes no behavior on systems where FreeBSD already
worked.

Reviewed by: marius
Approved by: re (kib)
MFC after: 2 weeks

10 years agoPrevious commit accidentally left out the umask change.
Dag-Erling Smørgrav [Sun, 15 Sep 2013 13:50:56 +0000 (13:50 +0000)]
Previous commit accidentally left out the umask change.

Approved by: re (blanket)

10 years agoSet the correct prefix and exec-prefix.
Dag-Erling Smørgrav [Sun, 15 Sep 2013 13:49:43 +0000 (13:49 +0000)]
Set the correct prefix and exec-prefix.

Approved by: re (blanket)

10 years agoRegenerate.
Dag-Erling Smørgrav [Sun, 15 Sep 2013 13:49:23 +0000 (13:49 +0000)]
Regenerate.

Approved by: re (blanket)

10 years agoThe unbound-control-setup script needs to be generated so it knows where
Dag-Erling Smørgrav [Sun, 15 Sep 2013 13:48:08 +0000 (13:48 +0000)]
The unbound-control-setup script needs to be generated so it knows where
to place the keys.  Also, the correct umask is 027, not 026, although it's
not likely to make any difference.

Approved by: re (blanket)

10 years agoTweak wording.
Dag-Erling Smørgrav [Sun, 15 Sep 2013 13:11:13 +0000 (13:11 +0000)]
Tweak wording.

Approved by: re (blanket)

10 years agoComplete the OPENSSH and LDNS sections.
Dag-Erling Smørgrav [Sun, 15 Sep 2013 13:07:30 +0000 (13:07 +0000)]
Complete the OPENSSH and LDNS sections.

Approved by: re (blanket)

10 years agoAdd unbound-control.
Dag-Erling Smørgrav [Sun, 15 Sep 2013 12:41:05 +0000 (12:41 +0000)]
Add unbound-control.

Approved by: re (blanket)

10 years agoFinal #include tweak.
Dag-Erling Smørgrav [Sun, 15 Sep 2013 11:58:07 +0000 (11:58 +0000)]
Final #include tweak.

Approved by: re (blanket)

10 years agodrm/radeon: Add missing "return false" after unmapping invalid BIOS
Jean-Sébastien Pédron [Sun, 15 Sep 2013 07:48:42 +0000 (07:48 +0000)]
drm/radeon: Add missing "return false" after unmapping invalid BIOS

Without that, we would try to copy the unmapped BIOS.

Submitted by: Christoph Mallon <christoph.mallon@gmx.de>
Approved by: re (blanket)

10 years agoMassive constification + solve an alignment issue by using a union.
Dag-Erling Smørgrav [Sun, 15 Sep 2013 01:44:07 +0000 (01:44 +0000)]
Massive constification + solve an alignment issue by using a union.

Approved by: re (blanket)

10 years agoAdd missing #includes and fix some incorrect definitions.
Dag-Erling Smørgrav [Sun, 15 Sep 2013 01:32:32 +0000 (01:32 +0000)]
Add missing #includes and fix some incorrect definitions.

Approved by: re (blanket)

10 years agoWholesale constification.
Dag-Erling Smørgrav [Sun, 15 Sep 2013 01:31:55 +0000 (01:31 +0000)]
Wholesale constification.

Approved by: re (blanket)

10 years agoMove more prototypes around, and remove one that wasn't used.
Dag-Erling Smørgrav [Sun, 15 Sep 2013 01:29:00 +0000 (01:29 +0000)]
Move more prototypes around, and remove one that wasn't used.

Approved by: re (blanket)

10 years agoRegenerated lexer and parser
Dag-Erling Smørgrav [Sun, 15 Sep 2013 00:40:46 +0000 (00:40 +0000)]
Regenerated lexer and parser

Approved by: re (blanket)

10 years agoGenerated configuration and documentation
Dag-Erling Smørgrav [Sun, 15 Sep 2013 00:40:21 +0000 (00:40 +0000)]
Generated configuration and documentation

Approved by: re (blanket)

10 years agoForgotten in r255579: #include fixes.
Dag-Erling Smørgrav [Sun, 15 Sep 2013 00:37:30 +0000 (00:37 +0000)]
Forgotten in r255579: #include fixes.

Approved by: re (blanket)

10 years agoNumerous fixes to make Unbound compile cleanly:
Dag-Erling Smørgrav [Sun, 15 Sep 2013 00:36:18 +0000 (00:36 +0000)]
Numerous fixes to make Unbound compile cleanly:

 - cast through void * to silence alignment warnings (presumably false
   positives resulting from poor API design)

 - constify a few function arguments

 - move prototypes for callbacks into a common header

 - now that the prototypes are in scope, fix instances of function
   definitions that don't match the prototype or what the caller
   actually passes

 - hide a conditionally unused global variable behind the same #ifdef
   that controls its use

Approved by: re (blanket)

10 years agoMove prototypes into header.
Dag-Erling Smørgrav [Sun, 15 Sep 2013 00:07:51 +0000 (00:07 +0000)]
Move prototypes into header.

Approved by: re (blanket)

10 years agoTwo helper scripts for porting Unbound:
Dag-Erling Smørgrav [Sun, 15 Sep 2013 00:05:16 +0000 (00:05 +0000)]
Two helper scripts for porting Unbound:

 - freebsd-configure.sh runs ./configure with the correct parameters
   and regenerates the lex and yacc code.

 - freebsd-sources.pl untangles the upstream Makefile and generates
   source lists for our Makefiles.

Approved by: re (blanket)

10 years agoProperly remove c++filt.
Ed Schouten [Sat, 14 Sep 2013 22:09:10 +0000 (22:09 +0000)]
Properly remove c++filt.

The c++filt binary is only installed if ${MK_GCC} == yes && ${MK_CXX} ==
yes. This means that it should be removed if ${MK_GCC} == no ||
${MK_CXX} == no. In its current form, it actually uses a conjunction
instead of a disjunction.

As there is already a separate block for ${MK_CXX} == no listing
c++filt, simply remove the conditional entirely.

Approved by: re (gjb)

10 years agoMinor mdoc fixes.
Joel Dahl [Sat, 14 Sep 2013 21:43:18 +0000 (21:43 +0000)]
Minor mdoc fixes.

Approved by: re (blanket)

10 years agoPull the hyperv drivers from GENERIC until the fix to the disengage
Peter Grehan [Sat, 14 Sep 2013 20:38:22 +0000 (20:38 +0000)]
Pull the hyperv drivers from GENERIC until the fix to the disengage
driver to make it only probe when running on hyperv is reviewed and
tested.

Approved by: re (rodrigc)

10 years agodrm/radeon: Fix usage of pci_save_state() and pci_restore_state()
Jean-Sébastien Pédron [Sat, 14 Sep 2013 17:24:41 +0000 (17:24 +0000)]
drm/radeon: Fix usage of pci_save_state() and pci_restore_state()

Calling those functions with the drmn device as argument causes a panic,
because it's not a direct child of pci$N. They must be called with the
vgapci device instead.

This fix is not enough to make suspend/resume work reliably.

Approved by: re (blanket)

10 years agodrm/radeon: Fix usage of vga_pci_map_bios()
Jean-Sébastien Pédron [Sat, 14 Sep 2013 17:22:34 +0000 (17:22 +0000)]
drm/radeon: Fix usage of vga_pci_map_bios()

vga_pci_(un)map_bios() takes a vgapci device as argument, not a drmn
one. This fixes a bug where the BIOS couldn't be mapped if the device
wasn't the boot display.

Approved by: re (kib; blanket for following drm2/radeon commits)

10 years agovgapci: Use vga_pci_alloc_resource() to map PCI Expansion ROM
Jean-Sébastien Pédron [Sat, 14 Sep 2013 17:17:32 +0000 (17:17 +0000)]
vgapci: Use vga_pci_alloc_resource() to map PCI Expansion ROM

This is cleaner and fixes Video BIOS mapping when the given device isn't
the boot display.

Submitted by: jhb@
Approved by: re (kib)

10 years agoBring in the new iSCSI target and initiator.
Edward Tomasz Napierala [Sat, 14 Sep 2013 15:29:06 +0000 (15:29 +0000)]
Bring in the new iSCSI target and initiator.

Reviewed by: ken (parts)
Approved by: re (delphij)
Sponsored by: FreeBSD Foundation

10 years agoIf the last page of the file is partially full and whole valid
Konstantin Belousov [Sat, 14 Sep 2013 10:11:38 +0000 (10:11 +0000)]
If the last page of the file is partially full and whole valid
portion is invalidated, invalidate the whole page.  Otherwise,
partially valid page appears on a page queue, which is wrong.  This
could only happen for the last page, because only then buffer which
triggered invalidation could not cover the whole page.

Reported and tested by: pho (previous version)
Reviewed by: alc
Sponsored by: The FreeBSD Foundation
Approved by: re (delphij)
MFC after: 2 weeks

10 years agoFix module build when device ata is not in kernel config.
Konstantin Belousov [Sat, 14 Sep 2013 09:53:57 +0000 (09:53 +0000)]
Fix module build when device ata is not in kernel config.

Sponsored by: The FreeBSD Foundation
Build-tested by: gjb
Approved by: re (delphij)

10 years agoCorrect the svn:keywords value.
Konstantin Belousov [Sat, 14 Sep 2013 09:53:36 +0000 (09:53 +0000)]
Correct the svn:keywords value.

Approved by: re (gjb, implicit)

10 years agoAdd svn:keywords property to Makefile.
Konstantin Belousov [Sat, 14 Sep 2013 09:50:45 +0000 (09:50 +0000)]
Add svn:keywords property to Makefile.

Approved by: re (gjb)

10 years agoCorrect my inability to do math and provide a GOOD example.
Sean Bruno [Fri, 13 Sep 2013 21:23:04 +0000 (21:23 +0000)]
Correct my inability to do math and provide a GOOD example.

Approved by: re (implicit)

10 years agoAdd gpio(4) man page to attempt to document the current hints based setup of
Sean Bruno [Fri, 13 Sep 2013 19:55:40 +0000 (19:55 +0000)]
Add gpio(4) man page to attempt to document the current hints based setup of
pin outputs, functions and setup.

Add cross reference in gpioctl(8) for people to find.

This is by no means complete and really only covers gpioled(4) and the
Atheros based systems who expose a few extra hints at boot time.

This should be updated by developers who know more about this system than
I and viewed as the beginning of documentation, not the end.

Reviewed by: adrian
Approved by: re (joel)
MFC after: 2 weeks

10 years agoUse TAILQ instead of STAILQ for kqeueue filedescriptors to ensure constant
Konstantin Belousov [Fri, 13 Sep 2013 19:50:50 +0000 (19:50 +0000)]
Use TAILQ instead of STAILQ for kqeueue filedescriptors to ensure constant
time removal on kqueue close.

Reported and tested by: pho
Reviewed by: jmg
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Approved by: re (delphij)

10 years agomdoc: remove EOL whitespace.
Joel Dahl [Fri, 13 Sep 2013 19:19:21 +0000 (19:19 +0000)]
mdoc: remove EOL whitespace.

Approved by: re (blanket)

10 years agomdoc: fix list width.
Joel Dahl [Fri, 13 Sep 2013 19:08:10 +0000 (19:08 +0000)]
mdoc: fix list width.

Approved by: re (blanket)

10 years agoImport Hyper-V paravirtualized drivers from projects/hyperv
Peter Grehan [Fri, 13 Sep 2013 18:47:58 +0000 (18:47 +0000)]
Import Hyper-V paravirtualized drivers from projects/hyperv
branch into head.

Approved by: re@ (hrs)
Obtained from: Microsoft, NetApp, and Citrix.

10 years agoUnregister inet/inet6 pfil hooks on vnet destroy.
Mikolaj Golub [Fri, 13 Sep 2013 18:45:10 +0000 (18:45 +0000)]
Unregister inet/inet6 pfil hooks on vnet destroy.

Discussed with: andre
Approved by: re (rodrigc)

10 years agoImprove readelf notes output for Linux ELF files
Ed Maste [Fri, 13 Sep 2013 18:21:31 +0000 (18:21 +0000)]
Improve readelf notes output for Linux ELF files

Add four ELF note constants:
- NT_FILE and NT_SIGINFO (core file notes output by recent Linux kernels)
- NT_GNU_ABI_TAG (was incorrectly reported as NT_VERSION)
- NT_GNU_BUILD_ID (used for locating standalone debug files)

Approved by: re (kib)

10 years agoadd support for writing the pid of the daemon program to a pid file so
John-Mark Gurney [Fri, 13 Sep 2013 16:57:28 +0000 (16:57 +0000)]
add support for writing the pid of the daemon program to a pid file so
that daemon can be used w/ rc.subr and ports can use the additional
functionality, such as keeping the ldap daemon up and running, and have
the proper program to signal to exit..

PR: bin/181341
Submitted by: feld
Approved by: re (glebius)

10 years agoNote about the OpenSSH change.
Dag-Erling Smørgrav [Fri, 13 Sep 2013 10:37:24 +0000 (10:37 +0000)]
Note about the OpenSSH change.

Approved by: re (gjb)

10 years agoWhen opening or closing fifo, ensure that the vnode is locked
Konstantin Belousov [Fri, 13 Sep 2013 06:52:23 +0000 (06:52 +0000)]
When opening or closing fifo, ensure that the vnode is locked
exclusively.  Filesystems are assumed to disable shared locking for
the fifo vnode locks, but some do not.

Reported and tested by: olgeni
Discussed with: avg
Sponsored by:   The FreeBSD Foundation
MFC after: 1 week
Approved by: re (glebius)

10 years agoReduce the scope of the proctree_lock. If several processes cause
Konstantin Belousov [Fri, 13 Sep 2013 06:39:10 +0000 (06:39 +0000)]
Reduce the scope of the proctree_lock. If several processes cause
continuous calls to the uprintf(9), the proctree_lock could be
shared-locked for indefinite amount of time, starving exclusive
requests. Since proctree_lock is needed for fork() and exit(), this
effectively stops the machine.

While there, do the similar reduction for tprintf(9).

Reported and tested by: pho
Reviewed by:    ed
Sponsored by:   The FreeBSD Foundation
MFC after: 1 week
Approved by: re (glebius)

10 years agoDo not install freebsd-update.conf.5 manual if WITHOUT_FREEBSD_UPDATE is
Glen Barber [Fri, 13 Sep 2013 03:39:19 +0000 (03:39 +0000)]
Do not install freebsd-update.conf.5 manual if WITHOUT_FREEBSD_UPDATE is
set.

MFC after: 3 days
Approved by: re (delphij)
Sponsored by: The FreeBSD Foundation

10 years agoChange VM object lock assertion to match locking higher in the call
Nathan Whitehorn [Fri, 13 Sep 2013 01:12:45 +0000 (01:12 +0000)]
Change VM object lock assertion to match locking higher in the call
chain. This repairs a panic observed during pageout on some 64-bit
PowerPC systems.

Submitted by: grehan
Approved by: re (kib)
MFC after: 2 weeks
Revisit after: 10.0

10 years agoFix an issue that caused Integrated RAID volumes on LSI mps(4) controllers
Kenneth D. Merry [Thu, 12 Sep 2013 22:06:12 +0000 (22:06 +0000)]
Fix an issue that caused Integrated RAID volumes on LSI mps(4) controllers
to not get scanned on boot.

The problem originated in change 253549.  With the change to the mps(4)
driver to scan only targets that it knows it has (as opposed to scanning
the entire bus), scanning RAID volumes on boot was omitted.

So, for versions of FreeBSD that have the scanning changes
(__FreeBSD_version 1000039 and higher), scan RAID volumes that are added
whether or not we're booting.

PR: kern/181784
Reported by: Xiguang Wang <kurapica@gmail.com>
Tested by: Dennis Glatting <dg@pki2.com>
Sponsored by: Spectra Logic
Approved by: re (delphij)
MFC After: 3 days

10 years agoAfter r255321, clang uses libc++ by default. This leads to a lot of
Dimitry Andric [Thu, 12 Sep 2013 21:24:59 +0000 (21:24 +0000)]
After r255321, clang uses libc++ by default.  This leads to a lot of
errors when you enable WITH_GNUCXX to build libstdc++, since it will
include C++ headers from the libc++ installation under ${WORLDTMP}, and
those are not compatible with libstdc++ at all.

To fix this, add -stdlib=libstdc++ to CXXFLAGS when building libstdc++
(and its companion libsupc++) with clang.

Approved by: re (delphij)

10 years agoAfter r255294, building lib/msun's symbol map (using clang as the
Dimitry Andric [Thu, 12 Sep 2013 20:51:48 +0000 (20:51 +0000)]
After r255294, building lib/msun's symbol map (using clang as the
preprocessor) gives the following error:

--- Version.map ---
<stdin>:287:4: error: invalid preprocessing directive
        # Implemented as weak aliases for imprecise versions
          ^
1 error generated.

Change the comment to a C-style one, to prevent this error.

Approved by: re (hrs)

10 years ago- Document the UQUAD sysctl variants.
John Baldwin [Thu, 12 Sep 2013 20:49:20 +0000 (20:49 +0000)]
- Document the UQUAD sysctl variants.
- Clarify that exactly one of the "access" flags is required and
  list the optional flags in a separate list.  Prefer bundling
  CTLFLAG_TUN into the access flag by not documenting it as an
  optional flag to set.

Approved by: re (glebius)
MFC after: 1 week