Closed mcbridematt closed 2 years ago
@mcbridematt Lazy me decided that counting buffers taken by QBMan from the pool isn't that necessary and just allocated and released as many buffers to the pool as possible at the dpni attach at 846462f2d7ec1ae10fbe90da9278a06103af61a2... uhh.
I'll probably have to implement a mechanism which will be allocating and releasing new buffers when a threshold is crossed (similar to what's done in the Linux driver).
@mcbridematt Could you test with 1a7aba9f89185b0533b46ecb641560a6be3cb614?
No enumeration / boot issues with https://github.com/mcusim/freebsd-src/commit/1a7aba9f89185b0533b46ecb641560a6be3cb614
I tried to run the latest code but am stuck at this problem.
At boot it there is a very long pause (or stall) while enumerating the DPNIs:
Note the timestamps, the last couple of DPNIs take longer to enumerate. Between
dpaa2_ni8: channels=8
anddpni8: Ethernet address: 00:0a:fa:24:25:06
there is about a 40 second delay. Afterdpaa2_ni9: channels=8
there is a delay of two minutes.On one system it gets stuck at dpni7 (and gets stuck there), on the other it stalls for a minute at dpni9. (Coincidentally, dpni8 and 9 are the SFP ports) I tried both MC firmware 10.20 (current Ten64 default) and 10.29.1 without any change in behaviour.
I bisected the issue to commits 19d82451a68fcd710b3c0a03b2da843b8238a407 and 846462f2d7ec1ae10fbe90da9278a06103af61a2
Commit e856e7a07323a91d532a19af831f4cde63f83cbc is the last good commit