]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
10 years agoAllow the alarm hours/mins/seconds registers to be read/written,
grehan [Thu, 19 Sep 2013 04:29:03 +0000 (04:29 +0000)]
Allow the alarm hours/mins/seconds registers to be read/written,
though without any action. This avoids a hypervisor exit when
o/s's access these regs (Linux).

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

10 years agoUse correct offset for the high byte of high memory written to
grehan [Thu, 19 Sep 2013 04:20:18 +0000 (04:20 +0000)]
Use correct offset for the high byte of high memory written to
RTC NVRAM.

Submitted by: Bela Lubkin   bela dot lubkin at tidalscale dot com
Approved by: re@ (blanket)

10 years agoReorder the hypervisor presence test to avoid claiming ATA disks
grehan [Thu, 19 Sep 2013 02:34:52 +0000 (02:34 +0000)]
Reorder the hypervisor presence test to avoid claiming ATA disks
on non hyperv systems.

Reviewed by: neel, abgupta at microsoft dot com
Approved by: re@ (hrs)

10 years agoFix missing SVN properties.
grehan [Thu, 19 Sep 2013 02:02:15 +0000 (02:02 +0000)]
Fix missing SVN properties.

Approved by: re@ (hrs)

10 years agoMerge lldb man page from r188801 to contrib/llvm/tools/lldb/docs/
emaste [Thu, 19 Sep 2013 00:32:07 +0000 (00:32 +0000)]
Merge lldb man page from r188801 to contrib/llvm/tools/lldb/docs/

Approved by: re (gjb)

10 years agoFix several problems in the new iSCSI stack; this includes interoperability
trasz [Wed, 18 Sep 2013 21:15:21 +0000 (21:15 +0000)]
Fix several problems in the new iSCSI stack; this includes interoperability
fix for LIO (Linux target), removing possibility for the target to avoid mutual
CHAP by choosing to skip authentication altogether, and fixing truncated error
messages in iscsictl(8) output.  This also fixes several of the problems found
with Coverity.

Note that this change requires world rebuild.

Coverity CID: 1088038108799810879901088004108804410880411088040
Approved by: re (blanket)
Sponsored by: FreeBSD Foundation

10 years agoFix panic in ktrcapfail() when no capability rights are passed.
pjd [Wed, 18 Sep 2013 19:26:08 +0000 (19:26 +0000)]
Fix panic in ktrcapfail() when no capability rights are passed.
While here, correct all consumers to pass NULL instead of 0 as we pass
capability rights as pointers now, not uint64_t.

Reported by: Daniel Peyrolon
Tested by: Daniel Peyrolon
Approved by: re (marius)

10 years agoRegen.
rdivacky [Wed, 18 Sep 2013 18:49:26 +0000 (18:49 +0000)]
Regen.

Approved by: re (delphij)

10 years agoRevert r255672, it has some serious flaws, leaking file references etc.
rdivacky [Wed, 18 Sep 2013 18:48:33 +0000 (18:48 +0000)]
Revert r255672, it has some serious flaws, leaking file references etc.

Approved by: re (delphij)

10 years agoRegen.
rdivacky [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
rdivacky [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 agoImport lldb.1 man page as of SVN r188801
emaste [Wed, 18 Sep 2013 16:32:43 +0000 (16:32 +0000)]
Import lldb.1 man page as of SVN r188801

10 years agoMake iscsictl(8) automatically try to load the iscsi module. While here,
trasz [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 [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
bdrewery [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
sbruno [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 [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 [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 [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).
hrs [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
hrs [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
hrs [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
hrs [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 [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.
delphij [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
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
dumbbell [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
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
nwhitehorn [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.
nwhitehorn [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
nwhitehorn [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.
nwhitehorn [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
nwhitehorn [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 [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.
phk [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,
trasz [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.
trasz [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.
des [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.
sbruno [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.
des [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
kib [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
glebius [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.
gjb [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
bryanv [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
gjb [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.
kib [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.
gjb [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
nwhitehorn [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
nwhitehorn [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
zbb [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
zbb [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
zbb [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,
kib [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
kib [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
markj [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
des [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.
des [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.
des [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.
des [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.
des [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.
des [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
nwhitehorn [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.
des [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.
des [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.
des [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
des [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.
des [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.
des [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.
des [Sun, 15 Sep 2013 12:41:05 +0000 (12:41 +0000)]
Add unbound-control.

Approved by: re (blanket)

10 years agoFinal #include tweak.
des [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
dumbbell [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.
des [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.
des [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.
des [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.
des [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
des [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
des [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.
des [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:
des [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.
des [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:
des [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 [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 [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
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()
dumbbell [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()
dumbbell [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
dumbbell [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.
trasz [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
kib [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.
kib [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.
kib [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.
kib [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.
sbruno [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
sbruno [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
kib [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 [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 [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
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.
trociny [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
emaste [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)