dragonfly.git
9 years agonrelease: Verify that $DPORTS_TREE indeed exists as a directory.
Sascha Wildner [Thu, 29 May 2014 18:21:03 +0000 (20:21 +0200)]
nrelease: Verify that $DPORTS_TREE indeed exists as a directory.

Also, if it exists, output its name so it can be looked up in the
logfile (in case there might have been a typo when overriding the
default).

9 years agokernel/acpi: Sync acpi_video with FreeBSD.
Sascha Wildner [Thu, 29 May 2014 16:46:50 +0000 (18:46 +0200)]
kernel/acpi: Sync acpi_video with FreeBSD.

* Add LCD brightness control notify handler.

* Add support for "cycle" and "zero" events for LCD brightness control.

* Fix recognition of video outputs that use the standardized device
  ID scheme in ACPI 3.0 and set bit 31 at the same time (such as certain
  Dell laptops).

9 years agodrm/i915: New IRQ management code from Linux
François Tigeot [Thu, 29 May 2014 10:01:31 +0000 (12:01 +0200)]
drm/i915: New IRQ management code from Linux

* Move some functions around, they were defined in different files
  than in Linux

* Add some Haswell and Valleyview support code

* Generally reduce differences with Linux 3.8.13

9 years agoinstaller: Fix disk_find() on systems that have both da1 and da10.
Sascha Wildner [Thu, 29 May 2014 06:26:47 +0000 (08:26 +0200)]
installer: Fix disk_find() on systems that have both da1 and da10.

In addition to comparing names (up to the length of the disk which
was found previously), also compare name lengths.

While here, remove the disk_find() check in disk_new(). disk_new()
didn't deal with it returning NULL. But because the list of disks
we offer as targets for installing is taken from sysctl kern.disks'
output, it will not have duplicates (else it would likely be a bug
in the kernel).

Reported-by: BSDUX on IRC
9 years agotop: Fix the interactive command 'U'.
Imre Vadasz [Wed, 28 May 2014 20:07:11 +0000 (22:07 +0200)]
top: Fix the interactive command 'U'.

* The gstate->header_text and gstate->get_userid variables need to be
  updated when toggling between displaying of UIDs and usernames.

* Removing the unnecessary HAVE_FORMAT_PROCESS_HEADER checks.

9 years agotop: Fix -Sc option combination (bug #2670)
John Marino [Wed, 28 May 2014 16:26:52 +0000 (18:26 +0200)]
top: Fix -Sc option combination (bug #2670)

It was reported that the "top -S" and "top -c" commands work as expected
but "top -Sc" showed repeated lines.  I confirmed a malfunction, but a
different one: all 20 lines showing in console were the same.

The following patch will revert to standard format if a system command is
detected, otherwise the desired "full command" option is shown.

< http://bugs.dragonflybsd.org/issues/2670 >

9 years agoWPA Supplicant version upgrade complete: 0.6.10 => 2.1
John Marino [Wed, 28 May 2014 11:31:47 +0000 (13:31 +0200)]
WPA Supplicant version upgrade complete: 0.6.10 => 2.1

This is step 4 of 4 of the process to upgrade WPA Supplicant and HostAPD
from version 0.6.10 (Dec 2010) to version 2.1 (Feb 2014).

  - Added hostapd.conf and wpa_supplicant.conf to etc
  - updated share/initrd/etc/wpa_supplicant.conf with the vendor
    version,
  - minors man fixes taken from FreeBSD head,
  - major Makefile overhaul in usr.sbin/802_11 based on FreeBSD head,
  - use the vendor's driver_wired and driver_bsd,
  - l2_packet.c is a copy of the vendor's l2_packet/l2_packet_freebsd.

All significant work contributed by: Alexandre Perrin <alex@kaworu.ch>
Thanks!

9 years agoWPA Supplicant upgrade: Add local modifications and READMEs
John Marino [Wed, 28 May 2014 11:22:00 +0000 (13:22 +0200)]
WPA Supplicant upgrade: Add local modifications and READMEs

Both vendor sources only need modification on a single file: wps_upnp.c
This is step 3 of 4 of the upgrade.

9 years agoMerge branch 'vendor/WPA_SUPPLICANT'
John Marino [Wed, 28 May 2014 15:24:05 +0000 (17:24 +0200)]
Merge branch 'vendor/WPA_SUPPLICANT'

Internally conflicted, use vendor/WPA_SUPPLICANT in all cases.

9 years agoMerge branch 'vendor/HOSTAPD'
John Marino [Wed, 28 May 2014 15:21:37 +0000 (17:21 +0200)]
Merge branch 'vendor/HOSTAPD'

Internally conflicted, use vendor/HOSTAPD in all cases

9 years agoRemoved copies of hostapd/wpa to prepare for branch merge
John Marino [Wed, 28 May 2014 10:50:04 +0000 (12:50 +0200)]
Removed copies of hostapd/wpa to prepare for branch merge

The contrib directories for hostapd and wpa_supplicant were just
copies of their respective vendor branches.  They were never merged
into the master branch.

To prepare for their first merging, let's remove the existing copies of
these two contrib subdirectories completely to avoid conflicts.

This is the first of four steps to update WPA Supplicant in base.
Step 2: Merge in hostapd and wpa_supplicant vendor branches (ver 2.1)
Step 3: Add local modifications to hostapd and wpa_supplicant
Step 4: Update makefile and conf files accordingly

9 years agowpa_supplicant vendor branch: Update version 0.6.10 => 2.1 gitea/vendor/WPA_SUPPLICANT origin/vendor/WPA_SUPPLICANT
John Marino [Tue, 27 May 2014 21:43:58 +0000 (23:43 +0200)]
wpa_supplicant vendor branch: Update version 0.6.10 => 2.1

9 years agohostapd vendor branch: Update version from 0.6.10 => 2.1 gitea/vendor/HOSTAPD origin/vendor/HOSTAPD
John Marino [Tue, 27 May 2014 19:42:16 +0000 (21:42 +0200)]
hostapd vendor branch: Update version from 0.6.10 => 2.1

9 years agoudp: Merge udp_send and udp_output
Sepherosa Ziehau [Wed, 28 May 2014 12:45:25 +0000 (20:45 +0800)]
udp: Merge udp_send and udp_output

This paves way for the udp packet redispatch to distribute ip_output
workload.

9 years agoudp: Remove no longer necessary code
Sepherosa Ziehau [Sun, 25 May 2014 12:30:15 +0000 (20:30 +0800)]
udp: Remove no longer necessary code

9 years agodrm: Change the prototype of fb_create()
François Tigeot [Tue, 27 May 2014 08:36:25 +0000 (10:36 +0200)]
drm: Change the prototype of fb_create()

Make it identical to the Linux 3.8.13 version.

9 years agoLinux headers: Improve the WARN_ON() macro
François Tigeot [Mon, 26 May 2014 19:08:39 +0000 (21:08 +0200)]
Linux headers: Improve the WARN_ON() macro

Obtained-from: OpenBSD

9 years agonewvers.sh: Adjust revision.
Sascha Wildner [Mon, 26 May 2014 17:21:18 +0000 (19:21 +0200)]
newvers.sh: Adjust revision.

Reported-by: luxh
9 years agokernel/acpi: Remove some unneeded code in acpi_hp.
Sascha Wildner [Mon, 26 May 2014 08:11:15 +0000 (10:11 +0200)]
kernel/acpi: Remove some unneeded code in acpi_hp.

9 years ago3.9-DEVELOPMENT, a.k.a. master v3.9.0
Justin C. Sherrill [Mon, 26 May 2014 04:52:17 +0000 (00:52 -0400)]
3.9-DEVELOPMENT, a.k.a. master

9 years agokernel/ig_hal: Add missing braces.
Sascha Wildner [Sun, 25 May 2014 12:02:21 +0000 (14:02 +0200)]
kernel/ig_hal: Add missing braces.

In-discussion-with: sephe

9 years agokernel: Fix various indentation issues (no functional change).
Sascha Wildner [Sun, 25 May 2014 08:38:41 +0000 (10:38 +0200)]
kernel: Fix various indentation issues (no functional change).

9 years agokernel/acpi: Use standard types.
Sascha Wildner [Sun, 25 May 2014 07:59:46 +0000 (09:59 +0200)]
kernel/acpi: Use standard types.

9 years agokernel/acpi: Fix indent, also use NULL for pointers (no functional change).
Sascha Wildner [Sun, 25 May 2014 07:17:32 +0000 (09:17 +0200)]
kernel/acpi: Fix indent, also use NULL for pointers (no functional change).

9 years agoacpi.4: Sort hpet.
Sascha Wildner [Sat, 24 May 2014 21:27:39 +0000 (23:27 +0200)]
acpi.4: Sort hpet.

9 years agoacpi_dock.4: Add Mt
Sascha Wildner [Sat, 24 May 2014 21:27:02 +0000 (23:27 +0200)]
acpi_dock.4: Add Mt

9 years agokernel/acpi: Add a docking station driver.
Sascha Wildner [Sat, 24 May 2014 21:24:38 +0000 (23:24 +0200)]
kernel/acpi: Add a docking station driver.

Tested-by: profmakx (on a ThinkPad X230)
Taken-from: FreeBSD

9 years agoacpixtract.8: Add missing Fl
Sascha Wildner [Fri, 23 May 2014 11:59:50 +0000 (13:59 +0200)]
acpixtract.8: Add missing Fl

9 years agoacpi.4: Add missing space.
Sascha Wildner [Thu, 22 May 2014 07:58:15 +0000 (09:58 +0200)]
acpi.4: Add missing space.

9 years agos/NO_OBJ/NOOBJ/ in a few Makefiles.
Sascha Wildner [Wed, 21 May 2014 19:35:57 +0000 (21:35 +0200)]
s/NO_OBJ/NOOBJ/ in a few Makefiles.

9 years agolibc: Fix strcasecmp_l() and strncasecmp_l() issues.
Sascha Wildner [Wed, 21 May 2014 19:11:54 +0000 (21:11 +0200)]
libc: Fix strcasecmp_l() and strncasecmp_l() issues.

POSIX.1-2008 specifies that those two functions should be declared by
including <strings.h>, not <string.h> (the latter only has strcoll_l()
and strxfrm_l()):

http://pubs.opengroup.org/onlinepubs/9699919799/functions/strcasecmp.html

It looks like FreeBSD got this wrong in their xlocale stuff originally.

And it looks like the only clean way to properly solve it is to split
<xlocale/_string.h> into <xlocale/_string.h> and <xlocale/_strings.h>,
which this commit does.

9 years agoudp: Add KTR to measure UDP packet creation and ip_output cost
Sepherosa Ziehau [Wed, 21 May 2014 12:44:59 +0000 (20:44 +0800)]
udp: Add KTR to measure UDP packet creation and ip_output cost

9 years agoloader: Remove some unused code.
Sascha Wildner [Wed, 21 May 2014 06:53:38 +0000 (08:53 +0200)]
loader: Remove some unused code.

9 years agokernel: Remove some unused code.
Sascha Wildner [Wed, 21 May 2014 06:53:12 +0000 (08:53 +0200)]
kernel: Remove some unused code.

9 years agogroff - horrible hack to fix .gz issues
Matthew Dillon [Wed, 21 May 2014 01:42:20 +0000 (18:42 -0700)]
groff - horrible hack to fix .gz issues

* If a gzipped manual page contains a .so forwarding entry, groff
  will attempt to open the forwarding entry directly and will not
  check to see if a file with a .gz extension is present, resulting
  in an open error.

* Hack hack hack.  Horrible hack of the input search path to check
  for a .gz extension and popen() the file with zcat.  Horrible because
  I haven't bothered to modify all the other myrid code to properly call
  pclose() instead of fclose() in that case.

9 years agoifnet: Remove marker from if_multiaddrs, once iteration is done
Sepherosa Ziehau [Wed, 21 May 2014 01:21:06 +0000 (09:21 +0800)]
ifnet: Remove marker from if_multiaddrs, once iteration is done

Reported-by: tuxillo@
9 years agokernel/acpi: Improve the disabling of Debug object output.
Sascha Wildner [Tue, 20 May 2014 19:55:52 +0000 (21:55 +0200)]
kernel/acpi: Improve the disabling of Debug object output.

It is actually a global in ACPICA (since 20100304) so add a new
sysctl debug.acpi.enable_debug_objects that can be used to toggle
it, with the default being 0.

Unlike the previous attempt (which I had to revert again), this
time also clear ACPI_LV_DEBUG_OBJECT in the AcpiDbgLevel global in
case ACPI_DEBUG is not defined. My assumption that ACPICA would
initialize AcpiDbgLevel to 0 was wrong. It really is initialized
to ACPI_NORMAL_DEFAULT. It is kind of weird that
ACPI_NORMAL_DEFAULT == ACPI_DEBUG_DEFAULT in acoutput.h, but FWIW,
leave the other bits in AcpiDbgLevel set for now.

This commit reverts (again) a previous commit by sephe which solved
it differently (in the ACPICA code).

Taken-from:    FreeBSD (with modification by me)
Dragonfly-bug: <http://bugs.dragonflybsd.org/issues/2672>

9 years agoacpica: Use only one #ifdef _KERNEL ... and use 'inline' directly.
Sascha Wildner [Tue, 20 May 2014 17:57:49 +0000 (19:57 +0200)]
acpica: Use only one #ifdef _KERNEL ... and use 'inline' directly.

9 years agokernel/acpi: Fix memory and port I/O functions in the OS services layer.
Sascha Wildner [Tue, 20 May 2014 04:17:05 +0000 (06:17 +0200)]
kernel/acpi: Fix memory and port I/O functions in the OS services layer.

This makes AcpiOsReadPort(), AcpiOsWritePort(), AcpiOsReadMemory()
and AcpiOsWriteMemory() match the behavior requested in the "ACPI
User Guide and Programmer Reference".

When the width of the location that is read from or written to is less
than the (return) value's width, the read functions must ensure the
rest of the bits are zero and the write functions must write no more
than the location's width.

This should fix at least a number of temperature reading issues we
were seeing, such as the messages we were getting lately:

acpi_tz0: _TMP value is absurd, ignored (-204.0C)
acpi_tz0: _TMP value is absurd, ignored (-204.0C)
acpi_tz0: _TMP value is absurd, ignored (-203.0C)

Found-in: FreeBSD

9 years agokernel/acpi: Remove an Itanium define.
Sascha Wildner [Tue, 20 May 2014 01:47:22 +0000 (03:47 +0200)]
kernel/acpi: Remove an Itanium define.

9 years agoin_pcbladdr: Break long line; no functional changes
Sepherosa Ziehau [Mon, 19 May 2014 12:46:01 +0000 (20:46 +0800)]
in_pcbladdr: Break long line; no functional changes

9 years agoinet: Return NULL from IN_LOOKUP_MULTI if ifnet is NULL
Sepherosa Ziehau [Mon, 19 May 2014 11:45:31 +0000 (19:45 +0800)]
inet: Return NULL from IN_LOOKUP_MULTI if ifnet is NULL

This could happen for mbufs on ip_input path, whose rcvif could be NULL.

9 years agoip_input: Only multicast forwarding may be not MPSAFE
Sepherosa Ziehau [Mon, 19 May 2014 11:37:16 +0000 (19:37 +0800)]
ip_input: Only multicast forwarding may be not MPSAFE

9 years agoip_output: if_simloop is MPSAFE
Sepherosa Ziehau [Mon, 19 May 2014 11:37:01 +0000 (19:37 +0800)]
ip_output: if_simloop is MPSAFE

9 years agokernel: Fix kernel build when _KPOSIX_PRIORITY_SCHEDULING is not set.
Sascha Wildner [Mon, 19 May 2014 00:49:25 +0000 (02:49 +0200)]
kernel: Fix kernel build when _KPOSIX_PRIORITY_SCHEDULING is not set.

Define p31b_proc() and p31b_proc_done() only when it is set.

9 years agoacpi: s/ACPI[ -]CA/ACPICA/ in a few places.
Sascha Wildner [Sun, 18 May 2014 22:24:12 +0000 (00:24 +0200)]
acpi: s/ACPI[ -]CA/ACPICA/ in a few places.

9 years agoAdjust some LDADD/DPADD.
Sascha Wildner [Sun, 18 May 2014 20:50:21 +0000 (22:50 +0200)]
Adjust some LDADD/DPADD.

9 years agokernel/acpi: Use AE_OK.
Sascha Wildner [Sun, 18 May 2014 13:31:48 +0000 (15:31 +0200)]
kernel/acpi: Use AE_OK.

9 years agoix.4: Fix description of TSO and multiple tranmission queue arbitration.
Sepherosa Ziehau [Sun, 18 May 2014 08:36:15 +0000 (16:36 +0800)]
ix.4: Fix description of TSO and multiple tranmission queue arbitration.

9 years agonetisr: Don't free mbuf, if hash function has already done it.
Sepherosa Ziehau [Sun, 18 May 2014 08:32:17 +0000 (16:32 +0800)]
netisr: Don't free mbuf, if hash function has already done it.

9 years agotest/mcast: Install to /usr/local/bin
Sepherosa Ziehau [Sun, 18 May 2014 08:30:25 +0000 (16:30 +0800)]
test/mcast: Install to /usr/local/bin

And join multicast group on the interface specified.

9 years agoifnet: Properly protect if_multiaddrs using ifnet serializers
Sepherosa Ziehau [Tue, 13 May 2014 13:59:18 +0000 (21:59 +0800)]
ifnet: Properly protect if_multiaddrs using ifnet serializers

- Protect ifnet.if_multiaddrs using ifnet serializers.  Add some
  comment in the places, where only main serailizer is necessary.
- Fix if_delallmulti().  Using TAILQ_FOREACH_MUTABLE is incorrect for
  deleting an ifmultiaddr from ifnet.if_multiaddrs.  Since deleting one
  ifmultiaddr may cause additional ifmultiaddr deletion (e.g. the AF_LINK
  ifmultiaddr for AF_INET ifmultiaddr).
- Change IN_LOOKUP_MULTI and IN6_LOOKUP_MULTI macros into inline
  functions.
- Redispatch multicast IP packets to netisr0 for further processing.
  Software based IP packet hash function is changed.  And hash value
  fixup for multicast IP packets is added to the beginning of ip_input();
  this is mainly for IP packets, whose hash is calculated by hardware.
- For wlan's multicast hardware filter updating, we no longer need to
  release wlan serializer and mess up w/ the if_ioctl setting.

In netisr0, read and test ifma_refcount for AF_INET ifmultiaddr is MPSAFE
w/o ifnet serializers, since its ifma_refcount is only altered in netisr0.

In netisr0, any operation on in_multi, which is obtained from the
corresponding ifmuliaddr's ifma_protospec, is MPSAFE w/o ifnet
serializers, since ifmultiaddr for AF_INET is only set and cleared in
netisr0.

While I'm here also redispatch IP packets w/o hash to the proper netisrs,
on ip_input() path.  And unnecessary critical sections in
in_{add,del}multi() are removed.

9 years agokernel/acpi: Include <sys/ktr.h> from acpi_ec.c instead of from acpivar.h.
Sascha Wildner [Sun, 18 May 2014 00:59:30 +0000 (02:59 +0200)]
kernel/acpi: Include <sys/ktr.h> from acpi_ec.c instead of from acpivar.h.

9 years agokernel/acpi: Use ACPI_COMPARE_NAME().
Sascha Wildner [Sun, 18 May 2014 00:01:06 +0000 (02:01 +0200)]
kernel/acpi: Use ACPI_COMPARE_NAME().

9 years agokernel/acpi: Add missing header to the Makefile.
Sascha Wildner [Sun, 18 May 2014 00:00:47 +0000 (02:00 +0200)]
kernel/acpi: Add missing header to the Makefile.

9 years agokernel/acpi: Remove unneeded kprintf when overriding DSDT.
Sascha Wildner [Sat, 17 May 2014 23:15:52 +0000 (01:15 +0200)]
kernel/acpi: Remove unneeded kprintf when overriding DSDT.

ACPI will print a notice ("Logical table override...") itself.

9 years agoacpi.4: Remove COMPATIBILITY altogether.
Sascha Wildner [Sat, 17 May 2014 23:14:02 +0000 (01:14 +0200)]
acpi.4: Remove COMPATIBILITY altogether.

It can be brought back once we support more platforms.

9 years agoacpi.4: Refresh COMPATIBILITY and update the spec reference.
Sascha Wildner [Sat, 17 May 2014 23:05:35 +0000 (01:05 +0200)]
acpi.4: Refresh COMPATIBILITY and update the spec reference.

9 years agoloader.conf: Fix ACPI DSDT overriding.
Sascha Wildner [Sat, 17 May 2014 22:58:47 +0000 (00:58 +0200)]
loader.conf: Fix ACPI DSDT overriding.

Also, fix the instructions in the acpi(4) manual page.

9 years agotest: my first commit
Imre Vadasz [Sat, 17 May 2014 17:58:44 +0000 (19:58 +0200)]
test: my first commit

9 years agokernel/netgraph7: Remove KMODDEPS.
Sascha Wildner [Sat, 17 May 2014 09:45:22 +0000 (11:45 +0200)]
kernel/netgraph7: Remove KMODDEPS.

9 years agokernel/netgraph7: Fix Makefile.
Sascha Wildner [Sat, 17 May 2014 09:42:42 +0000 (11:42 +0200)]
kernel/netgraph7: Fix Makefile.

9 years agokernel/ral: Clean up a mis-delete I did.
Sascha Wildner [Fri, 16 May 2014 09:21:54 +0000 (11:21 +0200)]
kernel/ral: Clean up a mis-delete I did.

9 years agokernel/acpi: ACPI_INTEGER is obsolete since 20100121 (replaced with UINT64).
Sascha Wildner [Fri, 16 May 2014 09:09:52 +0000 (11:09 +0200)]
kernel/acpi: ACPI_INTEGER is obsolete since 20100121 (replaced with UINT64).

9 years agokernel/ral: Bring in support for further chips (RT2700/2800/3090 series).
Sascha Wildner [Thu, 15 May 2014 09:42:35 +0000 (11:42 +0200)]
kernel/ral: Bring in support for further chips (RT2700/2800/3090 series).

Unfortunately I don't have any hardware to test and no one volunteered
when I asked on the lists. Pushing anyway because it shouldn't break
RT2500/2501/2600 support. We'll see if someone reports issues with
it.

9 years agoUpdate the pciconf(8) database.
Sascha Wildner [Thu, 15 May 2014 09:20:06 +0000 (11:20 +0200)]
Update the pciconf(8) database.

May 13, 2014 snapshot from http://pciids.sourceforge.net/

9 years agokernel/acpi: i386 build fixes.
Sascha Wildner [Thu, 15 May 2014 09:06:07 +0000 (11:06 +0200)]
kernel/acpi: i386 build fixes.

9 years agokernel/acpi: Remove a debug printf I accidentally pushed.
Sascha Wildner [Thu, 15 May 2014 06:59:13 +0000 (08:59 +0200)]
kernel/acpi: Remove a debug printf I accidentally pushed.

9 years agolibmagic(3): Some MLINKS adjustments for the most recent upgrade.
Sascha Wildner [Thu, 15 May 2014 06:55:43 +0000 (08:55 +0200)]
libmagic(3): Some MLINKS adjustments for the most recent upgrade.

9 years agounits(1): Sync with FreeBSD
Eitan Adler [Thu, 15 May 2014 05:31:38 +0000 (22:31 -0700)]
units(1): Sync with FreeBSD
- fix -f and -V option
- fix a few typos
- call el_end()
- use builtin functions where appropriate

9 years agokernel/acpi: Add quirks framework (and some quirks) from FreeBSD.
Sascha Wildner [Wed, 14 May 2014 22:08:49 +0000 (00:08 +0200)]
kernel/acpi: Add quirks framework (and some quirks) from FreeBSD.

I don't know how common the signatures from the supplied quirks
are nowadays (the last addition was in 2005) but the framework
could nevertheless be useful.

For now, the ACPI_Q_MADT_IRQ0 quirk remains unimplemented because
of the way the associated code is implemented in DragonFly. This
will need further work in the future.

In-discussion-with: sephe

9 years agoktrdump(8): Remove some stuff that was not meant to be pushed.
Sascha Wildner [Wed, 14 May 2014 19:31:32 +0000 (21:31 +0200)]
ktrdump(8): Remove some stuff that was not meant to be pushed.

9 years agoktrdump(8): Add some needed newlines and remove some unneeded ones.
Sascha Wildner [Wed, 14 May 2014 17:08:06 +0000 (19:08 +0200)]
ktrdump(8): Add some needed newlines and remove some unneeded ones.

err*() will add one automatically, and some printfs were missing one.

Also, fix a small table formatting issue.

9 years agoSync zoneinfo database with tzdata2014c from ftp://ftp.iana.org/tz/releases
Sascha Wildner [Wed, 14 May 2014 07:03:31 +0000 (09:03 +0200)]
Sync zoneinfo database with tzdata2014c from ftp://ftp.iana.org/tz/releases

* africa: Egypt observes DST starting 2014-05-15 at 24:00.
    (Thanks to Ahmad El-Dardiry and Gunther Vermier.)

* asia: Remove now-confusing comment about Jordan.
    (Thanks to Oleksii Nochovnyi.)

* europe: Add a clarifying comment about how clocks in Simferopol
    Sevastopol were actually changed.

9 years agokernel/acpi: Print any errors returned by CPU capability setting using _OSC.
Sascha Wildner [Tue, 13 May 2014 04:11:33 +0000 (06:11 +0200)]
kernel/acpi: Print any errors returned by CPU capability setting using _OSC.

9 years agomcast: ifma_protospec is pointer; use NULL for it.
Sepherosa Ziehau [Mon, 12 May 2014 13:22:40 +0000 (21:22 +0800)]
mcast: ifma_protospec is pointer; use NULL for it.

9 years agoRevert "kernel/acpi: Improve the disabling of Debug object dumping."
Sascha Wildner [Mon, 12 May 2014 05:01:42 +0000 (07:01 +0200)]
Revert "kernel/acpi: Improve the disabling of Debug object dumping."

This reverts commit c9ed7d9ef60d6ffb82c02ec4822a68a29703a389.

Revert it until I've figured it out.

Reported-by: davshao
9 years agokernel/acpi: Improve the disabling of Debug object dumping.
Sascha Wildner [Sun, 11 May 2014 19:16:54 +0000 (21:16 +0200)]
kernel/acpi: Improve the disabling of Debug object dumping.

It is actually a global in ACPICA (since 20100304) so add a new
sysctl debug.acpi.enable_debug_objects that can be used to toggle
it, with the default being 0.

This commit reverts e59c6bdadc7ee647f2ac508a3d1c210b89a680b1 which
solved it differently (in the ACPICA code).

Taken-from:  FreeBSD
Reported-by: dillon (iirc)
9 years agokernel/acpi: Remove an unused define.
Sascha Wildner [Sun, 11 May 2014 17:25:55 +0000 (19:25 +0200)]
kernel/acpi: Remove an unused define.

9 years agokernel/acpi: Add some ktr events to the acpi_ec code.
Sascha Wildner [Sun, 11 May 2014 14:56:13 +0000 (16:56 +0200)]
kernel/acpi: Add some ktr events to the acpi_ec code.

Translates what FreeBSD has to our ktr(9) syntax.

Also, reduce differences with FreeBSD in some other places
but it is just cosmetical.

9 years agoix.4: Update according to the overhaul of ix(4)
Sepherosa Ziehau [Sun, 11 May 2014 13:18:54 +0000 (21:18 +0800)]
ix.4: Update according to the overhaul of ix(4)

9 years agoloader: Remove some commented out code to load modules based on PNP IDs.
Sascha Wildner [Sun, 11 May 2014 12:43:56 +0000 (14:43 +0200)]
loader: Remove some commented out code to load modules based on PNP IDs.

9 years agox86_64/ioapic: Enable GSI target CPU auto-balance by default
Sepherosa Ziehau [Sun, 11 May 2014 11:22:02 +0000 (19:22 +0800)]
x86_64/ioapic: Enable GSI target CPU auto-balance by default

The original bug, which prevented GSI target CPU auto-balance, probably
was fixed by 902419bf6d9fd0f80afc9d07cd4b3e99d20f23ca.

9 years agopolling.4: Add ix(4)
Sepherosa Ziehau [Sun, 11 May 2014 07:26:56 +0000 (15:26 +0800)]
polling.4: Add ix(4)

9 years agoinet: in_{add,del}multi should only be called in netisr0
Sepherosa Ziehau [Sun, 11 May 2014 07:14:29 +0000 (15:14 +0800)]
inet: in_{add,del}multi should only be called in netisr0

Add KASSERT to make sure about it.

While I'm here, add blank line before in_addmulti()

9 years agoinet: Dispatch in_ifdetach to netisr0 to run
Sepherosa Ziehau [Sun, 11 May 2014 06:57:06 +0000 (14:57 +0800)]
inet: Dispatch in_ifdetach to netisr0 to run

Currently:
- It only goes through two inpcb lists.  Accessing to these two lists
  is lockless MPSAFE only if the accessing is in netisr0.
- It only modifies inpcbs' multicast option, which should be modified
  in netisr0.

9 years agopfsync: Dispatch in_{add,del}multi to netisr0
Sepherosa Ziehau [Sat, 10 May 2014 13:48:44 +0000 (21:48 +0800)]
pfsync: Dispatch in_{add,del}multi to netisr0

Netisr0 is where multicast is handled.

9 years agokernel/acpi: Use ACPI_SUCCESS()/ACPI_FAILURE() in a few places.
Sascha Wildner [Sat, 10 May 2014 23:30:05 +0000 (01:30 +0200)]
kernel/acpi: Use ACPI_SUCCESS()/ACPI_FAILURE() in a few places.

9 years agokernel/acpi: Move the declaration of _debug_acpi to acpivar.h.
Sascha Wildner [Sat, 10 May 2014 23:11:37 +0000 (01:11 +0200)]
kernel/acpi: Move the declaration of _debug_acpi to acpivar.h.

9 years agokernel - Fix racing assertion
Matthew Dillon [Fri, 9 May 2014 17:24:56 +0000 (10:24 -0700)]
kernel - Fix racing assertion

* Two semaphore assertions could panic the box because they were testing
  conditions subject to SMP races.

* Move the assertions past the lock so they are no longer subject to SMP
  races.

Reported-by: marino
9 years agoigmp: Dispatch fast and slow timeout handler to netisr0
Sepherosa Ziehau [Thu, 8 May 2014 13:02:36 +0000 (21:02 +0800)]
igmp: Dispatch fast and slow timeout handler to netisr0

Netisr0 is where IGMP is to be handled.

9 years agotcp: Multicast sockopts do not make sense on TCP sockets
Sepherosa Ziehau [Wed, 7 May 2014 14:33:40 +0000 (22:33 +0800)]
tcp: Multicast sockopts do not make sense on TCP sockets

9 years agokernel: Remove two oldusb wlan drivers, rum and ural.
Sascha Wildner [Wed, 7 May 2014 13:01:43 +0000 (15:01 +0200)]
kernel: Remove two oldusb wlan drivers, rum and ural.

Both don't work even with oldusb because they have never been
ported to the current ieee80211 framework. In fact, they were
unhooked from the build at the time.

Both also exist for usb4bsd. rum(4) was ported to DragonFly
while ural(4) has yet to be ported.

9 years agoUpdate files for file-5.18 import.
Peter Avalos [Tue, 6 May 2014 17:52:16 +0000 (10:52 -0700)]
Update files for file-5.18 import.

9 years agoMerge branch 'vendor/FILE'
Peter Avalos [Tue, 6 May 2014 22:37:33 +0000 (15:37 -0700)]
Merge branch 'vendor/FILE'

9 years agokernel: Fix some boolean_t vs. int confusion.
Sascha Wildner [Tue, 6 May 2014 19:52:29 +0000 (21:52 +0200)]
kernel: Fix some boolean_t vs. int confusion.

When boolean_t is defined to be _Bool instead of int (not part of this
commit), this is what gcc is sad about.

9 years agoImport file-5.18.
Peter Avalos [Tue, 6 May 2014 17:40:32 +0000 (10:40 -0700)]
Import file-5.18.

See ChangeLog for details.

9 years agonrelease: Copying pkg.conf.sample to pkg.conf is no longer needed.
Sascha Wildner [Tue, 6 May 2014 09:20:11 +0000 (11:20 +0200)]
nrelease: Copying pkg.conf.sample to pkg.conf is no longer needed.

9 years agohammer2 - dmsg stabilization
Matthew Dillon [Mon, 5 May 2014 06:52:24 +0000 (23:52 -0700)]
hammer2 - dmsg stabilization

This is a general stabilization pass testing xdisk resumption on various
communications failures (killing the local or remote hammer2 service demon).

* Simulate failures on recursive transactions in a bottom-up fashion

* bcmp() does not return an inequality (neg, zero, or positive).  It
  returns only 0 or 1.  Change fs_label RBTREE test to strcmp()

* ref-count the state structure, use dmsg_state_hold()/dmsg_state_drop()
  to control it.  Fix at least one memory leak.

* Consolidate simulated transaction failure core into a helper
  function dmsg_msg_simulate_failure().

* Clean up the tx state on the front-end after the msg has extracted
  necessary information from it, instead of in the transmit thread.
  This is so the state fields are updated synchronously and not delayed
  by the transmit queue.

* Change xdisk's error test to avoid accidently failing a BIO due to
  a communications issue (verses an actual IO error on the remote physical
  disk).

* Remove some invalid assertions, add assertions.

9 years agohammer2 - Retool dmsg mechanics to improve virtual circuit design 2/2
Matthew Dillon [Mon, 5 May 2014 02:52:05 +0000 (19:52 -0700)]
hammer2 - Retool dmsg mechanics to improve virtual circuit design 2/2

* Use transaction stacking to effectively connect resources to consumers.
  Issuing a transaction over a received SPAN effectively creates a virtual
  circuit to the originator.

* The hammer2 service demon (userland) is currently being used to route,
  but direct kernel<->kernel socket connections are now theoretically
  possible for later performance work.  Current performance is going
  to be low due to layering.

* Get subr_diskiocom and the xdisk driver mostly working again.  The
  code is a lot cleaner but still needs considerable stability work and
  better unwinding during failure conditions.

* Start work on hammer2<->hammer2 communications.