]> xenbits.xensource.com Git - people/julieng/freebsd.git/log
people/julieng/freebsd.git
10 years agoarm64: Embbed the rootfs for now arm64-dev
Julien Grall [Mon, 30 Mar 2015 15:12:45 +0000 (16:12 +0100)]
arm64: Embbed the rootfs for now

10 years agoarm64: Missing isb/dsb in vfp restore state
Julien Grall [Mon, 30 Mar 2015 15:12:18 +0000 (16:12 +0100)]
arm64: Missing isb/dsb in vfp restore state

10 years agoRevert "Revert "putchar: hack it to directly call HYPERVISOR_console_write""
Julien Grall [Mon, 30 Mar 2015 14:30:24 +0000 (15:30 +0100)]
Revert "Revert "putchar: hack it to directly call HYPERVISOR_console_write""

This reverts commit ed511ccbf87486f18da334cc6e8da54c79f4588a.

10 years agoxen/console: Add support for arm64
Julien Grall [Mon, 30 Mar 2015 14:02:19 +0000 (15:02 +0100)]
xen/console: Add support for arm64

10 years agoarm64: Call xen_early_init
Julien Grall [Mon, 30 Mar 2015 14:02:05 +0000 (15:02 +0100)]
arm64: Call xen_early_init

10 years agoRevert "putchar: hack it to directly call HYPERVISOR_console_write"
Julien Grall [Mon, 30 Mar 2015 14:01:21 +0000 (15:01 +0100)]
Revert "putchar: hack it to directly call HYPERVISOR_console_write"

This reverts commit da8a0f948cd2f62e8889e228db481dee7d2dda58.

10 years agoputchar: hack it to directly call HYPERVISOR_console_write
Julien Grall [Wed, 18 Sep 2013 18:04:43 +0000 (19:04 +0100)]
putchar: hack it to directly call HYPERVISOR_console_write

10 years agoMake Xen compiler for ARM64
Julien Grall [Sun, 29 Mar 2015 20:10:13 +0000 (21:10 +0100)]
Make Xen compiler for ARM64

10 years agoarm/fdt: WORKAROUND map 128Mib in order to preserve the FDT
Julien Grall [Sat, 28 Mar 2015 19:58:31 +0000 (19:58 +0000)]
arm/fdt: WORKAROUND map 128Mib in order to preserve the FDT

10 years agoarm/gic: Fix SPIs check
Julien Grall [Sat, 28 Mar 2015 19:47:15 +0000 (19:47 +0000)]
arm/gic: Fix SPIs check

10 years agoTMP
Julien Grall [Sun, 22 Feb 2015 13:05:03 +0000 (13:05 +0000)]
TMP

10 years agoHACK: arm: get correct debug trace when using binary
Julien Grall [Sun, 1 Jun 2014 22:51:26 +0000 (23:51 +0100)]
HACK: arm: get correct debug trace when using binary

10 years agoHACK: arm/ttys: enable xc0
Julien Grall [Tue, 14 Jan 2014 01:41:10 +0000 (01:41 +0000)]
HACK: arm/ttys: enable xc0

10 years agoHACK: Enable evtchn and timer IRQ on secondary CPUs
Julien Grall [Wed, 14 May 2014 18:45:02 +0000 (19:45 +0100)]
HACK: Enable evtchn and timer IRQ on secondary CPUs

10 years agoHACK: xen/xenpv: Attach xenpv to ofwbus
Julien Grall [Fri, 6 Jun 2014 15:47:36 +0000 (16:47 +0100)]
HACK: xen/xenpv: Attach xenpv to ofwbus

ofwbus handle itself the device memory. If privcmd want to allocate memory
it will try in the wrong address space.

TODO: ofwbus should let the next handle resource management

10 years agoxen/xenstored: Handle xenstored daemon in HVM domain
Julien Grall [Mon, 16 Jun 2014 19:31:36 +0000 (20:31 +0100)]
xen/xenstored: Handle xenstored daemon in HVM domain

10 years agoxen/xenpv: Implement {,dev}activate_resource for ARM
Julien Grall [Sun, 8 Jun 2014 15:55:38 +0000 (16:55 +0100)]
xen/xenpv: Implement {,dev}activate_resource for ARM

10 years agoHandle ARM dom0 for xenstore
Julien Grall [Fri, 6 Jun 2014 00:21:48 +0000 (01:21 +0100)]
Handle ARM dom0 for xenstore

10 years agoarm: Add xenvirt platform
Julien Grall [Tue, 14 Jan 2014 01:40:58 +0000 (01:40 +0000)]
arm: Add xenvirt platform

This platform code allow FreeBSD to boot as Xen on ARM guest.

I'm not 100% sure of the implementation of synch_* on ARM. I choose to use
the atomic_* builtin. Is it SMP-safe?

10 years agoarm/xen: define NUM_EVTCHN_INTS and FIRST_EVTCHN_INT
Julien Grall [Sun, 22 Jun 2014 16:18:52 +0000 (17:18 +0100)]
arm/xen: define NUM_EVTCHN_INTS and FIRST_EVTCHN_INT

10 years agoarm: Add FDT support for Linux Boot ABI
Julien Grall [Thu, 10 Apr 2014 15:59:14 +0000 (16:59 +0100)]
arm: Add FDT support for Linux Boot ABI

10 years agoHACK: arm: Map 128Mb of memory in the early page table
Julien Grall [Thu, 10 Apr 2014 17:47:04 +0000 (18:47 +0100)]
HACK: arm: Map 128Mb of memory in the early page table

The DTB can be placed anywhere in the first 128Mb of RAM

10 years agoHACK: arm: Implement intr_next_cpu
Julien Grall [Sun, 2 Nov 2014 19:54:48 +0000 (19:54 +0000)]
HACK: arm: Implement intr_next_cpu

Required for the event channel code

10 years agoarm: Implement disable_intr
Julien Grall [Tue, 14 Jan 2014 01:41:01 +0000 (01:41 +0000)]
arm: Implement disable_intr

Xen code uses disable_intr.

10 years agoarm: rename intr.h into intr_machdep.h
Julien Grall [Sun, 22 Jun 2014 16:13:10 +0000 (17:13 +0100)]
arm: rename intr.h into intr_machdep.h

ARM is the only architecture where the interrupt header is named "intr.h"
rather than "intr_machdep.h". There is numerous place (such as Xen) in the
generic code which need to deal with interrupt management.

10 years agoarm: Add zImage support
Julien Grall [Mon, 26 May 2014 17:29:33 +0000 (18:29 +0100)]
arm: Add zImage support

Currently Xen on ARM is only supported zImage for guest kernel. Adding support
for ARM ELF in the toolstack looks a bit complicate for ARM (though there is
an x86 support).

10 years agoarm: busdma-v6: Correctly handle segment that require a bounce page
Julien Grall [Mon, 14 Jul 2014 17:47:31 +0000 (18:47 +0100)]
arm: busdma-v6: Correctly handle segment that require a bounce page

sgsize has to be aligned to the driver requirement in any case. Currently,
when segment is using bounce page, FreeBSD forgot to update sgsize.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
10 years agoarm/trap: Correctly update ftype from write access caused by a data abort
Julien Grall [Fri, 6 Jun 2014 19:55:29 +0000 (20:55 +0100)]
arm/trap: Correctly update ftype from write access caused by a data abort

It's possible to mmap with only PROT_WRITE. This will result to a segfault
because the protection doesn't match the ftype.

See vm/vm_map.c vm_map_lookup

10 years agoxen/console: handle console for HVM
Julien Grall [Tue, 14 Jan 2014 01:41:17 +0000 (01:41 +0000)]
xen/console: handle console for HVM

ARM guest is an HVM container with PV drivers for the console. Support HVM
in the console and enable it for ARM.

10 years agoxen/control: register pv shutdown handler for ARM
Julien Grall [Fri, 4 Apr 2014 23:52:05 +0000 (00:52 +0100)]
xen/control: register pv shutdown handler for ARM

10 years agoxen/control: Implement suspend has panic for ARM
Julien Grall [Tue, 14 Jan 2014 01:41:15 +0000 (01:41 +0000)]
xen/control: Implement suspend has panic for ARM

10 years agoxen/intr: unmask the event channel when we have added a new handler
Julien Grall [Tue, 24 Jun 2014 16:43:57 +0000 (17:43 +0100)]
xen/intr: unmask the event channel when we have added a new handler

10 years agoxen/intr: Rework the event channels handler to make it generic
Julien Grall [Tue, 14 Jan 2014 01:41:04 +0000 (01:41 +0000)]
xen/intr: Rework the event channels handler to make it generic

The current code to handle the event channels was x86-specific. I think
we can use safely generic function to handle interrupt.

This code was not yet tested/compiled on x86.

TODO:
- There is some #if 0 in the code. Mainly for suspend/resume

10 years agoxen/intr: Don't need to export xen_intr_pcpu
Julien Grall [Sat, 19 Apr 2014 21:34:43 +0000 (22:34 +0100)]
xen/intr: Don't need to export xen_intr_pcpu

xen_intr_pcpu is only used within sys/xen/xen_intr.c

10 years agoxen/intr: Introduce xen_pic_assign_cpu
Julien Grall [Sat, 19 Apr 2014 21:32:01 +0000 (22:32 +0100)]
xen/intr: Introduce xen_pic_assign_cpu

10 years agox86/xen: Introduce atomic_readandclear_xen_ulong
Julien Grall [Sun, 20 Apr 2014 13:56:35 +0000 (14:56 +0100)]
x86/xen: Introduce atomic_readandclear_xen_ulong

10 years agox86/xen: Add cpu_to_vcpu_id macro
Julien Grall [Sat, 19 Apr 2014 15:57:40 +0000 (16:57 +0100)]
x86/xen: Add cpu_to_vcpu_id macro

10 years agoxen: move xen_intr.c to common code
Julien Grall [Tue, 14 Jan 2014 01:41:04 +0000 (01:41 +0000)]
xen: move xen_intr.c to common code

10 years agoxen/xenpv: Load xenpv as late as possible
Julien Grall [Fri, 6 Jun 2014 00:51:15 +0000 (01:51 +0100)]
xen/xenpv: Load xenpv as late as possible

On ARM, we only know that FreeBSD is running on Xen via a device tree node.
We have to delay xenpv initialization after the device tree has been fully
parsed.

10 years agoxen/xenpv: Only add isa for x86 architecture
Julien Grall [Tue, 14 Jan 2014 01:41:11 +0000 (01:41 +0000)]
xen/xenpv: Only add isa for x86 architecture

isa device doesn't exist on ARM.

10 years agoxen: move x86/xen/xenpv.c in dev/xen/xenpv.c
Julien Grall [Tue, 14 Jan 2014 01:41:10 +0000 (01:41 +0000)]
xen: move x86/xen/xenpv.c in dev/xen/xenpv.c

10 years agoxen: Introduce xen_pmap
Julien Grall [Tue, 14 Jan 2014 14:44:08 +0000 (14:44 +0000)]
xen: Introduce xen_pmap

The function to map xen memory is not the same on every architecture.

On ARM, the mappings require to be cacheable and pmap_mapdev doesn't do that.

Replace every call of pmap_mapdev in xen code by xen_pmap

10 years agoxen/netfront: Define PTE flags per architecture
Julien Grall [Tue, 14 Jan 2014 01:41:15 +0000 (01:41 +0000)]
xen/netfront: Define PTE flags per architecture

PG_* flags doesn't exists on ARM. As this code is not executed on this platform
(every guests use auto-translate address), it's possible to define as 0 the
flags.

10 years agoxen/gnttab: Add a guard for xenpci functions
Julien Grall [Tue, 14 Jan 2014 01:41:12 +0000 (01:41 +0000)]
xen/gnttab: Add a guard for xenpci functions

On ARM, the xenpci doesn't exist. Add guard to call xenpci function only
if the device is enabled.

10 years agoxen/gnttab: Export resume_frames
Julien Grall [Tue, 14 Jan 2014 14:34:55 +0000 (14:34 +0000)]
xen/gnttab: Export resume_frames

Allow the platform the set resume_frames to a specific address. It will be
used on ARM because the region is give by the device tree.

10 years agoxen/gnttab: Use the right type for the frames
Julien Grall [Tue, 14 Jan 2014 13:52:12 +0000 (13:52 +0000)]
xen/gnttab: Use the right type for the frames

10 years agoxen/netfront: Use the correct type for rx_pfn_array
Julien Grall [Tue, 14 Jan 2014 01:41:01 +0000 (01:41 +0000)]
xen/netfront: Use the correct type for rx_pfn_array

10 years agoxen/netback: Fix printf format for xen_pfn_t
Julien Grall [Tue, 14 Jan 2014 01:41:00 +0000 (01:41 +0000)]
xen/netback: Fix printf format for xen_pfn_t

10 years agoxen/ballon: Use correct type for frame list
Julien Grall [Tue, 14 Jan 2014 01:41:00 +0000 (01:41 +0000)]
xen/ballon: Use correct type for frame list

10 years agoxen/interface: Update interface to Xen 4.4 headers
Julien Grall [Tue, 14 Jan 2014 01:40:57 +0000 (01:40 +0000)]
xen/interface: Update interface to Xen 4.4 headers

10 years agoxen: intr: remove evtchn_port_t typedef in sys/xen/xen_intr.h
Julien Grall [Sat, 19 Apr 2014 19:26:15 +0000 (20:26 +0100)]
xen: intr: remove evtchn_port_t typedef in sys/xen/xen_intr.h

evtchn_port_t is correctly defined in Xen headers. There is no reason
to have a specific definition on FreeBSD

10 years agoxen/hypervisor: Be sure to set __XEN_INTERFACE_VERSION__
Julien Grall [Tue, 14 Jan 2014 01:41:06 +0000 (01:41 +0000)]
xen/hypervisor: Be sure to set __XEN_INTERFACE_VERSION__

On some headers xen-os.h is not included. Xen headers will define
__XEN_INTERFACE_VERSION__ to 0. This will result to use the wrong interface
version.

10 years agoxen/control: xctlr_probe shoud return BUS_PROBE_NOWILDCARD
Julien Grall [Tue, 14 Jan 2014 01:41:14 +0000 (01:41 +0000)]
xen/control: xctlr_probe shoud return BUS_PROBE_NOWILDCARD

Returning 0 in probe callback means: the driver can use this device. If by any
chance xencontrol is the first driver, every new device (which driver unset)
will use xencontrol.

10 years agoxen/xenstore: xs_probe should return BUS_PROBE_NOWILDCARD
Julien Grall [Tue, 14 Jan 2014 01:41:08 +0000 (01:41 +0000)]
xen/xenstore: xs_probe should return BUS_PROBE_NOWILDCARD

Returning 0 in probe callback means: the driver can use this device. If by any
chance xenstore is the first driver, every new device (which driver unset) will
use xenstore.

10 years agoxen/console: clean up identify callback
Julien Grall [Tue, 14 Jan 2014 01:41:16 +0000 (01:41 +0000)]
xen/console: clean up identify callback

10 years agoxen/console: Fix build when DDB is enabled
Julien Grall [Tue, 14 Jan 2014 01:41:16 +0000 (01:41 +0000)]
xen/console: Fix build when DDB is enabled

db_active doesn't exist anymore. The code needs to use kdb_active/gdb_active.

For now only use kdb_active and add the corresponding guards.

10 years agoxen/blkback: Fix string format when XBB_DEBUG is enabled
Julien Grall [Sat, 7 Jun 2014 21:50:31 +0000 (22:50 +0100)]
xen/blkback: Fix string format when XBB_DEBUG is enabled

host_addr is typed uint64_t, therefore we should use PRIx64 to print correctly
the value on every architecture.

10 years agoxen/timer: Make xen timer optional
Julien Grall [Tue, 14 Jan 2014 01:41:14 +0000 (01:41 +0000)]
xen/timer: Make xen timer optional

The timer is not used on ARM.

10 years agoxen/hypercall: Allow HYPERVISOR_console_write to take a const string
Julien Grall [Tue, 14 Jan 2014 01:41:18 +0000 (01:41 +0000)]
xen/hypercall: Allow HYPERVISOR_console_write to take a const string

The hypercall console write won't modify the string. It's safe to put a const
here.

10 years agoxen: Remove duplicate features.h header in i386 arch
Julien Grall [Tue, 14 Jan 2014 01:41:13 +0000 (01:41 +0000)]
xen: Remove duplicate features.h header in i386 arch

10 years agoxen: xen_start_info don't need to be export in common code
Julien Grall [Sun, 1 Jun 2014 18:15:40 +0000 (19:15 +0100)]
xen: xen_start_info don't need to be export in common code

HYPERVISOR_start_info has been introduce to be used in code common. The
variable xen_start_info is only used within amd64 and i386 architecture and
is redundant with the former variable.

10 years agoxen: Define xen_intr_handle_upcall in common headers
Julien Grall [Tue, 14 Jan 2014 01:41:18 +0000 (01:41 +0000)]
xen: Define xen_intr_handle_upcall in common headers

The function xen_intr_handle_upcall is used on every architecture supported
by Xen. It's pointless to define on every platform...

10 years agoxen/netfront: Add 2 bytes padding in the rx mbuf
Julien Grall [Wed, 4 Jun 2014 21:13:20 +0000 (22:13 +0100)]
xen/netfront: Add 2 bytes padding in the rx mbuf

The ethernet header size is not word aligned. Therefore the IP packet and so
on won't be align. On some architecture (such as ARM) unaligned access may
be slower and/or defined. Therefore we might reveice an alignement fault.
To void this case, we need to pull-up the data of ETHER_ALIGN bytes.

I'm not sure how this patch will impact x86, we need to do some benchmarking
without and with it.

I'mi also not sure m_copyup is the right function to any. Can any expert to the
network stack can tell me if there is a better solution?

10 years agoxen/blkfront: WRITE_BARRIER and FLUSH_DISKCACHE require barrier
Julien Grall [Sun, 1 Jun 2014 23:17:58 +0000 (00:17 +0100)]
xen/blkfront: WRITE_BARRIER and FLUSH_DISKCACHE require barrier

For WRITE_BARRIER and FLUSH_DISKCACHE operation, we don't request any cache
operation. This will result to a panic in _bus_dmamap_sync on ARM because the
operation (op = 0) is not supported.

x86 platform doesn't seem to care about this. I bet this is working fine
because only we only grant memory to the backend. Hence Xen is requiring this
memory to be cacheable. I'm wondering if we could drop the call to
bus_dmasync_map because the cache maintenance slow down the process for no
apparent reason?

For now, WRITE_BARRIER and FLUSH_DISKCACHE are an extension of the WRITE
command so require BUS_DMASYNC_PREWRITE for the cache maintenance operation.

10 years agoHACK: allow proper poweroff when running as Dom0
Roger Pau Monne [Tue, 23 Sep 2014 17:02:33 +0000 (19:02 +0200)]
HACK: allow proper poweroff when running as Dom0

10 years agoxenpv: use memory above the MMIO region
Roger Pau Monne [Tue, 23 Sep 2014 16:56:48 +0000 (18:56 +0200)]
xenpv: use memory above the MMIO region

Using memory below 4GB might cause problems with MMIO regions from physical
devices. In order to prevent that, always use memory from above the MMIO
hole for devices that hang off the xenpv bus.

Sponsored by: Citrix Systems R&D

10 years agoxen/intr: balance dinamic interrupts across available vCPUs
Roger Pau Monne [Tue, 21 Oct 2014 15:00:57 +0000 (17:00 +0200)]
xen/intr: balance dinamic interrupts across available vCPUs

By default Xen binds all event channels to vCPU#0, and FreeBSD only shuffles
the interrupt sources once, at the end of the boot process. Since new event
channels might be created after this point (because new devices or backends
are added), try to automatically shuffle them at creation time.

This does not affect VIRQ or IPI event channels, that are already bound to a
specific vCPU as requested by the caller.

Sponsored by: Citrix Systems R&D

10 years agoMerge r280761 from HEAD: Remove ALPHA leftover
emaste [Fri, 27 Mar 2015 14:40:58 +0000 (14:40 +0000)]
Merge r280761 from HEAD: Remove ALPHA leftover

10 years agoMerge r281221 and r281223 from HEAD
emaste [Tue, 7 Apr 2015 19:28:53 +0000 (19:28 +0000)]
Merge r281221 and r281223 from HEAD

compiler-rt: add floatditf and floatunditf
compiler-rt: Implement multc3 - quad-precision complex multiplication

Makefile reverted to version in HEAD.

10 years agoSupport pmap_page_exists_quick
Andrew Turner [Tue, 24 Mar 2015 17:19:57 +0000 (17:19 +0000)]
Support pmap_page_exists_quick

As we don't support superpages we only need the first loop.

10 years agoRevert aarch64 xlint targparam.h to version from HEAD
Ed Maste [Tue, 24 Mar 2015 20:14:45 +0000 (16:14 -0400)]
Revert aarch64 xlint targparam.h to version from HEAD

10 years agoUpdate the copyright on this, it's been rewritten
Andrew Turner [Mon, 23 Mar 2015 11:58:07 +0000 (11:58 +0000)]
Update the copyright on this, it's been rewritten

10 years agoRenumber license clauses to avoid missing 3
Ed Maste [Fri, 13 Mar 2015 02:42:48 +0000 (22:42 -0400)]
Renumber license clauses to avoid missing 3

10 years agoDisable EARLY_PRINTF, it's no longer needed
Andrew Turner [Tue, 24 Mar 2015 13:35:15 +0000 (13:35 +0000)]
Disable EARLY_PRINTF, it's no longer needed

10 years agoDisable the MMU when we enter the kernel.
Andrew Turner [Mon, 23 Mar 2015 15:11:56 +0000 (15:11 +0000)]
Disable the MMU when we enter the kernel.

It may have been left enabled by the firmware.

10 years agoCatch up with the new openssl config options
Andrew Turner [Tue, 24 Mar 2015 13:23:24 +0000 (13:23 +0000)]
Catch up with the new openssl config options

10 years agoMerge branch 'upstream_head' into arm64-merge
Andrew Turner [Tue, 24 Mar 2015 11:56:42 +0000 (11:56 +0000)]
Merge branch 'upstream_head' into arm64-merge

10 years agoMove etc.arm64 to etc.aarch64
Andrew Turner [Mon, 23 Mar 2015 15:46:12 +0000 (15:46 +0000)]
Move etc.arm64 to etc.aarch64

10 years agoRe-sort architecture .ifs
Ed Maste [Wed, 18 Mar 2015 13:38:01 +0000 (09:38 -0400)]
Re-sort architecture .ifs

10 years agoMove amd64 targparam.h to aarch64
Ed Maste [Mon, 23 Mar 2015 18:40:23 +0000 (14:40 -0400)]
Move amd64 targparam.h to aarch64

This has already been committed to HEAD as aarch64/targparam.h. Move our
copy in advance of the next merge.

10 years agoRename additional arm64 userland directories to aarch64
Ed Maste [Mon, 23 Mar 2015 18:39:06 +0000 (14:39 -0400)]
Rename additional arm64 userland directories to aarch64

10 years agosfxge: cleanup: fix index variable type to match upper boundary type
arybchik [Tue, 24 Mar 2015 11:33:34 +0000 (11:33 +0000)]
sfxge: cleanup: fix index variable type to match upper boundary type

Sponsored by:   Solarflare Communications, Inc.

10 years agosfxge: cleanup: add a blank line before each #if to improve readability
arybchik [Tue, 24 Mar 2015 11:25:19 +0000 (11:25 +0000)]
sfxge: cleanup: add a blank line before each #if to improve readability

Sponsored by:   Solarflare Communications, Inc.

10 years agosfxge: cleanup: remove trailing whitespaces
arybchik [Tue, 24 Mar 2015 11:22:12 +0000 (11:22 +0000)]
sfxge: cleanup: remove trailing whitespaces

Sponsored by:   Solarflare Communications, Inc.

10 years agoMake ix_crcstrip a public symbol for the moment; it probably is not
bz [Tue, 24 Mar 2015 09:46:47 +0000 (09:46 +0000)]
Make ix_crcstrip a public symbol for the moment;  it probably is not
the right solution but I will leave it to experts to untangle this
problem to properly stop the build failures.

At the moment only if_ix.c includes dev/netmap/ixgbe_netmap.h which is
good as ixgbe_netmap.h defines a couple of (file) static variables--thus
local to if_ix.c.
static int ix_crcstrip however now also got checked from ix_txrx.c
(as an extern) and should not be visible there.  In fact we do see
powerpc and powerpc64 build failures because of this.  It is unclear
to me why on other (clang built?) architectures this does not lead
to a reference of an undefined symbol and similar build breakage.

10 years agoUse the feedback value from the synchronization endpoint as fallback
hselasky [Tue, 24 Mar 2015 09:21:53 +0000 (09:21 +0000)]
Use the feedback value from the synchronization endpoint as fallback
when there is no recording channel.

MFC after: 3 days
PR:  198444

10 years agoMFV of 280411,tzdata{2015b}
edwin [Tue, 24 Mar 2015 05:52:28 +0000 (05:52 +0000)]
MFV of 280411,tzdata{2015b}

Release 2015b - 2015-03-19 23:28:11 -0700

  Changes affecting future time stamps

    Mongolia will start observing DST again this year, from the last
    Saturday in March at 02:00 to the last Saturday in September at 00:00.
    (Thanks to Ganbold Tsagaankhuu.)

    Palestine will start DST on March 28, not March 27.  Also,
    correct the fall 2014 transition from September 26 to October 24.
    Adjust future predictions accordingly.  (Thanks to Steffen Thorsen.)

  Changes affecting past time stamps

    The 1982 zone shift in Pacific/Easter has been corrected, fixing a 2015a
    regression.  (Thanks to Stuart Bishop for reporting the problem.)

    Some more zones have been turned into links, when they differed
    from existing zones only for older time stamps.  As usual,
    these changes affect UTC offsets in pre-1970 time stamps only.
    Their old contents have been moved to the 'backzone' file.
    The affected zones are: America/Antigua, America/Cayman,
    Pacific/Midway, and Pacific/Saipan.

  Changes affecting time zone abbreviations

    Correct the 1992-2010 DST abbreviation in Volgograd from "MSK" to "MSD".
    (Thanks to Hank W.)

10 years agoDisable coredump_devctl because it could lead to leaking paths to
rpaulo [Tue, 24 Mar 2015 02:17:17 +0000 (02:17 +0000)]
Disable coredump_devctl because it could lead to leaking paths to
jails.

10 years agofiledesc: microoptimize fget_unlocked by getting rid of fd < 0 branch
mjg [Tue, 24 Mar 2015 00:10:11 +0000 (00:10 +0000)]
filedesc: microoptimize fget_unlocked by getting rid of fd < 0 branch

Casting fd to an unsigned type simplifies fd range coparison to mere checking
if the result is bigger than the table.

10 years agoWhen an ICMP message is received and the MTU shrinks, only
tuexen [Mon, 23 Mar 2015 23:34:21 +0000 (23:34 +0000)]
When an ICMP message is received and the MTU shrinks, only
mark outstanding chunks for retransmissions.

MFC after: 3 days

10 years agocxgbe(4): Do not call sbuf_trim on an sbuf with a drain function.
np [Mon, 23 Mar 2015 23:06:32 +0000 (23:06 +0000)]
cxgbe(4): Do not call sbuf_trim on an sbuf with a drain function.

MFC after: 1 week

10 years agoDo not save/restore the TLS pointer on context switch for armv6. The
ian [Mon, 23 Mar 2015 22:42:42 +0000 (22:42 +0000)]
Do not save/restore the TLS pointer on context switch for armv6.  The
pointer cannot be changed directly by userland code on armv6 (it can be on
armv4), so there's no need to save/restore.

Submitted by: Michal Meloun

10 years agoAdd llvm patch corresponding to r280400.
dim [Mon, 23 Mar 2015 21:15:07 +0000 (21:15 +0000)]
Add llvm patch corresponding to r280400.

10 years agoPull in r230348 from upstream llvm trunk (by Tim Northover):
dim [Mon, 23 Mar 2015 21:13:29 +0000 (21:13 +0000)]
Pull in r230348 from upstream llvm trunk (by Tim Northover):

  ARM: treat [N x i32] and [N x i64] as AAPCS composite types

  The logic is almost there already, with our special homogeneous
  aggregate handling. Tweaking it like this allows front-ends to emit
  AAPCS compliant code without ever having to count registers or add
  discarded padding arguments.

  Only arrays of i32 and i64 are needed to model AAPCS rules, but I
  decided to apply the logic to all integer arrays for more consistency.

This fixes a possible "Unexpected member type for HA" error when
compiling lib/msun/bsdsrc/b_tgamma.c for armv6.

Reported by: Jakub Palider <jpa@semihalf.com>

10 years agoReduce priority of ATA/SATA drivers.
mav [Mon, 23 Mar 2015 19:47:52 +0000 (19:47 +0000)]
Reduce priority of ATA/SATA drivers.

Legacy ata(4) -> BUS_PROBE_LOW_PRIORITY;  more functional ahci(4), siis(4),
mvs(4) -> BUS_PROBE_DEFAULT;  BUS_PROBE_VENDOR leave for vendor drivers.

MFC after: 2 weeks

10 years agoBe consistent with M_ZERO when allocating ccbs.
benno [Mon, 23 Mar 2015 18:45:37 +0000 (18:45 +0000)]
Be consistent with M_ZERO when allocating ccbs.

There are four places, all in cam_xpt.c, where ccbs are malloc'ed. Two of
these use M_ZERO, two don't. The two that don't meant that allocated ccbs
had trash in them making it hard to debug errors where they showed up. Due
to this, use M_ZERO all the time when allocating ccbs.

Submitted by: Scott Ferris <scott.ferris@isilon.com>
Sponsored by: EMC/Isilon Storage Division
Reviewed by: scottl, imp
Differential: https://reviews.freebsd.org/D2120

10 years agoxlint: update.
pfg [Mon, 23 Mar 2015 18:45:29 +0000 (18:45 +0000)]
xlint: update.

Bring some important updates from NetBSD up to about 2008/04/25.
The main feature is initial support for C99.

This is a very basic update to make it easier to merge new
compiler attirbutes but more updates are likely to follow.

Obtained from: NetBSD
MFC after: 2 weeks

10 years agoRename arm64 directories to aarch64
Andrew Turner [Mon, 23 Mar 2015 17:23:53 +0000 (17:23 +0000)]
Rename arm64 directories to aarch64

For when we reference them by TARGET_CPUARCH.

10 years agocp,mv: Use futimens() instead of utimensat() if possible.
jilles [Mon, 23 Mar 2015 17:35:05 +0000 (17:35 +0000)]
cp,mv: Use futimens() instead of utimensat() if possible.

10 years agoAdd missing variables password/bootlock_password.
dteske [Mon, 23 Mar 2015 17:31:22 +0000 (17:31 +0000)]
Add missing variables password/bootlock_password.
NB: Using NULL for default values in-case someone
or something uncomments it and reboots. See
check-password.4th(8) for additional details.

MFC after: 3 days
X-MFC-to: stable/10 stable/9