diff options
| author | Shannon Nelson <[email protected]> | 2014-11-13 03:06:19 +0000 |
|---|---|---|
| committer | Jeff Kirsher <[email protected]> | 2014-12-06 04:46:45 -0800 |
| commit | 5fb11d761082c6dc5c7b46ad46af33ca7f518584 (patch) | |
| tree | 05b25ff4b73551d6e3a7cb0cd88681e78b0d3a3d /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | baf732773502c59421af401e5256f5b453f70fa5 (diff) | |
i40e: get pf_id from HW rather than PCI function
Getting the pf_id from the function number was a good place to start,
but when the PF was setup in passthru mode, the PCI bus/device/function
was virtualized and the number in the VM is different from the number in
the bare metal. This caused HW configuration issues when the wrong pf_id
was used to set up the HMC and other structures. The PF_FUNC_RID register
has the real bus/device/function information as configured by the BIOS,
so use that for a better number. This works in NPAR mode as well.
Change-ID: I65e3dd6c97594890c2bad566b83cc670b1dae534
Signed-off-by: Shannon Nelson <[email protected]>
Acked-by: Greg Rose <[email protected]>
Acked-by: Kevin Scott <[email protected]>
Tested-by: Jim Young <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions