aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/netronome/Kconfig
diff options
context:
space:
mode:
authorJiong Wang <jiong.wang@netronome.com>2019-08-23 19:00:28 -0700
committerDaniel Borkmann <daniel@iogearbox.net>2019-08-26 23:03:05 +0200
commit86c28b2d69f93a218a9a5cef146ed0097a98687f (patch)
treee07815a72b0c7b5ae1e287e9a5be88b9323056ac /drivers/net/ethernet/netronome/Kconfig
parentr8152: Set memory to all 0xFFs on failed reg reads (diff)
downloadlinux-dev-86c28b2d69f93a218a9a5cef146ed0097a98687f.tar.xz
linux-dev-86c28b2d69f93a218a9a5cef146ed0097a98687f.zip
nfp: bpf: fix latency bug when updating stack index register
NFP is using Local Memory to model stack. LM_addr could be used as base of a 16 32-bit word region of Local Memory. Then, if the stack offset is beyond the current region, the local index needs to be updated. The update needs at least three cycles to take effect, therefore the sequence normally looks like: local_csr_wr[ActLMAddr3, gprB_5] nop nop nop If the local index switch happens on a narrow loads, then the instruction preparing value to zero high 32-bit of the destination register could be counted as one cycle, the sequence then could be something like: local_csr_wr[ActLMAddr3, gprB_5] nop nop immed[gprB_5, 0] However, we have zero extension optimization that zeroing high 32-bit could be eliminated, therefore above IMMED insn won't be available for which case the first sequence needs to be generated. Fixes: 0b4de1ff19bf ("nfp: bpf: eliminate zero extension code-gen") Signed-off-by: Jiong Wang <jiong.wang@netronome.com> Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'drivers/net/ethernet/netronome/Kconfig')
0 files changed, 0 insertions, 0 deletions