From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [RFC PATCH 3/3] RDMA/rxe: Support dma-buf as memory region
Date: Wed, 08 Sep 2021 17:29:07 +0800 [thread overview]
Message-ID: <202109081745.YPrkogg0-lkp@intel.com> (raw)
In-Reply-To: <20210908061611.69823-4-mie@igel.co.jp>
[-- Attachment #1: Type: text/plain, Size: 3702 bytes --]
Hi Shunsuke,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on v5.14]
[cannot apply to rdma/for-next next-20210908]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Shunsuke-Mie/RDMA-rxe-Add-dma-buf-support/20210908-142001
base: 7d2a07b769330c34b4deabeed939325c77a7ec2f
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/80fcf7f4bc573f6f833baeb7e390e44a79ddd84f
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Shunsuke-Mie/RDMA-rxe-Add-dma-buf-support/20210908-142001
git checkout 80fcf7f4bc573f6f833baeb7e390e44a79ddd84f
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=ia64 SHELL=/bin/bash drivers/infiniband/sw/rxe/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers/infiniband/sw/rxe/rxe_mr.c: In function 'rxe_mr_dmabuf_init_user':
>> drivers/infiniband/sw/rxe/rxe_mr.c:304:14: error: 'i' undeclared (first use in this function)
304 | for (i = 0; i < mr->num_map; i++)
| ^
drivers/infiniband/sw/rxe/rxe_mr.c:304:14: note: each undeclared identifier is reported only once for each function it appears in
vim +/i +304 drivers/infiniband/sw/rxe/rxe_mr.c
254
255 /* initialize a umem and map all the areas of dma-buf. */
256 int rxe_mr_dmabuf_init_user(struct rxe_pd *pd, int fd, u64 start, u64 length,
257 u64 iova, int access, struct rxe_mr *mr)
258 {
259 struct ib_umem_dmabuf *umem_dmabuf;
260 int num_buf;
261 int err;
262
263 umem_dmabuf = ib_umem_dmabuf_get(pd->ibpd.device, start, length, fd,
264 access, &rxe_ib_dmabuf_attach_ops);
265 if (IS_ERR(umem_dmabuf)) {
266 err = PTR_ERR(umem_dmabuf);
267 pr_err("%s: failed to get umem_dmabuf (%d)", __func__, err);
268 goto err1;
269 }
270
271 umem_dmabuf->private = mr;
272
273 mr->umem = &umem_dmabuf->umem;
274 mr->umem->iova = iova;
275 num_buf = ib_umem_num_pages(mr->umem);
276
277 rxe_mr_init(access, mr);
278
279 err = rxe_mr_alloc(mr, num_buf);
280 if (err)
281 goto err1;
282
283 mr->page_shift = PAGE_SHIFT;
284 mr->page_mask = PAGE_SIZE - 1;
285
286 mr->ibmr.pd = &pd->ibpd;
287 mr->access = access;
288 mr->length = length;
289 mr->iova = iova;
290 mr->va = start;
291 mr->offset = ib_umem_offset(mr->umem);
292 mr->state = RXE_MR_STATE_VALID;
293 mr->type = RXE_MR_TYPE_MR;
294
295 err = rxe_map_dmabuf_mr(mr);
296 if (err) {
297 pr_err("%s: failed to map the dma-buf region", __func__);
298 goto err2;
299 }
300
301 return 0;
302
303 err2:
> 304 for (i = 0; i < mr->num_map; i++)
305 kfree(mr->map[i]);
306 kfree(mr->map);
307 err1:
308 return err;
309 }
310
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 64471 bytes --]
next prev parent reply other threads:[~2021-09-08 9:29 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-08 6:16 [RFC PATCH 0/3] RDMA/rxe: Add dma-buf support Shunsuke Mie
2021-09-08 6:16 ` [RFC PATCH 1/3] RDMA/umem: Change for rdma devices has not dma device Shunsuke Mie
2021-09-08 6:26 ` Christoph Hellwig
2021-09-08 7:01 ` Shunsuke Mie
2021-09-08 7:19 ` Christoph Hellwig
2021-09-08 8:41 ` Shunsuke Mie
2021-09-08 11:18 ` Jason Gunthorpe
2021-09-08 13:33 ` Christian König
2021-09-08 19:22 ` Daniel Vetter
2021-09-08 23:33 ` Jason Gunthorpe
2021-09-09 9:26 ` Daniel Vetter
2021-09-10 1:46 ` Shunsuke Mie
2021-09-13 19:22 ` Daniel Vetter
2021-09-14 7:11 ` Shunsuke Mie
2021-09-14 9:38 ` Daniel Vetter
2021-09-14 10:13 ` Shunsuke Mie
2021-09-08 6:16 ` [RFC PATCH 2/3] RDMA/rxe: Extract a mapping process into a function Shunsuke Mie
2021-09-08 6:16 ` [RFC PATCH 3/3] RDMA/rxe: Support dma-buf as memory region Shunsuke Mie
2021-09-08 9:29 ` kernel test robot [this message]
2021-09-09 3:23 ` kernel test robot
2021-09-09 3:23 ` kernel test robot
2021-09-09 5:45 ` [RFC PATCH 0/3] RDMA/rxe: Add dma-buf support Zhu Yanjun
2021-09-10 2:00 ` Shunsuke Mie
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=202109081745.YPrkogg0-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.