Hey Wilco,
Thanks for your review.
So this is a huge amount of code that duplicates the Neoverse V2 version.
I'm surprised this models things in a very different way than the Neoverse V2
scheduler, despite the micro architectures being related.
I would have expected to make minor changes and share most code. I would
share the huge neoversev2_dispatch mappings and deal with any differences
in the callback.
Overall I'm confused what all the total_slots calculations are trying to
achieve.
Basically things are going wrong right here:
+ static const int neoversev3_dispatch_max_slots[] = {
+ 20, /* total slots */
A 10 wide CPU has 10 slots, not 20...
I am trying to follow the Neoverse V2 model, which uses 16 for total
slots. If that is wrong too, we should fix both models.
I think it is best to start with a fairly simplistic model that models the
basics and then
improve upon it by adding more complex cases. For example just modelling the max
number of alu, simd, load and store ops would be a good starting point.
Maybe we can just start with counting load and vector instructions since
they have dispatch constraints and try to build up from that. If that is
the case, should we also have another look at Neoverse V2 and try to
simplify that model well?
Many thanks,
Saurabh
At least it's clear why both dispatch schedulers don't show any improvement!
Cheers,
Wilco