SVNews r330307

NOTE: This service is experimental and subject to change! Use at your own risk!

2018-03-03 02:30:52 - r330307 by np (Navdeep Parhar)

Complete list of files affected by revision r330307:

(Note: At the moment, these links point to ViewVC on They are probably slow. Do not overuse.)

   Contents     MODIFY   /stable/11  
  History   Contents   Diff   MODIFY   /stable/11/share/man/man4/cxgbe.4  
  History   Contents   Diff   MODIFY   /stable/11/share/man/man4/cxgbev.4  
  History   Contents   Diff   MODIFY   /stable/11/sys/conf/files  
  History   Contents   Diff   MODIFY   /stable/11/sys/dev/cxgbe/adapter.h  
  History   Contents   Diff   MODIFY   /stable/11/sys/dev/cxgbe/common/common.h  
  History   Contents   Diff   MODIFY   /stable/11/sys/dev/cxgbe/common/t4_hw.c  
  History   Contents   Diff   MODIFY   /stable/11/sys/dev/cxgbe/common/t4_hw.h  
   Contents     ADD   /stable/11/sys/dev/cxgbe/cudbg  
  History   Contents   Diff   MODIFY   /stable/11/sys/dev/cxgbe/cudbg/cudbg_lib.c  
  History   Contents     DELETE   /stable/11/sys/dev/cxgbe/firmware/t4fw-  
  History   Contents     ADD   /stable/11/sys/dev/cxgbe/firmware/t4fw-  
  History   Contents   Diff   MODIFY   /stable/11/sys/dev/cxgbe/firmware/t4fw_interface.h  
  History   Contents     DELETE   /stable/11/sys/dev/cxgbe/firmware/t5fw-  
  History   Contents     ADD   /stable/11/sys/dev/cxgbe/firmware/t5fw-  
  History   Contents     DELETE   /stable/11/sys/dev/cxgbe/firmware/t6fw-  
  History   Contents     ADD   /stable/11/sys/dev/cxgbe/firmware/t6fw-  
  History   Contents   Diff   MODIFY   /stable/11/sys/dev/cxgbe/firmware/t6fw_cfg.txt  
  History   Contents   Diff   MODIFY   /stable/11/sys/dev/cxgbe/firmware/t6fw_cfg_uwire.txt  
  History   Contents   Diff   MODIFY   /stable/11/sys/dev/cxgbe/iw_cxgbe/cm.c  
  History   Contents   Diff   MODIFY   /stable/11/sys/dev/cxgbe/iw_cxgbe/qp.c  
  History   Contents   Diff   MODIFY   /stable/11/sys/dev/cxgbe/offload.h  
  History   Contents   Diff   MODIFY   /stable/11/sys/dev/cxgbe/t4_ioctl.h  
  History   Contents   Diff   MODIFY   /stable/11/sys/dev/cxgbe/t4_main.c  
  History   Contents   Diff   MODIFY   /stable/11/sys/dev/cxgbe/t4_netmap.c  
  History   Contents   Diff   MODIFY   /stable/11/sys/dev/cxgbe/t4_sched.c  
  History   Contents   Diff   MODIFY   /stable/11/sys/dev/cxgbe/t4_sge.c  
  History   Contents   Diff   MODIFY   /stable/11/sys/dev/cxgbe/t4_vf.c  
  History   Contents   Diff   MODIFY   /stable/11/sys/dev/cxgbe/tom/t4_connect.c  
  History   Contents   Diff   MODIFY   /stable/11/sys/dev/cxgbe/tom/t4_cpl_io.c  
  History   Contents   Diff   MODIFY   /stable/11/sys/dev/cxgbe/tom/t4_listen.c  
  History   Contents   Diff   MODIFY   /stable/11/sys/dev/cxgbe/tom/t4_tom.c  
  History   Contents   Diff   MODIFY   /stable/11/sys/modules/cxgbe/if_cxgbe/Makefile  
  History   Contents   Diff   MODIFY   /stable/11/sys/modules/cxgbe/t4_firmware/Makefile  
  History   Contents   Diff   MODIFY   /stable/11/sys/modules/cxgbe/t5_firmware/Makefile  
  History   Contents   Diff   MODIFY   /stable/11/sys/modules/cxgbe/t6_firmware/Makefile  
  History   Contents   Diff   MODIFY   /stable/11/usr.sbin/cxgbetool/cxgbetool.c  

Commit message:

MFC r319506, r319872, r321063, r321103, r321179, r321390, r321435,
r321582, r321671, r322014, r322034, r322055, r322123, r322167, r322425,
r322549, r322914, r322960, r322962, r322964, r322985, r322990, r323006,
r323026, r323041, r323069, r323078, r323343, r323514, r323520, r324296,
r324379, r324386, r324443, r324945, r325596, r325680, r325880,
r325883-r325884, r325961, r326026, r326042, r327062, r327093, r327332,
r327528, r328420, and r328423.

cxgbe(4): Update the statistics for compound tx work requests once per
work request, not once per frame.

cxgbe(4): Do not request an FEC setting that the port does not support.

cxgbe(4): Various link/media related improvements.

- Deal with changes to port_type, and not just port_mod when a
  transceiver is changed. This fixes hot swapping of transceivers of
  different types (QSFP+ or QSA or QSFP28 in a QSFP28 port, SFP+ or
  SFP28 in a SFP28 port, etc.).

- Always refresh media information for ifconfig if the port is down.
  The firmware does not generate tranceiver-change interrupts unless at
  least one VI is enabled on the physical port. Before this change
  ifconfig diplayed potentially stale information for ports that were
  administratively down.

- Always recalculate and reapply L1 config on a transceiver change.

- Display PAUSE settings in ifconfig. The driver sysctls for this
  continue to work as well.

cxgbe(4): New ioctls to flash bootrom and boot config to the card.

cxgbe/t4_tom: Log more details about the newly ESTABLISHED tid to the
trace buffer.

cxgbe(4): Install the firmware bundled with the driver to the card if it
doesn't seem to have one. This lets the driver recover automatically
from incomplete firmware upgrades (panic, reboot, power loss, etc. in
the middle of an upgrade).

cxgbe(4): Display some more TOE parameters related to retransmission
and keepalive in the sysctl MIB. Provide tunables to change some of
these parameters. These are supposed to be setup by the firmware so
these tunables are for experimentation only.

cxgbe(4): Some updates to the common code.

- Updated register ranges.
- Helper routines for access to TP registers.
- Updated routine to read flash parameters.

cxgbe/iw_cxgbe: Log the end point's history and flags to the trace
buffer just before it's freed.

cxgbe(4): Initial import of the "collect" component of Chelsio unified
debug (cudbg) code, hooked up to the main driver via an ioctl.

The ioctl can be used to collect the chip's internal state in a
compressed dump file. These dumps can be decoded with the "view"
component of cudbg.

cxgbe(4): Always use the first and not the last virtual interface
associated with a port in begin_synchronized_op.

cxgbe(4): Allow the TOE timer tunables to be set with microsecond
precision. These timers are already displayed in microseconds in the
sysctl MIB. Add variables to track these tunables while here.

cxgbe(4): Avoid a NULL dereference that would occur during module unload
if there were problems earlier during attach.

cxgbe(4): Add the T6 and T5 Unified Wire configuration files to the
kernel, just like for T4, when the driver is compiled into the kernel.

cxgbe(4): Save the last reported link parameters and compare them with
the current state to determine whether to generate a link-state change
notification. This fixes a bug introduced in r321063 that caused the
driver to sometimes skip these notifications.

cxgbe/t4_tom: Use correct name for the ISS-valid bit in options2.

cxgbe(4): Dump the mailbox contents in the same format as CH_DUMP_MBOX.

cxgbe(4): Verify that the driver accesses the firmware mailbox in a
thread-safe manner.

cxgbe(4): Remove write only variable from t4_port_init.

cxgbe(4): vi_mac_funcs should include the base Ethernet function. It is
already used in the driver as if it does.

cxgbe(4): Maintain one ifmedia per physical port instead of one per
Virtual Interface (VI). All autonomous VIs that share a port share the
same media.

cxgbe(4): Do not access the mailbox without appropriate locks while
creating hardware VIs.

This fixes a bad race on systems with hw.cxgbe.num_vis > 1.

cxgbe(4): Update T6/T5/T4 firmwares to

cxgbe(4): Zero out the memory allocated for the debug dump.
cudbg_collect seems to expect it this way.

cxgbe(4): Add two new debug flags -- one to allow manual firmware
install after full initialization, and another to disable the TCB
cache (T6+). The latter works as a tunable only.

Note that debug_flags are for debugging only and should not be set

cxgbe/t4_tom: Add a knob to select the congestion control algorigthm
used by the TOE hardware for fully offloaded connections. The knob
affects new connections only.

cxgbe/t4_tom: There may not be a tid to update if the connection isn't

cxgbe(4): Fix a couple of problems in the sge_wrq data path.

- start_wrq_wr must not drain the wr_list if there are incomplete_wrs
  pending. This can happen when a t4_wrq_tx runs between two

- commit_wrq_wr must examine the cookie's pidx and ndesc with the
  queue's lock held. Otherwise there is a bad race when incomplete WRs
  are being completed and commit_wrq_wr for the WR that is ahead in the
  queue updates the next incomplete WR's cookie's pidx/ndesc but the
  commit_wrq_wr for the second one is using stale values that it read
  without the lock.

cxgbetool(8): mode must be specified when creating the dump file.

cxgbe(4): Ignore capabilities that depend on TOE when the firmware
reports TOE is not available.

cxgbe(4): Provide knobs to set the holdoff parameters of TOE rx queues
separately from NIC rx queues instead of using the same parameters for
both types of queues.

cxgbetool(8): Do not create a large file devoid of useful content when
the dumpstate ioctl fails. Make the file world-readable while here.

cxgbe(4): Update T6, T5, and T4 firmwares to

cxgbetool(8): Do not close uninitialized fd on malloc failure.

cxgbe(4): Read the MPS buffer group map from the firmware as it could be
different from hardware defaults. The congestion channel map, which is
still fixed, needs to be tracked separately now. Change the congestion
setting for TOE rx queues to match the drivers on other OSes while here.

cxgbe(4): Do not request settings not supported by the port.

cxgbe(4): Excluce mdi from the check against port capabilities.

cxgbe(4): Combine all _10g and _1g tunables and drop the suffix from
their names. The finer-grained knobs weren't practically useful.

cxgbe(4): Sanitize t4_num_vis during MOD_LOAD like all other t4_*
tunables. Add num_vis to the intrs_and_queues structure as it affects
the number of interrupts requested and queues created. In future
cfg_itype_and_nqueues might lower it incrementally instead of going
straight to 1 when enough interrupts aren't available.

cxgbe(4): Remove rsrv_noflowq from intrs_and_queues structure as it does
not influence or get affected by the number of interrupts or queues.

cxgbe(4): Add core Vdd to the sysctl MIB.

cxgbe(4): Add a custom board to the device id list.

cxgbe(4): Fix unsafe mailbox access in cudbg.

cxgbe(4): Read the MFG diags version from the VPD and make it available
in the sysctl MIB.

cxgbe(4): Do not forward interrupts to queues with freelists. This
leaves the firmware event queue (fwq) as the only queue that can take
interrupts for others.

This simplifies cfg_itype_and_nqueues and queue allocation in the driver
at the cost of a little (never?) used configuration. It also allows
service_iq to be split into two specialized variants in the future.

cxgbe(4): Reduce duplication by consolidating minor variations of the
same code into a single routine.

cxgbe(4): Add a knob to enable/disable PCIe relaxed ordering. Disable it by
default when running on Intel CPUs.

cxgbe(4): Do not display harmless warning in non-debug builds.

cxgbe(4): Accept old names of a couple of tunables.

Sponsored by: Chelsio Communications


Powered by Python FreeBSD support by secnetix GmbH & Co. KG

Page generated in 5 ms, 37 files printed. Current time is 2018-03-22 05:50:49. All times are in UTC/GMT.