]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
10 years agoAdd multicast filter control.
Nathan Whitehorn [Sun, 20 Oct 2013 14:01:09 +0000 (14:01 +0000)]
Add multicast filter control.

10 years agoAdd more obsolete files
Antoine Brodin [Sun, 20 Oct 2013 13:41:42 +0000 (13:41 +0000)]
Add more obsolete files

10 years agoAdd 26 new device IDs to uslcom(4). This brings us in sync with Linux
Gavin Atkinson [Sun, 20 Oct 2013 11:19:37 +0000 (11:19 +0000)]
Add 26 new device IDs to uslcom(4).  This brings us in sync with Linux
v3.12 rc5.

MFC after: 3 days

10 years agoClean up some debug code that snuck in. Add a block comment on future work.
Nathan Whitehorn [Sun, 20 Oct 2013 01:40:59 +0000 (01:40 +0000)]
Clean up some debug code that snuck in. Add a block comment on future work.

10 years agoAdd initial driver for POWER hypervisor interpartition ethernet. This is
Nathan Whitehorn [Sun, 20 Oct 2013 01:31:09 +0000 (01:31 +0000)]
Add initial driver for POWER hypervisor interpartition ethernet. This is
sufficient to pass traffic but needs some more work before merging to
STABLE.

10 years agoAllow hypervisor calls with more than 7 arguments.
Nathan Whitehorn [Sun, 20 Oct 2013 01:28:39 +0000 (01:28 +0000)]
Allow hypervisor calls with more than 7 arguments.

10 years agoBump __FreeBSD_version to 1100001 for addition of support for "first boot"
Colin Percival [Sat, 19 Oct 2013 21:55:42 +0000 (21:55 +0000)]
Bump __FreeBSD_version to 1100001 for addition of support for "first boot"
rc.d scripts, so that ports can make use of this.

10 years agoAdd support for "first boot" rc.d scripts. [1]
Colin Percival [Sat, 19 Oct 2013 21:37:06 +0000 (21:37 +0000)]
Add support for "first boot" rc.d scripts. [1]

These scripts, containing
# KEYWORD: firstboot
will only be run if a sentinel file (default: /firstboot, configurable
via the rc.conf ${firstboot_sentinel} variable) exists; this sentinel
file will be deleted at the end of the boot process.

Scripts can request that the system reboot after the first boot by
creating the file ${firstboot_sentinel}-reboot.

This functionality is expected to be useful for embedded systems and
virtual machine images, where it may be desirable to
(a) download and install updates which became available between when
the image was created and when it was "turned on";
(b) download and install packages which may be newer than those
which were available when the image was created;
(c) install packages which run binaries during their install process,
bypassing the problem of cross-architecture installs;
(d) resize filesystems to match the disk onto which a VM image was
installed;
(e) perform initialization tasks relevant to cloud systems (e.g.,
Amazon's Elastic Compute Cloud);
and likely to perform many other one-time initialization functions.

Document this new functionality in rc.conf(5) and rc(8). [2]

Reviewed by: freebsd-current, freebsd-rc [1]
Reviewed by: Warren Block [2]
MFC after: 3 days

10 years agoClock divisors 0-3 correspond to dividing by 1-4, so add 1 before dividing.
Ian Lepore [Sat, 19 Oct 2013 21:33:06 +0000 (21:33 +0000)]
Clock divisors 0-3 correspond to dividing by 1-4, so add 1 before dividing.

10 years agoEnable the automatic creation of a certificate (if one does not exists)
John-Mark Gurney [Sat, 19 Oct 2013 18:51:06 +0000 (18:51 +0000)]
Enable the automatic creation of a certificate (if one does not exists)
and enable the usage by sendmail if sendmail is enabled.  Include and
document knobs to disable this feature and also set the Common Name of
the certificate created.

As the certificate is signed w/ a discarded key, it only helps prevent
Eve, but not Malory from knowing the contents of the emails.

This means that new installs (and people that use the updated freebsd.mc
file) will automaticly have STARTTLS enabled allowing incoming email to
be encrypted in most cases.

Reviewed by: gshapiro
MFC after: 3 days
Security: Yes, please.

10 years ago- Add parentheses to all internet addresses
Kevin Lo [Sat, 19 Oct 2013 18:13:32 +0000 (18:13 +0000)]
- Add parentheses to all internet addresses
- All the casts to uint32_t should be to in_addr_t

Suggested by: bde
Reviewed by: bde

10 years agodrm/radeon: radeonkms depends on firmware(9)
Jean-Sébastien Pédron [Sat, 19 Oct 2013 17:11:58 +0000 (17:11 +0000)]
drm/radeon: radeonkms depends on firmware(9)

Submitted by: tijl@

10 years agoImprove bootstrapping message
Gavin Atkinson [Sat, 19 Oct 2013 15:36:21 +0000 (15:36 +0000)]
Improve bootstrapping message

MFC after: 3 days

10 years agoLast few remnants of BIND (hopefully...)
Dag-Erling Smørgrav [Sat, 19 Oct 2013 10:00:51 +0000 (10:00 +0000)]
Last few remnants of BIND (hopefully...)

MFC after: 3 days

10 years agoDo not error out when adding an interface to a group to which it
Dag-Erling Smørgrav [Sat, 19 Oct 2013 09:59:11 +0000 (09:59 +0000)]
Do not error out when adding an interface to a group to which it
already belongs or removing it from a group to which it does not
belong.  This makes it possible to include group memberships in
ifconfig_foo0 in rc.conf without fear of breaking "service netif
restart foo0".

MFC after: 3 days

10 years agoAllow ~ in file names so libtool droppings in contrib don't break updates.
Dag-Erling Smørgrav [Sat, 19 Oct 2013 09:40:29 +0000 (09:40 +0000)]
Allow ~ in file names so libtool droppings in contrib don't break updates.
It has happened twice now, and is likely to happen again.

Errata notice candidate.

10 years agoFix build with gcc by spelling unused format string as "unused" instead of NULL.
Edward Tomasz Napierala [Sat, 19 Oct 2013 08:20:00 +0000 (08:20 +0000)]
Fix build with gcc by spelling unused format string as "unused" instead of NULL.

MFC after: 29 days

10 years agoPlug kyua into the 'test' target.
Rui Paulo [Sat, 19 Oct 2013 06:52:06 +0000 (06:52 +0000)]
Plug kyua into the 'test' target.

If kyua exists in KYUA_PREFIX, the test target is automatically
defined to use it for the execution of test programs.

Submitted by: Julio Merino jmmv google.com
MFC after: 2 weeks

10 years agoPlug atf-run into the 'test' target.
Rui Paulo [Sat, 19 Oct 2013 06:51:34 +0000 (06:51 +0000)]
Plug atf-run into the 'test' target.

If atf-run exists in ATF_PREFIX and if ALLOW_DEPRECATED_ATF_TOOLS has
been set to yes, the test target is automatically defined to use it
for the execution of test programs.

Submitted by: Julio Merino jmmv google.com
MFC after: 2 weeks

10 years agoAdd the automatic generation of Kyuafile files.
Rui Paulo [Sat, 19 Oct 2013 06:50:56 +0000 (06:50 +0000)]
Add the automatic generation of Kyuafile files.

These files are generated from bsd.test.mk because kyua is able to run
test programs implemented using different libraries/frameworks.  In
order to make this possible, this change also extends the various
*.test.mk file to explicitly indicate the interface of every test
program.

Submitted by: Julio Merino jmmv google.com
MFC after: 2 weeks

10 years agoAdd the automatic generation of Atffile files.
Rui Paulo [Sat, 19 Oct 2013 06:50:17 +0000 (06:50 +0000)]
Add the automatic generation of Atffile files.

These are only used by the deprecated atf-run and atf-report tools.
Generating them is easy and provides a mechanism for people to
experiment with these tools if they wish.

But, because these tools and files are deprecated, doing this only
happens if the user has explicitly set ALLOW_DEPRECATED_ATF_TOOLS
to yes.

Submitted by: Julio Merino jmmv google.com
MFC after: 2 weeks

10 years agoClearly split the logic to build ATF and plain tests apart.
Rui Paulo [Sat, 19 Oct 2013 06:48:49 +0000 (06:48 +0000)]
Clearly split the logic to build ATF and plain tests apart.

This change introduces a new plain.test.mk file that provides the build
infrastructure to build test programs that don't use any framework.
Most of the code previously in bsd.test.mk moves to plain.test.mk and
atf.test.mk is extended with the missing pieces.

In doing so, this change pushes all test program building logic to the
various *.test.mk files instead of trying to reuse some tiny bits.
In fact, this attempt to reuse some definitions makes the code harder
to read and harder to extend.

The clear benefit of this is that the interface of bsd.test.mk is now
clearly delimited.

Submitted by: Julio Merino jmmv google.com
MFC after: 2 weeks

10 years agoCorrects the Kirkwood dreamplug to use
Randall Stewart [Sat, 19 Oct 2013 06:47:02 +0000 (06:47 +0000)]
Corrects the Kirkwood dreamplug to use
the right register for power managment. It
was incorrectly using the clock register
which also caused the status to be the
opposite of what it is supposed to be.
1 - its disabled
0 - its enabled

Per kirkwood spec FSS_88F6180_9x_6281_OpenSource.pdf

10 years agoThere's no need to guard pmap_extract(), it won't be called until well after
Olivier Houchard [Fri, 18 Oct 2013 22:47:10 +0000 (22:47 +0000)]
There's no need to guard pmap_extract(), it won't be called until well after
the VM has been properly initialized.

Spotted out by: alc

10 years agoMFP4: 1136252
Brooks Davis [Fri, 18 Oct 2013 20:52:42 +0000 (20:52 +0000)]
MFP4: 1136252

Add an option ATSE_CFI_HACK to allow memory mapped CFI devices to have
their address range allocated sharable so that atse(4) can find it's
Ethernet address in the expected location.

We intend to remove this hack once the BERI platform has a loader.

10 years agoMFP4: 221483, 221567, 221568, 221670, 221677, 221678, 221800, 221801,
Brooks Davis [Fri, 18 Oct 2013 20:44:19 +0000 (20:44 +0000)]
MFP4: 221483, 221567, 221568, 221670, 221677, 221678, 221800, 221801,
221804, 221805, 222004, 222006, 222055, 222820, 113507711351181136259

Add atse(4), a driver for the Altera Triple Speed Ethernet MegaCore.

The current driver support gigabit Ethernet speeds only and works with
the MegaCore only in the internal FIFO configuration in the soon to be
open sourced BERI CPU configuration.

Submitted by: bz
MFC after: 3 days
Sponsored by: DARPA/AFRL

10 years agoImprove XHCI stability. When a command timeout happens, the command
Hans Petter Selasky [Fri, 18 Oct 2013 17:38:57 +0000 (17:38 +0000)]
Improve XHCI stability. When a command timeout happens, the command
should be aborted else the command queue can stop. Refer to section
"4.6.1.2" of the XHCI specification.

MFC after: 1 week

10 years agoKERNBASE is unsigned, so we'd better use hs instead of ge.
Olivier Houchard [Fri, 18 Oct 2013 17:21:47 +0000 (17:21 +0000)]
KERNBASE is unsigned, so we'd better use hs instead of ge.

Pointy hat to: cognet
Suggested by: ian

10 years agoRemove redundant redeclaration of gdtset in sys/xen/xen-os.h, to silence
Dimitry Andric [Fri, 18 Oct 2013 17:06:13 +0000 (17:06 +0000)]
Remove redundant redeclaration of gdtset in sys/xen/xen-os.h, to silence
a gcc warning.

Approved by: re (glebius)

10 years agoMFP4:
Brooks Davis [Fri, 18 Oct 2013 15:40:37 +0000 (15:40 +0000)]
MFP4:
Change 227630 by bz@bz_zenith on 2013/04/12 08:50:27

Implement soft reset setting sr in sr and just in case loop
endlessly afterwards.

MFC after: 3 days
Sponsored by: DARPA/AFRL

10 years agoMFP4 (driver change only):
Brooks Davis [Fri, 18 Oct 2013 15:27:11 +0000 (15:27 +0000)]
MFP4 (driver change only):
Change 231100 by brooks@brooks_zenith on 2013/07/12 21:01:31

Add a new option ALTERA_SDCARD_FAST_SIM which checks immediatly
for success of I/O operations rather than queuing a task.

MFC after: 3 days
Sponsored by: DARPA/AFRL

10 years agoMFP4:
Brooks Davis [Fri, 18 Oct 2013 15:24:18 +0000 (15:24 +0000)]
MFP4:
Change 227594 by brooks@brooks_zenith on 2013/04/11 17:10:14

When we fail, print the error that occured if we are giving
up or if bootverbose is set.

MFC after: 3 days
Sponsored by: DARPA/AFRL

10 years agosh: Remove one syscall when waiting for a foreground job.
Jilles Tjoelker [Fri, 18 Oct 2013 12:35:12 +0000 (12:35 +0000)]
sh: Remove one syscall when waiting for a foreground job.

The getpgrp() call is unnecessary: if there is no job control then the
result was not used at all and if there is job control then we are not a
subshell and our process group ID is equal to our process ID (rootpid).

10 years agoRevert r256587.
Gleb Smirnoff [Fri, 18 Oct 2013 11:26:40 +0000 (11:26 +0000)]
Revert r256587.

Requested by: zec

10 years agoRevert r256587.
Gleb Smirnoff [Fri, 18 Oct 2013 11:25:08 +0000 (11:25 +0000)]
Revert r256587.

Requested by: zec

10 years agoDon't build krping.ko, iw_cxgb.ko, and iw_cxgbe.ko, if MK_OFED=no
Edward Tomasz Napierala [Fri, 18 Oct 2013 09:17:35 +0000 (09:17 +0000)]
Don't build krping.ko, iw_cxgb.ko, and iw_cxgbe.ko, if MK_OFED=no
(the default).  They build, but are unloadable, due to missing ibcore.ko.

Sponsored by: FreeBSD Foundation

10 years agoMake geom_label(4) resize-aware. This fixes a situation when "gpart resize"
Edward Tomasz Napierala [Fri, 18 Oct 2013 09:14:19 +0000 (09:14 +0000)]
Make geom_label(4) resize-aware.  This fixes a situation when "gpart resize"
would resize a partition, but label providers - e.g. /dev/gptid/XXX - would
stay the same size.

Reviewed by: mav
MFC after: 1 month
Sponsored by: FreeBSD Foundation

10 years agoCorrect tx mixer gain value for RT3070 and RT3071.
Kevin Lo [Fri, 18 Oct 2013 07:48:20 +0000 (07:48 +0000)]
Correct tx mixer gain value for RT3070 and RT3071.

Correctly value in EEPROM/EFUSE is one or more for RT3070 and
two or more for other RT3071 chips.

10 years agoSince the DAC issue has been fixed in RT3070(F), the voltage raising fix
Kevin Lo [Fri, 18 Oct 2013 07:46:28 +0000 (07:46 +0000)]
Since the DAC issue has been fixed in RT3070(F), the voltage raising fix
is no longer needed.

10 years agoFix lower bits of RF_R3 for RT3370 and newer. This change doesn't affect
Kevin Lo [Fri, 18 Oct 2013 07:43:49 +0000 (07:43 +0000)]
Fix lower bits of RF_R3 for RT3370 and newer.  This change doesn't affect
older chipsets.

10 years agoFix rf registers for RT3070.
Kevin Lo [Fri, 18 Oct 2013 07:42:16 +0000 (07:42 +0000)]
Fix rf registers for RT3070.

10 years agoUpdate firmware for run(4) to version 0.33.
Kevin Lo [Fri, 18 Oct 2013 07:40:50 +0000 (07:40 +0000)]
Update firmware for run(4) to version 0.33.

10 years ago- Fix a bug which prevented jails from starting when $jail_conf was used and
Hiroki Sato [Fri, 18 Oct 2013 03:44:16 +0000 (03:44 +0000)]
- Fix a bug which prevented jails from starting when $jail_conf was used and
  no jail name was specified.
- Display error messages when start/stop fails.

Reported by: swills

10 years agoUse long explicitly for the time difference.
Hiroki Sato [Fri, 18 Oct 2013 02:22:38 +0000 (02:22 +0000)]
Use long explicitly for the time difference.

10 years agoFix typo in previous commit.
Navdeep Parhar [Fri, 18 Oct 2013 00:00:08 +0000 (00:00 +0000)]
Fix typo in previous commit.

10 years agoiw_cxgbe should have a dependency on t4nex.
Navdeep Parhar [Thu, 17 Oct 2013 23:57:17 +0000 (23:57 +0000)]
iw_cxgbe should have a dependency on t4nex.

Reported by: trasz@

10 years agoIncrease the KVA available for xscale CPUs.
Olivier Houchard [Thu, 17 Oct 2013 22:12:32 +0000 (22:12 +0000)]
Increase the KVA available for xscale CPUs.

10 years agoChanges required for OpenBSD/amd64:
Peter Grehan [Thu, 17 Oct 2013 22:01:17 +0000 (22:01 +0000)]
Changes required for OpenBSD/amd64:

- Allow a hostbridge to be created with AMD as a vendor.
  This passes the OpenBSD check to allow the use of MSI
  on a PCI bus.
- Enable the i/o interrupt section of the mptable, and
  populate it with unity ISA mappings. This allows the
  'legacy' IRQ mappings of the PCI serial port to be
  set up. Delete unused print routine that was obscuring code.
- Use the '-W' option to enable virtio single-vector MSI
  rather than an environment variable. Update the virtio
  net/block drivers to query this flag when setting up
  interrupts.: bhyverun.c
- Fix the arithmetic used to derive the century byte in
  RTC CMOS, as well as encoding it in BCD.

Reviewed by: neel
MFC after: 3 days

10 years agoAdd lot of missed files and dirs
Andrey Zonov [Thu, 17 Oct 2013 22:00:35 +0000 (22:00 +0000)]
Add lot of missed files and dirs

10 years agoEliminate unconditional debug printfs.
Peter Grehan [Thu, 17 Oct 2013 21:56:39 +0000 (21:56 +0000)]
Eliminate unconditional debug printfs.

Linux writes to these nominally read-only registers,
so avoid having bhyve write warning messages to stdout
when the reg writes can be safely ignored. Change the
WPRINTF to DPRINTF which is conditional.

Reviewed by: mav
Discussed with: mav, Zhixiang Yu
MFC after: 3 days

10 years agoSpell cpu_l2cache_wb_range correctly.
Olivier Houchard [Thu, 17 Oct 2013 21:38:14 +0000 (21:38 +0000)]
Spell cpu_l2cache_wb_range correctly.

10 years ago- Switch to use WBWA mappings for page tables on armv6, this is needed for SMP.
Olivier Houchard [Thu, 17 Oct 2013 21:06:19 +0000 (21:06 +0000)]
- Switch to use WBWA mappings for page tables on armv6, this is needed for SMP.
- Fix PTE_SYNC() for PIPT L2 caches, using the virtual address wasn't so useful.
- Use PTE_SYNC() for >= armv6

10 years agoOptimize isp(4) to reduce CPU usage, especially in target mode:
Alexander Motin [Thu, 17 Oct 2013 20:19:15 +0000 (20:19 +0000)]
Optimize isp(4) to reduce CPU usage, especially in target mode:
 - Remove two excessive and slow register reads from isp_intr().  Instead
of rereading value every time, assume that registers contain what we have
written there.
 - Avoid sequential search through 4096 array elements when looking for
command tag.  Use hash of lists to store active tags separately from free
ones and so greatly speedup the searches.

Reviewed by: mjacob

10 years agoRemove atf headers which never existed
Andrey Zonov [Thu, 17 Oct 2013 20:14:47 +0000 (20:14 +0000)]
Remove atf headers which never existed

Reviewed by: marcel

10 years ago- Add relative specification in expiration time.
Hiroki Sato [Thu, 17 Oct 2013 19:04:05 +0000 (19:04 +0000)]
- Add relative specification in expiration time.
- Add proto3 option for RTF_PROTO3.
- Use %lu for members of struct rt_metrics.

10 years agoiw_cxgbe: iWARP driver for Chelsio T4/T5 chips. This is a straight port
Navdeep Parhar [Thu, 17 Oct 2013 18:37:25 +0000 (18:37 +0000)]
iw_cxgbe: iWARP driver for Chelsio T4/T5 chips.  This is a straight port
of the iw_cxgb4 found in OFED distributions.

Obtained from: Chelsio

10 years agoFix .debug_line prologue header length calculation for 64-bit DWARF
Ed Maste [Thu, 17 Oct 2013 17:25:00 +0000 (17:25 +0000)]
Fix .debug_line prologue header length calculation for 64-bit DWARF

The header_length field is the number of bytes following the field to
the first byte of the line number program.  The hard-coded constants
previously here (4 + 2 + 4) were correct only for 32-bit DWARF.

Sponsored by: DARPA, AFRL

10 years agoMake casuword() atomic for armv6
Olivier Houchard [Thu, 17 Oct 2013 17:11:15 +0000 (17:11 +0000)]
Make casuword() atomic for armv6

10 years agoAdd an automatic resize support to the GEOM_PART class.
Andrey V. Elsukov [Thu, 17 Oct 2013 16:18:43 +0000 (16:18 +0000)]
Add an automatic resize support to the GEOM_PART class.

When parent provider has been resized, the scheme specific G_PART_RESIZE
method does an update of scheme's metadata. But all changes are not saved
to disk, until `gpart commit` will be called.

Discussed with: trasz
MFC after: 1 month

10 years agoUse the same actor key for media types of the same speed.
Andrey V. Elsukov [Thu, 17 Oct 2013 15:14:58 +0000 (15:14 +0000)]
Use the same actor key for media types of the same speed.

PR: 176097
MFC after: 2 weeks

10 years agoUpgrade to the latest version of mtree from NetBSD. This revision
Brooks Davis [Thu, 17 Oct 2013 14:18:11 +0000 (14:18 +0000)]
Upgrade to the latest version of mtree from NetBSD.  This revision
re-removes the printing of size for non-regular files, supports
type-less root (.) entries as seen in a couple ports, and corrects a bug
in -N that caused expanded Subversion $FreeBSD$ strings in comments to
be processed as /etc/group entries.

Includes one trivial portability fix (including <stdint.h> in three
files) that has been submitted upstream but not yet committed.

MFC after: 3 days

10 years agoFix resource free.
Alfred Perlstein [Thu, 17 Oct 2013 12:19:36 +0000 (12:19 +0000)]
Fix resource free.

The order of releasing resources in mlxen was wrong, which caused
panic on reload of the module.

conf_ctx list should be released before stat_ctx list, otherwise
the leafs in conf_ctx list won't be released because of the dependancy.

The fix is to change the order of the releases.

Submitted by: Shahar Klein (shahark at mellanox.com)

10 years agoFix the -Wconversion warnings produced when compiling the SNMP agent.
Shteryana Shopova [Thu, 17 Oct 2013 12:03:17 +0000 (12:03 +0000)]
Fix the -Wconversion warnings produced when compiling the SNMP agent.

10 years agoFix SNMP Error response PDUs and properly encode them when using v3 auth/encryption.
Shteryana Shopova [Thu, 17 Oct 2013 11:49:46 +0000 (11:49 +0000)]
Fix SNMP Error response PDUs and properly encode them when using v3 auth/encryption.

Reported by: harti@

10 years agoIf we avoid to use the page at addr 0, we should adjust the size to reflect it.
Olivier Houchard [Thu, 17 Oct 2013 09:57:09 +0000 (09:57 +0000)]
If we avoid to use the page at addr 0, we should adjust the size to reflect it.

10 years agoUtilize the stronger guarantees on the call arguments from the
Konstantin Belousov [Thu, 17 Oct 2013 07:57:58 +0000 (07:57 +0000)]
Utilize the stronger guarantees on the call arguments from the
harvester, which now always calls hwrngs with the buffer length
multiple of the word size.  This allows to remove the excessive memory
accesses to temporary buffer when saving the entropy word.

Streamline the assembly and unify it between i386 and amd64.

Reviewed by: markm, des
Approved by: so (des)
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks

10 years agoCleanup clang section
Andrey Zonov [Thu, 17 Oct 2013 07:40:21 +0000 (07:40 +0000)]
Cleanup clang section

10 years agoAdd a missing comma.
Rui Paulo [Thu, 17 Oct 2013 05:51:54 +0000 (05:51 +0000)]
Add a missing comma.

10 years agowlconfig exists only on i386
Andrey Zonov [Thu, 17 Oct 2013 05:20:40 +0000 (05:20 +0000)]
wlconfig exists only on i386

10 years agoRemove files which are in ObsoleteFiles.inc
Andrey Zonov [Thu, 17 Oct 2013 04:51:28 +0000 (04:51 +0000)]
Remove files which are in ObsoleteFiles.inc

10 years agoFix the libproc build when DEBUG is defined.
Mark Johnston [Thu, 17 Oct 2013 03:39:21 +0000 (03:39 +0000)]
Fix the libproc build when DEBUG is defined.

10 years agoRemove duplicates in ipfilter and kerberos sections
Andrey Zonov [Thu, 17 Oct 2013 02:02:29 +0000 (02:02 +0000)]
Remove duplicates in ipfilter and kerberos sections

10 years agoCheck for EHOSTUNREACH when establishing a connection.
Kevin Lo [Thu, 17 Oct 2013 01:59:08 +0000 (01:59 +0000)]
Check for EHOSTUNREACH when establishing a connection.

Reviewed by: trasz

10 years agoMove a lot of debugging printf's to DPRINTF.
Rui Paulo [Thu, 17 Oct 2013 01:53:07 +0000 (01:53 +0000)]
Move a lot of debugging printf's to DPRINTF.

Approved by: adrian
MFC after: 2 weeks

10 years agoAdd an option to bhyveload(8) that allows setting a loader environment variable
Neel Natu [Thu, 17 Oct 2013 00:28:35 +0000 (00:28 +0000)]
Add an option to bhyveload(8) that allows setting a loader environment variable
from the command line.

The option syntax is "-e <name=value>". It may be used multiple times to set
multiple environment variables.

Reviewed by: grehan
Requested by: alfred

10 years agoVendor import of NetBSD's mtree at 2013-10-16
Brooks Davis [Wed, 16 Oct 2013 22:28:08 +0000 (22:28 +0000)]
Vendor import of NetBSD's mtree at 2013-10-16

10 years agokldxref: Add static keyword to the new function only used in the same file.
Jilles Tjoelker [Wed, 16 Oct 2013 20:04:06 +0000 (20:04 +0000)]
kldxref: Add static keyword to the new function only used in the same file.

The WARNS level is not such that the omission broke the build.

Reported by: mdf

10 years agoWhilst here, document that this TX alignment requirement may acutally
Adrian Chadd [Wed, 16 Oct 2013 19:53:50 +0000 (19:53 +0000)]
Whilst here, document that this TX alignment requirement may acutally
not be required on later hardware.

It would allow for higher packet rates so yes, it would be nice
to disable it.

10 years agoAllow the MDIO bus frequency to be selected.
Adrian Chadd [Wed, 16 Oct 2013 19:36:50 +0000 (19:36 +0000)]
Allow the MDIO bus frequency to be selected.

The MDIO bus frequency is configured as a divisor off of the MDIO bus
reference clock.  For the AR9344 and later, the MDIO bus frequency can
be faster than normal (ie, up to 100MHz) and thus a static divisor may
not be very applicable.

So, for those boards that may require an actual frequency to be selected
regardless of what crazy stuff the vendor throws in uboot, one can now
set the MDIO bus frequency.  It uses the MDIO frequency and the target
frequency to choose a divisor that doesn't exceed the target frequency.

By default it will choose:

* DIV_28 on everything; except
* DIV_58 on the AR9344 to be conservative.

Whilst I'm here, add some comments about the defaults being not quite
right.  For the other internal switch devices (like the AR933x, AR724x)
the divisor can be higher - it's internal and the reference MDIO clock
is much lower than 100MHz.

The divisor tables and loop code is inspired from Linux/OpenWRT.  It's very
simple; I didn't feel that reimplementing it would yield a substantially
different solution.

Tested:

* AR9331 (mips24k)
* AR9344 (mips74k)

Obtained from: Linux/OpenWRT

10 years agoInvalidate the entire L2 cache before enabling it. Say whether it
Ian Lepore [Wed, 16 Oct 2013 19:06:44 +0000 (19:06 +0000)]
Invalidate the entire L2 cache before enabling it.  Say whether it
has been enabled or disabled.

10 years agoWhen installing updates, install new directories first and remove old
Colin Percival [Wed, 16 Oct 2013 18:36:53 +0000 (18:36 +0000)]
When installing updates, install new directories first and remove old
directories last.

This is generally handled by the fact that the list of filesystem objects
is sorted, but this sorting is broken by code which moves .so files ahead
(so that they're present before any binaries which use them)... that code
also moved .so files ahead of directories, which is a problem for upgrading
to 10.0 where there's a new directory containing new .so files.

Errata Notice Candidate.

10 years agoAdd a new capability, VM_CAP_ENABLE_INVPCID, that can be enabled to expose
Neel Natu [Wed, 16 Oct 2013 18:20:27 +0000 (18:20 +0000)]
Add a new capability, VM_CAP_ENABLE_INVPCID, that can be enabled to expose
'invpcid' instruction to the guest. Currently bhyve will try to enable this
capability unconditionally if it is available.

Consolidate code in bhyve to set the capabilities so it is no longer
duplicated in BSP and AP bringup.

Add a sysctl 'vm.pmap.invpcid_works' to display whether the 'invpcid'
instruction is available.

Reviewed by: grehan
MFC after: 3 days

10 years agoMake it possible to seek within a gzip stream.
Xin LI [Wed, 16 Oct 2013 17:16:40 +0000 (17:16 +0000)]
Make it possible to seek within a gzip stream.

10 years agoError out on failure to open specified config file
Ed Maste [Wed, 16 Oct 2013 17:03:46 +0000 (17:03 +0000)]
Error out on failure to open specified config file

10 years agoSince C++ typeinfo objects are currently not guaranteed to be merged at
Dimitry Andric [Wed, 16 Oct 2013 17:00:21 +0000 (17:00 +0000)]
Since C++ typeinfo objects are currently not guaranteed to be merged at
runtime by the dynamic linker, check for their equality in libcxxrt by
not only comparing the typeinfo's name pointers, but also comparing the
full names, if necessary.  (This is similar to what GNU libstdc++ does
in its default configuration.)  The 'deep' check can be turned off again
by defining LIBCXXRT_MERGED_TYPEINFO, and recompiling libcxxrt.

Reviewed by: theraven
MFC after: 3 days

10 years agohelp running sshd on picobsd
Luigi Rizzo [Wed, 16 Oct 2013 16:53:00 +0000 (16:53 +0000)]
help running sshd on picobsd

10 years agoAllow 'make xdev' to work when DESTDIR is set.
Ian Lepore [Wed, 16 Oct 2013 16:46:25 +0000 (16:46 +0000)]
Allow 'make xdev' to work when DESTDIR is set.

Submitted by: Patrick Kelsey <kelsey@ieee.org>

10 years agoupdate the picobsd script to build with GCC and not CLANG
Luigi Rizzo [Wed, 16 Oct 2013 16:46:15 +0000 (16:46 +0000)]
update the picobsd script to build with GCC and not CLANG

10 years agoAdd cases for the combinations of busdma sync op flags that we handle
Ian Lepore [Wed, 16 Oct 2013 16:35:25 +0000 (16:35 +0000)]
Add cases for the combinations of busdma sync op flags that we handle
correctly by doing nothing, then add a panic for the default case, because
that implies that some driver asked for a sync (probably incorrectly) and
nothing was done.

10 years agoWhen calculating the number of bounce pages needed, round the maxsize
Ian Lepore [Wed, 16 Oct 2013 16:32:35 +0000 (16:32 +0000)]
When calculating the number of bounce pages needed, round the maxsize
up to a multiple of PAGE_SIZE, and add one page because there can always
be one more boundary crossing than the number of pages in the transfer.

10 years agoAdd CPU ID for ARM Cortex A5.
Ruslan Bukin [Wed, 16 Oct 2013 15:20:27 +0000 (15:20 +0000)]
Add CPU ID for ARM Cortex A5.

Approved by: cognet (mentor)

10 years agoFix a register name typo. The effect was that CPU_CONTROL_AFLT_ENABLE
Ian Lepore [Wed, 16 Oct 2013 14:24:22 +0000 (14:24 +0000)]
Fix a register name typo.  The effect was that CPU_CONTROL_AFLT_ENABLE
wasn't being set, but it was almost assuredly already turned on anyway
by the bootloader.

10 years agoFix long-standing issue with incorrect radix mask calculation.
Alexander V. Chernikov [Wed, 16 Oct 2013 12:18:44 +0000 (12:18 +0000)]
Fix long-standing issue with incorrect radix mask calculation.

Usual symptoms are messages like
rn_delete: inconsistent annotation
rn_addmask: mask impossibly already in tree
or inability to flush/delete particular prefix in ipfw table.

Changes:
* Assume 32 bytes as maximum radix key length
* Remove rn_init()
* Statically allocate rn_ones/rn_zeroes
* Make separate mask tree for each "normal" tree instead of system global one
* Remove "optimization" on masks reusage and key zeroying
* Change rn_addmask() arguments to accept tree pointer (no users in base)

PR: kern/182851, kern/169206, kern/135476, kern/134531
Found by: Slawa Olhovchenkov <slw@zxy.spb.ru>
MFC after: 2 weeks
Reviewed by: glebius
Sponsored by: Yandex LLC

10 years agoReflect r248070 (RTM_PINNED) changes in documentation.
Alexander V. Chernikov [Wed, 16 Oct 2013 10:36:42 +0000 (10:36 +0000)]
Reflect r248070 (RTM_PINNED) changes in documentation.

Pointed by: pluknet
MFC after: 2 weeks

10 years agoRemove unused fields from radix_node_head.
Alexander V. Chernikov [Wed, 16 Oct 2013 10:33:20 +0000 (10:33 +0000)]
Remove unused fields from radix_node_head.

Sponsored by: Yandex LLC

10 years agoMFprojects/camlock r256370:
Alexander Motin [Wed, 16 Oct 2013 09:56:40 +0000 (09:56 +0000)]
MFprojects/camlock r256370:
 - Take BIO lock in biodone() only when there is no completion callback set
and so we should wake up thread waiting in biowait().
 - Remove msleep() timeout from biowait().  It was added 11 years ago, when
there was no locks used, and it should not be needed any more.

10 years agoMFprojects/camlock r254763:
Alexander Motin [Wed, 16 Oct 2013 09:52:59 +0000 (09:52 +0000)]
MFprojects/camlock r254763:
Move tq_enqueue() call out of the queue lock for known handlers (actually
I have found no others in the base system).  This reduces queue lock hold
time and congestion spinning under active multithreaded enqueuing.

10 years agoMFprojects/camlock r254685:
Alexander Motin [Wed, 16 Oct 2013 09:48:23 +0000 (09:48 +0000)]
MFprojects/camlock r254685:
Remove TQ_FLAGS_PENDING flag, softly duplicating queue emptiness status.

10 years agoMFprojects/camlock r256445:
Alexander Motin [Wed, 16 Oct 2013 09:33:23 +0000 (09:33 +0000)]
MFprojects/camlock r256445:
Add unmapped I/O support to GEOM RAID.

10 years agoMFprojects/camlock r256371:
Alexander Motin [Wed, 16 Oct 2013 09:21:40 +0000 (09:21 +0000)]
MFprojects/camlock r256371:
Fix passing uninitialized bio_resid argument to g_trace().