Hi Saurabh,

> This patch series introduces dispatch scheduling for Neoverse V3. It
> has two patches:
>
> 1. A refactoring patch that adds a prefix to Neoverse V2's dispatch
> constraint values.
> 2. A patch that introduces dispatch based scheduling for Neoverse V3.

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 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.

At least it's clear why both dispatch schedulers don't show any improvement!

Cheers,
Wilco

Reply via email to