svn commit: r330225 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 06:56:34 2018 New Revision: 330225 URL: https://svnweb.freebsd.org/changeset/base/330225 Log: MFC r321510: [iwm] Add iwm_mvm_send_lq_cmd() from Linux iwlwifi to if_iwm_util.c. Modified: stable/11/sys/dev/iwm/if_iwm.c stable/11/sys/dev/iwm/if_iwm_util.c

svn commit: r330224 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 06:56:10 2018 New Revision: 330224 URL: https://svnweb.freebsd.org/changeset/base/330224 Log: MFC r321509: [iwm] Sync statistics API definitions with Linux iwlwifi. Modified: stable/11/sys/dev/iwm/if_iwm.c stable/11/sys/dev/iwm/if_iwmreg.h stable/11/sy

svn commit: r330226 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 06:57:02 2018 New Revision: 330226 URL: https://svnweb.freebsd.org/changeset/base/330226 Log: MFC r321511: [iwm] Sync rs (rate-selection) API definitions from Linux iwlwifi. * While there clean up alignments and line wrapping in existing definitions

svn commit: r330223 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 06:55:46 2018 New Revision: 330223 URL: https://svnweb.freebsd.org/changeset/base/330223 Log: MFC r321508: [iwm] Cleanup mbufq draining. Add iwm_xmit_queue_drain() like in iwn(4). * iwm_xmit_queue_drain() calls ieee80211_free_node(), removing a possible

svn commit: r330221 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 06:53:37 2018 New Revision: 330221 URL: https://svnweb.freebsd.org/changeset/base/330221 Log: MFC r319589: [iwm] Remove support for fw older than -17 and -22 * iwm(4) didn't use any of these definitions yet, anyway. Modified: stable/11/sys/dev/iwm/if_

svn commit: r330222 - stable/11/tests/sys/aio

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 06:54:03 2018 New Revision: 330222 URL: https://svnweb.freebsd.org/changeset/base/330222 Log: MFC r319590: Modified: stable/11/tests/sys/aio/aio_test.c Directory Properties: stable/11/ (props changed) Modified: stable/11/tests/sys/aio/aio_test.c ==

svn commit: r330220 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 06:50:34 2018 New Revision: 330220 URL: https://svnweb.freebsd.org/changeset/base/330220 Log: MFC r319582: [iwm] Ignore IWM_DEBUG_LOG_MSG notifications. * Firmware versions 21 and 22 generate some IWM_DEBUG_LOG_MSG notifications, which seem to be har

svn commit: r330218 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 06:48:18 2018 New Revision: 330218 URL: https://svnweb.freebsd.org/changeset/base/330218 Log: MFC r319579: [iwm] Remove dead code from iwm_pcie_load_cpu_sections(). * If device family is 8000 then iwm_pcie_load_cpu_sections() won't be called at all (

svn commit: r330219 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 06:50:05 2018 New Revision: 330219 URL: https://svnweb.freebsd.org/changeset/base/330219 Log: MFC r319581: [iwm] Set command code for PHY_DB as well. Modified: stable/11/sys/dev/iwm/if_iwm.c stable/11/sys/dev/iwm/if_iwm_phy_db.c stable/11/sys/dev/iwm/i

svn commit: r330217 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 06:47:52 2018 New Revision: 330217 URL: https://svnweb.freebsd.org/changeset/base/330217 Log: MFC r319578: [iwm] Check for lar_disable tunable, and lar_enabled flag from NVM. * LAR can be disabled with the hw.iwm.lar.disable tunable now. * On Family

svn commit: r330216 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 06:46:56 2018 New Revision: 330216 URL: https://svnweb.freebsd.org/changeset/base/330216 Log: MFC r318232: [iwm] Recognize IWM_FW_PAGING_BLOCK_CMD wide cmd response correctly. Modified: stable/11/sys/dev/iwm/if_iwm.c Directory Properties: stable/11/ (p

svn commit: r330209 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 06:40:08 2018 New Revision: 330209 URL: https://svnweb.freebsd.org/changeset/base/330209 Log: MFC r318219: [iwm] Properly implement iwm_wme_update callback function. * Inspired by iwn(4) and Linux iwlwifi. * Read wme parameters into a buffer within

svn commit: r330215 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 06:46:31 2018 New Revision: 330215 URL: https://svnweb.freebsd.org/changeset/base/330215 Log: MFC r318230: [iwm] Fix iwm_mvm_send_cmd_pdu(_status) declarations. Make id a uint32_t. * This fixes cases where the group id of wide commands got lost, e.g. thi

svn commit: r330214 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 06:45:24 2018 New Revision: 330214 URL: https://svnweb.freebsd.org/changeset/base/330214 Log: MFC r318231: [iwm] Revert "if_iwm - SCAN_ABORT_UMAC response doesn't use a wide id" This reverts commit cef47a9cbb0a3ce5f18369fed9403d2764884bc2. Modified: s

svn commit: r330213 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 06:44:32 2018 New Revision: 330213 URL: https://svnweb.freebsd.org/changeset/base/330213 Log: MFC r318229: [iwm] Adjust if_iwm_sta.h prototypes, don't pass iwm_node to rm_sta(). * Since a RUN -> INIT/SCAN transition seems to immediately destroy the i

svn commit: r330200 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 06:33:27 2018 New Revision: 330200 URL: https://svnweb.freebsd.org/changeset/base/330200 Log: MFC r318003: [iwm] Add iwm_nic_unlock() calls missing from previous commit. Modified: stable/11/sys/dev/iwm/if_iwm.c stable/11/sys/dev/iwm/if_iwm_pcie_trans.c D

svn commit: r330207 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 06:39:14 2018 New Revision: 330207 URL: https://svnweb.freebsd.org/changeset/base/330207 Log: MFC r318217: [iwm] Change UCODE_TLV_API #define-s from bitmasks to indexes. * Fixes oversight from commit 757eecf0e6c92745aa2eee95811e573c8300850e. fw_has_a

svn commit: r330212 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 06:42:47 2018 New Revision: 330212 URL: https://svnweb.freebsd.org/changeset/base/330212 Log: MFC r318224: [iwm] Refuse connection to APs with beacon interval < 16. Modified: stable/11/sys/dev/iwm/if_iwm.c Directory Properties: stable/11/ (props change

svn commit: r330199 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 06:32:46 2018 New Revision: 330199 URL: https://svnweb.freebsd.org/changeset/base/330199 Log: MFC r318002: [iwm] iwm_{read,write}_prph() don't grab the nic lock in iwm themselves. * Fix a couple of cases where the nic lock ended up not being grabbed

svn commit: r330208 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 06:39:44 2018 New Revision: 330208 URL: https://svnweb.freebsd.org/changeset/base/330208 Log: MFC r318218: [iwm] Process multiple frames per RX buffer. * Factor out iwm_handle_rxb() function from iwm_notif_intr(). * Removing the IWM_FH_RCSR_CHNL0_RX

svn commit: r330204 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 06:36:41 2018 New Revision: 330204 URL: https://svnweb.freebsd.org/changeset/base/330204 Log: MFC r318214: [iwm] Sanity check channel for IEEE80211_CHAN_ANYC in if_iwm_mac_ctxt.c. * This avoids panicing in some broken vap state handling cases. Modified:

svn commit: r330211 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 06:42:19 2018 New Revision: 330211 URL: https://svnweb.freebsd.org/changeset/base/330211 Log: MFC r318223: [iwm] Handle AUTH->SCAN/INIT and ASSOC->SCAN/INIT better * Tear down the relevant firmware state (i.e. the station, the vif binding) in these t

Re: svn commit: r330204 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
On 28 February 2018 at 22:36, Eitan Adler wrote: > Author: eadler > Date: Thu Mar 1 06:36:41 2018 > New Revision: 330204 > URL: https://svnweb.freebsd.org/changeset/base/330204 > > Log: > MFC r318214: This one is actually r318213, r318214, r318215 accidently. -- Eitan Adler Source, Ports, Doc

svn commit: r330210 - in stable/11/sys: conf dev/iwm modules/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 06:41:35 2018 New Revision: 330210 URL: https://svnweb.freebsd.org/changeset/base/330210 Log: MFC r318222: [iwm] Factor out firmware station handling into if_iwm_sta.c. * This adds iwm_mvm_rm_sta(), which will be used to tear down firmware state for

svn commit: r330203 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 06:35:13 2018 New Revision: 330203 URL: https://svnweb.freebsd.org/changeset/base/330203 Log: MFC r318013: [iwm] Move in_phyctxt from struct iwm_node to phy_ctxt in struct iwm_vap. * This better matches how things are organized in Linux's iwlwifi. Modif

svn commit: r330206 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 06:38:42 2018 New Revision: 330206 URL: https://svnweb.freebsd.org/changeset/base/330206 Log: MFC r318216: [iwm] Sync iwm_read_firmware()'s loop to iwlwifi's code. Modified: stable/11/sys/dev/iwm/if_iwm.c Directory Properties: stable/11/ (props changed

svn commit: r330202 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 06:34:48 2018 New Revision: 330202 URL: https://svnweb.freebsd.org/changeset/base/330202 Log: MFC r318012: [iwm] Allow listening on both chains/atennas to get diversity. This might improve throughput slightly when far from the accesspoint, apparently b

svn commit: r330201 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 06:34:21 2018 New Revision: 330201 URL: https://svnweb.freebsd.org/changeset/base/330201 Log: MFC r318005: [iwm] Add basic powermanagement support via ifconfig wlan0 powersave. * The DEVICE_POWER_FLAGS_CAM_MSK flag was removed in the upstream iwlwifi

svn commit: r330191 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 06:20:16 2018 New Revision: 330191 URL: https://svnweb.freebsd.org/changeset/base/330191 Log: MFC r314082: [iwm] Move iwm_dma_contig_alloc/_free functions to if_iwm_util.c. Modified: stable/11/sys/dev/iwm/if_iwm.c stable/11/sys/dev/iwm/if_iwm_util.c st

svn commit: r330205 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 06:38:06 2018 New Revision: 330205 URL: https://svnweb.freebsd.org/changeset/base/330205 Log: MFC r318215: [iwm] change the check for ADD_STA status, use IWM_ADD_STA_STATUS_MASK. Modified: stable/11/sys/dev/iwm/if_iwm.c Directory Properties: stable/11/

svn commit: r330198 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 06:31:07 2018 New Revision: 330198 URL: https://svnweb.freebsd.org/changeset/base/330198 Log: MFC r315926: [iwm] Add the BSS's basic rates to iwm's LQ command, not all the rates. Makes the firmware use appropriate Tx rates for ACKs. Modified: stable/1

svn commit: r330190 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 06:19:53 2018 New Revision: 330190 URL: https://svnweb.freebsd.org/changeset/base/330190 Log: MFC r314081: [iwm] Switch 7265D and 3165 devices to 7265D firmware. Modified: stable/11/sys/dev/iwm/if_iwm_7000.c Directory Properties: stable/11/ (props chan

svn commit: r330196 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 06:27:39 2018 New Revision: 330196 URL: https://svnweb.freebsd.org/changeset/base/330196 Log: MFC r315784: [iwm] Make ucode capabilities and api flags handling more like iwlwifi. Modified: stable/11/sys/dev/iwm/if_iwm.c stable/11/sys/dev/iwm/if_iwm_scan.

svn commit: r330193 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 06:24:03 2018 New Revision: 330193 URL: https://svnweb.freebsd.org/changeset/base/330193 Log: MFC r315777: [iwm] Get rid of struct iwm_rx_data argument for iwm_mvm_rx_rx_mpdu. Modified: stable/11/sys/dev/iwm/if_iwm.c Directory Properties: stable/11/ (

svn commit: r330186 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 06:16:11 2018 New Revision: 330186 URL: https://svnweb.freebsd.org/changeset/base/330186 Log: MFC r314070: [iwm] Fix typo in commit a7697ea01c11fd493aec52260a02f31df680eb91. * The sc->sc_uc.uc_error_event_table value is now at sc->error_event_table,

svn commit: r330197 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 06:29:02 2018 New Revision: 330197 URL: https://svnweb.freebsd.org/changeset/base/330197 Log: MFC r315923: [iwm] Tiny cleanup in iwm_rx_addbuf(). Modified: stable/11/sys/dev/iwm/if_iwm.c Directory Properties: stable/11/ (props changed) Modified: stab

svn commit: r330183 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 06:13:01 2018 New Revision: 330183 URL: https://svnweb.freebsd.org/changeset/base/330183 Log: MFC r314066: [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,

svn commit: r330192 - in stable/11/sys: conf dev/iwm modules/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 06:22:14 2018 New Revision: 330192 URL: https://svnweb.freebsd.org/changeset/base/330192 Log: MFC r314192,r314209: [iwm] Add support for Firmware paging, needed for newer 8000C firmware. * Uses the IWM_FW_PAGING_BLOCK_CMD firmware command to tell the fir

svn commit: r330187 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 06:16:40 2018 New Revision: 330187 URL: https://svnweb.freebsd.org/changeset/base/330187 Log: MFC r314074: [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 c

svn commit: r330195 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 06:27:10 2018 New Revision: 330195 URL: https://svnweb.freebsd.org/changeset/base/330195 Log: MFC r315780: [iwm] Remove a couple of unneeded IWM_UCODE_TLV_FLAGS_* flags. * All the supported firmwares have these flags set. * This removes the followin

svn commit: r330194 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 06:25:03 2018 New Revision: 330194 URL: https://svnweb.freebsd.org/changeset/base/330194 Log: MFC r315778: [iwm] Move mbuf hacks after sanity checks in iwm_mvm_rx_rx_mpdu(). * This avoids leaving the mbuf in a weird state, when dropping a packet. Modifi

svn commit: r330189 - stable/11/sys/modules/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 06:19:12 2018 New Revision: 330189 URL: https://svnweb.freebsd.org/changeset/base/330189 Log: MFC 314151: Unbreak if_iwm.ko after r314076 Add if_iwm_7000.c/if_iwm_8000.c to SRCS to match similar additions made to sys/conf/files after refactoring done i

svn commit: r330184 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 06:14:09 2018 New Revision: 330184 URL: https://svnweb.freebsd.org/changeset/base/330184 Log: MFC r314067: [iwm] With the previous commits, this DELAY no longer seems to be needed. Modified: stable/11/sys/dev/iwm/if_iwm.c Directory Properties: stable/11/

svn commit: r330188 - in stable/11/sys: conf dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 06:18:27 2018 New Revision: 330188 URL: https://svnweb.freebsd.org/changeset/base/330188 Log: MFC r314076: [iwm] Move struct iwm_cfg chipset configs to if_iwm_7000.c and _8000.c * This is more similar to how code/definitions are distributed in Linux'

svn commit: r330185 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 06:15:01 2018 New Revision: 330185 URL: https://svnweb.freebsd.org/changeset/base/330185 Log: MFC r314069: [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. Modified

svn commit: r330177 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 05:54:39 2018 New Revision: 330177 URL: https://svnweb.freebsd.org/changeset/base/330177 Log: MFC r313417: [iwm] Very basic DTS thermal sensor support (prints temp as debug msg). * Adds IWM_DEBUG_TEMP debug message type, for printing messages related

svn commit: r330182 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 06:01:33 2018 New Revision: 330182 URL: https://svnweb.freebsd.org/changeset/base/330182 Log: MFC r314065: [iwm] Synchronize firmware loading code with Linux iwlwifi. * While there, rename some functions to match the names and functionality of the si

svn commit: r330180 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 06:00:31 2018 New Revision: 330180 URL: https://svnweb.freebsd.org/changeset/base/330180 Log: MFC r313429: [iwm] SCAN_ABORT_UMAC response doesn't use a wide id Modified: stable/11/sys/dev/iwm/if_iwm.c Directory Properties: stable/11/ (props changed) M

svn commit: r330174 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 05:52:27 2018 New Revision: 330174 URL: https://svnweb.freebsd.org/changeset/base/330174 Log: MFC r313414: [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 currentl

svn commit: r330173 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 05:51:35 2018 New Revision: 330173 URL: https://svnweb.freebsd.org/changeset/base/330173 Log: MFC r313413: [iwm] Add scan abort functions, to properly cancel a running scan. * Uses the notification wait api to wait for the corresponding scan complete

svn commit: r330179 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 05:59:58 2018 New Revision: 330179 URL: https://svnweb.freebsd.org/changeset/base/330179 Log: MFC r313427: [iwm] Recognize the IWM_UCODE_TLV_FW_MEM_SEG firmware section type. * Will be needed for loading version 22 of 7265D firmware. Modified: stable/

svn commit: r330172 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 05:50:48 2018 New Revision: 330172 URL: https://svnweb.freebsd.org/changeset/base/330172 Log: MFC r313412: [iwm] Get rid of iwm_disable_rx_dma, just use iwm_pcie_rx_stop directly. * This also fixes one of many small nic lock handling bugs, and matches

svn commit: r330181 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 06:00:59 2018 New Revision: 330181 URL: https://svnweb.freebsd.org/changeset/base/330181 Log: MFC r313430: [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

svn commit: r330178 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 05:58:53 2018 New Revision: 330178 URL: https://svnweb.freebsd.org/changeset/base/330178 Log: MFC r313418: [iwm] Recognize IWM_DTS_MEASUREMENT_NOTIF_WIDE notification. * Add the command groups enum, and the iwm_phy_ops_subcmd_ids enum to if_iwmreg.h

svn commit: r330176 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 05:53:55 2018 New Revision: 330176 URL: https://svnweb.freebsd.org/changeset/base/330176 Log: MFC r313416: [iwm] Only for family 7000 power-down busmaster DMA clocks when stopping. Modified: stable/11/sys/dev/iwm/if_iwm.c Directory Properties: stable/11/

svn commit: r330169 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 05:46:11 2018 New Revision: 330169 URL: https://svnweb.freebsd.org/changeset/base/330169 Log: MFC r313317: [iwm] Change 2nd arg of iwm_phy_db_set_section() to struct iwm_rx_packet. * This matches the function declaration in Linux's iwlwifi. Modified:

svn commit: r330170 - in stable/11/sys: conf dev/iwm modules/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 05:48:20 2018 New Revision: 330170 URL: https://svnweb.freebsd.org/changeset/base/330170 Log: MFC r313322,r313354: [iwm] Add implementation of the notification wait api from iwlwifi. Added: stable/11/sys/dev/iwm/if_iwm_notif_wait.c - copied unchanged

svn commit: r330175 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 05:53:12 2018 New Revision: 330175 URL: https://svnweb.freebsd.org/changeset/base/330175 Log: MFC r313415: [iwm] Implement apmg_wake_up_wa workaround properly for 7000 family. * Add iwm_pcie_set_cmd_in_flight() and iwm_pcie_clear_cmd_in_flight() help

svn commit: r330171 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 05:49:32 2018 New Revision: 330171 URL: https://svnweb.freebsd.org/changeset/base/330171 Log: MFC r313325: [iwm] Use notification wait API to wait for calibration to complete. Tested: * 7260, STA mode (2g, 5g) Modified: stable/11/sys/dev/iwm/if_i

svn commit: r330168 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 05:45:22 2018 New Revision: 330168 URL: https://svnweb.freebsd.org/changeset/base/330168 Log: MFC r313315,r313316: [iwm] Get rid of some gratuitous constant renaming wrt. Linux iwlwifi. * IWM_UCODE_SECT_MAX -> IWM_UCODE_SECTION_MAX * IWM_UCODE_TYPE_

svn commit: r330165 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 05:42:00 2018 New Revision: 330165 URL: https://svnweb.freebsd.org/changeset/base/330165 Log: MFC r313311: [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

svn commit: r330166 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 05:43:10 2018 New Revision: 330166 URL: https://svnweb.freebsd.org/changeset/base/330166 Log: MFC r313312: [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 fa

svn commit: r330167 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 05:44:16 2018 New Revision: 330167 URL: https://svnweb.freebsd.org/changeset/base/330167 Log: MFC r313314: [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,

svn commit: r330164 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 05:40:00 2018 New Revision: 330164 URL: https://svnweb.freebsd.org/changeset/base/330164 Log: MFC r313310: [iwm] make sure we call iwm_detach_local() only once. Modified: stable/11/sys/dev/iwm/if_iwm.c stable/11/sys/dev/iwm/if_iwmvar.h Directory Properti

svn commit: r330162 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 05:09:08 2018 New Revision: 330162 URL: https://svnweb.freebsd.org/changeset/base/330162 Log: MFC r313308: [iwm] The HW Revision stepping constants should be in if_iwmreg.h. Modified: stable/11/sys/dev/iwm/if_iwmreg.h stable/11/sys/dev/iwm/if_iwmvar.h Di

svn commit: r330161 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 05:08:27 2018 New Revision: 330161 URL: https://svnweb.freebsd.org/changeset/base/330161 Log: MFC r313307: [iwm] TODO for QOS support. Modified: stable/11/sys/dev/iwm/if_iwm_mac_ctxt.c Directory Properties: stable/11/ (props changed) Modified: stable/

svn commit: r330163 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 05:09:49 2018 New Revision: 330163 URL: https://svnweb.freebsd.org/changeset/base/330163 Log: MFC r313309: [iwm] Sync if_iwm_phy_db code with Linux iwlwifi. Modified: stable/11/sys/dev/iwm/if_iwm.c stable/11/sys/dev/iwm/if_iwm_phy_db.c stable/11/sys/de

svn commit: r330159 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 05:05:08 2018 New Revision: 330159 URL: https://svnweb.freebsd.org/changeset/base/330159 Log: MFC r308577: iwm: If firmware load fails during init via iwm_preinit() we bail out before calling ieee80211_ifattach() so the taskqueue hasn't been initialized.

svn commit: r330157 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 05:01:55 2018 New Revision: 330157 URL: https://svnweb.freebsd.org/changeset/base/330157 Log: MFC r306900: iwm: add missing 'Rx errors' counter incrementation. Modified: stable/11/sys/dev/iwm/if_iwm.c Directory Properties: stable/11/ (props changed) M

svn commit: r330158 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 05:03:18 2018 New Revision: 330158 URL: https://svnweb.freebsd.org/changeset/base/330158 Log: MFC r308183: [iwm] Get rid of SYNC_RESP_STRUCT and SYNC_RESP_PTR macros. * SYNC_RESP_STRUCT and SYNC_RESP_PTR originate from the OpenBSD version of iwm, and

svn commit: r330160 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 05:06:16 2018 New Revision: 330160 URL: https://svnweb.freebsd.org/changeset/base/330160 Log: MFC r308777: [iwm] Sync iwm_nvm_read_chunk() function with Linux iwlwifi. This fixes an error handling detail in iwm_nvm_read_chunk(), where an error response

svn commit: r330156 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 04:59:55 2018 New Revision: 330156 URL: https://svnweb.freebsd.org/changeset/base/330156 Log: MFC r306286: [iwm] fix default antenna selection a bit; fix 5GHz rate control handling. * Don't do the antenna switching when setting up the rate table - we don

svn commit: r330155 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 04:58:00 2018 New Revision: 330155 URL: https://svnweb.freebsd.org/changeset/base/330155 Log: MFC r306142: [iwm] use rate control info from the node txrates; use mgmtrate for EAPOL frames This changes the transmit rate control code to do a few things:

svn commit: r330154 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 04:56:49 2018 New Revision: 330154 URL: https://svnweb.freebsd.org/changeset/base/330154 Log: MFC r306007: [iwm] Improve reliability of iwm_release on disassociation a bit. * We need to first call ivp->iv_newstate(), to enqueue the deauth/deassoc mgm

svn commit: r330153 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 04:55:00 2018 New Revision: 330153 URL: https://svnweb.freebsd.org/changeset/base/330153 Log: MFC r306005: [iwm] Remove dead fw_totlen from struct iwm_fw_sects; clean up struct iwm_nvm_data. * No functional change, none of these values were ever read.

svn commit: r330152 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 04:53:54 2018 New Revision: 330152 URL: https://svnweb.freebsd.org/changeset/base/330152 Log: MFC r306005: [iwm] Use IWM_DEFAULT_SCAN_CHANNELS define as default for sc_capa_n_scan_channels. Modified: stable/11/sys/dev/iwm/if_iwm.c stable/11/sys/dev/iwm/

svn commit: r330151 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 04:52:23 2018 New Revision: 330151 URL: https://svnweb.freebsd.org/changeset/base/330151 Log: MFC r306004: [iwm] Remove deprecated scan API definitions. * This removes deprecated scan API definitions, which have been unused since the upgrade to versi

svn commit: r330150 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 04:50:42 2018 New Revision: 330150 URL: https://svnweb.freebsd.org/changeset/base/330150 Log: MFC r30600 [iwm] Remove wrappers around iwm_dma_contig_free() calls. No functional changes. Modified: stable/11/sys/dev/iwm/if_iwm.c Directory Properties:

svn commit: r330149 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 04:49:42 2018 New Revision: 330149 URL: https://svnweb.freebsd.org/changeset/base/330149 Log: MFC r306002 [iwm] Fix iwm_poll_bit() error value check in iwm_attach(). The iwm(4) iwm_poll_bit() function returns 1 on success, and 0 on failure, whereas the

svn commit: r330148 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 04:46:58 2018 New Revision: 330148 URL: https://svnweb.freebsd.org/changeset/base/330148 Log: MFC r306001 [iwm] Fix off-by-one check in iwm_read_firmware(). This fixes a potential buffer overrun in the firmware parsing code. Modified: stable/11/sys/de

svn commit: r330147 - head/sys/powerpc/booke

2018-02-28 Thread Justin Hibbits
Author: jhibbits Date: Thu Mar 1 04:44:17 2018 New Revision: 330147 URL: https://svnweb.freebsd.org/changeset/base/330147 Log: Fix the psl_userset32 definition. It should be based on psl_userset, not psl_kernset. As kernset, it would inherit kernel config, including privilege level. Mo

svn commit: r330146 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 04:43:52 2018 New Revision: 330146 URL: https://svnweb.freebsd.org/changeset/base/330146 Log: MFC r306000 [iwm] Remove unused field from iwm_rx_data. Use uint32_t instead of enum type. The wantresp field in struct iwm_rx_data has never been used for anyt

svn commit: r330145 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 04:28:54 2018 New Revision: 330145 URL: https://svnweb.freebsd.org/changeset/base/330145 Log: MFC r305999: [iwm] Use htole16 for policy field in struct iwm_time_event_cmd_v2. The htole32 was working fine for little-endian machines, but would have been

svn commit: r330144 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 04:26:33 2018 New Revision: 330144 URL: https://svnweb.freebsd.org/changeset/base/330144 Log: MFC r305917: [iwm] fix up RSSI calculations for both scan results and normal RX operations. * hard code a noise floor of -96 for now. The noise floor update

svn commit: r330143 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 04:23:51 2018 New Revision: 330143 URL: https://svnweb.freebsd.org/changeset/base/330143 Log: MFC r304891: iwm: fix few comment typos. Modified: stable/11/sys/dev/iwm/if_iwmreg.h Directory Properties: stable/11/ (props changed) Modified: stable/11/sys

svn commit: r330142 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 04:21:18 2018 New Revision: 330142 URL: https://svnweb.freebsd.org/changeset/base/330142 Log: MFC r304880: iwm: add 'command accepted' debug notification (copied from wpi(4)). Now it should be easier to find out which command causes firmware

svn commit: r330140 - stable/11/sys/dev/iwm

2018-02-28 Thread Eitan Adler
Author: eadler Date: Thu Mar 1 03:05:00 2018 New Revision: 330140 URL: https://svnweb.freebsd.org/changeset/base/330140 Log: MFC r314073: [iwm] Remove OpenBSD-specific comment. Beautify pci cfg space accesses. Modified: stable/11/sys/dev/iwm/if_iwm.c Directory Properties: stable

svn commit: r330139 - head/stand/lua

2018-02-28 Thread Kyle Evans
Author: kevans Date: Thu Mar 1 02:31:28 2018 New Revision: 330139 URL: https://svnweb.freebsd.org/changeset/base/330139 Log: lualoader: config: Pull some messages out into constants Rather than hardcoding these things. This could lead to some form of loader localization later, but the ma

svn commit: r330138 - head/stand/lua

2018-02-28 Thread Kyle Evans
Author: kevans Date: Thu Mar 1 02:04:26 2018 New Revision: 330138 URL: https://svnweb.freebsd.org/changeset/base/330138 Log: lualoader: Dedup these "Return to main menu" entries Modified: head/stand/lua/menu.lua Modified: head/stand/lua/menu.lua =

Re: svn commit: r330135 - head/sys/ufs/ffs

2018-02-28 Thread Rodney W. Grimes
> On Wed, Feb 28, 2018 at 5:59 PM, Rodney W. Grimes < > free...@pdx.rh.cn85.dnsmgr.net> wrote: > > > > Author: cem > > > Date: Thu Mar 1 00:29:52 2018 > > > New Revision: 330135 > > > URL: https://svnweb.freebsd.org/changeset/base/330135 > > > > > > Log: > > > ffs: softdep_disk_write_complete:

svn commit: r330137 - head/sys/dev/pci

2018-02-28 Thread Conrad Meyer
Author: cem Date: Thu Mar 1 01:49:36 2018 New Revision: 330137 URL: https://svnweb.freebsd.org/changeset/base/330137 Log: pci_ioctl: Avoid returning uninitialized error value if user provided empty buffer In the weird case where the user-provided buffer was zero bytes, we could break o

Re: svn commit: r330135 - head/sys/ufs/ffs

2018-02-28 Thread Warner Losh
On Wed, Feb 28, 2018 at 5:59 PM, Rodney W. Grimes < free...@pdx.rh.cn85.dnsmgr.net> wrote: > > Author: cem > > Date: Thu Mar 1 00:29:52 2018 > > New Revision: 330135 > > URL: https://svnweb.freebsd.org/changeset/base/330135 > > > > Log: > > ffs: softdep_disk_write_complete: Quiesce spurious Cov

Re: svn commit: r330135 - head/sys/ufs/ffs

2018-02-28 Thread Rodney W. Grimes
> Author: cem > Date: Thu Mar 1 00:29:52 2018 > New Revision: 330135 > URL: https://svnweb.freebsd.org/changeset/base/330135 > > Log: > ffs: softdep_disk_write_complete: Quiesce spurious Coverity warning > > Coverity cannot determine that handle_written_indirdep() does not access > unini

svn commit: r330136 - head/sys/dev/atkbdc

2018-02-28 Thread Conrad Meyer
Author: cem Date: Thu Mar 1 00:58:59 2018 New Revision: 330136 URL: https://svnweb.freebsd.org/changeset/base/330136 Log: psm(4): Always initialize used values in debug print 'status' array passed to get_mouse_status() is usually uninitialized by callers. Fully populating it with va

svn commit: r330135 - head/sys/ufs/ffs

2018-02-28 Thread Conrad Meyer
Author: cem Date: Thu Mar 1 00:29:52 2018 New Revision: 330135 URL: https://svnweb.freebsd.org/changeset/base/330135 Log: ffs: softdep_disk_write_complete: Quiesce spurious Coverity warning Coverity cannot determine that handle_written_indirdep() does not access uninitialized 'sbp' when

svn commit: r330134 - svnadmin/conf

2018-02-28 Thread Matthew Seaman
Author: matthew (ports committer) Date: Thu Mar 1 00:05:14 2018 New Revision: 330134 URL: https://svnweb.freebsd.org/changeset/base/330134 Log: Take in remko's src commit bit for archiving, at his own request. Approved by: core Modified: svnadmin/conf/access Modified: svnadmin/conf/ac

svn commit: r330133 - in stable: 10/lib/libc/gen 11/lib/libc/gen

2018-02-28 Thread John Baldwin
Author: jhb Date: Wed Feb 28 22:39:47 2018 New Revision: 330133 URL: https://svnweb.freebsd.org/changeset/base/330133 Log: MFC 328630: Clarify that the additional arguments to makecontext() are of type int. Modified: stable/11/lib/libc/gen/makecontext.3 Directory Properties: stable/11/

svn commit: r330133 - in stable: 10/lib/libc/gen 11/lib/libc/gen

2018-02-28 Thread John Baldwin
Author: jhb Date: Wed Feb 28 22:39:47 2018 New Revision: 330133 URL: https://svnweb.freebsd.org/changeset/base/330133 Log: MFC 328630: Clarify that the additional arguments to makecontext() are of type int. Modified: stable/10/lib/libc/gen/makecontext.3 Directory Properties: stable/10/

svn commit: r330132 - in stable: 10/sys/amd64/amd64 11/sys/amd64/amd64

2018-02-28 Thread John Baldwin
Author: jhb Date: Wed Feb 28 22:33:07 2018 New Revision: 330132 URL: https://svnweb.freebsd.org/changeset/base/330132 Log: MFC 328610: Ensure 'name' is not NULL before passing to strcmp(). This avoids a nested page fault when obtaining a stack trace in DDB if the address from the first fr

svn commit: r330132 - in stable: 10/sys/amd64/amd64 11/sys/amd64/amd64

2018-02-28 Thread John Baldwin
Author: jhb Date: Wed Feb 28 22:33:07 2018 New Revision: 330132 URL: https://svnweb.freebsd.org/changeset/base/330132 Log: MFC 328610: Ensure 'name' is not NULL before passing to strcmp(). This avoids a nested page fault when obtaining a stack trace in DDB if the address from the first fr

  1   2   >