Subject: Re: mlx4: "failed to allocate default counter port 1"

From: Or Gerlitz <[email-masked]>
Date: Tue, 30 Jun 2015 15:53:16 +0300

On 6/30/2015 1:45 PM, Sebastian Ott wrote:
> [   88.909558] mlx4_slave_cmd op=3840, ret=-22, status=3
> [   88.909562] mlx4_core 0000:00:00.0: mlx4_allocate_default_counters: failed to allocate default counter port 1 err -22
> [   88.909564] mlx4_core 0000:00:00.0: Failed to allocate default counters, aborting
> [   88.961735] mlx4_core: probe of 0000:00:00.0 failed with error -22

Do you run the VF on the same system/kernel as the PF, or the VF is 
probed to VM which runs the latest kernel and the PF runsolder kernel 
(which?)

Can you also hook the PF code that serves this flow to see where we 
actually fail? basically, we should be going this way 
mlx4_ALLOC_RES_wrapper --> counter_alloc_res -- so I'd like to see which 
of the branches in counter_alloc_res fails...

Or.