]> xenbits.xensource.com Git - people/julieng/freebsd.git/log
people/julieng/freebsd.git
9 years agoxen/console: Build the new console driver and drop the old one console-v1
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 agoImprove and expand sesutil(8)
allanjude [Sat, 19 Sep 2015 16:36:45 +0000 (16:36 +0000)]
Improve and expand sesutil(8)

- Return an error if no matching device is found when the locate command is run
- Enhance the locate command to be able to address drive bays with no disk, or where the SES controller has not made the mapping to the device name
- Added the fault command, similar to locate, but a different SES property. On some of my controllers locate blinks the activity light, others the fault light. The fault command keeps the fault light on constant.
- Improve the usage() output and use it everywhere
- Added the map command, displays all elements connected to each (or the specified) ses(4) controller
- Added the status command, returns the overall status of the ses(4) controller

Reviewed by: wblock (man page, earlier version)
Approved by: bapt (mentor)
MFC after: 3 weeks
Relnotes: yes
Sponsored by: ScaleEngine Inc.
Differential Revision: https://reviews.freebsd.org/D3580

9 years agoRestore man -t for manpages rendered by mandoc
bapt [Sat, 19 Sep 2015 16:00:50 +0000 (16:00 +0000)]
Restore man -t for manpages rendered by mandoc

Reported by: swills

9 years agoFix memory corruption when >128K transferred through HA link.
mav [Sat, 19 Sep 2015 13:12:09 +0000 (13:12 +0000)]
Fix memory corruption when >128K transferred through HA link.

While there, do some cleaning.

9 years agoCleanup nd6_cache_lladdr(). No functional changes.
melifaro [Sat, 19 Sep 2015 11:50:02 +0000 (11:50 +0000)]
Cleanup nd6_cache_lladdr(). No functional changes.

* Since new extries are now allocated explicitly, fill in
  all the necessary fields for lle _before_ attaching it to the table.
* Remove ND6_LLINFO_INCOMPLETE check which was unused even in
  first KAME merge (r53541).
* After that, the only new state that function can set, was
  ND6_LLINFO_STALE. Given everything above, simplify logic besides
  do_update and is_newentry.
* Fix nd_resolve() comment.

9 years agoReplace afterinstall: hack with FILES mechanism.
bdrewery [Sat, 19 Sep 2015 03:53:37 +0000 (03:53 +0000)]
Replace afterinstall: hack with FILES mechanism.

Sponsored by: EMC / Isilon Storage Division

9 years agoReplace afterinstall: hack from r54681 with 'make delete-old' functionality.
bdrewery [Sat, 19 Sep 2015 03:51:19 +0000 (03:51 +0000)]
Replace afterinstall: hack from r54681 with 'make delete-old' functionality.

Sponsored by: EMC / Isilon Storage Division

9 years agoReplace afterinstall: hack from r111083 with 'make delete-old' functionality.
bdrewery [Sat, 19 Sep 2015 03:46:10 +0000 (03:46 +0000)]
Replace afterinstall: hack from r111083 with 'make delete-old' functionality.

Sponsored by: EMC / Isilon Storage Division

9 years agoReplace beforeinstall: handling with FILES.
bdrewery [Fri, 18 Sep 2015 23:49:32 +0000 (23:49 +0000)]
Replace beforeinstall: handling with FILES.

This actually fixes some cases to respect LIBRARIES_ONLY.

Sponsored by: EMC / Isilon Storage Division

9 years agoRemove redundant beforeinstall.
bdrewery [Fri, 18 Sep 2015 23:34:47 +0000 (23:34 +0000)]
Remove redundant beforeinstall.

9 years agoFix LIBRARIES_ONLY
bdrewery [Fri, 18 Sep 2015 23:25:43 +0000 (23:25 +0000)]
Fix LIBRARIES_ONLY

It was erroring: make: don't know how to make _manpages. Stop

Sponsored by: EMC / Isilon Storage Division
MFC after: 1 week

9 years agoMETA_MODE: No need to fix the link in this case.
bdrewery [Fri, 18 Sep 2015 23:12:38 +0000 (23:12 +0000)]
META_MODE: No need to fix the link in this case.

The exists(${DESTDIR}...) check runs with DESTDIR being blank.  When the
target runs it does have DESTDIR=${STAGE_OBJTOP} via bsd.sys.mk.  This
results in the first execution warning that the symlink is missing.  The
second run does run fine.  However, this chflags is not needed at all
for META_MODE/STAGING since we never had this path being a schg file
while using META_MODE.

Sponsored by: EMC / Isilon Storage Division

9 years agoRemove rm -Rf beforeinstall hack that was needed due to a change that
bdrewery [Fri, 18 Sep 2015 22:55:18 +0000 (22:55 +0000)]
Remove rm -Rf beforeinstall hack that was needed due to a change that
only lasted 3 days in HEAD in 2001 (r88348 - r88459)

Sponsored by: EMC / Isilon Storage Division

9 years agoGarbage collect _SHLIBDIRPREFIX leftovers from r284898.
bdrewery [Fri, 18 Sep 2015 22:28:13 +0000 (22:28 +0000)]
Garbage collect _SHLIBDIRPREFIX leftovers from r284898.

Sponsored by: EMC / Isilon Storage Division

9 years agoRegenerate
bdrewery [Fri, 18 Sep 2015 22:26:25 +0000 (22:26 +0000)]
Regenerate

9 years agoDocument NO_DIRDEPS for META_MODE and give link to full details.
bdrewery [Fri, 18 Sep 2015 22:22:32 +0000 (22:22 +0000)]
Document NO_DIRDEPS for META_MODE and give link to full details.

9 years agoMETA_MODE: Avoid command changing in 2nd build.
bdrewery [Fri, 18 Sep 2015 21:36:29 +0000 (21:36 +0000)]
META_MODE: Avoid command changing in 2nd build.

If the command to be ran changes then a rebuild is caused. Checking
exists(${DESTDIR}...) from make results in this on the 2nd and
possibly subsequent builds due to staging during build.  Avoid this
by always running the existence check in the make sh command.

Sponsored by: EMC / Isilon Storage Division

9 years agoUse FILES for installing the dtrace scripts.
bdrewery [Fri, 18 Sep 2015 21:18:44 +0000 (21:18 +0000)]
Use FILES for installing the dtrace scripts.

The BSD.usr.dist mtree always creates /usr/lib/dtrace so there is no
need to check if it exists.

The FILES mechanism already supports LIBRARIES_ONLY.

Sponsored by: EMC / Isilon Storage Division

9 years agoDon't hide build commands.
bdrewery [Fri, 18 Sep 2015 21:01:52 +0000 (21:01 +0000)]
Don't hide build commands.

9 years agoThere is no HP 300 support in FreeBSD anymore, so remove the obsolete
delphij [Fri, 18 Sep 2015 20:28:37 +0000 (20:28 +0000)]
There is no HP 300 support in FreeBSD anymore, so remove the obsolete
BUGS section.

While I'm there also bump Dd date.

MFC after: 2 weeks

9 years agoMark I/Os with DMA flag while moving data through the HA link.
mav [Fri, 18 Sep 2015 20:11:10 +0000 (20:11 +0000)]
Mark I/Os with DMA flag while moving data through the HA link.

9 years agoRelax serseq option operation for reads.
mav [Fri, 18 Sep 2015 19:43:14 +0000 (19:43 +0000)]
Relax serseq option operation for reads.

Previously, with serseq enabled, next command was unblocked only after
previous completed.  With this change, for read operations, next command
is unblocked as soon as last media read completed.  This is important
for frontends that actually wait for data move completion (like camtgt),
or when data are moved through the HA link, or especially when both.

9 years agoAvoid /usr/obj// from r287899
bdrewery [Fri, 18 Sep 2015 18:57:09 +0000 (18:57 +0000)]
Avoid /usr/obj// from r287899

9 years agoEnsure the ring state is also blanked upon reset, otherwise
adrian [Fri, 18 Sep 2015 17:39:31 +0000 (17:39 +0000)]
Ensure the ring state is also blanked upon reset, otherwise
duplicate rx events get handled during reset paths.

Submitted by: Matthew Dillion <dillon@apollo.backplane.com>
Obtained from: DragonflyBSD

9 years agoKernel part of reroot support - a way to change rootfs without reboot.
trasz [Fri, 18 Sep 2015 17:32:22 +0000 (17:32 +0000)]
Kernel part of reroot support - a way to change rootfs without reboot.

Note that the mountlist manipulations are somewhat fragile, and not very
pretty.  The reason for this is to avoid changing vfs_mountroot(), which
is (obviously) rather mission-critical, but not very well documented,
and thus hard to test properly.  It might be possible to rework it to use
its own simple root mount mechanism instead of vfs_mountroot().

Reviewed by: kib@
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D2698

9 years agoDo not execute exception handlers with disabled interrupts.
kib [Fri, 18 Sep 2015 17:09:59 +0000 (17:09 +0000)]
Do not execute exception handlers with disabled interrupts.

We should not call vm_fault(), or send a signal, with interrupts
disabled.  MI kernel code is not prepared for such environment, not to
mention that this increases system latency, since code appears to be
executing as being under spinlock.

The FAR register for data aborts is read before the interrupts are
enabled, to avoid its corruption due to nested exception or context
switch.

Add asserts, similar to the checks done by other architectures, about
not taking page faults in non-sleepable contexts, rather than die with
late and somewhat confusing witness diagnostic.

Reviewed by: andrew
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D3669

9 years agoClear exclusive monitors when handling data aborts, the monitors are
kib [Fri, 18 Sep 2015 16:52:18 +0000 (16:52 +0000)]
Clear exclusive monitors when handling data aborts, the monitors are
in unknown state per spec.

Reviewed by: andrew (previous version)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D3668

9 years agoDon't read the floating-point registers for now. We will need to enable the
andrew [Fri, 18 Sep 2015 13:44:15 +0000 (13:44 +0000)]
Don't read the floating-point registers for now. We will need to enable the
VFP around the read of these instructions as they may raise an exception.

Sponsored by: ABT Systems Ltd

9 years agoKill HA link and shutdown the threads on shutdown.
mav [Fri, 18 Sep 2015 12:08:00 +0000 (12:08 +0000)]
Kill HA link and shutdown the threads on shutdown.

9 years agoUpdate list of opcodes to 5/26/15.
mav [Fri, 18 Sep 2015 10:44:25 +0000 (10:44 +0000)]
Update list of opcodes to 5/26/15.

9 years agoUpdate list of ASC/ASCQ codes from 5/20/12 to 8/12/15.
mav [Fri, 18 Sep 2015 10:23:17 +0000 (10:23 +0000)]
Update list of ASC/ASCQ codes from 5/20/12 to 8/12/15.

9 years agoAdd in a temporary (hah!) workaround for net80211 scanning versus NIC
adrian [Fri, 18 Sep 2015 07:55:33 +0000 (07:55 +0000)]
Add in a temporary (hah!) workaround for net80211 scanning versus NIC
requirements.

Don't start the opmode and join path until a pending survey is finished.
This seems to reliably fix things.

Ideally I'd just finish off the net80211 pluggable scan stuff and implement
the methods here so if_rsu can just drive the scan machinery.
However, that's a .. later thing.

Whilst here, remove the getbuf debugging; it's okay to run out of transmit
buffers under load; it however isn't okay to not be able to send commands.
I'll fix that later.

9 years agoRefactor out the tx buffer free code into a routine, rsu_freebuf().
adrian [Fri, 18 Sep 2015 07:26:34 +0000 (07:26 +0000)]
Refactor out the tx buffer free code into a routine, rsu_freebuf().

This makes it easier to add more transmit buffers, have different buffer
pools for things, etc.

9 years ago* Simplify logic besides llchange variable.
melifaro [Fri, 18 Sep 2015 07:18:10 +0000 (07:18 +0000)]
* Simplify logic besides llchange variable.
* Refresh nd6_is_router() comment.

9 years agoThe "automount" rc script should depend on "automountd", not the other
trasz [Fri, 18 Sep 2015 06:54:52 +0000 (06:54 +0000)]
The "automount" rc script should depend on "automountd", not the other
way around.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agoSet AMPDU density/size parameters during vap creation.
adrian [Fri, 18 Sep 2015 05:59:15 +0000 (05:59 +0000)]
Set AMPDU density/size parameters during vap creation.

Inspired from: Linux r92su

9 years agoAdd a very hacked up station only A-MPDU negotiation path.
adrian [Fri, 18 Sep 2015 05:03:01 +0000 (05:03 +0000)]
Add a very hacked up station only A-MPDU negotiation path.

This is enough to set things up; there are still lots of retransmits
seen but it's enough to get things working.

9 years agoAdd an external facing function to manually set the RX A-MPDU parameters
adrian [Fri, 18 Sep 2015 05:01:05 +0000 (05:01 +0000)]
Add an external facing function to manually set the RX A-MPDU parameters
for re-ordering.

Devices like if_rsu don't pass through action/management frames but do send
firmware commands to inform us of things.  One of those notifications is
the RX A-MPDU negotiated parameters.

9 years agoAdd initial 11n support to if_rsu.
adrian [Fri, 18 Sep 2015 04:12:11 +0000 (04:12 +0000)]
Add initial 11n support to if_rsu.

* Add a tunable to enable 11n if it's available, so to not anger people
  who upgrade.

  kenv hw.usb.rsu.enable_11n=1 before inserting the device.

* Add initial 11n htconfig bits;
* Enable 40MHz mode if it's available;
* Add 11n channels;
* Set 11n bits in the firmware.

It works for RX; I haven't tested TX aggregation just yet.
However the firmware doesn't do RX re-ordering, so I have to tie it into
the net80211 A-MPDU RX reorder path before I flip this on by default.

I've verified that I'm indeed actually seeing MCS 0->7 rates being received.
I haven't dug into whether it's actually transmitting 11n rates; I'll dig into
that later.

9 years agoExpose the wme_info IE method.
adrian [Fri, 18 Sep 2015 04:01:26 +0000 (04:01 +0000)]
Expose the wme_info IE method.

9 years agoEliminate (many) unnecessary calls to pmap_remove_all(). Pages from objects
alc [Thu, 17 Sep 2015 22:28:38 +0000 (22:28 +0000)]
Eliminate (many) unnecessary calls to pmap_remove_all().  Pages from objects
with a reference count of zero can't possibly be mapped, so there is never a
need for vm_page_set_invalid() to call pmap_remove_all() on them.

Reviewed by: kib
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoRegenerate
bdrewery [Thu, 17 Sep 2015 22:07:40 +0000 (22:07 +0000)]
Regenerate

9 years agomakeman: Fix handling of env-only vars by using SRC_ENV_CONF rather than SRCCONF.
bdrewery [Thu, 17 Sep 2015 22:04:46 +0000 (22:04 +0000)]
makeman: Fix handling of env-only vars by using SRC_ENV_CONF rather than SRCCONF.

Also note that these env-only vars can be specified on the command line.

This fixes the dependent options that are env-only (such as WITH_META_MODE
and WITH_AUTO_OBJ) to properly display their dependencies.

Sponsored by: EMC / Isilon Storage Division

9 years agoTrim space
bdrewery [Thu, 17 Sep 2015 21:51:48 +0000 (21:51 +0000)]
Trim space

9 years agoReplicate initiators WWPNs and names between HA peers.
mav [Thu, 17 Sep 2015 21:51:11 +0000 (21:51 +0000)]
Replicate initiators WWPNs and names between HA peers.

9 years agoAdd a check to ensure that the env-only mkopts are not set via src.conf.
bdrewery [Thu, 17 Sep 2015 21:49:29 +0000 (21:49 +0000)]
Add a check to ensure that the env-only mkopts are not set via src.conf.

Sponsored by: EMC / Isilon Storage Division

9 years agoEliminate unneeded copying of vdev data, goto, etc. and add a note
delphij [Thu, 17 Sep 2015 20:55:47 +0000 (20:55 +0000)]
Eliminate unneeded copying of vdev data, goto, etc. and add a note
that checksum of vdev label should be checked (which is not done
currently).

No functional change.

While I'm there, raise WARNS to 2.

Reviewed by: allanjude
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D3508

9 years agoRegenerate
bdrewery [Thu, 17 Sep 2015 20:48:42 +0000 (20:48 +0000)]
Regenerate

9 years agoOptimize makeman slightly by removing uneeded cat and extra test -s.
bdrewery [Thu, 17 Sep 2015 20:45:51 +0000 (20:45 +0000)]
Optimize makeman slightly by removing uneeded cat and extra test -s.

Sponsored by: EMC / Isilon Storage Division

9 years agoThe EFI boot loader allocates a single chunk of contiguous memory to
jhb [Thu, 17 Sep 2015 20:36:46 +0000 (20:36 +0000)]
The EFI boot loader allocates a single chunk of contiguous memory to
hold the kernel, modules, and any other loaded data.  This memory block
is relocated to the kernel's expected location during the transfer of
control from the loader to the kernel.

The GENERIC kernel on amd64 has recently grown such that a kernel + zfs.ko
no longer fits in the default staging size.  Bump the default size from
32MB to 48MB to provide more breathing room.

PR: 201679
Reviewed by: imp
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D3666

9 years agoReplicate port->init_devid to HA peer.
mav [Thu, 17 Sep 2015 20:36:34 +0000 (20:36 +0000)]
Replicate port->init_devid to HA peer.

9 years agosrc.conf.5: Make it self-documenting that the mkopts are environment-only.
bdrewery [Thu, 17 Sep 2015 20:33:52 +0000 (20:33 +0000)]
src.conf.5: Make it self-documenting that the mkopts are environment-only.

Sponsored by: EMC / Isilon Storage Division

9 years agoRemove extra tabs.
glebius [Thu, 17 Sep 2015 20:21:55 +0000 (20:21 +0000)]
Remove extra tabs.

9 years agoVarious small cleanups to EFI loader Makefiles.
jhb [Thu, 17 Sep 2015 18:32:51 +0000 (18:32 +0000)]
Various small cleanups to EFI loader Makefiles.

Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D3641

9 years agoUse strlcpy() instead of strncpy() because subsequent mkstemps expects
delphij [Thu, 17 Sep 2015 18:11:26 +0000 (18:11 +0000)]
Use strlcpy() instead of strncpy() because subsequent mkstemps expects
the string be nul-terminated.

Reviewed by: neel
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D3685

9 years agoDocument src-env.conf and note its use for MAKEOBJDIRPREFIX and WITH_META_MDOE.
bdrewery [Thu, 17 Sep 2015 17:45:20 +0000 (17:45 +0000)]
Document src-env.conf and note its use for MAKEOBJDIRPREFIX and WITH_META_MDOE.

Sponsored by: EMC / Isilon Storage Division

9 years agoInclude bsd.mkopt.mk after local.sys.env.mk (which includes /etc/src-env.conf).
bdrewery [Thu, 17 Sep 2015 17:35:06 +0000 (17:35 +0000)]
Include bsd.mkopt.mk after local.sys.env.mk (which includes /etc/src-env.conf).

This will allow setting WITH_META_MODE in that file rather that requiring
it to be set in the environment.

Sponsored by: EMC / Isilon Storage Division

9 years agoUse proper byteswap macro. This isn't a functional change.
glebius [Thu, 17 Sep 2015 17:27:49 +0000 (17:27 +0000)]
Use proper byteswap macro. This isn't a functional change.

9 years agoWhen reporting TPT UA, report which of thresholds was reached.
mav [Thu, 17 Sep 2015 17:00:36 +0000 (17:00 +0000)]
When reporting TPT UA, report which of thresholds was reached.

9 years agoFix /sbin/route to never look up (invalid) interface names through DNS
rstone [Thu, 17 Sep 2015 16:56:49 +0000 (16:56 +0000)]
Fix /sbin/route to never look up (invalid) interface names through DNS

/sbin/route has a bug where if it is passed an interface name that does
not exist, it falls through and winds up interpreting it as a hostname.
It fails out eventually, but on a system where DNS lookup is broken you
can end up waiting for up to 60 seconds waiting for the DNS lookup to
timeout.  I'm not quite sure what happens if the DNS lookup somehow
succeeds but I doubt that can end well.

Reviewed by: markj, cem
MFC after: 2 weeks
Sponsored by: EMC/Isilon Storage Division

9 years agoFix makeman creating obj directories due to turning on WITH_AUTO_OBJ.
bdrewery [Thu, 17 Sep 2015 16:38:32 +0000 (16:38 +0000)]
Fix makeman creating obj directories due to turning on WITH_AUTO_OBJ.

r284708 addressed this slightly but seems to have put the make(showconfig)
guard in the wrong place.  Rather than guard setting the default obj directory,
guard inclusion of auto.obj.mk.  This avoids creating SRCTOP/obj and
SRCTOP/release/obj when running makeman.

Sponsored by: EMC / Isilon Storage Division

9 years agoWhen chrooted, we need to strip the chroot directory from the front of
des [Thu, 17 Sep 2015 16:19:36 +0000 (16:19 +0000)]
When chrooted, we need to strip the chroot directory from the front of
included paths.  Don't forget to do it for globs as well.

9 years agoUpgrade to Unbound 1.5.4.
des [Thu, 17 Sep 2015 16:10:11 +0000 (16:10 +0000)]
Upgrade to Unbound 1.5.4.

9 years agoimport unbound 1.5.4
des [Thu, 17 Sep 2015 15:21:27 +0000 (15:21 +0000)]
import unbound 1.5.4

9 years agoAdd Intel Skylake/I219 Support
sbruno [Thu, 17 Sep 2015 15:11:45 +0000 (15:11 +0000)]
Add Intel Skylake/I219 Support
- New em(4) device in currently shipping products

Differential Revision: https://reviews.freebsd.org/D3163
Submitted by: erj@freebsd.org
Reviewed by: jfv@freebsd.org
MFC after: 2 weeks
Sponsored by: Intel Corporation

9 years agoReport number of failed XCOPY segment.
mav [Thu, 17 Sep 2015 14:22:52 +0000 (14:22 +0000)]
Report number of failed XCOPY segment.

9 years agoReport proper medium error code for VERIFY commands.
mav [Thu, 17 Sep 2015 12:52:18 +0000 (12:52 +0000)]
Report proper medium error code for VERIFY commands.

9 years agoRemove more unused variables leading to compile time errors.
bz [Thu, 17 Sep 2015 12:04:41 +0000 (12:04 +0000)]
Remove more unused variables leading to compile time errors.

9 years ago.. oops, flip on QoS.
adrian [Thu, 17 Sep 2015 07:04:15 +0000 (07:04 +0000)]
.. oops, flip on QoS.

9 years agoRemove an entry. It was re-added in r287780.
jkim [Thu, 17 Sep 2015 07:01:40 +0000 (07:01 +0000)]
Remove an entry.  It was re-added in r287780.

9 years agoRemove unused variable leading to compile errors.
bz [Thu, 17 Sep 2015 06:07:49 +0000 (06:07 +0000)]
Remove unused variable leading to compile errors.

9 years agoRegenerate
bdrewery [Thu, 17 Sep 2015 05:07:39 +0000 (05:07 +0000)]
Regenerate

9 years agoUpdate META_MODE dependencies.
bdrewery [Thu, 17 Sep 2015 05:06:34 +0000 (05:06 +0000)]
Update META_MODE dependencies.

9 years agoDocument NO_SILENT for META_MODE.
bdrewery [Thu, 17 Sep 2015 05:01:04 +0000 (05:01 +0000)]
Document NO_SILENT for META_MODE.

Reword and add some formatting as well.

9 years agoRework r287900 to keep arm64/aarch64 stable in the TARGETS list.
bdrewery [Thu, 17 Sep 2015 04:54:49 +0000 (04:54 +0000)]
Rework r287900 to keep arm64/aarch64 stable in the TARGETS list.

This is relevant for makeman using the 'make targets' output in src.conf(5).

This makes a _UNIVERSE_TARGETS that removes arm64 if the build
requirements are not met.

9 years agoLet makeman run 'make showconfig' without hitting the aarch64 error.
bdrewery [Thu, 17 Sep 2015 04:48:15 +0000 (04:48 +0000)]
Let makeman run 'make showconfig' without hitting the aarch64 error.

9 years agoBring over the QoS logic from the Linux r92su driver.
adrian [Thu, 17 Sep 2015 04:45:29 +0000 (04:45 +0000)]
Bring over the QoS logic from the Linux r92su driver.

* the tx descriptor TID is priority, not TID.
* the tx descriptor queue id mapping is separate from the
  TID/priority; rather than just "BE".

TODO:

* go and re-re-re-verify the queue mappings; the linux and openbsd
  mappings aren't exactly the same.  I need to verify all of this
  before I try to flip on 11n RX.

9 years agoGet arm64/aarch64 into 'make targets' output to fix makeman.
bdrewery [Thu, 17 Sep 2015 04:43:07 +0000 (04:43 +0000)]
Get arm64/aarch64 into 'make targets' output to fix makeman.

9 years agoMETA_MODE: Default OBJROOT to the traditional /usr/src/SRCTOP/.
bdrewery [Thu, 17 Sep 2015 04:22:00 +0000 (04:22 +0000)]
META_MODE: Default OBJROOT to the traditional /usr/src/SRCTOP/.

This avoids easily colliding multiple src trees with the same objects.  Having
multiple checkouts in dir/ dir2/ dir3/ would all use obj/ without any unique
identifier inside of obj/.  This pattern is more likely to be used due
to the non-META_MODE behavior working with it fine.

In environments where ../obj/ is wanted as the obj directory the value of
OBJROOT can be set to ${SRCTOP:H}/obj/ instead via src-env.conf (set by
SRC_ENV_CONF) or environment.  For environment it must be single quoted or
escaped.  This will be more likely for vendors who are building images or using
NFS for builds.  In those cases MAKEOBJDIRPREFIX may already be utilized and
is supported.

Discussed with: imp
Sponsored by: EMC / Isilon Storage Division

9 years agoMETA_MODE: Allow MAKEOBJDIRPREFIX to work more closely to its traditional behavior.
bdrewery [Thu, 17 Sep 2015 04:01:05 +0000 (04:01 +0000)]
META_MODE: Allow MAKEOBJDIRPREFIX to work more closely to its traditional behavior.

The preferred way to modify the object directory root is to use OBJROOT.
However, setting OBJROOT to ${MAKEOBJDIRPREFIX}/${SRCTOP}/ effectively behaves
as expected.

The problem with this before was that setting OBJROOT to contain SRCTOP
resulted in a recursive replacement (/usr/obj/usr/obj/usr/src/). Anchoring to
the start of the path for replacing SRCCTOP in CURDIR resolves this by
avoiding replacing SRCTOP when CURDIR is within the OBJDIR.

Sponsored by: EMC / Isilon Storage Division

9 years agoProgram the firmware setup stuff with the current hardware setup:
adrian [Thu, 17 Sep 2015 03:42:18 +0000 (03:42 +0000)]
Program the firmware setup stuff with the current hardware setup:

* Do 1T1R for now, until we read the config out of ROM and use it.
* Disable turbo mode, I dunno what this is, but the linux drivers
  have this disabled.
* Set the firmware endpoints to what we read from USB.

Tested:

* RTL8712 cut 3, STA mode

9 years agoUse the H2C endpoint for sending firmware commands, rather than the voice
adrian [Thu, 17 Sep 2015 03:19:09 +0000 (03:19 +0000)]
Use the H2C endpoint for sending firmware commands, rather than the voice
data queues.

This is similar to the openbsd and rtlwifi/r92su drivers.

Note: this driver still assumes it's a 4-endpoint device; I'll enforce
that in a follow-up commit.

9 years agoAdd 11n and QoS methods.
adrian [Thu, 17 Sep 2015 03:13:01 +0000 (03:13 +0000)]
Add 11n and QoS methods.

The firmware takes care of ampdu tx/rx (except for RX reordering, grr),
QoS/WME and other bits/pieces.  So they're stubs, just in case.

9 years agoPrepare for 11n - get the number of endpoints and whether 11n is available.
adrian [Thu, 17 Sep 2015 03:08:02 +0000 (03:08 +0000)]
Prepare for 11n - get the number of endpoints and whether 11n is available.

9 years agoBump RX_LIST_COUNT so we don't fall behind during active traffic.
adrian [Thu, 17 Sep 2015 03:01:55 +0000 (03:01 +0000)]
Bump RX_LIST_COUNT so we don't fall behind during active traffic.

9 years agoUse DELAY() rather than usb_pause_mtx() - the latter releases the lock
adrian [Thu, 17 Sep 2015 03:01:19 +0000 (03:01 +0000)]
Use DELAY() rather than usb_pause_mtx() - the latter releases the lock
before waiting, which prevents the lock from really acting like
a hardware serialiser.  Sigh.

9 years agoMETA_MODE: Don't define the default MAKEOBJDIR twice. Just expand the default.
bdrewery [Thu, 17 Sep 2015 00:17:32 +0000 (00:17 +0000)]
META_MODE: Don't define the default MAKEOBJDIR twice. Just expand the default.

Sponsored by: EMC / Isilon Storage Division

9 years agoFix kqueue write events for files > 2GB
smh [Thu, 17 Sep 2015 00:03:55 +0000 (00:03 +0000)]
Fix kqueue write events for files > 2GB

Due to the use of int's for file offsets in the VOP_WRITE_(PRE|POST)
macros, kqueue write events for files greater 2GB where never fired.

This caused tail -f on a file greater 2GB to never see updates.

MFC after: 1 week
Relnotes: YES
Sponsored by: Multiplay

9 years agoUpdate META_MODE architectures for universe
bdrewery [Wed, 16 Sep 2015 23:59:53 +0000 (23:59 +0000)]
Update META_MODE architectures for universe

9 years agoBlock secondary ITS instances from attaching on ARM64
zbb [Wed, 16 Sep 2015 23:59:45 +0000 (23:59 +0000)]
Block secondary ITS instances from attaching on ARM64

Currently FreeBSD supports only single PIC controller. Some systems
that have more than one (like ThunderX dual-socket) fails to boot.
Disable other PICes until proper handling is implemented in the
generic interrupt code.

Reviewed by:   imp
Obtained from: Semihalf
Sponsored by:  The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D3682

9 years agoRelease memory for CPUs that fail to init on ARM64
zbb [Wed, 16 Sep 2015 23:46:20 +0000 (23:46 +0000)]
Release memory for CPUs that fail to init on ARM64

cpu_init_fdt will now release memory allocated for structures
serving CPUs that have failed to init.

Obtained from: Semihalf
Sponsored by:  The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D3297

9 years agoAdd domain support to PCI bus allocation
zbb [Wed, 16 Sep 2015 23:34:51 +0000 (23:34 +0000)]
Add domain support to PCI bus allocation

When the system has more than a single PCI domain, the bus numbers
are not unique, thus they cannot be used for "pci" device numbering.
Change bus numbers to -1 (i.e. to-be-determined automatically)
wherever the code did not care about domains.

Reviewed by:   jhb
Obtained from: Semihalf
Sponsored by:  The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D3406

9 years agoIf forwarders were specified on the command line, create an empty
des [Wed, 16 Sep 2015 23:09:31 +0000 (23:09 +0000)]
If forwarders were specified on the command line, create an empty
resolvconf.conf so that resolvconf won't replace the manually configured
forwarders with dynamically configured ones the next time the lease is
renewed.

9 years agoMETA_MODE: Don't create obj directories automatically when running make -V.
bdrewery [Wed, 16 Sep 2015 23:01:16 +0000 (23:01 +0000)]
META_MODE: Don't create obj directories automatically when running make -V.

Sponsored by: EMC / Isilon Storage Division

9 years agoFix reading after end of file for file-backed LUNs.
mav [Wed, 16 Sep 2015 21:43:51 +0000 (21:43 +0000)]
Fix reading after end of file for file-backed LUNs.

If backing file is smaller then the LUN size, we have to explicitly clear
the rest of the buffer to not leak some random data from previous I/Os.

9 years agoIn tcp_ctlinput() separate the (ip == NULL) block from the rest of the
glebius [Wed, 16 Sep 2015 21:42:33 +0000 (21:42 +0000)]
In tcp_ctlinput() separate the (ip == NULL) block from the rest of the
function to reduce so many levels of indentation.  Style the lines that
got now indentation reduced.  No functional change.

Checked with: md5

9 years agoMETA_MODE: Fix OBJROOT ending in two // when it does not yet exist.
bdrewery [Wed, 16 Sep 2015 20:58:43 +0000 (20:58 +0000)]
META_MODE: Fix OBJROOT ending in two // when it does not yet exist.

This would lead to the 2nd build (after the first with a missing OBJROOT) to
always rebuild everything as the 'command' would have changed due to the path
changing from having // to only /.

Sponsored by: EMC / Isilon Storage Division

9 years agoAlways clear TDB_USERWR before fetching system call arguments. The
jhb [Wed, 16 Sep 2015 20:55:00 +0000 (20:55 +0000)]
Always clear TDB_USERWR before fetching system call arguments.  The
TDB_USERWR flag may still be set after a debugger detaches from a
process via PT_DETACH.  Previously the flag would never be cleared
forcing a double fetch of the system call arguments for each system
call.  Note that the flag cannot be cleared at PT_DETACH time in case
one of the threads in the process is currently stopped in
syscallenter() and the debugger has modified the arguments for that
pending system call before detaching.

Reviewed by: kib
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D3678