1
0
mirror of https://github.com/corundum/corundum.git synced 2025-01-16 08:12:53 +08:00

86 Commits

Author SHA1 Message Date
Joachim Foerster
bf09d80999 utils/Makefile: clean: Fix, also call target clean on libmqnic directory
Signed-off-by: Joachim Foerster <joachim.foerster@missinglinkelectronics.com>
2023-06-22 11:06:12 +02:00
Alex Forencich
bb158d568f Add RX indirection table
Signed-off-by: Alex Forencich <alex@alexforencich.com>
2023-04-10 15:05:32 -07:00
Alex Forencich
6cfd808823 utils: Dump statistics counters in mqnic-dump
Signed-off-by: Alex Forencich <alex@alexforencich.com>
2022-11-23 17:38:28 -08:00
Alex Forencich
d3942da875 fpga: Add clock info register block
Signed-off-by: Alex Forencich <alex@alexforencich.com>
2022-10-15 19:45:02 -07:00
Alex Forencich
7f1c714bc4 utils: Add mqnic-xcvr utility
Signed-off-by: Alex Forencich <alex@alexforencich.com>
2022-07-29 12:02:50 -07:00
Alex Forencich
796ead9b1b utils: Fix PCI device path checks
Signed-off-by: Alex Forencich <alex@alexforencich.com>
2022-07-27 14:26:37 -07:00
Alex Forencich
1eb04bb75b utils: Improve PTP clock period reporting
Signed-off-by: Alex Forencich <alex@alexforencich.com>
2022-05-05 15:11:26 -07:00
Alex Forencich
c2fea3a616 Add port register blocks with support for PHY link status reporting
Signed-off-by: Alex Forencich <alex@alexforencich.com>
2022-05-04 09:03:37 -07:00
Alex Forencich
698fd2f104 Consistent naming of library functions and structs
Signed-off-by: Alex Forencich <alex@alexforencich.com>
2022-04-24 22:51:37 -07:00
Alex Forencich
2bd8350276 Add RX queue mapping module
Signed-off-by: Alex Forencich <alex@alexforencich.com>
2022-04-23 00:12:22 -07:00
Alex Forencich
1b3caa1f0f Fix reg block enumeration to properly handle NULL register blocks
Signed-off-by: Alex Forencich <alex@alexforencich.com>
2022-04-22 23:27:15 -07:00
Alex Forencich
c58585036e lib/mqnic: Add mqnic_print_fw_id
Signed-off-by: Alex Forencich <alex@alexforencich.com>
2022-04-19 13:37:54 -07:00
Alex Forencich
e6c18cfb68 Move fpga_id into library
Signed-off-by: Alex Forencich <alex@alexforencich.com>
2022-04-19 13:36:02 -07:00
Alex Forencich
a1cd110074 Peel off common software components into a static library
Signed-off-by: Alex Forencich <alex@alexforencich.com>
2022-04-19 01:45:01 -07:00
Alex Forencich
edb545ca50 utils/mqnic-fw: Fix width detection for BPI flash
Signed-off-by: Alex Forencich <alex@alexforencich.com>
2022-04-16 22:00:16 -07:00
Alex Forencich
f44641e91e utils: Add sanity check when reading SPI flash ID
Signed-off-by: Alex Forencich <alex@alexforencich.com>
2022-04-16 15:23:17 -07:00
Alex Forencich
eb530475fb More expressive flash format register
Signed-off-by: Alex Forencich <alex@alexforencich.com>
2022-04-15 18:38:01 -07:00
Alex Forencich
7be7b1cc9f utils/mqnic-fw: Confirm write and reset operations
Signed-off-by: Alex Forencich <alex@alexforencich.com>
2022-04-15 18:17:04 -07:00
Alex Forencich
88679ef7eb utils/mqnic-fw: Add segment erase action
Signed-off-by: Alex Forencich <alex@alexforencich.com>
2022-04-15 18:04:51 -07:00
Alex Forencich
09257457cb utils/mqnic-fw: Determine data width directly from control registers
Signed-off-by: Alex Forencich <alex@alexforencich.com>
2022-04-15 16:15:11 -07:00
Alex Forencich
d9867948ec utils/mqnic-fw: Remove unused address width parameter
Signed-off-by: Alex Forencich <alex@alexforencich.com>
2022-04-15 15:54:03 -07:00
Alex Forencich
cf8aa506b2 utils: Always use 4-byte addresses for large SPI flash devices
Signed-off-by: Alex Forencich <alex@alexforencich.com>
2022-04-15 13:13:59 -07:00
Alex Forencich
3b8643877d Support bare device name 2022-03-28 18:06:22 -07:00
Alex Forencich
cbd9d0dfc6 Expose port and scheduler block counts in IF control block; update driver model, driver, and userspace tools to handle scheduler blocks separately from ports 2022-03-28 17:23:27 -07:00
Alex Forencich
6daf1171b5 Improve ioctl implementation to support arbitrary number of regions 2022-03-26 00:24:02 -07:00
Alex Forencich
51877b2bfd Combined write and verify operation 2022-03-03 22:48:53 -08:00
Alex Forencich
d325d0df3e Minor cleanup 2022-03-03 22:48:24 -08:00
Alex Forencich
3d5395a7ca Update makefile 2022-03-03 22:46:18 -08:00
Alex Forencich
7fa621bddf Clean up types 2022-03-03 22:45:38 -08:00
Alex Forencich
e3799aa1bf Add missing dummy reads 2022-03-03 22:44:32 -08:00
Alex Forencich
d5f1da7f08 Print PCIe device ID, if available 2022-03-03 22:44:05 -08:00
Alex Forencich
137a6778da Combine interface control blocks 2022-01-15 21:53:13 -08:00
Alex Forencich
eba32ce8a5 Accept interface name and PCIe BDF when connecting to device 2022-01-08 15:32:50 -08:00
Alex Forencich
23f635f273 Clean up return code checks 2022-01-08 15:14:49 -08:00
Alex Forencich
136b0ee6ae Increase init delay for Alveo BMC 2022-01-05 22:42:36 -08:00
Alex Forencich
975ba91239 Fix register accesses 2022-01-05 19:38:46 -08:00
Alex Forencich
ce21774f06 Register space reorganization 2021-12-29 22:31:46 -08:00
Alex Forencich
23cd700a3f Refactor userspace init/teardown code 2021-12-24 13:49:41 -08:00
Joachim Foerster
2390ac9a23 utils/: Fix and enhance Makefile
Not only for typical cross-compilation build environments:

- allow to use CC definition from build environment
- ditto for PREFIX, packaging typically wants to use /usr
- use CPPFLAGS for include paths and just append
- let build environment decide about things like -Ox,
  append rest of flags to CFLAGS
- use LDFLAGS, typically set by build environment

Signed-off-by: Joachim Foerster <joachim.foerster@missinglinkelectronics.com>
2021-12-15 23:29:02 -08:00
Joachim Foerster
b79487dbf3 utils/: Ignore mqnic-bmc executable
Signed-off-by: Joachim Foerster <joachim.foerster@missinglinkelectronics.com>
2021-12-15 23:29:02 -08:00
Yizhou Shan
29bb1d6cb5 Add some file extentions to gitignore 2021-12-10 13:31:58 -08:00
Alex Forencich
161a25b4d5 Add more FPGA JTAG IDs 2021-12-03 00:22:29 -08:00
Alex Forencich
fca6341636 Add flash size check for Alveo boards 2021-11-18 16:23:37 -08:00
Alex Forencich
dfdf880c3a Add Stratix 10 JTAG IDs 2021-11-06 16:20:54 -07:00
Alex Forencich
df9417454e Improve messages 2021-09-13 16:18:11 -07:00
Alex Forencich
4704115974 Allow boot and reset even if flashing is not supported 2021-09-13 16:17:55 -07:00
Alex Forencich
3d64e5fc30 Retry hot reset a few times if necessary 2021-09-13 13:51:36 -07:00
Alex Forencich
5435db91cb Ensure that boot/reset are skipped if flash update fails 2021-09-13 13:51:06 -07:00
Alex Forencich
dfe0dd38f0 Print out mismatches when verify fails 2021-09-13 13:50:27 -07:00
Alex Forencich
9da588cf73 Add dummy reads for timing 2021-09-13 13:49:29 -07:00