diff mbox

[v1,rdma-next] RDMA/qedr: Fix rdma_type initialization

Message ID 1505885986-5873-1-git-send-email-Michal.Kalderon@cavium.com (mailing list archive)
State Accepted
Headers show

Commit Message

Kalderon, Michal Sept. 20, 2017, 5:39 a.m. UTC
Initialize the rdma_type (iWARP or RoCE) which is set according to
device configuration in qed.

Fixes: e6a38c54faf ("RDMA/qedr: Add support for registering an iWARP device")

Signed-off-by: Michal Kalderon <Michal.Kalderon@cavium.com>
Signed-off-by: Ariel Elior <Ariel.Elior@cavium.com>

---
This patch applies cleanly on k.o/for-next-merged

Changes from V0:
- Added Fixes in commit comment.

---
 drivers/infiniband/hw/qedr/main.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Doug Ledford Sept. 27, 2017, 1:27 p.m. UTC | #1
On Wed, 2017-09-20 at 08:39 +0300, Michal Kalderon wrote:
> Initialize the rdma_type (iWARP or RoCE) which is set according to
> device configuration in qed.
> 
> Fixes: e6a38c54faf ("RDMA/qedr: Add support for registering an iWARP
> device")
> 
> Signed-off-by: Michal Kalderon <Michal.Kalderon@cavium.com>
> Signed-off-by: Ariel Elior <Ariel.Elior@cavium.com>
> 
> ---
> This patch applies cleanly on k.o/for-next-merged
> 
> Changes from V0:
> - Added Fixes in commit comment.

Sorry, I was wrong in my email to the previous posting of this patch. 
I had pulled this v1 patch from patchworks, not the original patch, and
so the Fixes: line was yours.  Patchworks did not add the Fixes: line
to the v0 patch when I downloaded it just now.

That being said, I still can't build with this patch ;-)
Kalderon, Michal Sept. 27, 2017, 4:18 p.m. UTC | #2
From: Doug Ledford <dledford@redhat.com>
Sent: Wednesday, September 27, 2017 4:27 PM

>On Wed, 2017-09-20 at 08:39 +0300, Michal Kalderon wrote:
>> Initialize the rdma_type (iWARP or RoCE) which is set according to
>> device configuration in qed.
>>
>> Fixes: e6a38c54faf ("RDMA/qedr: Add support for registering an iWARP
>> device")
>>
>> Signed-off-by: Michal Kalderon <Michal.Kalderon@cavium.com>
>> Signed-off-by: Ariel Elior <Ariel.Elior@cavium.com>
>>
>> ---
>> This patch applies cleanly on k.o/for-next-merged
>>
>> Changes from V0:
>> - Added Fixes in commit comment.
>
>Sorry, I was wrong in my email to the previous posting of this patch.
>I had pulled this v1 patch from patchworks, not the original patch, and
>so the Fixes: line was yours.  Patchworks did not add the Fixes: line
>to the v0 patch when I downloaded it just now.

>That being said, I still can't build with this patch ;-)
Are you building against the rdma-next branch ? 
The patch requires the iWARP series, originally this was tested against for-next-merged, 
what's the error you're getting ? 

thanks,
Michal

--
Doug Ledford <dledford@redhat.com>
    GPG KeyID: B826A3330E572FDD
    Key fingerprint = AE6B 1BDA 122B 23B4 265B  1274 B826 A333 0E57 2FDD

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Leon Romanovsky Sept. 27, 2017, 4:53 p.m. UTC | #3
On Wed, Sep 27, 2017 at 04:18:50PM +0000, Kalderon, Michal wrote:
> From: Doug Ledford <dledford@redhat.com>
> Sent: Wednesday, September 27, 2017 4:27 PM
>
> >On Wed, 2017-09-20 at 08:39 +0300, Michal Kalderon wrote:
> >> Initialize the rdma_type (iWARP or RoCE) which is set according to
> >> device configuration in qed.
> >>
> >> Fixes: e6a38c54faf ("RDMA/qedr: Add support for registering an iWARP
> >> device")
> >>
> >> Signed-off-by: Michal Kalderon <Michal.Kalderon@cavium.com>
> >> Signed-off-by: Ariel Elior <Ariel.Elior@cavium.com>
> >>
> >> ---
> >> This patch applies cleanly on k.o/for-next-merged
> >>
> >> Changes from V0:
> >> - Added Fixes in commit comment.
> >
> >Sorry, I was wrong in my email to the previous posting of this patch.
> >I had pulled this v1 patch from patchworks, not the original patch, and
> >so the Fixes: line was yours.  Patchworks did not add the Fixes: line
> >to the v0 patch when I downloaded it just now.
>
> >That being said, I still can't build with this patch ;-)
> Are you building against the rdma-next branch ?
> The patch requires the iWARP series, originally this was tested against for-next-merged,
> what's the error you're getting ?

On rdma-next:
drivers/infiniband/hw/qedr/main.c: In function ‘qedr_add’:
drivers/infiniband/hw/qedr/main.c:780:7: error: ‘struct qedr_dev’ has no member named ‘rdma_type’; did you mean ‘rdma_ctx’?
  dev->rdma_type = dev_info.rdma_type;
       ^~~~~~~~~
       rdma_ctx
make[4]: *** [scripts/Makefile.build:311: drivers/infiniband/hw/qedr/main.o] Error 1


>
> thanks,
> Michal
>
> --
> Doug Ledford <dledford@redhat.com>
>     GPG KeyID: B826A3330E572FDD
>     Key fingerprint = AE6B 1BDA 122B 23B4 265B  1274 B826 A333 0E57 2FDD
>
Leon Romanovsky Sept. 27, 2017, 4:56 p.m. UTC | #4
On Wed, Sep 27, 2017 at 07:53:39PM +0300, Leon Romanovsky wrote:
> On Wed, Sep 27, 2017 at 04:18:50PM +0000, Kalderon, Michal wrote:
> > From: Doug Ledford <dledford@redhat.com>
> > Sent: Wednesday, September 27, 2017 4:27 PM
> >
> > >On Wed, 2017-09-20 at 08:39 +0300, Michal Kalderon wrote:
> > >> Initialize the rdma_type (iWARP or RoCE) which is set according to
> > >> device configuration in qed.
> > >>
> > >> Fixes: e6a38c54faf ("RDMA/qedr: Add support for registering an iWARP
> > >> device")
> > >>
> > >> Signed-off-by: Michal Kalderon <Michal.Kalderon@cavium.com>
> > >> Signed-off-by: Ariel Elior <Ariel.Elior@cavium.com>
> > >>
> > >> ---
> > >> This patch applies cleanly on k.o/for-next-merged
> > >>
> > >> Changes from V0:
> > >> - Added Fixes in commit comment.
> > >
> > >Sorry, I was wrong in my email to the previous posting of this patch.
> > >I had pulled this v1 patch from patchworks, not the original patch, and
> > >so the Fixes: line was yours.  Patchworks did not add the Fixes: line
> > >to the v0 patch when I downloaded it just now.
> >
> > >That being said, I still can't build with this patch ;-)
> > Are you building against the rdma-next branch ?
> > The patch requires the iWARP series, originally this was tested against for-next-merged,
> > what's the error you're getting ?
>
> On rdma-next:
> drivers/infiniband/hw/qedr/main.c: In function ‘qedr_add’:
> drivers/infiniband/hw/qedr/main.c:780:7: error: ‘struct qedr_dev’ has no member named ‘rdma_type’; did you mean ‘rdma_ctx’?
>   dev->rdma_type = dev_info.rdma_type;
>        ^~~~~~~~~
>        rdma_ctx
> make[4]: *** [scripts/Makefile.build:311: drivers/infiniband/hw/qedr/main.o] Error 1

My config:

➜  linux-rdma git:(rdma-next) grep QED .config
CONFIG_QED=m
CONFIG_QED_LL2=y
CONFIG_QED_SRIOV=y
CONFIG_QEDE=m
CONFIG_QED_RDMA=y
CONFIG_INFINIBAND_QEDR=m
>
>
> >
> > thanks,
> > Michal
> >
> > --
> > Doug Ledford <dledford@redhat.com>
> >     GPG KeyID: B826A3330E572FDD
> >     Key fingerprint = AE6B 1BDA 122B 23B4 265B  1274 B826 A333 0E57 2FDD
> >
Kalderon, Michal Sept. 27, 2017, 8:33 p.m. UTC | #5
From: Leon Romanovsky <leon@kernel.org>

Sent: Wednesday, September 27, 2017 7:56 PM
On Wed, Sep 27, 2017 at 07:53:39PM +0300, Leon Romanovsky wrote:
>> On Wed, Sep 27, 2017 at 04:18:50PM +0000, Kalderon, Michal wrote:

>> > From: Doug Ledford <dledford@redhat.com>

>> > Sent: Wednesday, September 27, 2017 4:27 PM

>> >

>> > >On Wed, 2017-09-20 at 08:39 +0300, Michal Kalderon wrote:

>> > >> Initialize the rdma_type (iWARP or RoCE) which is set according to

>> > >> device configuration in qed.

>> > >>

>> > >> Fixes: e6a38c54faf ("RDMA/qedr: Add support for registering an iWARP

>> > >> device")

>> > >>

>> > >> Signed-off-by: Michal Kalderon <Michal.Kalderon@cavium.com>

>> > >> Signed-off-by: Ariel Elior <Ariel.Elior@cavium.com>

>> > >>

>> > >> ---

>> > >> This patch applies cleanly on k.o/for-next-merged

>> > >>

>> > >> Changes from V0:

>> > >> - Added Fixes in commit comment.

>> > >

>> > >Sorry, I was wrong in my email to the previous posting of this patch.

>> > >I had pulled this v1 patch from patchworks, not the original patch, and

>> > >so the Fixes: line was yours.  Patchworks did not add the Fixes: line

>> > >to the v0 patch when I downloaded it just now.

>> >

>> > >That being said, I still can't build with this patch ;-)

>> > Are you building against the rdma-next branch ?

>> > The patch requires the iWARP series, originally this was tested against for-next-merged,

>> > what's the error you're getting ?

>>

>> On rdma-next:

>> drivers/infiniband/hw/qedr/main.c: In function ‘qedr_add’:

>> drivers/infiniband/hw/qedr/main.c:780:7: error: ‘struct qedr_dev’ has no member named ‘rdma_type’; did you mean ‘rdma_ctx’?

>>   dev->rdma_type = dev_info.rdma_type;

>>        ^~~~~~~~~

>>        rdma_ctx

>> make[4]: *** [scripts/Makefile.build:311: drivers/infiniband/hw/qedr/main.o] Error 1

>

>My config:

>

>➜  linux-rdma git:(rdma-next) grep QED .config

>CONFIG_QED=m

>CONFIG_QED_LL2=y

>CONFIG_QED_SRIOV=y

>CONFIG_QEDE=m

>CONFIG_QED_RDMA=y

>CONFIG_INFINIBAND_QEDR=m


Thanks Leon for helping out with this. Unfortunately i'm not seeing this.
The rdma_type field was added with the following patch:
https://kernel.googlesource.com/pub/scm/linux/kernel/git/dledford/rdma/+/e6a38c54faf38498170e227c82ea25cb8bc1ae71

When running git log on the k.o/for-next I see the patch (last in list below),
applying this patch on top of  rdma-next works for me and compiles cleanly. 

2e2f2d0 RDMA/qedr: Fix rdma_type initialization
1848757 Merge branches 'hns' and 'misc' into k.o/for-next
931bc0d IB: Move PCI dependency from root KConfig to HW's KConfigs
7ae6f2a Merge branch 'qedr' into k.o/for-next
bd491d2 RDMA/qedr: fix build error without ipv6
89fd257 RDMA/qedr: Missing error code in qedr_init_user_queue()
847cb1a RDMA/qedr: fix spelling mistake: "invlaid" -> "invalid"
69ad0e7 RDMA/qedr: Add support for iWARP in user space
e411e05 RDMA/qedr: Add iWARP connection management functions
de0089e RDMA/qedr: Add iWARP connection management qp related callbacks
fb1a22b RDMA/qedr: Add support for read with invalidate, supported in iWARP
f5b1b17 RDMA/qedr: Add iWARP support in existing verbs
e6a38c5 RDMA/qedr: Add support for registering an iWARP device

am i missing something ? 
thanks,
Michal
Leon Romanovsky Sept. 28, 2017, 3:27 a.m. UTC | #6
On Wed, Sep 27, 2017 at 08:33:38PM +0000, Kalderon, Michal wrote:
> From: Leon Romanovsky <leon@kernel.org>
> Sent: Wednesday, September 27, 2017 7:56 PM
> On Wed, Sep 27, 2017 at 07:53:39PM +0300, Leon Romanovsky wrote:
> >> On Wed, Sep 27, 2017 at 04:18:50PM +0000, Kalderon, Michal wrote:
> >> > From: Doug Ledford <dledford@redhat.com>
> >> > Sent: Wednesday, September 27, 2017 4:27 PM
> >> >
> >> > >On Wed, 2017-09-20 at 08:39 +0300, Michal Kalderon wrote:
> >> > >> Initialize the rdma_type (iWARP or RoCE) which is set according to
> >> > >> device configuration in qed.
> >> > >>
> >> > >> Fixes: e6a38c54faf ("RDMA/qedr: Add support for registering an iWARP
> >> > >> device")
> >> > >>
> >> > >> Signed-off-by: Michal Kalderon <Michal.Kalderon@cavium.com>
> >> > >> Signed-off-by: Ariel Elior <Ariel.Elior@cavium.com>
> >> > >>
> >> > >> ---
> >> > >> This patch applies cleanly on k.o/for-next-merged
> >> > >>
> >> > >> Changes from V0:
> >> > >> - Added Fixes in commit comment.
> >> > >
> >> > >Sorry, I was wrong in my email to the previous posting of this patch.
> >> > >I had pulled this v1 patch from patchworks, not the original patch, and
> >> > >so the Fixes: line was yours.  Patchworks did not add the Fixes: line
> >> > >to the v0 patch when I downloaded it just now.
> >> >
> >> > >That being said, I still can't build with this patch ;-)
> >> > Are you building against the rdma-next branch ?
> >> > The patch requires the iWARP series, originally this was tested against for-next-merged,
> >> > what's the error you're getting ?
> >>
> >> On rdma-next:
> >> drivers/infiniband/hw/qedr/main.c: In function ‘qedr_add’:
> >> drivers/infiniband/hw/qedr/main.c:780:7: error: ‘struct qedr_dev’ has no member named ‘rdma_type’; did you mean ‘rdma_ctx’?
> >>   dev->rdma_type = dev_info.rdma_type;
> >>        ^~~~~~~~~
> >>        rdma_ctx
> >> make[4]: *** [scripts/Makefile.build:311: drivers/infiniband/hw/qedr/main.o] Error 1
> >
> >My config:
> >
> >➜  linux-rdma git:(rdma-next) grep QED .config
> >CONFIG_QED=m
> >CONFIG_QED_LL2=y
> >CONFIG_QED_SRIOV=y
> >CONFIG_QEDE=m
> >CONFIG_QED_RDMA=y
> >CONFIG_INFINIBAND_QEDR=m
>
> Thanks Leon for helping out with this. Unfortunately i'm not seeing this.
> The rdma_type field was added with the following patch:
> https://kernel.googlesource.com/pub/scm/linux/kernel/git/dledford/rdma/+/e6a38c54faf38498170e227c82ea25cb8bc1ae71
>
> When running git log on the k.o/for-next I see the patch (last in list below),
> applying this patch on top of  rdma-next works for me and compiles cleanly.
>
> 2e2f2d0 RDMA/qedr: Fix rdma_type initialization
> 1848757 Merge branches 'hns' and 'misc' into k.o/for-next
> 931bc0d IB: Move PCI dependency from root KConfig to HW's KConfigs
> 7ae6f2a Merge branch 'qedr' into k.o/for-next
> bd491d2 RDMA/qedr: fix build error without ipv6
> 89fd257 RDMA/qedr: Missing error code in qedr_init_user_queue()
> 847cb1a RDMA/qedr: fix spelling mistake: "invlaid" -> "invalid"
> 69ad0e7 RDMA/qedr: Add support for iWARP in user space
> e411e05 RDMA/qedr: Add iWARP connection management functions
> de0089e RDMA/qedr: Add iWARP connection management qp related callbacks
> fb1a22b RDMA/qedr: Add support for read with invalidate, supported in iWARP
> f5b1b17 RDMA/qedr: Add iWARP support in existing verbs
> e6a38c5 RDMA/qedr: Add support for registering an iWARP device
>
> am i missing something ?

I refreshed my branches now and it worked, but your git log history
looks strange. Where did you see the commit 1848757 and 931bc0d?

https://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma.git/log/?h=k.o/for-next
Age	Commit message (Expand)	Author	Files	Lines
3 days	Merge branch 'qedr' into k.o/for-nextfor-nextk.o/for-next	Doug Ledford	11	-91/+1208
3 days	Merge tag 'v4.14-rc2' into k.o/for-next	Doug Ledford	12044	-388475/+631018
3 days	Linux 4.14-rc2HEADmaster	Linus Torvalds	1	-1/+1

➜  linux-rdma git:(iwarp-compile) git log --oneline
f3506957237b (HEAD -> iwarp-compile) RDMA/qedr: Fix rdma_type initialization
7ae6f2a3d552 (rdma/k.o/for-next, grdma/k.o/for-next) Merge branch 'qedr' into k.o/for-next
0d9c2ff1c9f7 Merge tag 'v4.14-rc2' into k.o/for-next
e19b205be43d (tag: v4.14-rc2, rdma/master, origin/master, ml/master, grdma/master, grdma/hns, backup/master, master) Linux 4.14-rc2

Thanks

> thanks,
> Michal
>
Kalderon, Michal Sept. 28, 2017, 6:22 a.m. UTC | #7
PiBGcm9tOiBMZW9uIFJvbWFub3Zza3kgW21haWx0bzpsZW9uQGtlcm5lbC5vcmddDQo+IFNlbnQ6
IFRodXJzZGF5LCBTZXB0ZW1iZXIgMjgsIDIwMTcgNjoyNyBBTQ0KPiBPbiBXZWQsIFNlcCAyNywg
MjAxNyBhdCAwODozMzozOFBNICswMDAwLCBLYWxkZXJvbiwgTWljaGFsIHdyb3RlOg0KPiA+IEZy
b206IExlb24gUm9tYW5vdnNreSA8bGVvbkBrZXJuZWwub3JnPg0KPiA+IFNlbnQ6IFdlZG5lc2Rh
eSwgU2VwdGVtYmVyIDI3LCAyMDE3IDc6NTYgUE0gT24gV2VkLCBTZXAgMjcsIDIwMTcgYXQNCj4g
PiAwNzo1MzozOVBNICswMzAwLCBMZW9uIFJvbWFub3Zza3kgd3JvdGU6DQo+ID4gPj4gT24gV2Vk
LCBTZXAgMjcsIDIwMTcgYXQgMDQ6MTg6NTBQTSArMDAwMCwgS2FsZGVyb24sIE1pY2hhbCB3cm90
ZToNCj4gPiA+PiA+IEZyb206IERvdWcgTGVkZm9yZCA8ZGxlZGZvcmRAcmVkaGF0LmNvbT4NCj4g
PiA+PiA+IFNlbnQ6IFdlZG5lc2RheSwgU2VwdGVtYmVyIDI3LCAyMDE3IDQ6MjcgUE0NCj4gPiA+
PiA+DQo+ID4gPj4gPiA+T24gV2VkLCAyMDE3LTA5LTIwIGF0IDA4OjM5ICswMzAwLCBNaWNoYWwg
S2FsZGVyb24gd3Jvd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AkxMQktOTEvKzEyMDgNCj4gMyBkYXlz
CU1lcmdlIHRhZyAndjQuMTQtcmMyJyBpbnRvIGsuby9mb3ItbmV4dAkgRG91ZyBMZWRmb3JkCTEy
MDQ0CS0NCj4gMzg4NDc1Lys2MzEwMTgNCj4gMyBkYXlzCUxpbnV4IDQuMTQtcmMySEVBRG1hc3Rl
cgkgTGludXMgVG9ydmFsZHMJMQktMS8rMQ0KPiANCj4g4p6cICBsaW51eC1yZG1hIGdpdDooaXdh
cnAtY29tcGlsZSkgZ2l0IGxvZyAtLW9uZWxpbmUgZjM1MDY5NTcyMzdiIChIRUFEIC0+DQo+IGl3
YXJwLWNvbXBpbGUpIFJETUEvcWVkcjogRml4IHJkbWFfdHlwZSBpbml0aWFsaXphdGlvbg0KPiA3
YWU2ZjJhM2Q1NTIgKHJkbWEvay5vL2Zvci1uZXh0LCBncmRtYS9rLm8vZm9yLW5leHQpIE1lcmdl
IGJyYW5jaCAncWVkcicNCj4gaW50byBrLm8vZm9yLW5leHQNCj4gMGQ5YzJmZjFjOWY3IE1lcmdl
IHRhZyAndjQuMTQtcmMyJyBpbnRvIGsuby9mb3ItbmV4dCBlMTliMjA1YmU0M2QgKHRhZzoNCj4g
djQuMTQtcmMyLCByZG1hL21hc3Rlciwgb3JpZ2luL21hc3RlciwgbWwvbWFzdGVyLCBncmRtYS9t
YXN0ZXIsDQo+IGdyZG1hL2hucywgYmFja3VwL21hc3RlciwgbWFzdGVyKSBMaW51eCA0LjE0LXJj
Mg0KPiANCj4gVGhhbmtzDQo+IA0KPiA+IHRoYW5rcywNCj4gPiBNaWNoYWwNCj4gPg0K
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Leon Romanovsky Sept. 28, 2017, 6:49 a.m. UTC | #8
On Thu, Sep 28, 2017 at 06:22:59AM +0000, Kalderon, Michal wrote:
> > >
> > > When running git log on the k.o/for-next I see the patch (last in list
> > > below), applying this patch on top of  rdma-next works for me and
> > compiles cleanly.
> > >
> > > 2e2f2d0 RDMA/qedr: Fix rdma_type initialization
> > > 1848757 Merge branches 'hns' and 'misc' into k.o/for-next 931bc0d IB:
> > > Move PCI dependency from root KConfig to HW's KConfigs 7ae6f2a Merge
> > > branch 'qedr' into k.o/for-next
> > > bd491d2 RDMA/qedr: fix build error without ipv6
> > > 89fd257 RDMA/qedr: Missing error code in qedr_init_user_queue()
> > > 847cb1a RDMA/qedr: fix spelling mistake: "invlaid" -> "invalid"
> > > 69ad0e7 RDMA/qedr: Add support for iWARP in user space
> > > e411e05 RDMA/qedr: Add iWARP connection management functions
> > de0089e
> > > RDMA/qedr: Add iWARP connection management qp related callbacks
> > > fb1a22b RDMA/qedr: Add support for read with invalidate, supported in
> > > iWARP
> > > f5b1b17 RDMA/qedr: Add iWARP support in existing verbs
> > > e6a38c5 RDMA/qedr: Add support for registering an iWARP device
> > >
> > > am i missing something ?
> >
> > I refreshed my branches now and it worked, but your git log history looks
> > strange. Where did you see the commit 1848757 and 931bc0d?
>
> git://github.com/dledford/linux.git
> git log --oneline -- drivers/infiniband/hw/qedr
> https://github.com/dledford/linux/commit/1848757c3d8bff3addf881c8bcc2b85e25ccf25e
>
> I was under the assumption a patch goes to github before k.o - is this not the case ?

Repo on github is Doug's private repository, while it is much safer to stick
with one official on kernel.org.

Thanks
Kalderon, Michal Sept. 28, 2017, 6:51 a.m. UTC | #9
> From: Leon Romanovsky [mailto:leon@kernel.org]
> Sent: Thursday, September 28, 2017 9:50 AM
> 
> On Thu, Sep 28, 2017 at 06:22:59AM +0000, Kalderon, Michal wrote:
> > > >
> > > > When running git log on the k.o/for-next I see the patch (last in
> > > > list below), applying this patch on top of  rdma-next works for me
> > > > and
> > > compiles cleanly.
> > > >
> > > > 2e2f2d0 RDMA/qedr: Fix rdma_type initialization
> > > > 1848757 Merge branches 'hns' and 'misc' into k.o/for-next 931bc0d IB:
> > > > Move PCI dependency from root KConfig to HW's KConfigs 7ae6f2a
> > > > Merge branch 'qedr' into k.o/for-next
> > > > bd491d2 RDMA/qedr: fix build error without ipv6
> > > > 89fd257 RDMA/qedr: Missing error code in qedr_init_user_queue()
> > > > 847cb1a RDMA/qedr: fix spelling mistake: "invlaid" -> "invalid"
> > > > 69ad0e7 RDMA/qedr: Add support for iWARP in user space
> > > > e411e05 RDMA/qedr: Add iWARP connection management functions
> > > de0089e
> > > > RDMA/qedr: Add iWARP connection management qp related callbacks
> > > > fb1a22b RDMA/qedr: Add support for read with invalidate, supported
> > > > in iWARP
> > > > f5b1b17 RDMA/qedr: Add iWARP support in existing verbs
> > > > e6a38c5 RDMA/qedr: Add support for registering an iWARP device
> > > >
> > > > am i missing something ?
> > >
> > > I refreshed my branches now and it worked, but your git log history
> > > looks strange. Where did you see the commit 1848757 and 931bc0d?
> >
> > git://github.com/dledford/linux.git
> > git log --oneline -- drivers/infiniband/hw/qedr
> >
> https://github.com/dledford/linux/commit/1848757c3d8bff3addf881c8bcc2b
> > 85e25ccf25e
> >
> > I was under the assumption a patch goes to github before k.o - is this not
> the case ?
> 
> Repo on github is Doug's private repository, while it is much safer to stick
> with one official on kernel.org.
> 
> Thanks

Ok, thanks. 
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Doug Ledford Sept. 28, 2017, 2:05 p.m. UTC | #10
On 9/28/2017 2:22 AM, Kalderon, Michal wrote:
>> From: Leon Romanovsky [mailto:leon@kernel.org]
>> Sent: Thursday, September 28, 2017 6:27 AM
>> On Wed, Sep 27, 2017 at 08:33:38PM +0000, Kalderon, Michal wrote:
>>> From: Leon Romanovsky <leon@kernel.org>
>>> Sent: Wednesday, September 27, 2017 7:56 PM On Wed, Sep 27, 2017 at
>>> 07:53:39PM +0300, Leon Romanovsky wrote:
>>>>> On Wed, Sep 27, 2017 at 04:18:50PM +0000, Kalderon, Michal wrote:
>>>>>> From: Doug Ledford <dledford@redhat.com>
>>>>>> Sent: Wednesday, September 27, 2017 4:27 PM
>>>>>>
>>>>>>> On Wed, 2017-09-20 at 08:39 +0300, Michal Kalderon wrote:
>>>>>>>> Initialize the rdma_type (iWARP or RoCE) which is set
>>>>>>>> according to device configuration in qed.
>>>>>>>>
>>>>>>>> Fixes: e6a38c54faf ("RDMA/qedr: Add support for registering an
>>>>>>>> iWARP
>>>>>>>> device")
>>>>>>>>
>>>>>>>> Signed-off-by: Michal Kalderon <Michal.Kalderon@cavium.com>
>>>>>>>> Signed-off-by: Ariel Elior <Ariel.Elior@cavium.com>
>>>>>>>>
>>>>>>>> ---
>>>>>>>> This patch applies cleanly on k.o/for-next-merged
>>>>>>>>
>>>>>>>> Changes from V0:
>>>>>>>> - Added Fixes in commit comment.
>>>>>>>
>>>>>>> Sorry, I was wrong in my email to the previous posting of this patch.
>>>>>>> I had pulled this v1 patch from patchworks, not the original
>>>>>>> patch, and so the Fixes: line was yours.  Patchworks did not add
>>>>>>> the Fixes: line to the v0 patch when I downloaded it just now.
>>>>>>
>>>>>>> That being said, I still can't build with this patch ;-)
>>>>>> Are you building against the rdma-next branch ?
>>>>>> The patch requires the iWARP series, originally this was tested
>>>>>> against for-next-merged, what's the error you're getting ?
>>>>>
>>>>> On rdma-next:
>>>>> drivers/infiniband/hw/qedr/main.c: In function ‘qedr_add’:
>>>>> drivers/infiniband/hw/qedr/main.c:780:7: error: ‘struct qedr_dev’ has
>> no member named ‘rdma_type’; did you mean ‘rdma_ctx’?
>>>>>   dev->rdma_type = dev_info.rdma_type;
>>>>>        ^~~~~~~~~
>>>>>        rdma_ctx
>>>>> make[4]: *** [scripts/Makefile.build:311:
>>>>> drivers/infiniband/hw/qedr/main.o] Error 1
>>>>
>>>> My config:
>>>>
>>>> ➜  linux-rdma git:(rdma-next) grep QED .config CONFIG_QED=m
>>>> CONFIG_QED_LL2=y CONFIG_QED_SRIOV=y CONFIG_QEDE=m
>> CONFIG_QED_RDMA=y
>>>> CONFIG_INFINIBAND_QEDR=m
>>>
>>> Thanks Leon for helping out with this. Unfortunately i'm not seeing this.
>>> The rdma_type field was added with the following patch:
>>>
>> https://kernel.googlesource.com/pub/scm/linux/kernel/git/dledford/rdma
>>> /+/e6a38c54faf38498170e227c82ea25cb8bc1ae71
>>>
>>> When running git log on the k.o/for-next I see the patch (last in list
>>> below), applying this patch on top of  rdma-next works for me and
>> compiles cleanly.
>>>
>>> 2e2f2d0 RDMA/qedr: Fix rdma_type initialization
>>> 1848757 Merge branches 'hns' and 'misc' into k.o/for-next 931bc0d IB:
>>> Move PCI dependency from root KConfig to HW's KConfigs 7ae6f2a Merge
>>> branch 'qedr' into k.o/for-next
>>> bd491d2 RDMA/qedr: fix build error without ipv6
>>> 89fd257 RDMA/qedr: Missing error code in qedr_init_user_queue()
>>> 847cb1a RDMA/qedr: fix spelling mistake: "invlaid" -> "invalid"
>>> 69ad0e7 RDMA/qedr: Add support for iWARP in user space
>>> e411e05 RDMA/qedr: Add iWARP connection management functions
>> de0089e
>>> RDMA/qedr: Add iWARP connection management qp related callbacks
>>> fb1a22b RDMA/qedr: Add support for read with invalidate, supported in
>>> iWARP
>>> f5b1b17 RDMA/qedr: Add iWARP support in existing verbs
>>> e6a38c5 RDMA/qedr: Add support for registering an iWARP device
>>>
>>> am i missing something ?
>>
>> I refreshed my branches now and it worked, but your git log history looks
>> strange. Where did you see the commit 1848757 and 931bc0d?
> 
> git://github.com/dledford/linux.git
> git log --oneline -- drivers/infiniband/hw/qedr
> https://github.com/dledford/linux/commit/1848757c3d8bff3addf881c8bcc2b85e25ccf25e
> 
> I was under the assumption a patch goes to github before k.o - is this not the case ? 

It does.  I always send things to github first, wait for 0day testing
results, then send it to k.o if it passes.  However, what is important
here, is that if it *doesn't* pass 0day testing, then I will rebase the
branch to fix the broken patch in some cases.  Once a patch series lands
on k.o, if it's broken, we will either revert or incrementally patch things.

> Thanks again, 
> 
> Doug - are you still seeing issues with this patch ? 

I'll recheck today.

> Thanks,
> Michal
> 
>>
>> https://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma.git/log/?h=k
>> .o/for-next
>> Age	Commit message (Expand)	Author	Files	Lines
>> 3 days	Merge branch 'qedr' into k.o/for-nextfor-nextk.o/for-next	 Doug
>> Ledford	11	-91/+1208
>> 3 days	Merge tag 'v4.14-rc2' into k.o/for-next	 Doug Ledford	12044	-
>> 388475/+631018
>> 3 days	Linux 4.14-rc2HEADmaster	 Linus Torvalds	1	-1/+1
>>
>> ➜  linux-rdma git:(iwarp-compile) git log --oneline f3506957237b (HEAD ->
>> iwarp-compile) RDMA/qedr: Fix rdma_type initialization
>> 7ae6f2a3d552 (rdma/k.o/for-next, grdma/k.o/for-next) Merge branch 'qedr'
>> into k.o/for-next
>> 0d9c2ff1c9f7 Merge tag 'v4.14-rc2' into k.o/for-next e19b205be43d (tag:
>> v4.14-rc2, rdma/master, origin/master, ml/master, grdma/master,
>> grdma/hns, backup/master, master) Linux 4.14-rc2
>>
>> Thanks
>>
>>> thanks,
>>> Michal
>>>
Doug Ledford Sept. 29, 2017, 3:22 p.m. UTC | #11
On Wed, 2017-09-27 at 09:27 -0400, Doug Ledford wrote:
> On Wed, 2017-09-20 at 08:39 +0300, Michal Kalderon wrote:
> > Initialize the rdma_type (iWARP or RoCE) which is set according to
> > device configuration in qed.
> > 
> > Fixes: e6a38c54faf ("RDMA/qedr: Add support for registering an
> > iWARP
> > device")
> > 
> > Signed-off-by: Michal Kalderon <Michal.Kalderon@cavium.com>
> > Signed-off-by: Ariel Elior <Ariel.Elior@cavium.com>
> > 
> > ---
> > This patch applies cleanly on k.o/for-next-merged
> > 
> > Changes from V0:
> > - Added Fixes in commit comment.
> 
> Sorry, I was wrong in my email to the previous posting of this
> patch. 
> I had pulled this v1 patch from patchworks, not the original patch,
> and
> so the Fixes: line was yours.  Patchworks did not add the Fixes: line
> to the v0 patch when I downloaded it just now.
> 
> That being said, I still can't build with this patch ;-)

OK, the build failure was my fault.  As this was a minor patch, I had
lumped it into a bundle I labeled as "misc".  That by itself is fine,
but I then applied that to a clean for-next head of v4.14-rc2, without
the merge of the qedr branch, and so the build failed.  Putting this
into a branch with the qedr patches already merged resolves the issue. 
So, thanks, applied.
diff mbox

Patch

diff --git a/drivers/infiniband/hw/qedr/main.c b/drivers/infiniband/hw/qedr/main.c
index ca93171..1afc267 100644
--- a/drivers/infiniband/hw/qedr/main.c
+++ b/drivers/infiniband/hw/qedr/main.c
@@ -870,6 +870,7 @@  static struct qedr_dev *qedr_add(struct qed_dev *cdev, struct pci_dev *pdev,
 		goto init_err;
 
 	dev->user_dpm_enabled = dev_info.user_dpm_enabled;
+	dev->rdma_type = dev_info.rdma_type;
 	dev->num_hwfns = dev_info.common.num_hwfns;
 	dev->rdma_ctx = dev->ops->rdma_get_rdma_ctx(cdev);