Skip to content

Commit 98d0944

Browse files
authored
Merge pull request #262 from Mellanox/master_devel
Merging master_devel to master for release 4.13.3-1
2 parents 448c5cb + 30267f2 commit 98d0944

File tree

121 files changed

+3654
-641
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+3654
-641
lines changed

Makefile.am

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@
3030
# SOFTWARE.
3131
#--
3232

33-
SUBDIRS = common mft_utils ext_libs $(TOOLS_CRYPTO) tools_layouts ${MTCR_CONF_DIR} mtcr_py $(MAD_IFC) reg_access cmdif $(XZ_UTILS_DIR) dev_mgt tools_res_mgmt mvpd mflash fw_comps_mgr libmfa pldmlib mlxconfig mlxfwops cmdparser $(FW_MGR_TOOLS) flint small_utils mstdump ${ADABE_TOOLS} tracers
33+
SUBDIRS = common mft_utils ext_libs $(TOOLS_CRYPTO) tools_layouts ${MTCR_CONF_DIR} mtcr_py $(MAD_IFC) reg_access cmdif $(XZ_UTILS_DIR) dev_mgt tools_res_mgmt mvpd mflash fw_comps_mgr libmfa pldmlib mlxconfig mlxfwops cmdparser $(FW_MGR_TOOLS) flint small_utils mstdump ${ADABE_TOOLS} tracers resourcedump
3434

3535
DIST_SUBDIRS = tracers
3636

37-
man_MANS = man/mstflint.1 man/mstconfig.1 man/mstmcra.1 man/mstmread.1 man/mstmwrite.1 man/mstmtserver.1 man/mstregdump.1 man/mstvpd.1 man/mstprivhost.1 man/mstarchive.1 man/mstreg.1 man/mstfwtrace.1 man/mstlink.1 man/mstcongestion.1 man/mstfwmanager.1 man/mstfwreset.1
37+
man_MANS = man/mstflint.1 man/mstconfig.1 man/mstmcra.1 man/mstmread.1 man/mstmwrite.1 man/mstmtserver.1 man/mstregdump.1 man/mstvpd.1 man/mstprivhost.1 man/mstarchive.1 man/mstreg.1 man/mstfwtrace.1 man/mstlink.1 man/mstcongestion.1 man/mstfwmanager.1 man/mstfwreset.1 man/mstresourcedump.1
3838

3939
EXTRA_DIST = \
4040
mstflint.spec \

configure.ac

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@
3131

3232
dnl Process this file with autoconf to produce a configure script.
3333

34-
AC_INIT(mstflint, 4.13.1, [email protected])
34+
AC_INIT(mstflint, 4.13.3, [email protected])
3535

3636
AC_DEFINE_UNQUOTED([PROJECT], ["mstflint"], [Define the project name.])
3737
AC_SUBST([PROJECT])
3838

39-
AC_DEFINE_UNQUOTED([VERSION], ["4.13.1"], [Define the project version.])
39+
AC_DEFINE_UNQUOTED([VERSION], ["4.13.3"], [Define the project version.])
4040
AC_SUBST([VERSION])
4141

4242
AC_CONFIG_MACRO_DIR([m4])
@@ -406,5 +406,5 @@ fi
406406
AC_OUTPUT( Makefile common/Makefile mft_utils/Makefile mtcr_py/Makefile ext_libs/Makefile ext_libs/sqlite/Makefile ext_libs/muparser/Makefile ext_libs/json/Makefile ext_libs/minixz/Makefile dev_mgt/Makefile \
407407
tools_layouts/Makefile reg_access/Makefile cmdif/Makefile libmfa/Makefile pldmlib/Makefile tools_res_mgmt/Makefile mlxconfig/Makefile mlxconfig/mlxconfig_dbs/Makefile mflash/Makefile mlxfwops/Makefile mlxfwops/lib/Makefile cmdparser/Makefile \
408408
flint/Makefile small_utils/Makefile small_utils/mlxfwresetlib/Makefile mstdump/Makefile mstdump/crd_lib/Makefile mstdump/crd_main/Makefile mstdump/mstdump_dbs/Makefile mvpd/Makefile \
409-
fw_comps_mgr/Makefile mad_ifc/Makefile tracers/Makefile tracers/fwtrace/Makefile )
409+
fw_comps_mgr/Makefile mad_ifc/Makefile tracers/Makefile tracers/fwtrace/Makefile resourcedump/Makefile )
410410

dev_mgt/tools_dev_types.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ struct device_info {
7272
#define SFP_DIGITAL_DIAGNOSTIC_MONITORING_IMPLEMENTED_ADDR 92
7373
#define SFP_PAGING_IMPLEMENTED_INDICATOR_ADDR 64
7474

75-
#define ARDBEG_DEVID 0x6e
75+
#define ARDBEG_REV0_DEVID 0x6e
76+
#define ARDBEG_REV1_DEVID 0x7e
7677
#define ARDBEG_MIRRORED_DEVID 0x70
7778
#define BARITONE_DEVID 0x6b
7879
#define BARITONE_MIRRORED_DEVID 0x71
@@ -428,9 +429,10 @@ int dm_get_device_id(mfile *mf,
428429
#endif
429430
#ifdef CABLES_SUPP
430431
if (mf->tp == MST_LINKX_CHIP){
431-
432+
432433
switch (mf->linkx_chip_devid){
433-
case ARDBEG_DEVID:
434+
case ARDBEG_REV0_DEVID:
435+
case ARDBEG_REV1_DEVID:
434436
case ARDBEG_MIRRORED_DEVID:
435437
*ptr_dm_dev_id = DeviceArdbeg;
436438
break;
@@ -502,7 +504,7 @@ int dm_get_device_id(mfile *mf,
502504
// Special case for MLNX OS getting dev_id using REG MGIR
503505
if (dev_flags & MDEVS_MLNX_OS) {
504506
reg_access_status_t rc;
505-
struct tools_open_mgir mgir;
507+
struct reg_access_hca_mgir mgir;
506508
memset(&mgir, 0, sizeof(mgir));
507509
rc = reg_access_mgir(mf, REG_ACCESS_METHOD_GET, &mgir);
508510
//printf("-D- RC[%s] -- REVID: %d -- DEVID: %d hw_dev_id: %d\n", m_err2str(rc), mgir.HWInfo.REVID, mgir.HWInfo.DEVID, mgir.HWInfo.hw_dev_id);

flint/Makefile.am

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,14 @@ else
8080
endif
8181

8282
if ENABLE_OPENSSL
83-
mstflint_LDADD += $(top_srcdir)/mlxsign_lib/libmlxsign.a -lcrypto
83+
mstflint_LDADD += $(top_srcdir)/mlxsign_lib/libmlxsign.a -lcrypto
8484
else
8585
endif
8686

8787
if ENABLE_FWMGR
88-
mstflint_LDADD += $(top_srcdir)/libmfa/libmfa.a $(top_srcdir)/ext_libs/minixz/libminixz.a
88+
mstflint_LDADD += $(top_srcdir)/libmfa/libmfa.a $(top_srcdir)/ext_libs/minixz/libminixz.a $(top_srcdir)/mlxarchive/libmstarchive.a $(top_srcdir)/xz_utils/libxz_utils.a -llzma -lm
89+
else
90+
mstflint_CXXFLAGS += -DNO_MSTARCHIVE
8991
endif
9092

9193
#get mst device examples and tool name from makefile

flint/cmd_line_parser.cpp

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,8 @@ FlagMetaData::FlagMetaData()
204204
_flags.push_back(new Flag("", "hmac_key", 1));
205205
_flags.push_back(new Flag("", "key_uuid2", 1));
206206
_flags.push_back(new Flag("", "no_fw_ctrl", 0));
207-
_flags.push_back(new Flag("image_reactivation", "ir", 0));
207+
_flags.push_back(new Flag("", "ir", 0));
208+
_flags.push_back(new Flag("", "latest_fw", 0));
208209
}
209210

210211
FlagMetaData::~FlagMetaData()
@@ -417,12 +418,12 @@ void Flint::initCmdParser()
417418
"Binary image file.\n"
418419
"Commands affected: burn, verify");
419420

420-
AddOptions("ir",
421+
AddOptions("latest_fw",
421422
' ',
422423
"",
423424
"Commands affected: burn");
424425

425-
AddOptions("image_reactivation",
426+
AddOptions("ir",
426427
' ',
427428
"",
428429
"Commands affected: burn");
@@ -889,7 +890,7 @@ ParseStatus Flint::HandleOption(string name, string value)
889890
_flintParams.striped_image = true;
890891
} else if (name == "use_dev_img_info") {
891892
_flintParams.use_dev_img_info = true;
892-
} else if (name == "ir" || name == "image_reactivation") {
893+
} else if (name == "ir") {
893894
_flintParams.image_reactivation = true;
894895
}
895896
else if (name == "banks") {
@@ -923,7 +924,10 @@ ParseStatus Flint::HandleOption(string name, string value)
923924
} else if (name == "key_uuid2") {
924925
_flintParams.uuid2_specified = true;
925926
_flintParams.privkey2_uuid = value;
926-
} else {
927+
} else if (name == "latest_fw") {
928+
_flintParams.use_latest_fw_version = true;
929+
}
930+
else {
927931
cout << "Unknown Flag: " << name;
928932
cout << _cmdParser.GetSynopsis();
929933
return PARSE_ERROR;

flint/err_msgs.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ typedef enum {
5757

5858
#define FLINT_CLEAR_SEM_CMD_ERROR "No command is allowed when -clear_semaphore flag is given.\n"
5959
#define FLINT_COMMAND_FLAGS_ERROR "For %s command, Please specify %s.\n"
60+
#define FLINT_COMMAND_INCORRECT_FLAGS_ERROR "For %s command, %s.\n"
6061
#define FLINT_PARSE_MEM_ERROR "Failed to allocate memory for parsing.\n "
6162
#define FLINT_NO_OPTIONS_FOUND_ERROR "No options found. "
6263
#define FLINT_INVALID_COMMAD_ERROR "Invalid command: %s\n"

flint/flint_params.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ FlintParams::FlintParams()
5656
low_cpu = false;
5757
skip_rom_query = false;
5858
image_specified = false;
59+
mfa2_specified = false;
5960
nofs = false;
6061
allow_psid_change = false;
6162
allow_rom_change = false;
@@ -93,6 +94,8 @@ FlintParams::FlintParams()
9394
no_fw_ctrl = false;
9495
image_reactivation = false;
9596
num_of_args = 0;
97+
use_latest_fw_version = false;
98+
9699
}
97100

98101
FlintParams::~FlintParams()

flint/flint_params.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ class FlintParams {
114114
bool next_boot_fw_ver;
115115
bool skip_rom_query;
116116
bool image_specified;
117+
bool mfa2_specified;
117118
string image;
118119
bool nofs;
119120
bool allow_psid_change;
@@ -146,7 +147,9 @@ class FlintParams {
146147
bool skip_ci_req;
147148
bool use_dev_rom;
148149
bool privkey_specified;
150+
bool pubkey_specified;
149151
string privkey_file;
152+
string pubkey_file;
150153
bool uuid_specified;
151154
string privkey_uuid;
152155
bool privkey2_specified;
@@ -158,6 +161,7 @@ class FlintParams {
158161
bool no_fw_ctrl;
159162
bool image_reactivation;
160163
int num_of_args;
164+
bool use_latest_fw_version;
161165
};
162166

163167
#endif

0 commit comments

Comments
 (0)