]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
10 years agoFix a bug in the handling of VM-exits caused by non-maskable interrupts (NMI).
neel [Sat, 8 Feb 2014 05:04:34 +0000 (05:04 +0000)]
Fix a bug in the handling of VM-exits caused by non-maskable interrupts (NMI).

If a VM-exit is caused by an NMI then "blocking by NMI" is in effect on the
CPU when the VM-exit is completed. No more NMIs will be recognized until
the execution of an "iret".

Prior to this change the NMI handler was dispatched via a software interrupt
with interrupts enabled. This meant that an interrupt could be recognized
by the processor before the NMI handler completed its execution. The "iret"
issued by the interrupt handler would then cause the "blocking by NMI" to
be cleared prematurely.

This is now fixed by handling the NMI with interrupts disabled in addition
to "blocking by NMI" already established by the VM-exit.

10 years agoRemove FreeBSD 6 support
imp [Sat, 8 Feb 2014 04:29:36 +0000 (04:29 +0000)]
Remove FreeBSD 6 support

10 years agotests/sys/Makefile
asomers [Sat, 8 Feb 2014 00:20:21 +0000 (00:20 +0000)]
tests/sys/Makefile
use TESTS_SUBDIRS for kern instead of SUBDIRS.  I don't think it
makes a difference in this case, but TESTS_SUBDIRS is generally
correct for subdirectories that contain tests.

Sponsored by: Spectra Logic
MFC after: 5 days
X-MFC-With: r261133

10 years agoBuild a 32-bit libstand under sys/boot/ for ppc64
emaste [Fri, 7 Feb 2014 22:49:42 +0000 (22:49 +0000)]
Build a 32-bit libstand under sys/boot/ for ppc64

This change is equivalent to r261567 for i386/amd64.

Sponsored by: The FreeBSD Foundation

10 years agoFix comment.
glebius [Fri, 7 Feb 2014 22:30:42 +0000 (22:30 +0000)]
Fix comment.

10 years agoAdd cross-references to casperd(8) and libcapsicum(3).
pjd [Fri, 7 Feb 2014 22:15:48 +0000 (22:15 +0000)]
Add cross-references to casperd(8) and libcapsicum(3).

Suggested by: rwatson

10 years agoAdd some context for the "kldload sem" command; minor other improvements.
brueffer [Fri, 7 Feb 2014 22:04:56 +0000 (22:04 +0000)]
Add some context for the "kldload sem" command; minor other improvements.

PR: 183650
Submitted by: Bjorn Heidotting
MFC after: 1 week

10 years agoRemove unused defines.
glebius [Fri, 7 Feb 2014 21:56:16 +0000 (21:56 +0000)]
Remove unused defines.

10 years agoPull in upstream libcxxrt commit 8006101, which makes its cxxabi.h file
dim [Fri, 7 Feb 2014 21:34:09 +0000 (21:34 +0000)]
Pull in upstream libcxxrt commit 8006101, which makes its cxxabi.h file
compilable just by itself.

PR: kern/184019
MFC after: 3 days

10 years agoApply a cleaner solution for the sign warnings that can occur when
dim [Fri, 7 Feb 2014 21:17:20 +0000 (21:17 +0000)]
Apply a cleaner solution for the sign warnings that can occur when
compiling libc++'s <locale> header with -Wsystem-headers on.

This has also been submitted upstream.

Reported by: asomers

10 years agoMark the I/O ports used by the bhyve console and debug devices as system
jhb [Fri, 7 Feb 2014 20:53:41 +0000 (20:53 +0000)]
Mark the I/O ports used by the bhyve console and debug devices as system
resources.

MFC after: 1 week

10 years agoDynamically generate the page table. This will allow us to detect the
andrew [Fri, 7 Feb 2014 19:15:25 +0000 (19:15 +0000)]
Dynamically generate the page table. This will allow us to detect the
physical address we are loaded at to change the mapping.

10 years agoNow that FreeBSD/i386 works as a bhyve guest, allow i386 kernels to
jhb [Fri, 7 Feb 2014 18:46:27 +0000 (18:46 +0000)]
Now that FreeBSD/i386 works as a bhyve guest, allow i386 kernels to
include bvmconsole and bvmdebug.

10 years agoHEAD is not buildable for the past day. Commit a 'quick fix' in order to permit
eadler [Fri, 7 Feb 2014 18:10:34 +0000 (18:10 +0000)]
HEAD is not buildable for the past day.  Commit a 'quick fix' in order to permit
buildworld to complete.

Reviewed by: theraven

10 years agoDon't force efi to a 32-bit build on amd64
emaste [Fri, 7 Feb 2014 16:28:40 +0000 (16:28 +0000)]
Don't force efi to a 32-bit build on amd64

Sponsored by: The FreeBSD Foundation

10 years agoSet errno on inet_ntop(3) failure.
kevlo [Fri, 7 Feb 2014 15:26:19 +0000 (15:26 +0000)]
Set errno on inet_ntop(3) failure.

Reviewed by: glebius

10 years agoo Revamp API between flowtable and netinet, netinet6.
glebius [Fri, 7 Feb 2014 15:18:23 +0000 (15:18 +0000)]
o Revamp API between flowtable and netinet, netinet6.
  - ip_output() and ip_output6() simply call flowtable_lookup(),
    passing mbuf and address family. That's the only code under
    #ifdef FLOWTABLE in the protocols code now.
o Revamp statistics gathering and export.
  - Remove hand made pcpu stats, and utilize counter(9).
  - Snapshot of statistics is available via 'netstat -rs'.
  - All sysctls are moved into net.flowtable namespace, since
    spreading them over net.inet isn't correct.
o Properly separate at compile time INET and INET6 parts.
o General cleanup.
  - Remove chain of multiple flowtables. We simply have one for
    IPv4 and one for IPv6.
  - Flowtables are allocated in flowtable.c, symbols are static.
  - With proper argument to SYSINIT() we no longer need flowtable_ready.
  - Hash salt doesn't need to be per-VNET.
  - Removed rudimentary debugging, which use quite useless in dtrace era.

The runtime behavior of flowtable shouldn't be changed by this commit.

Sponsored by: Netflix
Sponsored by: Nginx, Inc.

10 years ago- Use a callout instead of the deprecated timeout_handle.
jhb [Fri, 7 Feb 2014 15:10:24 +0000 (15:10 +0000)]
- Use a callout instead of the deprecated timeout_handle.
- Set the console name always so that the bvm console device can be used
  via conscontrol even if it isn't chosen as the default console.

10 years agoThe atp USB driver is generic and its manual page should be available
hselasky [Fri, 7 Feb 2014 15:00:08 +0000 (15:00 +0000)]
The atp USB driver is generic and its manual page should be available
for all platforms. Add wsp manual page to build.

MFC after: 1 week

10 years agoUpdate atp driver manual page.
hselasky [Fri, 7 Feb 2014 14:58:40 +0000 (14:58 +0000)]
Update atp driver manual page.
Moused is now started automatically by devd.

MFC after: 1 week

10 years agoAdd manual page for wsp driver.
hselasky [Fri, 7 Feb 2014 14:56:34 +0000 (14:56 +0000)]
Add manual page for wsp driver.

MFC after: 1 week

10 years agoRemove references to PHYSADDR where it's used only in debugging output,
ian [Fri, 7 Feb 2014 14:38:51 +0000 (14:38 +0000)]
Remove references to PHYSADDR where it's used only in debugging output,
and where the code that references it can safely be elided if it's not
defined (meaning the code is used for legacy arm platforms that still
define the compile-time PHYSADDR but not on newer systems that calculate
the value at runtime).

10 years agosysctl_handle_counter_u64() doesn't use arg2 argument, thus simplify
glebius [Fri, 7 Feb 2014 14:34:31 +0000 (14:34 +0000)]
sysctl_handle_counter_u64() doesn't use arg2 argument, thus simplify
the SYSCTL_COUNTER_U64() macro.

Sponsored by: Nginx, Inc.

10 years agoUtilize SYSCTL_UMA_CUR() to export usage of syncache and
glebius [Fri, 7 Feb 2014 14:31:51 +0000 (14:31 +0000)]
Utilize SYSCTL_UMA_CUR() to export usage of syncache and
tcp reassembly zones.

Sponsored by: Nginx, Inc.

10 years agoProvide macros that allow easily export uma(9) zone limits and
glebius [Fri, 7 Feb 2014 14:29:03 +0000 (14:29 +0000)]
Provide macros that allow easily export uma(9) zone limits and
current usage via sysctl(9):

  SYSCTL_UMA_MAX()
  SYSCTL_ADD_UMA_MAX()
  SYSCTL_UMA_CUR()
  SYSCTL_ADD_UMA_CUR()

Sponsored by: Nginx, Inc.

10 years agoCatch up on r261590.
glebius [Fri, 7 Feb 2014 14:26:33 +0000 (14:26 +0000)]
Catch up on r261590.

10 years agoMake libstand setjmp work for both 64- and 32-bit ABIs.
nwhitehorn [Fri, 7 Feb 2014 14:24:36 +0000 (14:24 +0000)]
Make libstand setjmp work for both 64- and 32-bit ABIs.

10 years agoRemove identical vnet sysctl handlers, and handle CTLFLAG_VNET
glebius [Fri, 7 Feb 2014 13:47:33 +0000 (13:47 +0000)]
Remove identical vnet sysctl handlers, and handle CTLFLAG_VNET
in the sysctl_root().

Note: SYSCTL_VNET_* macros can be removed as well. All is
  needed to virtualize a sysctl oid is set CTLFLAG_VNET on it.
  But for now keep macros in place to avoid large code churn.

Sponsored by: Nginx, Inc.

10 years agofts: Fix double-free with conflicting concurrent modifications.
jilles [Fri, 7 Feb 2014 13:40:22 +0000 (13:40 +0000)]
fts: Fix double-free with conflicting concurrent modifications.

If rare conditions such as concurrent conflicting manipulation of the
filesystem occur, fts_read() frees the current FTSENT without adjusting
the pointers in the FTS accordingly. A later fts_close() then frees the
same FTSENT again.

Reported by: pho
Tested by: pho
MFC after: 1 week

10 years agoFix the build with DEBUG enabled. Where possible, fix style(9) issues.
loos [Fri, 7 Feb 2014 13:06:48 +0000 (13:06 +0000)]
Fix the build with DEBUG enabled.  Where possible, fix style(9) issues.

Reviewed by: bde
Approved by: adrian (mentor)

10 years agoImplement vd_drawrect and vd_setpixel for vt(9)'s VGA driver.
ray [Fri, 7 Feb 2014 12:39:58 +0000 (12:39 +0000)]
Implement vd_drawrect and vd_setpixel for vt(9)'s VGA driver.

Sponsored by: The FreeBSD Foundation

10 years agoIn IPv6 code examples, use the correct v6 socket.
brueffer [Fri, 7 Feb 2014 11:40:50 +0000 (11:40 +0000)]
In IPv6 code examples, use the correct v6 socket.

MFC after: 1 week

10 years agoUnlock entry before retry.
ae [Fri, 7 Feb 2014 10:58:46 +0000 (10:58 +0000)]
Unlock entry before retry.

Submitted by: melifaro
MFC after: 1 week

10 years agoSpacing.
glebius [Fri, 7 Feb 2014 10:05:12 +0000 (10:05 +0000)]
Spacing.

10 years agoRevert r234666. Clearing TWSI IRQ seems to cause watchdog timeout
yongari [Fri, 7 Feb 2014 05:08:59 +0000 (05:08 +0000)]
Revert r234666.  Clearing TWSI IRQ seems to cause watchdog timeout
on old Yukon II controllers.

Tested by: bsam
MFC after: 2 weeks

10 years agoAdd option USB_HOST_ALIGN=64 for all SoCs that have 64 byte cache lines.
ian [Fri, 7 Feb 2014 04:05:08 +0000 (04:05 +0000)]
Add option USB_HOST_ALIGN=64 for all SoCs that have 64 byte cache lines.

10 years agoRevert r260440. I didn't realize that most of this change was already
ian [Fri, 7 Feb 2014 03:30:16 +0000 (03:30 +0000)]
Revert r260440.  I didn't realize that most of this change was already
in effect due to r250753.  That is sufficient for all SoCs with a 32 byte
cache line size.  Systems with 64 byte cache lines will need the option;
that will be done in a separate commit.

Thanks to loos@ for pointing out r250753.

10 years agoBuild libstand as a 64-bit library on amd64
emaste [Thu, 6 Feb 2014 21:57:27 +0000 (21:57 +0000)]
Build libstand as a 64-bit library on amd64

The 32-bit bootloaders now link against libstand.a in sys/boot/libstand32,
so there is no need to force /usr/lib/libstand.a to be 32-bit.

Sponsored by: The FreeBSD Foundation

10 years agoBuild a 32-bit libstand under sys/boot/
emaste [Thu, 6 Feb 2014 21:54:21 +0000 (21:54 +0000)]
Build a 32-bit libstand under sys/boot/

A 32-bit libstand is needed on 64-bit platforms for use by various
bootloaders.  Previously only the 32-bit version was built, installed as
/usr/lib/libstand.a.

A new 64-bit libstand consumer will arrive in the near future, so move
the bootloader-specific 32-bit version to sys/boot/libstand32/.

Explicitly link against this version in the 32-bit loaders.

Sponsored by: The FreeBSD Foundation

10 years agoUse CAP_EVENT instead of the deprecated CAP_POLL_EVENT.
brueffer [Thu, 6 Feb 2014 21:36:14 +0000 (21:36 +0000)]
Use CAP_EVENT instead of the deprecated CAP_POLL_EVENT.

PR: 185382 (based on)
Submitted by: Loganaden Velvindron
Reviewed by: pjd
MFC after: 1 week

10 years agoUse abp_physaddr for the physical address over KERNPHYSADDR. This helps us
andrew [Thu, 6 Feb 2014 20:35:33 +0000 (20:35 +0000)]
Use abp_physaddr for the physical address over KERNPHYSADDR. This helps us
remove the need to load the kernel at a fixed address.

10 years agoFix __syscall on armeb EABI. As it returns a 64-bit value it needs to place
andrew [Thu, 6 Feb 2014 20:26:36 +0000 (20:26 +0000)]
Fix __syscall on armeb EABI. As it returns a 64-bit value it needs to place
32-bit data in r1, not r0. 64-bit data is already packed correctly.

10 years agoMake functions only used in this file static, and remove vfp_enable as it
andrew [Thu, 6 Feb 2014 20:23:35 +0000 (20:23 +0000)]
Make functions only used in this file static, and remove vfp_enable as it
is unused.

10 years agoPass the kernel physical address to initarm through the boot param struct.
andrew [Thu, 6 Feb 2014 20:17:58 +0000 (20:17 +0000)]
Pass the kernel physical address to initarm through the boot param struct.

10 years agoAdd a new sysctl, dev.cxgbe.N.rsrv_noflow, and a companion tunable,
scottl [Thu, 6 Feb 2014 18:40:38 +0000 (18:40 +0000)]
Add a new sysctl, dev.cxgbe.N.rsrv_noflow, and a companion tunable,
hw.cxgbe.rsrv_noflow.  When set, queue 0 of the port is reserved for
TX packets without a flowid.  The hash value of packets with a flowid
is bumped up by 1.  The intent is to provide a private queue for
link-level packets like LACP that is unlikely to overflow or suffer
deep queue latency.

Reviewed by: np
Obtained from: Netflix
MFC after: 3 days

10 years agoLet units deal with Gas Mark and Stufe.
dwmalone [Thu, 6 Feb 2014 15:55:29 +0000 (15:55 +0000)]
Let units deal with Gas Mark and Stufe.

10 years agoAdd vt_set_border function to help to change border color.
ray [Thu, 6 Feb 2014 15:16:38 +0000 (15:16 +0000)]
Add vt_set_border function to help to change border color.
Use vt_set_border to reset color after font changed (different font size may
change border sizes)

Sponsored by: The FreeBSD Foundation

10 years agoAdd two new vt(9) driver methods: vd_drawrect and vd_setpixel.
ray [Thu, 6 Feb 2014 15:12:44 +0000 (15:12 +0000)]
Add two new vt(9) driver methods: vd_drawrect and vd_setpixel.
Implement vd_drawrect and vd_setpixel for vt_fb driver.

Sponsored by: The FreeBSD Foundation

10 years agoFix typo.
ray [Thu, 6 Feb 2014 13:28:06 +0000 (13:28 +0000)]
Fix typo.

Pointed by: Ronald Klop
Pointy hat: ray

Sponsored by: The FreeBSD Foundation

10 years agoAdd test case for kern/181741. Right now test fails.
glebius [Thu, 6 Feb 2014 13:18:10 +0000 (13:18 +0000)]
Add test case for kern/181741. Right now test fails.

PR: 181741
Sponsored by: Nginx, Inc.

10 years agoAdd a manpage for the urndis driver.
brueffer [Thu, 6 Feb 2014 12:43:06 +0000 (12:43 +0000)]
Add a manpage for the urndis driver.

Obtained from: OpenBSD

10 years agoFix crash on load of bigger font. It reduce width and height of terminal, but
ray [Thu, 6 Feb 2014 11:38:39 +0000 (11:38 +0000)]
Fix crash on load of bigger font. It reduce width and height of terminal, but
current cursor position stay bigger that terminal window size, so next input
triggers assert.

Reported by: emaste

Sponsored by: The FreeBSD Foundation

10 years agoRegenerate usb.conf
hselasky [Thu, 6 Feb 2014 10:52:51 +0000 (10:52 +0000)]
Regenerate usb.conf

MFC after: 2 weeks

10 years agoResolve probe conflict for now.
hselasky [Thu, 6 Feb 2014 10:47:47 +0000 (10:47 +0000)]
Resolve probe conflict for now.

MFC after: 2 weeks

10 years agoFix kernelbuild when full debugging features are enabled.
hselasky [Thu, 6 Feb 2014 10:38:40 +0000 (10:38 +0000)]
Fix kernelbuild when full debugging features are enabled.

Pointyhat: hselasky @
MFC after: 2 weeks

10 years agoAdd -p to the example (why isn't this the default?)
des [Thu, 6 Feb 2014 09:57:27 +0000 (09:57 +0000)]
Add -p to the example (why isn't this the default?)

MFC after: 1 week

10 years agoImport USB RNDIS driver to FreeBSD from OpenBSD.
hselasky [Thu, 6 Feb 2014 08:47:14 +0000 (08:47 +0000)]
Import USB RNDIS driver to FreeBSD from OpenBSD.
Useful for so-called USB tethering.
- Imported code from OpenBSD
- Adapted code to FreeBSD
- Removed some unused functions
- Fixed some buffer encoding and decoding issues
- Optimised data transport path a bit, by sending multiple packets at a time
- Increased receive buffer to 16K

Obtained from: OpenBSD
Requested by: eadler @
MFC after: 2 weeks

10 years agoMake CTL block backend return proper error code for operations unsupposed
mav [Thu, 6 Feb 2014 03:54:58 +0000 (03:54 +0000)]
Make CTL block backend return proper error code for operations unsupposed
by the underlying device.

MFC after: 2 weeks

10 years agocxgbe(4): Use the rx channel map (instead of the tx channel map) as the
np [Thu, 6 Feb 2014 03:30:12 +0000 (03:30 +0000)]
cxgbe(4): Use the rx channel map (instead of the tx channel map) as the
congestion channel map.

MFC after: 1 week

10 years agocxgbe(4): The T5 allows for a different freelist starvation threshold
np [Thu, 6 Feb 2014 03:21:43 +0000 (03:21 +0000)]
cxgbe(4): The T5 allows for a different freelist starvation threshold
for queues with buffer packing.  Use the correct value to calculate a
freelist's low water mark.

MFC after: 1 week

10 years agoAdd support for MegaRAID Fury cards. The main change needed to boot from a
markj [Thu, 6 Feb 2014 02:54:04 +0000 (02:54 +0000)]
Add support for MegaRAID Fury cards. The main change needed to boot from a
9341-4i controller was to ensure that scatter/gather lists are ended with
an end-of-list marker. Both the mrsas and Linux megaraid_sas drivers use
this marker with Invader cards as well, so we do the same thing, though
it is apparently not strictly necessary.

Reviewed by: ambrisko
Tested by: ambrisko (Invader card)
MFC after: 3 weeks
Sponsored by: Sandvine Inc.

10 years agocxgbetool: Display the congestion channel map in hex.
np [Thu, 6 Feb 2014 02:36:12 +0000 (02:36 +0000)]
cxgbetool: Display the congestion channel map in hex.

MFC after: 1 week

10 years agocxgbe(4): Use the port's tx channel to identify it to t4_clr_port_stats.
np [Thu, 6 Feb 2014 02:34:29 +0000 (02:34 +0000)]
cxgbe(4): Use the port's tx channel to identify it to t4_clr_port_stats.

MFC after: 3 days

10 years ago- Implement the RX EARLYOFF and RXDV GATED bits as done by RealTek's Linux
marius [Wed, 5 Feb 2014 23:13:40 +0000 (23:13 +0000)]
- Implement the RX EARLYOFF and RXDV GATED bits as done by RealTek's Linux
  driver as version 8.037.00 for RTL8168{E-VL,EP,F,G,GU} and RTL8111B. This
  makes reception of packets work with the RTL8168G (HW rev. 0x4c000000) in
  my Shuttle DS47.
- Consistently use RL_MSI_MESSAGES.
In joint forces with: yongari

MFC after: 5 days

10 years agoSet the malloc alignment to 64 bytes on platforms that use the U-Boot API
ian [Wed, 5 Feb 2014 22:53:58 +0000 (22:53 +0000)]
Set the malloc alignment to 64 bytes on platforms that use the U-Boot API
device drivers.  Recent versions of u-boot run with the MMU enabled, and
require DMA-based I/O to be aligned to cache line boundaries.

These changes are based on a patch originally submitted by Juergen Weiss,
but I reworked them and thus any problems are purely my fault.

Submitted by: "Juergen Weiss" <weiss@uni-mainz.de>
Reviewed by: imp, nwhitehorn, jhb

10 years agoTry to make the style used here consistent.
marius [Wed, 5 Feb 2014 22:27:49 +0000 (22:27 +0000)]
Try to make the style used here consistent.

10 years agoAdd bus space barriers for page switches missed in r260050.
marius [Wed, 5 Feb 2014 22:21:08 +0000 (22:21 +0000)]
Add bus space barriers for page switches missed in r260050.

10 years agoAdd two tunables to ignore certain firmware-assigned resources. These
jhb [Wed, 5 Feb 2014 20:52:12 +0000 (20:52 +0000)]
Add two tunables to ignore certain firmware-assigned resources.  These
are mostly useful for debugging.
- hw.pci.clear_bars ignores all firmware-assigned ranges for BARs when
  set.
- hw.pci.clear_pcib ignores all firmware-assigned ranges for PCI-PCI
  bridge I/O windows when set.

MFC after: 1 week

10 years agoSimplify pci_reserve_map() by calling resource_list_reserve() to allocate
jhb [Wed, 5 Feb 2014 20:47:49 +0000 (20:47 +0000)]
Simplify pci_reserve_map() by calling resource_list_reserve() to allocate
the resource after creating a resource list entry rather than reimplementing
it by hand.

MFC after: 1 week

10 years agoPrint the MD5 signature information introduced in r221023 in the
bz [Wed, 5 Feb 2014 20:43:03 +0000 (20:43 +0000)]
Print the MD5 signature information introduced in r221023 in the
TCP statistics output.

MFC after: 3 weeks

10 years agoProperly set the alignment flags when allocating the initial range for a
jhb [Wed, 5 Feb 2014 19:24:16 +0000 (19:24 +0000)]
Properly set the alignment flags when allocating the initial range for a
BAR.  This only really matters when pci_do_realloc_bars is enabled and
the initial allocation of a specific range fails.

MFC after: 1 week

10 years agoFix a typo.
jhb [Wed, 5 Feb 2014 19:23:05 +0000 (19:23 +0000)]
Fix a typo.

10 years agoDescribe the use of a freebsd-boot GPT partition, brought up by Scot
wblock [Wed, 5 Feb 2014 18:26:30 +0000 (18:26 +0000)]
Describe the use of a freebsd-boot GPT partition, brought up by Scot
Hetzel <swhetzel@gmail.com> on the -doc mailing list.

Also modify the Author section to be clear that I wrote the man page,
not gptboot.

MFC after: 3 days

10 years agoAdd files to remove WITHOUT_NIS
antoine [Wed, 5 Feb 2014 18:16:18 +0000 (18:16 +0000)]
Add files to remove WITHOUT_NIS

PR: 186412

10 years agoDrop the 3rd clause from all 3 clause BSD licenses where I am the sole
jhb [Wed, 5 Feb 2014 18:13:27 +0000 (18:13 +0000)]
Drop the 3rd clause from all 3 clause BSD licenses where I am the sole
holder to convert them to 2 clause BSD licenses.

MFC after: 1 week

10 years agoMove a warning about LINT pins configured with a level trigger under
jhb [Wed, 5 Feb 2014 18:11:46 +0000 (18:11 +0000)]
Move a warning about LINT pins configured with a level trigger under
bootverbose.

10 years ago- Update a few places to account for va_copy().
jhb [Wed, 5 Feb 2014 17:41:00 +0000 (17:41 +0000)]
- Update a few places to account for va_copy().
- Create a separate 'return values' section and move some statements about
  return values to that section.
- Note that each invocation of va_start() and va_copy() must be paired with
  va_end() in the same function.

MFC after: 1 week

10 years agoSimilar to r130943 for cdboot.S, update the license on this file to a
jhb [Wed, 5 Feb 2014 17:22:54 +0000 (17:22 +0000)]
Similar to r130943 for cdboot.S, update the license on this file to a
stock 2-clause BSD license.

MFC after: 1 week

10 years agoAdd the missing ')' at end of sentence. Reword it to use a more common
loos [Wed, 5 Feb 2014 17:08:55 +0000 (17:08 +0000)]
Add the missing ')' at end of sentence.  Reword it to use a more common
idiom.

Reviewed by: imp (on freebsd-embedded@)
Approved by: adrian (mentor, implicit)

10 years agoFix I/O freezes in some cases, caused by r257916.
mav [Wed, 5 Feb 2014 16:22:02 +0000 (16:22 +0000)]
Fix I/O freezes in some cases, caused by r257916.

Delaying isp_reqodx update, we should be ready to update it every time
we read it.  Otherwise requests using several indexes may be requeued
ndefinitely without ever updating the variable.

MFC after: 3 days

10 years agoUse the DELTA() macro to tidy the server-side interval stats code a bit.
jhb [Wed, 5 Feb 2014 14:44:59 +0000 (14:44 +0000)]
Use the DELTA() macro to tidy the server-side interval stats code a bit.

MFC after: 2 weeks

10 years agoMove Open Firmware device root on PowerPC, ARM, and MIPS systems to
nwhitehorn [Wed, 5 Feb 2014 14:44:22 +0000 (14:44 +0000)]
Move Open Firmware device root on PowerPC, ARM, and MIPS systems to
a sub-node of nexus (ofwbus) rather than direct attach under nexus. This
fixes FDT on x86 and will make coexistence with ACPI on ARM systems easier.
SPARC is unchanged.

Reviewed by: imp, ian

10 years agoPartially revert r52493 and change client side interval statistics to
jhb [Wed, 5 Feb 2014 14:33:22 +0000 (14:33 +0000)]
Partially revert r52493 and change client side interval statistics to
report the actual number of RPCs issued, not the theoretical number
that would be issued if all caching was disabled.

Reviewed by: rmacklem
MFC after: 2 weeks

10 years agoAdd an example of the most common use case.
des [Wed, 5 Feb 2014 09:28:02 +0000 (09:28 +0000)]
Add an example of the most common use case.

MFC after: 1 week

10 years agoUse system macro instead of own hand-rolled one.
hselasky [Wed, 5 Feb 2014 08:29:24 +0000 (08:29 +0000)]
Use system macro instead of own hand-rolled one.

10 years agoAdd more quirks for making builtin audio speakers work with more
hselasky [Wed, 5 Feb 2014 08:27:02 +0000 (08:27 +0000)]
Add more quirks for making builtin audio speakers work with more
MacBookPro's. Only tested with MacBookPro 9,2.

Obtained from: Linux
MFC after: 1 week

10 years agoCorrect setting R92C_TXAGC_MCS11_MCS08 register.
kevlo [Wed, 5 Feb 2014 08:09:02 +0000 (08:09 +0000)]
Correct setting R92C_TXAGC_MCS11_MCS08 register.

10 years agoFix a regression issue. Contiguous single segment allocations above
hselasky [Wed, 5 Feb 2014 08:02:52 +0000 (08:02 +0000)]
Fix a regression issue. Contiguous single segment allocations above
PAGE_SIZE bytes should only use one USB page structure. Fixes a
problem with some external drivers.

MFC after: 2 days

10 years agoAdd support for FreeBSD/i386 guests under bhyve.
jhb [Wed, 5 Feb 2014 04:39:03 +0000 (04:39 +0000)]
Add support for FreeBSD/i386 guests under bhyve.
- Similar to the hack for bootinfo32.c in userboot, define
  _MACHINE_ELF_WANT_32BIT in the load_elf32 file handlers in userboot.
  This allows userboot to load 32-bit kernels and modules.
- Copy the SMAP generation code out of bootinfo64.c and into its own
  file so it can be shared with bootinfo32.c to pass an SMAP to the i386
  kernel.
- Use uint32_t instead of u_long when aligning module metadata in
  bootinfo32.c in userboot, as otherwise the metadata used 64-bit
  alignment which corrupted the layout.
- Populate the basemem and extmem members of the bootinfo struct passed
  to 32-bit kernels.
- Fix the 32-bit stack in userboot to start at the top of the stack
  instead of the bottom so that there is room to grow before the
  kernel switches to its own stack.
- Push a fake return address onto the 32-bit stack in addition to the
  arguments normally passed to exec() in the loader.  This return
  address is needed to convince recover_bootinfo() in the 32-bit
  locore code that it is being invoked from a "new" boot block.
- Add a routine to libvmmapi to setup a 32-bit flat mode register state
  including a GDT and TSS that is able to start the i386 kernel and
  update bhyveload to use it when booting an i386 kernel.
- Use the guest register state to determine the CPU's current instruction
  mode (32-bit vs 64-bit) and paging mode (flat, 32-bit, PAE, or long
  mode) in the instruction emulation code.  Update the gla2gpa() routine
  used when fetching instructions to handle flat mode, 32-bit paging, and
  PAE paging in addition to long mode paging.  Don't look for a REX
  prefix when the CPU is in 32-bit mode, and use the detected mode to
  enable the existing 32-bit mode code when decoding the mod r/m byte.

Reviewed by: grehan, neel
MFC after: 1 month

10 years agoAdd support for emulating the byte move and zero extend instructions:
tychon [Wed, 5 Feb 2014 02:01:08 +0000 (02:01 +0000)]
Add support for emulating the byte move and zero extend instructions:
"mov r/m8, r32" and "mov r/m8, r64".

Approved by: neel (co-mentor)

10 years agolibc/net: fix a portability issue
eadler [Wed, 5 Feb 2014 02:00:31 +0000 (02:00 +0000)]
libc/net: fix a portability issue

* POSIX does not require socklen_t to be  unsigned

Submitted by: bde
MFC After: 1 week (with r261454)

10 years agoFix ! by not clearing not at the bottom of the loop.
imp [Wed, 5 Feb 2014 00:26:11 +0000 (00:26 +0000)]
Fix ! by not clearing not at the bottom of the loop.
Add a blank line

Submitted by: bde (blank line)

10 years agoAdd a license (1) and do some cleanup.
brueffer [Tue, 4 Feb 2014 22:20:17 +0000 (22:20 +0000)]
Add a license (1) and do some cleanup.

Approved by: Stefan Bethke (original author, by private mail) (1)
MFC after: 1 week

10 years agoFix installations that use kernels without CAPABILITIES support.
pjd [Tue, 4 Feb 2014 21:48:09 +0000 (21:48 +0000)]
Fix installations that use kernels without CAPABILITIES support.

Approved by: des

10 years agoProtect ping(8) using Capsicum and Casper. This is protection against malicious
pjd [Tue, 4 Feb 2014 21:43:53 +0000 (21:43 +0000)]
Protect ping(8) using Capsicum and Casper. This is protection against malicious
network packets that we parse and not against local users trying to gain root
access through ping's set-uid bit - this is handled by dropping privileges very
early in ping.

Submitted by: Mikhail <mp@lenta.ru>

10 years agoAbort when firmware isn't present in R600+ models.
rmh [Tue, 4 Feb 2014 21:23:12 +0000 (21:23 +0000)]
Abort when firmware isn't present in R600+ models.

More details at:
http://anonscm.debian.org/viewvc/kernel/dists/trunk/linux/debian/patches/bugfix/all/radeon-firmware-is-required-for-drm-and-kms-on-r600-onward.patch?revision=20909&view=co

Reviewed by: dumbbell
MFC after: 1 week

10 years agoUnbreak mount_udf by passing the correct iovec length into
brueffer [Tue, 4 Feb 2014 21:15:15 +0000 (21:15 +0000)]
Unbreak mount_udf by passing the correct iovec length into
nmount().  This has been broken since r247856.

PR: bin/186193
Submitted by: Arnot Belohlavek
MFC after: 1 week

10 years agoUse right buffer to print to.
ed [Tue, 4 Feb 2014 20:52:33 +0000 (20:52 +0000)]
Use right buffer to print to.

PR: kern/176597
Submitted by: Christoph Mallon <christoph mallon gmx de>
MFC after: 2 weeks

10 years agoActually install acpi_rapidstart.4.
brueffer [Tue, 4 Feb 2014 18:54:33 +0000 (18:54 +0000)]
Actually install acpi_rapidstart.4.

MFC after: 1 week

10 years agoImplement the '!' operator for files* files. It means 'include this
imp [Tue, 4 Feb 2014 18:28:58 +0000 (18:28 +0000)]
Implement the '!' operator for files* files. It means 'include this
only if the specified option is NOT specified.' Bump version because
old config won't be able to cope with files* files that have this
construct in them.