kernel_samsung_a53x/drivers/net/ethernet/netronome/nfp
Daniel Basilio 13d22dd868 nfp: use correct macro for LengthSelect in BAR config
commit b3d4f7f2288901ed2392695919b3c0e24c1b4084 upstream.

The 1st and 2nd expansion BAR configuration registers are configured,
when the driver starts up, in variables 'barcfg_msix_general' and
'barcfg_msix_xpb', respectively. The 'LengthSelect' field is ORed in
from bit 0, which is incorrect. The 'LengthSelect' field should
start from bit 27.

This has largely gone un-noticed because
NFP_PCIE_BAR_PCIE2CPP_LengthSelect_32BIT happens to be 0.

Fixes: 4cb584e0ee7d ("nfp: add CPP access core")
Cc: stable@vger.kernel.org # 4.11+
Signed-off-by: Daniel Basilio <daniel.basilio@corigine.com>
Signed-off-by: Louis Peens <louis.peens@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-18 12:13:32 +01:00
..
abm Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bpf Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
crypto Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
flower Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nfpcore nfp: use correct macro for LengthSelect in BAR config 2024-11-18 12:13:32 +01:00
nic Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ccm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ccm.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ccm_mbox.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
devlink_param.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nfp_abi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nfp_app.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nfp_app.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nfp_app_nic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nfp_asm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nfp_asm.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nfp_devlink.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nfp_hwmon.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nfp_main.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nfp_main.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nfp_net.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nfp_net_common.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nfp_net_ctrl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nfp_net_ctrl.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nfp_net_debugdump.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nfp_net_debugfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nfp_net_ethtool.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nfp_net_main.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nfp_net_repr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nfp_net_repr.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nfp_net_sriov.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nfp_net_sriov.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nfp_netvf_main.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nfp_port.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nfp_port.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nfp_shared_buf.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00