Permalink
Commits on Sep 15, 2016
  1. Update the pciconf(8) database.

    September 13, 2016 snapshot from http://pciids.sourceforge.net/
    Sascha Wildner committed Sep 15, 2016
Commits on Sep 12, 2016
  1. if_iwm - Use iwm_mvm_scan_stop_wait to properly abort scans.

    * Add IWM_FLAG_SCAN_RUNNING to sc->sc_flags to track whether the firmware
      is currently running a scan, in order to decide wheter iwm_scan_end
      needs to abort a running scan.
    
    * In iwm_scan_end, if the scan is still running, we now abort it, in order
      to keep the firmware scanning state in sync.
    
    * Try to make things a bit simpler, by reacting on the
      IWM_SCAN_OFFLOAD_COMPLETE and IWM_SCAN_COMPLETE_UMAC notifications,
      instead of IWM_SCAN_ITERATION_COMPLETE and
      IWM_SCAN_ITERATION_COMPLETE_UMAC. This should be fine since we always
      only tell the firmware to do a single scan iteration anyway.
    ivadasz committed Jul 17, 2016
  2. if_iwm - Add scan abort functions, to properly cancel a running scan.

    * Uses the notification wait api to wait for the corresponding scan
      complete notification after sending the abort command.
    
    Taken-From: Linux iwlwifi
    ivadasz committed Jul 18, 2016
Commits on Sep 11, 2016
  1. if_iwm - Get rid of iwm_disable_rx_dma, just use iwm_pcie_rx_stop dir…

    …ectly.
    
    * This also fixes one of many small nic lock handling bugs, and matches
      iwlwifi's code.
    ivadasz committed Sep 11, 2016
  2. if_iwm - Use notification wait API to wait for calibration to complete.

    Taken-From: Linux iwlwifi
    ivadasz committed Sep 11, 2016
  3. if_iwm - Add implementation of the notification wait api from iwlwifi.

    Taken-From: Linux iwlwifi
    ivadasz committed Jul 18, 2016
  4. if_iwm - Change 2nd arg of iwm_phy_db_set_section() to struct iwm_rx_…

    …packet.
    
    * This matches the function declaration in Linux's iwlwifi.
    ivadasz committed Sep 11, 2016
  5. if_iwm - Get rid of some gratuitous constant renaming wrt. Linux iwlw…

    …ifi.
    
    * IWM_UCODE_SECT_MAX -> IWM_UCODE_SECTION_MAX
    
    * IWM_UCODE_TYPE_* -> IWM_UCODE_* (except for IWM_UCODE_TYPE_MAX which
      stays).
    ivadasz committed Sep 6, 2016
  6. if_iwm - Get rid of SYNC_RESP_STRUCT and SYNC_RESP_PTR macros.

    * Not needed, because we just do a single bus_dmamap_sync for syncing the
      complete received frame, instead of explicitly bus_dmamap_sync-ing
      subranges of the frame like in the original OpenBSD code.
    ivadasz committed Sep 11, 2016
Commits on Sep 9, 2016
  1. sbin/hammer: Add clrpfs()

    The one in getpfs() is okay to clear pfs_id with -1,
    because scanpfsid() will overwrite pfs_id without using it.
    
    It's also okay to clear the whole &pfs before init_pfsd().
    This is actually better than not clearing header part.
    kusumi committed Sep 9, 2016
Commits on Sep 8, 2016
  1. powerd - Detect power state changes

    * The list of available frequencies changes when the power state changes,
      detect such changes and set parameters for all cpus verses making
      incremental changes.
    
    * Fixes issue with powerd leaving the laptop running at a lower frequency
      when the laptop is unplugged and then plugged back in.
    Matthew Dillon committed Sep 8, 2016
  2. sys/vfs/hammer: Remove wrong comment

    This comment is true for other ioctls, but not for HAMMERIOC_SET_PSEUDOFS.
    
    hammer_mkroot_pseudofs() uses this ip to make sure localization
    equals that of PFS#0. In other words, a new PFS can only be created
    under PFS#0.
    kusumi committed Sep 8, 2016
  3. sbin/hammer: Return -1 if readlink(2) failed

    If the path is a link and readlink(2) failed, it shouldn't continue
    with empty buf[].
    kusumi committed Sep 8, 2016
  4. sbin/hammer: Refactoring

    fd is < 0 only when both scanpfs() and open(2) failed.
    kusumi committed Sep 8, 2016
  5. corepower: Fix identify method for multi-cpu-package systems

    CHIP_LEVEL means physical cpu package, while PACKAGE_LEVEL means
    the whole box; admittedly it is kinda confusion to me at least.
    Sepherosa Ziehau committed Sep 8, 2016
  6. Fix build with NO_OPENSSL set

    In addition to several missing CFLAGS to point to the private libressl
    headers, various issues related to libressl were fixed.  These were
    exposed by setting NO_OPENSSL in make.conf (and they were obscured
    when the compiler found the original openssl headers).
    jrmarino committed Sep 8, 2016
  7. libc - restir arc4random() on fork()

    * Fix an issue where the arc4random() function was not being re-stirred
      on a fork.
    
    Reported-by: zrj
    Matthew Dillon committed Sep 8, 2016
  8. Remove duplicate XAUTH_PATH handling

    The XAUTH_PATH definition and CFLAG are defined in Makefile.ssh.common
    which in included by these two makefiles, so eliminate the redundant
    versions.
    
    Reported by:	studbolt
    jrmarino committed Sep 8, 2016
  9. uipc: Make sure that listen is completed.

    For unix socket, only HAVEPCCACHED really means the listen has been
    completed.
    
    Reported-by: dillon@
    Sepherosa Ziehau committed Sep 7, 2016
Commits on Sep 7, 2016
  1. Switch base to use private LibreSSL libaries

    All base users of the OpenSSL libraries (libssl.so and libcrypto.so) have
    been modified to link against the new LibreSSL versions instead.
    
    The OpenSSL libraries are still built by default, but nothing in base will
    use them.  However, its certain that a myriad of dports link to OpenSSL
    although this may change in the future.
    
    The OpenSSL library building can be suppressed by putting NO_OPENSSL in
    /etc/make.conf.  The existing OpenSSL libraries and headers are not (yet)
    removed, however, even with that setting.
    jrmarino committed Sep 7, 2016
  2. if_iwm - Sync valid_tx_ant and valid_rx_ant mask handling with iwlwifi.

    * This fixes the phy_cfg field sent in the iwm_send_phy_cfg_cmd()
      command, which wasn't taking into account the valid_rx_ant and
      valid_tx_ant masks from nvm_data before.
    ivadasz committed Sep 7, 2016
  3. if_iwm - Use chipset configuration structs like iwlwifi does.

    * This makes it a bit easier to factor out common parts for e.g. the
      7000 chipset family.
    
    * Add iwm7265d config, and recognize the 7265D chipset variant via the
      hardware revision.
    ivadasz committed Sep 6, 2016
  4. if_iwm - Use ic->ic_tq for iwm_endscan_cb instead of a private taskqu…

    …eue.
    
    Taken-From: FreeBSD (svn r303326)
    ivadasz committed Jul 26, 2016
  5. powerd - Add temperature-based management

    * Add temperature-based management, with a default range of 75:85 (in C).
      If the cpu temperature exceeds the low range, powerd will enter
      temperature control mode and begin ramping-down the cpu frequency
      regardless of the load in order to prevent the laptop from reaching
      the high range.
    
    * Add -H lowtemp:hightemp option to allow the range to be set when
      starting or restarting powerd.
    
    * Add code to automatically kill a previously-running powerd when a new
      powerd is started.  This makes the system operator's life easier as there
      is no need to hunt-down and kill the previously-running powerd when
      restarting it with new options.
    
    * No desktop or server should ever get to 75C unless your cooling is broken,
      so this feature is primarily targetted at laptops.  Many laptops can exceed
      80C due to bad cooling design (and poor-design in general), and a vendor
      propensity to goose the specs to make their laptops look good on paper.
      Even the BIOS HOT cap tends to actually be too hot for continuous use.
    
      But it just isn't a good idea to exceed 80C regardless of what the specs
      say.  The laptop will last a lot longer and this reduces your chances of
      having melt-down or fire.  People who run BSD or Linux systems on laptops
      often do bulk compiles on them and/or other things, such as multiple
      browser windows, tabs, a lot of multi-media, multiple video windows,
      multiple video outputs, etc, which can utilize all available resources
      on the laptop.  Vendors usually don't take all of this into account.
      This feature can allow all of this to happen without burning the laptop
      up.
    
      You can also use this feature if your laptop gets too hot when sitting on
      your lap :-).
    
    Tested-by: Multiple people.
    Matthew Dillon committed Sep 7, 2016
  6. caesar(6): Mention rot13(6) too.

    Taken-from: FreeBSD
    zrj-rimwis committed with zrj Sep 7, 2016
  7. WORLD_CCOPTLEVEL: Unbreak world at -O2

    LibreSSL import, -fstrict-aliasing
    zrj-rimwis committed with zrj Sep 7, 2016
  8. kernel - Deal with lost IPIs (VM related) (2)

    * Fix an issue where Xinvltlb interacts badly with a drm console framebuffer,
      imploding the machine.  The 1/16 second watchdog can trigger during certain
      DRM operations due to excessive interrupt disablement in the linux DRM code.
    
    * Avoid kprintf()ing anything by default.
    
    * Also make a minor fix to the watchdog logic to force the higher-level
      Xinvltlb loop to re-test.
    Matthew Dillon committed Sep 7, 2016
Commits on Sep 6, 2016
  1. Add private versions of libcrypto and libssl (LibreSSL v2.4.2)

    Unless NO_LIBRESSL is defined in make.conf, the next buildworld
    will install headers at /usr/include/priv/openssl.  Four new
    libraries will be install here:
      /lib/priv/libprivate_crypto.so.38
      /lib/priv/libprivate_ssl.so.39
      /usr/lib/priv/libprivate_crypto.a
      /usr/lib/priv/libprivate_ssl.a
    The symlinks are installed:
      /usr/lib/priv/libprivate_crypro.so
      /usr/lib/priv/libprivate_ssl.so
    
    Right now, nothing in userland links to these libraries.  In the
    future, the userland will be linked to these LibreSSL private
    libraries instead of the base OpenSSL libraries.
    jrmarino committed Sep 6, 2016
  2. if_iwm - Sync nvm parsing code with Linux iwlwifi.

    * sc->sc_nvm becomes sc->nvm_data and is now a pointer instead of an
      inlined struct.
    
    * Add sc->eeprom_size and sc->nvm_hw_section_num configuration values to
      struct iwm_softc.
    
    * For now continue to avoid negative error return-values, and use pointer
      variables for some return values, as before.
    
    * Continue to omit LAR (location aware regulatory) related code as well.
    ivadasz committed Sep 6, 2016
  3. bcd(6): Add decoding option and few extras.

    While there, do the same for ppt(6).
    
    Taken-from: OpenBSD
    zrj-rimwis committed with zrj Sep 6, 2016