]> xenbits.xensource.com Git - people/julieng/freebsd.git/log
people/julieng/freebsd.git
9 years agoreturn + if dev-console
Julien Grall [Sat, 3 Oct 2015 20:33:48 +0000 (21:33 +0100)]
return + if

9 years agoops + initialization
Julien Grall [Sat, 3 Oct 2015 20:11:41 +0000 (21:11 +0100)]
ops + initialization

9 years agolock
Julien Grall [Sat, 3 Oct 2015 18:45:42 +0000 (19:45 +0100)]
lock

9 years agoxencons lock
Julien Grall [Sat, 3 Oct 2015 18:27:39 +0000 (19:27 +0100)]
xencons lock

9 years agoStart to update
Julien Grall [Sat, 3 Oct 2015 17:57:51 +0000 (18:57 +0100)]
Start to update

9 years agoxen/console: Add support for HVM and ARM console
Julien Grall [Sat, 19 Sep 2015 17:15:40 +0000 (18:15 +0100)]
xen/console: Add support for HVM and ARM console

9 years agoAarch64
Julien Grall [Sat, 29 Aug 2015 21:22:23 +0000 (22:22 +0100)]
Aarch64

9 years agoRevert "arm64: WORKAROUND: boot in single user mode"
Julien Grall [Sat, 29 Aug 2015 20:52:55 +0000 (21:52 +0100)]
Revert "arm64: WORKAROUND: boot in single user mode"

This reverts commit 97a8273956347c73c65ad68dcbdc781ae7b3def7.

9 years agodebug: Fix build
Julien Grall [Sat, 1 Aug 2015 16:45:06 +0000 (17:45 +0100)]
debug: Fix build

9 years agoevent: Fix build
Julien Grall [Sat, 1 Aug 2015 16:44:49 +0000 (17:44 +0100)]
event: Fix build

9 years agoarm64: WORKAROUND: boot in single user mode
Julien Grall [Tue, 2 Jun 2015 15:21:06 +0000 (16:21 +0100)]
arm64: WORKAROUND: boot in single user mode

9 years agoRevert "arm64: Embbed the rootfs for now"
Julien Grall [Sat, 30 May 2015 20:32:11 +0000 (21:32 +0100)]
Revert "arm64: Embbed the rootfs for now"

This reverts commit adbe11eedcfedac7dd473a028b23096e026fc4bd.

9 years agoarm64: Embbed the rootfs for now
Julien Grall [Mon, 30 Mar 2015 15:12:45 +0000 (16:12 +0100)]
arm64: Embbed the rootfs for now

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

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

9 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

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

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

9 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

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

9 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

9 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

9 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

9 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

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

9 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?

9 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

9 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

9 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

9 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

9 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.

9 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.

9 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).

9 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>
9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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.

9 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

9 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

9 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.

9 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.

9 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

9 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

9 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

9 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

9 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

9 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.

9 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.

9 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.

9 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.

9 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.

9 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.

9 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...

9 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?

9 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.

9 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

9 years agoxen/console: Build the new console driver and drop the old one
Julien Grall [Sun, 20 Sep 2015 11:08:27 +0000 (12:08 +0100)]
xen/console: Build the new console driver and drop the old one

9 years agoxen/console: Introduce a new console driver for Xen guest
Julien Grall [Sun, 20 Sep 2015 10:49:15 +0000 (11:49 +0100)]
xen/console: Introduce a new console driver for Xen guest

The current Xen console driver is crashing very quickly when using it on ARM
guest. This is because of the console lock is recursive which may lead to
recurse on the tty lock and/or corrupt the ring pointer.

Furthermore, the console lock is not always taken where it should be and has
to be released too early because of the way the console has been designed.

Over the year, code has been added to support various new feature but the
driver has not been reworked. This brings to have code related to the
hypervisor console in ring specific function...

This new driver has been rewritten with this idea to only
have a small set of specific function to write either via the ring or the
hypercall.

Note that HVM support has been left aside for now because it requires external
feature to be used on ARM which are not yet upstreamed. A follow-up patch will
be sent with the ARM guest support.

This new console driver will be added in the build in the following patch.. It
has been divided to help reviewing.

List of items that may be good to have but not mandatory:
- Avoid to flush for each character written when using the tty.
- Use a ops structure to distinguish hypervisor vs ring helpers
- Support multiple console

9 years agoxen/hypercall: Allow HYPERVISOR_console_write to take a const string
Julien Grall [Sun, 20 Sep 2015 10:47:06 +0000 (11:47 +0100)]
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.

9 years agoAdd IFCAP_LINKSTATE support.
hrs [Sat, 3 Oct 2015 09:15:23 +0000 (09:15 +0000)]
Add IFCAP_LINKSTATE support.

9 years agoRemove beacon offsets usage from if_rum.
adrian [Sat, 3 Oct 2015 06:35:17 +0000 (06:35 +0000)]
Remove beacon offsets usage from if_rum.

Differential Revision: https://reviews.freebsd.org/D3658

9 years agourtwn(4): fix sequence numbering for QoS frames
adrian [Sat, 3 Oct 2015 06:07:01 +0000 (06:07 +0000)]
urtwn(4): fix sequence numbering for QoS frames

Tested:

* urtwn0: MAC/BB RTL8188EU, RF 6052 1T1R, STA mode

Submitted by: <s3erios@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3684

9 years agoural(4): reduce copy-paste in ural_newstate().
adrian [Sat, 3 Oct 2015 05:55:16 +0000 (05:55 +0000)]
ural(4): reduce copy-paste in ural_newstate().

Submitted by: <s3erios@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3656

9 years agorum(4): add command queue for running sleepable tasks in non-sleepable contexts
adrian [Sat, 3 Oct 2015 05:46:35 +0000 (05:46 +0000)]
rum(4): add command queue for running sleepable tasks in non-sleepable contexts

Tested:

* Tested on WUSB54GC, STA mode.
* rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528

Submitted by: <s3erios@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3629

9 years agorum(4): some non-functional changes / cleanup
adrian [Sat, 3 Oct 2015 05:44:05 +0000 (05:44 +0000)]
rum(4): some non-functional changes / cleanup

* Remove unused sc_txtap_len/sc_rxtap_len fields.
* Remove unused ackrate variable.
* Remove unneded warning in rum_update_mcast().
* Use nitems().
* Replace some hardcoded values for RT2573_MAC_CSR1 register.
* Remove second argument for RUM_LOCK_ASSERT() - it is always the same.

Submitted by: <s3erios@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3605

9 years agoBump number of prefixes in O_IP_<SRC|DST> from 15 to 31 (max possible).
melifaro [Sat, 3 Oct 2015 05:42:25 +0000 (05:42 +0000)]
Bump number of prefixes in O_IP_<SRC|DST> from 15 to 31 (max possible).

PR: 203459
Submitted by: groos at xiplink.com
MFC after: 2 weeks

9 years agoAlways detach encap handler when reconfiguring tunnel.
ae [Sat, 3 Oct 2015 03:57:58 +0000 (03:57 +0000)]
Always detach encap handler when reconfiguring tunnel.

Reported by: hrs
MFC after: 1 week

9 years agoFix possible segmentation fault.
ae [Sat, 3 Oct 2015 03:12:57 +0000 (03:12 +0000)]
Fix possible segmentation fault.

PR: 203494
MFC after: 1 week

9 years agonet80211: add a possibility to retrieve current TX key without encapsulation.
adrian [Sat, 3 Oct 2015 00:57:33 +0000 (00:57 +0000)]
net80211: add a possibility to retrieve current TX key without encapsulation.

Submitted by: <s3erios@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3639

9 years agonet80211: add new method for ieee80211_cipher (ic_setiv).
adrian [Sat, 3 Oct 2015 00:50:13 +0000 (00:50 +0000)]
net80211: add new method for ieee80211_cipher (ic_setiv).

This can be used to update IV state for the caller without adding
information to the mbuf.  Some hardware (eg rum) apparently requires
bits of this.

Submitted by: <s3erios@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3638

9 years agonet80211: get rid of tx_phase1_done flag (ieee80211_crypto_tkip.c).
adrian [Sat, 3 Oct 2015 00:03:07 +0000 (00:03 +0000)]
net80211: get rid of tx_phase1_done flag (ieee80211_crypto_tkip.c).

Submitted by: <s3erios@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3596

9 years agoFix post-test typo that snuck in.
grehan [Fri, 2 Oct 2015 22:05:51 +0000 (22:05 +0000)]
Fix post-test typo that snuck in.

9 years agonet80211: separate ieee80211_crypto_get_keyid() from ieee80211_crypto_encap()
adrian [Fri, 2 Oct 2015 21:25:48 +0000 (21:25 +0000)]
net80211: separate ieee80211_crypto_get_keyid() from ieee80211_crypto_encap()

Tested:

* rum(4), STA mode
* rsu(4), STA mode
* urtwn(4), STA mode

Submitted by: <s3erios@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3637

9 years agoSimple sysctl-like firmware query interface. Similar in operation
grehan [Fri, 2 Oct 2015 21:09:49 +0000 (21:09 +0000)]
Simple sysctl-like firmware query interface. Similar in operation
to the qemu one, and uses the same i/o ports but with different
messaging. Requires the 'bootrom' option to be enabled.

This is used by UEFI (and potentially other BIOSs/firmware) to
request information from bhyve. Currently, only the number of
vCPUs is made available, with more to follow.

A very large thankyou to Ben Perrault who helped out testing
an earlier version of this, and bhyve/Windows in general.

Reviewed by: tychon
Discussed with: neel
Sponsored by: Nahanni Systems

9 years agoAll the games moved to usr.bin/ in r288485.
bdrewery [Fri, 2 Oct 2015 17:58:16 +0000 (17:58 +0000)]
All the games moved to usr.bin/ in r288485.

Sponsored by: EMC / Isilon Storage Division

9 years agoRemove defunct games removed in r279150.
bdrewery [Fri, 2 Oct 2015 17:54:05 +0000 (17:54 +0000)]
Remove defunct games removed in r279150.

Sponsored by: EMC / Isilon Storage Division

9 years ago/usr/src/games was removed in r288485.
bdrewery [Fri, 2 Oct 2015 17:51:47 +0000 (17:51 +0000)]
/usr/src/games was removed in r288485.

9 years agoFix a regression with SA-15:24 patch that prevented NIS from
delphij [Fri, 2 Oct 2015 16:35:41 +0000 (16:35 +0000)]
Fix a regression with SA-15:24 patch that prevented NIS from
working.

9 years agorum(4): sync rum_enable_tsf(_sync) with run(4).
adrian [Fri, 2 Oct 2015 15:30:37 +0000 (15:30 +0000)]
rum(4): sync rum_enable_tsf(_sync) with run(4).

Submitted by: <s3erios@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3611

9 years agorum(4): create few wrappers.
adrian [Fri, 2 Oct 2015 15:28:44 +0000 (15:28 +0000)]
rum(4): create few wrappers.

Tested:

rum0: <Belkin Belkin 54g USB Network Adapter, class 0/0, rev 2.00/0.01, addr 22> on usbus0
rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528

Submitted by: <s3erios@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3609

9 years agorum(4): move common part of rum_bbp_write() and rum_bbp_read() into rum_bbp_busy().
adrian [Fri, 2 Oct 2015 15:26:33 +0000 (15:26 +0000)]
rum(4): move common part of rum_bbp_write() and rum_bbp_read() into rum_bbp_busy().

Submitted by: <s3erios@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3608

9 years agorum(4): reduce code duplication.
adrian [Fri, 2 Oct 2015 15:22:00 +0000 (15:22 +0000)]
rum(4): reduce code duplication.

Tested:

rum0: <Belkin Belkin 54g USB Network Adapter, class 0/0, rev 2.00/0.01, addr 21> on usbus0
rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528

Submitted by: <s3erios@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3606

9 years agoAdd aarch64 support to truss(1).
kib [Fri, 2 Oct 2015 13:30:56 +0000 (13:30 +0000)]
Add aarch64 support to truss(1).

Reviewed by: jhb
Discussed with: emaste (license)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D3750

9 years agoDo not set 'flush to zero' VFPSCR_FZ bit by default. The correct
kib [Fri, 2 Oct 2015 13:25:59 +0000 (13:25 +0000)]
Do not set 'flush to zero' VFPSCR_FZ bit by default.  The correct
implementation of IEEE 754 arithmetic depends on denormals operating
correctly.  Both perl test suite and paranoia tripped over the
setting.

Reported by: Stefan Parvu <sparvu@kronometrix.org>
Discussed with: andrew
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

9 years agoFreeBSD does not support SMP on ARMv5. Since processor is always
kib [Fri, 2 Oct 2015 13:21:08 +0000 (13:21 +0000)]
FreeBSD does not support SMP on ARMv5.  Since processor is always
self-consistent, there is no need in anything but compiler barrier in
the implementation of atomic_thread_fence_*() on ARMv5.  Split
implementation of fences for ARMv4/5 and ARMv6; the former use
compiler barriers, the later also perform hardware barriers.

An issue which is fixed by the change is the faults from the CP15
coprocessor accesses in the user mode.  This was uncovered by the
pthread_once() changes in r287556.

Reported by: Mattia Rossi <mattia.rossi.mailinglists@gmail.com>
Discussed with: alc, cognet, jhb
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

9 years agoAdd debug file extension to kldxref(8) after r288176
emaste [Fri, 2 Oct 2015 13:16:06 +0000 (13:16 +0000)]
Add debug file extension to kldxref(8) after r288176

After r288176 kernel debug files have the extension .debug.  They also
moved to /usr/lib/debug/boot/kernel by default so in the normal case
kldxref does not encounter them.  A src.conf(5) setting may be used to
continue installing them in /boot/kernel though, so have kldxref skip
.debug files in addition to .symbols files.

Reported by: fabient
Sponsored by: The FreeBSD Foundation

9 years agoDocument CD block size of 2048.
mav [Fri, 2 Oct 2015 11:27:34 +0000 (11:27 +0000)]
Document CD block size of 2048.

9 years agoMake truss print CloudABI system call names.
ed [Fri, 2 Oct 2015 11:17:15 +0000 (11:17 +0000)]
Make truss print CloudABI system call names.

This change adds the bits that are necessary to fetch system call
arguments and return values from trapframes for CloudABI. This allows us
to properly print system calls with the right name. We need to make sure
that we properly convert error numbers when system calls fail.

We still need to improve truss to pretty-print some of the system calls
that have flags.

9 years agoSet default block size for CD to expected 2048 bytes.
mav [Fri, 2 Oct 2015 11:16:46 +0000 (11:16 +0000)]
Set default block size for CD to expected 2048 bytes.

9 years agoFinal step of eliminating the "games" distribution: Merge src/games
cperciva [Fri, 2 Oct 2015 10:08:11 +0000 (10:08 +0000)]
Final step of eliminating the "games" distribution: Merge src/games
(or what's left of it, at least) into src/usr.bin.

This change will not be MFCed.

Discussed at:   EuroBSDCon 2014
Committed from: EuroBSDCon 2015

9 years agoFail the sbuf if vsnprintf(3) fails.
phk [Fri, 2 Oct 2015 09:23:14 +0000 (09:23 +0000)]
Fail the sbuf if vsnprintf(3) fails.

9 years agoThe rpc.yppasswdd has an option to not allow shell changes (-s), but is
araujo [Fri, 2 Oct 2015 08:58:50 +0000 (08:58 +0000)]
The rpc.yppasswdd has an option to not allow shell changes (-s), but is
always passed a shell by the remote yppasswd. If an NIS client overrides the
shell provided by the ypserv, then yppasswd (pam_unix, actually, afaict)
will pass this new shell to the yppasswdd. If this shell has been set on the
client to a shell which is invalid on the server, a user will never be able
to change their password on the client.

PR: 67142
Submitted by: russell@rucus.ru.ac.za
Approved by: bapt (mentor)
Sponsored by: EuroBSDCon Sweden.

9 years agoMETA_MODE: For some reason meta mode cannot generate the intermediate tab.c
bdrewery [Fri, 2 Oct 2015 07:00:43 +0000 (07:00 +0000)]
META_MODE: For some reason meta mode cannot generate the intermediate tab.c
files.  Split up all of the targets to be more clear on how they are generated
to fix the problem.

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division