linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RE: Re: Re: [PATCH] RDMA/siw: Solve the error of compiling the 32BIT mips kernel when enable CONFIG_RDMA_SIW
@ 2022-09-22 19:02 Bernard Metzler
  2022-09-22 19:23 ` Jason Gunthorpe
  0 siblings, 1 reply; 2+ messages in thread
From: Bernard Metzler @ 2022-09-22 19:02 UTC (permalink / raw)
  To: Jason Gunthorpe
  Cc: jianghaoran, leon, linux-rdma, linux-kernel, Linus Walleij



> -----Original Message-----
> From: Jason Gunthorpe <jgg@nvidia.com>
> Sent: Thursday, 22 September 2022 19:48
> To: Bernard Metzler <BMT@zurich.ibm.com>
> Cc: jianghaoran <jianghaoran@kylinos.cn>; leon@kernel.org; linux-
> rdma@vger.kernel.org; linux-kernel@vger.kernel.org; Linus Walleij
> <linus.walleij@linaro.org>
> Subject: [EXTERNAL] Re: Re: [PATCH] RDMA/siw: Solve the error of compiling
> the 32BIT mips kernel when enable CONFIG_RDMA_SIW
> 
> On Thu, Sep 22, 2022 at 05:17:24PM +0000, Bernard Metzler wrote:
> 
> > > The compiler is saying it should be a void * not an unsigned long.
> >
> > Linus' [Patch v3] was moving it to uintptr_t  which I think is
> > the right solution. We went for that afaik.
> 
> That isn't what I saw in merged patches:
> 
> INVALID URI REMOVED
> 3A__lore.kernel.org_all_20220913140416.280860971-
> 40linuxfoundation.org_&d=DwIBAg&c=jf_iaSHvJObTbx-siA1ZOg&r=2TaYXQ0T-
> r8ZO1PP1alNwU_QJcRRLfmYTAgd3QCvqSc&m=Rvcp-
> EvvdOCENMF2s1l1j5ky3WQqSiJ0_by31NFDnrQ_iDO6zegGgLPy4OiQmkCO&s=FZOBbAPo0wCJJ
> R0_062_zc6iE6WyRszu3Q9eUwvA6o0&e=
> 

Looks good. It's the right patch from Linus W. which got
merged, as your lore link points at. You seem to have looked
at Jianghaoran's patch for the same issue, which came
in almost same time, but was not taken.

What was applied is Linus'
[PATCH v3] RDMA/siw: Pass a pointer to virt_to_page()

Best,
Bernard.

...
@@ -533,13 +533,23 @@ static int siw_tx_hdt(struct siw_iwarp_tx *c_tx, struct socket *s)
 					kunmap_local(kaddr);
 				}
 			} else {
-				u64 va = sge->laddr + sge_off;
+				/*
+				 * Cast to an uintptr_t to preserve all 64 bits
+				 * in sge->laddr.
+				 */
+				uintptr_t va = (uintptr_t)(sge->laddr + sge_off);
...


> I'm confused??
> 
> Jason

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Re: Re: [PATCH] RDMA/siw: Solve the error of compiling the 32BIT mips kernel when enable CONFIG_RDMA_SIW
  2022-09-22 19:02 Re: Re: [PATCH] RDMA/siw: Solve the error of compiling the 32BIT mips kernel when enable CONFIG_RDMA_SIW Bernard Metzler
@ 2022-09-22 19:23 ` Jason Gunthorpe
  0 siblings, 0 replies; 2+ messages in thread
From: Jason Gunthorpe @ 2022-09-22 19:23 UTC (permalink / raw)
  To: Bernard Metzler
  Cc: jianghaoran, leon, linux-rdma, linux-kernel, Linus Walleij

On Thu, Sep 22, 2022 at 07:02:54PM +0000, Bernard Metzler wrote:

> Looks good. It's the right patch from Linus W. which got
> merged, as your lore link points at. You seem to have looked
> at Jianghaoran's patch for the same issue, which came
> in almost same time, but was not taken.

Er, so this is just a dup in patchworks, OK, punted

Thanks,
Jason

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-09-22 19:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-22 19:02 Re: Re: [PATCH] RDMA/siw: Solve the error of compiling the 32BIT mips kernel when enable CONFIG_RDMA_SIW Bernard Metzler
2022-09-22 19:23 ` Jason Gunthorpe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).