]> git.openfabrics.org - ~aditr/compat-rdma.git/log
~aditr/compat-rdma.git
5 years agoRemoved unused QED firmware files
Vladimir Sokolovsky [Mon, 13 Aug 2018 14:34:45 +0000 (09:34 -0500)]
Removed unused QED firmware files

Requested by Michal Kalderon <Michal.Kalderon@cavium.com>

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
5 years agoAdded NVME host backport for RHEL7.5
Vladimir Sokolovsky [Fri, 10 Aug 2018 16:22:23 +0000 (11:22 -0500)]
Added NVME host backport for RHEL7.5

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
5 years agocheckout_files: Added block/blk-mq-rdma.c
Vladimir Sokolovsky [Fri, 10 Aug 2018 19:36:35 +0000 (14:36 -0500)]
checkout_files: Added block/blk-mq-rdma.c

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
5 years agoAdded NVME configuration parameters
Vladimir Sokolovsky [Thu, 9 Aug 2018 15:47:24 +0000 (10:47 -0500)]
Added NVME configuration parameters

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
5 years agoiser: Added backport for RHEL7.5
Vladimir Sokolovsky [Wed, 8 Aug 2018 21:31:00 +0000 (16:31 -0500)]
iser: Added backport for RHEL7.5

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
5 years agoAdded support for SLES12 SP3
Vladimir Sokolovsky [Wed, 8 Aug 2018 20:23:18 +0000 (15:23 -0500)]
Added support for SLES12 SP3

The following backports were updated to support SLES12 SP3:
    IB core
    IPOIB
    MLX4
    MLX5

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
5 years agoAdd backport patches for vmw_pvrdma
Adit Ranadive [Mon, 6 Aug 2018 05:37:48 +0000 (22:37 -0700)]
Add backport patches for vmw_pvrdma

Signed-off-by: Adit Ranadive <aditr@vmware.com>
5 years agomlx5: Fixed compilation on RHEL7.5
Vladimir Sokolovsky [Fri, 3 Aug 2018 15:39:44 +0000 (10:39 -0500)]
mlx5: Fixed compilation on RHEL7.5

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
5 years agoadmin_rdma.sh: Copy include/uapi compat headers
Vladimir Sokolovsky [Thu, 2 Aug 2018 18:29:09 +0000 (13:29 -0500)]
admin_rdma.sh: Copy include/uapi compat headers

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
5 years agoMerge branch 'cavium' of https://github.com/mkalderon/ofed-compat-rdma
Vladimir Sokolovsky [Wed, 1 Aug 2018 22:34:19 +0000 (17:34 -0500)]
Merge branch 'cavium' of https://github.com/mkalderon/ofed-compat-rdma

5 years agoAdded MLX5 backport for RHEL7.4
Vladimir Sokolovsky [Wed, 1 Aug 2018 22:27:41 +0000 (17:27 -0500)]
Added MLX5 backport for RHEL7.4

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
5 years agoFixed compilation warnings for MLX4 on RHEL7.4
Vladimir Sokolovsky [Wed, 1 Aug 2018 22:27:24 +0000 (17:27 -0500)]
Fixed compilation warnings for MLX4 on RHEL7.4

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
5 years agoFixed compilation warnings for IB core and IPoIB on RHEL7.4
Vladimir Sokolovsky [Wed, 1 Aug 2018 22:25:39 +0000 (17:25 -0500)]
Fixed compilation warnings for IB core and IPoIB on RHEL7.4

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
5 years agoqed*: Fixes and features for qed that have been commited prior 4.17
Michal Kalderon [Sun, 22 Jul 2018 18:23:45 +0000 (21:23 +0300)]
qed*: Fixes and features for qed that have been commited prior 4.17

Signed-off-by: Michal Kalderon <michal.kalderon@cavium.com>
5 years agoAdded MLX4 support for RHEL7.4
Vladimir Sokolovsky [Fri, 27 Jul 2018 19:43:05 +0000 (14:43 -0500)]
Added MLX4 support for RHEL7.4

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
5 years agoAdded IB core support for RHEL7.4
Vladimir Sokolovsky [Fri, 27 Jul 2018 18:15:30 +0000 (13:15 -0500)]
Added IB core support for RHEL7.4

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
5 years agoFixed mlx4 backport for SLES15
Vladimir Sokolovsky [Thu, 26 Jul 2018 21:00:31 +0000 (16:00 -0500)]
Fixed mlx4 backport for SLES15

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
5 years agogen-compat-config.sh: define COMPAT_CONFIG_KERNEL macros up to 4.17
Vladimir Sokolovsky [Thu, 26 Jul 2018 19:31:06 +0000 (15:31 -0400)]
gen-compat-config.sh: define COMPAT_CONFIG_KERNEL macros up to 4.17

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
5 years agosrp: Added backport for RHEL7.5
Vladimir Sokolovsky [Thu, 26 Jul 2018 19:11:13 +0000 (14:11 -0500)]
srp: Added backport for RHEL7.5

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
5 years agomlxfs: Fixed compilation warning
Vladimir Sokolovsky [Thu, 26 Jul 2018 19:03:15 +0000 (14:03 -0500)]
mlxfs: Fixed compilation warning

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
5 years agomlx5: Fixed compilation warning
Vladimir Sokolovsky [Thu, 26 Jul 2018 19:02:16 +0000 (14:02 -0500)]
mlx5: Fixed compilation warning

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
5 years agoBACKPORTS: Use register_netdevice_notifier from compat's netdevice.h
Vladimir Sokolovsky [Mon, 23 Jul 2018 19:39:16 +0000 (14:39 -0500)]
BACKPORTS: Use register_netdevice_notifier from compat's netdevice.h

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
5 years agoFixed IPoIB backport on RHEL7.5
Vladimir Sokolovsky [Fri, 20 Jul 2018 20:53:21 +0000 (15:53 -0500)]
Fixed IPoIB backport on RHEL7.5

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
5 years agoib_core: Use RHEL's [un]register_netdevice_notifier_rh on RHEL7.x
Vladimir Sokolovsky [Fri, 20 Jul 2018 19:31:35 +0000 (14:31 -0500)]
ib_core: Use RHEL's [un]register_netdevice_notifier_rh on RHEL7.x

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
5 years agomlx4: Added RHEL7.5 support
Vladimir Sokolovsky [Tue, 17 Jul 2018 18:58:26 +0000 (13:58 -0500)]
mlx4: Added RHEL7.5 support

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
5 years agoconfigure|Makefile: Added mlxfw module support
Vladimir Sokolovsky [Tue, 17 Jul 2018 20:20:51 +0000 (15:20 -0500)]
configure|Makefile: Added mlxfw module support

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
5 years agomlx5: Added RHEL7.5 support
Vladimir Sokolovsky [Tue, 26 Jun 2018 22:00:23 +0000 (17:00 -0500)]
mlx5: Added RHEL7.5 support

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
6 years agoMerge branch 'master' of https://github.com/arjunvynipadath/compat-rdma
Vladimir Sokolovsky [Fri, 13 Jul 2018 14:05:02 +0000 (09:05 -0500)]
Merge branch 'master' of https://github.com/arjunvynipadath/compat-rdma

6 years agoMerge branch 'master' of https://github.com/selvintxavier/compat-rdma
Vladimir Sokolovsky [Fri, 13 Jul 2018 14:00:06 +0000 (09:00 -0500)]
Merge branch 'master' of https://github.com/selvintxavier/compat-rdma

6 years agobnxt_en: Fix the bnxt_en backport
Selvin Xavier [Wed, 11 Jul 2018 09:17:20 +0000 (02:17 -0700)]
bnxt_en: Fix the bnxt_en backport

Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
6 years agocxgb4: Use pci_set_vpd_size() for kernels < 4.16
Arjun Vynipadath [Wed, 11 Jul 2018 06:26:08 +0000 (11:56 +0530)]
cxgb4: Use pci_set_vpd_size() for kernels < 4.16

- Fixes adapter initialization issues when using OFED-4.17 on lower kernels(< 4.16).

6 years agoBundle 1.19.1.0 firmware for Chelsio T4/T5/T6 adapters
Arjun Vynipadath [Wed, 11 Jul 2018 06:24:37 +0000 (11:54 +0530)]
Bundle 1.19.1.0 firmware for Chelsio T4/T5/T6 adapters

6 years agoAdded RHEL7.5 support for cxgb4 and iw_cxgb4
Arjun Vynipadath [Wed, 11 Jul 2018 06:24:01 +0000 (11:54 +0530)]
Added RHEL7.5 support for cxgb4 and iw_cxgb4

6 years agoAdded RHEL7.5 support for cxgb3 and iw_cxgb3
Arjun Vynipadath [Wed, 11 Jul 2018 06:23:03 +0000 (11:53 +0530)]
Added RHEL7.5 support for cxgb3 and iw_cxgb3

6 years agoib_core: Fix NULL pointer dereference while registering netdevice
Arjun Vynipadath [Wed, 11 Jul 2018 05:32:18 +0000 (11:02 +0530)]
ib_core: Fix NULL pointer dereference while registering netdevice

Fixes the below NULL pointer dereference seen when loading ib_core

BUG: unable to handle kernel paging request at 0000000000007130
IP: [<ffffffffc0bca438>] netdevice_event+0x48/0x380 [ib_core]
PGD 800000009b5c4067 PUD d2f03067 PMD 0
Oops: 0000 [#1] SMP
Modules linked in: ib_core(OE+) macsec vsock_diag vsock sctp_diag sctp tcp_diag udp_diag inet_diag unix_diag af_packet_diag netlink_diag binfmt_misc xt_CHECKSUM iptable_mangle ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_nat_ipv4 nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_conntrack ipt_REJECT nf_reject_ipv4 tun bridge stp llc ebtable_filter ebtables ip6table_filter ip6_tables iptable_filter devlink sunrpc csiostor cxgb3(OE) intel_powerclamp coretemp kvm_intel kvm irqbypass mdio gpio_ich compat(OE) iTCO_wdt iTCO_vendor_support scsi_transport_fc ppdev sg pcspkr scsi_tgt i2c_i801 lpc_ich tpm_infineon parport_pc parport i7core_edac ioatdma shpchp dca acpi_cpufreq ip_tables xfs libcrc32c sd_mod crc_t10dif crct10dif_generic crct10dif_common mgag200 i2c_algo_bit drm_kms_helper
 syscopyarea sysfillrect sysimgblt fb_sys_fops ttm ata_generic pata_acpi drm ata_piix libata crc32c_intel e1000e mptsas serio_raw scsi_transport_sas mptscsih i2c_core mptbase ptp pps_core floppy dm_mirror dm_region_hash dm_log dm_mod [last unloaded: cxgb4]
CPU: 2 PID: 7402 Comm: insmod Kdump: loaded Tainted: G          IOE  ------------   3.10.0-862.el7.x86_64 #1
Hardware name: Supermicro X8ST3/X8ST3, BIOS 2.0        07/29/10
task: ffff8a598b5d0fd0 ti: ffff8a59cedc0000 task.ti: ffff8a59cedc0000
RIP: 0010:[<ffffffffc0bca438>]  [<ffffffffc0bca438>] netdevice_event+0x48/0x380 [ib_core]
RSP: 0018:ffff8a59cedc3c18  EFLAGS: 00010246
RAX: 0000000000000045 RBX: 0000000000006f6c RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffff8a5a1f293938 RDI: ffff8a5a1f293938
RBP: ffff8a59cedc3c98 R08: 000000000000000a R09: 0000000000000000
R10: 0000000000000494 R11: ffff8a59cedc3916 R12: ffff8a5a1cfef000
R13: 0000000000000005 R14: 0000000000000000 R15: ffffffffa22fc9c8
FS:  00007fe58c4f2740(0000) GS:ffff8a5a1f280000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
CR2: 0000000000007130 CR3: 00000000d04ba000 CR4: 00000000000007e0
Call Trace:
 [<ffffffffc0bca3f0>] ? is_eth_port_inactive_slave+0x40/0x40 [ib_core]
 [<ffffffffa1be5cd8>] __register_netdevice_notifier+0xa8/0x200
 [<ffffffffc0bf9000>] ? 0xffffffffc0bf8fff
 [<ffffffffa1be5e43>] register_netdevice_notifier+0x13/0x20
 [<ffffffffc0bf9261>] roce_gid_mgmt_init+0x51/0x5c [ib_core]
 [<ffffffffc0bf9192>] ib_cache_setup+0x9/0xb [ib_core]
 [<ffffffffc0bf913f>] __init_backport+0x13f/0x189 [ib_core]
 [<ffffffffa160210a>] do_one_initcall+0xba/0x240
 [<ffffffffa170f5ac>] load_module+0x272c/0x2bc0
 [<ffffffffa19767a0>] ? ddebug_proc_write+0xf0/0xf0
 [<ffffffffa170b1e3>] ? copy_module_from_fd.isra.43+0x53/0x150
 [<ffffffffa170fbf6>] SyS_finit_module+0xa6/0xd0
 [<ffffffffa1d1f7d5>] system_call_fastpath+0x1c/0x21
 [<ffffffffa1d1f721>] ? system_call_after_swapgs+0xae/0x146
Code: 89 e6 53 48 83 ec 68 48 8b 1a 65 48 8b 04 25 28 00 00 00 48 89 45 e0 31 c0 48 89 da f3 48 ab 48 c7 c7 70 37 be c0 e8 69 d7 13 e1 <66> 83 bb c4 01 00 00 01 74 26 31 c0 48 8b 5d e0 65 48 33 1c 25
RIP  [<ffffffffc0bca438>] netdevice_event+0x48/0x380 [ib_core]
 RSP <ffff8a59cedc3c18>
CR2: 0000000000007130

6 years agoqed*: Add new OOO configuration
Michal Kalderon [Sun, 8 Jul 2018 17:27:34 +0000 (20:27 +0300)]
qed*: Add new OOO configuration

Signed-off-by: Michal Kalderon <michal.kalderon@cavium.com>
6 years agoAdded RHEL7.5 support for qedr
Michal Kalderon [Sun, 8 Jul 2018 17:08:37 +0000 (20:08 +0300)]
Added RHEL7.5 support for qedr

Signed-off-by: Michal Kalderon <michal.kalderon@cavium.com>
6 years agoAdded RHEL7.5 support for qede
Michal Kalderon [Sun, 8 Jul 2018 17:08:36 +0000 (20:08 +0300)]
Added RHEL7.5 support for qede

Signed-off-by: Michal Kalderon <michal.kalderon@cavium.com>
6 years agoBACKPORT qed: Fix copying 2 strings
Michal Kalderon [Sun, 8 Jul 2018 17:08:35 +0000 (20:08 +0300)]
BACKPORT qed: Fix copying 2 strings

The strscpy() was a recent fix (net: qed: use correct strncpy() size) to
prevent passing the length of the source buffer to strncpy() and guarantee
null termination.
It misses the goal of overwriting only the first 3 characters in
"???_BIG_RAM" and "???_RAM" while keeping the rest of the string.
Use strncpy() with the length of 3, without null termination.

Signed-off-by: Denis Bolotin <denis.bolotin@cavium.com>
Signed-off-by: Michal Kalderon <michal.kalderon@cavium.com>
6 years agobnxt_re: Backport for bnxt_re and bnxt_en
Selvin Xavier [Fri, 6 Jul 2018 07:38:05 +0000 (00:38 -0700)]
bnxt_re: Backport for bnxt_re and bnxt_en

Includs makefile change for bnxt_re and backport changes
for bnxt_en

Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
6 years agoAdded qed firmware files
Vladimir Sokolovsky [Fri, 8 Jun 2018 22:23:46 +0000 (17:23 -0500)]
Added qed firmware files

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
6 years agoconfigure: Added CONFIG_MLX5_ESWITCH default values
Vladimir Sokolovsky [Fri, 8 Jun 2018 21:55:24 +0000 (16:55 -0500)]
configure: Added CONFIG_MLX5_ESWITCH default values

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
6 years agoRebased backport patches over 4.17
Vladimir Sokolovsky [Fri, 8 Jun 2018 21:46:12 +0000 (16:46 -0500)]
Rebased backport patches over 4.17

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
6 years agoAdded RHEL7.5 support for ib_core and IPoIB
Vladimir Sokolovsky [Fri, 4 May 2018 21:17:24 +0000 (16:17 -0500)]
Added RHEL7.5 support for ib_core and IPoIB

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
6 years agocheckout_files: Added net/sunrpc/Kconfig
Vladimir Sokolovsky [Thu, 24 May 2018 15:37:50 +0000 (10:37 -0500)]
checkout_files: Added net/sunrpc/Kconfig

Kconfig files used by the configure script to create a list of CONFIG_
macros which will help to avoid compilation of undesired subdirs.

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
6 years agodrivers/scsi/Makefile: Remove unused components
Vladimir Sokolovsky [Wed, 2 May 2018 16:08:06 +0000 (11:08 -0500)]
drivers/scsi/Makefile: Remove unused components

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
6 years agoscripts: Updated list of linux files to include in the package
Vladimir Sokolovsky [Mon, 30 Apr 2018 19:03:02 +0000 (14:03 -0500)]
scripts: Updated list of linux files to include in the package

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
6 years agoCompile compat only if CONFIG_COMPAT_RDMA is defined
Vladimir Sokolovsky [Mon, 30 Apr 2018 17:01:13 +0000 (12:01 -0500)]
Compile compat only if CONFIG_COMPAT_RDMA is defined

This will enable to avoid compat compilation and use on the base kernel

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
6 years agoconfigure: Autogenerate makefile
Vladimir Sokolovsky [Tue, 24 Apr 2018 21:25:46 +0000 (17:25 -0400)]
configure: Autogenerate makefile

Added support for '--with*' and '--without*' parameters based on kernel CONFIG_* values

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
6 years agoconfigure: Removed xeon phi support
Vladimir Sokolovsky [Tue, 24 Apr 2018 14:22:50 +0000 (10:22 -0400)]
configure: Removed xeon phi support

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
6 years agoconfigure: Fixed configfs setting
Vladimir Sokolovsky [Tue, 24 Apr 2018 13:54:05 +0000 (09:54 -0400)]
configure: Fixed configfs setting

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
6 years agoClean up before switching to 4.17 kernel support
Vladimir Sokolovsky [Mon, 23 Apr 2018 18:07:18 +0000 (13:07 -0500)]
Clean up before switching to 4.17 kernel support

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
6 years agobnxt_re: Add speed defines for 50G and 100G adapters
Selvin Xavier [Tue, 20 Mar 2018 06:43:55 +0000 (23:43 -0700)]
bnxt_re: Add speed defines for 50G and 100G adapters

Adds driver support to display 50G and 100G rates properly.

Bug: 2684
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
6 years agoIB/core: Adding IB_SPEED_HDR definition
Selvin Xavier [Tue, 20 Mar 2018 06:14:33 +0000 (23:14 -0700)]
IB/core: Adding IB_SPEED_HDR definition

Pulling the upstream patch that added support for IB_SPEED_HDR
for 50G adapters

Bug: 2684
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
6 years agobnxt_en: Adding device ids for BCM5880x devices
Selvin Xavier [Tue, 13 Mar 2018 05:08:49 +0000 (22:08 -0700)]
bnxt_en: Adding device ids for BCM5880x devices

Adding device ids for some of the later version of the devices.

Bug: 2682
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
6 years agobnxt_re: Avoid Hard lockup during error CQE
Selvin Xavier [Wed, 7 Mar 2018 09:10:01 +0000 (01:10 -0800)]
bnxt_re: Avoid Hard lockup during error CQE
processing

Cherry picking the hard lockup fix from upstream.
Patch has some additional backporting changes
because the upstream code is different.

Bug: 2681

Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
6 years agoBACKPORT qed: Enable RoCE parser searching on fp init
Michal Kalderon [Sun, 4 Mar 2018 21:35:52 +0000 (23:35 +0200)]
BACKPORT qed: Enable RoCE parser searching on fp init

Since we're closing the parser searching for RDMA when stoping the
fastpath, we need to re-enable it when starting the fastpath once again.

Signed-off-by: Michal Kalderon <Michal.Kalderon@cavium.com>
6 years agoBACKPORT qed: fix dump of context data
Michal Kalderon [Sun, 4 Mar 2018 21:07:39 +0000 (23:07 +0200)]
BACKPORT qed: fix dump of context data

already part of official version
Currently when dumping a context data only word number '1' is read for the
entire context.

Signed-off-by: Michal Kalderon <michal.kalderon@cavium.com>
6 years agoqed: Backport Free RoCE ILT Memory on rmmod qedr
Michal Kalderon [Thu, 1 Mar 2018 19:47:48 +0000 (21:47 +0200)]
qed: Backport Free RoCE ILT Memory on rmmod qedr

Rdma requires ILT Memory to be allocated for it's QPs.
Each ILT entry points to a page used by several Rdma QPs.
To avoid allocating all the memory in advance, the rdma
implementation dynamically allocates memory as more QPs are
added, however it does not dynamically free the memory.
The memory should have been freed on rmmod qedr, but isn't.
This patch adds the memory freeing on rmmod qedr (currently
it will be freed with qed is removed).

An outcome of this bug, is that if qedr is unloaded and loaded
without unloaded qed, there will be no more RoCE traffic.

The reason these are related, is that the logic of detecting the
first QP ever opened is by asking whether ILT memory for RoCE has
been allocated.

Fixes: dbb799c39717e7b7
Signed-off-by: Michal Kalderon <Michal.Kalderon@cavium.com>
6 years agobnxt_re: Fix incorrect DB offset calculation
Selvin Xavier [Wed, 28 Feb 2018 18:07:10 +0000 (10:07 -0800)]
bnxt_re: Fix incorrect DB offset calculation

To support host systems with non 4K page size,
l2_db_size shall be calculated with 4096 instead
of PAGE_SIZE. Also, supply the host page size to
FW during initialization.

Bug: 2676
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
6 years agobnxt_re: Unconditionly fence non wire memory operations
Selvin Xavier [Wed, 28 Feb 2018 18:04:32 +0000 (10:04 -0800)]
bnxt_re: Unconditionly fence non wire memory operations

HW requires an unconditonal fence for all non-wire memory
operations through SQ. This guarantees the completions
of these memory operations

Bug: 2675
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
6 years agobnxt_re: Fix race conditions during load/unload testing
Selvin Xavier [Wed, 28 Feb 2018 18:01:52 +0000 (10:01 -0800)]
bnxt_re: Fix race conditions during load/unload testing

Driver sees a crash/hang due to race conditions during
load/unload scripts. Four patches fixes some the race
conditons.

Bug: 2680
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
6 years agobnxt_re: Fix memory leak if QP create fails
Selvin Xavier [Wed, 28 Feb 2018 17:56:38 +0000 (09:56 -0800)]
bnxt_re: Fix memory leak if QP create fails

Driver leaves the QP memory pinned if QP create command
fails from the FW. Avoids this scenario by adding a proper
exit path if the FW command fails.

Bug: 2679
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
6 years agobnxt_re: Disable atomics support
Selvin Xavier [Wed, 28 Feb 2018 17:52:52 +0000 (09:52 -0800)]
bnxt_re: Disable atomics support

More testing needs to be done before enabling this feature.
Disabling the feature temporarily.

Bug: 2678
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
6 years agoMerge branch 'master' of https://github.com/selvintxavier/compat-rdma
Vladimir Sokolovsky [Wed, 7 Feb 2018 16:07:50 +0000 (10:07 -0600)]
Merge branch 'master' of https://github.com/selvintxavier/compat-rdma

6 years agobnxt_en: Fix Max MTU setting on SLES 12 SP3
Selvin Xavier [Wed, 7 Feb 2018 10:55:18 +0000 (02:55 -0800)]
bnxt_en: Fix Max MTU setting on SLES 12 SP3

Set the max_mtu and min_mtu fields of netdev structure
during initialization.

Bug: 2668
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
6 years agoqede: SLE12SP3 Backport fix use core min max MTU check
Michal Kalderon [Sun, 4 Feb 2018 15:15:43 +0000 (17:15 +0200)]
qede: SLE12SP3 Backport fix use core min max MTU check

Signed-off-by: Michal Kalderon <michal.kalderon@cavium.com>
6 years agoMerge branch 'master' of https://github.com/larrystevenwise/ofed-compat-rdma
Vladimir Sokolovsky [Mon, 22 Jan 2018 22:32:22 +0000 (16:32 -0600)]
Merge branch 'master' of https://github.com/larrystevenwise/ofed-compat-rdma

6 years agocxgb: SLE12SP3 Backport fix: use net core MTU range checking
Steve Wise [Fri, 19 Jan 2018 20:22:13 +0000 (12:22 -0800)]
cxgb: SLE12SP3 Backport fix: use net core MTU range checking

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
6 years agoRemove vmw_pvrdma tech preview patches
Adit Ranadive [Fri, 19 Jan 2018 16:45:29 +0000 (08:45 -0800)]
Remove vmw_pvrdma tech preview patches

Signed-off-by: Adit Ranadive <aditr@vmware.com>
6 years agoFixed mlx4 backport
Vladimir Sokolovsky [Thu, 11 Jan 2018 20:00:19 +0000 (22:00 +0200)]
Fixed mlx4 backport

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
6 years agoqedr cherry pick: lower message verbosity
Ram Amrani [Wed, 20 Dec 2017 10:11:02 +0000 (12:11 +0200)]
qedr cherry pick: lower message verbosity

Reduce the verbosity of an informational message to avoid dmesg flood.

Signed-off-by: Ram Amrani <Ram.Amrani@cavium.com>
6 years agoMerge branch 'for_vlad' of ssh://git.openfabrics.org:1010/home/tomaszc/compat-rdma
Vladimir Sokolovsky [Wed, 3 Jan 2018 20:56:59 +0000 (22:56 +0200)]
Merge branch 'for_vlad' of ssh://git.openfabrics.org:1010/home/tomaszc/compat-rdma

6 years agoUpdate qib backport for SLES 12.3
tczeszun [Wed, 20 Dec 2017 11:56:17 +0000 (03:56 -0800)]
Update qib backport for SLES 12.3

6 years agobnxt_en: backport for RH 7.0 and 7.1
Selvin Xavier [Tue, 19 Dec 2017 09:05:51 +0000 (01:05 -0800)]
bnxt_en: backport for RH 7.0 and 7.1

Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
6 years agocompat-rdma.spec: Added compat-rdma-firmware subpackage
Vladimir Sokolovsky [Mon, 18 Dec 2017 16:16:42 +0000 (18:16 +0200)]
compat-rdma.spec: Added compat-rdma-firmware subpackage

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
6 years agobnxt_en: Backporting for RHEL 7.4 and SLES12SP3
Selvin Xavier [Thu, 14 Dec 2017 13:57:09 +0000 (05:57 -0800)]
bnxt_en: Backporting for RHEL 7.4 and SLES12SP3

Fixing a compilation issue in RHEL 7.4 and fixing a warning
seen with SLES12SP3

Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
6 years agoqedr: Add backports for RHEL 7.4 and SLES 12 SP3
Ram Amrani [Wed, 13 Dec 2017 21:01:50 +0000 (23:01 +0200)]
qedr: Add backports for RHEL 7.4 and SLES 12 SP3

Signed-off-by: Ram Amrani <Ram.Amrani@cavium.com>
6 years agoconfigure: Add parameters for RXE and RDMAVT
Vladimir Sokolovsky [Tue, 5 Dec 2017 22:09:52 +0000 (00:09 +0200)]
configure: Add parameters for RXE and RDMAVT

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
6 years agoib_iser: Added support for SLES12 SP3
Vladimir Sokolovsky [Tue, 5 Dec 2017 16:21:32 +0000 (18:21 +0200)]
ib_iser: Added support for SLES12 SP3

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
6 years agomlx5: Added support for SLES12 SP3
Vladimir Sokolovsky [Tue, 5 Dec 2017 16:21:15 +0000 (18:21 +0200)]
mlx5: Added support for SLES12 SP3

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
6 years agomlx4: Added support for SLES12 SP3
Vladimir Sokolovsky [Tue, 5 Dec 2017 16:21:02 +0000 (18:21 +0200)]
mlx4: Added support for SLES12 SP3

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
6 years agoib_core: Added support for SLES12 SP3
Vladimir Sokolovsky [Tue, 5 Dec 2017 16:20:46 +0000 (18:20 +0200)]
ib_core: Added support for SLES12 SP3

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
6 years agomlx5: Added RHEL7.4 support
Vladimir Sokolovsky [Mon, 4 Dec 2017 16:09:29 +0000 (18:09 +0200)]
mlx5: Added RHEL7.4 support

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
6 years agomlx4: Added RHEL7.4 support
Vladimir Sokolovsky [Mon, 4 Dec 2017 16:09:14 +0000 (18:09 +0200)]
mlx4: Added RHEL7.4 support

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
6 years agoconfigure/makefile: Rename CONFIG_INFINIBAND_RXE -> CONFIG_RDMA_RXE to match upstream
Vladimir Sokolovsky [Mon, 4 Dec 2017 16:08:27 +0000 (18:08 +0200)]
configure/makefile: Rename CONFIG_INFINIBAND_RXE -> CONFIG_RDMA_RXE to match upstream

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
6 years agoopenibd: rpcrdma added to the list of modules to unload vofed-4.8-1
Vladimir Sokolovsky [Thu, 16 Nov 2017 22:09:00 +0000 (00:09 +0200)]
openibd: rpcrdma added to the list of modules to unload

Issue: http://bugs.openfabrics.org/show_bug.cgi?id=2659

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
6 years agobnxt_en/bnxt_re: Support ulp_shutdown hook vofed-4.8-1-rc3
Selvin Xavier [Mon, 6 Nov 2017 16:35:29 +0000 (08:35 -0800)]
bnxt_en/bnxt_re: Support ulp_shutdown hook

When bnxt_en gets a PCI shutdown call, we need to have a new callback
to inform the RDMA driver to do proper shutdown and removal.

Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
6 years agobnxt_re: BZ 2655 Fix nfs client hang with a call trace on stress traffic
Selvin Xavier [Mon, 6 Nov 2017 16:18:13 +0000 (08:18 -0800)]
bnxt_re: BZ 2655 Fix nfs client hang with a call trace on stress traffic

Adding memory barriers before processing a completion. Also, fixes some
race condition in moving the QP to error state during an Rx CQE error and
synchronize poll_cq and req_notify_cq.

Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
6 years agobnxt_re: BZ 2654 Fix traffic failure after changing ip address
Selvin Xavier [Thu, 2 Nov 2017 16:06:38 +0000 (09:06 -0700)]
bnxt_re: BZ 2654 Fix traffic failure after changing ip address

While adding a new gid, the driver currently does not return the context
back to the stack. A subsequent del_gid() (e.g, when ip address is changed)
doesn't find the right context in the driver and it ends up dropping that
request. This results in the HW caching a stale gid entry and traffic fails
because of that. Fix by returning the proper context in bnxt_re_add_gid()

Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
6 years agobnxt_re: BZ 2656 fix a crash in qp error event processing
Selvin Xavier [Thu, 2 Nov 2017 15:30:26 +0000 (08:30 -0700)]
bnxt_re: BZ 2656 fix a crash in qp error event processing

In bnxt_qplib_process_qp_event(), for qp error events we look up the
qp-handle and pass it for further processing. But we don't check if the
handle is NULL. This could lead to a crash in the called functions when
that qp-handle is dereferenced, if the qp is destroyed in the meantime.
Fix this by checking for a valid qp-handle in that function.

Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
6 years agobnxt_en: BZ 2649 Enabling DCB parameter for bnxt_en
Selvin Xavier [Thu, 2 Nov 2017 09:33:36 +0000 (02:33 -0700)]
bnxt_en: BZ 2649 Enabling DCB parameter for bnxt_en

Enabling CONFIG_BNXT_DCB for adding Host based DCB support.
Also including the latest patches related to DCB support.

Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
6 years agobnxt_re: bz 2646 - 0012-bnxt_re-Make-room-for-mapping-beyond-32-entries.patch vofed-4.8-1-rc2
Selvin Xavier [Mon, 23 Oct 2017 10:15:14 +0000 (03:15 -0700)]
bnxt_re: bz 2646 - 0012-bnxt_re-Make-room-for-mapping-beyond-32-entries.patch

Fixing the size of the HW command

Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
6 years agobnxt_en: Bug 2645 - Set default completion ring for async events
Selvin Xavier [Mon, 23 Oct 2017 10:03:12 +0000 (03:03 -0700)]
bnxt_en: Bug 2645 - Set default completion ring for async events

Adding patch from upstream which fixes the link status reporting
issues.

Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
6 years agoqedr: fix BZ 2642 - parse VLAN ID and priority correctly
Ram Amrani [Mon, 16 Oct 2017 11:31:24 +0000 (14:31 +0300)]
qedr: fix BZ 2642 - parse VLAN ID and priority correctly

Parse VLAN ID correctly i.e. mask off the priority field.
Parse the VLAN priority to the sl field.

Signed-off-by: Ram Amrani <Ram.Amrani@cavium.com>
6 years agoFixes for i40iw which have been included in kernels
Tatyana Nikolova [Mon, 9 Oct 2017 17:11:21 +0000 (10:11 -0700)]
Fixes for i40iw which have been included in kernels
4.12 and 4.13

Signed-off-by: Tatyana Nikolova <tatyana.e.nikolova@intel.com>
6 years agoib_srp: Fixed backport vofed-4.8-1-rc1
Sergey Gorenko [Mon, 25 Sep 2017 15:51:43 +0000 (18:51 +0300)]
ib_srp: Fixed backport

This patch fixes http://bugs.openfabrics.org/show_bug.cgi?id=2635

Signed-off-by: Sergey Gorenko <sergeygo@mellanox.com>
Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
6 years agobnxt_en: Misc bug fixes
Selvin Xavier [Sun, 24 Sep 2017 16:00:44 +0000 (09:00 -0700)]
bnxt_en: Misc bug fixes

Add new device ids.
Fixes the rtnl_lock issue while loading bnxt_re driver on some of the
systems.

Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
6 years agobnxt_re: Fix bnxt_en installation in the latest daily builds
Selvin Xavier [Wed, 13 Sep 2017 10:33:15 +0000 (03:33 -0700)]
bnxt_re: Fix bnxt_en installation in the latest daily builds

During OFED installation, bnxt_en is not getting installed after
the check-in  "makefile: Added CONFIG_BNXT parameter to override
kernel's default". Fixing the issue by passing
CONFIG_BNXT=m instead of y.

Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
6 years agobnxt_re: Adding bug fix patches
Selvin Xavier [Tue, 5 Sep 2017 18:07:30 +0000 (11:07 -0700)]
bnxt_re: Adding bug fix patches

Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>