]> xenbits.xensource.com Git - people/julieng/freebsd.git/log
people/julieng/freebsd.git
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

10 years agoIncrease max input for password/bootlock_password from 16 to 255.
dteske [Mon, 23 Mar 2015 16:43:46 +0000 (16:43 +0000)]
Increase max input for password/bootlock_password from 16 to 255.
When taking user input, don't show asterisks as the user types
but instead spin a twiddle. Implement Ctrl-U to clear user input.
If the buffer is empty, either because the user has yet to type
anything, presses Ctrl-U at any time, or presses backspace enough
to end in an empty buffer, the twiddle is erased to provide feed-
back to the user.

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

10 years agoPrevent password/bootlock_password features of loader.conf(5) from
dteske [Mon, 23 Mar 2015 16:31:27 +0000 (16:31 +0000)]
Prevent password/bootlock_password features of loader.conf(5) from
locking out everyone in the case of setting a password longer than
the maximum (currently 16 characters). Now the required password is
truncated to the maximum input that can be read from the user.

PR: kern/198760
MFC after: 3 days
MFH: stable/10 stable/9

10 years agoFix sgetkey indentation to be consistent with the rest of the file.
dteske [Mon, 23 Mar 2015 16:22:56 +0000 (16:22 +0000)]
Fix sgetkey indentation to be consistent with the rest of the file.
Remove some blank lines, adjust some comments and update copyright.

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

10 years agoRenumber clauses to avoid missing 3
emaste [Mon, 23 Mar 2015 16:04:04 +0000 (16:04 +0000)]
Renumber clauses to avoid missing 3

10 years agosfxge: remove unnecessary and wrong prediction
arybchik [Mon, 23 Mar 2015 15:53:26 +0000 (15:53 +0000)]
sfxge: remove unnecessary and wrong prediction

Sponsored by:   Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D2085

10 years agosfxge: do not check MCDI status word
arybchik [Mon, 23 Mar 2015 15:52:57 +0000 (15:52 +0000)]
sfxge: do not check MCDI status word

This is a temporary workaround until we determine a reliable sequence
of operations for detecting MC reboots.

Sponsored by:   Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D2084

10 years agosfxge: FreeBSD before 10 does not have bus_space_*_8 on amd64
arybchik [Mon, 23 Mar 2015 15:52:05 +0000 (15:52 +0000)]
sfxge: FreeBSD before 10 does not have bus_space_*_8 on amd64

bus_space_*_8() are not always macros, so it is not correct to use
#ifndef.

Sponsored by:   Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D2083

10 years agosfxge: add statistics for each Tx queue
arybchik [Mon, 23 Mar 2015 15:49:11 +0000 (15:49 +0000)]
sfxge: add statistics for each Tx queue

Sponsored by:   Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D2082

10 years agosfxge: remove obsolete Tx non-multi queue support
arybchik [Mon, 23 Mar 2015 15:47:37 +0000 (15:47 +0000)]
sfxge: remove obsolete Tx non-multi queue support

Tx multi queue is added in FreeBSD 8.0. So, the changeset drops earlier
versions support.

Sponsored by:   Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D2081

10 years agosfxge: add barriers to BAR write macros
arybchik [Mon, 23 Mar 2015 15:45:39 +0000 (15:45 +0000)]
sfxge: add barriers to BAR write macros

In theory the barriers are required to cope with write combining and
reordering. Two barriers are added (sometimes merged to one):
 1. Before the first write to guarantee that previous writes to the region
    have been done
 2. Before the last write to guarantee that write to the last dword/qword is
    done after previous writes
Barriers are inserted before in the assumption that it is better to
postpone barriers as much as it is possible (more chances that the
operation has already been already done and barrier does not stall CPU).

On x86 and amd64 bus space write barriers are just compiler memory barriers
which are definitely required.

Sponsored by:   Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D2077

10 years agosfxge: assert either kernel or internal copy of interface flags
arybchik [Mon, 23 Mar 2015 15:44:17 +0000 (15:44 +0000)]
sfxge: assert either kernel or internal copy of interface flags

ioctl to put interface down sets ifp->if_flags which holds the intended
administratively defined state and calls driver callback to apply it.
When everything is done, driver updates internal copy of
interface flags sc->if_flags which holds the operational state.
So, transmit from Rx path is possible when interface is intended to be
administratively down in accordance with ifp->if_flags, but not applied
yet and the operational state is up in accordance with sc->if_flags.

Sponsored by:   Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D2075

10 years agoRemove a useless assignment.
tuexen [Mon, 23 Mar 2015 15:12:02 +0000 (15:12 +0000)]
Remove a useless assignment.

MFC after: 1 week

10 years agoRemove an unneeded header
Andrew Turner [Mon, 23 Mar 2015 12:44:02 +0000 (12:44 +0000)]
Remove an unneeded header

10 years agoAdd the start of the arm64 machine headers. This is the subset needed to
andrew [Mon, 23 Mar 2015 11:54:56 +0000 (11:54 +0000)]
Add the start of the arm64 machine headers. This is the subset needed to
start getting userland libraries building.

Reviewed by: imp
Sponsored by: The FreeBSD Foundation

10 years agoBump mask to be 64 bits - this fixes seeing MCS rates > 19.
adrian [Mon, 23 Mar 2015 03:43:59 +0000 (03:43 +0000)]
Bump mask to be 64 bits - this fixes seeing MCS rates > 19.

Tested:

* AR9380, STA mode, associated to a 3x3 AP (also FreeBSD)

10 years agoDocument "none" for VersionAddendum.
bdrewery [Mon, 23 Mar 2015 02:45:12 +0000 (02:45 +0000)]
Document "none" for VersionAddendum.

PR: 193127
MFC after: 2 weeks

10 years agoSmall style(9) cleanup.
pfg [Sun, 22 Mar 2015 23:42:21 +0000 (23:42 +0000)]
Small style(9) cleanup.

Fix yet more issues, but certainly not all.

Pointed out by: bde

10 years agoBuild expr with -fwrapv, since it relies on signed integer wrapping
dim [Sun, 22 Mar 2015 22:40:32 +0000 (22:40 +0000)]
Build expr with -fwrapv, since it relies on signed integer wrapping
having defined behavior.

Reported by: rodrigc
MFC after: 3 days

10 years agoThe sysctls that return process argv and envv return binary data, so clear
ian [Sun, 22 Mar 2015 21:18:44 +0000 (21:18 +0000)]
The sysctls that return process argv and envv return binary data, so clear
the SBUF_INCLUDENUL flag.

Pointed out by:     tijl@

10 years agoFix typo in jail(8) man page
allanjude [Sun, 22 Mar 2015 20:38:28 +0000 (20:38 +0000)]
Fix typo in jail(8) man page

PR: 198790
Differential Revision: https://reviews.freebsd.org/D2111
Submitted by: Jimmy Olgeni
Approved by: wblock (mentor)
Sponsored by: ScaleEngine Inc.

10 years agoStop calling x86_efi_copyin and x86_efi_getdev directly. This is to help
andrew [Sun, 22 Mar 2015 18:17:55 +0000 (18:17 +0000)]
Stop calling x86_efi_copyin and x86_efi_getdev directly. This is to help
port loader.efi to both 32 and 64-bit ARM where we can use this file with
minimal changes.

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

10 years agoAdd FREEBSD-Xlist files for llvm, clang and lldb.
dim [Sun, 22 Mar 2015 17:56:49 +0000 (17:56 +0000)]
Add FREEBSD-Xlist files for llvm, clang and lldb.

These are generated, and not "optimized" in any way, since I am not
entirely sure of the syntax or format of this type of file.  Feel free
to suggest ways of shortening these lists.

The general idea is the same for all three files, though:
* Get rid of upstream build infrastructure (CMakeLists, Makefiles, etc)
* Delete tests, tools and utilities we don't want or use (including
  samples)
* Remove various bits of upstream metadata files that we don't want or
  use (.arcconfig, .gitignore, etc)

10 years agoInitialise the pps / packet tracking timestamp so 11n aggregation works again.
adrian [Sun, 22 Mar 2015 17:54:00 +0000 (17:54 +0000)]
Initialise the pps / packet tracking timestamp so 11n aggregation works again.

There's a bug in the ticks handling where when initialised at '0', once
the ticks counter wrapped the comparison math would never trigger.
The pps calculation would never happen, and thus aggregation was never
enabled.

It manifests itself as "oh you only get 11n transmit aggregation for the
first 10 minutes of uptime."

I'm sure there are other ticks related issues lurking in net80211.

Tested:

* ath / iwn, both with 'wlandebug +11n' and a little bit of iperf to
  kick off the transmit A-MPDU negotiation once the pps gets high enough.

10 years agoConvert savecore to libxo. The 'verbose' paths still use printf since they're
scottl [Sun, 22 Mar 2015 17:29:14 +0000 (17:29 +0000)]
Convert savecore to libxo.  The 'verbose' paths still use printf since they're
meant for interactivity on the command line and contain a lot of redundant
information.

Obtained from: Netflix, Inc.

10 years agoRemove MAXBSIZE use from drivers where it has nothing to do.
mav [Sun, 22 Mar 2015 16:10:28 +0000 (16:10 +0000)]
Remove MAXBSIZE use from drivers where it has nothing to do.

In some cases limits are just not needed, in others -- DFLTPHYS is the
right constant to use instead.

MFC after: 1 month

10 years agoSmall style(9) cleanup.
pfg [Sun, 22 Mar 2015 15:37:05 +0000 (15:37 +0000)]
Small style(9) cleanup.

#define should always be followed by a tab not space.

10 years agoFix for out of order device destruction notifications when using the
hselasky [Sun, 22 Mar 2015 13:11:56 +0000 (13:11 +0000)]
Fix for out of order device destruction notifications when using the
delist_dev() function. In addition to this change:
- add a proper description of this function
- add a proper witness assert inside this function
- switch a nearby line to use the "cdp" pointer instead of cdev2priv()

MFC after: 3 days

10 years agomsdosfs: mark unused compat-mount fields
kib [Sun, 22 Mar 2015 09:09:26 +0000 (09:09 +0000)]
msdosfs: mark unused compat-mount fields

The magic number MSDOSFS_ARGSMAGIC, which used to distinguish
"old" vs "new" msdosfs mount arguments, has not been used since
2005; it should just go away now.

Likewise, the local-to-Unicode table that changed at the same
time is unused.

Leave the space reserved in the old style mount arguments, though,
since we still support the old mount call (via the cmount entry
point).

Submitted by: Chris Torek <chris.torek@gmail.com>
MFC after: 2 weeks

10 years agoAdd initial D-Link DIR-655 (A1) support.
adrian [Sun, 22 Mar 2015 02:15:09 +0000 (02:15 +0000)]
Add initial D-Link DIR-655 (A1) support.

This is based on the AP135 design - QCA9558 SoC, 3x3 2GHz wifi, but no
5GHz (11n or 11ac) chip is available.

It however still has 128MiB of RAM, 16MiB of NOR flash and the AR8327N
gigabit switch - so it's quite a beefy router device.

Tested:

* Well, a unit, naturally

Obtained from: Completely messing up an amazon.com order and getting this instead, and asking "hey, wonder if I could.."