]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
9 years agoMerge ^/head r279163 through r279308.
dim [Thu, 26 Feb 2015 07:26:56 +0000 (07:26 +0000)]
Merge ^/head r279163 through r279308.

9 years agoMake libcxxrt's parsing of DWARF exception handling tables work on
dim [Thu, 26 Feb 2015 07:20:05 +0000 (07:20 +0000)]
Make libcxxrt's parsing of DWARF exception handling tables work on
architectures with strict alignment, by using memcpy() instead of
directly reading fields.

Reported by: Daisuke Aoyama <aoyama@peach.ne.jp>
Reviewed by: imp, bapt
Tested by: bapt
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D1967

9 years agoRemove run-time allocation of XLP IRQs
jchandra [Thu, 26 Feb 2015 02:22:47 +0000 (02:22 +0000)]
Remove run-time allocation of XLP IRQs

Follow the same static IRQ to Interrupt Table Entry mapping as the other
OS supported on XLP.

9 years agoAdd netlogic,xlp-pic as interrupt controller for XLP
jchandra [Thu, 26 Feb 2015 02:05:45 +0000 (02:05 +0000)]
Add netlogic,xlp-pic as interrupt controller for XLP

Add an empty driver for netlogic,xlp-pic to ensure that the device tree
is correct and has an interrupt controller.

9 years agoFix up interrupt definitions for Broadcom XLP
jchandra [Thu, 26 Feb 2015 01:53:24 +0000 (01:53 +0000)]
Fix up interrupt definitions for Broadcom XLP

Gather all the IRQ definitions to interrupt.h. Earlier these were in xlp.h
and pic.h.  Update the definition of XLP_IRQ_IS_PICINTR to check for last
irq as well.

9 years agoGNU nm: Avoid NULL dereference
emaste [Wed, 25 Feb 2015 22:12:37 +0000 (22:12 +0000)]
GNU nm: Avoid NULL dereference

bfd_dwarf2_find_line() calls find_line() with NULL functionname_ptr,
which resulted in a crash on certain ELF objects.

This change was implemented independently from upstream binutils, but
I have checked that the crash does not happen there.

MFC after: 1 week
Sponsored by: The FreeBSD Foundation

9 years agoRemove taskqueue_start_threads_pinned(); there's noa generic cpuset version of this.
adrian [Wed, 25 Feb 2015 21:59:03 +0000 (21:59 +0000)]
Remove taskqueue_start_threads_pinned(); there's noa generic cpuset version of this.

Sponsored by: Norse Corp, Inc.

9 years agoMigrate using CPU_ZERO() + CPU_SET() -> CPU_SETOF().
adrian [Wed, 25 Feb 2015 21:44:53 +0000 (21:44 +0000)]
Migrate using CPU_ZERO() + CPU_SET() -> CPU_SETOF().

Tested:

* ixgbe, igb, RSS enabled

Submitted by: jhb
Sponsored by: Norse Corp, Inc.

9 years agonm: avoid crash in print_lineno if func->name is NULL
emaste [Wed, 25 Feb 2015 21:43:09 +0000 (21:43 +0000)]
nm: avoid crash in print_lineno if func->name is NULL

This can occur when DW_AT_specification is used to refer to another DIE
that provides the actual DW_AT_name string. For example:

< 3><0x00000086> DW_TAG_subprogram
                   DW_AT_name              PrettyStackTraceEntry
...
< 1><0x00002cf4> DW_TAG_subprogram
                   DW_AT_specification     <0x00000086>

We will need to add support for DW_AT_specification, but in the interim
we should not segfault.

Obtained from: Elftoolchain (r3170)
Sponsored by: The FreeBSD Foundation

9 years agoUpdate to upstream version 2.10
hselasky [Wed, 25 Feb 2015 21:10:03 +0000 (21:10 +0000)]
Update to upstream version 2.10

The most notable new feature is support for definition files.

Obtained from: http://dotat.at/prog/unifdef
MFC after: 1 week

9 years agoExplicitly crypt_set_format("des") and bail out if we
delphij [Wed, 25 Feb 2015 20:47:25 +0000 (20:47 +0000)]
Explicitly crypt_set_format("des") and bail out if we
can't.  This would prevent problem when we changed the
default crypt(3) algorithm or removed it in the future.

PR: bin/189958
MFC after: 1 month

9 years agoMerge llvm 3.6.0 final from ^/vendor/llvm/dist, merge clang 3.6.0 final
dim [Wed, 25 Feb 2015 18:50:24 +0000 (18:50 +0000)]
Merge llvm 3.6.0 final from ^/vendor/llvm/dist, merge clang 3.6.0 final
from ^/vendor/clang/dist, and resolve conflicts.

9 years agoFix "netstat -hdw 1" output.
marcel [Wed, 25 Feb 2015 17:06:27 +0000 (17:06 +0000)]
Fix "netstat -hdw 1" output.

Reported by: np@

9 years agoFor now, disable x2APIC mode when Xen is detected, even if CPU
kib [Wed, 25 Feb 2015 16:44:07 +0000 (16:44 +0000)]
For now, disable x2APIC mode when Xen is detected, even if CPU
declares support for it.  Newer versions of Xen works fine with x2APIC
code, but e.g. Xen 4.2 delivers GPF on the LAPIC MSR write, despite
x2APIC mode being known to hypervisor.

Discussed with: royger
Sponsored by: The FreeBSD Foundation

9 years agoPropagate errors from _thr_umutex_unlock2 through mutex_unlock_common.
kib [Wed, 25 Feb 2015 16:18:26 +0000 (16:18 +0000)]
Propagate errors from _thr_umutex_unlock2 through mutex_unlock_common.

Errors from _thr_umutex_unlock2 should "never happen" in normal
circumstances.  If they do, however, return them to the application
so it can fail early and loudly.  Hiding the errors will only delay
the inevitable failure, making it harder to find and diagnose.

Submitted by: Eric van Gyzen <eric_van_gyzen@dell.com>
Obtained from: Dell Inc.
PR: 198914
MFC after: 1 week

9 years agoWhen failing to claim ownership of a umtx_pi, restore the umutex owner
kib [Wed, 25 Feb 2015 16:17:16 +0000 (16:17 +0000)]
When failing to claim ownership of a umtx_pi, restore the umutex owner
to its previous, unowned state.  This avoids compounding an existing
problem of inconsistent ownership.

Submitted by: Eric van Gyzen <eric_van_gyzen@dell.com>
Obtained from: Dell Inc.
PR: 198914
MFC after: 1 week

9 years agoWhen unlocking a contested PI pthread mutex, if the queue of waiters
kib [Wed, 25 Feb 2015 16:12:56 +0000 (16:12 +0000)]
When unlocking a contested PI pthread mutex, if the queue of waiters
is empty, look up the umtx_pi and disown it if the current thread owns it.
This can happen if a signal or timeout removed the last waiter from
the queue, but there is still a thread in do_lock_pi() holding a reference
on the umtx_pi.  The unlocking thread might not own the umtx_pi in this case,
but if it does, it must disown it to keep the ownership consistent between
the umtx_pi and the umutex.

Submitted by: Eric van Gyzen <eric_van_gyzen@dell.com>
with advice from: Elliott Rabe and Jim Muchow, also at Dell Inc.
Obtained from: Dell Inc.
PR: 198914

9 years agoFix a special case in ip_fragment() to produce a more sensible chain
hselasky [Wed, 25 Feb 2015 13:58:43 +0000 (13:58 +0000)]
Fix a special case in ip_fragment() to produce a more sensible chain
of packets. When the data payload length excluding any headers, of an
outgoing IPv4 packet exceeds PAGE_SIZE bytes, a special case in
ip_fragment() can kick in to optimise the outgoing payload(s). The
code which was added in r98849 as part of zero copy socket support
assumes that the beginning of any MTU sized payload is aligned to
where a MBUF's "m_data" pointer points. This is not always the case
and can sometimes cause large IPv4 packets, as part of ping replies,
to be split more than needed.

Instead of iterating the MBUFs to figure out how much data is in the
current chain, use the value already in the "m_pkthdr.len" field of
the first MBUF in the chain.

Reviewed by: ken @
Differential Revision: https://reviews.freebsd.org/D1893
MFC after: 2 weeks
Sponsored by: Mellanox Technologies

9 years agoReplace constant with proper sizeof().
mav [Wed, 25 Feb 2015 10:18:11 +0000 (10:18 +0000)]
Replace constant with proper sizeof().

Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>
MFC after: 2 weeks

9 years agoFix memory leak on incorrect initiator portal.
mav [Wed, 25 Feb 2015 10:10:40 +0000 (10:10 +0000)]
Fix memory leak on incorrect initiator portal.

Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>
MFC after: 3 days

9 years agoAdd checks for malloc() failures.
mav [Wed, 25 Feb 2015 10:07:39 +0000 (10:07 +0000)]
Add checks for malloc() failures.

Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>
MFC after: 3 days

9 years agoFix potential NULL dereference.
mav [Wed, 25 Feb 2015 09:57:05 +0000 (09:57 +0000)]
Fix potential NULL dereference.

Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>
MFC after: 2 weeks

9 years agoAdd ugen keyword to USB pnpinfo. Remove extra space from existing pnpinfo.
hselasky [Wed, 25 Feb 2015 08:35:00 +0000 (08:35 +0000)]
Add ugen keyword to USB pnpinfo. Remove extra space from existing pnpinfo.

PR: 198015
PR: 198019
PR: 198026
MFC after: 1 week

9 years agoAdjust wording slightly to emphasize that random(3) should not be used for
cperciva [Wed, 25 Feb 2015 07:49:15 +0000 (07:49 +0000)]
Adjust wording slightly to emphasize that random(3) should not be used for
any applications which need unpredictable random numbers, not merely those
which are cryptographic in nature.

If you work for a lottery and you're using random(3) to select the winning
numbers, please let me know.

9 years agosfxge: add to config files
arybchik [Wed, 25 Feb 2015 06:20:42 +0000 (06:20 +0000)]
sfxge: add to config files

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)

9 years agosfxge: use tab to indent instead of spaces
arybchik [Wed, 25 Feb 2015 06:19:23 +0000 (06:19 +0000)]
sfxge: use tab to indent instead of spaces

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)

9 years agosfxge: correct limit for number of Rx queues
arybchik [Wed, 25 Feb 2015 06:19:00 +0000 (06:19 +0000)]
sfxge: correct limit for number of Rx queues

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)

9 years agoFix integer overflow in IGMP protocol.
delphij [Wed, 25 Feb 2015 05:42:59 +0000 (05:42 +0000)]
Fix integer overflow in IGMP protocol.

Security: FreeBSD-SA-15:04.igmp
Security: CVE-2015-1414
Found by: Mateusz Kocielski, Logicaltrust
Analyzed by: Marek Kroemeke, Mateusz Kocielski (shm@NetBSD.org) and
22733db72ab3ed94b5f8a1ffcde850251fe6f466
Submited by: Mariusz Zaborski <oshogbo@FreeBSD.org>
Reviewed by: bms

9 years agoFix several problems found by Coverity.
ken [Wed, 25 Feb 2015 04:30:23 +0000 (04:30 +0000)]
Fix several problems found by Coverity.

lib/libmt/mtlib.c:
In mt_start_element(), make sure we don't overflow the
cur_sb array.  CID 1271325

usr.bin/mt/mt.c:
In main(), bzero the mt_com structure so that we aren't
using any uninitialized stack variables.  CID 1271319

In mt_param(), only allow one -s and one -p argument.  This
will prevent a memory leak caused by overwriting the
param_name and/or param_value variables.  CID 1271320 and
CID 1271322

To make things simpler in mt_param(), make sure there
there is only one exit path for the function.  Make sure
the arguments are explicitly freed.

Sponsored by: Spectra Logic
Pointed out by: emaste
MFC after: 1 month

9 years agoAdd a CLOUDPACKAGE variable to contain a list of targets for
gjb [Tue, 24 Feb 2015 22:27:02 +0000 (22:27 +0000)]
Add a CLOUDPACKAGE variable to contain a list of targets for
post-install packaging cloud provider images.

Add a 'gce-package.sh' script to generate the final output
image ready for upload to the GCE platform.  Right now, this
is the only image that has a specific output format (GNU-tar),
and this implementation is expected to be temporary.

This is not directly connected to the other release targets.

MFC after: 1 week
X-MFC-with: r279249, r279250
Sponsored by: The FreeBSD Foundation

9 years agoFix a race condition by allowing up to 5 seconds of difference between the time stamps.
brd [Tue, 24 Feb 2015 22:22:06 +0000 (22:22 +0000)]
Fix a race condition by allowing up to 5 seconds of difference between the time stamps.

PR: 197861
Approved by: will

9 years agoChange uses of taskqueue_start_threads_pinned() -> taskqueue_start_threads_cpuset()
adrian [Tue, 24 Feb 2015 22:17:12 +0000 (22:17 +0000)]
Change uses of taskqueue_start_threads_pinned() -> taskqueue_start_threads_cpuset()

Differential Revision: https://reviews.freebsd.org/D1897
Reviewed by: jfv

9 years ago- Updated all files with 2015 Avago copyright, and updated LSI's copyright
slm [Tue, 24 Feb 2015 22:07:42 +0000 (22:07 +0000)]
- Updated all files with 2015 Avago copyright, and updated LSI's copyright
  dates.

- Changed all of the PCI device strings from LSI to Avago Technologies (LSI).

- Added a sysctl variable to control how StartStopUnit behavior works. User can
  select to spin down disks based on if disk is SSD or HDD.

- Inquiry data is required to tell if a disk will support SSU at shutdown or
  not. Due to the addition of mpssas_async, which gets Advanced Info but not
  Inquiry data, the setting of supports_SSU was moved to the
  mpssas_scsiio_complete function, which snoops for any Inquiry commands. And,
  since disks are shutdown as a target and not a LUN, this process was
  simplified by basing it on targets and not LUNs.

- Added a sysctl variable that sets the amount of time to retry after sending a
  failed SATA ID command. This helps with some bad disks and large disks that
  require a lot of time to spin up. Part of this change was to add a callout to
  handle timeouts with the SATA ID command. The callout function is called
  mpssas_ata_id_timeout(). (Fixes PR 191348)

- Changed the way resets work by allowing I/O to continue to devices that are
  not currently under a reset condition. This uses devq's instead of simq's and
  makes use of the MPSSAS_TARGET_INRESET flag. This change also adds a function
  called mpssas_prepare_tm().

- Some changes were made to reduce code duplication when getting a SAS address
  for a SATA disk.

- Fixed some formatting and whitespace.

- Bump version of mps driver to 20.00.00.00-fbsd

PR: 191348
Reviewed by: ken, scottl
Approved by: ken, scottl
MFC after: 2 weeks

9 years agoNew pmap implementation for 64-bit PowerPC processors. The main focus of
nwhitehorn [Tue, 24 Feb 2015 21:37:20 +0000 (21:37 +0000)]
New pmap implementation for 64-bit PowerPC processors. The main focus of
this change is to improve concurrency:
- Drop global state stored in the shadow overflow page table (and all other
  global state)
- Remove all global locks
- Use per-PTE lock bits to allow parallel page insertion
- Reconstruct state when requested for evicted PTEs instead of buffering
  it during overflow

This drops total wall time for make buildworld on a 32-thread POWER8 system
by a factor of two and system time by a factor of three, providing performance
20% better than similarly clocked Core i7 Xeons per-core. Performance on
smaller SMP systems, where PMAP lock contention was not as much of an issue,
is nearly unchanged.

Tested on: POWER8, POWER5+, G5 UP, G5 SMP (64-bit and 32-bit kernels)
Merged from: user/nwhitehorn/ppc64-pmap-rework
Looked over by: jhibbits, andreast
MFC after: 3 months
Relnotes: yes
Sponsored by: FreeBSD Foundation

9 years agocxgbe(4): allow tx hardware checksumming on the netmap interface.
np [Tue, 24 Feb 2015 21:31:13 +0000 (21:31 +0000)]
cxgbe(4): allow tx hardware checksumming on the netmap interface.

It is disabled by default but users can set IFCAP_TXCSUM on the
netmap ifnet (ifconfig ncxl0 txcsum) to override netmap and force
the hardware to calculate and insert proper IP and L4 checksums in
outbound frames.

MFC after: 2 weeks

9 years agoRemove a stale comment.
gjb [Tue, 24 Feb 2015 21:16:57 +0000 (21:16 +0000)]
Remove a stale comment.

MFC after: 1 week
X-MFC-with: r279249
Sponsored by: The FreeBSD Foundation

9 years agoAdd 'cloudware-install' target to handle copying cloud
gjb [Tue, 24 Feb 2015 21:06:25 +0000 (21:06 +0000)]
Add 'cloudware-install' target to handle copying cloud
disk images to a directory within DESTDIR.

Add CLOUDINSTALL variable to automatically generate the
actual list of install targets.  While here, rename the
cloud-specific names from 'vm-' to 'cw-' to avoid naming
collisions.

Add AZURE_DISK, GCE_DISK, and OPENSTACK_DISK output file
variables.

Add 'cloudware-install' to the 'install' target.

MFC after: 1 week
Sponsored by: The FreeBSD Foundation

9 years agoUnconditionally install debug directory hierarchy
emaste [Tue, 24 Feb 2015 19:27:51 +0000 (19:27 +0000)]
Unconditionally install debug directory hierarchy

This avoids various failure modes (e.g., when building and installing a
single binary with debug data on a system that otherwise does not have
it enabled).

It is also consistent with the way other directory hierarchies are
handled (e.g. share/man).

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D1962

9 years agoIf sys.mk were found via the magic path .../share/mk
sjg [Tue, 24 Feb 2015 19:03:31 +0000 (19:03 +0000)]
If sys.mk were found via the magic path .../share/mk
replace it with the absolute path of .PARSEDIR, so that sub-makes
launched from objdirs (eg kernel) can still find the correct mk files.

Reviewed by: obrien

9 years agocxgbe(4): set up congestion management for netmap rx queues.
np [Tue, 24 Feb 2015 18:40:10 +0000 (18:40 +0000)]
cxgbe(4): set up congestion management for netmap rx queues.

The hw.cxgbe.cong_drop knob controls the response of the chip when
netmap queues are congested.

9 years agocxgbe(4): do not set the netmap rxq interrupts on a hair-trigger.
np [Tue, 24 Feb 2015 18:32:17 +0000 (18:32 +0000)]
cxgbe(4): do not set the netmap rxq interrupts on a hair-trigger.

MFC after: 2 weeks

9 years agocxgbe(4): wait for the hardware to catch up before destroying a netmap txq.
np [Tue, 24 Feb 2015 18:22:24 +0000 (18:22 +0000)]
cxgbe(4): wait for the hardware to catch up before destroying a netmap txq.

MFC after: 2 weeks

9 years agocxgbe(4): request an automatic tx update when a netmap txq idles.
np [Tue, 24 Feb 2015 18:19:25 +0000 (18:19 +0000)]
cxgbe(4): request an automatic tx update when a netmap txq idles.

MFC after: 2 weeks

9 years agoPass macro arguments properly.
hselasky [Tue, 24 Feb 2015 17:36:44 +0000 (17:36 +0000)]
Pass macro arguments properly.

MFC after: 1 week

9 years agoFix order of arguments in the TRACEBUF_INITIALIZER macro so that we
hselasky [Tue, 24 Feb 2015 17:29:04 +0000 (17:29 +0000)]
Fix order of arguments in the TRACEBUF_INITIALIZER macro so that we
can define QUEUE_MACRO_DEBUG to debug list problems.

MFC after: 1 week

9 years agomsun: drop unnecessary checks (part 2).
pfg [Tue, 24 Feb 2015 16:45:16 +0000 (16:45 +0000)]
msun: drop unnecessary checks (part 2).

Drop an unnecessary check in some calculations. The check
would have Coverity falsely conclude that a variable could
be left undefined.

9 years agoEnable 'receive timeout' interrupt allowing us to not
br [Tue, 24 Feb 2015 15:35:26 +0000 (15:35 +0000)]
Enable 'receive timeout' interrupt allowing us to not
loose 'rx buffer full' event.

This fixes operation on ARMv8 Foundation Model.

Sponsored by: DARPA, AFRL

9 years agoKeep a reference on the coredump vnode for vn_fullpath() call. Do it
kib [Tue, 24 Feb 2015 13:07:31 +0000 (13:07 +0000)]
Keep a reference on the coredump vnode for vn_fullpath() call.  Do it
by moving vn_close() after the point where notification is sent.

Reported by: sbruno
Tested by: pho, sbruno
Sponsored by: The FreeBSD Foundation

9 years agoChange struct attribute to avoid aligned operations mismatch
zbb [Tue, 24 Feb 2015 12:57:03 +0000 (12:57 +0000)]
Change struct attribute to avoid aligned operations mismatch

Previous __alignment(4) allowed compiler to assume that operations are
performed on aligned region. On ARM processor, this led to alignment fault
as shown below:
trapframe: 0xda9e5b10
FSR=00000001, FAR=a67b680e, spsr=60000113
r0 =00000000, r1 =00000068, r2 =0000007c, r3 =00000000
r4 =a67b6826, r5 =a67b680e, r6 =00000014, r7 =00000068
r8 =00000068, r9 =da9e5bd0, r10=00000011, r11=da9e5c10
r12=da9e5be0, ssp=da9e5b60, slr=a054f164, pc =a054f2cc
<...>
udp_input+0x264: ldmia r5, {r0-r3, r6}
udp_input+0x268: stmia r12, {r0-r3, r6}

This was due to instructions which do not support unaligned access,
whereas for __alignment(2) compiler replaced ldmia/stmia with some
logically equivalent memcpy operations.
In fact, the assumption that 'struct ip' is always 4-byte aligned
is definitely false, as we have no impact on data alignment of packet
stream received.

Another possible solution would be to explicitely perform memcpy()
on objects of 'struct ip' type, which, however, would suffer from
performance drop, and be merely a problem hiding.

Please, note that this has nothing to do with
ARM32_DISABLE_ALIGNMENT_FAULTS option, but is related strictly to
compiler behaviour.

Submitted by:  Wojciech Macek <wma@semihalf.com>
Reviewed by:   glebius, ian
Obtained from: Semihalf

9 years agoFix endianness on FDT read in ARM GIC
zbb [Tue, 24 Feb 2015 12:31:08 +0000 (12:31 +0000)]
Fix endianness on FDT read in ARM GIC

Submitted by:  Jakub Palider <jpa@semihalf.com>
Reviewed by:   ian, nwhitehorn
Obtained from: Semihalf

9 years agoFix possible memory leak and several races in the IPsec policy management
ae [Tue, 24 Feb 2015 10:35:07 +0000 (10:35 +0000)]
Fix possible memory leak and several races in the IPsec policy management
code.

Resurrect the state field in the struct secpolicy, it has
IPSEC_SPSTATE_ALIVE value when security policy linked in the chain,
and IPSEC_SPSTATE_DEAD value in all other cases. This field protects
from trying to unlink one security policy several times from the different
threads.

Take additional reference in the key_flush_spd() to be sure that policy
won't be freed from the different thread while we are sending SPDEXPIRE message.

Add KEY_FREESP() call to the key_unlink() to release additional reference
that we take when use key_getsp*() functions.

Differential Revision: https://reviews.freebsd.org/D1914
Tested by: Emeric POUPON <emeric.poupon at stormshield dot eu>
Reviewed by: hrs
Sponsored by: Yandex LLC

9 years agoEnsure that the XHCI driver will refresh the control endpoint settings
hselasky [Tue, 24 Feb 2015 08:53:47 +0000 (08:53 +0000)]
Ensure that the XHCI driver will refresh the control endpoint settings
when re-enumerating a FULL speed device. Else the wrong max packet
setting might be used when trying to re-enumerate a FULL speed device.

MFC after: 3 days

9 years agoAdd native netmap support to ixl.
luigi [Tue, 24 Feb 2015 06:20:50 +0000 (06:20 +0000)]
Add native netmap support to ixl.
Preliminary tests indicate 32 Mpps on tx, 24 Mpps on rx
with source and receiver on two different ports of the same 40G card.
Optimizations are likely possible.
The code follows closely the one for ixgbe so i do not
expect stability issues.

Hardware kindly supplied by Intel.

Reviewed by: Jack Vogel
MFC after: 1 week

9 years agosfxge: add put-list high watermark
arybchik [Tue, 24 Feb 2015 06:09:31 +0000 (06:09 +0000)]
sfxge: add put-list high watermark

It is interesting to know how long put-list grows.

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)

9 years agosfxge: use goto to cleanup to avoid duplicate cleanup code
arybchik [Tue, 24 Feb 2015 06:08:55 +0000 (06:08 +0000)]
sfxge: use goto to cleanup to avoid duplicate cleanup code

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)

9 years agoFix printf format warnings on sparc64 and mips.
ken [Tue, 24 Feb 2015 05:43:16 +0000 (05:43 +0000)]
Fix printf format warnings on sparc64 and mips.

Sponsored by: Spectra Logic
MFC after: 1 month

9 years agoAlways emulate MSR_PAT on Intel processors and don't rely on PAT save/restore
neel [Tue, 24 Feb 2015 05:35:15 +0000 (05:35 +0000)]
Always emulate MSR_PAT on Intel processors and don't rely on PAT save/restore
capability of VT-x. This lets bhyve run nested in older VMware versions that
don't support the PAT save/restore capability.

Note that the actual value programmed by the guest in MSR_PAT is irrelevant
because bhyve sets the 'Ignore PAT' bit in the nested PTE.

Reported by: marcel
Tested by: Leon Dang (ldang@nahannisys.com)
Sponsored by: Nahanni Systems
MFC after: 2 weeks

9 years agoEmulate MSR 0xC0011024 when running on AMD processors.
neel [Tue, 24 Feb 2015 05:15:40 +0000 (05:15 +0000)]
Emulate MSR 0xC0011024 when running on AMD processors.

OpenBSD guests test bit 0 of this MSR to detect whether the workaround for
erratum 721 has been applied.

Reported by: Jason Tubnor (jason@tubnor.net)
MFC after: 1 week

9 years agoAdd "-u" option to bhyve(8) to indicate that the RTC should maintain UTC time.
neel [Tue, 24 Feb 2015 02:04:16 +0000 (02:04 +0000)]
Add "-u" option to bhyve(8) to indicate that the RTC should maintain UTC time.

The default remains localtime for compatibility with the original device model
in bhyve(8). This is required for OpenBSD guests which assume that the RTC
keeps UTC time.

Reviewed by: grehan
Pointed out by: Jason Tubnor (jason@tubnor.net)
MFC after: 2 weeks

9 years agoCorrect a typo.
yongari [Tue, 24 Feb 2015 01:00:46 +0000 (01:00 +0000)]
Correct a typo.

Reported by: jmg

9 years agoImprove memory detection in biosmem.c
grembo [Mon, 23 Feb 2015 22:58:51 +0000 (22:58 +0000)]
Improve memory detection in biosmem.c

- Add a quirk to allow ignoring e820 extended memory detection.
- Improve memory detection through e801.
- Add bootloader command "biosmem".

See differential revision for more details.

Reviewed by: jhb, adrian
Approved by: adrian
Differential Revision:  https://reviews.freebsd.org/D1741

9 years agoBump __FreeBSD_version for the mtio(4) / sa(4) ioctl and API additions
ken [Mon, 23 Feb 2015 22:50:43 +0000 (22:50 +0000)]
Bump __FreeBSD_version for the mtio(4) / sa(4) ioctl and API additions
in revision 279219.

Sponsored by: Spectra Logic
MFC after: 1 month

9 years agoDon't close a block context if it couldn't be opened,
grehan [Mon, 23 Feb 2015 22:31:39 +0000 (22:31 +0000)]
Don't close a block context if it couldn't be opened,
for example if the backing file doesn't exist,
avoiding a null deref.

Reviewed by: neel
MFC after: 1 week.

9 years agoSignificant upgrades to sa(4) and mt(1).
ken [Mon, 23 Feb 2015 21:59:30 +0000 (21:59 +0000)]
Significant upgrades to sa(4) and mt(1).

The primary focus of these changes is to modernize FreeBSD's
tape infrastructure so that we can take advantage of some of the
features of modern tape drives and allow support for LTFS.

Significant changes and new features include:

 o sa(4) driver status and parameter information is now exported via an
   XML structure.  This will allow for changes and improvements later
   on that will not break userland applications.  The old MTIOCGET
   status ioctl remains, so applications using the existing interface
   will not break.

 o 'mt status' now reports drive-reported tape position information
   as well as the previously available calculated tape position
   information.  These numbers will be different at times, because
   the drive-reported block numbers are relative to BOP (Beginning
   of Partition), but the block numbers calculated previously via
   sa(4) (and still provided) are relative to the last filemark.
   Both numbers are now provided.  'mt status' now also shows the
   drive INQUIRY information, serial number and any position flags
   (BOP, EOT, etc.) provided with the tape position information.
   'mt status -v' adds information on the maximum possible I/O size,
   and the underlying values used to calculate it.

 o The extra sa(4) /dev entries (/dev/saN.[0-3]) have been removed.

   The extra devices were originally added as place holders for
   density-specific device nodes.  Some OSes (NetBSD, NetApp's OnTap
   and Solaris) have had device nodes that, when you write to them,
   will automatically select a given density for particular tape drives.

   This is a convenient way of switching densities, but it was never
   implemented in FreeBSD.  Only the device nodes were there, and that
   sometimes confused users.

   For modern tape devices, the density is generally not selectable
   (e.g. with LTO) or defaults to the highest availble density when
   the tape is rewritten from BOT (e.g. TS11X0).  So, for most users,
   density selection won't be necessary.  If they do need to select
   the density, it is easy enough to use 'mt density' to change it.

 o Protection information is now supported.  This is either a
   Reed-Solomon CRC or CRC32 that is included at the end of each block
   read and written.  On write, the tape drive verifies the CRC, and
   on read, the tape drive provides a CRC for the userland application
   to verify.

 o New, extensible tape driver parameter get/set interface.

 o Density reporting information.  For drives that support it,
   'mt getdensity' will show detailed information on what formats the
   tape drive supports, and what formats the tape drive supports.

 o Some mt(1) functionality moved into a new mt(3) library so that
   external applications can reuse the code.

 o The new mt(3) library includes helper routines to aid in parsing
   the XML output of the sa(4) driver, and build a tree of driver
   metadata.

 o Support for the MTLOAD (load a tape in the drive) and MTWEOFI
   (write filemark immediate) ioctls needed by IBM's LTFS
   implementation.

 o Improve device departure behavior for the sa(4) driver.  The previous
   implementation led to hangs when the device was open.

 o This has been tested on the following types of drives:
IBM TS1150
IBM TS1140
IBM LTO-6
IBM LTO-5
HP LTO-2
Seagate DDS-4
Quantum DLT-4000
Exabyte 8505
Sony DDS-2

contrib/groff/tmac/doc-syms,
share/mk/bsd.libnames.mk,
lib/Makefile,
Add libmt.

lib/libmt/Makefile,
lib/libmt/mt.3,
lib/libmt/mtlib.c,
lib/libmt/mtlib.h,
New mt(3) library that contains functions moved from mt(1) and
new functions needed to interact with the updated sa(4) driver.

This includes XML parser helper functions that application writers
can use when writing code to query tape parameters.

rescue/rescue/Makefile:
Add -lmt to CRUNCH_LIBS.

src/share/man/man4/mtio.4
Clarify this man page a bit, and since it contains what is
essentially the mtio.h header file, add new ioctls and structure
definitions from mtio.h.

src/share/man/man4/sa.4
Update BUGS and maintainer section.

sys/cam/scsi/scsi_all.c,
sys/cam/scsi/scsi_all.h:
Add SCSI SECURITY PROTOCOL IN/OUT CDB definitions and CDB building
functions.

sys/cam/scsi/scsi_sa.c
sys/cam/scsi/scsi_sa.h
Many tape driver changes, largely outlined above.

Increase the sa(4) driver read/write timeout from 4 to 32
minutes.  This is based on the recommended values for IBM LTO
5/6 drives.  This may also avoid timeouts for other tape
hardware that can take a long time to do retries and error
recovery.  Longer term, a better way to handle this is to ask
the drive for recommended timeout values using the REPORT
SUPPORTED OPCODES command.  Modern IBM and Oracle tape drives
at least support that command, and it would allow for more
accurate timeout values.

Add XML status generation.  This is done with a series of
macros to eliminate as much duplicate code as possible.  The
new XML-based status values are reported through the new
MTIOCEXTGET ioctl.

Add XML driver parameter reporting, using the new MTIOCPARAMGET
ioctl.

Add a new driver parameter setting interface, using the new
MTIOCPARAMSET and MTIOCSETLIST ioctls.

Add a new MTIOCRBLIM ioctl to get block limits information.

Add CCB/CDB building routines scsi_locate_16, scsi_locate_10,
and scsi_read_position_10().

scsi_locate_10 implements the LOCATE command, as does the
existing scsi_set_position() command.  It just supports
additional arguments and features.  If/when we figure out a
good way to provide backward compatibility for older
applications using the old function API, we can just revamp
scsi_set_position().  The same goes for
scsi_read_position_10() and the existing scsi_read_position()
function.

Revamp sasetpos() to take the new mtlocate structure as an
argument.  It now will use either scsi_locate_10() or
scsi_locate_16(), depending upon the arguments the user
supplies.  As before, once we change position we don't have a
clear idea of what the current logical position of the tape
drive is.

For tape drives that support long form position data, we
read the current position and store that for later reporting
after changing the position.  This should help applications
like Bacula speed tape access under FreeBSD once they are
modified to support the new ioctls.

Add a new quirk, SA_QUIRK_NO_LONG_POS, that is set for all
drives that report SCSI-2 or older, as well as drives that
report an Illegal Request type error for READ POSITION with
the long format.  So we should automatically detect drives
that don't support the long form and stop asking for it after
an initial try.

Add a partition number to the sa(4) softc.

Improve device departure handling. The previous implementation
led to hangs when the device was open.

If an application had the sa(4) driver open, and attempted to
close it after it went away, the cam_periph_release() call in
saclose() would cause the periph to get destroyed because that
was the last reference to it.  Because destroy_dev() was
called from the sa(4) driver's cleanup routine (sacleanup()),
and would block waiting for the close to happen, a deadlock
would result.

So instead of calling destroy_dev() from the cleanup routine,
call destroy_dev_sched_cb() from saoninvalidate() and wait for
the callback.

Acquire a reference for devfs in saregister(), and release it
in the new sadevgonecb() routine when all devfs devices for
the particular sa(4) driver instance are gone.

Add a new function, sasetupdev(), to centralize setting
per-instance devfs device parameters instead of repeating the
code in saregister().

Add an open count to the softc, so we know how many
peripheral driver references are a result of open
        sessions.

Add the D_TRACKCLOSE flag to the cdevsw flags so
that we get a 1:1 mapping of open to close calls
instead of a N:1 mapping.

This should be a no-op for everything except the
control device, since we don't allow more than one
open on non-control devices.

However, since we do allow multiple opens on the
control device, the combination of the open count
and the D_TRACKCLOSE flag should result in an
accurate peripheral driver reference count, and an
accurate open count.

The accurate open count allows us to release all
peripheral driver references that are the result
of open contexts once we get the callback from devfs.

sys/sys/mtio.h:
Add a number of new mt(4) ioctls and the requisite data
structures.  None of the existing interfaces been removed
or changed.

This includes definitions for the following new ioctls:

MTIOCRBLIM      /* get block limits */
MTIOCEXTLOCATE /* seek to position */
MTIOCEXTGET     /* get tape status */
MTIOCPARAMGET /* get tape params */
MTIOCPARAMSET /* set tape params */
MTIOCSETLIST /* set N params */

usr.bin/mt/Makefile:
mt(1) now depends on libmt, libsbuf and libbsdxml.

usr.bin/mt/mt.1:
Document new mt(1) features and subcommands.

usr.bin/mt/mt.c:
Implement support for mt(1) subcommands that need to
use getopt(3) for their arguments.

Implement a new 'mt status' command to replace the old
'mt status' command.  The old status command has been
renamed 'ostatus'.

The new status function uses the MTIOCEXTGET ioctl, and
therefore parses the XML data to determine drive status.
The -x argument to 'mt status' allows the user to dump out
the raw XML reported by the kernel.

The new status display is mostly the same as the old status
display, except that it doesn't print the redundant density
mode information, and it does print the current partition
number and position flags.

Add a new command, 'mt locate', that will supersede the
old 'mt setspos' and 'mt sethpos' commands.  'mt locate'
implements all of the functionality of the MTIOCEXTLOCATE
ioctl, and allows the user to change the logical position
of the tape drive in a number of ways.  (Partition,
block number, file number, set mark number, end of data.)
The immediate bit and the explicit address bits are
implemented, but not documented in the man page.

Add a new 'mt weofi' command to use the new MTWEOFI ioctl.
This allows the user to ask the drive to write a filemark
without waiting around for the operation to complete.

Add a new 'mt getdensity' command that gets the XML-based
tape drive density report from the sa(4) driver and displays
it.  This uses the SCSI REPORT DENSITY SUPPORT command
to get comprehensive information from the tape drive about
what formats it is able to read and write.

Add a new 'mt protect' command that allows getting and setting
tape drive protection information.  The protection information
is a CRC tacked on to the end of every read/write from and to
the tape drive.

Sponsored by: Spectra Logic
MFC after: 1 month

9 years agoFix race in interrupt handling that could cause IO to hang up under heavy
nwhitehorn [Mon, 23 Feb 2015 20:38:00 +0000 (20:38 +0000)]
Fix race in interrupt handling that could cause IO to hang up under heavy
load.

9 years agoThere is no reason to do i+dcache writeback and invalidate when changing
ian [Mon, 23 Feb 2015 20:09:05 +0000 (20:09 +0000)]
There is no reason to do i+dcache writeback and invalidate when changing
the translation table (this may be left over from armv5 days).  It's
especially bad to do so using a cache operation that isn't coherent on
SMP systems.

Submitted by: Michal Meloun

9 years agoA lot of current code in network stack expects mbufs not having
glebius [Mon, 23 Feb 2015 18:57:09 +0000 (18:57 +0000)]
A lot of current code in network stack expects mbufs not having
m_nextpkt pointer, assuming that if there is one, then this is
a packet batch. Thus, mbufq_dequeue() needs to clear it on mbuf
that is being returned.

9 years agoPrevious version of mbufq were fine initialized by M_ZERO, while
glebius [Mon, 23 Feb 2015 18:55:26 +0000 (18:55 +0000)]
Previous version of mbufq were fine initialized by M_ZERO, while
new one require explicti initialization.

Reported by: royger

9 years agoAdd support for the DWC OTG v2 chipset found in the STM32F4 series of
hselasky [Mon, 23 Feb 2015 17:01:38 +0000 (17:01 +0000)]
Add support for the DWC OTG v2 chipset found in the STM32F4 series of
processors. Make sure we pullup the data lines in device mode when we
power on the port.

MFC after: 1 week

9 years agosoreceive_generic() still has similar KASSERT(), therefore instead of
ae [Mon, 23 Feb 2015 15:24:43 +0000 (15:24 +0000)]
soreceive_generic() still has similar KASSERT(), therefore instead of
remove KASSERT(), change it to check mbuf isn't NULL.

Suggested by: kib
MFC after: 1 week

9 years agoIn some cases soreceive_dgram() can return no data, but has control
ae [Mon, 23 Feb 2015 13:41:35 +0000 (13:41 +0000)]
In some cases soreceive_dgram() can return no data, but has control
message. This can happen when application is sending packets too big
for the path MTU and recvmsg() will return zero (indicating no data)
but there will be a cmsghdr with cmsg_type set to IPV6_PATHMTU.
Remove KASSERT() which does NULL pointer dereference in such case.
Also call m_freem() only when m isn't NULL.

PR: 197882
MFC after: 1 week
Sponsored by: Yandex LLC

9 years agoMacro fixes:
hselasky [Mon, 23 Feb 2015 12:54:46 +0000 (12:54 +0000)]
Macro fixes:
- Add missing "order_base_2()" macro.
- Fix BUILD_BUG_ON() macro.

MFC after: 1 month
Sponsored by: Mellanox Technologies

9 years agoadd MODULE_VERSION, needed to track module dependencies
luigi [Mon, 23 Feb 2015 07:28:31 +0000 (07:28 +0000)]
add MODULE_VERSION, needed to track module dependencies

MFC after: 3 days

9 years agoFill in missing dependencies for dtrace related tools so the bootstrap-tools
ngie [Mon, 23 Feb 2015 06:46:04 +0000 (06:46 +0000)]
Fill in missing dependencies for dtrace related tools so the bootstrap-tools
compiles properly on older hosts

Pointyhat to: me
X-MFC with: r279197
MFC after: 2 weeks

9 years agoParallelize building bootstrap-tools
ngie [Mon, 23 Feb 2015 05:28:17 +0000 (05:28 +0000)]
Parallelize building bootstrap-tools

Differential Revision: https://reviews.freebsd.org/D1901
MFC after: 2 weeks
Reviewed by: ian
No serious objections from: imp

9 years agoUpdate compiler-rt to trunk r230183. This has some of our patches
dim [Sun, 22 Feb 2015 22:53:51 +0000 (22:53 +0000)]
Update compiler-rt to trunk r230183.  This has some of our patches
imported, so we have just a few small diffs against upstream left.

9 years agoImport compiler-rt trunk r230183.
dim [Sun, 22 Feb 2015 22:43:40 +0000 (22:43 +0000)]
Import compiler-rt trunk r230183.

https://llvm.org/svn/llvm-project/compiler-rt/trunk@230183

9 years agoUpdate compiler-rt to trunk r228651. This enables using Address
dim [Sun, 22 Feb 2015 22:31:36 +0000 (22:31 +0000)]
Update compiler-rt to trunk r228651.  This enables using Address
Sanitizer and Undefined Behavior Sanitizer with clang 3.6.0.

9 years agoKernel support for the Vector-Scalar eXtension (VSX) found on the POWER7
nwhitehorn [Sun, 22 Feb 2015 21:40:27 +0000 (21:40 +0000)]
Kernel support for the Vector-Scalar eXtension (VSX) found on the POWER7
and POWER8. This instruction set unifies the 32 64-bit scalar floating
point registers with the 32 128-bit vector registers into a single bank
of 64 128-bit registers. Kernel support mostly amounts to saving and
restoring the wider version of the floating point registers and making
sure that both scalar FP and vector registers are enabled once a VSX
instruction is executed. get_mcontext() and friends currently cannot
see the high bits, which will require a little more work.

As the system compiler (GCC 4.2) does not support VSX, making use of this
from userland requires either newer GCC or clang.

Relnotes: yes
Sponsored by: FreeBSD Foundation

9 years agosh: Add details about importing the environment and initializing OPTIND.
jilles [Sun, 22 Feb 2015 21:32:57 +0000 (21:32 +0000)]
sh: Add details about importing the environment and initializing OPTIND.

9 years agoAdd some opcodes for assembling forthcoming VSX (Vector-Scalar eXtension)
nwhitehorn [Sun, 22 Feb 2015 20:52:29 +0000 (20:52 +0000)]
Add some opcodes for assembling forthcoming VSX (Vector-Scalar eXtension)
support in the kernel. Userspace programs are expected to rely on LLVM's
integrated assembler or newer binutils.

9 years agosetmode(3): Make sure that setmode sets errno on failure.
pfg [Sun, 22 Feb 2015 20:16:44 +0000 (20:16 +0000)]
setmode(3): Make sure that setmode sets errno on failure.

Our man page already documented this partially but now
we have some consistent behavior.

PR: 136669
Obtained from: NetBSD (CVS rev. 1.31, 1.33)
Relnotes: yes
MFC after: 3 weeks

9 years agoo Typo: securiy -> security.
maxim [Sun, 22 Feb 2015 19:42:50 +0000 (19:42 +0000)]
o Typo: securiy -> security.

PR: 197927
Submitted by: mike.543@comcast.net
MFC after: 1 week

9 years agosfxge: implement if_get_counter callback
arybchik [Sun, 22 Feb 2015 19:25:57 +0000 (19:25 +0000)]
sfxge: implement if_get_counter callback

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)

9 years agosfxge: add common code support for changing TX queue pace
arybchik [Sun, 22 Feb 2015 19:24:08 +0000 (19:24 +0000)]
sfxge: add common code support for changing TX queue pace

To delay packets from a particular TX queue by a particular time, write a value
into the TX Pace table s.t. pace time <= TX Pace Clock Period * (2 ^ pace value)
- the TX pace clock is 1/13 of the system clock, so its period should be 104 or
52 ns depending on whether turbo mode is active.

EFX_TX_PACE_CLOCK_BASE added by me.

Submitted by:   Mark Spender <mspender at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)

9 years agosfxge: correct event queue interrupt moderation timer quanta
arybchik [Sun, 22 Feb 2015 19:13:52 +0000 (19:13 +0000)]
sfxge: correct event queue interrupt moderation timer quanta

Submitted by:   Andrew Lee <alee at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)

9 years agosfxge: add indefinite article and update timestamp
arybchik [Sun, 22 Feb 2015 18:59:00 +0000 (18:59 +0000)]
sfxge: add indefinite article and update timestamp

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)

9 years agosfxge: list header in SRCS
arybchik [Sun, 22 Feb 2015 18:57:28 +0000 (18:57 +0000)]
sfxge: list header in SRCS

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)

9 years agosfxge: DMA allocated memory is set to zeros because of BUS_DMA_ZERO flag
arybchik [Sun, 22 Feb 2015 18:56:03 +0000 (18:56 +0000)]
sfxge: DMA allocated memory is set to zeros because of BUS_DMA_ZERO flag

It is not required to set it to zeros once again.

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)

9 years agosfxge: do no allow EFSYS_MEM_ALLOC sleep
arybchik [Sun, 22 Feb 2015 18:54:16 +0000 (18:54 +0000)]
sfxge: do no allow EFSYS_MEM_ALLOC sleep

It solves locking problem when EFSYS_MEM_ALLOC is called in
the context holding a mutex (not allowed to sleep).
E.g. on interface bring up or multicast addresses addition.

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)

9 years agosfxge: assert event queue lock in event handlers
arybchik [Sun, 22 Feb 2015 18:52:15 +0000 (18:52 +0000)]
sfxge: assert event queue lock in event handlers

It is useful to highlight lock context.

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)

9 years agosfxge: pass correct address to free allocated memory in the case of load error
arybchik [Sun, 22 Feb 2015 18:50:59 +0000 (18:50 +0000)]
sfxge: pass correct address to free allocated memory in the case of load error

It is one more place missed in the previous fix.
Most likely is was just memory leak on the error handling path since
typically efsys_mem_t is filled in by zeros on allocation.

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)

9 years agosfxge: using bus_space_*_stream_* API for better portability
arybchik [Sun, 22 Feb 2015 18:48:54 +0000 (18:48 +0000)]
sfxge: using bus_space_*_stream_* API for better portability

Host-bus byte order translation is not requred.

Submitted by:   Artem V. Andreev <Artem.Andreev at oktetlabs.ru>
Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)

9 years agosfxge: add missing Siena sensors to common code
arybchik [Sun, 22 Feb 2015 18:47:30 +0000 (18:47 +0000)]
sfxge: add missing Siena sensors to common code

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)

9 years agosfxge: add missing common code NVRAM types and map from MCDI
arybchik [Sun, 22 Feb 2015 18:46:11 +0000 (18:46 +0000)]
sfxge: add missing common code NVRAM types and map from MCDI

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)

9 years agosfxge: add new identities to Siena static config
arybchik [Sun, 22 Feb 2015 18:44:37 +0000 (18:44 +0000)]
sfxge: add new identities to Siena static config

Submitted by:   Andrew Jackson <ajackson at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)

9 years agoBelatedly add llvm patch corresponding to r278367.
dim [Sun, 22 Feb 2015 16:28:24 +0000 (16:28 +0000)]
Belatedly add llvm patch corresponding to r278367.

9 years agoMerge ^/head r279023 through r279162.
dim [Sun, 22 Feb 2015 16:04:37 +0000 (16:04 +0000)]
Merge ^/head r279023 through r279162.

9 years agoAdd llvm patch corresponding to r279161.
dim [Sun, 22 Feb 2015 15:56:16 +0000 (15:56 +0000)]
Add llvm patch corresponding to r279161.

9 years agoPull in r230058 from upstream llvm trunk (by Benjamin Kramer):
dim [Sun, 22 Feb 2015 15:51:49 +0000 (15:51 +0000)]
Pull in r230058 from upstream llvm trunk (by Benjamin Kramer):

  LoopRotate: When reconstructing loop simplify form don't split edges
  from indirectbrs.

  Yet another chapter in the endless story. While this looks like we
  leave the loop in a non-canonical state this replicates the logic in
  LoopSimplify so it doesn't diverge from the canonical form in any way.

  http://llvm.org/PR21968

This fixes a "Cannot split critical edge from IndirectBrInst" assertion
failure when building the devel/radare2 port.

PR: 195480, 196987
MFC after: 3 days