Permalink
Commits on Sep 26, 2016
  1. ath_hal: Add FCC6_FCCA regulatory domain (0x0014)

    Tested on TP-Link N900, AR9380, regdomain 0x0014 (FCC6_FCCA)
    
    Taken From FreeBSD:	SVN rev 306323 (25 SEP 2016)
    
    Thanks Adrian!
    jrmarino committed Sep 26, 2016
  2. kernel/psm: Support newer Synaptics touchpads

    Taken-from: FreeBSD
    ddbilik committed with Sascha Wildner Sep 26, 2016
Commits on Sep 25, 2016
  1. kernel/clock_gettime: Various fixes.

    * Fix CLOCK_PROF and CLOCK_VIRTUAL to behave like FreeBSD's. They are
      not meant to return the values of ITIMER_PROF and ITIMER_VIRTUAL
      (which are decreasing, see getitimer(2)), like they were implemented
      by 91810a6. This also fixes
      CLOCK_PROCESS_CPUTIME_ID.
    
    * Fix CLOCK_PROCESS_THREAD_ID. It was adding the values wrongly in a
      way that could cause tv_nsec to overflow (i.e. become >= 1000000000).
    
    * Fix clock_getres() for CLOCK_{PROCESS,THREAD}_CPUTIME_ID.
    
    * Mention CLOCK_{PROCESS,THREAD}_CPUTIME_ID in clock_gettime()'s manual
      page.
    
    * Bring in some minor manual page fixes from FreeBSD.
    
    Reported-by:   zhtw
    Dragonfly-bug: <https://bugs.dragonflybsd.org/issues/2951>
    Sascha Wildner committed Sep 25, 2016
  2. if_iwm - Move struct iwm_cfg chipset configs to if_iwm_7000.c and _80…

    …00.c
    
    * This is more similar to how code/definitions are distributed in
      Linux's iwlwifi.
    
    * This should make recognizing new chipset variants, and adding additional
      flags from the Linux iwlwifi code easier, without blowing up if_iwm.c
    
    Taken-From: Linux iwlwifi
    ivadasz committed Sep 25, 2016
  3. if_iwm - Simplify device id matching code a bit.

    * Just add the struct iwm_cfg pointers to the iwm_devices array, to get
      rid of the large switch clause.
    ivadasz committed Sep 25, 2016
Commits on Sep 24, 2016
  1. pthread: Init libthread_xu also in pthread_key_create()

    Previously libtreahd_xu was only prepared in pthread_create()
    but there are cases where keys need to be initialized before.
    
    Solves runtime of statically linked gfortran programs with -pthread
    (libgfortran calls newlocale() when setting up the environment).
    zrj-rimwis committed with zrj Sep 16, 2016
  2. <pthread.h>: Avoid namespace pollution.

    Rename MUTEX_TYPE_MAX -> PTHREAD_MUTEX_TYPE_MAX to avoid clashes
    with types in user source codes. Adjust all use cases.
    
    While there, remove deprecated unused compat mutex types.
    zrj-rimwis committed with zrj Sep 22, 2016
  3. <pthread.h>: Mark some __nonnull(x) cases.

    zrj-rimwis committed with zrj Sep 22, 2016
  4. <pthread.h>: Visibility changes.

    While there, remove prototypes of pthread_attr_{get,set}floatstate()
    looks like they never were implemented, so do not advertise them.
    zrj-rimwis committed with zrj Sep 22, 2016
  5. <pthread.h>: Perform some style(9) cleanup.

    Change indentation to a single tab, since both protype names and arguments
    are quite long and later added attribute decorations will only make it worse.
    
    Strictly no functional change, just shifting stuff around for readability and
    upcoming changes.
    zrj-rimwis committed with zrj Sep 22, 2016
  6. Use recently added attributes in few standard headers.

    There attributes are to assits compiler making better analysis
    doring compilation time. Like branch prediction and hinting.
    
    While there, for now prefer to use __attribute__((__noreturn__)) to
    _Noreturn, since neither OpenBSD or NetBSD has it at all and in our
    variant we don't handle it in c++ case ([[noreturn]]) anyway.
    Looks to be only a workaround for some old clang++ version.
    zrj-rimwis committed with zrj Sep 22, 2016
  7. <stdlib.h>: Change visibility of few POSIX extensions to ISO C.

    Seems it should be like this.
    zrj-rimwis committed with zrj Sep 22, 2016
  8. style(9): Perform some cleanup in few standard headers.

    For upcomming changes. No functional change.
    
    Kindly-requested-by: swildner@
    zrj-rimwis committed with zrj Sep 22, 2016
  9. <sys/cdefs.h>: Add support for alloc_align, alloc_size and malloc att…

    …ributes.
    
      * __alloc_align tells the compiler that one of the arguments is a
        minimal alignment for pointer to help with pointers analysis.
      * __alloc_size tells the compiler that one of the arguments is a
        size of a pointer returned by function.
      * __malloclike tells the compiler that returned pointer does not
        alias any other pointer to help futher optimizations.
    
    While there, add partial support for clang (as it is in FreeBSD).
    zrj-rimwis committed with zrj Sep 20, 2016
  10. <sys/cdefs.h>: Be more careful with _Noreturn.

    With modern gcc started using g++ for bootstraps _Noreturn must
    be handled with a bit of extra care.
    zrj-rimwis committed with zrj Sep 20, 2016
  11. <sys/cdefs.h>: Move __warn_unused_result__ to 3.4

    Looks like it is reliably available only at 3.4 so change it.
    zrj-rimwis committed with zrj Sep 20, 2016
  12. <sys/cdefs.h>: Style(9) fixes.

    Mostly tabs, no functional change except for removal
    of extra semicolon in __strong_reference() macro.
    zrj-rimwis committed with zrj Sep 20, 2016
  13. bootstrap: Fix old boostrapping issue once and for all.

    This was fallout after iconv() removal of 'const' attribute to conform
    with POSIX. All the later hacks are starting to accumulate and prevent
    easy further base system upgrading. So given that main issue is c++
    specific and only needed for bootstraping process deal with it straight
    and remove all hacks(include shoehornings) that were caused by it.
    
    To fix bootstrapping problems add WORLD_VERSION variable that indicates
    current DragonFly base version and could be used to retrospectively
    help bootstrapping from older releases. Makefile changes that depend on
    WORLD_VERSION should *only* be used as a once switch and during native
    compilations should *not* change default world makefiles logic.
    zrj-rimwis committed with zrj Sep 21, 2016
Commits on Sep 23, 2016
  1. if_iwm - Fix typo in commit a7697ea.

    * The sc->sc_uc.uc_error_event_table value is now at sc->error_event_table,
      and not sc->umac_error_event_table.
    ivadasz committed Sep 23, 2016
  2. if_iwm - Get rid of unneeded IWM_FWDMASEGSZ and IWM_FWMAXSIZE constants

    * We only need IWM_FH_MEM_TB_MAX_LENGTH bytes for the fw_dma memory.
    ivadasz committed Sep 23, 2016
  3. if_iwm - Sync IWM_MVM_ALIVE waiting and start_fw handling with iwlwifi.

    * Use the notification wait API, like it's done in the Linux iwlwifi code,
      to wait for the IWM_MVM_ALIVE notification.
    
    * This also should fix some firmware load interrupt issues, and errors
      in the nic lock using.
    
    Taken-From: Linux iwlwifi
    ivadasz committed Sep 23, 2016
  4. if_iwm - Synchronize firmware loading code with Linux iwlwifi.

    * While there, rename some functions to match the names and functionality
      of the similarly named functions in Linux iwlwifi.
    
    Taken-From: Linux iwlwifi
    ivadasz committed Sep 9, 2016
Commits on Sep 22, 2016
  1. if_iwm - Improve reliability of iwm_release on disassociation a bit.

    * We need to first call ivp->iv_newstate(), to enqueue the deauth/deassoc
      mgmt frame, then flush the tx queue, before actually calling
      iwm_release().
    
    * cycling a wlan connection via wpa_cli frontend to wpa_supplicant, by
      issuing disconnect and reconnect commandos works quite well.
      (There is still an issue when disconnecting to quickly after completing
       authentication/association).
    
    * Reassociating or roaming via wpa_supplicant is still broken.
    ivadasz committed Sep 17, 2016
  2. if_iwm - Remove 1s delay after fw loading. Can't reproduce issues on …

    …AC8260.
    
    The 1s delay was added in the update to version 16 fw, where Family 8000
    support was added.
    ivadasz committed Sep 22, 2016
Commits on Sep 21, 2016
  1. vkernel - Invalidate pte before setting attributes to the vm_page

    - Fixes a problem at mountroot time where it doesn't find any disk
      even though the disk is detected earlier.
    tuxillo committed Sep 20, 2016
  2. vkernel - Fix a vkernel lockup on startup

    - During ap_init() any pending IPIs is processed manually so
      clear gd_npoll as the real kernel does.
    - Do not disable interrupts for vkernels during lwkt_send_ipiq3()
      because they don't seem to be re-enabled afterwards as they should.
      I'm not entirely sure this is the right fix, more investigation
      is required.
    tuxillo committed Sep 20, 2016
Commits on Sep 20, 2016
  1. if_iwm - Recognize the IWM_UCODE_TLV_FW_MEM_SEG firmware section type.

    * Will be needed for loading version 22 of 7265D firmware.
    ivadasz committed Sep 20, 2016