nfp_main.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653
  1. /*
  2. * Copyright (C) 2015-2017 Netronome Systems, Inc.
  3. *
  4. * This software is dual licensed under the GNU General License Version 2,
  5. * June 1991 as shown in the file COPYING in the top-level directory of this
  6. * source tree or the BSD 2-Clause License provided below. You have the
  7. * option to license this software under the complete terms of either license.
  8. *
  9. * The BSD 2-Clause License:
  10. *
  11. * Redistribution and use in source and binary forms, with or
  12. * without modification, are permitted provided that the following
  13. * conditions are met:
  14. *
  15. * 1. Redistributions of source code must retain the above
  16. * copyright notice, this list of conditions and the following
  17. * disclaimer.
  18. *
  19. * 2. Redistributions in binary form must reproduce the above
  20. * copyright notice, this list of conditions and the following
  21. * disclaimer in the documentation and/or other materials
  22. * provided with the distribution.
  23. *
  24. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  25. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  26. * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  27. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
  28. * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
  29. * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  30. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  31. * SOFTWARE.
  32. */
  33. /*
  34. * nfp_main.c
  35. * Authors: Jakub Kicinski <jakub.kicinski@netronome.com>
  36. * Alejandro Lucero <alejandro.lucero@netronome.com>
  37. * Jason McMullan <jason.mcmullan@netronome.com>
  38. * Rolf Neugebauer <rolf.neugebauer@netronome.com>
  39. */
  40. #include <linux/kernel.h>
  41. #include <linux/module.h>
  42. #include <linux/mutex.h>
  43. #include <linux/pci.h>
  44. #include <linux/firmware.h>
  45. #include <linux/vermagic.h>
  46. #include <linux/vmalloc.h>
  47. #include <net/devlink.h>
  48. #include "nfpcore/nfp.h"
  49. #include "nfpcore/nfp_cpp.h"
  50. #include "nfpcore/nfp_nffw.h"
  51. #include "nfpcore/nfp_nsp.h"
  52. #include "nfpcore/nfp6000_pcie.h"
  53. #include "nfp_app.h"
  54. #include "nfp_main.h"
  55. #include "nfp_net.h"
  56. static const char nfp_driver_name[] = "nfp";
  57. const char nfp_driver_version[] = VERMAGIC_STRING;
  58. static const struct pci_device_id nfp_pci_device_ids[] = {
  59. { PCI_VENDOR_ID_NETRONOME, PCI_DEVICE_ID_NETRONOME_NFP6000,
  60. PCI_VENDOR_ID_NETRONOME, PCI_ANY_ID,
  61. PCI_ANY_ID, 0,
  62. },
  63. { PCI_VENDOR_ID_NETRONOME, PCI_DEVICE_ID_NETRONOME_NFP4000,
  64. PCI_VENDOR_ID_NETRONOME, PCI_ANY_ID,
  65. PCI_ANY_ID, 0,
  66. },
  67. { 0, } /* Required last entry. */
  68. };
  69. MODULE_DEVICE_TABLE(pci, nfp_pci_device_ids);
  70. static bool nfp_board_ready(struct nfp_pf *pf)
  71. {
  72. const char *cp;
  73. long state;
  74. int err;
  75. cp = nfp_hwinfo_lookup(pf->hwinfo, "board.state");
  76. if (!cp)
  77. return false;
  78. err = kstrtol(cp, 0, &state);
  79. if (err < 0)
  80. return false;
  81. return state == 15;
  82. }
  83. static int nfp_pf_board_state_wait(struct nfp_pf *pf)
  84. {
  85. const unsigned long wait_until = jiffies + 10 * HZ;
  86. while (!nfp_board_ready(pf)) {
  87. if (time_is_before_eq_jiffies(wait_until)) {
  88. nfp_err(pf->cpp, "NFP board initialization timeout\n");
  89. return -EINVAL;
  90. }
  91. nfp_info(pf->cpp, "waiting for board initialization\n");
  92. if (msleep_interruptible(500))
  93. return -ERESTARTSYS;
  94. /* Refresh cached information */
  95. kfree(pf->hwinfo);
  96. pf->hwinfo = nfp_hwinfo_read(pf->cpp);
  97. }
  98. return 0;
  99. }
  100. static int nfp_pcie_sriov_read_nfd_limit(struct nfp_pf *pf)
  101. {
  102. int err;
  103. pf->limit_vfs = nfp_rtsym_read_le(pf->rtbl, "nfd_vf_cfg_max_vfs", &err);
  104. if (!err)
  105. return pci_sriov_set_totalvfs(pf->pdev, pf->limit_vfs);
  106. pf->limit_vfs = ~0;
  107. pci_sriov_set_totalvfs(pf->pdev, 0); /* 0 is unset */
  108. /* Allow any setting for backwards compatibility if symbol not found */
  109. if (err == -ENOENT)
  110. return 0;
  111. nfp_warn(pf->cpp, "Warning: VF limit read failed: %d\n", err);
  112. return err;
  113. }
  114. static int nfp_pcie_sriov_enable(struct pci_dev *pdev, int num_vfs)
  115. {
  116. #ifdef CONFIG_PCI_IOV
  117. struct nfp_pf *pf = pci_get_drvdata(pdev);
  118. int err;
  119. if (num_vfs > pf->limit_vfs) {
  120. nfp_info(pf->cpp, "Firmware limits number of VFs to %u\n",
  121. pf->limit_vfs);
  122. return -EINVAL;
  123. }
  124. err = pci_enable_sriov(pdev, num_vfs);
  125. if (err) {
  126. dev_warn(&pdev->dev, "Failed to enable PCI SR-IOV: %d\n", err);
  127. return err;
  128. }
  129. mutex_lock(&pf->lock);
  130. err = nfp_app_sriov_enable(pf->app, num_vfs);
  131. if (err) {
  132. dev_warn(&pdev->dev,
  133. "App specific PCI SR-IOV configuration failed: %d\n",
  134. err);
  135. goto err_sriov_disable;
  136. }
  137. pf->num_vfs = num_vfs;
  138. dev_dbg(&pdev->dev, "Created %d VFs.\n", pf->num_vfs);
  139. mutex_unlock(&pf->lock);
  140. return num_vfs;
  141. err_sriov_disable:
  142. mutex_unlock(&pf->lock);
  143. pci_disable_sriov(pdev);
  144. return err;
  145. #endif
  146. return 0;
  147. }
  148. static int nfp_pcie_sriov_disable(struct pci_dev *pdev)
  149. {
  150. #ifdef CONFIG_PCI_IOV
  151. struct nfp_pf *pf = pci_get_drvdata(pdev);
  152. mutex_lock(&pf->lock);
  153. /* If the VFs are assigned we cannot shut down SR-IOV without
  154. * causing issues, so just leave the hardware available but
  155. * disabled
  156. */
  157. if (pci_vfs_assigned(pdev)) {
  158. dev_warn(&pdev->dev, "Disabling while VFs assigned - VFs will not be deallocated\n");
  159. mutex_unlock(&pf->lock);
  160. return -EPERM;
  161. }
  162. nfp_app_sriov_disable(pf->app);
  163. pf->num_vfs = 0;
  164. mutex_unlock(&pf->lock);
  165. pci_disable_sriov(pdev);
  166. dev_dbg(&pdev->dev, "Removed VFs.\n");
  167. #endif
  168. return 0;
  169. }
  170. static int nfp_pcie_sriov_configure(struct pci_dev *pdev, int num_vfs)
  171. {
  172. if (num_vfs == 0)
  173. return nfp_pcie_sriov_disable(pdev);
  174. else
  175. return nfp_pcie_sriov_enable(pdev, num_vfs);
  176. }
  177. static const struct firmware *
  178. nfp_net_fw_request(struct pci_dev *pdev, struct nfp_pf *pf, const char *name)
  179. {
  180. const struct firmware *fw = NULL;
  181. int err;
  182. err = request_firmware_direct(&fw, name, &pdev->dev);
  183. nfp_info(pf->cpp, " %s: %s\n",
  184. name, err ? "not found" : "found, loading...");
  185. if (err)
  186. return NULL;
  187. return fw;
  188. }
  189. /**
  190. * nfp_net_fw_find() - Find the correct firmware image for netdev mode
  191. * @pdev: PCI Device structure
  192. * @pf: NFP PF Device structure
  193. *
  194. * Return: firmware if found and requested successfully.
  195. */
  196. static const struct firmware *
  197. nfp_net_fw_find(struct pci_dev *pdev, struct nfp_pf *pf)
  198. {
  199. struct nfp_eth_table_port *port;
  200. const struct firmware *fw;
  201. const char *fw_model;
  202. char fw_name[256];
  203. const u8 *serial;
  204. u16 interface;
  205. int spc, i, j;
  206. nfp_info(pf->cpp, "Looking for firmware file in order of priority:\n");
  207. /* First try to find a firmware image specific for this device */
  208. interface = nfp_cpp_interface(pf->cpp);
  209. nfp_cpp_serial(pf->cpp, &serial);
  210. sprintf(fw_name, "netronome/serial-%pMF-%02hhx-%02hhx.nffw",
  211. serial, interface >> 8, interface & 0xff);
  212. fw = nfp_net_fw_request(pdev, pf, fw_name);
  213. if (fw)
  214. return fw;
  215. /* Then try the PCI name */
  216. sprintf(fw_name, "netronome/pci-%s.nffw", pci_name(pdev));
  217. fw = nfp_net_fw_request(pdev, pf, fw_name);
  218. if (fw)
  219. return fw;
  220. /* Finally try the card type and media */
  221. if (!pf->eth_tbl) {
  222. dev_err(&pdev->dev, "Error: can't identify media config\n");
  223. return NULL;
  224. }
  225. fw_model = nfp_hwinfo_lookup(pf->hwinfo, "assembly.partno");
  226. if (!fw_model) {
  227. dev_err(&pdev->dev, "Error: can't read part number\n");
  228. return NULL;
  229. }
  230. spc = ARRAY_SIZE(fw_name);
  231. spc -= snprintf(fw_name, spc, "netronome/nic_%s", fw_model);
  232. for (i = 0; spc > 0 && i < pf->eth_tbl->count; i += j) {
  233. port = &pf->eth_tbl->ports[i];
  234. j = 1;
  235. while (i + j < pf->eth_tbl->count &&
  236. port->speed == port[j].speed)
  237. j++;
  238. spc -= snprintf(&fw_name[ARRAY_SIZE(fw_name) - spc], spc,
  239. "_%dx%d", j, port->speed / 1000);
  240. }
  241. if (spc <= 0)
  242. return NULL;
  243. spc -= snprintf(&fw_name[ARRAY_SIZE(fw_name) - spc], spc, ".nffw");
  244. if (spc <= 0)
  245. return NULL;
  246. return nfp_net_fw_request(pdev, pf, fw_name);
  247. }
  248. /**
  249. * nfp_net_fw_load() - Load the firmware image
  250. * @pdev: PCI Device structure
  251. * @pf: NFP PF Device structure
  252. * @nsp: NFP SP handle
  253. *
  254. * Return: -ERRNO, 0 for no firmware loaded, 1 for firmware loaded
  255. */
  256. static int
  257. nfp_fw_load(struct pci_dev *pdev, struct nfp_pf *pf, struct nfp_nsp *nsp)
  258. {
  259. const struct firmware *fw;
  260. u16 interface;
  261. int err;
  262. interface = nfp_cpp_interface(pf->cpp);
  263. if (NFP_CPP_INTERFACE_UNIT_of(interface) != 0) {
  264. /* Only Unit 0 should reset or load firmware */
  265. dev_info(&pdev->dev, "Firmware will be loaded by partner\n");
  266. return 0;
  267. }
  268. fw = nfp_net_fw_find(pdev, pf);
  269. if (!fw)
  270. return 0;
  271. dev_info(&pdev->dev, "Soft-reset, loading FW image\n");
  272. err = nfp_nsp_device_soft_reset(nsp);
  273. if (err < 0) {
  274. dev_err(&pdev->dev, "Failed to soft reset the NFP: %d\n",
  275. err);
  276. goto exit_release_fw;
  277. }
  278. err = nfp_nsp_load_fw(nsp, fw);
  279. if (err < 0) {
  280. dev_err(&pdev->dev, "FW loading failed: %d\n", err);
  281. goto exit_release_fw;
  282. }
  283. dev_info(&pdev->dev, "Finished loading FW image\n");
  284. exit_release_fw:
  285. release_firmware(fw);
  286. return err < 0 ? err : 1;
  287. }
  288. static void
  289. nfp_nsp_init_ports(struct pci_dev *pdev, struct nfp_pf *pf,
  290. struct nfp_nsp *nsp)
  291. {
  292. bool needs_reinit = false;
  293. int i;
  294. pf->eth_tbl = __nfp_eth_read_ports(pf->cpp, nsp);
  295. if (!pf->eth_tbl)
  296. return;
  297. if (!nfp_nsp_has_mac_reinit(nsp))
  298. return;
  299. for (i = 0; i < pf->eth_tbl->count; i++)
  300. needs_reinit |= pf->eth_tbl->ports[i].override_changed;
  301. if (!needs_reinit)
  302. return;
  303. kfree(pf->eth_tbl);
  304. if (nfp_nsp_mac_reinit(nsp))
  305. dev_warn(&pdev->dev, "MAC reinit failed\n");
  306. pf->eth_tbl = __nfp_eth_read_ports(pf->cpp, nsp);
  307. }
  308. static int nfp_nsp_init(struct pci_dev *pdev, struct nfp_pf *pf)
  309. {
  310. struct nfp_nsp *nsp;
  311. int err;
  312. err = nfp_resource_wait(pf->cpp, NFP_RESOURCE_NSP, 30);
  313. if (err)
  314. return err;
  315. nsp = nfp_nsp_open(pf->cpp);
  316. if (IS_ERR(nsp)) {
  317. err = PTR_ERR(nsp);
  318. dev_err(&pdev->dev, "Failed to access the NSP: %d\n", err);
  319. return err;
  320. }
  321. err = nfp_nsp_wait(nsp);
  322. if (err < 0)
  323. goto exit_close_nsp;
  324. nfp_nsp_init_ports(pdev, pf, nsp);
  325. pf->nspi = __nfp_nsp_identify(nsp);
  326. if (pf->nspi)
  327. dev_info(&pdev->dev, "BSP: %s\n", pf->nspi->version);
  328. err = nfp_fw_load(pdev, pf, nsp);
  329. if (err < 0) {
  330. kfree(pf->nspi);
  331. kfree(pf->eth_tbl);
  332. dev_err(&pdev->dev, "Failed to load FW\n");
  333. goto exit_close_nsp;
  334. }
  335. pf->fw_loaded = !!err;
  336. err = 0;
  337. exit_close_nsp:
  338. nfp_nsp_close(nsp);
  339. return err;
  340. }
  341. static void nfp_fw_unload(struct nfp_pf *pf)
  342. {
  343. struct nfp_nsp *nsp;
  344. int err;
  345. nsp = nfp_nsp_open(pf->cpp);
  346. if (IS_ERR(nsp)) {
  347. nfp_err(pf->cpp, "Reset failed, can't open NSP\n");
  348. return;
  349. }
  350. err = nfp_nsp_device_soft_reset(nsp);
  351. if (err < 0)
  352. dev_warn(&pf->pdev->dev, "Couldn't unload firmware: %d\n", err);
  353. else
  354. dev_info(&pf->pdev->dev, "Firmware safely unloaded\n");
  355. nfp_nsp_close(nsp);
  356. }
  357. static int nfp_pci_probe(struct pci_dev *pdev,
  358. const struct pci_device_id *pci_id)
  359. {
  360. struct devlink *devlink;
  361. struct nfp_pf *pf;
  362. int err;
  363. err = pci_enable_device(pdev);
  364. if (err < 0)
  365. return err;
  366. pci_set_master(pdev);
  367. err = dma_set_mask_and_coherent(&pdev->dev,
  368. DMA_BIT_MASK(NFP_NET_MAX_DMA_BITS));
  369. if (err)
  370. goto err_pci_disable;
  371. err = pci_request_regions(pdev, nfp_driver_name);
  372. if (err < 0) {
  373. dev_err(&pdev->dev, "Unable to reserve pci resources.\n");
  374. goto err_pci_disable;
  375. }
  376. devlink = devlink_alloc(&nfp_devlink_ops, sizeof(*pf));
  377. if (!devlink) {
  378. err = -ENOMEM;
  379. goto err_rel_regions;
  380. }
  381. pf = devlink_priv(devlink);
  382. INIT_LIST_HEAD(&pf->vnics);
  383. INIT_LIST_HEAD(&pf->ports);
  384. mutex_init(&pf->lock);
  385. pci_set_drvdata(pdev, pf);
  386. pf->pdev = pdev;
  387. pf->wq = alloc_workqueue("nfp-%s", 0, 2, pci_name(pdev));
  388. if (!pf->wq) {
  389. err = -ENOMEM;
  390. goto err_pci_priv_unset;
  391. }
  392. pf->cpp = nfp_cpp_from_nfp6000_pcie(pdev);
  393. if (IS_ERR_OR_NULL(pf->cpp)) {
  394. err = PTR_ERR(pf->cpp);
  395. if (err >= 0)
  396. err = -ENOMEM;
  397. goto err_disable_msix;
  398. }
  399. pf->hwinfo = nfp_hwinfo_read(pf->cpp);
  400. dev_info(&pdev->dev, "Assembly: %s%s%s-%s CPLD: %s\n",
  401. nfp_hwinfo_lookup(pf->hwinfo, "assembly.vendor"),
  402. nfp_hwinfo_lookup(pf->hwinfo, "assembly.partno"),
  403. nfp_hwinfo_lookup(pf->hwinfo, "assembly.serial"),
  404. nfp_hwinfo_lookup(pf->hwinfo, "assembly.revision"),
  405. nfp_hwinfo_lookup(pf->hwinfo, "cpld.version"));
  406. err = nfp_pf_board_state_wait(pf);
  407. if (err)
  408. goto err_hwinfo_free;
  409. err = nfp_nsp_init(pdev, pf);
  410. if (err)
  411. goto err_hwinfo_free;
  412. pf->mip = nfp_mip_open(pf->cpp);
  413. pf->rtbl = __nfp_rtsym_table_read(pf->cpp, pf->mip);
  414. pf->dump_flag = NFP_DUMP_NSP_DIAG;
  415. pf->dumpspec = nfp_net_dump_load_dumpspec(pf->cpp, pf->rtbl);
  416. err = nfp_pcie_sriov_read_nfd_limit(pf);
  417. if (err)
  418. goto err_fw_unload;
  419. pf->num_vfs = pci_num_vf(pdev);
  420. if (pf->num_vfs > pf->limit_vfs) {
  421. dev_err(&pdev->dev,
  422. "Error: %d VFs already enabled, but loaded FW can only support %d\n",
  423. pf->num_vfs, pf->limit_vfs);
  424. err = -EINVAL;
  425. goto err_fw_unload;
  426. }
  427. err = nfp_net_pci_probe(pf);
  428. if (err)
  429. goto err_sriov_unlimit;
  430. err = nfp_hwmon_register(pf);
  431. if (err) {
  432. dev_err(&pdev->dev, "Failed to register hwmon info\n");
  433. goto err_net_remove;
  434. }
  435. return 0;
  436. err_net_remove:
  437. nfp_net_pci_remove(pf);
  438. err_sriov_unlimit:
  439. pci_sriov_set_totalvfs(pf->pdev, 0);
  440. err_fw_unload:
  441. kfree(pf->rtbl);
  442. nfp_mip_close(pf->mip);
  443. if (pf->fw_loaded)
  444. nfp_fw_unload(pf);
  445. kfree(pf->eth_tbl);
  446. kfree(pf->nspi);
  447. vfree(pf->dumpspec);
  448. err_hwinfo_free:
  449. kfree(pf->hwinfo);
  450. nfp_cpp_free(pf->cpp);
  451. err_disable_msix:
  452. destroy_workqueue(pf->wq);
  453. err_pci_priv_unset:
  454. pci_set_drvdata(pdev, NULL);
  455. mutex_destroy(&pf->lock);
  456. devlink_free(devlink);
  457. err_rel_regions:
  458. pci_release_regions(pdev);
  459. err_pci_disable:
  460. pci_disable_device(pdev);
  461. return err;
  462. }
  463. static void nfp_pci_remove(struct pci_dev *pdev)
  464. {
  465. struct nfp_pf *pf = pci_get_drvdata(pdev);
  466. nfp_hwmon_unregister(pf);
  467. nfp_pcie_sriov_disable(pdev);
  468. pci_sriov_set_totalvfs(pf->pdev, 0);
  469. nfp_net_pci_remove(pf);
  470. vfree(pf->dumpspec);
  471. kfree(pf->rtbl);
  472. nfp_mip_close(pf->mip);
  473. if (pf->fw_loaded)
  474. nfp_fw_unload(pf);
  475. destroy_workqueue(pf->wq);
  476. pci_set_drvdata(pdev, NULL);
  477. kfree(pf->hwinfo);
  478. nfp_cpp_free(pf->cpp);
  479. kfree(pf->eth_tbl);
  480. kfree(pf->nspi);
  481. mutex_destroy(&pf->lock);
  482. devlink_free(priv_to_devlink(pf));
  483. pci_release_regions(pdev);
  484. pci_disable_device(pdev);
  485. }
  486. static struct pci_driver nfp_pci_driver = {
  487. .name = nfp_driver_name,
  488. .id_table = nfp_pci_device_ids,
  489. .probe = nfp_pci_probe,
  490. .remove = nfp_pci_remove,
  491. .sriov_configure = nfp_pcie_sriov_configure,
  492. };
  493. static int __init nfp_main_init(void)
  494. {
  495. int err;
  496. pr_info("%s: NFP PCIe Driver, Copyright (C) 2014-2017 Netronome Systems\n",
  497. nfp_driver_name);
  498. nfp_net_debugfs_create();
  499. err = pci_register_driver(&nfp_pci_driver);
  500. if (err < 0)
  501. goto err_destroy_debugfs;
  502. err = pci_register_driver(&nfp_netvf_pci_driver);
  503. if (err)
  504. goto err_unreg_pf;
  505. return err;
  506. err_unreg_pf:
  507. pci_unregister_driver(&nfp_pci_driver);
  508. err_destroy_debugfs:
  509. nfp_net_debugfs_destroy();
  510. return err;
  511. }
  512. static void __exit nfp_main_exit(void)
  513. {
  514. pci_unregister_driver(&nfp_netvf_pci_driver);
  515. pci_unregister_driver(&nfp_pci_driver);
  516. nfp_net_debugfs_destroy();
  517. }
  518. module_init(nfp_main_init);
  519. module_exit(nfp_main_exit);
  520. MODULE_FIRMWARE("netronome/nic_AMDA0081-0001_1x40.nffw");
  521. MODULE_FIRMWARE("netronome/nic_AMDA0081-0001_4x10.nffw");
  522. MODULE_FIRMWARE("netronome/nic_AMDA0096-0001_2x10.nffw");
  523. MODULE_FIRMWARE("netronome/nic_AMDA0097-0001_2x40.nffw");
  524. MODULE_FIRMWARE("netronome/nic_AMDA0097-0001_4x10_1x40.nffw");
  525. MODULE_FIRMWARE("netronome/nic_AMDA0097-0001_8x10.nffw");
  526. MODULE_FIRMWARE("netronome/nic_AMDA0099-0001_2x10.nffw");
  527. MODULE_FIRMWARE("netronome/nic_AMDA0099-0001_2x25.nffw");
  528. MODULE_FIRMWARE("netronome/nic_AMDA0099-0001_1x10_1x25.nffw");
  529. MODULE_AUTHOR("Netronome Systems <oss-drivers@netronome.com>");
  530. MODULE_LICENSE("GPL");
  531. MODULE_DESCRIPTION("The Netronome Flow Processor (NFP) driver.");
  532. MODULE_VERSION(UTS_RELEASE);