mbox series

[rdma-next,v4,0/4] Define and use mana queues for CQs and WQs

Message ID 1712567646-5247-1-git-send-email-kotaranov@linux.microsoft.com (mailing list archive)
Headers show
Series Define and use mana queues for CQs and WQs | expand

Message

Konstantin Taranov April 8, 2024, 9:14 a.m. UTC
From: Konstantin Taranov <kotaranov@microsoft.com>

This patch series aims to reduce code duplication by
introducing a notion of mana ib queues and corresponding helpers
to create and destroy them.

v3->v4:
* Removed debug prints in patches, as asked by Leon

v2->v3:
* [in 4/4] Do not define an additional struct for a raw qp

v1->v2:
* [in 1/4] Added a comment about the ignored return value
* [in 2/4] Replaced RDMA:mana_ib to RDMA/mana_ib in the subject
* [in 4/4] Renamed mana_ib_raw_qp to mana_ib_raw_sq

Konstantin Taranov (4):
  RDMA/mana_ib: Introduce helpers to create and destroy mana queues
  RDMA/mana_ib: Use struct mana_ib_queue for CQs
  RDMA/mana_ib: Use struct mana_ib_queue for WQs
  RDMA/mana_ib: Use struct mana_ib_queue for RAW QPs

 drivers/infiniband/hw/mana/cq.c      | 52 +++-------------
 drivers/infiniband/hw/mana/main.c    | 39 ++++++++++++
 drivers/infiniband/hw/mana/mana_ib.h | 26 ++++----
 drivers/infiniband/hw/mana/qp.c      | 93 +++++++++-------------------
 drivers/infiniband/hw/mana/wq.c      | 33 ++--------
 5 files changed, 96 insertions(+), 147 deletions(-)


base-commit: 96d9cbe2f2ff7abde021bac75eafaceabe9a51fa

Comments

Leon Romanovsky April 8, 2024, 11:25 a.m. UTC | #1
On Mon, Apr 08, 2024 at 02:14:02AM -0700, Konstantin Taranov wrote:
> From: Konstantin Taranov <kotaranov@microsoft.com>
> 
> This patch series aims to reduce code duplication by
> introducing a notion of mana ib queues and corresponding helpers
> to create and destroy them.
> 
> v3->v4:
> * Removed debug prints in patches, as asked by Leon
> 
> v2->v3:
> * [in 4/4] Do not define an additional struct for a raw qp
> 
> v1->v2:
> * [in 1/4] Added a comment about the ignored return value
> * [in 2/4] Replaced RDMA:mana_ib to RDMA/mana_ib in the subject
> * [in 4/4] Renamed mana_ib_raw_qp to mana_ib_raw_sq
> 
> Konstantin Taranov (4):
>   RDMA/mana_ib: Introduce helpers to create and destroy mana queues
>   RDMA/mana_ib: Use struct mana_ib_queue for CQs
>   RDMA/mana_ib: Use struct mana_ib_queue for WQs
>   RDMA/mana_ib: Use struct mana_ib_queue for RAW QPs
> 
>  drivers/infiniband/hw/mana/cq.c      | 52 +++-------------
>  drivers/infiniband/hw/mana/main.c    | 39 ++++++++++++
>  drivers/infiniband/hw/mana/mana_ib.h | 26 ++++----
>  drivers/infiniband/hw/mana/qp.c      | 93 +++++++++-------------------
>  drivers/infiniband/hw/mana/wq.c      | 33 ++--------
>  5 files changed, 96 insertions(+), 147 deletions(-)

It doesn't apply.

Grabbing thread from lore.kernel.org/all/1712567646-5247-1-git-send-email-kotaranov@linux.microsoft.com/t.mbox.gz
Checking for newer revisions
Grabbing search results from lore.kernel.org
Analyzing 5 messages in the thread
Looking for additional code-review trailers on lore.kernel.org
Checking attestation on all messages, may take a moment...
Retrieving CI status, may take a moment...
---
  ✓ [PATCH v4 1/4] RDMA/mana_ib: Introduce helpers to create and destroy mana queues
    + Link: https://lore.kernel.org/r/1712567646-5247-2-git-send-email-kotaranov@linux.microsoft.com
    + Signed-off-by: Leon Romanovsky <leon@kernel.org>
  ✓ [PATCH v4 2/4] RDMA/mana_ib: Use struct mana_ib_queue for CQs
    + Link: https://lore.kernel.org/r/1712567646-5247-3-git-send-email-kotaranov@linux.microsoft.com
    + Signed-off-by: Leon Romanovsky <leon@kernel.org>
  ✓ [PATCH v4 3/4] RDMA/mana_ib: Use struct mana_ib_queue for WQs
    + Link: https://lore.kernel.org/r/1712567646-5247-4-git-send-email-kotaranov@linux.microsoft.com
    + Signed-off-by: Leon Romanovsky <leon@kernel.org>
  ✓ [PATCH v4 4/4] RDMA/mana_ib: Use struct mana_ib_queue for RAW QPs
    + Link: https://lore.kernel.org/r/1712567646-5247-5-git-send-email-kotaranov@linux.microsoft.com
    + Signed-off-by: Leon Romanovsky <leon@kernel.org>
  ---
  ✓ Signed: DKIM/linux.microsoft.com
---
Total patches: 4
---
 Base: using specified base-commit 96d9cbe2f2ff7abde021bac75eafaceabe9a51fa
Applying: RDMA/mana_ib: Introduce helpers to create and destroy mana queues
Patch failed at 0001 RDMA/mana_ib: Introduce helpers to create and destroy mana queues
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
error: patch failed: drivers/infiniband/hw/mana/main.c:237
error: drivers/infiniband/hw/mana/main.c: patch does not apply
error: patch failed: drivers/infiniband/hw/mana/mana_ib.h:45
error: drivers/infiniband/hw/mana/mana_ib.h: patch does not apply
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Press any key to continue...
Konstantin Taranov April 8, 2024, 12:50 p.m. UTC | #2
> From: Leon Romanovsky <leon@kernel.org>
> On Mon, Apr 08, 2024 at 02:14:02AM -0700, Konstantin Taranov wrote:
> > From: Konstantin Taranov <kotaranov@microsoft.com>
> >
> > This patch series aims to reduce code duplication by introducing a
> > notion of mana ib queues and corresponding helpers to create and
> > destroy them.
> >
> > v3->v4:
> > * Removed debug prints in patches, as asked by Leon
> >
> > v2->v3:
> > * [in 4/4] Do not define an additional struct for a raw qp
> >
> > v1->v2:
> > * [in 1/4] Added a comment about the ignored return value
> > * [in 2/4] Replaced RDMA:mana_ib to RDMA/mana_ib in the subject
> > * [in 4/4] Renamed mana_ib_raw_qp to mana_ib_raw_sq
> >
> > Konstantin Taranov (4):
> >   RDMA/mana_ib: Introduce helpers to create and destroy mana queues
> >   RDMA/mana_ib: Use struct mana_ib_queue for CQs
> >   RDMA/mana_ib: Use struct mana_ib_queue for WQs
> >   RDMA/mana_ib: Use struct mana_ib_queue for RAW QPs
> >
> >  drivers/infiniband/hw/mana/cq.c      | 52 +++-------------
> >  drivers/infiniband/hw/mana/main.c    | 39 ++++++++++++
> >  drivers/infiniband/hw/mana/mana_ib.h | 26 ++++----
> >  drivers/infiniband/hw/mana/qp.c      | 93 +++++++++-------------------
> >  drivers/infiniband/hw/mana/wq.c      | 33 ++--------
> >  5 files changed, 96 insertions(+), 147 deletions(-)
> 
> It doesn't apply.
> 

I guess there was some mis-synchronisation between us.
I see that you have already applied the patch 6 days ago:
https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git/log/

I am sorry for sending a newer version after the patch has been applied.
I have not checked this before sending.
I can take care of useless debug prints in a future cleanup patch.

Konstantin

> Grabbing thread from lore.kernel.org/all/1712567646-5247-1-git-send-
> email-kotaranov@linux.microsoft.com/t.mbox.gz
> Checking for newer revisions
> Grabbing search results from lore.kernel.org Analyzing 5 messages in the
> thread Looking for additional code-review trailers on lore.kernel.org Checking
> attestation on all messages, may take a moment...
> Retrieving CI status, may take a moment...
> ---
>   ✓ [PATCH v4 1/4] RDMA/mana_ib: Introduce helpers to create and destroy
> mana queues
>     + Link:
> https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Flore.
> kernel.org%2Fr%2F1712567646-5247-2-git-send-email-
> kotaranov%40linux.microsoft.com&data=05%7C02%7Ckotaranov%40micros
> oft.com%7C444cc0903207454a063d08dc57be9f9e%7C72f988bf86f141af9
> 1ab2d7cd011db47%7C1%7C0%7C638481724056487729%7CUnknown%7
> CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWw
> iLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=CaArcA4VvabbCg4pdJbMSLnIZ
> iMxDOREFsip%2FO3Iwg4%3D&reserved=0
>     + Signed-off-by: Leon Romanovsky <leon@kernel.org>
>   ✓ [PATCH v4 2/4] RDMA/mana_ib: Use struct mana_ib_queue for CQs
>     + Link:
> https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Flore.
> kernel.org%2Fr%2F1712567646-5247-3-git-send-email-
> kotaranov%40linux.microsoft.com&data=05%7C02%7Ckotaranov%40micros
> oft.com%7C444cc0903207454a063d08dc57be9f9e%7C72f988bf86f141af9
> 1ab2d7cd011db47%7C1%7C0%7C638481724056495700%7CUnknown%7
> CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWw
> iLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=CF%2B2%2FxK%2FbqU4tylJ%2
> BL9k4XOjI6IqtthydKsZ%2Fkxz8nE%3D&reserved=0
>     + Signed-off-by: Leon Romanovsky <leon@kernel.org>
>   ✓ [PATCH v4 3/4] RDMA/mana_ib: Use struct mana_ib_queue for WQs
>     + Link:
> https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Flore.
> kernel.org%2Fr%2F1712567646-5247-4-git-send-email-
> kotaranov%40linux.microsoft.com&data=05%7C02%7Ckotaranov%40micros
> oft.com%7C444cc0903207454a063d08dc57be9f9e%7C72f988bf86f141af9
> 1ab2d7cd011db47%7C1%7C0%7C638481724056500642%7CUnknown%7
> CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWw
> iLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=ZlIFtWT0fOdwiuJbqViki%2FTd
> CZaByBbzUy7g4D9HCHE%3D&reserved=0
>     + Signed-off-by: Leon Romanovsky <leon@kernel.org>
>   ✓ [PATCH v4 4/4] RDMA/mana_ib: Use struct mana_ib_queue for RAW QPs
>     + Link:
> https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Flore.
> kernel.org%2Fr%2F1712567646-5247-5-git-send-email-
> kotaranov%40linux.microsoft.com&data=05%7C02%7Ckotaranov%40micros
> oft.com%7C444cc0903207454a063d08dc57be9f9e%7C72f988bf86f141af9
> 1ab2d7cd011db47%7C1%7C0%7C638481724056504252%7CUnknown%7
> CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWw
> iLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=bZTxG0kz5cosbtW4QMg2rSkei
> h08Q%2FBOrR%2BEHI4ROrY%3D&reserved=0
>     + Signed-off-by: Leon Romanovsky <leon@kernel.org>
>   ---
>   ✓ Signed: DKIM/linux.microsoft.com
> ---
> Total patches: 4
> ---
>  Base: using specified base-commit
> 96d9cbe2f2ff7abde021bac75eafaceabe9a51fa
> Applying: RDMA/mana_ib: Introduce helpers to create and destroy mana
> queues Patch failed at 0001 RDMA/mana_ib: Introduce helpers to create and
> destroy mana queues When you have resolved this problem, run "git am --
> continue".
> If you prefer to skip this patch, run "git am --skip" instead.
> To restore the original branch and stop patching, run "git am --abort".
> error: patch failed: drivers/infiniband/hw/mana/main.c:237
> error: drivers/infiniband/hw/mana/main.c: patch does not apply
> error: patch failed: drivers/infiniband/hw/mana/mana_ib.h:45
> error: drivers/infiniband/hw/mana/mana_ib.h: patch does not apply
> hint: Use 'git am --show-current-patch=diff' to see the failed patch Press any
> key to continue...
Leon Romanovsky April 8, 2024, 1 p.m. UTC | #3
On Mon, Apr 08, 2024 at 12:50:12PM +0000, Konstantin Taranov wrote:
> > From: Leon Romanovsky <leon@kernel.org>
> > On Mon, Apr 08, 2024 at 02:14:02AM -0700, Konstantin Taranov wrote:
> > > From: Konstantin Taranov <kotaranov@microsoft.com>
> > >
> > > This patch series aims to reduce code duplication by introducing a
> > > notion of mana ib queues and corresponding helpers to create and
> > > destroy them.
> > >
> > > v3->v4:
> > > * Removed debug prints in patches, as asked by Leon
> > >
> > > v2->v3:
> > > * [in 4/4] Do not define an additional struct for a raw qp
> > >
> > > v1->v2:
> > > * [in 1/4] Added a comment about the ignored return value
> > > * [in 2/4] Replaced RDMA:mana_ib to RDMA/mana_ib in the subject
> > > * [in 4/4] Renamed mana_ib_raw_qp to mana_ib_raw_sq
> > >
> > > Konstantin Taranov (4):
> > >   RDMA/mana_ib: Introduce helpers to create and destroy mana queues
> > >   RDMA/mana_ib: Use struct mana_ib_queue for CQs
> > >   RDMA/mana_ib: Use struct mana_ib_queue for WQs
> > >   RDMA/mana_ib: Use struct mana_ib_queue for RAW QPs
> > >
> > >  drivers/infiniband/hw/mana/cq.c      | 52 +++-------------
> > >  drivers/infiniband/hw/mana/main.c    | 39 ++++++++++++
> > >  drivers/infiniband/hw/mana/mana_ib.h | 26 ++++----
> > >  drivers/infiniband/hw/mana/qp.c      | 93 +++++++++-------------------
> > >  drivers/infiniband/hw/mana/wq.c      | 33 ++--------
> > >  5 files changed, 96 insertions(+), 147 deletions(-)
> > 
> > It doesn't apply.
> > 
> 
> I guess there was some mis-synchronisation between us.
> I see that you have already applied the patch 6 days ago:
> https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git/log/
> 
> I am sorry for sending a newer version after the patch has been applied.
> I have not checked this before sending.
> I can take care of useless debug prints in a future cleanup patch.

Please rebase your series, and resend.

Thanks
Konstantin Taranov April 8, 2024, 1:47 p.m. UTC | #4
> From: Leon Romanovsky <leon@kernel.org>
> On Mon, Apr 08, 2024 at 12:50:12PM +0000, Konstantin Taranov wrote:
> > > From: Leon Romanovsky <leon@kernel.org> On Mon, Apr 08, 2024 at
> > > 02:14:02AM -0700, Konstantin Taranov wrote:
> > > > From: Konstantin Taranov <kotaranov@microsoft.com>
> > > >
> > > > This patch series aims to reduce code duplication by introducing a
> > > > notion of mana ib queues and corresponding helpers to create and
> > > > destroy them.
> > > >
> > > > v3->v4:
> > > > * Removed debug prints in patches, as asked by Leon
> > > >
> > > > v2->v3:
> > > > * [in 4/4] Do not define an additional struct for a raw qp
> > > >
> > > > v1->v2:
> > > > * [in 1/4] Added a comment about the ignored return value
> > > > * [in 2/4] Replaced RDMA:mana_ib to RDMA/mana_ib in the subject
> > > > * [in 4/4] Renamed mana_ib_raw_qp to mana_ib_raw_sq
> > > >
> > > > Konstantin Taranov (4):
> > > >   RDMA/mana_ib: Introduce helpers to create and destroy mana queues
> > > >   RDMA/mana_ib: Use struct mana_ib_queue for CQs
> > > >   RDMA/mana_ib: Use struct mana_ib_queue for WQs
> > > >   RDMA/mana_ib: Use struct mana_ib_queue for RAW QPs
> > > >
> > > >  drivers/infiniband/hw/mana/cq.c      | 52 +++-------------
> > > >  drivers/infiniband/hw/mana/main.c    | 39 ++++++++++++
> > > >  drivers/infiniband/hw/mana/mana_ib.h | 26 ++++----
> > > >  drivers/infiniband/hw/mana/qp.c      | 93 +++++++++-------------------
> > > >  drivers/infiniband/hw/mana/wq.c      | 33 ++--------
> > > >  5 files changed, 96 insertions(+), 147 deletions(-)
> > >
> > > It doesn't apply.
> > >
> >
> > I guess there was some mis-synchronisation between us.
> > I see that you have already applied the patch 6 days ago:
> > https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.
> >
> kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Frdma%2Frdma.git%2
> Flog%
> >
> 2F&data=05%7C02%7Ckotaranov%40microsoft.com%7C09ea6de381194295c
> 4ae08dc
> >
> 57cbe121%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C63848178
> 04102717
> >
> 33%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMz
> IiLCJBTiI
> >
> 6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=jwGGhmatHqdN4bW
> Xc%2FtyXtubD
> > ZxxCXpnyL26S5lEKd0%3D&reserved=0
> >
> > I am sorry for sending a newer version after the patch has been applied.
> > I have not checked this before sending.
> > I can take care of useless debug prints in a future cleanup patch.
> 
> Please rebase your series, and resend.

Sorry for a confusion. I mean you have already applied this patch series (v3) 6 days ago.
See commits:
46f5be7cd4bceb3a503c544b3dab7b75fe4bb96b
60a7ac0b8bec5df9764b7460ffee91fc981e8a31
688bac28e3dc9eb795ae8ea5aa40cb637e289faa
f10242b3da908dc9d4bfa040e6511a5b86522499

As a result, I cannot rebase. I could send a completely new patch that removes some debug prints.

I might look at a wrong branch. If so, please send the branch that does not have this patch series applied.

Thanks,
Konstantin

> 
> Thanks
Leon Romanovsky April 8, 2024, 2 p.m. UTC | #5
On Mon, Apr 08, 2024 at 01:47:45PM +0000, Konstantin Taranov wrote:
> > From: Leon Romanovsky <leon@kernel.org>
> > On Mon, Apr 08, 2024 at 12:50:12PM +0000, Konstantin Taranov wrote:
> > > > From: Leon Romanovsky <leon@kernel.org> On Mon, Apr 08, 2024 at
> > > > 02:14:02AM -0700, Konstantin Taranov wrote:
> > > > > From: Konstantin Taranov <kotaranov@microsoft.com>
> > > > >
> > > > > This patch series aims to reduce code duplication by introducing a
> > > > > notion of mana ib queues and corresponding helpers to create and
> > > > > destroy them.
> > > > >
> > > > > v3->v4:
> > > > > * Removed debug prints in patches, as asked by Leon
> > > > >
> > > > > v2->v3:
> > > > > * [in 4/4] Do not define an additional struct for a raw qp
> > > > >
> > > > > v1->v2:
> > > > > * [in 1/4] Added a comment about the ignored return value
> > > > > * [in 2/4] Replaced RDMA:mana_ib to RDMA/mana_ib in the subject
> > > > > * [in 4/4] Renamed mana_ib_raw_qp to mana_ib_raw_sq
> > > > >
> > > > > Konstantin Taranov (4):
> > > > >   RDMA/mana_ib: Introduce helpers to create and destroy mana queues
> > > > >   RDMA/mana_ib: Use struct mana_ib_queue for CQs
> > > > >   RDMA/mana_ib: Use struct mana_ib_queue for WQs
> > > > >   RDMA/mana_ib: Use struct mana_ib_queue for RAW QPs
> > > > >
> > > > >  drivers/infiniband/hw/mana/cq.c      | 52 +++-------------
> > > > >  drivers/infiniband/hw/mana/main.c    | 39 ++++++++++++
> > > > >  drivers/infiniband/hw/mana/mana_ib.h | 26 ++++----
> > > > >  drivers/infiniband/hw/mana/qp.c      | 93 +++++++++-------------------
> > > > >  drivers/infiniband/hw/mana/wq.c      | 33 ++--------
> > > > >  5 files changed, 96 insertions(+), 147 deletions(-)
> > > >
> > > > It doesn't apply.
> > > >
> > >
> > > I guess there was some mis-synchronisation between us.
> > > I see that you have already applied the patch 6 days ago:
> > > https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.
> > >
> > kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Frdma%2Frdma.git%2
> > Flog%
> > >
> > 2F&data=05%7C02%7Ckotaranov%40microsoft.com%7C09ea6de381194295c
> > 4ae08dc
> > >
> > 57cbe121%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C63848178
> > 04102717
> > >
> > 33%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMz
> > IiLCJBTiI
> > >
> > 6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=jwGGhmatHqdN4bW
> > Xc%2FtyXtubD
> > > ZxxCXpnyL26S5lEKd0%3D&reserved=0
> > >
> > > I am sorry for sending a newer version after the patch has been applied.
> > > I have not checked this before sending.
> > > I can take care of useless debug prints in a future cleanup patch.
> > 
> > Please rebase your series, and resend.
> 
> Sorry for a confusion. I mean you have already applied this patch series (v3) 6 days ago.
> See commits:
> 46f5be7cd4bceb3a503c544b3dab7b75fe4bb96b
> 60a7ac0b8bec5df9764b7460ffee91fc981e8a31
> 688bac28e3dc9eb795ae8ea5aa40cb637e289faa
> f10242b3da908dc9d4bfa040e6511a5b86522499
> 
> As a result, I cannot rebase. I could send a completely new patch that removes some debug prints.

Yes, sorry for not being clear. Please send a cleanup patch.

Thanks