]> git.droids-corp.org - dpdk.git/commit
raw/ifpga: support OFS card probing
authorWei Huang <wei.huang@intel.com>
Tue, 7 Jun 2022 09:07:23 +0000 (05:07 -0400)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 7 Jun 2022 13:50:54 +0000 (15:50 +0200)
commit673c897f4d73e97035de1c8062737d4abef6a6a5
treed560507497f6803d8eed7caecf398711c55f3215
parent2545683564aa15f36392be2b4ceead454064135b
raw/ifpga: support OFS card probing

PAC N6000 is the first OFS platform, its device id is added to ifpga
device support list.

Previous FPGA platform like Intel PAC N3000 and N5000, FME DFL (Device
Feature List) starts from BAR0 by default, port DFL location is indicated
in PORTn_OFFSET register in FME. In OFS implementation, FME DFL and port
DFL location can be defined individually in PCIe VSEC (Vendor Specific
Extended Capabilities). In this patch, DFL definition is searched in VSEC,
the legacy DFL is used only when DFL VSEC is not present.

In original DFL enumeration process, AFU is expected to locate in port DFL,
but this is not the case in OFS implementation. In this patch, enumeration
can search AFU in any PF/VF which has no FME and port.

Signed-off-by: Wei Huang <wei.huang@intel.com>
Acked-by: Tianfei Zhang <tianfei.zhang@intel.com>
Reviewed-by: Rosen Xu <rosen.xu@intel.com>
drivers/raw/ifpga/base/ifpga_api.c
drivers/raw/ifpga/base/ifpga_defines.h
drivers/raw/ifpga/base/ifpga_enumerate.c
drivers/raw/ifpga/base/ifpga_enumerate.h
drivers/raw/ifpga/base/ifpga_feature_dev.c
drivers/raw/ifpga/base/ifpga_hw.h
drivers/raw/ifpga/base/opae_hw_api.c
drivers/raw/ifpga/base/opae_hw_api.h
drivers/raw/ifpga/ifpga_rawdev.c