Commit Graph

201507 Commits

Author SHA1 Message Date
arybchik
86ddba11e8 MFC r293762
sfxge: add new MCDI sensors to common code

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Reviewed by:    gnn
Sponsored by:   Solarflare Communications, Inc.
2016-01-14 16:06:17 +00:00
arybchik
ff3a73976a MFC r293761
sfxge: remove unnecessary pulling out of soft bits from RX events

These bits are changed on Medford.

Submitted by:   Mark Spender <mspender at solarflare.com>
Reviewed by:    gnn
Sponsored by:   Solarflare Communications, Inc.
2016-01-14 16:05:33 +00:00
arybchik
d70148e484 MFC r293758
sfxge: remove obsolete common code PKTFILTER module

The pktfilter module has been obsolete for some time, as
it was replaced by newer features in filter module. With
the removal of the storport driver, this module has no
users and can be removed.

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Reviewed by:    gnn
Sponsored by:   Solarflare Communications, Inc.
2016-01-14 16:04:50 +00:00
arybchik
c624bd7e69 MFC r293757
sfxge: rename hunt MCDI methods to ef10 and use for Medford

Submitted by:   Mark Spender <mspender at solarflare.com>
Reviewed by:    gnn
Sponsored by:   Solarflare Communications, Inc.
2016-01-14 16:03:24 +00:00
arybchik
ed26b746d3 MFC r293756
sfxge: rename hunt nvram methods and use for Medford

Some new partitions have been added, but they shouldn't need to be
handled any differently.

Submitted by:   Mark Spender <mspender at solarflare.com>
Reviewed by:    gnn
Sponsored by:   Solarflare Communications, Inc.
2016-01-14 16:02:15 +00:00
arybchik
410af88639 MFC r293755
sfxge: rename Huntington VPD methods to ef10 and use for Medford

Submitted by:   Mark Spender <mspender at solarflare.com>
Reviewed by:    gnn
Sponsored by:   Solarflare Communications, Inc.
2016-01-14 16:01:32 +00:00
arybchik
a07017a9a7 MFC r293754
sfxge: rename hunt RX methods to ef10 and use for Medford

Submitted by:   Mark Spender <mspender at solarflare.com>
Reviewed by:    gnn
Sponsored by:   Solarflare Communications, Inc.
2016-01-14 16:00:35 +00:00
arybchik
a93a8095a0 MFC r293753
sfxge: rename hunt TX methods to ef10 and use for Medford

Rename all except hunt_tx_qdesc_tso_create(), which creates a
fw-assisted TSO v1 descriptor which isn't supported on Medford.

Submitted by:   Mark Spender <mspender at solarflare.com>
Reviewed by:    gnn
Sponsored by:   Solarflare Communications, Inc.
2016-01-14 15:59:08 +00:00
arybchik
4b837e36e0 MFC r293752
sfxge: rename hunt ev methods to ef10 and use for Medford

Submitted by:   Mark Spender <mspender at solarflare.com>
Reviewed by:    gnn
Sponsored by:   Solarflare Communications, Inc.
2016-01-14 15:58:30 +00:00
arybchik
33dd4976fc MFC r293751
sfxge: rename hunt interrupt methods to ef10 and use on Medford

All of these apply to both Huntington and Medford.

Submitted by:   Mark Spender <mspender at solarflare.com>
Reviewed by:    gnn
Sponsored by:   Solarflare Communications, Inc.
2016-01-14 15:57:55 +00:00
arybchik
3125b72188 MFC r293750
sfxge: update SRAM methods to be no-ops on Medford as well

Submitted by:   Mark Spender <mspender at solarflare.com>
Reviewed by:    gnn
Sponsored by:   Solarflare Communications, Inc.
2016-01-14 15:56:53 +00:00
arybchik
66f59d6040 MFC r293749
sfxge: use NIC config in place of some Huntington specific PIO constants

This should allow these functions to work for Medford as well.

Submitted by:   Mark Spender <mspender at solarflare.com>
Reviewed by:    gnn
Sponsored by:   Solarflare Communications, Inc.
2016-01-14 15:55:54 +00:00
arybchik
2b0aa54bc8 MFC r293748
sfxge: change hunt specific fields of efx_nic_t to ef10

All these fields will be used in shared ef10 code, so put them in an
ef10 member of a per-architecture union, rather that in the per-chip
union.

Submitted by:   Mark Spender <mspender at solarflare.com>
Reviewed by:    gnn
Sponsored by:   Solarflare Communications, Inc.
2016-01-14 15:55:15 +00:00
arybchik
d18f701b35 MFC r293740
sfxge: update autogenerated monitors lists

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
2016-01-14 15:54:13 +00:00
arybchik
9cccbf978b MFC r293734
sfxge: add medford_impl.h, medford_nic.c, ef10_impl.h

Creating some files together to do the build system changes in one go.

Submitted by:   Mark Spender <mspender at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
2016-01-14 15:52:44 +00:00
arybchik
b6ffd9f749 MFC r293733
sfxge: add Medford sensor support

Submitted by:   Mark Spender <mspender at solarflare.com>
Reviewed by:    gnn
Sponsored by:   Solarflare Communications, Inc.
2016-01-14 15:50:13 +00:00
arybchik
ebc1613a64 MFC r293732
sfxge: use MCDIv2 on Medford

Submitted by:   Mark Spender <mspender at solarflare.com>
Reviewed by:    gnn
Sponsored by:   Solarflare Communications, Inc.
2016-01-14 15:49:15 +00:00
arybchik
78dd963d29 MFC r293731
sfxge: add Medford PCI IDs to common code

Submitted by:   Mark Spender <mspender at solarflare.com>
Reviewed by:    gnn
Sponsored by:   Solarflare Communications, Inc.
2016-01-14 15:48:10 +00:00
arybchik
7e3c277610 MFC r293730
sfxge: add sanity checking for EFX_OPT_MEDFORD build option to efx_check.h

Submitted by:   Mark Spender <mspender at solarflare.com>
Reviewed by:    gnn
Sponsored by:   Solarflare Communications, Inc.
2016-01-14 15:46:53 +00:00
arybchik
cfc98fd3c8 MFC r293658
sfxge: add Medford build option disabled by default

Submitted by:   Mark Spender <mspender at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
2016-01-14 15:45:47 +00:00
arybchik
2d5bb269bd MFC r292090
sfxge: unify MCDI response polling

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Reviewed by:    philip
Sponsored by:   Solarflare Communications, Inc.
2016-01-14 15:44:07 +00:00
arybchik
3a498291da MFC r292088
sfxge: simplify MCDI methods

It is a part of MCDI rework to share more code among NIC families.

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
2016-01-14 15:42:37 +00:00
arybchik
a8f828df71 MFC r292086
sfxge: add tunable for maximum start attetmps after reset

Reviewed by:    gnn
Sponsored by:   Solarflare Communications, Inc.
2016-01-14 15:41:03 +00:00
arybchik
8395a7e4c5 MFC r292055
sfxge: consolidate privilege check functions

To reduce code duplication in common code, consolidate similar privilege
check functions.

Submitted by:   Richard Houldsworth <rhouldsworth at solarflare.com>
Reviewed by:    gnn
Sponsored by:   Solarflare Communications, Inc.
2016-01-14 15:33:50 +00:00
arybchik
7875e75194 MFC r292053
sfxge: cleanup: fix header

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
2016-01-14 15:33:13 +00:00
arybchik
84ae9a7a15 MFC r292052
sfxge: simplify privilege checks with macro

Submitted by:   Richard Houldsworth <rhouldsworth at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
2016-01-14 15:32:24 +00:00
arybchik
e3598202c2 MFC r292010
sfxge: cleanup: removed unused variable

Submitted by:   Artem V. Andreev <Artem.Andreev at oktetlabs.ru>
Sponsored by:   Solarflare Communications, Inc.
2016-01-14 15:30:46 +00:00
arybchik
d079b1ff65 MFC r292009
sfxge: cleanup: fix (unused) EFX_OR_BYTE macro

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
2016-01-14 15:29:40 +00:00
arybchik
03abc13850 MFC r292008
sfxge: use MAC spoofing TX and MAC change privileges

Update of common code to provide a query on the MAC_SPOOFING_TX and
CHANGE_MAC privileges instead of the deprecated MAC_SPOOFING privilege.

Submitted by:   Richard Houldsworth <rhouldsworth at solarflare.com>
Reviewed by:    gnn
Sponsored by:   Solarflare Communications, Inc.
2016-01-14 15:28:46 +00:00
arybchik
c98bc0b5ee MFC r292051
sfxge: [6/6] support for MCDI proxy authorization in common code

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
2016-01-14 15:27:49 +00:00
arybchik
aec7138125 MFC r292050
sfxge: [5/6] rework event completion error handling

Required for MCDI proxy authorization support.

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
2016-01-14 15:26:58 +00:00
arybchik
1a96b5e95a MFC r292007
sfxge: [4/6] rework MCDI response polling

Required for MCDI proxy authorization support.

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
2016-01-14 15:26:06 +00:00
arybchik
f53fe55a69 MFC r291985
sfxge: [3/6] rework MCDI response handling

Required for MCDI proxy authorization support.

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Reviewed by:    gnn
Sponsored by:   Solarflare Communications, Inc.
2016-01-14 15:25:17 +00:00
arybchik
8731f2ed06 MFC r291928
sfxge: [2/6] rework MCDI response polling

Required to support MCDI proxy authorization.

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Reviewed by:    gnn
Sponsored by:   Solarflare Communications, Inc.
2016-01-14 15:24:15 +00:00
arybchik
ca693f37c8 MFC r291927
sfxge: [1/6] add common code MCDI proxy auth build option

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Reviewed by:    gnn
Sponsored by:   Solarflare Communications, Inc.
2016-01-14 15:23:23 +00:00
arybchik
20128444ff MFC r291926
sfxge: fix pointer parameter/value signedness mismatch warnings

TLV routines use 'uint8_t *', NVRAM code uses caddr_t. Just cast to
required type to fix the warning.

Required to build with -Werror=pointer-signg.

Reviewed by:    gnn
Sponsored by:   Solarflare Communications, Inc.
2016-01-14 15:22:31 +00:00
arybchik
e087672a4c MFC r291925
sfxge: fix name conflict with crc32_table from sys/crc32.h

The header is not present on FreeBSD, but exists on OmniOS where sfxge
common code is used as well.

Reviewed by:    gnn
Sponsored by:   Solarflare Communications, Inc.
2016-01-14 15:21:51 +00:00
arybchik
da3a76ecbb MFC r291924
sfxge: switch to TxQ creation specific flags

It is better do not mix TxQ creation and receive event flags since only
checksum flags are applicable to TxQ.
Also it will allow to add a new TxQ creation specific flags.

Reviewed by:    gnn
Sponsored by:   Solarflare Communications, Inc.
2016-01-14 15:16:24 +00:00
arybchik
7ba0335c79 MFC r291923
sfxge: [Sorrento] support writing of MUM firmware

When writing the MUM firmware the chunk size must be equal to the erase
size.

Submitted by:   Laurence Evans <levans at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
2016-01-14 15:15:01 +00:00
arybchik
4cb4716537 MFC r291922
sfxge: support PERMIT_SET_MAC_WHEN_FILTERS_INSTALLED flag

Use flag on vadapter alloc when reported as a supported capability.
Use the slow device reset only when the capability is missing.

Submitted by:   Richard Houldsworth <rhouldsworth at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
2016-01-14 15:13:54 +00:00
arybchik
a0bfe5b508 MFC r291862
sfxge: erase nvram partitions in chunks equal to their erase size

The erase size is reported by the nvram info command.

Submitted by:   Paul Fox <pfox at solarflare.com>
Reviewed by:    gnn
Sponsored by:   Solarflare Communications, Inc.
2016-01-14 15:12:48 +00:00
arybchik
cc983a4813 MFC r291849
sfxge: pick up the new TLV structures

The header is auto-generated from firmware sources.

Sponsored by:   Solarflare Communications, Inc.
2016-01-14 15:11:56 +00:00
arybchik
ac88703824 MFC r291848
sfxge: cleanup: remove set but not used trailer variable

Required to build with -Werror=unused-but-set-variable.

Sponsored by:   Solarflare Communications, Inc.
2016-01-14 15:11:19 +00:00
arybchik
99dbb5cce2 MFC r291847
sfxge: cleanup: remove set but not used variable with parse error indication

Required to build with -Werror=unused-but-set-variable.
Keep it under #if 0 as a reminder for parse error processing.

Sponsored by:   Solarflare Communications, Inc.
2016-01-14 15:10:35 +00:00
arybchik
70b8c5aa1c MFC r291846
sfxge: cleanup: remove set but not used saved_spec variable

Required to build with -Werror=unused-but-set-variable.

Sponsored by:   Solarflare Communications, Inc.
2016-01-14 15:08:48 +00:00
arybchik
aab91c49a4 MFC r291845
sfxge: cleanup: remove SFL9122 "Huntington" PCI IDs

The SFL9122 "Huntington" controller was never built.

Submitted by:   Mark Spender <mspender at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
2016-01-14 15:08:10 +00:00
arybchik
9f1d56691c MFC r291843
sfxge: support for MCDI logging implemented

Submitted by:   Artem V. Andreev <Artem.Andreev at oktetlabs.ru>
Sponsored by:   Solarflare Communications, Inc.
2016-01-14 15:07:02 +00:00
arybchik
73ae6a2079 MFC r291747
sfxge: [EF10] support RxQ scattering control

If, for example, a VF is configured to use a 1500 byte MTU, but the port
it is attached to is set to 9000 bytes, overlength frames can be received
by the VF. As Huntington scatters by default, these overlength packets
would be scattered across several descriptors, with all except the last
having the CONT bit set.

To avoid this, disable scatter when creating RXQs if the firmware
supports doing so, which all recent versions do. Then we only get
a single descriptor from an overlength frame. This will have the CONT
bit set to indicate it was truncated, so we can discard it.

Submitted by:   Mark Spender <mspender at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
2016-01-14 14:35:46 +00:00
arybchik
db40521c99 MFC r291746
sfxge: add additional WRITESIZE value for NVRAM_INFO command

Submitted by:   Paul Fox <pfox at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
2016-01-14 14:34:47 +00:00
arybchik
841d6c44cc MFC r291682
sfxge: regenerate MCDI headers

Sponsored by:   Solarflare Communications, Inc.
2016-01-14 14:33:30 +00:00