]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
9 years agoFor the kernel, we have USB_GADGET_EXAMPLES as defaults to yes. For
imp [Tue, 21 Oct 2014 20:29:53 +0000 (20:29 +0000)]
For the kernel, we have USB_GADGET_EXAMPLES as defaults to yes. For
userland defaults to no. This caused issues for the automated option
documenation script. Turns out, this isn't used in userland at all, so
just remove it from here.

9 years agoGenerate both userland and kernel option settings for showconfig.
imp [Tue, 21 Oct 2014 20:29:51 +0000 (20:29 +0000)]
Generate both userland and kernel option settings for showconfig.

PR: 191920

9 years agoYou aren't allowed to test WITH_xxx or WITHOUT_xxx here, so remove it.
imp [Tue, 21 Oct 2014 20:29:42 +0000 (20:29 +0000)]
You aren't allowed to test WITH_xxx or WITHOUT_xxx here, so remove it.
Even if you were allowed to test for it, the test makes no sense as it
always results in adding -DWITH_ATF unless WITH_ATF was already
defined. But if MK_ATF != no, then we know it was defined. This, in
turn, caused tools/build/options/makemake always think WITH_ATF is the
default, which removed control of that from sys.conf.mk.

To get the intent of the deleted comment, another mechanism is
required, assuming that the intent of that comment is desirable.

9 years agoAdd sys/socket.h #include for bind(2), et al
ngie [Tue, 21 Oct 2014 20:17:05 +0000 (20:17 +0000)]
Add sys/socket.h #include for bind(2), et al

Sponsored by: EMC / Isilon Storage Division

9 years agoDo not make ld(1) warnings fatal anymore, binutils behaviour has changed over the
bapt [Tue, 21 Oct 2014 20:11:05 +0000 (20:11 +0000)]
Do not make ld(1) warnings fatal anymore, binutils behaviour has changed over the
time and gnu.warnings.symbol are now being fatal preventing building world.

in the futur we want to investigate only making the gnu.warning.symbol non fatal

Reviewed by: imp

9 years agoMake the external toolchain support grows to the knowleged of XXFLAGS for C++ dedicat...
bapt [Tue, 21 Oct 2014 20:07:15 +0000 (20:07 +0000)]
Make the external toolchain support grows to the knowleged of XXFLAGS for C++ dedicated flags
and DEPFLAGS for mkdep flags
Pass the path to the libc++ headers in both, enforce the gnu++11 standard in the XXFLAGS
to satisfy libc++ requirements pass the libc++ objectdir as a location where to find
libraries so it can find libstdc++.so and libstdc++.A

Reviewed by: imp

9 years agoWhen using an external gcc 4.8+ and not building libstdc++ then create in the objectdir a
bapt [Tue, 21 Oct 2014 20:04:05 +0000 (20:04 +0000)]
When using an external gcc 4.8+ and not building libstdc++ then create in the objectdir a
fake libstdc++.so and libstdc++.a which is a symlink on libc++ that allow g++ to satisfy
its links dependencies in the least hackish way.
Please note that this hacky libstds++ never get installed on the final system

Reviewed by: imp

9 years agoAlways use libc++ as the default c++ stack when building with an external gcc 4.8+
bapt [Tue, 21 Oct 2014 20:00:49 +0000 (20:00 +0000)]
Always use libc++ as the default c++ stack when building with an external gcc 4.8+
While here disable building gcc from base when using gcc 4.8+

Reviewed by: imp

9 years agoWhen using an external toolchain note that gcc 4.8+ supports C++11
bapt [Tue, 21 Oct 2014 19:58:23 +0000 (19:58 +0000)]
When using an external toolchain note that gcc 4.8+ supports C++11

Submitted by: imp

9 years agoThe dependencies are computed with CC even if sources are C++, when building
bapt [Tue, 21 Oct 2014 19:56:45 +0000 (19:56 +0000)]
The dependencies are computed with CC even if sources are C++, when building
when building with an external gcc, we want to be able to pass the path to
the libc++ headers so dependencies are correctly computed for C++ source files.
Add a DEPFLAGS for that purpose

Reviewed by: imp

9 years agoMake sysctl name2oid shared-locked as well.
mjg [Tue, 21 Oct 2014 19:45:08 +0000 (19:45 +0000)]
Make sysctl name2oid shared-locked as well.

This is a follow-up to r273401.

9 years agoFix an issue where a FreeBSD virtual machine provisioned in
gjb [Tue, 21 Oct 2014 19:36:20 +0000 (19:36 +0000)]
Fix an issue where a FreeBSD virtual machine provisioned in
the Microsoft Azure service does not recognize the second
attached disk on the system.

Submitted by: kyliel@Microsoft
Patched by: weh@Microsoft
PR: 194376
MFC after: 3 days
X-MFC-10.1: yes, ASAP
Sponsored by: The FreeBSD Foundation

9 years agoImplement shared locking for sysctl.
mjg [Tue, 21 Oct 2014 19:05:44 +0000 (19:05 +0000)]
Implement shared locking for sysctl.

9 years agoRename sysctl_lock and _unlock to sysctl_xlock and _xunlock.
mjg [Tue, 21 Oct 2014 19:02:26 +0000 (19:02 +0000)]
Rename sysctl_lock and _unlock to sysctl_xlock and _xunlock.

9 years agoPort t_chroot to FreeBSD
ngie [Tue, 21 Oct 2014 18:10:05 +0000 (18:10 +0000)]
Port t_chroot to FreeBSD

- Add missing #include sys/stat.h for mkdir(2)
- Omit the fchroot(2) tests because the support is not present on FreeBSD

Sponsored by: EMC / Isilon Storage Division

9 years agounlink("/") fails with EISDIR instead of EBUSY on FreeBSD; test for that
ngie [Tue, 21 Oct 2014 18:06:04 +0000 (18:06 +0000)]
unlink("/") fails with EISDIR instead of EBUSY on FreeBSD; test for that
instead

Sponsored by: EMC / Isilon Storage Division

9 years agoMark osi __unused so this compiles cleanly on FreeBSD
ngie [Tue, 21 Oct 2014 18:01:37 +0000 (18:01 +0000)]
Mark osi __unused so this compiles cleanly on FreeBSD

Sponsored by: EMC / Isilon Storage Division

9 years agoixl: remove i40e_register_x710_int.h
jimharris [Tue, 21 Oct 2014 18:00:56 +0000 (18:00 +0000)]
ixl: remove i40e_register_x710_int.h

This file is not used by the FreeBSD ixl driver.

Submitted by: Eric Joyner <eric.joyner@intel.com>
MFC after: 3 days

9 years agoPort t_write to FreeBSD
ngie [Tue, 21 Oct 2014 18:00:55 +0000 (18:00 +0000)]
Port t_write to FreeBSD

- Mark the signo variable for the signal handle __unused
- Use limits.h instead of sys/syslimits.h (the latter does not
exist on FreeBSD)

Sponsored by: EMC / Isilon Storage Division

9 years agoit is not cast to a pointer of the specified type, it is cast to the
jmg [Tue, 21 Oct 2014 17:59:27 +0000 (17:59 +0000)]
it is not cast to a pointer of the specified type, it is cast to the
specified type...

mtod(m, uint8_t) does not work, mtod(m, uint8_t *) does work..

9 years agoAdd missing #include for sys/stat.h for fchmod
ngie [Tue, 21 Oct 2014 17:58:53 +0000 (17:58 +0000)]
Add missing #include for sys/stat.h for fchmod

Sponsored by: EMC / Isilon Storage Division

9 years agolibutil.h is required for fparseln on FreeBSD
ngie [Tue, 21 Oct 2014 17:57:12 +0000 (17:57 +0000)]
libutil.h is required for fparseln on FreeBSD

Sponsored by: EMC / Isilon Storage Division

9 years agoPort lib/libc/gen/t_siginfo to FreeBSD
ngie [Tue, 21 Oct 2014 17:56:06 +0000 (17:56 +0000)]
Port lib/libc/gen/t_siginfo to FreeBSD

- mcontext_t on FreeBSD doesn't have a __gregs field (it's split out on FreeBSD
into separate fields). In order to avoid muddying the test code with MD code,
the debugging trace info has not been implemented
- FreeBSD does not implement the si_stime and si_utime fields in siginfo_t, so
omit the debugging code that dumps the values
- sys/inttypes.h doesn't exist on FreeBSD

Sponsored by: EMC / Isilon Storage Division

9 years agospell out the arguments..
jmg [Tue, 21 Oct 2014 17:17:40 +0000 (17:17 +0000)]
spell out the arguments..

the + *offsetp does not belong w/ the type, move it outside the .Fn
macro...

9 years agoFix build by marking the new functions as weak
bapt [Tue, 21 Oct 2014 12:52:01 +0000 (12:52 +0000)]
Fix build by marking the new functions as weak
This is a temporary fix

9 years agoAdd support for __cxa_throw_bad_array_new_length in libcxxrt
bapt [Tue, 21 Oct 2014 10:19:45 +0000 (10:19 +0000)]
Add support for __cxa_throw_bad_array_new_length in libcxxrt

It is required for use with newer g++49

Differential Revision: https://reviews.freebsd.org/D982
Reviewed by: theraven
Approved by: theraven
MFC after: 3 weeks

9 years agoAdd driver for Micrel KSZ9021 Gigabit Ethernet Transceiver (PHY).
br [Tue, 21 Oct 2014 09:14:16 +0000 (09:14 +0000)]
Add driver for Micrel KSZ9021 Gigabit Ethernet Transceiver (PHY).

Sponsored by: DARPA, AFRL

9 years agoFix minor typo in currently unused macro.
hselasky [Tue, 21 Oct 2014 07:49:34 +0000 (07:49 +0000)]
Fix minor typo in currently unused macro.

MFC after: 3 days

9 years agoFix multiple incorrect SYSCTL arguments in the kernel:
hselasky [Tue, 21 Oct 2014 07:31:21 +0000 (07:31 +0000)]
Fix multiple incorrect SYSCTL arguments in the kernel:

- Wrong integer type was specified.

- Wrong or missing "access" specifier. The "access" specifier
sometimes included the SYSCTL type, which it should not, except for
procedural SYSCTL nodes.

- Logical OR where binary OR was expected.

- Properly assert the "access" argument passed to all SYSCTL macros,
using the CTASSERT macro. This applies to both static- and dynamically
created SYSCTLs.

- Properly assert the the data type for both static and dynamic
SYSCTLs. In the case of static SYSCTLs we only assert that the data
pointed to by the SYSCTL data pointer has the correct size, hence
there is no easy way to assert types in the C language outside a
C-function.

- Rewrote some code which doesn't pass a constant "access" specifier
when creating dynamic SYSCTL nodes, which is now a requirement.

- Updated "EXAMPLES" section in SYSCTL manual page.

MFC after: 3 days
Sponsored by: Mellanox Technologies

9 years agoAdd the Intel BayTrail USB device which needs port routing for USB 3.0.
kevlo [Tue, 21 Oct 2014 07:24:58 +0000 (07:24 +0000)]
Add the Intel BayTrail USB device which needs port routing for USB 3.0.

Tested on the BayTrail E3845 platform.
Reviewed by: hselasky

9 years agoMerge projects/bhyve_svm into HEAD.
neel [Tue, 21 Oct 2014 07:10:43 +0000 (07:10 +0000)]
Merge projects/bhyve_svm into HEAD.

After this change bhyve supports AMD processors with the SVM/AMD-V hardware
extensions.

More details available here:
https://lists.freebsd.org/pipermail/freebsd-virtualization/2014-October/002905.html

Submitted by: Anish Gupta (akgupt3@gmail.com)
Tested by: Benjamin Perrault (ben.perrault@gmail.com)
Tested by: Willem Jan Withagen (wjw@digiware.nl)

9 years agoUse the size of the Ethernet address, not the entire header, when
bryanv [Tue, 21 Oct 2014 05:45:57 +0000 (05:45 +0000)]
Use the size of the Ethernet address, not the entire header, when
copying into forwarding entry.

Reported by: Coverity
CID: 1248849

9 years agoCorrect the calculation of tcps_rto in the struct tcpcb -> tcpsinfo_t
markj [Tue, 21 Oct 2014 05:19:08 +0000 (05:19 +0000)]
Correct the calculation of tcps_rto in the struct tcpcb -> tcpsinfo_t
translator.

Submitted by: Grenville Armitage <garmitage@swin.edu.au>
MFC after: 1 week

9 years agoFix a few small bugs in the DTrace USDT rules:
markj [Tue, 21 Oct 2014 04:30:00 +0000 (04:30 +0000)]
Fix a few small bugs in the DTrace USDT rules:
* anchor search strings appropriately,
* use .ALLSRC to pass the full path to the D script to dtrace(1),
* don't insert the auto-generated header into SRCS - it doesn't
  accomplish anything, and we end up having to remove it from OBJS anyway.

Reviewed by: rpaulo
Differential Revision: https://reviews.freebsd.org/D978
MFC after: 3 weeks
Sponsored by: EMC / Isilon Storage Division

9 years agoIFC @r273338
neel [Tue, 21 Oct 2014 01:57:36 +0000 (01:57 +0000)]
IFC @r273338

9 years agocxgbetool: Catch up with r185979. One of MAP_ANON, MAP_PRIVATE,
np [Tue, 21 Oct 2014 01:34:18 +0000 (01:34 +0000)]
cxgbetool: Catch up with r185979.  One of MAP_ANON, MAP_PRIVATE,
MAP_SHARED, or MAP_STACK must be specified.

This fixes the "loadfw" subcommand.

MFC after: 1 week

9 years agoIt seems multicast filtering of RTL8168F does not work. Workaround
yongari [Tue, 21 Oct 2014 01:31:24 +0000 (01:31 +0000)]
It seems multicast filtering of RTL8168F does not work.  Workaround
the silicon bug by accepting any multicast packets.

PR: 193488
MFC After: 1 week

9 years agoFix a race in pmap_emulate_accessed_dirty() that could trigger a EPT
neel [Tue, 21 Oct 2014 01:06:58 +0000 (01:06 +0000)]
Fix a race in pmap_emulate_accessed_dirty() that could trigger a EPT
misconfiguration VM-exit.

An EPT misconfiguration is triggered when the processor encounters a PTE
that is writable but not readable (WR=10). On processors that require A/D
bit emulation PG_M and PG_A map to EPT_PG_WRITE and EPT_PG_READ respectively.

If the PTE is updated as in the following code snippet:
*pte |= PG_M;
*pte |= PG_A;
then it is possible for another processor to observe the PTE after the PG_M
(aka EPT_PG_WRITE) bit is set but before PG_A (aka EPT_PG_READ) bit is set.

This will trigger an EPT misconfiguration VM-exit on the other processor.

Reported by: rodrigc
Reviewed by: grehan
MFC after: 3 days

9 years agoAttach the imx6 CCM driver during BUS_PASS_CPU. It controls the clocks
ian [Mon, 20 Oct 2014 23:34:47 +0000 (23:34 +0000)]
Attach the imx6 CCM driver during BUS_PASS_CPU.  It controls the clocks
for most on-chip devices and needs to be available before other drivers
start attaching and asking to have their clocks enabled.

9 years agoThe imx6 hardware is fast enough to make good use of however much
ian [Mon, 20 Oct 2014 23:32:34 +0000 (23:32 +0000)]
The imx6 hardware is fast enough to make good use of however much
timecounter resolution is available, so ask for a 1 GHz frequency.  It
won't actually get one that fast, but that'll get the fastest available
clock and use a divisor of 1 (probably 132 or 66mhz on current hardware).

9 years agoPlug unnecessary binvp NULL initialization and test.
mjg [Mon, 20 Oct 2014 22:52:15 +0000 (22:52 +0000)]
Plug unnecessary binvp NULL initialization and test.

Reported by: Coverity
CID: 1018889

9 years agofiledesc: plug 2 write-only variables
mjg [Mon, 20 Oct 2014 21:57:24 +0000 (21:57 +0000)]
filedesc: plug 2 write-only variables

Reported by: Coverity
CID: 12457451245746

9 years agoFix a typo from r189544, which replaced unp_global_rwlock with unp_list_lock
markj [Mon, 20 Oct 2014 20:21:40 +0000 (20:21 +0000)]
Fix a typo from r189544, which replaced unp_global_rwlock with unp_list_lock
and unp_link_rwlock.

MFC after: 3 days

9 years agoMerge from projects/bhyve_svm all the changes outside vmm.ko or bhyve utilities:
neel [Mon, 20 Oct 2014 18:09:33 +0000 (18:09 +0000)]
Merge from projects/bhyve_svm all the changes outside vmm.ko or bhyve utilities:

Add support for AMD's nested page tables in pmap.c:
- Provide the correct bit mask for various bit fields in a PTE (e.g. valid bit)
  for a pmap of type PT_RVI.
- Add a function 'pmap_type_guest(pmap)' that returns TRUE if the pmap is of
  type PT_EPT or PT_RVI.

Add CPU_SET_ATOMIC_ACQ(num, cpuset):
This is used when activating a vcpu in the nested pmap. Using the 'acquire'
variant guarantees that the load of the 'pm_eptgen' will happen only after
the vcpu is activated in 'pm_active'.

Add defines for various AMD-specific MSRs.

Submitted by: Anish Gupta (akgupt3@gmail.com)

9 years agoFix the mtx_sleep() error checking, catch all errors and not only
loos [Mon, 20 Oct 2014 18:04:20 +0000 (18:04 +0000)]
Fix the mtx_sleep() error checking, catch all errors and not only
EWOULDBLOCK.

Do not print any message at errors.  The errors are properly sent to upper
layers which should be able to deal with it, including printing the errors
when they need to.

The error message was quite annoying while scanning the i2c bus.

MFC after: 1 week

9 years agoProvide vfs suspension support only for filesystems which need it, take
mjg [Mon, 20 Oct 2014 18:00:50 +0000 (18:00 +0000)]
Provide vfs suspension support only for filesystems which need it, take
two.

nullfs and unionfs need to request suspension if underlying filesystem(s)
use it. Utilize mnt_kern_flag for this purpose.

This is a fixup for 273271.

No strong objections from: kib
Pointy hat to: mjg
MFC after: 2 weeks

9 years agounionfs: hold mount interlock while manipulating mnt_flag
mjg [Mon, 20 Oct 2014 17:53:49 +0000 (17:53 +0000)]
unionfs: hold mount interlock while manipulating mnt_flag

This is for consistency with other filesystems.

9 years agoFully support constructors for the purpose of code coverage analysis.
marcel [Mon, 20 Oct 2014 17:04:03 +0000 (17:04 +0000)]
Fully support constructors for the purpose of code coverage analysis.
This involves:
1.  Have the loader pass the start and size of the .ctors section to the
    kernel in 2 new metadata elements.
2.  Have the linker backends look for and record the start and size of
    the .ctors section in dynamically loaded modules.
3.  Have the linker backends call the constructors as part of the final
    work of initializing preloaded or dynamically loaded modules.

Note that LLVM appends the priority of the constructors to the name of
the .ctors section. Not so when compiling with GCC. The code currently
works for GCC and not for LLVM.

Submitted by: Dmitry Mikulin <dmitrym@juniper.net>
Obtained from: Juniper Networks, Inc.

9 years agoMac OS X 10.10 added.
pluknet [Mon, 20 Oct 2014 15:41:11 +0000 (15:41 +0000)]
Mac OS X 10.10 added.

9 years agoAdd vtfontcvt(8) cross-reference to vt(4) man page
emaste [Mon, 20 Oct 2014 14:48:20 +0000 (14:48 +0000)]
Add vtfontcvt(8) cross-reference to vt(4) man page

Reported by: beeessdee@ruggedinbox.com
MFC after: 3 days

9 years agoAdd vxlan interface
bryanv [Mon, 20 Oct 2014 14:42:42 +0000 (14:42 +0000)]
Add vxlan interface

vxlan creates a virtual LAN by encapsulating the inner Ethernet frame in
a UDP packet. This implementation is based on RFC7348.

Currently, the IPv6 support is not fully compliant with the specification:
we should be able to receive UPDv6 packets with a zero checksum, but we
need to support RFC6935 first. Patches for this should come soon.

Encapsulation protocols such as vxlan emphasize the need for the FreeBSD
network stack to support batching, GRO, and GSO. Each frame has to make
two trips through the network stack, and each frame will be at most MTU
sized. Performance suffers accordingly.

Some latest generation NICs have begun to support vxlan HW offloads that
we should also take advantage of. VIMAGE support should also be added soon.

Differential Revision: https://reviews.freebsd.org/D384
Reviewed by: gnn
Relnotes: yes

9 years agovt(4): Refuse to load a font if hw.vga.textmode is selected
dumbbell [Mon, 20 Oct 2014 14:25:23 +0000 (14:25 +0000)]
vt(4): Refuse to load a font if hw.vga.textmode is selected

Before, the font was loaded and the window size recalculated, giving an
unusable terminal, even if the actual font didn't change.

Reported by: beeessdee@ruggedinbox.com
MFC after: 3 days

9 years agoAdd another wakeup() after actually set the bus as free.
loos [Mon, 20 Oct 2014 13:36:52 +0000 (13:36 +0000)]
Add another wakeup() after actually set the bus as free.

This fix a race where the threads waiting for the bus would wake up early
and still see bus as busy.

While here, give a better description to wmesg for the two use cases we
have (bus and io waiting).

MFC after: 1 week

9 years agoAdd another PCI ID for JMB368 PATA controller.
mav [Mon, 20 Oct 2014 13:18:52 +0000 (13:18 +0000)]
Add another PCI ID for JMB368 PATA controller.

MFC after: 1 week

9 years agoUse copyout() directly instead of updating various fields
melifaro [Mon, 20 Oct 2014 11:21:07 +0000 (11:21 +0000)]
Use copyout() directly instead of updating various fields
before/after each sooptcopyout() call.

Found by: luigi
Sponsored by: Yandex LLC

9 years agoFix a typo.
hrs [Mon, 20 Oct 2014 04:14:35 +0000 (04:14 +0000)]
Fix a typo.

Spotted by: O. Hartmann

9 years agoIFC @r273214
neel [Mon, 20 Oct 2014 02:57:30 +0000 (02:57 +0000)]
IFC @r273214

9 years agoThe U-Boot README says fdt_addr_r is the right env var for fdt data
ian [Mon, 20 Oct 2014 01:52:17 +0000 (01:52 +0000)]
The U-Boot README says fdt_addr_r is the right env var for fdt data
loaded into ram, but vendors also use fdtaddr and fdt_addr.  Check the
recommended variable first and fall back to the others.

9 years agoWARNS=3 and style fixes. No functionality change.
hrs [Mon, 20 Oct 2014 00:27:40 +0000 (00:27 +0000)]
WARNS=3 and style fixes.  No functionality change.

9 years agoUpdate the TCP structure used by DTrace to show the smoothed RTT.
gnn [Sun, 19 Oct 2014 23:13:16 +0000 (23:13 +0000)]
Update the TCP structure used by DTrace to show the smoothed RTT.
This will allow similar functionality to SIFTR to be built with DTrace.

Submitted by: Grenville Armitage
MFC after: 2 weeks

9 years agoIFC @r273206
neel [Sun, 19 Oct 2014 23:05:18 +0000 (23:05 +0000)]
IFC @r273206

9 years agoDon't advertise the "OS visible workarounds" feature in cpuid.80000001H:ECX.
neel [Sun, 19 Oct 2014 21:38:58 +0000 (21:38 +0000)]
Don't advertise the "OS visible workarounds" feature in cpuid.80000001H:ECX.
bhyve doesn't emulate the MSRs needed to support this feature at this time.

Don't expose any model-specific RAS and performance monitoring features in
cpuid leaf 80000007H.

Emulate a few more MSRs for AMD: TSEG base address, TSEG address mask and
BIOS signature and P-state related MSRs.

This eliminates all the unimplemented MSRs accessed by Linux/x86_64 kernels
2.6.32, 3.10.0 and 3.17.0.

9 years agoAllow the armv6 kernel to be build with PHYSADDR undefined. The kernel
andrew [Sun, 19 Oct 2014 21:03:42 +0000 (21:03 +0000)]
Allow the armv6 kernel to be build with PHYSADDR undefined. The kernel
will now find the virtual to physical mapping for libkvm to use at
runtime. This makes PHYSADDR redundant, however keep it around to give
everyone a chance to update their libkvm.

MFC after: 1 week

9 years agoOnly build the ARM tranpoline when KERNPHYSADDR is defined as it is
andrew [Sun, 19 Oct 2014 20:56:05 +0000 (20:56 +0000)]
Only build the ARM tranpoline when KERNPHYSADDR is defined as it is
otherwise unneeded in armv6 kernels.

MFC after: 1 week

9 years ago- Honer MK_KERBEROS for Heimdal rc.d scripts.
hrs [Sun, 19 Oct 2014 20:46:59 +0000 (20:46 +0000)]
- Honer MK_KERBEROS for Heimdal rc.d scripts.
- Add rc.c/kerberos to OLD_FILES.

9 years agoAllow libkvm to get the kernel va to pa delta without the need for
andrew [Sun, 19 Oct 2014 20:23:31 +0000 (20:23 +0000)]
Allow libkvm to get the kernel va to pa delta without the need for
physaddr. This should allow for a kernel where PHYSADDR and KERNPHYSADDR
are both undefined.

For now libkvm will use the old method of reading physaddr and kernaddr
to allow it to work with old kernels. This could be removed in the future
when enough time has passed.

Differential Revision: https://reviews.freebsd.org/D939
MFC after: 1 week

9 years agoAttach this driver during BUS_PASS_BUS and move the cpu init code to a
ian [Sun, 19 Oct 2014 18:41:22 +0000 (18:41 +0000)]
Attach this driver during BUS_PASS_BUS and move the cpu init code to a
bus_new_pass() handler so it doesn't happen until BUS_PASS_CPU.  This allows
the anatop driver to outbid the generic simplebus driver (which the FDT
data describes as compatible).

Some day when we handle power regulators, this driver may actually
become a functional simplebus and attach the regulators as children, as
described in the FDT data.

9 years agoFail to probe on simplebus nodes that lack a "ranges" property.
ian [Sun, 19 Oct 2014 18:31:11 +0000 (18:31 +0000)]
Fail to probe on simplebus nodes that lack a "ranges" property.

Increasingly, FDT data has the "simple-bus" compatible string on nodes
that have children, but we wouldn't consider them to be busses.  If the
node lacks a ranges property then we will fail to attach successfully,
so fail to probe as well.

9 years agoStyle changes as pointed out by stas@.
rpaulo [Sun, 19 Oct 2014 17:55:04 +0000 (17:55 +0000)]
Style changes as pointed out by stas@.

MFC after: 1 week

9 years agocxgb(4): reset the PHY if it generates an interrupt for no apparent reason.
np [Sun, 19 Oct 2014 17:29:44 +0000 (17:29 +0000)]
cxgb(4): reset the PHY if it generates an interrupt for no apparent reason.

MFC after: 1 week

9 years agoAdd new quirks for the latest Samsung SSD, model 850.
gnn [Sun, 19 Oct 2014 16:46:36 +0000 (16:46 +0000)]
Add new quirks for the latest Samsung SSD, model 850.

Submitted by: sbruno
MFC after: 2 weeks

9 years agoAdd driver for BERI soft processor 'ring buffer' device.
br [Sun, 19 Oct 2014 16:26:49 +0000 (16:26 +0000)]
Add driver for BERI soft processor 'ring buffer' device.
Ring device provides a way for communicate to BERI
peripherals such as BERI debug unit and console.

Sponsored by: DARPA, AFRL

9 years agosh: Allow backslash-newline continuation in more places:
jilles [Sun, 19 Oct 2014 11:59:15 +0000 (11:59 +0000)]
sh: Allow backslash-newline continuation in more places:

 * directly after a $
 * directly after ${
 * between the characters of a multi-character operator token
 * within a parameter name

9 years agoPerform more checks on the number of tables supplied by user.
melifaro [Sun, 19 Oct 2014 11:15:19 +0000 (11:15 +0000)]
Perform more checks on the number of tables supplied by user.

9 years agoMerge upstream r825: fix line continuation in whitespace
des [Sun, 19 Oct 2014 11:06:54 +0000 (11:06 +0000)]
Merge upstream r825: fix line continuation in whitespace

9 years agoProvide vfs suspension support only for filesystems which need it.
mjg [Sun, 19 Oct 2014 06:59:33 +0000 (06:59 +0000)]
Provide vfs suspension support only for filesystems which need it.

Need is expressed by providing vfs_susp_clean function in vfsops.

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

9 years agoConvert a missed u_char cpu -> int cpu.
adrian [Sun, 19 Oct 2014 04:38:02 +0000 (04:38 +0000)]
Convert a missed u_char cpu -> int cpu.

This was caught by a gcc build.

Reported by: luigi
Sponsored by: Norse Corp, Inc.

9 years agoAdd a complete implementation of MurmurHash3. Tweak both implementations
des [Sat, 18 Oct 2014 22:15:11 +0000 (22:15 +0000)]
Add a complete implementation of MurmurHash3.  Tweak both implementations
so they match the established idiom.  Document them in hash(9).

MFC after: 1 month
MFC with: r272906

9 years agoAdd tunable vfs.zfs.space_map_blksz for space map's maximum block size.
delphij [Sat, 18 Oct 2014 22:11:10 +0000 (22:11 +0000)]
Add tunable vfs.zfs.space_map_blksz for space map's maximum block size.

MFC after: 2 weeks

9 years agoUpdate the ULE scheduler + thread and kinfo structs to use int for cpuid
adrian [Sat, 18 Oct 2014 19:36:11 +0000 (19:36 +0000)]
Update the ULE scheduler + thread and kinfo structs to use int for cpuid
rather than u_char.

To try and play nice with the ABI, the u_char CPU ID values are clamped
at 254.  The new fields now contain the full CPU ID, or -1 for no cpu.

Differential Revision: D955
Reviewed by: jhb, kib
Sponsored by: Norse Corp, Inc.

9 years agoAdd a workaround needed to fix a bug of Arasan Host Controller where it may
loos [Sat, 18 Oct 2014 19:01:07 +0000 (19:01 +0000)]
Add a workaround needed to fix a bug of Arasan Host Controller where it may
lose the contents of consecutive writes (that happens within two SD card
clock cycles).

This fixes the causes of instability during the SD card detection and
identification on Raspberry Pi (which happens at 400 kHz and so was much
more vulnerable to this issue).

Remove the previous workaround which clearly can't provide the same effect.

MFC after: 1 week
Relnotes: yes

9 years agoFix the chan address for mtx_sleep() on bus wait. Without this fix the
loos [Sat, 18 Oct 2014 18:27:24 +0000 (18:27 +0000)]
Fix the chan address for mtx_sleep() on bus wait.  Without this fix the
threads waiting for the bus would never wake.

X-MFC-With: r270230

9 years agoRework the Ti GPIO code to allow for both the OMAP4 and AM335X attachments
andrew [Sat, 18 Oct 2014 17:51:34 +0000 (17:51 +0000)]
Rework the Ti GPIO code to allow for both the OMAP4 and AM335X attachments
to be present. Thsi creates a new per-SoC driver that handles probe and
setting/getting the gpio flags.

Differential Revision: https://reviews.freebsd.org/D943
Reviewed by: loos, rpaulo
MFC after: 1 week

9 years agoRemove an unused mutex.
rpaulo [Sat, 18 Oct 2014 17:36:57 +0000 (17:36 +0000)]
Remove an unused mutex.

MFC after: 1 week

9 years agoUse IPFW_RULE_CNTR_SIZE macro instead of non-relevant ip_fw_cntr structure.
melifaro [Sat, 18 Oct 2014 17:23:41 +0000 (17:23 +0000)]
Use IPFW_RULE_CNTR_SIZE macro instead of non-relevant ip_fw_cntr structure.

Found by: luigi

9 years agoMake VPD 80h (Serial Number) transfer length match serial number length.
mav [Sat, 18 Oct 2014 17:11:02 +0000 (17:11 +0000)]
Make VPD 80h (Serial Number) transfer length match serial number length.

MFC after: 1 week

9 years agoMake the ti_mbox and ti_pruss drivers optional.
rpaulo [Sat, 18 Oct 2014 17:00:55 +0000 (17:00 +0000)]
Make the ti_mbox and ti_pruss drivers optional.

MFC after: 1 week

9 years agoAdd a driver for the TI watchdog.
rpaulo [Sat, 18 Oct 2014 16:59:21 +0000 (16:59 +0000)]
Add a driver for the TI watchdog.

The TI watchdog timer is present on BeagleBone's.  Since 2014, U-Boot
has been booting the BeagleBone with the watchdog enabled.  We need to
disable it on boot to avoid a spurious reset.
The timer isn't exactly precise, but it will do as a watchdog.  This
is also a reflection of the watchdog(9) API.

In the future, we could handle interrupts, but the watchdog(9) API
needs to be a bit smarter before that can happen.

Differential Revision: https://reviews.freebsd.org/D965
Reviewed by: andrew
MFC after: 1 week
Relnotes: yes

9 years agoAM335X FDT: use the oma3-wdt string for compatibility with Linux.
rpaulo [Sat, 18 Oct 2014 16:34:52 +0000 (16:34 +0000)]
AM335X FDT: use the oma3-wdt string for compatibility with Linux.

Submitted by: andrew
MFC after: 1 week

9 years ago* Zero rule buffer.
melifaro [Sat, 18 Oct 2014 15:18:31 +0000 (15:18 +0000)]
* Zero rule buffer.
* Rename 'read' variable.

Pointed by: luigi

9 years agoAdd support for new USB 3G device.
hselasky [Sat, 18 Oct 2014 15:11:13 +0000 (15:11 +0000)]
Add support for new USB 3G device.

Submitted by: gabor@zahemszky.hu
MFC after: 1 week

9 years agoAdd an elf not so kgdb detects the kernel as a FreeBSD elf file. The
andrew [Sat, 18 Oct 2014 13:38:04 +0000 (13:38 +0000)]
Add an elf not so kgdb detects the kernel as a FreeBSD elf file. The
ELFNOTE macro is based on one from the FreeBSD/ARM Xen tree [1].

Obtained from: Julien Grall <julien.grall AT linaro.org> [1]

9 years agoRetire the unimplemented MAP_RENAME and MAP_NORESERVE flags to mmap(2).
jhb [Sat, 18 Oct 2014 12:28:51 +0000 (12:28 +0000)]
Retire the unimplemented MAP_RENAME and MAP_NORESERVE flags to mmap(2).
Older binaries are still permitted to use these flags.

PR: 193961 (exp-run in ports)
Differential Revision: https://reviews.freebsd.org/D848
Reviewed by: kib

9 years agoDisable hyperv on pc98.
nyan [Sat, 18 Oct 2014 08:07:17 +0000 (08:07 +0000)]
Disable hyperv on pc98.

9 years agoAM335x FDT: add an entry for the watchdog.
rpaulo [Sat, 18 Oct 2014 07:40:38 +0000 (07:40 +0000)]
AM335x FDT: add an entry for the watchdog.

MFC after: 1 week

9 years agoFix the watchdog/watchdog man pages.
rpaulo [Sat, 18 Oct 2014 07:38:46 +0000 (07:38 +0000)]
Fix the watchdog/watchdog man pages.

The default timeout is 128 seconds.

MFC after: 1 week

9 years agoDon't advertise support for the NodeID MSR since bhyve doesn't emulate it.
neel [Sat, 18 Oct 2014 05:39:32 +0000 (05:39 +0000)]
Don't advertise support for the NodeID MSR since bhyve doesn't emulate it.

9 years agosh: Add some tests for backslash-newline continuation.
jilles [Fri, 17 Oct 2014 21:52:57 +0000 (21:52 +0000)]
sh: Add some tests for backslash-newline continuation.

9 years agoFix to col when printing half-line feeds w/ -f option...
jmg [Fri, 17 Oct 2014 21:09:03 +0000 (21:09 +0000)]
Fix to col when printing half-line feeds w/ -f option...

Message-Id on openbsd-tech: 20141017195810.GJ132@iris.usta.de
Submitted by: Ingo Schwarze
Obtained from: OpenBSD
MFC after: 3 days

9 years ago* Fix table sets handling.
melifaro [Fri, 17 Oct 2014 20:47:55 +0000 (20:47 +0000)]
* Fix table sets handling.
* Simplify formatting.

Suggested by: luigi