forked from Minki/linux
73a0329b05
NFP is entirely programmable, including the PCI data interface. Using a fixed control BAR layout certainly makes implementations easier, but require careful considerations when space is allocated. Once BAR area is allocated to one feature nothing else can use it. Allocating space statically also requires it to be sized upfront, which leads to either unnecessary limitation or wastage. We currently have a 32bit capability word defined which tells drivers which application FW features are supported. Most of the bits are exhausted. The same bits are also reused for enabling specific features. Bulk of capabilities don't have a need for an enable bit, however, leading to confusion and wastage. TLVs seems like a better fit for expressing capabilities of applications running on programmable hardware. This patch leaves the front of the BAR as is, and declares a TLV capability start at offset 0x58. Most of the space up to 0x0d90 is already allocated, but the used space can be wrapped with RESERVED TLVs. E.g.: Address Type Length 0x0058 RESERVED 0xe00 /* Wrap basic structures */ 0x0e5c FEATURE_A 0x004 0x0e64 FEATURE_B 0x004 0x0e6c RESERVED 0x990 /* Wrap qeueue stats */ 0x1800 FEATURE_C 0x100 Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
56 lines
1.2 KiB
Makefile
56 lines
1.2 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
obj-$(CONFIG_NFP) += nfp.o
|
|
|
|
nfp-objs := \
|
|
nfpcore/nfp6000_pcie.o \
|
|
nfpcore/nfp_cppcore.o \
|
|
nfpcore/nfp_cpplib.o \
|
|
nfpcore/nfp_hwinfo.o \
|
|
nfpcore/nfp_mip.o \
|
|
nfpcore/nfp_mutex.o \
|
|
nfpcore/nfp_nffw.o \
|
|
nfpcore/nfp_nsp.o \
|
|
nfpcore/nfp_nsp_cmds.o \
|
|
nfpcore/nfp_nsp_eth.o \
|
|
nfpcore/nfp_resource.o \
|
|
nfpcore/nfp_rtsym.o \
|
|
nfpcore/nfp_target.o \
|
|
nfp_asm.o \
|
|
nfp_app.o \
|
|
nfp_app_nic.o \
|
|
nfp_devlink.o \
|
|
nfp_hwmon.o \
|
|
nfp_main.o \
|
|
nfp_net_common.o \
|
|
nfp_net_ctrl.o \
|
|
nfp_net_debugdump.o \
|
|
nfp_net_ethtool.o \
|
|
nfp_net_main.o \
|
|
nfp_net_repr.o \
|
|
nfp_net_sriov.o \
|
|
nfp_netvf_main.o \
|
|
nfp_port.o \
|
|
nic/main.o
|
|
|
|
ifeq ($(CONFIG_NFP_APP_FLOWER),y)
|
|
nfp-objs += \
|
|
flower/action.o \
|
|
flower/cmsg.o \
|
|
flower/main.o \
|
|
flower/match.o \
|
|
flower/metadata.o \
|
|
flower/offload.o \
|
|
flower/tunnel_conf.o
|
|
endif
|
|
|
|
ifeq ($(CONFIG_BPF_SYSCALL),y)
|
|
nfp-objs += \
|
|
bpf/cmsg.o \
|
|
bpf/main.o \
|
|
bpf/offload.o \
|
|
bpf/verifier.o \
|
|
bpf/jit.o
|
|
endif
|
|
|
|
nfp-$(CONFIG_NFP_DEBUG) += nfp_net_debugfs.o
|