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
Alex Forencich
cd9f6a9329
Use defines instead of magic numbers
2021-06-27 14:04:43 -07:00
Alex Forencich
d2fdf1a7bd
Update mqnic-bmc to support Gecko BMC
2021-03-04 22:39:25 -08:00
Alex Forencich
3a503cc6aa
Rename BMC-related methods
2021-03-04 19:02:59 -08:00
Alex Forencich
53df02d22c
Update makefile
2021-02-01 00:00:56 -08:00
Alex Forencich
85d9ec7a87
Add mqnic-bmc tool
2021-01-31 21:32:57 -08:00
Alex Forencich
9ec0b71a1a
Add firmware update utility
2020-10-04 00:56:06 -07:00
Alex Forencich
e7c0f17c32
Attempt to enable device if not connecting via driver
2020-10-04 00:42:48 -07:00
Alex Forencich
a7241bc597
Add FPGA ID code for userspace tools
2020-10-02 16:53:41 -07:00
Alex Forencich
7d561c713f
Update userspace utils
2020-05-01 21:55:50 -07:00
Alex Forencich
9092e3c5cd
Update mqnic-dump utility
2020-04-21 18:22:17 -07:00
Alex Forencich
7977c3003b
Support accessing card via sysfs without driver loaded
2020-02-03 17:05:21 -08:00