public inbox for linux-next@vger.kernel.org 
 help / color / mirror / Atom feed
From: Stephen Rothwell <sfr@canb•auug.org.au>
To: David Miller <davem@davemloft•net>,
	Jakub Kicinski <kuba@kernel•org>, Paolo Abeni <pabeni@redhat•com>,
	Networking <netdev@vger•kernel.org>,
	Jason Gunthorpe <jgg@nvidia•com>,
	Leon Romanovsky <leonro@nvidia•com>
Cc: Dan Carpenter <dan.carpenter@linaro•org>,
	Dave Ertman <david.m.ertman@intel•com>,
	Leon Romanovsky <leon@kernel•org>,
	Linux Kernel Mailing List <linux-kernel@vger•kernel.org>,
	Linux Next Mailing List <linux-next@vger•kernel.org>,
	Michal Swiatkowski <michal.swiatkowski@linux•intel.com>,
	Mustafa Ismail <mustafa.ismail@intel•com>,
	Shiraz Saleem <shiraz.saleem@intel•com>,
	Tatyana Nikolova <tatyana.e.nikolova@intel•com>,
	Tony Nguyen <anthony.l.nguyen@intel•com>
Subject: linux-next: manual merge of the net-next tree with the rdma-fixes tree
Date: Tue, 13 May 2025 13:06:30 +1000	[thread overview]
Message-ID: <20250513130630.280ee6c5@canb.auug.org.au> (raw)

[-- Attachment #1: Type: text/plain, Size: 3725 bytes --]

Hi all,

Today's linux-next merge of the net-next tree got a conflict in:

  drivers/infiniband/hw/irdma/main.c

between commits:

  80f2ab46c2ee ("irdma: free iwdev->rf after removing MSI-X")
  4bcc063939a5 ("ice, irdma: fix an off by one in error handling code")

from the rdma-fixes tree and commit:

  c24a65b6a27c ("iidc/ice/irdma: Update IDC to support multiple consumers")

from the net-next tree.

I fixed it up (see below) 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.

-- 
Cheers,
Stephen Rothwell

diff --cc drivers/infiniband/hw/irdma/main.c
index 7599e31b5743,abb532bc8ce4..000000000000
--- a/drivers/infiniband/hw/irdma/main.c
+++ b/drivers/infiniband/hw/irdma/main.c
@@@ -221,8 -221,8 +221,8 @@@ static int irdma_init_interrupts(struc
  			break;
  
  	if (i < IRDMA_MIN_MSIX) {
 -		for (; i > 0; i--)
 +		while (--i >= 0)
- 			ice_free_rdma_qvector(pf, &rf->msix_entries[i]);
+ 			ice_free_rdma_qvector(cdev, &rf->msix_entries[i]);
  
  		kfree(rf->msix_entries);
  		return -ENOMEM;
@@@ -245,35 -245,40 +245,42 @@@ static void irdma_deinit_interrupts(str
  
  static void irdma_remove(struct auxiliary_device *aux_dev)
  {
- 	struct iidc_auxiliary_dev *iidc_adev = container_of(aux_dev,
- 							    struct iidc_auxiliary_dev,
- 							    adev);
- 	struct ice_pf *pf = iidc_adev->pf;
  	struct irdma_device *iwdev = auxiliary_get_drvdata(aux_dev);
+ 	struct iidc_rdma_core_auxiliary_dev *iidc_adev;
+ 	struct iidc_rdma_core_dev_info *cdev_info;
  
+ 	iidc_adev = container_of(aux_dev, struct iidc_rdma_core_auxiliary_dev, adev);
+ 	cdev_info = iidc_adev->cdev_info;
+ 
+ 	ice_rdma_update_vsi_filter(cdev_info, iwdev->vsi_num, false);
  	irdma_ib_unregister_device(iwdev);
- 	ice_rdma_update_vsi_filter(pf, iwdev->vsi_num, false);
- 	irdma_deinit_interrupts(iwdev->rf, pf);
+ 	irdma_deinit_interrupts(iwdev->rf, cdev_info);
  
 +	kfree(iwdev->rf);
 +
- 	pr_debug("INIT: Gen2 PF[%d] device remove success\n", PCI_FUNC(pf->pdev->devfn));
+ 	pr_debug("INIT: Gen2 PF[%d] device remove success\n", PCI_FUNC(cdev_info->pdev->devfn));
  }
  
- static void irdma_fill_device_info(struct irdma_device *iwdev, struct ice_pf *pf,
- 				   struct ice_vsi *vsi)
+ static void irdma_fill_device_info(struct irdma_device *iwdev,
+ 				   struct iidc_rdma_core_dev_info *cdev_info)
  {
+ 	struct iidc_rdma_priv_dev_info *iidc_priv = cdev_info->iidc_priv;
  	struct irdma_pci_f *rf = iwdev->rf;
  
- 	rf->cdev = pf;
+ 	rf->sc_dev.hw = &rf->hw;
+ 	rf->iwdev = iwdev;
+ 	rf->cdev = cdev_info;
+ 	rf->hw.hw_addr = iidc_priv->hw_addr;
+ 	rf->pcidev = cdev_info->pdev;
+ 	rf->hw.device = &rf->pcidev->dev;
+ 	rf->pf_id = iidc_priv->pf_id;
  	rf->gen_ops.register_qset = irdma_lan_register_qset;
  	rf->gen_ops.unregister_qset = irdma_lan_unregister_qset;
- 	rf->hw.hw_addr = pf->hw.hw_addr;
- 	rf->pcidev = pf->pdev;
- 	rf->pf_id = pf->hw.pf_id;
- 	rf->default_vsi.vsi_idx = vsi->vsi_num;
- 	rf->protocol_used = pf->rdma_mode & IIDC_RDMA_PROTOCOL_ROCEV2 ?
- 			    IRDMA_ROCE_PROTOCOL_ONLY : IRDMA_IWARP_PROTOCOL_ONLY;
+ 
+ 	rf->default_vsi.vsi_idx = iidc_priv->vport_id;
+ 	rf->protocol_used =
+ 		cdev_info->rdma_protocol == IIDC_RDMA_PROTOCOL_ROCEV2 ?
+ 		IRDMA_ROCE_PROTOCOL_ONLY : IRDMA_IWARP_PROTOCOL_ONLY;
  	rf->rdma_ver = IRDMA_GEN_2;
  	rf->rsrc_profile = IRDMA_HMC_PROFILE_DEFAULT;
  	rf->rst_to = IRDMA_RST_TIMEOUT_HZ;

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

             reply	other threads:[~2025-05-13  3:06 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-13  3:06 Stephen Rothwell [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-06-13  1:43 linux-next: manual merge of the net-next tree with the rdma-fixes tree Stephen Rothwell
2023-06-13 12:39 ` Leon Romanovsky
2018-03-16  0:56 Stephen Rothwell
2018-03-16  1:18 ` Doug Ledford
2018-03-16  2:05   ` Jason Gunthorpe
2018-03-16  6:54   ` Saeed Mahameed
2018-03-23  4:19   ` David Miller
2018-03-23  4:33     ` Jason Gunthorpe
2018-03-23 14:22       ` David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250513130630.280ee6c5@canb.auug.org.au \
    --to=sfr@canb$(echo .)auug.org.au \
    --cc=anthony.l.nguyen@intel$(echo .)com \
    --cc=dan.carpenter@linaro$(echo .)org \
    --cc=davem@davemloft$(echo .)net \
    --cc=david.m.ertman@intel$(echo .)com \
    --cc=jgg@nvidia$(echo .)com \
    --cc=kuba@kernel$(echo .)org \
    --cc=leon@kernel$(echo .)org \
    --cc=leonro@nvidia$(echo .)com \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linux-next@vger$(echo .)kernel.org \
    --cc=michal.swiatkowski@linux$(echo .)intel.com \
    --cc=mustafa.ismail@intel$(echo .)com \
    --cc=netdev@vger$(echo .)kernel.org \
    --cc=pabeni@redhat$(echo .)com \
    --cc=shiraz.saleem@intel$(echo .)com \
    --cc=tatyana.e.nikolova@intel$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox