Received: by 10.213.65.68 with SMTP id h4csp84775imn; Thu, 15 Mar 2018 17:58:42 -0700 (PDT) X-Google-Smtp-Source: AG47ELusv29qPZw/nhxmyZCPDU6TpW4A2debVtbe629eD6xPo2QQxshUJeZzm1KKZs77hcBoHtZT X-Received: by 2002:a17:902:8a4:: with SMTP id 33-v6mr10587438pll.274.1521161922717; Thu, 15 Mar 2018 17:58:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521161922; cv=none; d=google.com; s=arc-20160816; b=uM4uINQ3O7ObAlpKxQS/DWfrboUTN4X+P+N/puT5GsB5+nqLNtHeZAm0l9k5KJwvBg ZZRS1pLT1SdyycGiLYNDwz+qRTTuB/jGxbLdRDEhuE6rHMiVc8sQUlWe2VfXVxLBOy6v KSbRR/c6Ny/s15wVjzVxxoas+wfaaJKJSW68+zQm0v8ba5tw/2l6SQSkdxzlIMN+gMkY sKfjsaaBLcnlKphFxsQrlqlzjIRVMyS0Tal9LSNQq8j5zLg8qTYCYTUZrgtZIFAtHw7q nH/PUJivVA2ijgB9WygCFgEoUAerBDhm36oLzP4dm7CDt42BPp4eG/WmcUgVoXHy9Fmh 9Oaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:subject:cc:to :from:date:dkim-signature:arc-authentication-results; bh=mSIeK4pFjDrRotrqUDuFmdS3YO3pg+noZYOpkhMSh/s=; b=xM/G3c+FeqDSEoUIfjhkyfxubYlmj7uefTA4pytxATSTEIsURjGsrWerjDyeGpHT6q wFWml4O23fSRGtQibbpPcdEb6UoOzeVu3WEHiuJryxo04muhphU8iALUd6UW9FtmCIUI GBV9MyM7zxGXCsUcPCa0VJhm/ie3i+mUuXkq3g2+WqewZGyeHm3P8WQlszdertsRduh+ top5PfvyFL5hZBUqcZT9yu3UQz0XbjN5zkrCxd2i4ut1Tg0so/9oY5aCtMtoSGWRigoM UeDCcAtB9W5s3f9I7qI25IQ0nCy958i/AJbhF+Uz4XGyBNB0Ms15JrTgtULCcVF9kMEn UCkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=CI8fjO//; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p11si4664715pfl.127.2018.03.15.17.58.28; Thu, 15 Mar 2018 17:58:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=CI8fjO//; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932883AbeCPA5M (ORCPT + 99 others); Thu, 15 Mar 2018 20:57:12 -0400 Received: from ozlabs.org ([103.22.144.67]:49983 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932617AbeCPA5H (ORCPT ); Thu, 15 Mar 2018 20:57:07 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 402Rr06CmMz9sVY; Fri, 16 Mar 2018 11:57:04 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=canb.auug.org.au DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=canb.auug.org.au; s=201702; t=1521161825; bh=Eo32+MyVbIaOWDLpK0fbnruK8MfIgfzcC0Lb6F1z5e4=; h=Date:From:To:Cc:Subject:From; b=CI8fjO//JGd44jZtVKkDxGCMdgCLkW/nZ2d1Ph9ufrPXn+yzhn9phCvVCsRB337HP R4ADa2FpZhJkKClybPvNO1/w0K7UcRDEofEEpPDhkAu9BBrgwzNcFA7sMnHOmuVFId 7Nvb1kpAOa/nNdxrZONUwpzOXKjsGRLSZsrN/zE1TtKIQODfrtfVU4TFSukB08XfRX gis8eagw4zg6ZFtWz9NO7F5QtRdxUeLHwkPQMRf2/gCC54/E9Hmwr/qer7IabXXvMh ajB1u1crVJt5fi33GCzmGawTcBBIcmgMDaldk+nU53ynfvT0a8uhZeiorXklGq8pAG w/s5Uk0qZcBMA== Date: Fri, 16 Mar 2018 11:56:10 +1100 From: Stephen Rothwell To: David Miller , Networking , Doug Ledford , Jason Gunthorpe Cc: Linux-Next Mailing List , Linux Kernel Mailing List , Mark Bloch , Leon Romanovsky Subject: linux-next: manual merge of the net-next tree with the rdma-fixes tree Message-ID: <20180316115610.3d7f232a@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/EM/EaYw6DMwyr/_jC+NRfnQ"; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/EM/EaYw6DMwyr/_jC+NRfnQ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, Today's linux-next merge of the net-next tree got a conflict in: drivers/infiniband/hw/mlx5/main.c between commit: 42cea83f9524 ("IB/mlx5: Fix cleanup order on unload") from the rdma-fixes tree and commit: b5ca15ad7e61 ("IB/mlx5: Add proper representors support") from the net-next tree. I fixed it up (see below and the merge fix patch as well) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts. From: Stephen Rothwell Date: Fri, 16 Mar 2018 11:54:01 +1100 Subject: [PATCH] IB/mlx5: merge fix for "Fix cleanup order on unload" Signed-off-by: Stephen Rothwell --- drivers/infiniband/hw/mlx5/ib_rep.c | 6 +++--- drivers/infiniband/hw/mlx5/mlx5_ib.h | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/infiniband/hw/mlx5/ib_rep.c b/drivers/infiniband/hw/ml= x5/ib_rep.c index 61cc3d7db257..7fb997dadd80 100644 --- a/drivers/infiniband/hw/mlx5/ib_rep.c +++ b/drivers/infiniband/hw/mlx5/ib_rep.c @@ -33,9 +33,9 @@ static const struct mlx5_ib_profile rep_profile =3D { STAGE_CREATE(MLX5_IB_STAGE_IB_REG, mlx5_ib_stage_ib_reg_init, mlx5_ib_stage_ib_reg_cleanup), - STAGE_CREATE(MLX5_IB_STAGE_UMR_RESOURCES, - mlx5_ib_stage_umr_res_init, - mlx5_ib_stage_umr_res_cleanup), + STAGE_CREATE(MLX5_IB_STAGE_POST_IB_REG_UMR, + mlx5_ib_stage_post_ib_reg_umr_init, + NULL), STAGE_CREATE(MLX5_IB_STAGE_CLASS_ATTR, mlx5_ib_stage_class_attr_init, NULL), diff --git a/drivers/infiniband/hw/mlx5/mlx5_ib.h b/drivers/infiniband/hw/m= lx5/mlx5_ib.h index 7ec753ec7962..c45a7abdbe3e 100644 --- a/drivers/infiniband/hw/mlx5/mlx5_ib.h +++ b/drivers/infiniband/hw/mlx5/mlx5_ib.h @@ -1071,8 +1071,7 @@ int mlx5_ib_stage_bfrag_init(struct mlx5_ib_dev *dev); void mlx5_ib_stage_bfrag_cleanup(struct mlx5_ib_dev *dev); int mlx5_ib_stage_ib_reg_init(struct mlx5_ib_dev *dev); void mlx5_ib_stage_ib_reg_cleanup(struct mlx5_ib_dev *dev); -int mlx5_ib_stage_umr_res_init(struct mlx5_ib_dev *dev); -void mlx5_ib_stage_umr_res_cleanup(struct mlx5_ib_dev *dev); +int mlx5_ib_stage_post_ib_reg_umr_init(struct mlx5_ib_dev *dev); int mlx5_ib_stage_class_attr_init(struct mlx5_ib_dev *dev); void __mlx5_ib_remove(struct mlx5_ib_dev *dev, const struct mlx5_ib_profile *profile, --=20 2.16.1 --=20 Cheers, Stephen Rothwell diff --cc drivers/infiniband/hw/mlx5/main.c index da091de4e69d,d9474b95d8e5..000000000000 --- a/drivers/infiniband/hw/mlx5/main.c +++ b/drivers/infiniband/hw/mlx5/main.c @@@ -4860,19 -4999,19 +4996,19 @@@ int mlx5_ib_stage_ib_reg_init(struct ml return ib_register_device(&dev->ib_dev, NULL); } =20 -void mlx5_ib_stage_ib_reg_cleanup(struct mlx5_ib_dev *dev) +static void mlx5_ib_stage_pre_ib_reg_umr_cleanup(struct mlx5_ib_dev *dev) { - ib_unregister_device(&dev->ib_dev); + destroy_umrc_res(dev); } =20 - static void mlx5_ib_stage_ib_reg_cleanup(struct mlx5_ib_dev *dev) -int mlx5_ib_stage_umr_res_init(struct mlx5_ib_dev *dev) ++void mlx5_ib_stage_ib_reg_cleanup(struct mlx5_ib_dev *dev) { - return create_umr_res(dev); + ib_unregister_device(&dev->ib_dev); } =20 - static int mlx5_ib_stage_post_ib_reg_umr_init(struct mlx5_ib_dev *dev) -void mlx5_ib_stage_umr_res_cleanup(struct mlx5_ib_dev *dev) ++int mlx5_ib_stage_post_ib_reg_umr_init(struct mlx5_ib_dev *dev) { - destroy_umrc_res(dev); + return create_umr_res(dev); } =20 static int mlx5_ib_stage_delay_drop_init(struct mlx5_ib_dev *dev) @@@ -4999,6 -5144,48 +5144,48 @@@ static const struct mlx5_ib_profile pf_ NULL), }; =20 + static const struct mlx5_ib_profile nic_rep_profile =3D { + STAGE_CREATE(MLX5_IB_STAGE_INIT, + mlx5_ib_stage_init_init, + mlx5_ib_stage_init_cleanup), + STAGE_CREATE(MLX5_IB_STAGE_FLOW_DB, + mlx5_ib_stage_flow_db_init, + mlx5_ib_stage_flow_db_cleanup), + STAGE_CREATE(MLX5_IB_STAGE_CAPS, + mlx5_ib_stage_caps_init, + NULL), + STAGE_CREATE(MLX5_IB_STAGE_NON_DEFAULT_CB, + mlx5_ib_stage_rep_non_default_cb, + NULL), + STAGE_CREATE(MLX5_IB_STAGE_ROCE, + mlx5_ib_stage_rep_roce_init, + mlx5_ib_stage_rep_roce_cleanup), + STAGE_CREATE(MLX5_IB_STAGE_DEVICE_RESOURCES, + mlx5_ib_stage_dev_res_init, + mlx5_ib_stage_dev_res_cleanup), + STAGE_CREATE(MLX5_IB_STAGE_COUNTERS, + mlx5_ib_stage_counters_init, + mlx5_ib_stage_counters_cleanup), + STAGE_CREATE(MLX5_IB_STAGE_UAR, + mlx5_ib_stage_uar_init, + mlx5_ib_stage_uar_cleanup), + STAGE_CREATE(MLX5_IB_STAGE_BFREG, + mlx5_ib_stage_bfrag_init, + mlx5_ib_stage_bfrag_cleanup), + STAGE_CREATE(MLX5_IB_STAGE_IB_REG, + mlx5_ib_stage_ib_reg_init, + mlx5_ib_stage_ib_reg_cleanup), - STAGE_CREATE(MLX5_IB_STAGE_UMR_RESOURCES, - mlx5_ib_stage_umr_res_init, - mlx5_ib_stage_umr_res_cleanup), ++ STAGE_CREATE(MLX5_IB_STAGE_POST_IB_REG_UMR, ++ mlx5_ib_stage_post_ib_reg_umr_init, ++ NULL), + STAGE_CREATE(MLX5_IB_STAGE_CLASS_ATTR, + mlx5_ib_stage_class_attr_init, + NULL), + STAGE_CREATE(MLX5_IB_STAGE_REP_REG, + mlx5_ib_stage_rep_reg_init, + mlx5_ib_stage_rep_reg_cleanup), + }; +=20 static void *mlx5_ib_add_slave_port(struct mlx5_core_dev *mdev, u8 port_n= um) { struct mlx5_ib_multiport_info *mpi; --Sig_/EM/EaYw6DMwyr/_jC+NRfnQ Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAlqrFioACgkQAVBC80lX 0Gzmxwf9GpGubOButnTfLtxahHxO0JLAJpcrSFtVpeLEbay8+m0hkFghyaMllhRI r0lEqJXdJDVF+631oadRew1S2dO6P0cPBlM2mK9gSbPNJZdkOgu3xkQSJOHUYuTT VBYbzisdzF+27C+CCqnwEbA6D49+/ntIpbohzt0T/FlLFSSDTBOLCvPZ2yalHw0q VIlIwyKsgM8UuT7uDpfh/a/6wqi0qh6fl85o1Gr/qNKG4P8StO9dU76m55dboBkg A8/UXxqO6TOGPvavfZEgBdWp/PsrQLJJ31faURLfIRSWEJ59WfnfQ30n0h8JdKan q2Dr8C7RKn5YvNvgAPUNkr75AeP5BA== =auFt -----END PGP SIGNATURE----- --Sig_/EM/EaYw6DMwyr/_jC+NRfnQ--