diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2021-08-22 15:48:33 +0200 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2021-08-24 11:40:39 -0500 |
commit | 667bb0e8f7106c6ca3b30254a7fdcd1ea04d3580 (patch) | |
tree | 8b324959f333a16628feadab48c7f1b7507fdc92 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 466a79f417be2f2b0d875a9766a3cff10c3bedf1 (diff) |
sfc: falcon: Read VPD with pci_vpd_alloc()
Use pci_vpd_alloc() to dynamically allocate a properly sized buffer and
read the full VPD data into it.
This avoids having to allocate a buffer on the stack, and we don't have to
make any assumptions on VPD size and location of information in VPD.
This is the same as 5119e20facfa ("sfc: Read VPD with pci_vpd_alloc()"),
just for the falcon chip version.
Link: https://lore.kernel.org/r/2a8d069e-9516-50d8-6520-2614222c8f5f@gmail.com
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions